(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888,5217],{83804:function(R,W,G){"use strict";var J=G(12717),et=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,er=(0,J.Z)(function(R){return et.test(R)||111===R.charCodeAt(0)&&110===R.charCodeAt(1)&&91>R.charCodeAt(2)});W.Z=er},12717:function(R,W){"use strict";W.Z=function(R){var W={};return function(G){return void 0===W[G]&&(W[G]=R(G)),W[G]}}},48285:function(R,W){"use strict";W.Z=function(R){function X(R,W,G){var J=W.trim().split(en);W=J;var et=J.length,er=R.length;switch(er){case 0:case 1:var ei=0;for(R=0===er?"":R[0]+" ";ei<et;++ei)W[ei]=Z(R,W[ei],G).trim();break;default:var eo=ei=0;for(W=[];ei<et;++ei)for(var es=0;es<er;++es)W[eo++]=Z(R[es]+" ",J[ei],G).trim()}return W}function Z(R,W,G){var J=W.charCodeAt(0);switch(33>J&&(J=(W=W.trim()).charCodeAt(0)),J){case 38:return W.replace(ei,"$1"+R.trim());case 58:return R.trim()+W.replace(ei,"$1"+R.trim());default:if(0<1*G&&0<W.indexOf("\f"))return W.replace(ei,(58===R.charCodeAt(0)?"":"$1")+R.trim())}return R+W}function P(R,W,G,en){var ei=R+";",eo=2*W+3*G+4*en;if(944===eo){R=ei.indexOf(":",9)+1;var es=ei.substring(R,ei.length-1).trim();return es=ei.substring(0,R).trim()+es+";",1===eb||2===eb&&L(es,1)?"-webkit-"+es+es:es}if(0===eb||2===eb&&!L(ei,1))return ei;switch(eo){case 1015:return 97===ei.charCodeAt(10)?"-webkit-"+ei+ei:ei;case 951:return 116===ei.charCodeAt(3)?"-webkit-"+ei+ei:ei;case 963:return 110===ei.charCodeAt(5)?"-webkit-"+ei+ei:ei;case 1009:if(100!==ei.charCodeAt(4))break;case 969:case 942:return"-webkit-"+ei+ei;case 978:return"-webkit-"+ei+"-moz-"+ei+ei;case 1019:case 983:return"-webkit-"+ei+"-moz-"+ei+"-ms-"+ei+ei;case 883:if(45===ei.charCodeAt(8))return"-webkit-"+ei+ei;if(0<ei.indexOf("image-set(",11))return ei.replace(eg,"$1-webkit-$2")+ei;break;case 932:if(45===ei.charCodeAt(4))switch(ei.charCodeAt(5)){case 103:return"-webkit-box-"+ei.replace("-grow","")+"-webkit-"+ei+"-ms-"+ei.replace("grow","positive")+ei;case 115:return"-webkit-"+ei+"-ms-"+ei.replace("shrink","negative")+ei;case 98:return"-webkit-"+ei+"-ms-"+ei.replace("basis","preferred-size")+ei}return"-webkit-"+ei+"-ms-"+ei+ei;case 964:return"-webkit-"+ei+"-ms-flex-"+ei+ei;case 1023:if(99!==ei.charCodeAt(8))break;return"-webkit-box-pack"+(es=ei.substring(ei.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+ei+"-ms-flex-pack"+es+ei;case 1005:return et.test(ei)?ei.replace(J,":-webkit-")+ei.replace(J,":-moz-")+ei:ei;case 1e3:switch(W=(es=ei.substring(13).trim()).indexOf("-")+1,es.charCodeAt(0)+es.charCodeAt(W)){case 226:es=ei.replace(el,"tb");break;case 232:es=ei.replace(el,"tb-rl");break;case 220:es=ei.replace(el,"lr");break;default:return ei}return"-webkit-"+ei+"-ms-"+es+ei;case 1017:if(-1===ei.indexOf("sticky",9))break;case 975:switch(W=(ei=R).length-10,eo=(es=(33===ei.charCodeAt(W)?ei.substring(0,W):ei).substring(R.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|es.charCodeAt(7))){case 203:if(111>es.charCodeAt(8))break;case 115:ei=ei.replace(es,"-webkit-"+es)+";"+ei;break;case 207:case 102:ei=ei.replace(es,"-webkit-"+(102<eo?"inline-":"")+"box")+";"+ei.replace(es,"-webkit-"+es)+";"+ei.replace(es,"-ms-"+es+"box")+";"+ei}return ei+";";case 938:if(45===ei.charCodeAt(5))switch(ei.charCodeAt(6)){case 105:return es=ei.replace("-items",""),"-webkit-"+ei+"-webkit-box-"+es+"-ms-flex-"+es+ei;case 115:return"-webkit-"+ei+"-ms-flex-item-"+ei.replace(ep,"")+ei;default:return"-webkit-"+ei+"-ms-flex-line-pack"+ei.replace("align-content","").replace(ep,"")+ei}break;case 973:case 989:if(45!==ei.charCodeAt(3)||122===ei.charCodeAt(4))break;case 931:case 953:if(!0===eh.test(R))return 115===(es=R.substring(R.indexOf(":")+1)).charCodeAt(0)?P(R.replace("stretch","fill-available"),W,G,en).replace(":fill-available",":stretch"):ei.replace(es,"-webkit-"+es)+ei.replace(es,"-moz-"+es.replace("fill-",""))+ei;break;case 962:if(ei="-webkit-"+ei+(102===ei.charCodeAt(5)?"-ms-"+ei:"")+ei,211===G+en&&105===ei.charCodeAt(13)&&0<ei.indexOf("transform",10))return ei.substring(0,ei.indexOf(";",27)+1).replace(er,"$1-webkit-$2")+ei}return ei}function L(R,W){var G=R.indexOf(1===W?":":"{"),J=R.substring(0,3!==W?G:10);return G=R.substring(G+1,R.length-1),eS(2!==W?J:J.replace(ef,"$1"),G,W)}function ea(R,W){var G=P(W,W.charCodeAt(0),W.charCodeAt(1),W.charCodeAt(2));return G!==W+";"?G.replace(ed," or ($1)").substring(4):"("+W+")"}function H(R,W,G,J,et,er,en,ei,eo,es){for(var ec,el=0,eu=W;el<ew;++el)switch(ec=ex[el].call(B,R,eu,G,J,et,er,en,ei,eo,es)){case void 0:case!1:case!0:case null:break;default:eu=ec}if(eu!==W)return eu}function U(R){return void 0!==(R=R.prefix)&&(eS=null,R?"function"!=typeof R?eb=1:(eb=2,eS=R):eb=0),U}function B(R,J){var et=R;if(33>et.charCodeAt(0)&&(et=et.trim()),et=[et],0<ew){var er=H(-1,J,et,et,ey,em,0,0,0,0);void 0!==er&&"string"==typeof er&&(J=er)}var en=function M(R,J,et,er,en){for(var ei,el,ed,ep,ef,eh=0,eg=0,ex=0,eS=0,eO=0,eP=0,eC=ed=ei=0,ek=0,eE=0,ej=0,eA=0,eD=et.length,eI=eD-1,eM="",eL="",eR="",eN="";ek<eD;){if(el=et.charCodeAt(ek),ek===eI&&0!==eg+eS+ex+eh&&(0!==eg&&(el=47===eg?10:47),eS=ex=eh=0,eD++,eI++),0===eg+eS+ex+eh){if(ek===eI&&(0<eE&&(eM=eM.replace(G,"")),0<eM.trim().length)){switch(el){case 32:case 9:case 59:case 13:case 10:break;default:eM+=et.charAt(ek)}el=59}switch(el){case 123:for(ei=(eM=eM.trim()).charCodeAt(0),ed=1,eA=++ek;ek<eD;){switch(el=et.charCodeAt(ek)){case 123:ed++;break;case 125:ed--;break;case 47:switch(el=et.charCodeAt(ek+1)){case 42:case 47:e:{for(eC=ek+1;eC<eI;++eC)switch(et.charCodeAt(eC)){case 47:if(42===el&&42===et.charCodeAt(eC-1)&&ek+2!==eC){ek=eC+1;break e}break;case 10:if(47===el){ek=eC+1;break e}}ek=eC}}break;case 91:el++;case 40:el++;case 34:case 39:for(;ek++<eI&&et.charCodeAt(ek)!==el;);}if(0===ed)break;ek++}if(ed=et.substring(eA,ek),0===ei&&(ei=(eM=eM.replace(W,"").trim()).charCodeAt(0)),64===ei){switch(0<eE&&(eM=eM.replace(G,"")),el=eM.charCodeAt(1)){case 100:case 109:case 115:case 45:eE=J;break;default:eE=e_}if(eA=(ed=M(J,eE,ed,el,en+1)).length,0<ew&&(ef=H(3,ed,eE=X(e_,eM,ej),J,ey,em,eA,el,en,er),eM=eE.join(""),void 0!==ef&&0===(eA=(ed=ef.trim()).length)&&(el=0,ed="")),0<eA)switch(el){case 115:eM=eM.replace(eu,ea);case 100:case 109:case 45:ed=eM+"{"+ed+"}";break;case 107:ed=(eM=eM.replace(eo,"$1 $2"))+"{"+ed+"}",ed=1===eb||2===eb&&L("@"+ed,3)?"@-webkit-"+ed+"@"+ed:"@"+ed;break;default:ed=eM+ed,112===er&&(eL+=ed,ed="")}else ed=""}else ed=M(J,X(J,eM,ej),ed,er,en+1);eR+=ed,ed=ej=eE=eC=ei=0,eM="",el=et.charCodeAt(++ek);break;case 125:case 59:if(1<(eA=(eM=(0<eE?eM.replace(G,""):eM).trim()).length))switch(0===eC&&(45===(ei=eM.charCodeAt(0))||96<ei&&123>ei)&&(eA=(eM=eM.replace(" ",":")).length),0<ew&&void 0!==(ef=H(1,eM,J,R,ey,em,eL.length,er,en,er))&&0===(eA=(eM=ef.trim()).length)&&(eM="\x00\x00"),ei=eM.charCodeAt(0),el=eM.charCodeAt(1),ei){case 0:break;case 64:if(105===el||99===el){eN+=eM+et.charAt(ek);break}default:58!==eM.charCodeAt(eA-1)&&(eL+=P(eM,ei,el,eM.charCodeAt(2)))}ej=eE=eC=ei=0,eM="",el=et.charCodeAt(++ek)}}switch(el){case 13:case 10:47===eg?eg=0:0===1+ei&&107!==er&&0<eM.length&&(eE=1,eM+="\x00"),0<ew*eT&&H(0,eM,J,R,ey,em,eL.length,er,en,er),em=1,ey++;break;case 59:case 125:if(0===eg+eS+ex+eh){em++;break}default:switch(em++,ep=et.charAt(ek),el){case 9:case 32:if(0===eS+eh+eg)switch(eO){case 44:case 58:case 9:case 32:ep="";break;default:32!==el&&(ep=" ")}break;case 0:ep="\\0";break;case 12:ep="\\f";break;case 11:ep="\\v";break;case 38:0===eS+eg+eh&&(eE=ej=1,ep="\f"+ep);break;case 108:if(0===eS+eg+eh+ev&&0<eC)switch(ek-eC){case 2:112===eO&&58===et.charCodeAt(ek-3)&&(ev=eO);case 8:111===eP&&(ev=eP)}break;case 58:0===eS+eg+eh&&(eC=ek);break;case 44:0===eg+ex+eS+eh&&(eE=1,ep+="\r");break;case 34:case 39:0===eg&&(eS=eS===el?0:0===eS?el:eS);break;case 91:0===eS+eg+ex&&eh++;break;case 93:0===eS+eg+ex&&eh--;break;case 41:0===eS+eg+eh&&ex--;break;case 40:0===eS+eg+eh&&(0===ei&&(2*eO+3*eP==533||(ei=1)),ex++);break;case 64:0===eg+ex+eS+eh+eC+ed&&(ed=1);break;case 42:case 47:if(!(0<eS+eh+ex))switch(eg){case 0:switch(2*el+3*et.charCodeAt(ek+1)){case 235:eg=47;break;case 220:eA=ek,eg=42}break;case 42:47===el&&42===eO&&eA+2!==ek&&(33===et.charCodeAt(eA+2)&&(eL+=et.substring(eA,ek+1)),ep="",eg=0)}}0===eg&&(eM+=ep)}eP=eO,eO=el,ek++}if(0<(eA=eL.length)){if(eE=J,0<ew&&void 0!==(ef=H(2,eL,eE,R,ey,em,eA,er,en,er))&&0===(eL=ef).length)return eN+eL+eR;if(eL=eE.join(",")+"{"+eL+"}",0!=eb*ev){switch(2!==eb||L(eL,2)||(ev=0),ev){case 111:eL=eL.replace(ec,":-moz-$1")+eL;break;case 112:eL=eL.replace(es,"::-webkit-input-$1")+eL.replace(es,"::-moz-$1")+eL.replace(es,":-ms-input-$1")+eL}ev=0}}return eN+eL+eR}(e_,et,J,0,0);return 0<ew&&void 0!==(er=H(-2,en,et,et,ey,em,en.length,0,0,0))&&(en=er),ev=0,em=ey=1,en}var W=/^\0+/g,G=/[\0\r\f]/g,J=/: */g,et=/zoo|gra/,er=/([,: ])(transform)/g,en=/,\r+?/g,ei=/([\t\r\n ])*\f?&/g,eo=/@(k\w+)\s*(\S*)\s*/,es=/::(place)/g,ec=/:(read-only)/g,el=/[svh]\w+-[tblr]{2}/,eu=/\(\s*(.*)\s*\)/g,ed=/([\s\S]*?);/g,ep=/-self|flex-/g,ef=/[^]*?(:[rp][el]a[\w-]+)[^]*/,eh=/stretch|:\s*\w+\-(?:conte|avail)/,eg=/([^-])(image-set\()/,em=1,ey=1,ev=0,eb=1,e_=[],ex=[],ew=0,eS=null,eT=0;return B.use=function T(R){switch(R){case void 0:case null:ew=ex.length=0;break;default:if("function"==typeof R)ex[ew++]=R;else if("object"==typeof R)for(var W=0,G=R.length;W<G;++W)T(R[W]);else eT=0|!!R}return T},B.set=U,void 0!==R&&U(R),B}},40351:function(R,W){"use strict";W.Z={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},27272:function(R,W,G){"use strict";function n(R){for(var W=arguments.length,G=Array(W>1?W-1:0),J=1;J<W;J++)G[J-1]=arguments[J];throw Error("[Immer] minified error nr: "+R+(G.length?" "+G.map(function(R){return"'"+R+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r(R){return!!R&&!!R[eu]}function t(R){var W;return!!R&&(function(R){if(!R||"object"!=typeof R)return!1;var W=Object.getPrototypeOf(R);if(null===W)return!0;var G=Object.hasOwnProperty.call(W,"constructor")&&W.constructor;return G===Object||"function"==typeof G&&Function.toString.call(G)===ed}(R)||Array.isArray(R)||!!R[el]||!!(null===(W=R.constructor)||void 0===W?void 0:W[el])||s(R)||v(R))}function i(R,W,G){void 0===G&&(G=!1),0===o(R)?(G?Object.keys:ep)(R).forEach(function(J){G&&"symbol"==typeof J||W(J,R[J],R)}):R.forEach(function(G,J){return W(J,G,R)})}function o(R){var W=R[eu];return W?W.i>3?W.i-4:W.i:Array.isArray(R)?1:s(R)?2:v(R)?3:0}function u(R,W){return 2===o(R)?R.has(W):Object.prototype.hasOwnProperty.call(R,W)}function f(R,W,G){var J=o(R);2===J?R.set(W,G):3===J?R.add(G):R[W]=G}function c(R,W){return R===W?0!==R||1/R==1/W:R!=R&&W!=W}function s(R){return ei&&R instanceof Map}function v(R){return eo&&R instanceof Set}function p(R){return R.o||R.t}function l(R){if(Array.isArray(R))return Array.prototype.slice.call(R);var W=ef(R);delete W[eu];for(var G=ep(W),J=0;J<G.length;J++){var et=G[J],er=W[et];!1===er.writable&&(er.writable=!0,er.configurable=!0),(er.get||er.set)&&(W[et]={configurable:!0,writable:!0,enumerable:er.enumerable,value:R[et]})}return Object.create(Object.getPrototypeOf(R),W)}function d(R,W){return void 0===W&&(W=!1),y(R)||r(R)||!t(R)||(o(R)>1&&(R.set=R.add=R.clear=R.delete=h),Object.freeze(R),W&&i(R,function(R,W){return d(W,!0)},!0)),R}function h(){n(2)}function y(R){return null==R||"object"!=typeof R||Object.isFrozen(R)}function b(R){var W=eh[R];return W||n(18,R),W}function j(R,W){W&&(b("Patches"),R.u=[],R.s=[],R.v=W)}function g(R){O(R),R.p.forEach(S),R.p=null}function O(R){R===er&&(er=R.l)}function w(R){return er={p:[],l:er,h:R,m:!0,_:0}}function S(R){var W=R[eu];0===W.i||1===W.i?W.j():W.g=!0}function P(R,W){W._=W.p.length;var G=W.p[0],J=void 0!==R&&R!==G;return W.h.O||b("ES5").S(W,R,J),J?(G[eu].P&&(g(W),n(4)),t(R)&&(R=M(W,R),W.l||x(W,R)),W.u&&b("Patches").M(G[eu].t,R,W.u,W.s)):R=M(W,G,[]),g(W),W.u&&W.v(W.u,W.s),R!==ec?R:void 0}function M(R,W,G){if(y(W))return W;var J=W[eu];if(!J)return i(W,function(et,er){return A(R,J,W,et,er,G)},!0),W;if(J.A!==R)return W;if(!J.P)return x(R,J.t,!0),J.t;if(!J.I){J.I=!0,J.A._--;var et=4===J.i||5===J.i?J.o=l(J.k):J.o,er=et,en=!1;3===J.i&&(er=new Set(et),et.clear(),en=!0),i(er,function(W,er){return A(R,J,et,W,er,G,en)}),x(R,et,!1),G&&R.u&&b("Patches").N(J,G,R.u,R.s)}return J.o}function A(R,W,G,J,et,er,en){if(r(et)){var ei=M(R,et,er&&W&&3!==W.i&&!u(W.R,J)?er.concat(J):void 0);if(f(G,J,ei),!r(ei))return;R.m=!1}else en&&G.add(et);if(t(et)&&!y(et)){if(!R.h.D&&R._<1)return;M(R,et),W&&W.A.l||x(R,et)}}function x(R,W,G){void 0===G&&(G=!1),!R.l&&R.h.D&&R.m&&d(W,G)}function z(R,W){var G=R[eu];return(G?p(G):R)[W]}function I(R,W){if(W in R)for(var G=Object.getPrototypeOf(R);G;){var J=Object.getOwnPropertyDescriptor(G,W);if(J)return J;G=Object.getPrototypeOf(G)}}function k(R){R.P||(R.P=!0,R.l&&k(R.l))}function E(R){R.o||(R.o=l(R.t))}function N(R,W,G){var J,et,en,ei,eo,es,ec,el=s(W)?b("MapSet").F(W,G):v(W)?b("MapSet").T(W,G):R.O?(en=et={i:(J=Array.isArray(W))?1:0,A:G?G.A:er,P:!1,I:!1,R:{},l:G,t:W,k:null,o:null,j:null,C:!1},ei=eg,J&&(en=[et],ei=em),es=(eo=Proxy.revocable(en,ei)).revoke,ec=eo.proxy,et.k=ec,et.j=es,ec):b("ES5").J(W,G);return(G?G.A:er).p.push(el),el}function D(R,W){switch(W){case 2:return new Map(R);case 3:return Array.from(R)}return l(R)}G.d(W,{oM:function(){return createSlice}});var J,et,er,en="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ei="undefined"!=typeof Map,eo="undefined"!=typeof Set,es="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ec=en?Symbol.for("immer-nothing"):((et={})["immer-nothing"]=!0,et),el=en?Symbol.for("immer-draftable"):"__$immer_draftable",eu=en?Symbol.for("immer-state"):"__$immer_state",ed=""+Object.prototype.constructor,ep="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(R){return Object.getOwnPropertyNames(R).concat(Object.getOwnPropertySymbols(R))}:Object.getOwnPropertyNames,ef=Object.getOwnPropertyDescriptors||function(R){var W={};return ep(R).forEach(function(G){W[G]=Object.getOwnPropertyDescriptor(R,G)}),W},eh={},eg={get:function(R,W){if(W===eu)return R;var G,J,et=p(R);if(!u(et,W))return(J=I(et,W))?"value"in J?J.value:null===(G=J.get)||void 0===G?void 0:G.call(R.k):void 0;var er=et[W];return R.I||!t(er)?er:er===z(R.t,W)?(E(R),R.o[W]=N(R.A.h,er,R)):er},has:function(R,W){return W in p(R)},ownKeys:function(R){return Reflect.ownKeys(p(R))},set:function(R,W,G){var J=I(p(R),W);if(null==J?void 0:J.set)return J.set.call(R.k,G),!0;if(!R.P){var et=z(p(R),W),er=null==et?void 0:et[eu];if(er&&er.t===G)return R.o[W]=G,R.R[W]=!1,!0;if(c(G,et)&&(void 0!==G||u(R.t,W)))return!0;E(R),k(R)}return R.o[W]===G&&(void 0!==G||W in R.o)||Number.isNaN(G)&&Number.isNaN(R.o[W])||(R.o[W]=G,R.R[W]=!0),!0},deleteProperty:function(R,W){return void 0!==z(R.t,W)||W in R.t?(R.R[W]=!1,E(R),k(R)):delete R.R[W],R.o&&delete R.o[W],!0},getOwnPropertyDescriptor:function(R,W){var G=p(R),J=Reflect.getOwnPropertyDescriptor(G,W);return J?{writable:!0,configurable:1!==R.i||"length"!==W,enumerable:J.enumerable,value:G[W]}:J},defineProperty:function(){n(11)},getPrototypeOf:function(R){return Object.getPrototypeOf(R.t)},setPrototypeOf:function(){n(12)}},em={};i(eg,function(R,W){em[R]=function(){return arguments[0]=arguments[0][0],W.apply(this,arguments)}}),em.deleteProperty=function(R,W){return em.set.call(this,R,W,void 0)},em.set=function(R,W,G){return eg.set.call(this,R[0],W,G,R[0])};var ey=new(function(){function e(R){var W=this;this.O=es,this.D=!0,this.produce=function(R,G,J){if("function"==typeof R&&"function"!=typeof G){var et,er=G;return G=R,function(R){var J=this;void 0===R&&(R=er);for(var et=arguments.length,en=Array(et>1?et-1:0),ei=1;ei<et;ei++)en[ei-1]=arguments[ei];return W.produce(R,function(R){var W;return(W=G).call.apply(W,[J,R].concat(en))})}}if("function"!=typeof G&&n(6),void 0!==J&&"function"!=typeof J&&n(7),t(R)){var en=w(W),ei=N(W,R,void 0),eo=!0;try{et=G(ei),eo=!1}finally{eo?g(en):O(en)}return"undefined"!=typeof Promise&&et instanceof Promise?et.then(function(R){return j(en,J),P(R,en)},function(R){throw g(en),R}):(j(en,J),P(et,en))}if(!R||"object"!=typeof R){if(void 0===(et=G(R))&&(et=R),et===ec&&(et=void 0),W.D&&d(et,!0),J){var es=[],el=[];b("Patches").M(R,et,es,el),J(es,el)}return et}n(21,R)},this.produceWithPatches=function(R,G){if("function"==typeof R)return function(G){for(var J=arguments.length,et=Array(J>1?J-1:0),er=1;er<J;er++)et[er-1]=arguments[er];return W.produceWithPatches(G,function(W){return R.apply(void 0,[W].concat(et))})};var J,et,er=W.produce(R,G,function(R,W){J=R,et=W});return"undefined"!=typeof Promise&&er instanceof Promise?er.then(function(R){return[R,J,et]}):[er,J,et]},"boolean"==typeof(null==R?void 0:R.useProxies)&&this.setUseProxies(R.useProxies),"boolean"==typeof(null==R?void 0:R.autoFreeze)&&this.setAutoFreeze(R.autoFreeze)}var R=e.prototype;return R.createDraft=function(R){t(R)||n(8),r(R)&&(r(W=R)||n(22,W),R=function n(R){if(!t(R))return R;var W,G=R[eu],J=o(R);if(G){if(!G.P&&(G.i<4||!b("ES5").K(G)))return G.t;G.I=!0,W=D(R,J),G.I=!1}else W=D(R,J);return i(W,function(R,J){var et;G&&(2===o(et=G.t)?et.get(R):et[R])===J||f(W,R,n(J))}),3===J?new Set(W):W}(W));var W,G=w(this),J=N(this,R,void 0);return J[eu].C=!0,O(G),J},R.finishDraft=function(R,W){var G=(R&&R[eu]).A;return j(G,W),P(void 0,G)},R.setAutoFreeze=function(R){this.D=R},R.setUseProxies=function(R){R&&!es&&n(20),this.O=R},R.applyPatches=function(R,W){for(G=W.length-1;G>=0;G--){var G,J=W[G];if(0===J.path.length&&"replace"===J.op){R=J.value;break}}G>-1&&(W=W.slice(G+1));var et=b("Patches").$;return r(R)?et(R,W):this.produce(R,function(R){return et(R,W)})},e}()),ev=ey.produce;ey.produceWithPatches.bind(ey),ey.setAutoFreeze.bind(ey),ey.setUseProxies.bind(ey),ey.applyPatches.bind(ey),ey.createDraft.bind(ey),ey.finishDraft.bind(ey),G(14890),G(34155);var eb=(J=function(R,W){return(J=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(R,W){R.__proto__=W}||function(R,W){for(var G in W)Object.prototype.hasOwnProperty.call(W,G)&&(R[G]=W[G])})(R,W)},function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Class extends value "+String(W)+" is not a constructor or null");function __(){this.constructor=R}J(R,W),R.prototype=null===W?Object.create(W):(__.prototype=W.prototype,new __)}),__generator=function(R,W){var G,J,et,er,en={label:0,sent:function(){if(1&et[0])throw et[1];return et[1]},trys:[],ops:[]};return er={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(er[Symbol.iterator]=function(){return this}),er;function verb(er){return function(ei){return function(er){if(G)throw TypeError("Generator is already executing.");for(;en;)try{if(G=1,J&&(et=2&er[0]?J.return:er[0]?J.throw||((et=J.return)&&et.call(J),0):J.next)&&!(et=et.call(J,er[1])).done)return et;switch(J=0,et&&(er=[2&er[0],et.value]),er[0]){case 0:case 1:et=er;break;case 4:return en.label++,{value:er[1],done:!1};case 5:en.label++,J=er[1],er=[0];continue;case 7:er=en.ops.pop(),en.trys.pop();continue;default:if(!(et=(et=en.trys).length>0&&et[et.length-1])&&(6===er[0]||2===er[0])){en=0;continue}if(3===er[0]&&(!et||er[1]>et[0]&&er[1]<et[3])){en.label=er[1];break}if(6===er[0]&&en.label<et[1]){en.label=et[1],et=er;break}if(et&&en.label<et[2]){en.label=et[2],en.ops.push(er);break}et[2]&&en.ops.pop(),en.trys.pop();continue}er=W.call(R,en)}catch(R){er=[6,R],J=0}finally{G=et=0}if(5&er[0])throw er[1];return{value:er[0]?er[1]:void 0,done:!0}}([er,ei])}}},__spreadArray=function(R,W){for(var G=0,J=W.length,et=R.length;G<J;G++,et++)R[et]=W[G];return R},e_=Object.defineProperty,ex=Object.defineProperties,ew=Object.getOwnPropertyDescriptors,eS=Object.getOwnPropertySymbols,eT=Object.prototype.hasOwnProperty,eO=Object.prototype.propertyIsEnumerable,__defNormalProp=function(R,W,G){return W in R?e_(R,W,{enumerable:!0,configurable:!0,writable:!0,value:G}):R[W]=G},__spreadValues=function(R,W){for(var G in W||(W={}))eT.call(W,G)&&__defNormalProp(R,G,W[G]);if(eS)for(var J=0,et=eS(W);J<et.length;J++){var G=et[J];eO.call(W,G)&&__defNormalProp(R,G,W[G])}return R},__spreadProps=function(R,W){return ex(R,ew(W))};function createAction(R,W){function actionCreator(){for(var G=[],J=0;J<arguments.length;J++)G[J]=arguments[J];if(W){var et=W.apply(void 0,G);if(!et)throw Error("prepareAction did not return an object");return __spreadValues(__spreadValues({type:R,payload:et.payload},"meta"in et&&{meta:et.meta}),"error"in et&&{error:et.error})}return{type:R,payload:G[0]}}return actionCreator.toString=function(){return""+R},actionCreator.type=R,actionCreator.match=function(W){return W.type===R},actionCreator}function freezeDraftable(R){return t(R)?ev(R,function(){}):R}function executeReducerBuilderCallback(R){var W,G={},J=[],et={addCase:function(R,W){var J="string"==typeof R?R:R.type;if(!J)throw Error("`builder.addCase` cannot be called with an empty action type");if(J in G)throw Error("`builder.addCase` cannot be called with two reducers for the same action type");return G[J]=W,et},addMatcher:function(R,W){return J.push({matcher:R,reducer:W}),et},addDefaultCase:function(R){return W=R,et}};return R(et),[G,J,W]}function createSlice(R){var W,G=R.name;if(!G)throw Error("`name` is a required option for createSlice");var J="function"==typeof R.initialState?R.initialState:freezeDraftable(R.initialState),et=R.reducers||{},er=Object.keys(et),en={},ei={},eo={};function buildReducer(){var W="function"==typeof R.extraReducers?executeReducerBuilderCallback(R.extraReducers):[R.extraReducers],G=W[0],et=W[1],er=void 0===et?[]:et,en=W[2],eo=void 0===en?void 0:en,es=__spreadValues(__spreadValues({},void 0===G?{}:G),ei);return function(R,W,G,J){void 0===G&&(G=[]);var et,er="function"==typeof W?executeReducerBuilderCallback(W):[W,G,void 0],en=er[0],ei=er[1],eo=er[2];if("function"==typeof R)et=function(){return freezeDraftable(R())};else{var es=freezeDraftable(R);et=function(){return es}}function reducer(R,W){void 0===R&&(R=et());var G=__spreadArray([en[W.type]],ei.filter(function(R){return(0,R.matcher)(W)}).map(function(R){return R.reducer}));return 0===G.filter(function(R){return!!R}).length&&(G=[eo]),G.reduce(function(R,G){if(G){if(r(R)){var J=G(R,W);return void 0===J?R:J}if(t(R))return ev(R,function(R){return G(R,W)});var J=G(R,W);if(void 0===J){if(null===R)return R;throw Error("A case reducer on a non-draftable value must not return undefined")}return J}return R},R)}return reducer.getInitialState=et,reducer}(J,function(R){for(var W in es)R.addCase(W,es[W]);for(var G=0;G<er.length;G++){var J=er[G];R.addMatcher(J.matcher,J.reducer)}eo&&R.addDefaultCase(eo)})}return er.forEach(function(R){var W,J,er=et[R],es=G+"/"+R;"reducer"in er?(W=er.reducer,J=er.prepare):W=er,en[R]=W,ei[es]=W,eo[R]=J?createAction(es,J):createAction(es)}),{name:G,reducer:function(R,G){return W||(W=buildReducer()),W(R,G)},actions:eo,caseReducers:en,getInitialState:function(){return W||(W=buildReducer()),W.getInitialState()}}}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,function(R){function MiddlewareArray(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var J=R.apply(this,W)||this;return Object.setPrototypeOf(J,MiddlewareArray.prototype),J}eb(MiddlewareArray,R),Object.defineProperty(MiddlewareArray,Symbol.species,{get:function(){return MiddlewareArray},enumerable:!1,configurable:!0}),MiddlewareArray.prototype.concat=function(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return R.prototype.concat.apply(this,W)},MiddlewareArray.prototype.prepend=function(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];return 1===R.length&&Array.isArray(R[0])?new(MiddlewareArray.bind.apply(MiddlewareArray,__spreadArray([void 0],R[0].concat(this)))):new(MiddlewareArray.bind.apply(MiddlewareArray,__spreadArray([void 0],R.concat(this))))}}(Array),function(R){function EnhancerArray(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];var J=R.apply(this,W)||this;return Object.setPrototypeOf(J,EnhancerArray.prototype),J}eb(EnhancerArray,R),Object.defineProperty(EnhancerArray,Symbol.species,{get:function(){return EnhancerArray},enumerable:!1,configurable:!0}),EnhancerArray.prototype.concat=function(){for(var W=[],G=0;G<arguments.length;G++)W[G]=arguments[G];return R.prototype.concat.apply(this,W)},EnhancerArray.prototype.prepend=function(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];return 1===R.length&&Array.isArray(R[0])?new(EnhancerArray.bind.apply(EnhancerArray,__spreadArray([void 0],R[0].concat(this)))):new(EnhancerArray.bind.apply(EnhancerArray,__spreadArray([void 0],R.concat(this))))}}(Array);var nanoid=function(R){void 0===R&&(R=21);for(var W="",G=R;G--;)W+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return W},eP=["name","message","stack","code"],RejectWithValue=function(R,W){this.payload=R,this.meta=W},FulfillWithMeta=function(R,W){this.payload=R,this.meta=W},miniSerializeError=function(R){if("object"==typeof R&&null!==R){for(var W={},G=0;G<eP.length;G++){var J=eP[G];"string"==typeof R[J]&&(W[J]=R[J])}return W}return{message:String(R)}};function unwrapResult(R){if(R.meta&&R.meta.rejectedWithValue)throw R.payload;if(R.error)throw R.error;return R.payload}!function(){function createAsyncThunk2(R,W,G){var J=createAction(R+"/fulfilled",function(R,W,G,J){return{payload:R,meta:__spreadProps(__spreadValues({},J||{}),{arg:G,requestId:W,requestStatus:"fulfilled"})}}),et=createAction(R+"/pending",function(R,W,G){return{payload:void 0,meta:__spreadProps(__spreadValues({},G||{}),{arg:W,requestId:R,requestStatus:"pending"})}}),er=createAction(R+"/rejected",function(R,W,J,et,er){return{payload:et,error:(G&&G.serializeError||miniSerializeError)(R||"Rejected"),meta:__spreadProps(__spreadValues({},er||{}),{arg:J,requestId:W,rejectedWithValue:!!et,requestStatus:"rejected",aborted:(null==R?void 0:R.name)==="AbortError",condition:(null==R?void 0:R.name)==="ConditionError"})}}),en="undefined"!=typeof AbortController?AbortController:function(){function class_1(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return class_1.prototype.abort=function(){},class_1}();return Object.assign(function(R){return function(ei,eo,es){var ec,el=(null==G?void 0:G.idGenerator)?G.idGenerator(R):nanoid(),eu=new en;function abort(R){ec=R,eu.abort()}var ed=function(){var en,ed;return en=this,ed=function(){var en,ed,ep,ef,eh,eg;return __generator(this,function(em){switch(em.label){case 0:var ey;if(em.trys.push([0,4,,5]),!(null!==(ey=ef=null==(en=null==G?void 0:G.condition)?void 0:en.call(G,R,{getState:eo,extra:es}))&&"object"==typeof ey&&"function"==typeof ey.then))return[3,2];return[4,ef];case 1:ef=em.sent(),em.label=2;case 2:if(!1===ef||eu.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return eh=new Promise(function(R,W){return eu.signal.addEventListener("abort",function(){return W({name:"AbortError",message:ec||"Aborted"})})}),ei(et(el,R,null==(ed=null==G?void 0:G.getPendingMeta)?void 0:ed.call(G,{requestId:el,arg:R},{getState:eo,extra:es}))),[4,Promise.race([eh,Promise.resolve(W(R,{dispatch:ei,getState:eo,extra:es,requestId:el,signal:eu.signal,abort:abort,rejectWithValue:function(R,W){return new RejectWithValue(R,W)},fulfillWithValue:function(R,W){return new FulfillWithMeta(R,W)}})).then(function(W){if(W instanceof RejectWithValue)throw W;return W instanceof FulfillWithMeta?J(W.payload,el,R,W.meta):J(W,el,R)})])];case 3:return ep=em.sent(),[3,5];case 4:return ep=(eg=em.sent())instanceof RejectWithValue?er(null,el,R,eg.payload,eg.meta):er(eg,el,R),[3,5];case 5:return G&&!G.dispatchConditionRejection&&er.match(ep)&&ep.meta.condition||ei(ep),[2,ep]}})},new Promise(function(R,W){var fulfilled=function(R){try{step(ed.next(R))}catch(R){W(R)}},rejected=function(R){try{step(ed.throw(R))}catch(R){W(R)}},step=function(W){return W.done?R(W.value):Promise.resolve(W.value).then(fulfilled,rejected)};step((ed=ed.apply(en,null)).next())})}();return Object.assign(ed,{abort:abort,requestId:el,arg:R,unwrap:function(){return ed.then(unwrapResult)}})}},{pending:et,rejected:er,fulfilled:J,typePrefix:R})}createAsyncThunk2.withTypes=function(){return createAsyncThunk2}}();var eC="listenerMiddleware";createAction(eC+"/add"),createAction(eC+"/removeAll"),createAction(eC+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:void 0!==G.g?G.g:globalThis),"undefined"!=typeof window&&window.requestAnimationFrame&&window.requestAnimationFrame,function(){function t(W,G){var J=R[W];return J?J.enumerable=G:R[W]=J={configurable:!0,enumerable:G,get:function(){var R=this[eu];return eg.get(R,W)},set:function(R){var G=this[eu];eg.set(G,W,R)}},J}function e(R){for(var W=R.length-1;W>=0;W--){var G=R[W][eu];if(!G.P)switch(G.i){case 5:a(G)&&k(G);break;case 4:o(G)&&k(G)}}}function o(R){for(var W=R.t,G=R.k,J=ep(G),et=J.length-1;et>=0;et--){var er=J[et];if(er!==eu){var en=W[er];if(void 0===en&&!u(W,er))return!0;var ei=G[er],eo=ei&&ei[eu];if(eo?eo.t!==en:!c(ei,en))return!0}}var es=!!W[eu];return J.length!==ep(W).length+(es?0:1)}function a(R){var W=R.k;if(W.length!==R.t.length)return!0;var G=Object.getOwnPropertyDescriptor(W,W.length-1);if(G&&!G.get)return!0;for(var J=0;J<W.length;J++)if(!W.hasOwnProperty(J))return!0;return!1}var R={};eh.ES5||(eh.ES5={J:function(R,W){var G=Array.isArray(R),J=function(R,W){if(R){for(var G=Array(W.length),J=0;J<W.length;J++)Object.defineProperty(G,""+J,t(J,!0));return G}var et=ef(W);delete et[eu];for(var er=ep(et),en=0;en<er.length;en++){var ei=er[en];et[ei]=t(ei,R||!!et[ei].enumerable)}return Object.create(Object.getPrototypeOf(W),et)}(G,R),et={i:G?5:4,A:W?W.A:er,P:!1,I:!1,R:{},l:W,t:R,k:J,o:null,g:!1,C:!1};return Object.defineProperty(J,eu,{value:et,writable:!0}),J},S:function(R,W,G){G?r(W)&&W[eu].A===R&&e(R.p):(R.u&&function n(R){if(R&&"object"==typeof R){var W=R[eu];if(W){var G=W.t,J=W.k,et=W.R,er=W.i;if(4===er)i(J,function(R){R!==eu&&(void 0!==G[R]||u(G,R)?et[R]||n(J[R]):(et[R]=!0,k(W)))}),i(G,function(R){void 0!==J[R]||u(J,R)||(et[R]=!1,k(W))});else if(5===er){if(a(W)&&(k(W),et.length=!0),J.length<G.length)for(var en=J.length;en<G.length;en++)et[en]=!1;else for(var ei=G.length;ei<J.length;ei++)et[ei]=!0;for(var eo=Math.min(J.length,G.length),es=0;es<eo;es++)J.hasOwnProperty(es)||(et[es]=!0),void 0===et[es]&&n(J[es])}}}}(R.p[0]),e(R.p))},K:function(R){return 4===R.i?o(R):a(R)}})}()},6803:function(R){R.exports=function(){function _extends(){return(_extends=Object.assign||function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}var R="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function urlToId(R){return("image-"+R.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var W=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"]],G=["clip","crop","fill","fillmax","max","scale","min"],J=["top","bottom","left","right","center","focalpoint","entropy"],et=["format"],er=function(){function ImageUrlBuilder(R,W){this.options=void 0,this.options=R?_extends({},R.options||{},W||{}):_extends({},W||{})}var er=ImageUrlBuilder.prototype;return er.withOptions=function(R){var G=R.baseUrl||this.options.baseUrl,J={baseUrl:G};for(var et in R)R.hasOwnProperty(et)&&(J[function(R){for(var G,J=function(R,W){var G="undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(G)return(G=G.call(R)).next.bind(G);if(Array.isArray(R)||(G=function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(R))){G&&(R=G);var J=0;return function(){return J>=R.length?{done:!0}:{done:!1,value:R[J++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(W);!(G=J()).done;){var et=G.value,er=et[0],en=et[1];if(R===er||R===en)return er}return R}(et)]=R[et]);return new ImageUrlBuilder(this,_extends({baseUrl:G},J))},er.image=function(R){return this.withOptions({source:R})},er.dataset=function(R){return this.withOptions({dataset:R})},er.projectId=function(R){return this.withOptions({projectId:R})},er.bg=function(R){return this.withOptions({bg:R})},er.dpr=function(R){return this.withOptions(R&&1!==R?{dpr:R}:{})},er.width=function(R){return this.withOptions({width:R})},er.height=function(R){return this.withOptions({height:R})},er.focalPoint=function(R,W){return this.withOptions({focalPoint:{x:R,y:W}})},er.maxWidth=function(R){return this.withOptions({maxWidth:R})},er.minWidth=function(R){return this.withOptions({minWidth:R})},er.maxHeight=function(R){return this.withOptions({maxHeight:R})},er.minHeight=function(R){return this.withOptions({minHeight:R})},er.size=function(R,W){return this.withOptions({width:R,height:W})},er.blur=function(R){return this.withOptions({blur:R})},er.sharpen=function(R){return this.withOptions({sharpen:R})},er.rect=function(R,W,G,J){return this.withOptions({rect:{left:R,top:W,width:G,height:J}})},er.format=function(R){return this.withOptions({format:R})},er.invert=function(R){return this.withOptions({invert:R})},er.orientation=function(R){return this.withOptions({orientation:R})},er.quality=function(R){return this.withOptions({quality:R})},er.forceDownload=function(R){return this.withOptions({download:R})},er.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},er.flipVertical=function(){return this.withOptions({flipVertical:!0})},er.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},er.fit=function(R){if(-1===G.indexOf(R))throw Error('Invalid fit mode "'+R+'"');return this.withOptions({fit:R})},er.crop=function(R){if(-1===J.indexOf(R))throw Error('Invalid crop mode "'+R+'"');return this.withOptions({crop:R})},er.saturation=function(R){return this.withOptions({saturation:R})},er.auto=function(R){if(-1===et.indexOf(R))throw Error('Invalid auto mode "'+R+'"');return this.withOptions({auto:R})},er.pad=function(R){return this.withOptions({pad:R})},er.url=function(){return function(G){var J=_extends({},G||{}),et=J.source;delete J.source;var er=function(R){var W;if(!R)return null;if("string"==typeof R&&/^https?:\/\//.test(""+R))W={asset:{_ref:urlToId(R)}};else if("string"==typeof R)W={asset:{_ref:R}};else if(R&&"string"==typeof R._ref)W={asset:R};else if(R&&"string"==typeof R._id)W={asset:{_ref:R._id||""}};else if(R&&R.asset&&"string"==typeof R.asset.url)W={asset:{_ref:urlToId(R.asset.url)}};else{if("object"!=typeof R.asset)return null;W=_extends({},R)}return R.crop&&(W.crop=R.crop),R.hotspot&&(W.hotspot=R.hotspot),function(R){if(R.crop&&R.hotspot)return R;var W=_extends({},R);return W.crop||(W.crop={left:0,top:0,bottom:0,right:0}),W.hotspot||(W.hotspot={x:.5,y:.5,height:1,width:1}),W}(W)}(et);if(!er)throw Error("Unable to resolve image URL from source ("+JSON.stringify(et)+")");var en=function(W){var G=W.split("-"),J=G[1],et=G[2],er=G[3];if(!J||!et||!er)throw Error("Malformed asset _ref '"+W+"'. Expected an id like \""+R+'".');var en=et.split("x"),ei=en[0],eo=en[1],es=+ei,ec=+eo;if(!(isFinite(es)&&isFinite(ec)))throw Error("Malformed asset _ref '"+W+"'. Expected an id like \""+R+'".');return{id:J,width:es,height:ec,format:er}}(er.asset._ref||er.asset._id||""),ei=Math.round(er.crop.left*en.width),eo=Math.round(er.crop.top*en.height),es={left:ei,top:eo,width:Math.round(en.width-er.crop.right*en.width-ei),height:Math.round(en.height-er.crop.bottom*en.height-eo)},ec=er.hotspot.height*en.height/2,el=er.hotspot.width*en.width/2,eu=er.hotspot.x*en.width,ed=er.hotspot.y*en.height;return J.rect||J.focalPoint||J.ignoreImageParams||J.crop||(J=_extends({},J,function(R,W){var G,J=W.width,et=W.height;if(!(J&&et))return{width:J,height:et,rect:R.crop};var er=R.crop,en=R.hotspot,ei=J/et;if(er.width/er.height>ei){var eo=Math.round(er.height),es=Math.round(eo*ei),ec=Math.max(0,Math.round(er.top)),el=Math.max(0,Math.round(Math.round((en.right-en.left)/2+en.left)-es/2));el<er.left?el=er.left:el+es>er.left+er.width&&(el=er.left+er.width-es),G={left:el,top:ec,width:es,height:eo}}else{var eu=er.width,ed=Math.round(eu/ei),ep=Math.max(0,Math.round(er.left)),ef=Math.max(0,Math.round(Math.round((en.bottom-en.top)/2+en.top)-ed/2));ef<er.top?ef=er.top:ef+ed>er.top+er.height&&(ef=er.top+er.height-ed),G={left:ep,top:ef,width:eu,height:ed}}return{width:J,height:et,rect:G}}({crop:es,hotspot:{left:eu-el,top:ed-ec,right:eu+el,bottom:ed+ec}},J))),function(R){var G=(R.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),J=R.asset.id+"-"+R.asset.width+"x"+R.asset.height+"."+R.asset.format,et=G+"/images/"+R.projectId+"/"+R.dataset+"/"+J,er=[];if(R.rect){var en=R.rect,ei=en.left,eo=en.top,es=en.width,ec=en.height;(0!==ei||0!==eo||ec!==R.asset.height||es!==R.asset.width)&&er.push("rect="+ei+","+eo+","+es+","+ec)}R.bg&&er.push("bg="+R.bg),R.focalPoint&&(er.push("fp-x="+R.focalPoint.x),er.push("fp-y="+R.focalPoint.y));var el=[R.flipHorizontal&&"h",R.flipVertical&&"v"].filter(Boolean).join("");return(el&&er.push("flip="+el),W.forEach(function(W){var G=W[0],J=W[1];void 0!==R[G]?er.push(J+"="+encodeURIComponent(R[G])):void 0!==R[J]&&er.push(J+"="+encodeURIComponent(R[J]))}),0===er.length)?et:et+"?"+er.join("&")}(_extends({},J,{asset:en}))}(this.options)},er.toString=function(){return this.url()},ImageUrlBuilder}();return function(R){if(R&&"config"in R&&"function"==typeof R.config){var W=R.config(),G=W.apiHost,J=W.projectId,et=W.dataset;return new er(null,{baseUrl:(G||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:J,dataset:et})}if(R&&"clientConfig"in R&&"object"==typeof R.clientConfig){var en=R.clientConfig,ei=en.apiHost,eo=en.projectId,es=en.dataset;return new er(null,{baseUrl:(ei||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:eo,dataset:es})}return new er(null,R)}}()},13490:function(R,W,G){"use strict";var J=G(58908);R.exports=function(R,W){return void 0===W&&(W=!1),function(G,et,er){if(G){R(G);return}if(et.statusCode>=400&&et.statusCode<=599){var en=er;if(W){if(J.TextDecoder){var ei,eo=(void 0===(ei=et.headers&&et.headers["content-type"])&&(ei=""),ei.toLowerCase().split(";").reduce(function(R,W){var G=W.split("="),J=G[0],et=G[1];return"charset"===J.trim()?et.trim():R},"utf-8"));try{en=new TextDecoder(eo).decode(er)}catch(R){}}else en=String.fromCharCode.apply(null,new Uint8Array(er))}R({cause:en});return}R(null,er)}}},9603:function(R,W,G){"use strict";var J=G(58908),et=G(10434),er=G(27376);createXHR.httpHandler=G(13490);/**
 * @license
 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
 * Copyright (c) 2014 David Björklund
 * Available under the MIT license
 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
 */var parseHeaders=function(R){var W={};return R&&R.trim().split("\n").forEach(function(R){var G=R.indexOf(":"),J=R.slice(0,G).trim().toLowerCase(),et=R.slice(G+1).trim();void 0===W[J]?W[J]=et:Array.isArray(W[J])?W[J].push(et):W[J]=[W[J],et]}),W};function initParams(R,W,G){var J=R;return er(W)?(G=W,"string"==typeof R&&(J={uri:R})):J=et({},W,{uri:R}),J.callback=G,J}function createXHR(R,W,G){return _createXHR(W=initParams(R,W,G))}function _createXHR(R){if(void 0===R.callback)throw Error("callback argument missing");var W,G,J,et=!1,callback=function(W,G,J){et||(et=!0,R.callback(W,G,J))};function errorFunc(R){return clearTimeout(J),R instanceof Error||(R=Error(""+(R||"Unknown XMLHttpRequest Error"))),R.statusCode=0,callback(R,eu)}function loadFunc(){if(!G){clearTimeout(J);var W,et=eu,eo=null;return 0!==(W=R.useXDR&&void 0===er.status?200:1223===er.status?204:er.status)?(et={body:function(){var R=void 0;if(R=er.response?er.response:er.responseText||function(R){try{if("document"===R.responseType)return R.responseXML;var W=R.responseXML&&"parsererror"===R.responseXML.documentElement.nodeName;if(""===R.responseType&&!W)return R.responseXML}catch(R){}return null}(er),el)try{R=JSON.parse(R)}catch(R){}return R}(),statusCode:W,method:ei,headers:{},url:en,rawRequest:er},er.getAllResponseHeaders&&(et.headers=parseHeaders(er.getAllResponseHeaders()))):eo=Error("Internal XMLHttpRequest Error"),callback(eo,et,et.body)}}var er=R.xhr||null;er||(er=R.cors||R.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var en=er.url=R.uri||R.url,ei=er.method=R.method||"GET",eo=R.body||R.data,es=er.headers=R.headers||{},ec=!!R.sync,el=!1,eu={body:void 0,headers:{},statusCode:0,method:ei,url:en,rawRequest:er};if("json"in R&&!1!==R.json&&(el=!0,es.accept||es.Accept||(es.Accept="application/json"),"GET"!==ei&&"HEAD"!==ei&&(es["content-type"]||es["Content-Type"]||(es["Content-Type"]="application/json"),eo=JSON.stringify(!0===R.json?eo:R.json))),er.onreadystatechange=function(){4===er.readyState&&setTimeout(loadFunc,0)},er.onload=loadFunc,er.onerror=errorFunc,er.onprogress=function(){},er.onabort=function(){G=!0},er.ontimeout=errorFunc,er.open(ei,en,!ec,R.username,R.password),ec||(er.withCredentials=!!R.withCredentials),!ec&&R.timeout>0&&(J=setTimeout(function(){if(!G){G=!0,er.abort("timeout");var R=Error("XMLHttpRequest timeout");R.code="ETIMEDOUT",errorFunc(R)}},R.timeout)),er.setRequestHeader)for(W in es)es.hasOwnProperty(W)&&er.setRequestHeader(W,es[W]);else if(R.headers&&!function(R){for(var W in R)if(R.hasOwnProperty(W))return!1;return!0}(R.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in R&&(er.responseType=R.responseType),"beforeSend"in R&&"function"==typeof R.beforeSend&&R.beforeSend(er),er.send(eo||null),er}R.exports=createXHR,R.exports.default=createXHR,createXHR.XMLHttpRequest=J.XMLHttpRequest||function(){},createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:J.XDomainRequest,function(R,W){for(var G=0;G<R.length;G++)W(R[G])}(["get","put","post","patch","head","delete"],function(R){createXHR["delete"===R?"del":R]=function(W,G,J){return(G=initParams(W,G,J)).method=R.toUpperCase(),_createXHR(G)}})},72167:function(R,W){"use strict";function freeze(R,W){return void 0===W&&(W=Object),W&&"function"==typeof W.freeze?W.freeze(R):R}var G=freeze({HTML:"text/html",isHTML:function(R){return R===G.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),J=freeze({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(R){return R===J.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});W.assign=function(R,W){if(null===R||"object"!=typeof R)throw TypeError("target is not an object");for(var G in W)Object.prototype.hasOwnProperty.call(W,G)&&(R[G]=W[G]);return R},W.find=function(R,W,G){if(void 0===G&&(G=Array.prototype),R&&"function"==typeof G.find)return G.find.call(R,W);for(var J=0;J<R.length;J++)if(Object.prototype.hasOwnProperty.call(R,J)){var et=R[J];if(W.call(void 0,et,J,R))return et}},W.freeze=freeze,W.MIME_TYPE=G,W.NAMESPACE=J},86129:function(R,W,G){var J=G(72167),et=G(41146),er=G(31045),en=G(76925),ei=et.DOMImplementation,eo=J.NAMESPACE,es=en.ParseError,ec=en.XMLReader;function normalizeLineEndings(R){return R.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function DOMParser(R){this.options=R||{locator:{}}}function DOMHandler(){this.cdata=!1}function position(R,W){W.lineNumber=R.lineNumber,W.columnNumber=R.columnNumber}function _locator(R){if(R)return"\n@"+(R.systemId||"")+"#[line:"+R.lineNumber+",col:"+R.columnNumber+"]"}function _toString(R,W,G){return"string"==typeof R?R.substr(W,G):R.length>=W+G||W?new java.lang.String(R,W,G)+"":R}function appendElement(R,W){R.currentElement?R.currentElement.appendChild(W):R.doc.appendChild(W)}DOMParser.prototype.parseFromString=function(R,W){var G=this.options,J=new ec,et=G.domBuilder||new DOMHandler,en=G.errorHandler,ei=G.locator,es=G.xmlns||{},el=/\/x?html?$/.test(W),eu=el?er.HTML_ENTITIES:er.XML_ENTITIES;ei&&et.setDocumentLocator(ei),J.errorHandler=function(R,W,G){if(!R){if(W instanceof DOMHandler)return W;R=W}var J={},et=R instanceof Function;function build(W){var er=R[W];!er&&et&&(er=2==R.length?function(G){R(W,G)}:R),J[W]=er&&function(R){er("[xmldom "+W+"]	"+R+_locator(G))}||function(){}}return G=G||{},build("warning"),build("error"),build("fatalError"),J}(en,et,ei),J.domBuilder=G.domBuilder||et,el&&(es[""]=eo.HTML),es.xml=es.xml||eo.XML;var ed=G.normalizeLineEndings||normalizeLineEndings;return R&&"string"==typeof R?J.parse(ed(R),es,eu):J.errorHandler.error("invalid doc source"),et.doc},DOMHandler.prototype={startDocument:function(){this.doc=new ei().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(R,W,G,J){var et=this.doc,er=et.createElementNS(R,G||W),en=J.length;appendElement(this,er),this.currentElement=er,this.locator&&position(this.locator,er);for(var ei=0;ei<en;ei++){var R=J.getURI(ei),eo=J.getValue(ei),G=J.getQName(ei),es=et.createAttributeNS(R,G);this.locator&&position(J.getLocator(ei),es),es.value=es.nodeValue=eo,er.setAttributeNode(es)}},endElement:function(R,W,G){var J=this.currentElement;J.tagName,this.currentElement=J.parentNode},startPrefixMapping:function(R,W){},endPrefixMapping:function(R){},processingInstruction:function(R,W){var G=this.doc.createProcessingInstruction(R,W);this.locator&&position(this.locator,G),appendElement(this,G)},ignorableWhitespace:function(R,W,G){},characters:function(R,W,G){if(R=_toString.apply(this,arguments)){if(this.cdata)var J=this.doc.createCDATASection(R);else var J=this.doc.createTextNode(R);this.currentElement?this.currentElement.appendChild(J):/^\s*$/.test(R)&&this.doc.appendChild(J),this.locator&&position(this.locator,J)}},skippedEntity:function(R){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(R){(this.locator=R)&&(R.lineNumber=0)},comment:function(R,W,G){R=_toString.apply(this,arguments);var J=this.doc.createComment(R);this.locator&&position(this.locator,J),appendElement(this,J)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(R,W,G){var J=this.doc.implementation;if(J&&J.createDocumentType){var et=J.createDocumentType(R,W,G);this.locator&&position(this.locator,et),appendElement(this,et),this.doc.doctype=et}},warning:function(R){console.warn("[xmldom warning]	"+R,_locator(this.locator))},error:function(R){console.error("[xmldom error]	"+R,_locator(this.locator))},fatalError:function(R){throw new es(R,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(R){DOMHandler.prototype[R]=function(){return null}}),W.DOMParser=DOMParser},41146:function(R,W,G){var J=G(72167),et=J.find,er=J.NAMESPACE;function notEmptyString(R){return""!==R}function orderedSetReducer(R,W){return R.hasOwnProperty(W)||(R[W]=!0),R}function toOrderedSet(R){return R?Object.keys((R?R.split(/[\t\n\f\r ]+/).filter(notEmptyString):[]).reduce(orderedSetReducer,{})):[]}function copy(R,W){for(var G in R)Object.prototype.hasOwnProperty.call(R,G)&&(W[G]=R[G])}function _extends(R,W){var G=R.prototype;if(!(G instanceof W)){function t(){}t.prototype=W.prototype,copy(G,t=new t),R.prototype=G=t}G.constructor!=R&&("function"!=typeof R&&console.error("unknown Class:"+R),G.constructor=R)}var en={},ei=en.ELEMENT_NODE=1,eo=en.ATTRIBUTE_NODE=2,es=en.TEXT_NODE=3,ec=en.CDATA_SECTION_NODE=4,el=en.ENTITY_REFERENCE_NODE=5,eu=en.ENTITY_NODE=6,ed=en.PROCESSING_INSTRUCTION_NODE=7,ep=en.COMMENT_NODE=8,ef=en.DOCUMENT_NODE=9,eh=en.DOCUMENT_TYPE_NODE=10,eg=en.DOCUMENT_FRAGMENT_NODE=11,em=en.NOTATION_NODE=12,ey={},ev={};ey.INDEX_SIZE_ERR=(ev[1]="Index size error",1),ey.DOMSTRING_SIZE_ERR=(ev[2]="DOMString size error",2);var eb=ey.HIERARCHY_REQUEST_ERR=(ev[3]="Hierarchy request error",3);ey.WRONG_DOCUMENT_ERR=(ev[4]="Wrong document",4),ey.INVALID_CHARACTER_ERR=(ev[5]="Invalid character",5),ey.NO_DATA_ALLOWED_ERR=(ev[6]="No data allowed",6),ey.NO_MODIFICATION_ALLOWED_ERR=(ev[7]="No modification allowed",7);var e_=ey.NOT_FOUND_ERR=(ev[8]="Not found",8);ey.NOT_SUPPORTED_ERR=(ev[9]="Not supported",9);var ex=ey.INUSE_ATTRIBUTE_ERR=(ev[10]="Attribute in use",10);function DOMException(R,W){if(W instanceof Error)var G=W;else G=this,Error.call(this,ev[R]),this.message=ev[R],Error.captureStackTrace&&Error.captureStackTrace(this,DOMException);return G.code=R,W&&(this.message=this.message+": "+W),G}function NodeList(){}function LiveNodeList(R,W){this._node=R,this._refresh=W,_updateLiveList(this)}function _updateLiveList(R){var W=R._node._inc||R._node.ownerDocument._inc;if(R._inc!==W){var G=R._refresh(R._node);if(__set__(R,"length",G.length),!R.$$length||G.length<R.$$length)for(var J=G.length;(J in R);J++)Object.prototype.hasOwnProperty.call(R,J)&&delete R[J];copy(G,R),R._inc=W}}function NamedNodeMap(){}function _findNodeIndex(R,W){for(var G=R.length;G--;)if(R[G]===W)return G}function _addNamedNode(R,W,G,J){if(J?W[_findNodeIndex(W,J)]=G:W[W.length++]=G,R){G.ownerElement=R;var et=R.ownerDocument;et&&(J&&_onRemoveAttribute(et,R,J),et&&et._inc++,G.namespaceURI===er.XMLNS&&(R._nsMap[G.prefix?G.localName:""]=G.value))}}function _removeNamedNode(R,W,G){var J=_findNodeIndex(W,G);if(J>=0){for(var et=W.length-1;J<et;)W[J]=W[++J];if(W.length=et,R){var er=R.ownerDocument;er&&(_onRemoveAttribute(er,R,G),G.ownerElement=null)}}else throw new DOMException(e_,Error(R.tagName+"@"+G))}function DOMImplementation(){}function Node(){}function _xmlEncoder(R){return"<"==R&&"&lt;"||">"==R&&"&gt;"||"&"==R&&"&amp;"||'"'==R&&"&quot;"||"&#"+R.charCodeAt()+";"}function _visitNode(R,W){if(W(R))return!0;if(R=R.firstChild)do if(_visitNode(R,W))return!0;while(R=R.nextSibling)}function Document(){this.ownerDocument=this}function _onRemoveAttribute(R,W,G,J){R&&R._inc++,G.namespaceURI===er.XMLNS&&delete W._nsMap[G.prefix?G.localName:""]}function _onUpdateChild(R,W,G){if(R&&R._inc){R._inc++;var J=W.childNodes;if(G)J[J.length++]=G;else{for(var et=W.firstChild,er=0;et;)J[er++]=et,et=et.nextSibling;J.length=er,delete J[J.length]}}}function _removeChild(R,W){var G=W.previousSibling,J=W.nextSibling;return G?G.nextSibling=J:R.firstChild=J,J?J.previousSibling=G:R.lastChild=G,W.parentNode=null,W.previousSibling=null,W.nextSibling=null,_onUpdateChild(R.ownerDocument,R),W}function isDocTypeNode(R){return R&&R.nodeType===Node.DOCUMENT_TYPE_NODE}function isElementNode(R){return R&&R.nodeType===Node.ELEMENT_NODE}function isTextNode(R){return R&&R.nodeType===Node.TEXT_NODE}function isElementInsertionPossible(R,W){var G=R.childNodes||[];if(et(G,isElementNode)||isDocTypeNode(W))return!1;var J=et(G,isDocTypeNode);return!(W&&J&&G.indexOf(J)>G.indexOf(W))}function isElementReplacementPossible(R,W){var G=R.childNodes||[];if(et(G,function(R){return isElementNode(R)&&R!==W}))return!1;var J=et(G,isDocTypeNode);return!(W&&J&&G.indexOf(J)>G.indexOf(W))}function assertPreReplacementValidityInDocument(R,W,G){var J=R.childNodes||[],er=W.childNodes||[];if(W.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var en=er.filter(isElementNode);if(en.length>1||et(er,isTextNode))throw new DOMException(eb,"More than one element or text in fragment");if(1===en.length&&!isElementReplacementPossible(R,G))throw new DOMException(eb,"Element in fragment can not be inserted before doctype")}if(isElementNode(W)&&!isElementReplacementPossible(R,G))throw new DOMException(eb,"Only one element can be added and only after doctype");if(isDocTypeNode(W)){if(et(J,function(R){return isDocTypeNode(R)&&R!==G}))throw new DOMException(eb,"Only one doctype is allowed");var ei=et(J,isElementNode);if(G&&J.indexOf(ei)<J.indexOf(G))throw new DOMException(eb,"Doctype can only be inserted before an element")}}function _insertBefore(R,W,G,J){!function(R,W,G){if(!(R&&(R.nodeType===Node.DOCUMENT_NODE||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE||R.nodeType===Node.ELEMENT_NODE)))throw new DOMException(eb,"Unexpected parent node type "+R.nodeType);if(G&&G.parentNode!==R)throw new DOMException(e_,"child not in parent");if(!(W&&(isElementNode(W)||isTextNode(W)||isDocTypeNode(W)||W.nodeType===Node.DOCUMENT_FRAGMENT_NODE||W.nodeType===Node.COMMENT_NODE||W.nodeType===Node.PROCESSING_INSTRUCTION_NODE))||isDocTypeNode(W)&&R.nodeType!==Node.DOCUMENT_NODE)throw new DOMException(eb,"Unexpected node type "+W.nodeType+" for parent node type "+R.nodeType)}(R,W,G),R.nodeType===Node.DOCUMENT_NODE&&(J||function(R,W,G){var J=R.childNodes||[],er=W.childNodes||[];if(W.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var en=er.filter(isElementNode);if(en.length>1||et(er,isTextNode))throw new DOMException(eb,"More than one element or text in fragment");if(1===en.length&&!isElementInsertionPossible(R,G))throw new DOMException(eb,"Element in fragment can not be inserted before doctype")}if(isElementNode(W)&&!isElementInsertionPossible(R,G))throw new DOMException(eb,"Only one element can be added and only after doctype");if(isDocTypeNode(W)){if(et(J,isDocTypeNode))throw new DOMException(eb,"Only one doctype is allowed");var ei=et(J,isElementNode);if(G&&J.indexOf(ei)<J.indexOf(G))throw new DOMException(eb,"Doctype can only be inserted before an element");if(!G&&ei)throw new DOMException(eb,"Doctype can not be appended since element is present")}})(R,W,G);var er=W.parentNode;if(er&&er.removeChild(W),W.nodeType===eg){var en=W.firstChild;if(null==en)return W;var ei=W.lastChild}else en=ei=W;var eo=G?G.previousSibling:R.lastChild;en.previousSibling=eo,ei.nextSibling=G,eo?eo.nextSibling=en:R.firstChild=en,null==G?R.lastChild=ei:G.previousSibling=ei;do en.parentNode=R;while(en!==ei&&(en=en.nextSibling));return _onUpdateChild(R.ownerDocument||R,R),W.nodeType==eg&&(W.firstChild=W.lastChild=null),W}function Element(){this._nsMap={}}function Attr(){}function CharacterData(){}function Text(){}function Comment(){}function CDATASection(){}function DocumentType(){}function Notation(){}function Entity(){}function EntityReference(){}function DocumentFragment(){}function ProcessingInstruction(){}function XMLSerializer(){}function nodeSerializeToString(R,W){var G=[],J=9==this.nodeType&&this.documentElement||this,et=J.prefix,er=J.namespaceURI;if(er&&null==et){var et=J.lookupPrefix(er);if(null==et)var en=[{namespace:er,prefix:null}]}return serializeToString(this,G,R,W,en),G.join("")}function needNamespaceDefine(R,W,G){var J=R.prefix||"",et=R.namespaceURI;if(!et||"xml"===J&&et===er.XML||et===er.XMLNS)return!1;for(var en=G.length;en--;){var ei=G[en];if(ei.prefix===J)return ei.namespace!==et}return!0}function addSerializedAttribute(R,W,G){R.push(" ",W,'="',G.replace(/[<>&"\t\n\r]/g,_xmlEncoder),'"')}function serializeToString(R,W,G,J,et){if(et||(et=[]),J){if(!(R=J(R)))return;if("string"==typeof R){W.push(R);return}}switch(R.nodeType){case ei:var en,eu=R.attributes,em=eu.length,ey=R.firstChild,ev=R.tagName;G=er.isHTML(R.namespaceURI)||G;var eb=ev;if(!G&&!R.prefix&&R.namespaceURI){for(var e_=0;e_<eu.length;e_++)if("xmlns"===eu.item(e_).name){en=eu.item(e_).value;break}if(!en)for(var ex=et.length-1;ex>=0;ex--){var ew=et[ex];if(""===ew.prefix&&ew.namespace===R.namespaceURI){en=ew.namespace;break}}if(en!==R.namespaceURI)for(var ex=et.length-1;ex>=0;ex--){var ew=et[ex];if(ew.namespace===R.namespaceURI){ew.prefix&&(eb=ew.prefix+":"+ev);break}}}W.push("<",eb);for(var eS=0;eS<em;eS++){var eT=eu.item(eS);"xmlns"==eT.prefix?et.push({prefix:eT.localName,namespace:eT.value}):"xmlns"==eT.nodeName&&et.push({prefix:"",namespace:eT.value})}for(var eS=0;eS<em;eS++){var eT=eu.item(eS);if(needNamespaceDefine(eT,G,et)){var eO=eT.prefix||"",eP=eT.namespaceURI;addSerializedAttribute(W,eO?"xmlns:"+eO:"xmlns",eP),et.push({prefix:eO,namespace:eP})}serializeToString(eT,W,G,J,et)}if(ev===eb&&needNamespaceDefine(R,G,et)){var eO=R.prefix||"",eP=R.namespaceURI;addSerializedAttribute(W,eO?"xmlns:"+eO:"xmlns",eP),et.push({prefix:eO,namespace:eP})}if(ey||G&&!/^(?:meta|link|img|br|hr|input)$/i.test(ev)){if(W.push(">"),G&&/^script$/i.test(ev))for(;ey;)ey.data?W.push(ey.data):serializeToString(ey,W,G,J,et.slice()),ey=ey.nextSibling;else for(;ey;)serializeToString(ey,W,G,J,et.slice()),ey=ey.nextSibling;W.push("</",eb,">")}else W.push("/>");return;case ef:case eg:for(var ey=R.firstChild;ey;)serializeToString(ey,W,G,J,et.slice()),ey=ey.nextSibling;return;case eo:return addSerializedAttribute(W,R.name,R.value);case es:return W.push(R.data.replace(/[<&>]/g,_xmlEncoder));case ec:return W.push("<![CDATA[",R.data,"]]>");case ep:return W.push("<!--",R.data,"-->");case eh:var eC=R.publicId,ek=R.systemId;if(W.push("<!DOCTYPE ",R.name),eC)W.push(" PUBLIC ",eC),ek&&"."!=ek&&W.push(" ",ek),W.push(">");else if(ek&&"."!=ek)W.push(" SYSTEM ",ek,">");else{var eE=R.internalSubset;eE&&W.push(" [",eE,"]"),W.push(">")}return;case ed:return W.push("<?",R.target," ",R.data,"?>");case el:return W.push("&",R.nodeName,";");default:W.push("??",R.nodeName)}}function __set__(R,W,G){R[W]=G}ey.INVALID_STATE_ERR=(ev[11]="Invalid state",11),ey.SYNTAX_ERR=(ev[12]="Syntax error",12),ey.INVALID_MODIFICATION_ERR=(ev[13]="Invalid modification",13),ey.NAMESPACE_ERR=(ev[14]="Invalid namespace",14),ey.INVALID_ACCESS_ERR=(ev[15]="Invalid access",15),DOMException.prototype=Error.prototype,copy(ey,DOMException),NodeList.prototype={length:0,item:function(R){return R>=0&&R<this.length?this[R]:null},toString:function(R,W){for(var G=[],J=0;J<this.length;J++)serializeToString(this[J],G,R,W);return G.join("")},filter:function(R){return Array.prototype.filter.call(this,R)},indexOf:function(R){return Array.prototype.indexOf.call(this,R)}},LiveNodeList.prototype.item=function(R){return _updateLiveList(this),this[R]||null},_extends(LiveNodeList,NodeList),NamedNodeMap.prototype={length:0,item:NodeList.prototype.item,getNamedItem:function(R){for(var W=this.length;W--;){var G=this[W];if(G.nodeName==R)return G}},setNamedItem:function(R){var W=R.ownerElement;if(W&&W!=this._ownerElement)throw new DOMException(ex);var G=this.getNamedItem(R.nodeName);return _addNamedNode(this._ownerElement,this,R,G),G},setNamedItemNS:function(R){var W,G=R.ownerElement;if(G&&G!=this._ownerElement)throw new DOMException(ex);return W=this.getNamedItemNS(R.namespaceURI,R.localName),_addNamedNode(this._ownerElement,this,R,W),W},removeNamedItem:function(R){var W=this.getNamedItem(R);return _removeNamedNode(this._ownerElement,this,W),W},removeNamedItemNS:function(R,W){var G=this.getNamedItemNS(R,W);return _removeNamedNode(this._ownerElement,this,G),G},getNamedItemNS:function(R,W){for(var G=this.length;G--;){var J=this[G];if(J.localName==W&&J.namespaceURI==R)return J}return null}},DOMImplementation.prototype={hasFeature:function(R,W){return!0},createDocument:function(R,W,G){var J=new Document;if(J.implementation=this,J.childNodes=new NodeList,J.doctype=G||null,G&&J.appendChild(G),W){var et=J.createElementNS(R,W);J.appendChild(et)}return J},createDocumentType:function(R,W,G){var J=new DocumentType;return J.name=R,J.nodeName=R,J.publicId=W||"",J.systemId=G||"",J}},Node.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(R,W){return _insertBefore(this,R,W)},replaceChild:function(R,W){_insertBefore(this,R,W,assertPreReplacementValidityInDocument),W&&this.removeChild(W)},removeChild:function(R){return _removeChild(this,R)},appendChild:function(R){return this.insertBefore(R,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(R){return function cloneNode(R,W,G){var J=new W.constructor;for(var et in W)if(Object.prototype.hasOwnProperty.call(W,et)){var er=W[et];"object"!=typeof er&&er!=J[et]&&(J[et]=er)}switch(W.childNodes&&(J.childNodes=new NodeList),J.ownerDocument=R,J.nodeType){case ei:var en=W.attributes,es=J.attributes=new NamedNodeMap,ec=en.length;es._ownerElement=J;for(var el=0;el<ec;el++)J.setAttributeNode(cloneNode(R,en.item(el),!0));break;case eo:G=!0}if(G)for(var eu=W.firstChild;eu;)J.appendChild(cloneNode(R,eu,G)),eu=eu.nextSibling;return J}(this.ownerDocument||this,this,R)},normalize:function(){for(var R=this.firstChild;R;){var W=R.nextSibling;W&&W.nodeType==es&&R.nodeType==es?(this.removeChild(W),R.appendData(W.data)):(R.normalize(),R=W)}},isSupported:function(R,W){return this.ownerDocument.implementation.hasFeature(R,W)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(R){for(var W=this;W;){var G=W._nsMap;if(G){for(var J in G)if(Object.prototype.hasOwnProperty.call(G,J)&&G[J]===R)return J}W=W.nodeType==eo?W.ownerDocument:W.parentNode}return null},lookupNamespaceURI:function(R){for(var W=this;W;){var G=W._nsMap;if(G&&Object.prototype.hasOwnProperty.call(G,R))return G[R];W=W.nodeType==eo?W.ownerDocument:W.parentNode}return null},isDefaultNamespace:function(R){return null==this.lookupPrefix(R)}},copy(en,Node),copy(en,Node.prototype),Document.prototype={nodeName:"#document",nodeType:ef,doctype:null,documentElement:null,_inc:1,insertBefore:function(R,W){if(R.nodeType==eg){for(var G=R.firstChild;G;){var J=G.nextSibling;this.insertBefore(G,W),G=J}return R}return _insertBefore(this,R,W),R.ownerDocument=this,null===this.documentElement&&R.nodeType===ei&&(this.documentElement=R),R},removeChild:function(R){return this.documentElement==R&&(this.documentElement=null),_removeChild(this,R)},replaceChild:function(R,W){_insertBefore(this,R,W,assertPreReplacementValidityInDocument),R.ownerDocument=this,W&&this.removeChild(W),isElementNode(R)&&(this.documentElement=R)},importNode:function(R,W){return function importNode(R,W,G){var J;switch(W.nodeType){case ei:(J=W.cloneNode(!1)).ownerDocument=R;case eg:break;case eo:G=!0}if(J||(J=W.cloneNode(!1)),J.ownerDocument=R,J.parentNode=null,G)for(var et=W.firstChild;et;)J.appendChild(importNode(R,et,G)),et=et.nextSibling;return J}(this,R,W)},getElementById:function(R){var W=null;return _visitNode(this.documentElement,function(G){if(G.nodeType==ei&&G.getAttribute("id")==R)return W=G,!0}),W},getElementsByClassName:function(R){var W=toOrderedSet(R);return new LiveNodeList(this,function(G){var J=[];return W.length>0&&_visitNode(G.documentElement,function(et){if(et!==G&&et.nodeType===ei){var er=et.getAttribute("class");if(er){var en=R===er;if(!en){var eo=toOrderedSet(er);en=W.every(function(R){return eo&&-1!==eo.indexOf(R)})}en&&J.push(et)}}}),J})},createElement:function(R){var W=new Element;return W.ownerDocument=this,W.nodeName=R,W.tagName=R,W.localName=R,W.childNodes=new NodeList,(W.attributes=new NamedNodeMap)._ownerElement=W,W},createDocumentFragment:function(){var R=new DocumentFragment;return R.ownerDocument=this,R.childNodes=new NodeList,R},createTextNode:function(R){var W=new Text;return W.ownerDocument=this,W.appendData(R),W},createComment:function(R){var W=new Comment;return W.ownerDocument=this,W.appendData(R),W},createCDATASection:function(R){var W=new CDATASection;return W.ownerDocument=this,W.appendData(R),W},createProcessingInstruction:function(R,W){var G=new ProcessingInstruction;return G.ownerDocument=this,G.tagName=G.nodeName=G.target=R,G.nodeValue=G.data=W,G},createAttribute:function(R){var W=new Attr;return W.ownerDocument=this,W.name=R,W.nodeName=R,W.localName=R,W.specified=!0,W},createEntityReference:function(R){var W=new EntityReference;return W.ownerDocument=this,W.nodeName=R,W},createElementNS:function(R,W){var G=new Element,J=W.split(":"),et=G.attributes=new NamedNodeMap;return G.childNodes=new NodeList,G.ownerDocument=this,G.nodeName=W,G.tagName=W,G.namespaceURI=R,2==J.length?(G.prefix=J[0],G.localName=J[1]):G.localName=W,et._ownerElement=G,G},createAttributeNS:function(R,W){var G=new Attr,J=W.split(":");return G.ownerDocument=this,G.nodeName=W,G.name=W,G.namespaceURI=R,G.specified=!0,2==J.length?(G.prefix=J[0],G.localName=J[1]):G.localName=W,G}},_extends(Document,Node),Element.prototype={nodeType:ei,hasAttribute:function(R){return null!=this.getAttributeNode(R)},getAttribute:function(R){var W=this.getAttributeNode(R);return W&&W.value||""},getAttributeNode:function(R){return this.attributes.getNamedItem(R)},setAttribute:function(R,W){var G=this.ownerDocument.createAttribute(R);G.value=G.nodeValue=""+W,this.setAttributeNode(G)},removeAttribute:function(R){var W=this.getAttributeNode(R);W&&this.removeAttributeNode(W)},appendChild:function(R){return R.nodeType===eg?this.insertBefore(R,null):(R.parentNode&&R.parentNode.removeChild(R),R.parentNode=this,R.previousSibling=this.lastChild,R.nextSibling=null,R.previousSibling?R.previousSibling.nextSibling=R:this.firstChild=R,this.lastChild=R,_onUpdateChild(this.ownerDocument,this,R),R)},setAttributeNode:function(R){return this.attributes.setNamedItem(R)},setAttributeNodeNS:function(R){return this.attributes.setNamedItemNS(R)},removeAttributeNode:function(R){return this.attributes.removeNamedItem(R.nodeName)},removeAttributeNS:function(R,W){var G=this.getAttributeNodeNS(R,W);G&&this.removeAttributeNode(G)},hasAttributeNS:function(R,W){return null!=this.getAttributeNodeNS(R,W)},getAttributeNS:function(R,W){var G=this.getAttributeNodeNS(R,W);return G&&G.value||""},setAttributeNS:function(R,W,G){var J=this.ownerDocument.createAttributeNS(R,W);J.value=J.nodeValue=""+G,this.setAttributeNode(J)},getAttributeNodeNS:function(R,W){return this.attributes.getNamedItemNS(R,W)},getElementsByTagName:function(R){return new LiveNodeList(this,function(W){var G=[];return _visitNode(W,function(J){J!==W&&J.nodeType==ei&&("*"===R||J.tagName==R)&&G.push(J)}),G})},getElementsByTagNameNS:function(R,W){return new LiveNodeList(this,function(G){var J=[];return _visitNode(G,function(et){et!==G&&et.nodeType===ei&&("*"===R||et.namespaceURI===R)&&("*"===W||et.localName==W)&&J.push(et)}),J})}},Document.prototype.getElementsByTagName=Element.prototype.getElementsByTagName,Document.prototype.getElementsByTagNameNS=Element.prototype.getElementsByTagNameNS,_extends(Element,Node),Attr.prototype.nodeType=eo,_extends(Attr,Node),CharacterData.prototype={data:"",substringData:function(R,W){return this.data.substring(R,R+W)},appendData:function(R){R=this.data+R,this.nodeValue=this.data=R,this.length=R.length},insertData:function(R,W){this.replaceData(R,0,W)},appendChild:function(R){throw Error(ev[eb])},deleteData:function(R,W){this.replaceData(R,W,"")},replaceData:function(R,W,G){G=this.data.substring(0,R)+G+this.data.substring(R+W),this.nodeValue=this.data=G,this.length=G.length}},_extends(CharacterData,Node),Text.prototype={nodeName:"#text",nodeType:es,splitText:function(R){var W=this.data,G=W.substring(R);W=W.substring(0,R),this.data=this.nodeValue=W,this.length=W.length;var J=this.ownerDocument.createTextNode(G);return this.parentNode&&this.parentNode.insertBefore(J,this.nextSibling),J}},_extends(Text,CharacterData),Comment.prototype={nodeName:"#comment",nodeType:ep},_extends(Comment,CharacterData),CDATASection.prototype={nodeName:"#cdata-section",nodeType:ec},_extends(CDATASection,CharacterData),DocumentType.prototype.nodeType=eh,_extends(DocumentType,Node),Notation.prototype.nodeType=em,_extends(Notation,Node),Entity.prototype.nodeType=eu,_extends(Entity,Node),EntityReference.prototype.nodeType=el,_extends(EntityReference,Node),DocumentFragment.prototype.nodeName="#document-fragment",DocumentFragment.prototype.nodeType=eg,_extends(DocumentFragment,Node),ProcessingInstruction.prototype.nodeType=ed,_extends(ProcessingInstruction,Node),XMLSerializer.prototype.serializeToString=function(R,W,G){return nodeSerializeToString.call(R,W,G)},Node.prototype.toString=nodeSerializeToString;try{Object.defineProperty&&(Object.defineProperty(LiveNodeList.prototype,"length",{get:function(){return _updateLiveList(this),this.$$length}}),Object.defineProperty(Node.prototype,"textContent",{get:function(){return function getTextContent(R){switch(R.nodeType){case ei:case eg:var W=[];for(R=R.firstChild;R;)7!==R.nodeType&&8!==R.nodeType&&W.push(getTextContent(R)),R=R.nextSibling;return W.join("");default:return R.nodeValue}}(this)},set:function(R){switch(this.nodeType){case ei:case eg:for(;this.firstChild;)this.removeChild(this.firstChild);(R||String(R))&&this.appendChild(this.ownerDocument.createTextNode(R));break;default:this.data=R,this.value=R,this.nodeValue=R}}}),__set__=function(R,W,G){R["$$"+W]=G})}catch(R){}W.DocumentType=DocumentType,W.DOMException=DOMException,W.DOMImplementation=DOMImplementation,W.Element=Element,W.Node=Node,W.NodeList=NodeList,W.XMLSerializer=XMLSerializer},31045:function(R,W,G){"use strict";var J=G(72167).freeze;W.XML_ENTITIES=J({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),W.HTML_ENTITIES=J({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"А",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"⁡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"\xa6",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"\xae",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"\xa9",copy:"\xa9",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"\xb0",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"\xc9",eacute:"\xe9",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"\xca",ecirc:"\xea",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"\xc8",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"\xbd",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"\xcd",iacute:"\xed",ic:"⁣",Icirc:"\xce",icirc:"\xee",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"\xa1",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"\xab",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:"\xa0",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"⊛",ocir:"⊚",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"\xd2",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"\xd8",oslash:"\xf8",osol:"⊘",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"\xae",reg:"\xae",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"\xad",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"\xde",thorn:"\xfe",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"\xda",uacute:"\xfa",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"\xa8",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"‍",zwnj:"‌"}),W.entityMap=W.HTML_ENTITIES},3969:function(R,W,G){var J=G(41146);J.DOMImplementation,J.XMLSerializer,W.DOMParser=G(86129).DOMParser},76925:function(R,W,G){var J=G(72167).NAMESPACE,et=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,er=RegExp("[\\-\\.0-9"+et.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),en=RegExp("^"+et.source+er.source+"*(?::"+et.source+er.source+"*)?$");function ParseError(R,W){this.message=R,this.locator=W,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError)}function XMLReader(){}function copyLocator(R,W){return W.lineNumber=R.lineNumber,W.columnNumber=R.columnNumber,W}function appendElement(R,W,G){for(var et=R.tagName,er=null,en=R.length;en--;){var ei=R[en],eo=ei.qName,es=ei.value,ec=eo.indexOf(":");if(ec>0)var el=ei.prefix=eo.slice(0,ec),eu=eo.slice(ec+1),ed="xmlns"===el&&eu;else eu=eo,el=null,ed="xmlns"===eo&&"";ei.localName=eu,!1!==ed&&(null==er&&(er={},_copy(G,G={})),G[ed]=er[ed]=es,ei.uri=J.XMLNS,W.startPrefixMapping(ed,es))}for(var en=R.length;en--;){var el=(ei=R[en]).prefix;el&&("xml"===el&&(ei.uri=J.XML),"xmlns"!==el&&(ei.uri=G[el||""]))}var ec=et.indexOf(":");ec>0?(el=R.prefix=et.slice(0,ec),eu=R.localName=et.slice(ec+1)):(el=null,eu=R.localName=et);var ep=R.uri=G[el||""];if(W.startElement(ep,eu,et,R),!R.closed)return R.currentNSMap=G,R.localNSMap=er,!0;if(W.endElement(ep,eu,et),er)for(el in er)Object.prototype.hasOwnProperty.call(er,el)&&W.endPrefixMapping(el)}function _copy(R,W){for(var G in R)Object.prototype.hasOwnProperty.call(R,G)&&(W[G]=R[G])}function ElementAttributes(){this.attributeNames={}}ParseError.prototype=Error(),ParseError.prototype.name=ParseError.name,XMLReader.prototype={parse:function(R,W,G){var et=this.domBuilder;et.startDocument(),_copy(W,W={}),function(R,W,G,et,er){function entityReplacer(R){var W,J=R.slice(1,-1);return Object.hasOwnProperty.call(G,J)?G[J]:"#"!==J.charAt(0)?(er.error("entity not found:"+R),R):(W=parseInt(J.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((W-=65536)>>10),56320+(1023&W)):String.fromCharCode(W)}function appendText(W){if(W>eu){var G=R.substring(eu,W).replace(/&#?\w+;/g,entityReplacer);es&&position(eu),et.characters(G,0,W-eu),eu=W}}function position(W,G){for(;W>=ei&&(G=eo.exec(R));)ei=(en=G.index)+G[0].length,es.lineNumber++;es.columnNumber=W-en+1}for(var en=0,ei=0,eo=/.*(?:\r\n?|\n)|.*$/g,es=et.locator,ec=[{currentNSMap:W}],el={},eu=0;;){try{var ed=R.indexOf("<",eu);if(ed<0){if(!R.substr(eu).match(/^\s*$/)){var ep=et.doc,ef=ep.createTextNode(R.substr(eu));ep.appendChild(ef),et.currentElement=ef}return}switch(ed>eu&&appendText(ed),R.charAt(ed+1)){case"/":var eh=R.indexOf(">",ed+3),eg=R.substring(ed+2,eh).replace(/[ \t\n\r]+$/g,""),em=ec.pop();eh<0?(eg=R.substring(ed+2).replace(/[\s<].*/,""),er.error("end tag name: "+eg+" is not complete:"+em.tagName),eh=ed+1+eg.length):eg.match(/\s</)&&(eg=eg.replace(/[\s<].*/,""),er.error("end tag name: "+eg+" maybe not complete"),eh=ed+1+eg.length);var ey=em.localNSMap,ev=em.tagName==eg;if(ev||em.tagName&&em.tagName.toLowerCase()==eg.toLowerCase()){if(et.endElement(em.uri,em.localName,eg),ey)for(var eb in ey)Object.prototype.hasOwnProperty.call(ey,eb)&&et.endPrefixMapping(eb);ev||er.fatalError("end tag name: "+eg+" is not match the current start tagName:"+em.tagName)}else ec.push(em);eh++;break;case"?":es&&position(ed),eh=function(R,W,G){var J=R.indexOf("?>",W);if(J){var et=R.substring(W,J).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(et)return et[0].length,G.processingInstruction(et[1],et[2]),J+2}return -1}(R,ed,et);break;case"!":es&&position(ed),eh=function(R,W,G,J){if("-"===R.charAt(W+2)){if("-"===R.charAt(W+3)){var et=R.indexOf("-->",W+4);if(et>W)return G.comment(R,W+4,et-W-4),et+3;J.error("Unclosed comment")}}else{if("CDATA["==R.substr(W+3,6)){var et=R.indexOf("]]>",W+9);return G.startCDATA(),G.characters(R,W+9,et-W-9),G.endCDATA(),et+3}var er=function(R,W){var G,J=[],et=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(et.lastIndex=W,et.exec(R);G=et.exec(R);)if(J.push(G),G[1])return J}(R,W),en=er.length;if(en>1&&/!doctype/i.test(er[0][0])){var ei=er[1][0],eo=!1,es=!1;en>3&&(/^public$/i.test(er[2][0])?(eo=er[3][0],es=en>4&&er[4][0]):/^system$/i.test(er[2][0])&&(es=er[3][0]));var ec=er[en-1];return G.startDTD(ei,eo,es),G.endDTD(),ec.index+ec[0].length}}return -1}(R,ed,et,er);break;default:es&&position(ed);var e_=new ElementAttributes,ex=ec[ec.length-1].currentNSMap,eh=function(R,W,G,et,er,en){function addAttribute(R,W,J){G.attributeNames.hasOwnProperty(R)&&en.fatalError("Attribute "+R+" redefined"),G.addValue(R,W.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,er),J)}for(var ei,eo,es=++W,ec=0;;){var el=R.charAt(es);switch(el){case"=":if(1===ec)ei=R.slice(W,es),ec=3;else if(2===ec)ec=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===ec||1===ec){if(1===ec&&(en.warning('attribute value must after "="'),ei=R.slice(W,es)),W=es+1,(es=R.indexOf(el,W))>0)addAttribute(ei,eo=R.slice(W,es),W-1),ec=5;else throw Error("attribute value no end '"+el+"' match")}else if(4==ec)addAttribute(ei,eo=R.slice(W,es),W),en.warning('attribute "'+ei+'" missed start quot('+el+")!!"),W=es+1,ec=5;else throw Error('attribute value must after "="');break;case"/":switch(ec){case 0:G.setTagName(R.slice(W,es));case 5:case 6:case 7:ec=7,G.closed=!0;case 4:case 1:break;case 2:G.closed=!0;break;default:throw Error("attribute invalid close char('/')")}break;case"":return en.error("unexpected end of input"),0==ec&&G.setTagName(R.slice(W,es)),es;case">":switch(ec){case 0:G.setTagName(R.slice(W,es));case 5:case 6:case 7:break;case 4:case 1:"/"===(eo=R.slice(W,es)).slice(-1)&&(G.closed=!0,eo=eo.slice(0,-1));case 2:2===ec&&(eo=ei),4==ec?(en.warning('attribute "'+eo+'" missed quot(")!'),addAttribute(ei,eo,W)):(J.isHTML(et[""])&&eo.match(/^(?:disabled|checked|selected)$/i)||en.warning('attribute "'+eo+'" missed value!! "'+eo+'" instead!!'),addAttribute(eo,eo,W));break;case 3:throw Error("attribute value missed!!")}return es;case"\x80":el=" ";default:if(el<=" ")switch(ec){case 0:G.setTagName(R.slice(W,es)),ec=6;break;case 1:ei=R.slice(W,es),ec=2;break;case 4:var eo=R.slice(W,es);en.warning('attribute "'+eo+'" missed quot(")!!'),addAttribute(ei,eo,W);case 5:ec=6}else switch(ec){case 2:G.tagName,J.isHTML(et[""])&&ei.match(/^(?:disabled|checked|selected)$/i)||en.warning('attribute "'+ei+'" missed value!! "'+ei+'" instead2!!'),addAttribute(ei,ei,W),W=es,ec=1;break;case 5:en.warning('attribute space is required"'+ei+'"!!');case 6:ec=1,W=es;break;case 3:ec=4,W=es;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}es++}}(R,ed,e_,ex,entityReplacer,er),ew=e_.length;if(!e_.closed&&function(R,W,G,J){var et=J[G];return null==et&&((et=R.lastIndexOf("</"+G+">"))<W&&(et=R.lastIndexOf("</"+G)),J[G]=et),et<W}(R,eh,e_.tagName,el)&&(e_.closed=!0,G.nbsp||er.warning("unclosed xml attribute")),es&&ew){for(var eS=copyLocator(es,{}),eT=0;eT<ew;eT++){var eO=e_[eT];position(eO.offset),eO.locator=copyLocator(es,{})}et.locator=eS,appendElement(e_,et,ex)&&ec.push(e_),et.locator=es}else appendElement(e_,et,ex)&&ec.push(e_);J.isHTML(e_.uri)&&!e_.closed?eh=function(R,W,G,J,et){if(/^(?:script|textarea)$/i.test(G)){var er=R.indexOf("</"+G+">",W),en=R.substring(W+1,er);if(/[&<]/.test(en))return/^script$/i.test(G)||(en=en.replace(/&#?\w+;/g,J)),et.characters(en,0,en.length),er}return W+1}(R,eh,e_.tagName,entityReplacer,et):eh++}}catch(R){if(R instanceof ParseError)throw R;er.error("element parse error: "+R),eh=-1}eh>eu?eu=eh:appendText(Math.max(ed,eu)+1)}}(R,W,G,et,this.errorHandler),et.endDocument()}},ElementAttributes.prototype={setTagName:function(R){if(!en.test(R))throw Error("invalid tagName:"+R);this.tagName=R},addValue:function(R,W,G){if(!en.test(R))throw Error("invalid attribute:"+R);this.attributeNames[R]=this.length,this[this.length++]={qName:R,value:W,offset:G}},length:0,getLocalName:function(R){return this[R].localName},getLocator:function(R){return this[R].locator},getQName:function(R){return this[R].qName},getURI:function(R){return this[R].uri},getValue:function(R){return this[R].value}},W.XMLReader=XMLReader,W.ParseError=ParseError},79742:function(R,W){"use strict";W.byteLength=function(R){var W=getLens(R),G=W[0],J=W[1];return(G+J)*3/4-J},W.toByteArray=function(R){var W,G,er=getLens(R),en=er[0],ei=er[1],eo=new et((en+ei)*3/4-ei),es=0,ec=ei>0?en-4:en;for(G=0;G<ec;G+=4)W=J[R.charCodeAt(G)]<<18|J[R.charCodeAt(G+1)]<<12|J[R.charCodeAt(G+2)]<<6|J[R.charCodeAt(G+3)],eo[es++]=W>>16&255,eo[es++]=W>>8&255,eo[es++]=255&W;return 2===ei&&(W=J[R.charCodeAt(G)]<<2|J[R.charCodeAt(G+1)]>>4,eo[es++]=255&W),1===ei&&(W=J[R.charCodeAt(G)]<<10|J[R.charCodeAt(G+1)]<<4|J[R.charCodeAt(G+2)]>>2,eo[es++]=W>>8&255,eo[es++]=255&W),eo},W.fromByteArray=function(R){for(var W,J=R.length,et=J%3,er=[],en=0,ei=J-et;en<ei;en+=16383)er.push(function(R,W,J){for(var et,er=[],en=W;en<J;en+=3)er.push(G[(et=(R[en]<<16&16711680)+(R[en+1]<<8&65280)+(255&R[en+2]))>>18&63]+G[et>>12&63]+G[et>>6&63]+G[63&et]);return er.join("")}(R,en,en+16383>ei?ei:en+16383));return 1===et?er.push(G[(W=R[J-1])>>2]+G[W<<4&63]+"=="):2===et&&er.push(G[(W=(R[J-2]<<8)+R[J-1])>>10]+G[W>>4&63]+G[W<<2&63]+"="),er.join("")};for(var G=[],J=[],et="undefined"!=typeof Uint8Array?Uint8Array:Array,er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",en=0,ei=er.length;en<ei;++en)G[en]=er[en],J[er.charCodeAt(en)]=en;function getLens(R){var W=R.length;if(W%4>0)throw Error("Invalid string. Length must be a multiple of 4");var G=R.indexOf("=");-1===G&&(G=W);var J=G===W?0:4-G%4;return[G,J]}J["-".charCodeAt(0)]=62,J["_".charCodeAt(0)]=63},67891:function(R,W){var G,J,et;J=[W],void 0!==(et="function"==typeof(G=function(R){"use strict";function i(R){if(Array.isArray(R)){for(var W=0,G=Array(R.length);W<R.length;W++)G[W]=R[W];return G}return Array.from(R)}Object.defineProperty(R,"__esModule",{value:!0});var W=!1;if("undefined"!=typeof window){var G={get passive(){W=!0}};window.addEventListener("testPassive",null,G),window.removeEventListener("testPassive",null,G)}function d(R){return et.some(function(W){return!(!W.options.allowTouchMove||!W.options.allowTouchMove(R))})}function c(R){var W=R||window.event;return!!d(W.target)||1<W.touches.length||(W.preventDefault&&W.preventDefault(),!1)}function o(){setTimeout(function(){void 0!==eo&&(document.body.style.paddingRight=eo,eo=void 0),void 0!==ei&&(document.body.style.overflow=ei,ei=void 0)})}var J="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),et=[],er=!1,en=-1,ei=void 0,eo=void 0;R.disableBodyScroll=function(R,G){if(J){if(!R)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");R&&!et.some(function(W){return W.targetElement===R})&&(et=[].concat(i(et),[{targetElement:R,options:G||{}}]),R.ontouchstart=function(R){1===R.targetTouches.length&&(en=R.targetTouches[0].clientY)},R.ontouchmove=function(W){var G;1===W.targetTouches.length&&(G=W.targetTouches[0].clientY-en,d(W.target)||(R&&0===R.scrollTop&&0<G||R&&R.scrollHeight-R.scrollTop<=R.clientHeight&&G<0?c(W):W.stopPropagation()))},er||(document.addEventListener("touchmove",c,W?{passive:!1}:void 0),er=!0))}else setTimeout(function(){if(void 0===eo){var R=!!G&&!0===G.reserveScrollBarGap,W=window.innerWidth-document.documentElement.clientWidth;R&&0<W&&(eo=document.body.style.paddingRight,document.body.style.paddingRight=W+"px")}void 0===ei&&(ei=document.body.style.overflow,document.body.style.overflow="hidden")}),et=[].concat(i(et),[{targetElement:R,options:G||{}}])},R.clearAllBodyScrollLocks=function(){J?(et.forEach(function(R){R.targetElement.ontouchstart=null,R.targetElement.ontouchmove=null}),er&&(document.removeEventListener("touchmove",c,W?{passive:!1}:void 0),er=!1),et=[],en=-1):(o(),et=[])},R.enableBodyScroll=function(R){if(J){if(!R)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");R.ontouchstart=null,R.ontouchmove=null,et=et.filter(function(W){return W.targetElement!==R}),er&&0===et.length&&(document.removeEventListener("touchmove",c,W?{passive:!1}:void 0),er=!1)}else(et=et.filter(function(W){return W.targetElement!==R})).length||o()}})?G.apply(W,J):G)&&(R.exports=et)},48764:function(R,W,G){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var J=G(79742),et=G(80645),er="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(R){if(R>2147483647)throw RangeError('The value "'+R+'" is invalid for option "size"');var W=new Uint8Array(R);return Object.setPrototypeOf(W,Buffer.prototype),W}function Buffer(R,W,G){if("number"==typeof R){if("string"==typeof W)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(R)}return from(R,W,G)}function from(R,W,G){if("string"==typeof R)return function(R,W){if(("string"!=typeof W||""===W)&&(W="utf8"),!Buffer.isEncoding(W))throw TypeError("Unknown encoding: "+W);var G=0|byteLength(R,W),J=createBuffer(G),et=J.write(R,W);return et!==G&&(J=J.slice(0,et)),J}(R,W);if(ArrayBuffer.isView(R))return function(R){if(isInstance(R,Uint8Array)){var W=new Uint8Array(R);return fromArrayBuffer(W.buffer,W.byteOffset,W.byteLength)}return fromArrayLike(R)}(R);if(null==R)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(isInstance(R,ArrayBuffer)||R&&isInstance(R.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(R,SharedArrayBuffer)||R&&isInstance(R.buffer,SharedArrayBuffer)))return fromArrayBuffer(R,W,G);if("number"==typeof R)throw TypeError('The "value" argument must not be of type number. Received type number');var J=R.valueOf&&R.valueOf();if(null!=J&&J!==R)return Buffer.from(J,W,G);var et=function(R){if(Buffer.isBuffer(R)){var W,G=0|checked(R.length),J=createBuffer(G);return 0===J.length||R.copy(J,0,0,G),J}return void 0!==R.length?"number"!=typeof R.length||(W=R.length)!=W?createBuffer(0):fromArrayLike(R):"Buffer"===R.type&&Array.isArray(R.data)?fromArrayLike(R.data):void 0}(R);if(et)return et;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof R[Symbol.toPrimitive])return Buffer.from(R[Symbol.toPrimitive]("string"),W,G);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}function assertSize(R){if("number"!=typeof R)throw TypeError('"size" argument must be of type number');if(R<0)throw RangeError('The value "'+R+'" is invalid for option "size"')}function allocUnsafe(R){return assertSize(R),createBuffer(R<0?0:0|checked(R))}function fromArrayLike(R){for(var W=R.length<0?0:0|checked(R.length),G=createBuffer(W),J=0;J<W;J+=1)G[J]=255&R[J];return G}function fromArrayBuffer(R,W,G){var J;if(W<0||R.byteLength<W)throw RangeError('"offset" is outside of buffer bounds');if(R.byteLength<W+(G||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(J=void 0===W&&void 0===G?new Uint8Array(R):void 0===G?new Uint8Array(R,W):new Uint8Array(R,W,G),Buffer.prototype),J}function checked(R){if(R>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|R}function byteLength(R,W){if(Buffer.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||isInstance(R,ArrayBuffer))return R.byteLength;if("string"!=typeof R)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);var G=R.length,J=arguments.length>2&&!0===arguments[2];if(!J&&0===G)return 0;for(var et=!1;;)switch(W){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return utf8ToBytes(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return base64ToBytes(R).length;default:if(et)return J?-1:utf8ToBytes(R).length;W=(""+W).toLowerCase(),et=!0}}function slowToString(R,W,G){var et,er,en=!1;if((void 0===W||W<0)&&(W=0),W>this.length||((void 0===G||G>this.length)&&(G=this.length),G<=0||(G>>>=0)<=(W>>>=0)))return"";for(R||(R="utf8");;)switch(R){case"hex":return function(R,W,G){var J=R.length;(!W||W<0)&&(W=0),(!G||G<0||G>J)&&(G=J);for(var et="",er=W;er<G;++er)et+=ei[R[er]];return et}(this,W,G);case"utf8":case"utf-8":return utf8Slice(this,W,G);case"ascii":return function(R,W,G){var J="";G=Math.min(R.length,G);for(var et=W;et<G;++et)J+=String.fromCharCode(127&R[et]);return J}(this,W,G);case"latin1":case"binary":return function(R,W,G){var J="";G=Math.min(R.length,G);for(var et=W;et<G;++et)J+=String.fromCharCode(R[et]);return J}(this,W,G);case"base64":return et=W,er=G,0===et&&er===this.length?J.fromByteArray(this):J.fromByteArray(this.slice(et,er));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(R,W,G){for(var J=R.slice(W,G),et="",er=0;er<J.length-1;er+=2)et+=String.fromCharCode(J[er]+256*J[er+1]);return et}(this,W,G);default:if(en)throw TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),en=!0}}function swap(R,W,G){var J=R[W];R[W]=R[G],R[G]=J}function bidirectionalIndexOf(R,W,G,J,et){var er;if(0===R.length)return -1;if("string"==typeof G?(J=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),(er=G=+G)!=er&&(G=et?0:R.length-1),G<0&&(G=R.length+G),G>=R.length){if(et)return -1;G=R.length-1}else if(G<0){if(!et)return -1;G=0}if("string"==typeof W&&(W=Buffer.from(W,J)),Buffer.isBuffer(W))return 0===W.length?-1:arrayIndexOf(R,W,G,J,et);if("number"==typeof W)return(W&=255,"function"==typeof Uint8Array.prototype.indexOf)?et?Uint8Array.prototype.indexOf.call(R,W,G):Uint8Array.prototype.lastIndexOf.call(R,W,G):arrayIndexOf(R,[W],G,J,et);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(R,W,G,J,et){var er,en=1,ei=R.length,eo=W.length;if(void 0!==J&&("ucs2"===(J=String(J).toLowerCase())||"ucs-2"===J||"utf16le"===J||"utf-16le"===J)){if(R.length<2||W.length<2)return -1;en=2,ei/=2,eo/=2,G/=2}function read(R,W){return 1===en?R[W]:R.readUInt16BE(W*en)}if(et){var es=-1;for(er=G;er<ei;er++)if(read(R,er)===read(W,-1===es?0:er-es)){if(-1===es&&(es=er),er-es+1===eo)return es*en}else -1!==es&&(er-=er-es),es=-1}else for(G+eo>ei&&(G=ei-eo),er=G;er>=0;er--){for(var ec=!0,el=0;el<eo;el++)if(read(R,er+el)!==read(W,el)){ec=!1;break}if(ec)return er}return -1}function utf8Slice(R,W,G){G=Math.min(R.length,G);for(var J=[],et=W;et<G;){var er,en,ei,eo,es=R[et],ec=null,el=es>239?4:es>223?3:es>191?2:1;if(et+el<=G)switch(el){case 1:es<128&&(ec=es);break;case 2:(192&(er=R[et+1]))==128&&(eo=(31&es)<<6|63&er)>127&&(ec=eo);break;case 3:er=R[et+1],en=R[et+2],(192&er)==128&&(192&en)==128&&(eo=(15&es)<<12|(63&er)<<6|63&en)>2047&&(eo<55296||eo>57343)&&(ec=eo);break;case 4:er=R[et+1],en=R[et+2],ei=R[et+3],(192&er)==128&&(192&en)==128&&(192&ei)==128&&(eo=(15&es)<<18|(63&er)<<12|(63&en)<<6|63&ei)>65535&&eo<1114112&&(ec=eo)}null===ec?(ec=65533,el=1):ec>65535&&(ec-=65536,J.push(ec>>>10&1023|55296),ec=56320|1023&ec),J.push(ec),et+=el}return function(R){var W=R.length;if(W<=4096)return String.fromCharCode.apply(String,R);for(var G="",J=0;J<W;)G+=String.fromCharCode.apply(String,R.slice(J,J+=4096));return G}(J)}function checkOffset(R,W,G){if(R%1!=0||R<0)throw RangeError("offset is not uint");if(R+W>G)throw RangeError("Trying to access beyond buffer length")}function checkInt(R,W,G,J,et,er){if(!Buffer.isBuffer(R))throw TypeError('"buffer" argument must be a Buffer instance');if(W>et||W<er)throw RangeError('"value" argument is out of bounds');if(G+J>R.length)throw RangeError("Index out of range")}function checkIEEE754(R,W,G,J,et,er){if(G+J>R.length||G<0)throw RangeError("Index out of range")}function writeFloat(R,W,G,J,er){return W=+W,G>>>=0,er||checkIEEE754(R,W,G,4,34028234663852886e22,-34028234663852886e22),et.write(R,W,G,J,23,4),G+4}function writeDouble(R,W,G,J,er){return W=+W,G>>>=0,er||checkIEEE754(R,W,G,8,17976931348623157e292,-17976931348623157e292),et.write(R,W,G,J,52,8),G+8}W.lW=Buffer,W.h2=50,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var R=new Uint8Array(1),W={foo:function(){return 42}};return Object.setPrototypeOf(W,Uint8Array.prototype),Object.setPrototypeOf(R,W),42===R.foo()}catch(R){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(R,W,G){return from(R,W,G)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(R,W,G){return(assertSize(R),R<=0)?createBuffer(R):void 0!==W?"string"==typeof G?createBuffer(R).fill(W,G):createBuffer(R).fill(W):createBuffer(R)},Buffer.allocUnsafe=function(R){return allocUnsafe(R)},Buffer.allocUnsafeSlow=function(R){return allocUnsafe(R)},Buffer.isBuffer=function(R){return null!=R&&!0===R._isBuffer&&R!==Buffer.prototype},Buffer.compare=function(R,W){if(isInstance(R,Uint8Array)&&(R=Buffer.from(R,R.offset,R.byteLength)),isInstance(W,Uint8Array)&&(W=Buffer.from(W,W.offset,W.byteLength)),!Buffer.isBuffer(R)||!Buffer.isBuffer(W))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===W)return 0;for(var G=R.length,J=W.length,et=0,er=Math.min(G,J);et<er;++et)if(R[et]!==W[et]){G=R[et],J=W[et];break}return G<J?-1:J<G?1:0},Buffer.isEncoding=function(R){switch(String(R).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(R,W){if(!Array.isArray(R))throw TypeError('"list" argument must be an Array of Buffers');if(0===R.length)return Buffer.alloc(0);if(void 0===W)for(G=0,W=0;G<R.length;++G)W+=R[G].length;var G,J=Buffer.allocUnsafe(W),et=0;for(G=0;G<R.length;++G){var er=R[G];if(isInstance(er,Uint8Array))et+er.length>J.length?Buffer.from(er).copy(J,et):Uint8Array.prototype.set.call(J,er,et);else if(Buffer.isBuffer(er))er.copy(J,et);else throw TypeError('"list" argument must be an Array of Buffers');et+=er.length}return J},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var R=this.length;if(R%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var W=0;W<R;W+=2)swap(this,W,W+1);return this},Buffer.prototype.swap32=function(){var R=this.length;if(R%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var W=0;W<R;W+=4)swap(this,W,W+3),swap(this,W+1,W+2);return this},Buffer.prototype.swap64=function(){var R=this.length;if(R%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var W=0;W<R;W+=8)swap(this,W,W+7),swap(this,W+1,W+6),swap(this,W+2,W+5),swap(this,W+3,W+4);return this},Buffer.prototype.toString=function(){var R=this.length;return 0===R?"":0==arguments.length?utf8Slice(this,0,R):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(R){if(!Buffer.isBuffer(R))throw TypeError("Argument must be a Buffer");return this===R||0===Buffer.compare(this,R)},Buffer.prototype.inspect=function(){var R="",G=W.h2;return R=this.toString("hex",0,G).replace(/(.{2})/g,"$1 ").trim(),this.length>G&&(R+=" ... "),"<Buffer "+R+">"},er&&(Buffer.prototype[er]=Buffer.prototype.inspect),Buffer.prototype.compare=function(R,W,G,J,et){if(isInstance(R,Uint8Array)&&(R=Buffer.from(R,R.offset,R.byteLength)),!Buffer.isBuffer(R))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(void 0===W&&(W=0),void 0===G&&(G=R?R.length:0),void 0===J&&(J=0),void 0===et&&(et=this.length),W<0||G>R.length||J<0||et>this.length)throw RangeError("out of range index");if(J>=et&&W>=G)return 0;if(J>=et)return -1;if(W>=G)return 1;if(W>>>=0,G>>>=0,J>>>=0,et>>>=0,this===R)return 0;for(var er=et-J,en=G-W,ei=Math.min(er,en),eo=this.slice(J,et),es=R.slice(W,G),ec=0;ec<ei;++ec)if(eo[ec]!==es[ec]){er=eo[ec],en=es[ec];break}return er<en?-1:en<er?1:0},Buffer.prototype.includes=function(R,W,G){return -1!==this.indexOf(R,W,G)},Buffer.prototype.indexOf=function(R,W,G){return bidirectionalIndexOf(this,R,W,G,!0)},Buffer.prototype.lastIndexOf=function(R,W,G){return bidirectionalIndexOf(this,R,W,G,!1)},Buffer.prototype.write=function(R,W,G,J){if(void 0===W)J="utf8",G=this.length,W=0;else if(void 0===G&&"string"==typeof W)J=W,G=this.length,W=0;else if(isFinite(W))W>>>=0,isFinite(G)?(G>>>=0,void 0===J&&(J="utf8")):(J=G,G=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var et,er,en,ei,eo,es,ec,el,eu=this.length-W;if((void 0===G||G>eu)&&(G=eu),R.length>0&&(G<0||W<0)||W>this.length)throw RangeError("Attempt to write outside buffer bounds");J||(J="utf8");for(var ed=!1;;)switch(J){case"hex":return function(R,W,G,J){G=Number(G)||0;var et=R.length-G;J?(J=Number(J))>et&&(J=et):J=et;var er=W.length;J>er/2&&(J=er/2);for(var en=0;en<J;++en){var ei=parseInt(W.substr(2*en,2),16);if(ei!=ei)break;R[G+en]=ei}return en}(this,R,W,G);case"utf8":case"utf-8":return et=W,er=G,blitBuffer(utf8ToBytes(R,this.length-et),this,et,er);case"ascii":case"latin1":case"binary":return en=W,ei=G,blitBuffer(function(R){for(var W=[],G=0;G<R.length;++G)W.push(255&R.charCodeAt(G));return W}(R),this,en,ei);case"base64":return eo=W,es=G,blitBuffer(base64ToBytes(R),this,eo,es);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ec=W,el=G,blitBuffer(function(R,W){for(var G,J,et=[],er=0;er<R.length&&!((W-=2)<0);++er)J=(G=R.charCodeAt(er))>>8,et.push(G%256),et.push(J);return et}(R,this.length-ec),this,ec,el);default:if(ed)throw TypeError("Unknown encoding: "+J);J=(""+J).toLowerCase(),ed=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(R,W){var G=this.length;R=~~R,W=void 0===W?G:~~W,R<0?(R+=G)<0&&(R=0):R>G&&(R=G),W<0?(W+=G)<0&&(W=0):W>G&&(W=G),W<R&&(W=R);var J=this.subarray(R,W);return Object.setPrototypeOf(J,Buffer.prototype),J},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function(R,W,G){R>>>=0,W>>>=0,G||checkOffset(R,W,this.length);for(var J=this[R],et=1,er=0;++er<W&&(et*=256);)J+=this[R+er]*et;return J},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function(R,W,G){R>>>=0,W>>>=0,G||checkOffset(R,W,this.length);for(var J=this[R+--W],et=1;W>0&&(et*=256);)J+=this[R+--W]*et;return J},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(R,W){return R>>>=0,W||checkOffset(R,1,this.length),this[R]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(R,W){return R>>>=0,W||checkOffset(R,2,this.length),this[R]|this[R+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(R,W){return R>>>=0,W||checkOffset(R,2,this.length),this[R]<<8|this[R+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(R,W){return R>>>=0,W||checkOffset(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(R,W){return R>>>=0,W||checkOffset(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},Buffer.prototype.readIntLE=function(R,W,G){R>>>=0,W>>>=0,G||checkOffset(R,W,this.length);for(var J=this[R],et=1,er=0;++er<W&&(et*=256);)J+=this[R+er]*et;return J>=(et*=128)&&(J-=Math.pow(2,8*W)),J},Buffer.prototype.readIntBE=function(R,W,G){R>>>=0,W>>>=0,G||checkOffset(R,W,this.length);for(var J=W,et=1,er=this[R+--J];J>0&&(et*=256);)er+=this[R+--J]*et;return er>=(et*=128)&&(er-=Math.pow(2,8*W)),er},Buffer.prototype.readInt8=function(R,W){return(R>>>=0,W||checkOffset(R,1,this.length),128&this[R])?-((255-this[R]+1)*1):this[R]},Buffer.prototype.readInt16LE=function(R,W){R>>>=0,W||checkOffset(R,2,this.length);var G=this[R]|this[R+1]<<8;return 32768&G?4294901760|G:G},Buffer.prototype.readInt16BE=function(R,W){R>>>=0,W||checkOffset(R,2,this.length);var G=this[R+1]|this[R]<<8;return 32768&G?4294901760|G:G},Buffer.prototype.readInt32LE=function(R,W){return R>>>=0,W||checkOffset(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},Buffer.prototype.readInt32BE=function(R,W){return R>>>=0,W||checkOffset(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},Buffer.prototype.readFloatLE=function(R,W){return R>>>=0,W||checkOffset(R,4,this.length),et.read(this,R,!0,23,4)},Buffer.prototype.readFloatBE=function(R,W){return R>>>=0,W||checkOffset(R,4,this.length),et.read(this,R,!1,23,4)},Buffer.prototype.readDoubleLE=function(R,W){return R>>>=0,W||checkOffset(R,8,this.length),et.read(this,R,!0,52,8)},Buffer.prototype.readDoubleBE=function(R,W){return R>>>=0,W||checkOffset(R,8,this.length),et.read(this,R,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(R,W,G,J){if(R=+R,W>>>=0,G>>>=0,!J){var et=Math.pow(2,8*G)-1;checkInt(this,R,W,G,et,0)}var er=1,en=0;for(this[W]=255&R;++en<G&&(er*=256);)this[W+en]=R/er&255;return W+G},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function(R,W,G,J){if(R=+R,W>>>=0,G>>>=0,!J){var et=Math.pow(2,8*G)-1;checkInt(this,R,W,G,et,0)}var er=G-1,en=1;for(this[W+er]=255&R;--er>=0&&(en*=256);)this[W+er]=R/en&255;return W+G},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,1,255,0),this[W]=255&R,W+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,2,65535,0),this[W]=255&R,this[W+1]=R>>>8,W+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,2,65535,0),this[W]=R>>>8,this[W+1]=255&R,W+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,4,4294967295,0),this[W+3]=R>>>24,this[W+2]=R>>>16,this[W+1]=R>>>8,this[W]=255&R,W+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,4,4294967295,0),this[W]=R>>>24,this[W+1]=R>>>16,this[W+2]=R>>>8,this[W+3]=255&R,W+4},Buffer.prototype.writeIntLE=function(R,W,G,J){if(R=+R,W>>>=0,!J){var et=Math.pow(2,8*G-1);checkInt(this,R,W,G,et-1,-et)}var er=0,en=1,ei=0;for(this[W]=255&R;++er<G&&(en*=256);)R<0&&0===ei&&0!==this[W+er-1]&&(ei=1),this[W+er]=(R/en>>0)-ei&255;return W+G},Buffer.prototype.writeIntBE=function(R,W,G,J){if(R=+R,W>>>=0,!J){var et=Math.pow(2,8*G-1);checkInt(this,R,W,G,et-1,-et)}var er=G-1,en=1,ei=0;for(this[W+er]=255&R;--er>=0&&(en*=256);)R<0&&0===ei&&0!==this[W+er+1]&&(ei=1),this[W+er]=(R/en>>0)-ei&255;return W+G},Buffer.prototype.writeInt8=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,1,127,-128),R<0&&(R=255+R+1),this[W]=255&R,W+1},Buffer.prototype.writeInt16LE=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,2,32767,-32768),this[W]=255&R,this[W+1]=R>>>8,W+2},Buffer.prototype.writeInt16BE=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,2,32767,-32768),this[W]=R>>>8,this[W+1]=255&R,W+2},Buffer.prototype.writeInt32LE=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,4,2147483647,-2147483648),this[W]=255&R,this[W+1]=R>>>8,this[W+2]=R>>>16,this[W+3]=R>>>24,W+4},Buffer.prototype.writeInt32BE=function(R,W,G){return R=+R,W>>>=0,G||checkInt(this,R,W,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[W]=R>>>24,this[W+1]=R>>>16,this[W+2]=R>>>8,this[W+3]=255&R,W+4},Buffer.prototype.writeFloatLE=function(R,W,G){return writeFloat(this,R,W,!0,G)},Buffer.prototype.writeFloatBE=function(R,W,G){return writeFloat(this,R,W,!1,G)},Buffer.prototype.writeDoubleLE=function(R,W,G){return writeDouble(this,R,W,!0,G)},Buffer.prototype.writeDoubleBE=function(R,W,G){return writeDouble(this,R,W,!1,G)},Buffer.prototype.copy=function(R,W,G,J){if(!Buffer.isBuffer(R))throw TypeError("argument should be a Buffer");if(G||(G=0),J||0===J||(J=this.length),W>=R.length&&(W=R.length),W||(W=0),J>0&&J<G&&(J=G),J===G||0===R.length||0===this.length)return 0;if(W<0)throw RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw RangeError("Index out of range");if(J<0)throw RangeError("sourceEnd out of bounds");J>this.length&&(J=this.length),R.length-W<J-G&&(J=R.length-W+G);var et=J-G;return this===R&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(W,G,J):Uint8Array.prototype.set.call(R,this.subarray(G,J),W),et},Buffer.prototype.fill=function(R,W,G,J){if("string"==typeof R){if("string"==typeof W?(J=W,W=0,G=this.length):"string"==typeof G&&(J=G,G=this.length),void 0!==J&&"string"!=typeof J)throw TypeError("encoding must be a string");if("string"==typeof J&&!Buffer.isEncoding(J))throw TypeError("Unknown encoding: "+J);if(1===R.length){var et,er=R.charCodeAt(0);("utf8"===J&&er<128||"latin1"===J)&&(R=er)}}else"number"==typeof R?R&=255:"boolean"==typeof R&&(R=Number(R));if(W<0||this.length<W||this.length<G)throw RangeError("Out of range index");if(G<=W)return this;if(W>>>=0,G=void 0===G?this.length:G>>>0,R||(R=0),"number"==typeof R)for(et=W;et<G;++et)this[et]=R;else{var en=Buffer.isBuffer(R)?R:Buffer.from(R,J),ei=en.length;if(0===ei)throw TypeError('The value "'+R+'" is invalid for argument "value"');for(et=0;et<G-W;++et)this[et+W]=en[et%ei]}return this};var en=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(R,W){W=W||1/0;for(var G,J=R.length,et=null,er=[],en=0;en<J;++en){if((G=R.charCodeAt(en))>55295&&G<57344){if(!et){if(G>56319||en+1===J){(W-=3)>-1&&er.push(239,191,189);continue}et=G;continue}if(G<56320){(W-=3)>-1&&er.push(239,191,189),et=G;continue}G=(et-55296<<10|G-56320)+65536}else et&&(W-=3)>-1&&er.push(239,191,189);if(et=null,G<128){if((W-=1)<0)break;er.push(G)}else if(G<2048){if((W-=2)<0)break;er.push(G>>6|192,63&G|128)}else if(G<65536){if((W-=3)<0)break;er.push(G>>12|224,G>>6&63|128,63&G|128)}else if(G<1114112){if((W-=4)<0)break;er.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}else throw Error("Invalid code point")}return er}function base64ToBytes(R){return J.toByteArray(function(R){if((R=(R=R.split("=")[0]).trim().replace(en,"")).length<2)return"";for(;R.length%4!=0;)R+="=";return R}(R))}function blitBuffer(R,W,G,J){for(var et=0;et<J&&!(et+G>=W.length)&&!(et>=R.length);++et)W[et+G]=R[et];return et}function isInstance(R,W){return R instanceof W||null!=R&&null!=R.constructor&&null!=R.constructor.name&&R.constructor.name===W.name}var ei=function(){for(var R="0123456789abcdef",W=Array(256),G=0;G<16;++G)for(var J=16*G,et=0;et<16;++et)W[J+et]=R[G]+R[et];return W}()},98767:function(R){function Emitter(R){if(R)return function(R){for(var W in Emitter.prototype)R[W]=Emitter.prototype[W];return R}(R)}R.exports=Emitter,Emitter.prototype.on=Emitter.prototype.addEventListener=function(R,W){return this._callbacks=this._callbacks||{},(this._callbacks["$"+R]=this._callbacks["$"+R]||[]).push(W),this},Emitter.prototype.once=function(R,W){function on(){this.off(R,on),W.apply(this,arguments)}return on.fn=W,this.on(R,on),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(R,W){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var G,J=this._callbacks["$"+R];if(!J)return this;if(1==arguments.length)return delete this._callbacks["$"+R],this;for(var et=0;et<J.length;et++)if((G=J[et])===W||G.fn===W){J.splice(et,1);break}return 0===J.length&&delete this._callbacks["$"+R],this},Emitter.prototype.emit=function(R){this._callbacks=this._callbacks||{};for(var W=Array(arguments.length-1),G=this._callbacks["$"+R],J=1;J<arguments.length;J++)W[J-1]=arguments[J];if(G){G=G.slice(0);for(var J=0,et=G.length;J<et;++J)G[J].apply(this,W)}return this},Emitter.prototype.listeners=function(R){return this._callbacks=this._callbacks||{},this._callbacks["$"+R]||[]},Emitter.prototype.hasListeners=function(R){return!!this.listeners(R).length}},27484:function(R){var W,G,J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef,eh,eg,em,ey,ev,eb,e_;R.exports=(W="millisecond",G="second",J="minute",et="hour",er="week",en="month",ei="quarter",eo="year",es="date",ec="Invalid Date",el=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,eu=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ed=function(R,W,G){var J=String(R);return!J||J.length>=W?R:""+Array(W+1-J.length).join(G)+R},(ef={})[ep="en"]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var W=["th","st","nd","rd"],G=R%100;return"["+R+(W[(G-20)%10]||W[G]||"th")+"]"}},eh="$isDayjsObject",eg=function(R){return R instanceof eb||!(!R||!R[eh])},em=function t(R,W,G){var J;if(!R)return ep;if("string"==typeof R){var et=R.toLowerCase();ef[et]&&(J=et),W&&(ef[et]=W,J=et);var er=R.split("-");if(!J&&er.length>1)return t(er[0])}else{var en=R.name;ef[en]=R,J=en}return!G&&J&&(ep=J),J||!G&&ep},ey=function(R,W){if(eg(R))return R.clone();var G="object"==typeof W?W:{};return G.date=R,G.args=arguments,new eb(G)},(ev={s:ed,z:function(R){var W=-R.utcOffset(),G=Math.abs(W);return(W<=0?"+":"-")+ed(Math.floor(G/60),2,"0")+":"+ed(G%60,2,"0")},m:function t(R,W){if(R.date()<W.date())return-t(W,R);var G=12*(W.year()-R.year())+(W.month()-R.month()),J=R.clone().add(G,en),et=W-J<0,er=R.clone().add(G+(et?-1:1),en);return+(-(G+(W-J)/(et?J-er:er-J))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return({M:en,y:eo,w:er,d:"day",D:es,h:et,m:J,s:G,ms:W,Q:ei})[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return void 0===R}}).l=em,ev.i=eg,ev.w=function(R,W){return ey(R,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})},e_=(eb=function(){function M(R){this.$L=em(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[eh]=!0}var R=M.prototype;return R.parse=function(R){this.$d=function(R){var W=R.date,G=R.utc;if(null===W)return new Date(NaN);if(ev.u(W))return new Date;if(W instanceof Date)return new Date(W);if("string"==typeof W&&!/Z$/i.test(W)){var J=W.match(el);if(J){var et=J[2]-1||0,er=(J[7]||"0").substring(0,3);return G?new Date(Date.UTC(J[1],et,J[3]||1,J[4]||0,J[5]||0,J[6]||0,er)):new Date(J[1],et,J[3]||1,J[4]||0,J[5]||0,J[6]||0,er)}}return new Date(W)}(R),this.init()},R.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},R.$utils=function(){return ev},R.isValid=function(){return this.$d.toString()!==ec},R.isSame=function(R,W){var G=ey(R);return this.startOf(W)<=G&&G<=this.endOf(W)},R.isAfter=function(R,W){return ey(R)<this.startOf(W)},R.isBefore=function(R,W){return this.endOf(W)<ey(R)},R.$g=function(R,W,G){return ev.u(R)?this[W]:this.set(G,R)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(R,W){var ei=this,ec=!!ev.u(W)||W,el=ev.p(R),l=function(R,W){var G=ev.w(ei.$u?Date.UTC(ei.$y,W,R):new Date(ei.$y,W,R),ei);return ec?G:G.endOf("day")},$=function(R,W){return ev.w(ei.toDate()[R].apply(ei.toDate("s"),(ec?[0,0,0,0]:[23,59,59,999]).slice(W)),ei)},eu=this.$W,ed=this.$M,ep=this.$D,ef="set"+(this.$u?"UTC":"");switch(el){case eo:return ec?l(1,0):l(31,11);case en:return ec?l(1,ed):l(0,ed+1);case er:var eh=this.$locale().weekStart||0,eg=(eu<eh?eu+7:eu)-eh;return l(ec?ep-eg:ep+(6-eg),ed);case"day":case es:return $(ef+"Hours",0);case et:return $(ef+"Minutes",1);case J:return $(ef+"Seconds",2);case G:return $(ef+"Milliseconds",3);default:return this.clone()}},R.endOf=function(R){return this.startOf(R,!1)},R.$set=function(R,er){var ei,ec=ev.p(R),el="set"+(this.$u?"UTC":""),eu=((ei={}).day=el+"Date",ei[es]=el+"Date",ei[en]=el+"Month",ei[eo]=el+"FullYear",ei[et]=el+"Hours",ei[J]=el+"Minutes",ei[G]=el+"Seconds",ei[W]=el+"Milliseconds",ei)[ec],ed="day"===ec?this.$D+(er-this.$W):er;if(ec===en||ec===eo){var ep=this.clone().set(es,1);ep.$d[eu](ed),ep.init(),this.$d=ep.set(es,Math.min(this.$D,ep.daysInMonth())).$d}else eu&&this.$d[eu](ed);return this.init(),this},R.set=function(R,W){return this.clone().$set(R,W)},R.get=function(R){return this[ev.p(R)]()},R.add=function(R,W){var ei,es=this;R=Number(R);var ec=ev.p(W),y=function(W){var G=ey(es);return ev.w(G.date(G.date()+Math.round(W*R)),es)};if(ec===en)return this.set(en,this.$M+R);if(ec===eo)return this.set(eo,this.$y+R);if("day"===ec)return y(1);if(ec===er)return y(7);var el=((ei={})[J]=6e4,ei[et]=36e5,ei[G]=1e3,ei)[ec]||1,eu=this.$d.getTime()+R*el;return ev.w(eu,this)},R.subtract=function(R,W){return this.add(-1*R,W)},R.format=function(R){var W=this,G=this.$locale();if(!this.isValid())return G.invalidDate||ec;var J=R||"YYYY-MM-DDTHH:mm:ssZ",et=ev.z(this),er=this.$H,en=this.$m,ei=this.$M,eo=G.weekdays,es=G.months,el=G.meridiem,h=function(R,G,et,er){return R&&(R[G]||R(W,J))||et[G].slice(0,er)},d=function(R){return ev.s(er%12||12,R,"0")},ed=el||function(R,W,G){var J=R<12?"AM":"PM";return G?J.toLowerCase():J};return J.replace(eu,function(R,J){return J||function(R){switch(R){case"YY":return String(W.$y).slice(-2);case"YYYY":return ev.s(W.$y,4,"0");case"M":return ei+1;case"MM":return ev.s(ei+1,2,"0");case"MMM":return h(G.monthsShort,ei,es,3);case"MMMM":return h(es,ei);case"D":return W.$D;case"DD":return ev.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return h(G.weekdaysMin,W.$W,eo,2);case"ddd":return h(G.weekdaysShort,W.$W,eo,3);case"dddd":return eo[W.$W];case"H":return String(er);case"HH":return ev.s(er,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return ed(er,en,!0);case"A":return ed(er,en,!1);case"m":return String(en);case"mm":return ev.s(en,2,"0");case"s":return String(W.$s);case"ss":return ev.s(W.$s,2,"0");case"SSS":return ev.s(W.$ms,3,"0");case"Z":return et}return null}(R)||et.replace(":","")})},R.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},R.diff=function(R,W,es){var ec,el=this,eu=ev.p(W),ed=ey(R),ep=(ed.utcOffset()-this.utcOffset())*6e4,ef=this-ed,D=function(){return ev.m(el,ed)};switch(eu){case eo:ec=D()/12;break;case en:ec=D();break;case ei:ec=D()/3;break;case er:ec=(ef-ep)/6048e5;break;case"day":ec=(ef-ep)/864e5;break;case et:ec=ef/36e5;break;case J:ec=ef/6e4;break;case G:ec=ef/1e3;break;default:ec=ef}return es?ec:ev.a(ec)},R.daysInMonth=function(){return this.endOf(en).$D},R.$locale=function(){return ef[this.$L]},R.locale=function(R,W){if(!R)return this.$L;var G=this.clone(),J=em(R,W,!0);return J&&(G.$L=J),G},R.clone=function(){return ev.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},M}()).prototype,ey.prototype=e_,[["$ms",W],["$s",G],["$m",J],["$H",et],["$W","day"],["$M",en],["$y",eo],["$D",es]].forEach(function(R){e_[R[1]]=function(W){return this.$g(W,R[0],R[1])}}),ey.extend=function(R,W){return R.$i||(R(W,eb,ey),R.$i=!0),ey},ey.locale=em,ey.isDayjs=eg,ey.unix=function(R){return ey(1e3*R)},ey.en=ef[ep],ey.Ls=ef,ey.p={},ey)},99182:function(R,W,G){var J,et;R.exports=(J=G(27484),et={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(R){return"["+R+(1===R||8===R||R>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}},(J&&"object"==typeof J&&"default"in J?J:{default:J}).default.locale(et,null,!0),et)},56176:function(R){var W;R.exports=(W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},function(R,G,J){var et=G.prototype,er=et.format;J.en.formats=W,et.format=function(R){void 0===R&&(R="YYYY-MM-DDTHH:mm:ssZ");var G,J,et=this.$locale().formats,en=(G=R,J=void 0===et?{}:et,G.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,G,et){var er=et&&et.toUpperCase();return G||J[et]||W[et]||J[er].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,W,G){return W||G.slice(1)})}));return er.call(this,en)}})},29887:function(R,W,G){var J;/*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(et){"use strict";var er,en={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ei=!0,eo="[DecimalError] ",es=eo+"Invalid argument: ",ec=eo+"Exponent out of range: ",el=Math.floor,eu=Math.pow,ed=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ep=el(1286742750677284.5),ef={};function add(R,W){var G,J,et,er,en,eo,es,ec,el=R.constructor,eu=el.precision;if(!R.s||!W.s)return W.s||(W=new el(R)),ei?round(W,eu):W;if(es=R.d,ec=W.d,en=R.e,et=W.e,es=es.slice(),er=en-et){for(er<0?(J=es,er=-er,eo=ec.length):(J=ec,et=en,eo=es.length),er>(eo=(en=Math.ceil(eu/7))>eo?en+1:eo+1)&&(er=eo,J.length=1),J.reverse();er--;)J.push(0);J.reverse()}for((eo=es.length)-(er=ec.length)<0&&(er=eo,J=ec,ec=es,es=J),G=0;er;)G=(es[--er]=es[er]+ec[er]+G)/1e7|0,es[er]%=1e7;for(G&&(es.unshift(G),++et),eo=es.length;0==es[--eo];)es.pop();return W.d=es,W.e=et,ei?round(W,eu):W}function checkInt32(R,W,G){if(R!==~~R||R<W||R>G)throw Error(es+R)}function digitsToString(R){var W,G,J,et=R.length-1,er="",en=R[0];if(et>0){for(er+=en,W=1;W<et;W++)(G=7-(J=R[W]+"").length)&&(er+=getZeroString(G)),er+=J;(G=7-(J=(en=R[W])+"").length)&&(er+=getZeroString(G))}else if(0===en)return"0";for(;en%10==0;)en/=10;return er+en}ef.absoluteValue=ef.abs=function(){var R=new this.constructor(this);return R.s&&(R.s=1),R},ef.comparedTo=ef.cmp=function(R){var W,G,J,et;if(R=new this.constructor(R),this.s!==R.s)return this.s||-R.s;if(this.e!==R.e)return this.e>R.e^this.s<0?1:-1;for(W=0,G=(J=this.d.length)<(et=R.d.length)?J:et;W<G;++W)if(this.d[W]!==R.d[W])return this.d[W]>R.d[W]^this.s<0?1:-1;return J===et?0:J>et^this.s<0?1:-1},ef.decimalPlaces=ef.dp=function(){var R=this.d.length-1,W=(R-this.e)*7;if(R=this.d[R])for(;R%10==0;R/=10)W--;return W<0?0:W},ef.dividedBy=ef.div=function(R){return eh(this,new this.constructor(R))},ef.dividedToIntegerBy=ef.idiv=function(R){var W=this.constructor;return round(eh(this,new W(R),0,1),W.precision)},ef.equals=ef.eq=function(R){return!this.cmp(R)},ef.exponent=function(){return getBase10Exponent(this)},ef.greaterThan=ef.gt=function(R){return this.cmp(R)>0},ef.greaterThanOrEqualTo=ef.gte=function(R){return this.cmp(R)>=0},ef.isInteger=ef.isint=function(){return this.e>this.d.length-2},ef.isNegative=ef.isneg=function(){return this.s<0},ef.isPositive=ef.ispos=function(){return this.s>0},ef.isZero=function(){return 0===this.s},ef.lessThan=ef.lt=function(R){return 0>this.cmp(R)},ef.lessThanOrEqualTo=ef.lte=function(R){return 1>this.cmp(R)},ef.logarithm=ef.log=function(R){var W,G=this.constructor,J=G.precision,et=J+5;if(void 0===R)R=new G(10);else if((R=new G(R)).s<1||R.eq(er))throw Error(eo+"NaN");if(this.s<1)throw Error(eo+(this.s?"NaN":"-Infinity"));return this.eq(er)?new G(0):(ei=!1,W=eh(ln(this,et),ln(R,et),et),ei=!0,round(W,J))},ef.minus=ef.sub=function(R){return R=new this.constructor(R),this.s==R.s?subtract(this,R):add(this,(R.s=-R.s,R))},ef.modulo=ef.mod=function(R){var W,G=this.constructor,J=G.precision;if(!(R=new G(R)).s)throw Error(eo+"NaN");return this.s?(ei=!1,W=eh(this,R,0,1).times(R),ei=!0,this.minus(W)):round(new G(this),J)},ef.naturalExponential=ef.exp=function(){return exp(this)},ef.naturalLogarithm=ef.ln=function(){return ln(this)},ef.negated=ef.neg=function(){var R=new this.constructor(this);return R.s=-R.s||0,R},ef.plus=ef.add=function(R){return R=new this.constructor(R),this.s==R.s?add(this,R):subtract(this,(R.s=-R.s,R))},ef.precision=ef.sd=function(R){var W,G,J;if(void 0!==R&&!!R!==R&&1!==R&&0!==R)throw Error(es+R);if(W=getBase10Exponent(this)+1,G=7*(J=this.d.length-1)+1,J=this.d[J]){for(;J%10==0;J/=10)G--;for(J=this.d[0];J>=10;J/=10)G++}return R&&W>G?W:G},ef.squareRoot=ef.sqrt=function(){var R,W,G,J,et,er,en,es=this.constructor;if(this.s<1){if(!this.s)return new es(0);throw Error(eo+"NaN")}for(R=getBase10Exponent(this),ei=!1,0==(et=Math.sqrt(+this))||et==1/0?(((W=digitsToString(this.d)).length+R)%2==0&&(W+="0"),et=Math.sqrt(W),R=el((R+1)/2)-(R<0||R%2),W=et==1/0?"5e"+R:(W=et.toExponential()).slice(0,W.indexOf("e")+1)+R,J=new es(W)):J=new es(et.toString()),et=en=(G=es.precision)+3;;)if(J=(er=J).plus(eh(this,er,en+2)).times(.5),digitsToString(er.d).slice(0,en)===(W=digitsToString(J.d)).slice(0,en)){if(W=W.slice(en-3,en+1),et==en&&"4999"==W){if(round(er,G+1,0),er.times(er).eq(this)){J=er;break}}else if("9999"!=W)break;en+=4}return ei=!0,round(J,G)},ef.times=ef.mul=function(R){var W,G,J,et,er,en,eo,es,ec,el=this.constructor,eu=this.d,ed=(R=new el(R)).d;if(!this.s||!R.s)return new el(0);for(R.s*=this.s,G=this.e+R.e,(es=eu.length)<(ec=ed.length)&&(er=eu,eu=ed,ed=er,en=es,es=ec,ec=en),er=[],J=en=es+ec;J--;)er.push(0);for(J=ec;--J>=0;){for(W=0,et=es+J;et>J;)eo=er[et]+ed[J]*eu[et-J-1]+W,er[et--]=eo%1e7|0,W=eo/1e7|0;er[et]=(er[et]+W)%1e7|0}for(;!er[--en];)er.pop();return W?++G:er.shift(),R.d=er,R.e=G,ei?round(R,el.precision):R},ef.toDecimalPlaces=ef.todp=function(R,W){var G=this,J=G.constructor;return(G=new J(G),void 0===R)?G:(checkInt32(R,0,1e9),void 0===W?W=J.rounding:checkInt32(W,0,8),round(G,R+getBase10Exponent(G)+1,W))},ef.toExponential=function(R,W){var G,J=this,et=J.constructor;return void 0===R?G=toString(J,!0):(checkInt32(R,0,1e9),void 0===W?W=et.rounding:checkInt32(W,0,8),G=toString(J=round(new et(J),R+1,W),!0,R+1)),G},ef.toFixed=function(R,W){var G,J,et=this.constructor;return void 0===R?toString(this):(checkInt32(R,0,1e9),void 0===W?W=et.rounding:checkInt32(W,0,8),G=toString((J=round(new et(this),R+getBase10Exponent(this)+1,W)).abs(),!1,R+getBase10Exponent(J)+1),this.isneg()&&!this.isZero()?"-"+G:G)},ef.toInteger=ef.toint=function(){var R=this.constructor;return round(new R(this),getBase10Exponent(this)+1,R.rounding)},ef.toNumber=function(){return+this},ef.toPower=ef.pow=function(R){var W,G,J,et,en,es,ec=this,eu=ec.constructor,ed=+(R=new eu(R));if(!R.s)return new eu(er);if(!(ec=new eu(ec)).s){if(R.s<1)throw Error(eo+"Infinity");return ec}if(ec.eq(er))return ec;if(J=eu.precision,R.eq(er))return round(ec,J);if(es=(W=R.e)>=(G=R.d.length-1),en=ec.s,es){if((G=ed<0?-ed:ed)<=9007199254740991){for(et=new eu(er),W=Math.ceil(J/7+4),ei=!1;G%2&&truncate((et=et.times(ec)).d,W),0!==(G=el(G/2));)truncate((ec=ec.times(ec)).d,W);return ei=!0,R.s<0?new eu(er).div(et):round(et,J)}}else if(en<0)throw Error(eo+"NaN");return en=en<0&&1&R.d[Math.max(W,G)]?-1:1,ec.s=1,ei=!1,et=R.times(ln(ec,J+12)),ei=!0,(et=exp(et)).s=en,et},ef.toPrecision=function(R,W){var G,J,et=this,er=et.constructor;return void 0===R?(G=getBase10Exponent(et),J=toString(et,G<=er.toExpNeg||G>=er.toExpPos)):(checkInt32(R,1,1e9),void 0===W?W=er.rounding:checkInt32(W,0,8),G=getBase10Exponent(et=round(new er(et),R,W)),J=toString(et,R<=G||G<=er.toExpNeg,R)),J},ef.toSignificantDigits=ef.tosd=function(R,W){var G=this.constructor;return void 0===R?(R=G.precision,W=G.rounding):(checkInt32(R,1,1e9),void 0===W?W=G.rounding:checkInt32(W,0,8)),round(new G(this),R,W)},ef.toString=ef.valueOf=ef.val=ef.toJSON=function(){var R=getBase10Exponent(this),W=this.constructor;return toString(this,R<=W.toExpNeg||R>=W.toExpPos)};var eh=function(){function multiplyInteger(R,W){var G,J=0,et=R.length;for(R=R.slice();et--;)G=R[et]*W+J,R[et]=G%1e7|0,J=G/1e7|0;return J&&R.unshift(J),R}function compare(R,W,G,J){var et,er;if(G!=J)er=G>J?1:-1;else for(et=er=0;et<G;et++)if(R[et]!=W[et]){er=R[et]>W[et]?1:-1;break}return er}function subtract(R,W,G){for(var J=0;G--;)R[G]-=J,J=R[G]<W[G]?1:0,R[G]=1e7*J+R[G]-W[G];for(;!R[0]&&R.length>1;)R.shift()}return function(R,W,G,J){var et,er,en,ei,es,ec,el,eu,ed,ep,ef,eh,eg,em,ey,ev,eb,e_,ex=R.constructor,ew=R.s==W.s?1:-1,eS=R.d,eT=W.d;if(!R.s)return new ex(R);if(!W.s)throw Error(eo+"Division by zero");for(en=0,er=R.e-W.e,eb=eT.length,ey=eS.length,eu=(el=new ex(ew)).d=[];eT[en]==(eS[en]||0);)++en;if(eT[en]>(eS[en]||0)&&--er,(eh=null==G?G=ex.precision:J?G+(getBase10Exponent(R)-getBase10Exponent(W))+1:G)<0)return new ex(0);if(eh=eh/7+2|0,en=0,1==eb)for(ei=0,eT=eT[0],eh++;(en<ey||ei)&&eh--;en++)eg=1e7*ei+(eS[en]||0),eu[en]=eg/eT|0,ei=eg%eT|0;else{for((ei=1e7/(eT[0]+1)|0)>1&&(eT=multiplyInteger(eT,ei),eS=multiplyInteger(eS,ei),eb=eT.length,ey=eS.length),em=eb,ep=(ed=eS.slice(0,eb)).length;ep<eb;)ed[ep++]=0;(e_=eT.slice()).unshift(0),ev=eT[0],eT[1]>=1e7/2&&++ev;do ei=0,(et=compare(eT,ed,eb,ep))<0?(ef=ed[0],eb!=ep&&(ef=1e7*ef+(ed[1]||0)),(ei=ef/ev|0)>1?(ei>=1e7&&(ei=1e7-1),ec=(es=multiplyInteger(eT,ei)).length,ep=ed.length,1==(et=compare(es,ed,ec,ep))&&(ei--,subtract(es,eb<ec?e_:eT,ec))):(0==ei&&(et=ei=1),es=eT.slice()),(ec=es.length)<ep&&es.unshift(0),subtract(ed,es,ep),-1==et&&(ep=ed.length,(et=compare(eT,ed,eb,ep))<1&&(ei++,subtract(ed,eb<ep?e_:eT,ep))),ep=ed.length):0===et&&(ei++,ed=[0]),eu[en++]=ei,et&&ed[0]?ed[ep++]=eS[em]||0:(ed=[eS[em]],ep=1);while((em++<ey||void 0!==ed[0])&&eh--)}return eu[0]||eu.shift(),el.e=er,round(el,J?G+getBase10Exponent(el)+1:G)}}();function exp(R,W){var G,J,et,en,eo,es=0,el=0,ed=R.constructor,ep=ed.precision;if(getBase10Exponent(R)>16)throw Error(ec+getBase10Exponent(R));if(!R.s)return new ed(er);for(null==W?(ei=!1,eo=ep):eo=W,en=new ed(.03125);R.abs().gte(.1);)R=R.times(en),el+=5;for(eo+=Math.log(eu(2,el))/Math.LN10*2+5|0,G=J=et=new ed(er),ed.precision=eo;;){if(J=round(J.times(R),eo),G=G.times(++es),digitsToString((en=et.plus(eh(J,G,eo))).d).slice(0,eo)===digitsToString(et.d).slice(0,eo)){for(;el--;)et=round(et.times(et),eo);return ed.precision=ep,null==W?(ei=!0,round(et,ep)):et}et=en}}function getBase10Exponent(R){for(var W=7*R.e,G=R.d[0];G>=10;G/=10)W++;return W}function getLn10(R,W,G){if(W>R.LN10.sd())throw ei=!0,G&&(R.precision=G),Error(eo+"LN10 precision limit exceeded");return round(new R(R.LN10),W)}function getZeroString(R){for(var W="";R--;)W+="0";return W}function ln(R,W){var G,J,et,en,es,ec,el,eu,ed,ep=1,ef=R,eg=ef.d,em=ef.constructor,ey=em.precision;if(ef.s<1)throw Error(eo+(ef.s?"NaN":"-Infinity"));if(ef.eq(er))return new em(0);if(null==W?(ei=!1,eu=ey):eu=W,ef.eq(10))return null==W&&(ei=!0),getLn10(em,eu);if(eu+=10,em.precision=eu,J=(G=digitsToString(eg)).charAt(0),!(15e14>Math.abs(en=getBase10Exponent(ef))))return el=getLn10(em,eu+2,ey).times(en+""),ef=ln(new em(J+"."+G.slice(1)),eu-10).plus(el),em.precision=ey,null==W?(ei=!0,round(ef,ey)):ef;for(;J<7&&1!=J||1==J&&G.charAt(1)>3;)J=(G=digitsToString((ef=ef.times(R)).d)).charAt(0),ep++;for(en=getBase10Exponent(ef),J>1?(ef=new em("0."+G),en++):ef=new em(J+"."+G.slice(1)),ec=es=ef=eh(ef.minus(er),ef.plus(er),eu),ed=round(ef.times(ef),eu),et=3;;){if(es=round(es.times(ed),eu),digitsToString((el=ec.plus(eh(es,new em(et),eu))).d).slice(0,eu)===digitsToString(ec.d).slice(0,eu))return ec=ec.times(2),0!==en&&(ec=ec.plus(getLn10(em,eu+2,ey).times(en+""))),ec=eh(ec,new em(ep),eu),em.precision=ey,null==W?(ei=!0,round(ec,ey)):ec;ec=el,et+=2}}function parseDecimal(R,W){var G,J,et;for((G=W.indexOf("."))>-1&&(W=W.replace(".","")),(J=W.search(/e/i))>0?(G<0&&(G=J),G+=+W.slice(J+1),W=W.substring(0,J)):G<0&&(G=W.length),J=0;48===W.charCodeAt(J);)++J;for(et=W.length;48===W.charCodeAt(et-1);)--et;if(W=W.slice(J,et)){if(et-=J,G=G-J-1,R.e=el(G/7),R.d=[],J=(G+1)%7,G<0&&(J+=7),J<et){for(J&&R.d.push(+W.slice(0,J)),et-=7;J<et;)R.d.push(+W.slice(J,J+=7));J=7-(W=W.slice(J)).length}else J-=et;for(;J--;)W+="0";if(R.d.push(+W),ei&&(R.e>ep||R.e<-ep))throw Error(ec+G)}else R.s=0,R.e=0,R.d=[0];return R}function round(R,W,G){var J,et,er,en,eo,es,ed,ef,eh=R.d;for(en=1,er=eh[0];er>=10;er/=10)en++;if((J=W-en)<0)J+=7,et=W,ed=eh[ef=0];else{if((ef=Math.ceil((J+1)/7))>=(er=eh.length))return R;for(en=1,ed=er=eh[ef];er>=10;er/=10)en++;J%=7,et=J-7+en}if(void 0!==G&&(eo=ed/(er=eu(10,en-et-1))%10|0,es=W<0||void 0!==eh[ef+1]||ed%er,es=G<4?(eo||es)&&(0==G||G==(R.s<0?3:2)):eo>5||5==eo&&(4==G||es||6==G&&(J>0?et>0?ed/eu(10,en-et):0:eh[ef-1])%10&1||G==(R.s<0?8:7))),W<1||!eh[0])return es?(er=getBase10Exponent(R),eh.length=1,W=W-er-1,eh[0]=eu(10,(7-W%7)%7),R.e=el(-W/7)||0):(eh.length=1,eh[0]=R.e=R.s=0),R;if(0==J?(eh.length=ef,er=1,ef--):(eh.length=ef+1,er=eu(10,7-J),eh[ef]=et>0?(ed/eu(10,en-et)%eu(10,et)|0)*er:0),es)for(;;){if(0==ef){1e7==(eh[0]+=er)&&(eh[0]=1,++R.e);break}if(eh[ef]+=er,1e7!=eh[ef])break;eh[ef--]=0,er=1}for(J=eh.length;0===eh[--J];)eh.pop();if(ei&&(R.e>ep||R.e<-ep))throw Error(ec+getBase10Exponent(R));return R}function subtract(R,W){var G,J,et,er,en,eo,es,ec,el,eu,ed=R.constructor,ep=ed.precision;if(!R.s||!W.s)return W.s?W.s=-W.s:W=new ed(R),ei?round(W,ep):W;if(es=R.d,eu=W.d,J=W.e,ec=R.e,es=es.slice(),en=ec-J){for((el=en<0)?(G=es,en=-en,eo=eu.length):(G=eu,J=ec,eo=es.length),en>(et=Math.max(Math.ceil(ep/7),eo)+2)&&(en=et,G.length=1),G.reverse(),et=en;et--;)G.push(0);G.reverse()}else{for((el=(et=es.length)<(eo=eu.length))&&(eo=et),et=0;et<eo;et++)if(es[et]!=eu[et]){el=es[et]<eu[et];break}en=0}for(el&&(G=es,es=eu,eu=G,W.s=-W.s),eo=es.length,et=eu.length-eo;et>0;--et)es[eo++]=0;for(et=eu.length;et>en;){if(es[--et]<eu[et]){for(er=et;er&&0===es[--er];)es[er]=1e7-1;--es[er],es[et]+=1e7}es[et]-=eu[et]}for(;0===es[--eo];)es.pop();for(;0===es[0];es.shift())--J;return es[0]?(W.d=es,W.e=J,ei?round(W,ep):W):new ed(0)}function toString(R,W,G){var J,et=getBase10Exponent(R),er=digitsToString(R.d),en=er.length;return W?(G&&(J=G-en)>0?er=er.charAt(0)+"."+er.slice(1)+getZeroString(J):en>1&&(er=er.charAt(0)+"."+er.slice(1)),er=er+(et<0?"e":"e+")+et):et<0?(er="0."+getZeroString(-et-1)+er,G&&(J=G-en)>0&&(er+=getZeroString(J))):et>=en?(er+=getZeroString(et+1-en),G&&(J=G-et-1)>0&&(er=er+"."+getZeroString(J))):((J=et+1)<en&&(er=er.slice(0,J)+"."+er.slice(J)),G&&(J=G-en)>0&&(et+1===en&&(er+="."),er+=getZeroString(J))),R.s<0?"-"+er:er}function truncate(R,W){if(R.length>W)return R.length=W,!0}function config(R){if(!R||"object"!=typeof R)throw Error(eo+"Object expected");var W,G,J,et=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(W=0;W<et.length;W+=3)if(void 0!==(J=R[G=et[W]])){if(el(J)===J&&J>=et[W+1]&&J<=et[W+2])this[G]=J;else throw Error(es+G+": "+J)}if(void 0!==(J=R[G="LN10"])){if(J==Math.LN10)this[G]=new this(J);else throw Error(es+G+": "+J)}return this}(en=function clone(R){var W,G,J;function Decimal(R){if(!(this instanceof Decimal))return new Decimal(R);if(this.constructor=Decimal,R instanceof Decimal){this.s=R.s,this.e=R.e,this.d=(R=R.d)?R.slice():R;return}if("number"==typeof R){if(0*R!=0)throw Error(es+R);if(R>0)this.s=1;else if(R<0)R=-R,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(R===~~R&&R<1e7){this.e=0,this.d=[R];return}return parseDecimal(this,R.toString())}if("string"!=typeof R)throw Error(es+R);if(45===R.charCodeAt(0)?(R=R.slice(1),this.s=-1):this.s=1,ed.test(R))parseDecimal(this,R);else throw Error(es+R)}if(Decimal.prototype=ef,Decimal.ROUND_UP=0,Decimal.ROUND_DOWN=1,Decimal.ROUND_CEIL=2,Decimal.ROUND_FLOOR=3,Decimal.ROUND_HALF_UP=4,Decimal.ROUND_HALF_DOWN=5,Decimal.ROUND_HALF_EVEN=6,Decimal.ROUND_HALF_CEIL=7,Decimal.ROUND_HALF_FLOOR=8,Decimal.clone=clone,Decimal.config=Decimal.set=config,void 0===R&&(R={}),R)for(W=0,J=["precision","rounding","toExpNeg","toExpPos","LN10"];W<J.length;)R.hasOwnProperty(G=J[W++])||(R[G]=this[G]);return Decimal.config(R),Decimal}(en)).default=en.Decimal=en,er=new en(1),void 0!==(J=(function(){return en}).call(W,G,W,R))&&(R.exports=J)}(0)},98141:function(R,W,G){"use strict";var J=G(64836);W.__esModule=!0,W.default=function(R,W){R.classList?R.classList.add(W):(0,et.default)(R,W)||("string"==typeof R.className?R.className=R.className+" "+W:R.setAttribute("class",(R.className&&R.className.baseVal||"")+" "+W))};var et=J(G(90404));R.exports=W.default},90404:function(R,W){"use strict";W.__esModule=!0,W.default=function(R,W){return R.classList?!!W&&R.classList.contains(W):-1!==(" "+(R.className.baseVal||R.className)+" ").indexOf(" "+W+" ")},R.exports=W.default},10602:function(R){"use strict";function replaceClassName(R,W){return R.replace(RegExp("(^|\\s)"+W+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}R.exports=function(R,W){R.classList?R.classList.remove(W):"string"==typeof R.className?R.className=replaceClassName(R.className,W):R.setAttribute("class",replaceClassName(R.className&&R.className.baseVal||"",W))}},624:function(R,W,G){var J=G(87355);function Emitter(R){if(R)return function(R){for(var W in Emitter.prototype)R[W]=Emitter.prototype[W];return R}(R)}R.exports=Emitter,Emitter.prototype.on=function(R,W){return this._callbacks=this._callbacks||{},(this._callbacks[R]=this._callbacks[R]||[]).push(W),this},Emitter.prototype.once=function(R,W){var G=this;function on(){G.off(R,on),W.apply(this,arguments)}return this._callbacks=this._callbacks||{},W._off=on,this.on(R,on),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=function(R,W){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var G=this._callbacks[R];if(!G)return this;if(1==arguments.length)return delete this._callbacks[R],this;var et=J(G,W._off||W);return~et&&G.splice(et,1),this},Emitter.prototype.emit=function(R){this._callbacks=this._callbacks||{};var W=[].slice.call(arguments,1),G=this._callbacks[R];if(G){G=G.slice(0);for(var J=0,et=G.length;J<et;++J)G[J].apply(this,W)}return this},Emitter.prototype.listeners=function(R){return this._callbacks=this._callbacks||{},this._callbacks[R]||[]},Emitter.prototype.hasListeners=function(R){return!!this.listeners(R).length}},26729:function(R){"use strict";var W=Object.prototype.hasOwnProperty,G="~";function Events(){}function EE(R,W,G){this.fn=R,this.context=W,this.once=G||!1}function addListener(R,W,J,et,er){if("function"!=typeof J)throw TypeError("The listener must be a function");var en=new EE(J,et||R,er),ei=G?G+W:W;return R._events[ei]?R._events[ei].fn?R._events[ei]=[R._events[ei],en]:R._events[ei].push(en):(R._events[ei]=en,R._eventsCount++),R}function clearEvent(R,W){0==--R._eventsCount?R._events=new Events:delete R._events[W]}function EventEmitter(){this._events=new Events,this._eventsCount=0}Object.create&&(Events.prototype=Object.create(null),new Events().__proto__||(G=!1)),EventEmitter.prototype.eventNames=function(){var R,J,et=[];if(0===this._eventsCount)return et;for(J in R=this._events)W.call(R,J)&&et.push(G?J.slice(1):J);return Object.getOwnPropertySymbols?et.concat(Object.getOwnPropertySymbols(R)):et},EventEmitter.prototype.listeners=function(R){var W=G?G+R:R,J=this._events[W];if(!J)return[];if(J.fn)return[J.fn];for(var et=0,er=J.length,en=Array(er);et<er;et++)en[et]=J[et].fn;return en},EventEmitter.prototype.listenerCount=function(R){var W=G?G+R:R,J=this._events[W];return J?J.fn?1:J.length:0},EventEmitter.prototype.emit=function(R,W,J,et,er,en){var ei=G?G+R:R;if(!this._events[ei])return!1;var eo,es,ec=this._events[ei],el=arguments.length;if(ec.fn){switch(ec.once&&this.removeListener(R,ec.fn,void 0,!0),el){case 1:return ec.fn.call(ec.context),!0;case 2:return ec.fn.call(ec.context,W),!0;case 3:return ec.fn.call(ec.context,W,J),!0;case 4:return ec.fn.call(ec.context,W,J,et),!0;case 5:return ec.fn.call(ec.context,W,J,et,er),!0;case 6:return ec.fn.call(ec.context,W,J,et,er,en),!0}for(es=1,eo=Array(el-1);es<el;es++)eo[es-1]=arguments[es];ec.fn.apply(ec.context,eo)}else{var eu,ed=ec.length;for(es=0;es<ed;es++)switch(ec[es].once&&this.removeListener(R,ec[es].fn,void 0,!0),el){case 1:ec[es].fn.call(ec[es].context);break;case 2:ec[es].fn.call(ec[es].context,W);break;case 3:ec[es].fn.call(ec[es].context,W,J);break;case 4:ec[es].fn.call(ec[es].context,W,J,et);break;default:if(!eo)for(eu=1,eo=Array(el-1);eu<el;eu++)eo[eu-1]=arguments[eu];ec[es].fn.apply(ec[es].context,eo)}}return!0},EventEmitter.prototype.on=function(R,W,G){return addListener(this,R,W,G,!1)},EventEmitter.prototype.once=function(R,W,G){return addListener(this,R,W,G,!0)},EventEmitter.prototype.removeListener=function(R,W,J,et){var er=G?G+R:R;if(!this._events[er])return this;if(!W)return clearEvent(this,er),this;var en=this._events[er];if(en.fn)en.fn!==W||et&&!en.once||J&&en.context!==J||clearEvent(this,er);else{for(var ei=0,eo=[],es=en.length;ei<es;ei++)(en[ei].fn!==W||et&&!en[ei].once||J&&en[ei].context!==J)&&eo.push(en[ei]);eo.length?this._events[er]=1===eo.length?eo[0]:eo:clearEvent(this,er)}return this},EventEmitter.prototype.removeAllListeners=function(R){var W;return R?(W=G?G+R:R,this._events[W]&&clearEvent(this,W)):(this._events=new Events,this._eventsCount=0),this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.addListener=EventEmitter.prototype.on,EventEmitter.prefixed=G,EventEmitter.EventEmitter=EventEmitter,R.exports=EventEmitter},4445:function(R){R.exports=stringify,stringify.default=stringify,stringify.stable=deterministicStringify,stringify.stableStringify=deterministicStringify;var W="[...]",G="[Circular]",J=[],et=[];function defaultOptions(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function stringify(R,er,en,ei){void 0===ei&&(ei=defaultOptions()),function decirc(R,J,et,er,en,ei,eo){if(ei+=1,"object"==typeof R&&null!==R){for(es=0;es<er.length;es++)if(er[es]===R){setReplace(G,R,J,en);return}if(void 0!==eo.depthLimit&&ei>eo.depthLimit||void 0!==eo.edgesLimit&&et+1>eo.edgesLimit){setReplace(W,R,J,en);return}if(er.push(R),Array.isArray(R))for(es=0;es<R.length;es++)decirc(R[es],es,es,er,R,ei,eo);else{var es,ec=Object.keys(R);for(es=0;es<ec.length;es++){var el=ec[es];decirc(R[el],el,es,er,R,ei,eo)}}er.pop()}}(R,"",0,[],void 0,0,ei);try{eo=0===et.length?JSON.stringify(R,er,en):JSON.stringify(R,replaceGetterValues(er),en)}catch(R){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==J.length;){var eo,es=J.pop();4===es.length?Object.defineProperty(es[0],es[1],es[3]):es[0][es[1]]=es[2]}}return eo}function setReplace(R,W,G,er){var en=Object.getOwnPropertyDescriptor(er,G);void 0!==en.get?en.configurable?(Object.defineProperty(er,G,{value:R}),J.push([er,G,W,en])):et.push([W,G,R]):(er[G]=R,J.push([er,G,W]))}function compareFunction(R,W){return R<W?-1:R>W?1:0}function deterministicStringify(R,er,en,ei){void 0===ei&&(ei=defaultOptions());var eo,es=function deterministicDecirc(R,et,er,en,ei,eo,es){if(eo+=1,"object"==typeof R&&null!==R){for(ec=0;ec<en.length;ec++)if(en[ec]===R){setReplace(G,R,et,ei);return}try{if("function"==typeof R.toJSON)return}catch(R){return}if(void 0!==es.depthLimit&&eo>es.depthLimit||void 0!==es.edgesLimit&&er+1>es.edgesLimit){setReplace(W,R,et,ei);return}if(en.push(R),Array.isArray(R))for(ec=0;ec<R.length;ec++)deterministicDecirc(R[ec],ec,ec,en,R,eo,es);else{var ec,el={},eu=Object.keys(R).sort(compareFunction);for(ec=0;ec<eu.length;ec++){var ed=eu[ec];deterministicDecirc(R[ed],ed,ec,en,R,eo,es),el[ed]=R[ed]}if(void 0===ei)return el;J.push([ei,et,R]),ei[et]=el}en.pop()}}(R,"",0,[],void 0,0,ei)||R;try{eo=0===et.length?JSON.stringify(es,er,en):JSON.stringify(es,replaceGetterValues(er),en)}catch(R){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==J.length;){var ec=J.pop();4===ec.length?Object.defineProperty(ec[0],ec[1],ec[3]):ec[0][ec[1]]=ec[2]}}return eo}function replaceGetterValues(R){return R=void 0!==R?R:function(R,W){return W},function(W,G){if(et.length>0)for(var J=0;J<et.length;J++){var er=et[J];if(er[1]===W&&er[0]===G){G=er[2],et.splice(J,1);break}}return R.call(this,W,G)}}},68846:function(R,W,G){"use strict";G.d(W,{M_:function(){return AnimatePresence},ww:function(){return rM},Hm:function(){return useTransform},ME:function(){return useViewportScroll}});var J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef={};G.r(ef),G.d(ef,{anticipate:function(){return e3},backIn:function(){return e0},backInOut:function(){return e2},backOut:function(){return e1},bounceIn:function(){return bounceIn},bounceInOut:function(){return bounceInOut},bounceOut:function(){return bounceOut},circIn:function(){return circIn},circInOut:function(){return eJ},circOut:function(){return eQ},createAnticipateEasing:function(){return createAnticipateEasing},createBackIn:function(){return createBackIn},createExpoIn:function(){return createExpoIn},createMirroredEasing:function(){return e$},createReversedEasing:function(){return eG},cubicBezier:function(){return cubicBezier},easeIn:function(){return eK},easeInOut:function(){return eX},easeOut:function(){return eY},linear:function(){return easing_es_linear},mirrored:function(){return mirrored},reversed:function(){return reversed}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function(R,W){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(R,W){R.__proto__=W}||function(R,W){for(var G in W)W.hasOwnProperty(G)&&(R[G]=W[G])})(R,W)},tslib_es6_assign=function(){return(tslib_es6_assign=Object.assign||function(R){for(var W,G=1,J=arguments.length;G<J;G++)for(var et in W=arguments[G])Object.prototype.hasOwnProperty.call(W,et)&&(R[et]=W[et]);return R}).apply(this,arguments)};function tslib_es6_rest(R,W){var G={};for(var J in R)Object.prototype.hasOwnProperty.call(R,J)&&0>W.indexOf(J)&&(G[J]=R[J]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols)for(var et=0,J=Object.getOwnPropertySymbols(R);et<J.length;et++)0>W.indexOf(J[et])&&Object.prototype.propertyIsEnumerable.call(R,J[et])&&(G[J[et]]=R[J[et]]);return G}function __spreadArrays(){for(var R=0,W=0,G=arguments.length;W<G;W++)R+=arguments[W].length;for(var J=Array(R),et=0,W=0;W<G;W++)for(var er=arguments[W],en=0,ei=er.length;en<ei;en++,et++)J[et]=er[en];return J}var eh=G(67294),hey_listen_es_warning=function(){},hey_listen_es_invariant=function(){},eg=0,em="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(R){return window.requestAnimationFrame(R)}:function(R){var W=Date.now(),G=Math.max(0,16.7-(W-eg));eg=W+G,setTimeout(function(){return R(eg)},G)},createStep=function(R){var W=[],G=[],J=0,et=!1,er=0,en=new WeakSet,ei=new WeakSet,eo={cancel:function(R){var W=G.indexOf(R);en.add(R),-1!==W&&G.splice(W,1)},process:function(es){var ec,el;if(et=!0,W=(ec=[G,W])[0],(G=ec[1]).length=0,J=W.length)for(er=0;er<J;er++)(el=W[er])(es),!0!==ei.has(el)||en.has(el)||(eo.schedule(el),R(!0));et=!1},schedule:function(R,er,eo){void 0===er&&(er=!1),void 0===eo&&(eo=!1),hey_listen_es_invariant("function"==typeof R,"Argument must be a function");var es=eo&&et,ec=es?W:G;en.delete(R),er&&ei.add(R),-1===ec.indexOf(R)&&(ec.push(R),es&&(J=W.length))}};return eo},ey=1/60*1e3,ev=!0,eb=!1,e_=!1,ex={delta:0,timestamp:0},ew=["read","update","preRender","render","postRender"],setWillRunNextFrame=function(R){return eb=R},eS=ew.reduce(function(R,W){return R[W]=createStep(setWillRunNextFrame),R},{}),eT=ew.reduce(function(R,W){var G=eS[W];return R[W]=function(R,W,J){return void 0===W&&(W=!1),void 0===J&&(J=!1),eb||startLoop(),G.schedule(R,W,J),R},R},{}),eO=ew.reduce(function(R,W){return R[W]=eS[W].cancel,R},{}),processStep=function(R){return eS[R].process(ex)},processFrame=function(R){eb=!1,ex.delta=ev?ey:Math.max(Math.min(R-ex.timestamp,40),1),ev||(ey=ex.delta),ex.timestamp=R,e_=!0,ew.forEach(processStep),e_=!1,eb&&(ev=!1,em(processFrame))},startLoop=function(){eb=!0,ev=!0,e_||em(processFrame)},framesync_es_getFrameData=function(){return ex},tslib_tslib_es6_assign=function(){return(tslib_tslib_es6_assign=Object.assign||function(R){for(var W,G=1,J=arguments.length;G<J;G++)for(var et in W=arguments[G])Object.prototype.hasOwnProperty.call(W,et)&&(R[et]=W[et]);return R}).apply(this,arguments)},clamp=function(R,W){return function(G){return Math.max(Math.min(G,W),R)}},sanitize=function(R){return R%1?Number(R.toFixed(5)):R},eP=/(-)?(\d[\d\.]*)/g,eC=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ek=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,eE={test:function(R){return"number"==typeof R},parse:parseFloat,transform:function(R){return R}},ej=tslib_tslib_es6_assign(tslib_tslib_es6_assign({},eE),{transform:clamp(0,1)}),eA=tslib_tslib_es6_assign(tslib_tslib_es6_assign({},eE),{default:1}),createUnitType=function(R){return{test:function(W){return"string"==typeof W&&W.endsWith(R)&&1===W.split(" ").length},parse:parseFloat,transform:function(W){return""+W+R}}},eD=createUnitType("deg"),eI=createUnitType("%"),eM=createUnitType("px"),eL=createUnitType("vh"),eR=createUnitType("vw"),eN=tslib_tslib_es6_assign(tslib_tslib_es6_assign({},eI),{parse:function(R){return eI.parse(R)/100},transform:function(R){return eI.transform(100*R)}}),eB=clamp(0,255),isRgba=function(R){return void 0!==R.red},isHsla=function(R){return void 0!==R.hue},splitColorValues=function(R){return function(W){if("string"!=typeof W)return W;for(var G={},J=W.substring(W.indexOf("(")+1,W.lastIndexOf(")")).replace(/(,|\/)/g," ").split(/ \s*/),et=0;et<4;et++)G[R[et]]=void 0!==J[et]?parseFloat(J[et]):1;return G}},rgbaTemplate=function(R){var W=R.red,G=R.green,J=R.blue,et=R.alpha;return"rgba("+W+", "+G+", "+J+", "+(void 0===et?1:et)+")"},hslaTemplate=function(R){var W=R.hue,G=R.saturation,J=R.lightness,et=R.alpha;return"hsla("+W+", "+G+", "+J+", "+(void 0===et?1:et)+")"},eZ=tslib_tslib_es6_assign(tslib_tslib_es6_assign({},eE),{transform:function(R){return Math.round(eB(R))}});function isColorString(R,W){return R.startsWith(W)&&ek.test(R)}var eU={test:function(R){return"string"==typeof R?isColorString(R,"rgb"):isRgba(R)},parse:splitColorValues(["red","green","blue","alpha"]),transform:function(R){var W=R.red,G=R.green,J=R.blue,et=R.alpha,er=void 0===et?1:et;return rgbaTemplate({red:eZ.transform(W),green:eZ.transform(G),blue:eZ.transform(J),alpha:sanitize(ej.transform(er))})}},eF={test:function(R){return"string"==typeof R?isColorString(R,"hsl"):isHsla(R)},parse:splitColorValues(["hue","saturation","lightness","alpha"]),transform:function(R){var W=R.hue,G=R.saturation,J=R.lightness,et=R.alpha,er=void 0===et?1:et;return hslaTemplate({hue:Math.round(W),saturation:eI.transform(sanitize(G)),lightness:eI.transform(sanitize(J)),alpha:sanitize(ej.transform(er))})}},ez=tslib_tslib_es6_assign(tslib_tslib_es6_assign({},eU),{test:function(R){return"string"==typeof R&&isColorString(R,"#")},parse:function(R){var W="",G="",J="";return R.length>4?(W=R.substr(1,2),G=R.substr(3,2),J=R.substr(5,2)):(W=R.substr(1,1),G=R.substr(2,1),J=R.substr(3,1),W+=W,G+=G,J+=J),{red:parseInt(W,16),green:parseInt(G,16),blue:parseInt(J,16),alpha:1}}}),eH={test:function(R){return"string"==typeof R&&ek.test(R)||isRgba(R)||isHsla(R)},parse:function(R){return eU.test(R)?eU.parse(R):eF.test(R)?eF.parse(R):ez.test(R)?ez.parse(R):R},transform:function(R){return isRgba(R)?eU.transform(R):isHsla(R)?eF.transform(R):R}},eq="${c}",eV="${n}",convertNumbersToZero=function(R){return"number"==typeof R?0:R},eW={test:function(R){if("string"!=typeof R||!isNaN(R))return!1;var W=0,G=R.match(eP),J=R.match(eC);return G&&(W+=G.length),J&&(W+=J.length),W>0},parse:function(R){var W=R,G=[],J=W.match(eC);J&&(W=W.replace(eC,eq),G.push.apply(G,J.map(eH.parse)));var et=W.match(eP);return et&&G.push.apply(G,et.map(eE.parse)),G},createTransformer:function(R){var W=R,G=0,J=R.match(eC),et=J?J.length:0;if(J)for(var er=0;er<et;er++)W=W.replace(J[er],eq),G++;var en=W.match(eP),ei=en?en.length:0;if(en)for(var er=0;er<ei;er++)W=W.replace(en[er],eV),G++;return function(R){for(var J=W,er=0;er<G;er++)J=J.replace(er<et?eq:eV,er<et?eH.transform(R[er]):sanitize(R[er]));return J}},getAnimatableNone:function(R){var W=eW.parse(R);return eW.createTransformer(R)(W.map(convertNumbersToZero))}},reversed=function(R){return function(W){return 1-R(1-W)}},mirrored=function(R){return function(W){return W<=.5?R(2*W)/2:(2-R(2*(1-W)))/2}},eG=reversed,e$=mirrored,createExpoIn=function(R){return function(W){return Math.pow(W,R)}},createBackIn=function(R){return function(W){return W*W*((R+1)*W-R)}},createAnticipateEasing=function(R){var W=createBackIn(R);return function(R){return(R*=2)<1?.5*W(R):.5*(2-Math.pow(2,-10*(R-1)))}},easing_es_linear=function(R){return R},eK=createExpoIn(2),eY=reversed(eK),eX=mirrored(eK),circIn=function(R){return 1-Math.sin(Math.acos(R))},eQ=reversed(circIn),eJ=mirrored(eQ),e0=createBackIn(1.525),e1=reversed(e0),e2=mirrored(e0),e3=createAnticipateEasing(1.525),e5=4/11,e4=8/11,e8=4356/361,e6=35442/1805,e7=16061/1805,bounceOut=function(R){var W=R*R;return R<e5?7.5625*W:R<e4?9.075*W-9.9*R+3.4:R<.9?e8*W-e6*R+e7:10.8*R*R-20.52*R+10.72},bounceIn=function(R){return 1-bounceOut(1-R)},bounceInOut=function(R){return R<.5?.5*(1-bounceOut(1-2*R)):.5*bounceOut(2*R-1)+.5},e9="undefined"!=typeof Float32Array,a=function(R,W){return 1-3*W+3*R},b=function(R,W){return 3*W-6*R},c=function(R){return 3*R},getSlope=function(R,W,G){return 3*a(W,G)*R*R+2*b(W,G)*R+c(W)},calcBezier=function(R,W,G){return((a(W,G)*R+b(W,G))*R+c(W))*R};function cubicBezier(R,W,G,J){var et=e9?new Float32Array(11):Array(11),binarySubdivide=function(W,J,et){var er,en,ei=0;do(er=calcBezier(en=J+(et-J)/2,R,G)-W)>0?et=en:J=en;while(Math.abs(er)>1e-7&&++ei<10);return en},newtonRaphsonIterate=function(W,J){for(var et,er=0,en=0;er<8&&0!==(en=getSlope(J,R,G));++er)et=calcBezier(J,R,G)-W,J-=et/en;return J},getTForX=function(W){for(var J=0,er=1,en=0,ei=0;10!==er&&et[er]<=W;++er)J+=.1;return(ei=getSlope(en=J+(W-et[--er])/(et[er+1]-et[er])*.1,R,G))>=.001?newtonRaphsonIterate(W,en):0===ei?en:binarySubdivide(W,J,J+.1)};return!function(){for(var W=0;W<11;++W)et[W]=calcBezier(.1*W,R,G)}(),function(et){return R===W&&G===J?et:0===et?0:1===et?1:calcBezier(getTForX(et),W,J)}}var isNum=function(R){return"number"==typeof R},curryRange=function(R){return function(W,G,J){return void 0!==J?R(W,G,J):function(J){return R(W,G,J)}}},tt=curryRange(function(R,W,G){return Math.min(Math.max(G,R),W)}),isPoint=function(R){return R.hasOwnProperty("x")&&R.hasOwnProperty("y")},isPoint3D=function(R){return isPoint(R)&&R.hasOwnProperty("z")},distance1D=function(R,W){return Math.abs(R-W)},progress=function(R,W,G){var J=W-R;return 0===J?1:(G-R)/J},popcorn_es_mix=function(R,W,G){return-G*R+G*W+R},popcorn_es_assign=function(){return(popcorn_es_assign=Object.assign||function(R){for(var W,G=1,J=arguments.length;G<J;G++)for(var et in W=arguments[G])Object.prototype.hasOwnProperty.call(W,et)&&(R[et]=W[et]);return R}).apply(this,arguments)},mixLinearColor=function(R,W,G){var J=R*R;return Math.sqrt(Math.max(0,G*(W*W-J)+J))},tr=[ez,eU,eF],getColorType=function(R){return tr.find(function(W){return W.test(R)})},notAnimatable=function(R){return"'"+R+"' is not an animatable color. Use the equivalent color code instead."},mixColor=function(R,W){var G=getColorType(R),J=getColorType(W);hey_listen_es_invariant(!!G,notAnimatable(R)),hey_listen_es_invariant(!!J,notAnimatable(W)),hey_listen_es_invariant(G.transform===J.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var et=G.parse(R),er=J.parse(W),en=popcorn_es_assign({},et),ei=G===eF?popcorn_es_mix:mixLinearColor;return function(R){for(var W in en)"alpha"!==W&&(en[W]=ei(et[W],er[W],R));return en.alpha=popcorn_es_mix(et.alpha,er.alpha,R),G.transform(en)}},combineFunctions=function(R,W){return function(G){return W(R(G))}},popcorn_es_pipe=function(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];return R.reduce(combineFunctions)};function getMixer(R,W){return isNum(R)?function(G){return popcorn_es_mix(R,W,G)}:eH.test(R)?mixColor(R,W):mixComplex(R,W)}var mixArray=function(R,W){var G=R.slice(),J=G.length,et=R.map(function(R,G){return getMixer(R,W[G])});return function(R){for(var W=0;W<J;W++)G[W]=et[W](R);return G}},mixObject=function(R,W){var G=popcorn_es_assign({},R,W),J={};for(var et in G)void 0!==R[et]&&void 0!==W[et]&&(J[et]=getMixer(R[et],W[et]));return function(R){for(var W in J)G[W]=J[W](R);return G}};function analyse(R){for(var W=eW.parse(R),G=W.length,J=0,et=0,er=0,en=0;en<G;en++)J||"number"==typeof W[en]?J++:void 0!==W[en].hue?er++:et++;return{parsed:W,numNumbers:J,numRGB:et,numHSL:er}}var mixComplex=function(R,W){var G=eW.createTransformer(W),J=analyse(R),et=analyse(W);return hey_listen_es_invariant(J.numHSL===et.numHSL&&J.numRGB===et.numRGB&&J.numNumbers>=et.numNumbers,"Complex values '"+R+"' and '"+W+"' too different to mix. Ensure all colors are of the same type."),popcorn_es_pipe(mixArray(J.parsed,et.parsed),G)},mixNumber=function(R,W){return function(G){return popcorn_es_mix(R,W,G)}},identity=function(R){return R},springForce=function(R){return void 0===R&&(R=identity),curryRange(function(W,G,J){var et=G-J,er=-(0-W+1)*(0-R(Math.abs(et)));return et<=0?G+er:G-er})};springForce(),springForce(Math.sqrt);var popcorn_es_velocityPerSecond=function(R,W){return W?R*(1e3/W):0};curryRange(function(R,W,G){var J=W-R;return((G-R)%J+J)%J+R}),tt(0,1);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var node_modules_tslib_tslib_es6_assign=function(){return(node_modules_tslib_tslib_es6_assign=Object.assign||function(R){for(var W,G=1,J=arguments.length;G<J;G++)for(var et in W=arguments[G])Object.prototype.hasOwnProperty.call(W,et)&&(R[et]=W[et]);return R}).apply(this,arguments)};function node_modules_tslib_tslib_es6_rest(R,W){var G={};for(var J in R)Object.prototype.hasOwnProperty.call(R,J)&&0>W.indexOf(J)&&(G[J]=R[J]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols)for(var et=0,J=Object.getOwnPropertySymbols(R);et<J.length;et++)0>W.indexOf(J[et])&&Object.prototype.propertyIsEnumerable.call(R,J[et])&&(G[J[et]]=R[J[et]]);return G}var createStyler=function(R){var W=R.onRead,G=R.onRender,J=R.uncachedValues,et=void 0===J?new Set:J,er=R.useCache,en=void 0===er||er;return function(R){void 0===R&&(R={});var J=node_modules_tslib_tslib_es6_rest(R,[]),er={},ei=[],eo=!1;function setValue(R,W){R.startsWith("--")&&(J.hasCSSVariable=!0);var G=er[R];er[R]=W,er[R]===G||(-1===ei.indexOf(R)&&ei.push(R),eo||(eo=!0,eT.render(es.render)))}var es={get:function(R,G){return void 0===G&&(G=!1),G||!en||et.has(R)||void 0===er[R]?W(R,J):er[R]},set:function(R,W){if("string"==typeof R)setValue(R,W);else for(var G in R)setValue(G,R[G]);return this},render:function(R){return void 0===R&&(R=!1),(eo||!0===R)&&(G(er,J,ei),eo=!1,ei.length=0),this}};return es}},tn=/([a-z])([A-Z])/g,camelToDash=function(R){return R.replace(tn,"$1-$2").toLowerCase()},ti=new Map,to=new Map,ta=["Webkit","Moz","O","ms",""],ts=ta.length,tc="undefined"!=typeof document,setDashPrefix=function(R,W){return to.set(R,camelToDash(W))},testPrefix=function(R){ei=ei||document.createElement("div");for(var W=0;W<ts;W++){var G=ta[W],J=""===G,et=J?R:G+R.charAt(0).toUpperCase()+R.slice(1);if(et in ei.style||J){if(J&&"clipPath"===R&&to.has(R))return;ti.set(R,et),setDashPrefix(R,(J?"":"-")+camelToDash(et))}}},prefixer=function(R,W){void 0===W&&(W=!1);var G=W?to:ti;return G.has(R)||(tc?testPrefix(R):setDashPrefix(R,R)),G.get(R)||R},tl=["","X","Y","Z"],tu=["translate","scale","rotate","skew","transformPerspective"].reduce(function(R,W){return tl.reduce(function(R,G){return R.push(W+G),R},R)},["x","y","z"]),td=tu.reduce(function(R,W){return R[W]=!0,R},{});function isTransformProp(R){return!0===td[R]}function sortTransformProps(R,W){return tu.indexOf(R)-tu.indexOf(W)}var tp=new Set(["originX","originY","originZ"]),tf=node_modules_tslib_tslib_es6_assign(node_modules_tslib_tslib_es6_assign({},eE),{transform:Math.round}),th={color:eH,backgroundColor:eH,outlineColor:eH,fill:eH,stroke:eH,borderColor:eH,borderTopColor:eH,borderRightColor:eH,borderBottomColor:eH,borderLeftColor:eH,borderWidth:eM,borderTopWidth:eM,borderRightWidth:eM,borderBottomWidth:eM,borderLeftWidth:eM,borderRadius:eM,radius:eM,borderTopLeftRadius:eM,borderTopRightRadius:eM,borderBottomRightRadius:eM,borderBottomLeftRadius:eM,width:eM,maxWidth:eM,height:eM,maxHeight:eM,size:eM,top:eM,right:eM,bottom:eM,left:eM,padding:eM,paddingTop:eM,paddingRight:eM,paddingBottom:eM,paddingLeft:eM,margin:eM,marginTop:eM,marginRight:eM,marginBottom:eM,marginLeft:eM,rotate:eD,rotateX:eD,rotateY:eD,rotateZ:eD,scale:eA,scaleX:eA,scaleY:eA,scaleZ:eA,skew:eD,skewX:eD,skewY:eD,distance:eM,translateX:eM,translateY:eM,translateZ:eM,x:eM,y:eM,z:eM,perspective:eM,opacity:ej,originX:eN,originY:eN,originZ:eM,zIndex:tf,fillOpacity:ej,strokeOpacity:ej,numOctaves:tf},getValueType=function(R){return th[R]},tg="scrollLeft",tm="scrollTop",ty=new Set([tg,tm]),tv=new Set([tg,tm,"transform"]),tb={x:"translateX",y:"translateY",z:"translateZ"};function isCustomTemplate(R){return"function"==typeof R}function buildStyleProperty(R,W,G,J,et,er,en,ei){void 0===W&&(W=!0),void 0===G&&(G={}),void 0===J&&(J={}),void 0===et&&(et={}),void 0===er&&(er=[]),void 0===en&&(en=!1),void 0===ei&&(ei=!0);var eo=!0,es=!1,ec=!1;for(var el in R){var eu=R[el],ed=getValueType(el),ep=ed&&"number"==typeof eu?ed.transform(eu):eu;isTransformProp(el)?(es=!0,J[el]=ep,er.push(el),eo&&(ed.default&&eu!==ed.default||!ed.default&&0!==eu)&&(eo=!1)):tp.has(el)?(et[el]=ep,ec=!0):tv.has(el)&&isCustomTemplate(ep)||(G[prefixer(el,en)]=ep)}return(es||"function"==typeof R.transform)&&(G.transform=function(R,W,G,J,et,er){void 0===er&&(er=!0);var en="",ei=!1;G.sort(sortTransformProps);for(var eo=G.length,es=0;es<eo;es++){var ec=G[es];en+=(tb[ec]||ec)+"("+W[ec]+") ",ei="z"===ec||ei}return!ei&&et?en+="translateZ(0)":en=en.trim(),isCustomTemplate(R.transform)?en=R.transform(W,J?"":en):er&&J&&(en="none"),en}(R,J,er,eo,W,ei)),ec&&(G.transformOrigin=(et.originX||"50%")+" "+(et.originY||"50%")+" "+(et.originZ||0)),G}function createStyleBuilder(R){var W=void 0===R?{}:R,G=W.enableHardwareAcceleration,J=void 0===G||G,et=W.isDashCase,er=void 0===et||et,en=W.allowTransformNone,ei=void 0===en||en,eo={},es={},ec={},el=[];return function(R){return el.length=0,buildStyleProperty(R,J,eo,es,ec,el,er,ei),eo}}var t_=createStyler({onRead:function(R,W){var G=W.element,J=W.preparseOutput,et=getValueType(R);if(isTransformProp(R))return et&&et.default||0;if(ty.has(R))return G[R];var er=window.getComputedStyle(G,null).getPropertyValue(prefixer(R,!0))||0;return J&&et&&et.test(er)&&et.parse?et.parse(er):er},onRender:function(R,W,G){var J=W.element,et=W.buildStyles,er=W.hasCSSVariable;if(Object.assign(J.style,et(R)),er)for(var en=G.length,ei=0;ei<en;ei++){var eo=G[ei];eo.startsWith("--")&&J.style.setProperty(eo,R[eo])}-1!==G.indexOf(tg)&&(J[tg]=R[tg]),-1!==G.indexOf(tm)&&(J[tm]=R[tm])},uncachedValues:ty}),tx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),svgAttrsTemplate=function(){return{style:{}}},progressToPixels=function(R,W){return eM.transform(R*W)},tw={x:0,y:0,width:0,height:0};function calcOrigin(R,W,G){return"string"==typeof R?R:eM.transform(W+G*R)}var tS={enableHardwareAcceleration:!1,isDashCase:!1};function buildSVGAttrs(R,W,G,J,et,er){void 0===W&&(W=tw),void 0===J&&(J=createStyleBuilder(tS)),void 0===et&&(et=svgAttrsTemplate()),void 0===er&&(er=!0);var en,ei,eo,es=R.attrX,ec=R.attrY,el=R.originX,eu=R.originY,ed=R.pathLength,ep=R.pathSpacing,ef=R.pathOffset,eh=J(node_modules_tslib_tslib_es6_rest(R,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]));for(var eg in eh)"transform"===eg?et.style.transform=eh[eg]:et[er&&!tx.has(eg)?camelToDash(eg):eg]=eh[eg];return(void 0!==el||void 0!==eu||eh.transform)&&(et.style.transformOrigin=(en=W,ei=void 0!==el?el:.5,eo=void 0!==eu?eu:.5,calcOrigin(ei,en.x,en.width)+" "+calcOrigin(eo,en.y,en.height))),void 0!==es&&(et.x=es),void 0!==ec&&(et.y=ec),void 0!==G&&void 0!==ed&&(et[er?"stroke-dashoffset":"strokeDashoffset"]=progressToPixels(-(void 0===ef?0:ef),G),et[er?"stroke-dasharray":"strokeDasharray"]=progressToPixels(ed,G)+" "+progressToPixels(void 0===ep?1:ep,G)),et}var getSVGElementDimensions=function(R){try{return"function"==typeof R.getBBox?R.getBBox():R.getBoundingClientRect()}catch(R){return{x:0,y:0,width:0,height:0}}},tT=createStyler({onRead:function(R,W){var G=W.element;if(!isTransformProp(R=tx.has(R)?R:camelToDash(R)))return G.getAttribute(R);var J=getValueType(R);return J&&J.default||0},onRender:function(R,W){var G=W.element,J=(0,W.buildAttrs)(R);for(var et in J)"style"===et?Object.assign(G.style,J.style):G.setAttribute(et,J[et])}}),svg=function(R){var W,G,J,et=getSVGElementDimensions(R),er="path"===R.tagName&&R.getTotalLength?R.getTotalLength():void 0;return tT({element:R,buildAttrs:(void 0===W&&(W=!0),G=svgAttrsTemplate(),J=createStyleBuilder(tS),function(R){return buildSVGAttrs(R,et,er,J,G,W)})})},tO=createStyler({useCache:!1,onRead:function(R){return"scrollTop"===R?window.pageYOffset:window.pageXOffset},onRender:function(R){var W=R.scrollTop,G=void 0===W?0:W,J=R.scrollLeft,et=void 0===J?0:J;return window.scrollTo(et,G)}}),tP=new WeakMap,createDOMStyler=function(R,W){var G,J,et,er,en;return R===window?G=tO(R):R instanceof HTMLElement||"function"==typeof R.click?(void 0===(J=W)&&(J={}),et=J.enableHardwareAcceleration,er=J.allowTransformNone,en=node_modules_tslib_tslib_es6_rest(J,["enableHardwareAcceleration","allowTransformNone"]),G=t_(node_modules_tslib_tslib_es6_assign({element:R,buildStyles:createStyleBuilder({enableHardwareAcceleration:et,allowTransformNone:er}),preparseOutput:!0},en))):(R instanceof SVGElement||"ownerSVGElement"in R)&&(G=svg(R)),hey_listen_es_invariant(void 0!==G,"No valid node provided. Node must be HTMLElement, SVGElement or window."),tP.set(R,G),G},stylefire_es=function(R,W){var G;return G="string"==typeof R?document.querySelector(R):R,tP.has(G)?tP.get(G):createDOMStyler(G,W)},popmotion_node_modules_tslib_tslib_es6_assign=function(){return(popmotion_node_modules_tslib_tslib_es6_assign=Object.assign||function(R){for(var W,G=1,J=arguments.length;G<J;G++)for(var et in W=arguments[G])Object.prototype.hasOwnProperty.call(W,et)&&(R[et]=W[et]);return R}).apply(this,arguments)};function popmotion_node_modules_tslib_tslib_es6_rest(R,W){var G={};for(var J in R)Object.prototype.hasOwnProperty.call(R,J)&&0>W.indexOf(J)&&(G[J]=R[J]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols)for(var et=0,J=Object.getOwnPropertySymbols(R);et<J.length;et++)0>W.indexOf(J[et])&&Object.prototype.propertyIsEnumerable.call(R,J[et])&&(G[J[et]]=R[J[et]]);return G}var Observer=function(R,W){var G=this,J=R.middleware,et=R.onComplete;this.isActive=!0,this.update=function(R){G.observer.update&&G.updateObserver(R)},this.complete=function(){G.observer.complete&&G.isActive&&G.observer.complete(),G.onComplete&&G.onComplete(),G.isActive=!1},this.error=function(R){G.observer.error&&G.isActive&&G.observer.error(R),G.isActive=!1},this.observer=W,this.updateObserver=function(R){return W.update(R)},this.onComplete=et,W.update&&J&&J.length&&J.forEach(function(R){return G.updateObserver=R(G.updateObserver,G.complete)})},createObserver=function(R,W,G){var J=W.middleware;return"function"==typeof R?new Observer({middleware:J,onComplete:G},{update:R}):new Observer({middleware:J,onComplete:G},R)},tC=function(){function Action(R){void 0===R&&(R={}),this.props=R}return Action.prototype.create=function(R){return new Action(R)},Action.prototype.start=function(R){void 0===R&&(R={});var W=!1,G={stop:function(){}},J=this.props,et=(0,J.init)(createObserver(R,popmotion_node_modules_tslib_tslib_es6_rest(J,["init"]),function(){W=!0,G.stop()}));return G=et?popmotion_node_modules_tslib_tslib_es6_assign({},G,et):G,W&&G.stop(),G},Action.prototype.applyMiddleware=function(R){return this.create(popmotion_node_modules_tslib_tslib_es6_assign({},this.props,{middleware:this.props.middleware?[R].concat(this.props.middleware):[R]}))},Action.prototype.pipe=function(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];var G=1===R.length?R[0]:popcorn_es_pipe.apply(void 0,R);return this.applyMiddleware(function(R){return function(W){return R(G(W))}})},Action}(),action=function(R){return new tC({init:R})},createVectorTests=function(R){var W=Object.keys(R),isVectorProp=function(W,G){return void 0!==W&&!R[G](W)};return{getVectorKeys:function(R){return W.reduce(function(W,G){return isVectorProp(R[G],G)&&W.push(G),W},[])},testVectorProps:function(R){return R&&W.some(function(W){return isVectorProp(R[W],W)})}}},tk=[eM,eI,eD,eL,eR],findUnitType=function(R){return tk.find(function(W){return W.test(R)})},createAction=function(R,W){return R(W)},createUnitAction=function(R,W){var G=W.from,J=W.to,et=popmotion_node_modules_tslib_tslib_es6_rest(W,["from","to"]),er=findUnitType(G)||findUnitType(J),en=er.transform,ei=er.parse;return R(popmotion_node_modules_tslib_tslib_es6_assign({},et,{from:"string"==typeof G?ei(G):G,to:"string"==typeof J?ei(J):J})).pipe(en)},createMixerAction=function(R){return function(W,G){var J=G.from,et=G.to,er=popmotion_node_modules_tslib_tslib_es6_rest(G,["from","to"]);return W(popmotion_node_modules_tslib_tslib_es6_assign({},er,{from:0,to:1})).pipe(R(J,et))}},tE=createMixerAction(mixColor),tj=createMixerAction(mixComplex),createVectorAction=function(R,W){var G=createVectorTests(W),J=G.testVectorProps,et=G.getVectorKeys;return function(W){if(!J(W))return R(W);var G=et(W);return getActionCreator(W[G[0]])(R,W,G)}},getActionCreator=function(R){return"number"==typeof R?createAction:findUnitType(R)?createUnitAction:eH.test(R)?tE:eW.test(R)?tj:createAction},tA=createVectorAction(function(R){return void 0===R&&(R={}),action(function(W){var G=W.complete,J=W.update,et=R.velocity,er=R.from,en=R.power,ei=R.timeConstant,eo=void 0===ei?350:ei,es=R.restDelta,ec=void 0===es?.5:es,el=R.modifyTarget,eu=0,ed=(void 0===en?.8:en)*(void 0===et?0:et),ep=Math.round((void 0===er?0:er)+ed),ef=void 0===el?ep:el(ep),eh=eT.update(function(R){var W=R.delta,et=-ed*Math.exp(-(eu+=W)/eo),er=et>ec||et<-ec;J(er?ef+et:ef),er||(eO.update(eh),G())},!0);return{stop:function(){return eO.update(eh)}}})},{from:eE.test,modifyTarget:function(R){return"function"==typeof R},velocity:eE.test}),tD=createVectorAction(function(R){return void 0===R&&(R={}),action(function(W){var G=W.update,J=W.complete,et=R.velocity,er=void 0===et?0:et,en=R.from,ei=void 0===en?0:en,eo=R.to,es=void 0===eo?0:eo,ec=R.stiffness,el=void 0===ec?100:ec,eu=R.damping,ed=void 0===eu?10:eu,ep=R.mass,ef=void 0===ep?1:ep,eh=R.restSpeed,eg=void 0===eh?.01:eh,em=R.restDelta,ey=void 0===em?.01:em,ev=er?-(er/1e3):0,eb=0,e_=es-ei,ex=ei,ew=ex,eS=eT.update(function(R){var W=R.delta;eb+=W;var et=ed/(2*Math.sqrt(el*ef)),en=Math.sqrt(el/ef)/1e3;if(ew=ex,et<1){var ei=Math.exp(-et*en*eb),eo=en*Math.sqrt(1-et*et);ex=es-ei*((ev+et*en*e_)/eo*Math.sin(eo*eb)+e_*Math.cos(eo*eb))}else{var ei=Math.exp(-en*eb);ex=es-ei*(e_+(ev+en*e_)*eb)}var ec=Math.abs(er=popcorn_es_velocityPerSecond(ex-ew,W))<=eg,eu=Math.abs(es-ex)<=ey;ec&&eu?(G(ex=es),eO.update(eS),J()):G(ex)},!0);return{stop:function(){return eO.update(eS)}}})},{from:eE.test,to:eE.test,stiffness:eE.test,damping:eE.test,mass:eE.test,velocity:eE.test}),tI=createVectorAction(function(R){var W=R.from,G=void 0===W?0:W,J=R.velocity,et=void 0===J?0:J,er=R.min,en=R.max,ei=R.power,eo=void 0===ei?.8:ei,es=R.timeConstant,ec=void 0===es?700:es,el=R.bounceStiffness,eu=void 0===el?500:el,ed=R.bounceDamping,ep=void 0===ed?10:ed,ef=R.restDelta,eh=void 0===ef?1:ef,eg=R.modifyTarget;return action(function(R){var W,J=R.update,ei=R.complete,es=G,el=G,ed=!1,isLessThanMin=function(R){return void 0!==er&&R<=er},isMoreThanMax=function(R){return void 0!==en&&R>=en},isOutOfBounds=function(R){return isLessThanMin(R)||isMoreThanMax(R)},onUpdate=function(R){var G;J(R),es=el,et=popcorn_es_velocityPerSecond((el=R)-es,framesync_es_getFrameData().delta),W&&!ed&&(G=et,isLessThanMin(R)&&G<0||isMoreThanMax(R)&&G>0)&&startSpring({from:R,velocity:et})},startAnimation=function(R,G){W&&W.stop(),W=R.start({update:onUpdate,complete:function(){if(G){G();return}ei()}})},startSpring=function(R){ed=!0,startAnimation(tD(popmotion_node_modules_tslib_tslib_es6_assign({},R,{to:isLessThanMin(R.from)?er:en,stiffness:eu,damping:ep,restDelta:eh})))};return isOutOfBounds(G)?startSpring({from:G,velocity:et}):0!==et?startAnimation(tA({from:G,velocity:et,timeConstant:ec,power:eo,restDelta:isOutOfBounds(G)?20:eh,modifyTarget:eg}),function(){isOutOfBounds(el)?startSpring({from:el,velocity:et}):ei()}):ei(),{stop:function(){return W&&W.stop()}}})},{from:eE.test,velocity:eE.test,min:eE.test,max:eE.test,damping:eE.test,stiffness:eE.test,modifyTarget:function(R){return"function"==typeof R}}),tM=createVectorAction(function(R){var W=R.from,G=void 0===W?0:W,J=R.to,et=void 0===J?1:J,er=R.ease,en=void 0===er?easing_es_linear:er,ei=R.reverseEase;return void 0!==ei&&ei&&(en=eG(en)),action(function(R){var W=R.update;return{seek:function(R){return W(R)}}}).pipe(en,function(R){return popcorn_es_mix(G,et,R)})},{ease:function(R){return"function"==typeof R},from:eE.test,to:eE.test}),tL=tt(0,1),tween=function(R){return void 0===R&&(R={}),action(function(W){var G,J=W.update,et=W.complete,er=R.duration,en=void 0===er?300:er,ei=R.ease,eo=void 0===ei?eY:ei,es=R.flip,ec=void 0===es?0:es,el=R.loop,eu=void 0===el?0:el,ed=R.yoyo,ep=void 0===ed?0:ed,ef=R.repeatDelay,eh=void 0===ef?0:ef,eg=R.from,em=void 0===eg?0:eg,ey=R.to,ev=void 0===ey?1:ey,eb=R.elapsed,e_=void 0===eb?0:eb,ex=R.flipCount,ew=void 0===ex?0:ex,eS=R.yoyoCount,eP=void 0===eS?0:eS,eC=R.loopCount,ek=void 0===eC?0:eC,eE=tM({from:em,to:ev,ease:eo}).start(J),ej=0,eA=!1,reverseAnimation=function(R){var W;void 0===R&&(R=!1),em=(W=[ev,em])[0],ev=W[1],eE=tM({from:em,to:ev,ease:eo,reverseEase:R}).start(J)},isTweenComplete=function(){var R=eA&&e_>en+eh;return!!R&&(!!R&&!eu&&!ec&&!ep||((e_=e_-en-eh,eu&&ek<eu)?(ek++,!1):ec&&ew<ec?(ew++,reverseAnimation(),!1):!ep||!(eP<ep)||(reverseAnimation(++eP%2!=0),!1)))},updateTween=function(){ej=tL(progress(0,en,e_)),eE.seek(ej)},startTimer=function(){eA=!0,G=eT.update(function(R){var W=R.delta;e_+=W,updateTween(),isTweenComplete()&&(eO.update(G),et&&eT.update(et,!1,!0))},!0)},stopTimer=function(){eA=!1,G&&eO.update(G)};return startTimer(),{isActive:function(){return eA},getElapsed:function(){return tt(0,en,e_)},getProgress:function(){return ej},stop:function(){stopTimer()},pause:function(){return stopTimer(),this},resume:function(){return eA||startTimer(),this},seek:function(R){return e_=popcorn_es_mix(0,en,R),eT.update(updateTween,!1,!0),this},reverse:function(){return reverseAnimation(),this}}})},tR=tt(0,1),defaultTimings=function(R){var W=R.length;return R.map(function(R,G){return 0!==G?G/(W-1):0})},interpolateScrubbers=function(R,W,G){var J=R.length,et=J-1,er=et-1,en=W.map(function(R){return R.start(G)});return function(W){W<=R[0]&&en[0].seek(0),W>=R[et]&&en[er].seek(1);for(var G=1;G<J&&!(R[G]>W)&&G!==et;G++);var ei=progress(R[G-1],R[G],W);en[G-1].seek(tR(ei))}};eE.test,eE.test,eE.test,eE.test,eE.test,eE.test;var listen=function(R,W,G){return action(function(J){var et=J.update,er=W.split(" ").map(function(W){return R.addEventListener(W,et,G),W});return{stop:function(){return er.forEach(function(W){return R.removeEventListener(W,et,G)})}}})},defaultPointerPos=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},eventToPoint=function(R,W){return void 0===W&&(W=defaultPointerPos()),W.clientX=W.x=R.clientX,W.clientY=W.y=R.clientY,W.pageX=R.pageX,W.pageY=R.pageY,W},tN=[defaultPointerPos()];"undefined"!=typeof document&&listen(document,"touchstart touchmove",{passive:!0,capture:!0}).start(function(R){var W=R.touches,G=W.length;tN.length=0;for(var J=0;J<G;J++){var et=W[J];tN.push(eventToPoint(et))}});var tB=defaultPointerPos();"undefined"!=typeof document&&listen(document,"mousedown mousemove",!0).start(function(R){eventToPoint(R,tB)});var delay=function(R){return action(function(W){var G=setTimeout(W.complete,R);return{stop:function(){return clearTimeout(G)}}})},tZ=function(){function MotionValue(R,W){var G=this,J=void 0===W?{}:W,et=J.transformer,er=J.parent;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.updateAndNotify=function(R,W){void 0===W&&(W=!0),G.prev=G.current,G.current=G.transformer?G.transformer(R):R,G.updateSubscribers&&G.prev!==G.current&&G.updateSubscribers.forEach(G.notifySubscriber),G.children&&G.children.forEach(G.setChild),W&&G.renderSubscribers&&G.renderSubscribers.forEach(G.notifySubscriber);var J=framesync_es_getFrameData(),et=J.delta,er=J.timestamp;G.lastUpdated!==er&&(G.timeDelta=et,G.lastUpdated=er,eT.postRender(G.scheduleVelocityCheck))},this.notifySubscriber=function(R){R(G.current)},this.scheduleVelocityCheck=function(){return eT.postRender(G.velocityCheck)},this.velocityCheck=function(R){R.timestamp!==G.lastUpdated&&(G.prev=G.current)},this.setChild=function(R){return R.set(G.current)},this.parent=er,this.transformer=et,this.set(R,!1),this.canTrackVelocity=!isNaN(parseFloat(this.current))}return MotionValue.prototype.addChild=function(R){void 0===R&&(R={});var W=new MotionValue(this.current,tslib_es6_assign({parent:this},R));return this.children||(this.children=new Set),this.children.add(W),W},MotionValue.prototype.removeChild=function(R){this.children&&this.children.delete(R)},MotionValue.prototype.subscribeTo=function(R,W){var G=this,updateSubscriber=function(){return W(G.current)};return R.add(updateSubscriber),function(){return R.delete(updateSubscriber)}},MotionValue.prototype.onChange=function(R){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,R)},MotionValue.prototype.onRenderRequest=function(R){return this.renderSubscribers||(this.renderSubscribers=new Set),this.notifySubscriber(R),this.subscribeTo(this.renderSubscribers,R)},MotionValue.prototype.attach=function(R){this.passiveEffect=R},MotionValue.prototype.set=function(R,W){void 0===W&&(W=!0),W&&this.passiveEffect?this.passiveEffect(R,this.updateAndNotify):this.updateAndNotify(R,W)},MotionValue.prototype.get=function(){return this.current},MotionValue.prototype.getVelocity=function(){return this.canTrackVelocity?popcorn_es_velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},MotionValue.prototype.start=function(R){var W=this;return this.stop(),new Promise(function(G){W.stopAnimation=R(G)}).then(function(){return W.clearAnimation()})},MotionValue.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},MotionValue.prototype.isAnimating=function(){return!!this.stopAnimation},MotionValue.prototype.clearAnimation=function(){this.stopAnimation=null},MotionValue.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},MotionValue}();function motionValue(R,W){return new tZ(R,W)}function useConstant(R){var W=(0,eh.useRef)(null);return null===W.current&&(W.current=R()),W.current}var isMotionValue=function(R){return R instanceof tZ},tU=createStyler({onRead:function(){return null},onRender:function(R,W){return(0,W.onUpdate)(R)}}),tF=function(){function MotionValuesMap(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return MotionValuesMap.prototype.has=function(R){return this.values.has(R)},MotionValuesMap.prototype.set=function(R,W){this.values.set(R,W),this.hasMounted&&this.bindValueToOutput(R,W)},MotionValuesMap.prototype.get=function(R,W){var G=this.values.get(R);return void 0===G&&void 0!==W&&(G=new tZ(W),this.set(R,G)),G},MotionValuesMap.prototype.forEach=function(R){return this.values.forEach(R)},MotionValuesMap.prototype.bindValueToOutput=function(R,W){var G=this,J=W.onRenderRequest(function(W){return G.output&&G.output(R,W)}),et=W.onChange(function(W){G.onUpdate&&G.onUpdate.set(R,W)});this.unsubscribers.has(R)&&this.unsubscribers.get(R)(),this.unsubscribers.set(R,function(){J(),et()})},MotionValuesMap.prototype.setOnUpdate=function(R){this.onUpdate=void 0,R&&(this.onUpdate=tU({onUpdate:R}))},MotionValuesMap.prototype.setTransformTemplate=function(R){this.transformTemplate!==R&&(this.transformTemplate=R,this.updateTransformTemplate())},MotionValuesMap.prototype.getTransformTemplate=function(){return this.transformTemplate},MotionValuesMap.prototype.updateTransformTemplate=function(){this.output&&this.output("transform",this.transformTemplate)},MotionValuesMap.prototype.mount=function(R){var W=this;this.hasMounted=!0,R&&(this.output=R),this.values.forEach(function(R,G){return W.bindValueToOutput(G,R)}),this.updateTransformTemplate()},MotionValuesMap.prototype.unmount=function(){var R=this;this.values.forEach(function(W,G){var J=R.unsubscribers.get(G);J&&J()})},MotionValuesMap}(),tz=new Set(["dragOriginX","dragOriginY"]),useMotionValues=function(R){var W=useConstant(function(){var W=new tF;for(var G in R)isMotionValue(R[G])&&!tz.has(G)&&W.set(G,R[G]);return W});return W.setOnUpdate(R.onUpdate),W.setTransformTemplate(R.transformTemplate),W},tH=null,tq={isOpen:function(){return null!==tH},open:function(){hey_listen_es_invariant(!tH,"Sync render session already open"),tH=[]},flush:function(){hey_listen_es_invariant(null!==tH,"No sync render session found"),tH&&tH.forEach(function(R){return R.render()}),tH=null},push:function(R){hey_listen_es_invariant(null!==tH,"No sync render session found"),tH&&tH.push(R)}},tV=(0,eh.memo)(function(R){var W=R.innerRef,G=R.values,J=R.isStatic;return(0,eh.useEffect)(function(){hey_listen_es_invariant(W.current instanceof Element,"No `ref` found. Ensure components created with `motion.custom` forward refs using `React.forwardRef`");var R=stylefire_es(W.current,{preparseOutput:!1,enableHardwareAcceleration:!J});return G.mount(function(W,G){R.set(W,G),tq.isOpen()&&tq.push(R)}),function(){return G.unmount()}},[]),null}),resolveCurrent=function(R){var W={};return R.forEach(function(R,G){return W[G]=R.get()}),W},tW=new Set(["originX","originY","originZ"]),buildStyleAttr=function(R,W,G){var J=resolveCurrent(R),et=R.getTransformTemplate();return et&&(J.transform=W.transform?et({},W.transform):et),buildStyleProperty(tslib_es6_assign(tslib_es6_assign({},W),J),!G)},useMotionStyles=function(R,W,G,J){void 0===W&&(W={});var et={},er=(0,eh.useRef)({}).current;for(var en in W){var ei=W[en];isMotionValue(ei)?R.set(en,ei):!G&&(isTransformProp(en)||tW.has(en))?(R.has(en)?ei!==er[en]&&R.get(en).set(ei):R.set(en,motionValue(ei)),er[en]=ei):et[en]=ei}return J?J(et):et},isKeyframesTarget=function(R){return Array.isArray(R)},resolveFinalValueInKeyframes=function(R){return isKeyframesTarget(R)?R[R.length-1]||0:R},tG=[eE,eM,eI,eD,eR,eL,{test:function(R){return"auto"===R},parse:function(R){return R}}],t$=__spreadArrays(tG,[eH,eW]),testValueType=function(R){return function(W){return W.test(R)}},getDimensionValueType=function(R){return tG.find(testValueType(R))},underDampedSpring=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},overDampedSpring=function(R){return{type:"spring",stiffness:700,damping:0===R?100:35}},linearTween=function(){return{ease:"linear",duration:.3}},framer_motion_es_keyframes=function(R){return{type:"keyframes",duration:.8,values:R}},tK={x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:overDampedSpring,scaleY:overDampedSpring,scale:overDampedSpring,opacity:linearTween,backgroundColor:linearTween,color:linearTween,default:overDampedSpring},getDefaultTransition=function(R,W){var G;return G=isKeyframesTarget(W)?framer_motion_es_keyframes:tK[R]||tK.default,tslib_es6_assign({to:W},G(W))},just=function(R){var W=R.to,G=R.duration;return action(function(R){var J=R.update,et=R.complete;J(W),G?delay(G).start({complete:et}):et()})},easingDefinitionToFunction=function(R){return Array.isArray(R)?(hey_listen_es_invariant(4===R.length,"Cubic bezier arrays must contain four numerical values."),cubicBezier(R[0],R[1],R[2],R[3])):"string"==typeof R?(hey_listen_es_invariant(void 0!==ef[R],"Invalid easing type '"+R+"'"),ef[R]):R},isEasingArray=function(R){return Array.isArray(R)&&"number"!=typeof R[0]},isAnimatable=function(R,W){return"zIndex"!==R&&!!("number"==typeof W||Array.isArray(W)||"string"==typeof W&&eW.test(W)&&!W.startsWith("url("))},secondsToMilliseconds=function(R){return 1e3*R},tY={tween:tween,spring:tD,keyframes:function(R){var W,G=R.easings,J=R.ease,et=void 0===J?easing_es_linear:J,er=R.times,en=R.values,ei=popmotion_node_modules_tslib_tslib_es6_rest(R,["easings","ease","times","values"]);G=Array.isArray(G)?G:(W=G,en.map(function(){return W||eY}).splice(0,en.length-1)),er=er||defaultTimings(en);var eo=G.map(function(R,W){return tM({from:en[W],to:en[W+1],ease:R})});return tween(popmotion_node_modules_tslib_tslib_es6_assign({},ei,{ease:et})).applyMiddleware(function(R){return interpolateScrubbers(er,eo,R)})},inertia:tI,just:just},tX={tween:function(R){if(R.ease){var W=isEasingArray(R.ease)?R.ease[0]:R.ease;R.ease=easingDefinitionToFunction(W)}return R},keyframes:function(R){var W=R.from,G=(R.to,R.velocity,tslib_es6_rest(R,["from","to","velocity"]));if(G.values&&null===G.values[0]){var J=__spreadArrays(G.values);J[0]=W,G.values=J}return G.ease&&(G.easings=isEasingArray(G.ease)?G.ease.map(easingDefinitionToFunction):easingDefinitionToFunction(G.ease)),G.ease=easing_es_linear,G}},getTransitionDefinition=function(R,W,G){var J=G?G.delay:0;if(void 0===G||(G.when,G.delay,G.delayChildren,G.staggerChildren,G.staggerDirection,!Object.keys(tslib_es6_rest(G,["when","delay","delayChildren","staggerChildren","staggerDirection"])).length))return tslib_es6_assign({delay:J},getDefaultTransition(R,W));var et=G[R]||G.default||G;return!1===et.type?{delay:et.hasOwnProperty("delay")?et.delay:J,to:isKeyframesTarget(W)?W[W.length-1]:W,type:"just"}:isKeyframesTarget(W)?tslib_es6_assign(tslib_es6_assign({values:W,duration:.8,delay:J,ease:"linear"},et),{type:"keyframes"}):tslib_es6_assign({type:"tween",to:W,delay:J},et)},getAnimation=function(R,W,G,J){var et,er=W.get(),en=isAnimatable(R,er),ei=isAnimatable(R,G);hey_listen_es_warning(en===ei,"You are trying to animate "+R+' from "'+er+'" to '+G+'. "'+er+'" is not an animatable value - to enable this animation set '+er+" to a value animatable to "+G+" via the `style` property.");var eo=getTransitionDefinition(R,G,J),es=eo.type,ec=void 0===es?"tween":es,el=tslib_es6_rest(eo,["type"]),eu=en&&ei?tY[ec]:just,ed=(et=tslib_es6_assign({from:er,velocity:W.getVelocity()},el),tX[ec]?tX[ec](et):et);return(ed.hasOwnProperty("duration")||ed.hasOwnProperty("repeatDelay"))&&(ed.duration&&(ed.duration=secondsToMilliseconds(ed.duration)),ed.repeatDelay&&(ed.repeatDelay=secondsToMilliseconds(ed.repeatDelay))),[eu,ed]};function startAnimation(R,W,G,J){var et=J.delay,er=void 0===et?0:et,en=tslib_es6_rest(J,["delay"]);return W.start(function(J){var et,ei=getAnimation(R,W,G,en),eo=ei[0],es=ei[1],ec=es.delay,el=tslib_es6_rest(es,["delay"]);void 0!==ec&&(er=ec);var animate=function(){et=eo(el).start({update:function(R){return W.set(R)},complete:J})};return er?et=delay(secondsToMilliseconds(er)).start({complete:animate}):animate(),function(){et&&et.stop()}})}var getCurrent=function(R){var W={};return R.forEach(function(R,G){return W[G]=R.get()}),W},getVelocity=function(R){var W={};return R.forEach(function(R,G){return W[G]=R.getVelocity()}),W},tQ=function(){function ValueAnimationControls(R){var W=this,G=R.values,J=R.readValueFromSource,et=R.makeTargetAnimatable;this.props={},this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.hasValue=function(R){return!W.values.has(R)},this.values=G,this.readValueFromSource=J,this.makeTargetAnimatable=et,this.values.forEach(function(R,G){return W.baseTarget[G]=R.get()})}return ValueAnimationControls.prototype.setProps=function(R){this.props=R},ValueAnimationControls.prototype.setVariants=function(R){R&&(this.variants=R)},ValueAnimationControls.prototype.setDefaultTransition=function(R){R&&(this.defaultTransition=R)},ValueAnimationControls.prototype.setValues=function(R,W){var G=this,J=void 0===W?{}:W,et=J.isActive,er=void 0===et?new Set:et,en=J.priority,ei=this.resolveVariant(R),eo=ei.target,es=ei.transitionEnd;return Object.keys(eo=this.transformValues(tslib_es6_assign(tslib_es6_assign({},eo),es))).forEach(function(R){if(!er.has(R)&&(er.add(R),eo)){var W=resolveFinalValueInKeyframes(eo[R]);if(G.values.has(R)){var J=G.values.get(R);J&&J.set(W)}else G.values.set(R,motionValue(W));en||(G.baseTarget[R]=W)}})},ValueAnimationControls.prototype.transformValues=function(R){var W=this.props.transformValues;return W?W(R):R},ValueAnimationControls.prototype.checkForNewValues=function(R){var W=Object.keys(R).filter(this.hasValue),G=W.length;if(G)for(var J=0;J<G;J++){var et,er,en=W[J],ei=R[en],eo=null;(Array.isArray(ei)&&(eo=ei[0]),null===eo&&hey_listen_es_invariant(null!==(eo=this.readValueFromSource(en)),'No initial value for "'+en+'" can be inferred. Ensure an initial value for "'+en+'" is defined on the component.'),"string"==typeof eo&&(et=eo,/^\d*\.?\d+$/.test(et)))?eo=parseFloat(eo):(er=eo,!t$.find(testValueType(er))&&eW.test(ei)&&(eo=eW.getAnimatableNone(ei))),this.values.set(en,motionValue(eo)),this.baseTarget[en]=eo}},ValueAnimationControls.prototype.resolveVariant=function(R){if(!R)return{target:void 0,transition:void 0,transitionEnd:void 0};"function"==typeof R&&(R=R(this.props.custom,getCurrent(this.values),getVelocity(this.values)));var W=R.transition;return{transition:void 0===W?this.defaultTransition:W,transitionEnd:R.transitionEnd,target:tslib_es6_rest(R,["transition","transitionEnd"])}},ValueAnimationControls.prototype.getHighestPriority=function(){return this.activeOverrides.size?Math.max.apply(Math,Array.from(this.activeOverrides)):0},ValueAnimationControls.prototype.setOverride=function(R,W){this.overrides[W]=R,this.children&&this.children.forEach(function(G){return G.setOverride(R,W)})},ValueAnimationControls.prototype.startOverride=function(R){var W=this.overrides[R];if(W)return this.start(W,{priority:R})},ValueAnimationControls.prototype.clearOverride=function(R){var W=this;if(this.children&&this.children.forEach(function(W){return W.clearOverride(R)}),this.overrides[R]){this.activeOverrides.delete(R);var G=this.getHighestPriority();this.resetIsAnimating(),G&&this.overrides[G]&&this.startOverride(G);var J=this.resolvedOverrides[R];if(J){var et={};for(var er in this.baseTarget)void 0!==J[er]&&(et[er]=this.baseTarget[er]);this.onStart(),this.animate(et).then(function(){return W.onComplete()})}}},ValueAnimationControls.prototype.apply=function(R){return Array.isArray(R)?this.applyVariantLabels(R):"string"==typeof R?this.applyVariantLabels([R]):void this.setValues(R)},ValueAnimationControls.prototype.applyVariantLabels=function(R){var W=this,G=new Set;__spreadArrays(R).reverse().forEach(function(J){var et=W.resolveVariant(W.variants[J]),er=et.target,en=et.transitionEnd;en&&W.setValues(en,{isActive:G}),er&&W.setValues(er,{isActive:G}),W.children&&W.children.size&&W.children.forEach(function(W){return W.applyVariantLabels(R)})})},ValueAnimationControls.prototype.start=function(R,W){var G,J=this;return void 0===W&&(W={}),W.priority&&this.activeOverrides.add(W.priority),this.resetIsAnimating(W.priority),G=Array.isArray(R)?this.animateVariantLabels(R,W):"string"==typeof R?this.animateVariant(R,W):this.animate(R,W),this.onStart(),G.then(function(){return J.onComplete()})},ValueAnimationControls.prototype.animate=function(R,W){var G=this,J=void 0===W?{}:W,et=J.delay,er=void 0===et?0:et,en=J.priority,ei=void 0===en?0:en,eo=J.transitionOverride,es=this.resolveVariant(R),ec=es.target,el=es.transition,eu=es.transitionEnd;if(eo&&(el=eo),!ec)return Promise.resolve();if(ec=this.transformValues(ec),eu&&(eu=this.transformValues(eu)),this.checkForNewValues(ec),this.makeTargetAnimatable){var ed=this.makeTargetAnimatable(ec,eu);ec=ed.target,eu=ed.transitionEnd}ei&&(this.resolvedOverrides[ei]=ec),this.checkForNewValues(ec);var ep=[];for(var ef in ec){var eh=this.values.get(ef);if(eh&&ec&&void 0!==ec[ef]){var eg=ec[ef];ei||(this.baseTarget[ef]=resolveFinalValueInKeyframes(eg)),this.isAnimating.has(ef)||(this.isAnimating.add(ef),ep.push(startAnimation(ef,eh,eg,tslib_es6_assign({delay:er},el))))}}var em=Promise.all(ep);return eu?em.then(function(){G.setValues(eu,{priority:ei})}):em},ValueAnimationControls.prototype.animateVariantLabels=function(R,W){var G=this;return Promise.all(__spreadArrays(R).reverse().map(function(R){return G.animateVariant(R,W)}))},ValueAnimationControls.prototype.animateVariant=function(R,W){var G=this,J=!1,et=0,er=0,en=1,ei=W&&W.priority||0,eo=this.variants[R],es=eo?function(){return G.animate(eo,W)}:function(){return Promise.resolve()},ec=this.children?function(){return G.animateChildren(R,et,er,en,ei)}:function(){return Promise.resolve()};if(eo&&this.children){var el=this.resolveVariant(eo).transition;el&&(J=el.when||J,et=el.delayChildren||et,er=el.staggerChildren||er,en=el.staggerDirection||en)}if(!J)return Promise.all([es(),ec()]);var eu="beforeChildren"===J?[es,ec]:[ec,es],ed=eu[0],ep=eu[1];return ed().then(ep)},ValueAnimationControls.prototype.animateChildren=function(R,W,G,J,et){if(void 0===W&&(W=0),void 0===G&&(G=0),void 0===J&&(J=1),void 0===et&&(et=0),!this.children)return Promise.resolve();var er=[],en=(this.children.size-1)*G,ei=1===J?function(R){return R*G}:function(R){return en-R*G};return Array.from(this.children).forEach(function(G,J){var en=G.animateVariant(R,{priority:et,delay:W+ei(J)});er.push(en)}),Promise.all(er)},ValueAnimationControls.prototype.onStart=function(){var R=this.props.onAnimationStart;R&&R()},ValueAnimationControls.prototype.onComplete=function(){var R=this.props.onAnimationComplete;R&&R()},ValueAnimationControls.prototype.checkOverrideIsAnimating=function(R){for(var W=this.overrides.length,G=R+1;G<W;G++){var J=this.resolvedOverrides[G];if(J)for(var et in J)this.isAnimating.add(et)}},ValueAnimationControls.prototype.resetIsAnimating=function(R){void 0===R&&(R=0),this.isAnimating.clear(),R<this.getHighestPriority()&&this.checkOverrideIsAnimating(R),this.children&&this.children.forEach(function(W){return W.resetIsAnimating(R)})},ValueAnimationControls.prototype.stop=function(){this.values.forEach(function(R){return R.stop()})},ValueAnimationControls.prototype.addChild=function(R){this.children||(this.children=new Set),this.children.add(R),this.overrides.forEach(function(W,G){W&&R.setOverride(W,G)})},ValueAnimationControls.prototype.removeChild=function(R){this.children&&this.children.delete(R)},ValueAnimationControls.prototype.resetChildren=function(){this.children&&this.children.clear()},ValueAnimationControls}(),tJ=function(){function AnimationControls(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set}return AnimationControls.prototype.setVariants=function(R){this.variants=R,this.componentControls.forEach(function(W){return W.setVariants(R)})},AnimationControls.prototype.setDefaultTransition=function(R){this.defaultTransition=R,this.componentControls.forEach(function(W){return W.setDefaultTransition(R)})},AnimationControls.prototype.subscribe=function(R){var W=this;return this.componentControls.add(R),this.variants&&R.setVariants(this.variants),this.defaultTransition&&R.setDefaultTransition(this.defaultTransition),function(){return W.componentControls.delete(R)}},AnimationControls.prototype.start=function(R,W){var G=this;if(!this.hasMounted)return new Promise(function(J){G.pendingAnimations.push({animation:[R,W],resolve:J})});var J=[];return this.componentControls.forEach(function(G){var et=G.start(R,{transitionOverride:W});J.push(et)}),Promise.all(J)},AnimationControls.prototype.set=function(R){return hey_listen_es_invariant(this.hasMounted,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),this.componentControls.forEach(function(W){return W.apply(R)})},AnimationControls.prototype.stop=function(){this.componentControls.forEach(function(R){return R.stop()})},AnimationControls.prototype.mount=function(){var R=this;this.hasMounted=!0,this.pendingAnimations.forEach(function(W){var G=W.animation,J=W.resolve;return R.start.apply(R,G).then(J)})},AnimationControls.prototype.unmount=function(){this.hasMounted=!1,this.stop()},AnimationControls}(),t0=(0,eh.createContext)(null),t1=(0,eh.createContext)({static:!1}),isVariantLabel=function(R){return"string"==typeof R||Array.isArray(R)},isAnimationControls=function(R){return R instanceof tJ},useMotionContext=function(R,W,G,J,et){void 0===J&&(J=!1);var er,en,ei,eo,es=et.initial,ec=et.animate,el=et.variants,eu=et.whileTap,ed=et.whileHover,ep=(0,eh.useContext)(t0);(null==ep?void 0:ep.initial)!==void 0&&(es=ep.initial),!1!==es||isAnimationControls(ec)?"boolean"!=typeof es&&(eo=es):eo=ec;var ef=(0,eh.useRef)(!1),eg=el||isVariantLabel(ec)||isVariantLabel(eu)||isVariantLabel(ed)||isAnimationControls(ec),em=isVariantLabel(eo)?eo:R.initial,ey=isVariantLabel(ec)?ec:R.animate,ev=J?em:null,eb=eg&&isVariantLabel(ey)?ey:null,e_=(0,eh.useMemo)(function(){return{controls:eg?W:R.controls,initial:em,animate:ey,values:G,hasMounted:ef,isReducedMotion:R.isReducedMotion}},[ev,eb,R.isReducedMotion]);return e_.static=J,en=!J,ei=(0,eh.useRef)(!0),(!en||en&&ei.current)&&(er=eo||R.initial)&&W.apply(er),ei.current=!1,(0,eh.useEffect)(function(){ef.current=!0},[]),e_},checkShouldInheritVariant=function(R){var W=R.animate,G=R.variants,J=R.inherit;return(void 0===J||J)&&!!G&&(!W||W instanceof tJ)},createMotionComponent=function(R){var W=R.getValueControlsConfig,G=R.loadFunctionalityComponents,J=R.renderComponent;return(0,eh.forwardRef)(function(R,et){var er,en,ei,eo,es,ec,el,eu=(er=et&&"function"!=typeof et?et:(0,eh.useRef)(null),et&&"function"==typeof et&&(0,eh.useEffect)(function(){return et(er.current),function(){return et(null)}},[]),er),ed=(0,eh.useContext)(t1),ep=ed.static||R.static||!1,ef=useMotionValues(R),eg=useMotionStyles(ef,R.style,ep,R.transformValues),em=checkShouldInheritVariant(R),ey=(en=useConstant(function(){return W(eu,ef)}),ei=R.variants,eo=R.transition,es=(0,eh.useContext)(t1).controls,ec=(0,eh.useContext)(t0),el=useConstant(function(){return new tQ(en)}),(!ec||ec.isPresent)&&(el.resetChildren(),el.setProps(R),el.setVariants(ei),el.setDefaultTransition(eo)),(0,eh.useEffect)(function(){em&&es&&es.addChild(el)}),(0,eh.useEffect)(function(){return function(){R.onAnimationComplete;var W=tslib_es6_rest(R,["onAnimationComplete"]);el.setProps(W),es&&es.removeChild(el)}},[]),el),ev=useMotionContext(ed,ey,ef,ep,R),eb=ep?null:G(eu,ef,R,ed,ey,em),e_=J(eu,eg,ef,R,ep);return(0,eh.createElement)(eh.Fragment,null,(0,eh.createElement)(t1.Provider,{value:ev},e_),(0,eh.createElement)(eh.Fragment,null,(0,eh.createElement)(tV,{innerRef:eu,values:ef,isStatic:ep}),eb))})},t2=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],t3=(0,eh.createContext)({transformPagePoint:function(R){return R}});function useUnmountEffect(R){return(0,eh.useEffect)(function(){return function(){return R()}},[])}function addDomEvent(R,W,G,J){if(G)return R.addEventListener(W,G,J),function(){return R.removeEventListener(W,G,J)}}function isMouseEvent(R){return"undefined"!=typeof PointerEvent&&R instanceof PointerEvent?!("mouse"!==R.pointerType):R instanceof MouseEvent}var t5={pageX:0,pageY:0};function extractEventInfo(R){var W,G,J;return{point:R.touches?{x:(W=R.touches[0]||R.changedTouches[0]||t5).pageX,y:W.pageY}:{x:void 0===(G=R.pageX)?0:G,y:void 0===(J=R.pageY)?0:J}}}var wrapHandler=function(R,W){if(void 0===W&&(W=!1),R){var listener=function(W){return R(W,extractEventInfo(W))};return W?function(R){if(R)return function(W){var G=W instanceof MouseEvent;(!G||G&&0===W.button)&&R(W)}}(listener):listener}},t4="undefined"!=typeof window,t8={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},t6={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function getPointerEventName(R){if(t4&&null===window.onpointerdown);else if(t4&&null===window.ontouchstart)return t6[R];else if(t4&&null===window.onmousedown)return t8[R];return R}function addPointerEvent(R,W,G,J){return addDomEvent(R,getPointerEventName(W),wrapHandler(G,"pointerdown"===W),J)}function usePointerEvent(R,W,G,J){var et,er;return et=getPointerEventName(W),er=wrapHandler(G,"pointerdown"===W),void(0,eh.useEffect)(function(){var W=R.current;if(er&&W)return addDomEvent(W,et,er,J)},[R,et,er,J])}(J=eo||(eo={})).subtract=function(R,W){return{x:R.x-W.x,y:R.y-W.y}},J.relativeTo=function(R){var W;return function(G){var J=G.x,et=G.y,er=void 0!==W?W:W="string"==typeof R?document.getElementById(R):R;if(er){var en=er.getBoundingClientRect();return{x:J-en.left-window.scrollX,y:et-en.top-window.scrollY}}}};var t7=!1;"undefined"!=typeof window&&document.addEventListener("touchmove",function(R){t7&&R.preventDefault()},{passive:!1});var unblockViewportScroll=function(){return t7=!1},t9=function(){function PanSession(R,W,G){var J=this,et=(void 0===G?{}:G).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(J.lastMoveEvent&&J.lastMoveEventInfo){var R,W,G=getPanInfo(J.lastMoveEventInfo,J.history),et=null!==J.startEvent,er=((W={x:0,y:0},isNum(R=G.offset)&&isNum(W))?distance1D(R,W):isPoint(R)&&isPoint(W)?Math.sqrt(Math.pow(distance1D(R.x,W.x),2)+Math.pow(distance1D(R.y,W.y),2)+Math.pow(isPoint3D(R)&&isPoint3D(W)?distance1D(R.z,W.z):0,2)):0)>=3;if(et||er){var en=G.point,ei=framesync_es_getFrameData().timestamp;J.history.push(tslib_es6_assign(tslib_es6_assign({},en),{timestamp:ei}));var eo=J.handlers,es=eo.onStart,ec=eo.onMove;et||(es&&es(J.lastMoveEvent,G),J.startEvent=J.lastMoveEvent),ec&&ec(J.lastMoveEvent,G)}}},!R.touches||!(R.touches.length>1)){this.handlers=W,this.transformPagePoint=et;var er=transformPoint(extractEventInfo(R),this.transformPagePoint),en=er.point,ei=framesync_es_getFrameData().timestamp;this.history=[tslib_es6_assign(tslib_es6_assign({},en),{timestamp:ei})];var eo=W.onSessionStart;eo&&eo(R,getPanInfo(er,this.history));var es=addPointerEvent(window,"pointermove",function(R,W){return J.handlePointerMove(R,W)}),ec=addPointerEvent(window,"pointerup",function(R,W){return J.handlePointerUp(R,W)});this.removeListeners=function(){es&&es(),ec&&ec()}}}return PanSession.prototype.handlePointerMove=function(R,W){if(this.lastMoveEvent=R,this.lastMoveEventInfo=transformPoint(W,this.transformPagePoint),isMouseEvent(R)&&0===R.buttons){this.handlePointerUp(R,W);return}eT.update(this.updatePoint,!0)},PanSession.prototype.handlePointerUp=function(R,W){this.end();var G=this.handlers.onEnd;if(G){var J=getPanInfo(transformPoint(W,this.transformPagePoint),this.history);G&&G(R,J)}},PanSession.prototype.updateHandlers=function(R){this.handlers=R},PanSession.prototype.end=function(){this.removeListeners&&this.removeListeners(),eO.update(this.updatePoint),unblockViewportScroll()},PanSession}();function transformPoint(R,W){return W?{point:W(R.point)}:R}function getPanInfo(R,W){var G=R.point;return{point:G,delta:eo.subtract(G,lastDevicePoint(W)),offset:eo.subtract(G,W[0]),velocity:function(R,W){if(R.length<2)return{x:0,y:0};for(var G=R.length-1,J=null,et=lastDevicePoint(R);G>=0&&(J=R[G],!(et.timestamp-J.timestamp>secondsToMilliseconds(.1)));)G--;if(!J)return{x:0,y:0};var er=(et.timestamp-J.timestamp)/1e3;if(0===er)return{x:0,y:0};var en={x:(et.x-J.x)/er,y:(et.y-J.y)/er};return en.x===1/0&&(en.x=0),en.y===1/0&&(en.y=0),en}(W,0)}}function lastDevicePoint(R){return R[R.length-1]}var isNodeOrChild=function(R,W){return!!W&&(R===W||isNodeOrChild(R,W.parentElement))},re=["whileHover","whileTap","whileDrag"],getGesturePriority=function(R){return re.indexOf(R)+1};function createLock(R){var W=null;return function(){return null===W&&(W=R,function(){W=null})}}var rt=createLock("dragHorizontal"),rr=createLock("dragVertical");function getGlobalLock(R){var W=!1;if("y"===R)W=rr();else if("x"===R)W=rt();else{var G=rt(),J=rr();G&&J?W=function(){G(),J()}:(G&&G(),J&&J())}return W}var rn=getGesturePriority("whileTap"),ri=getGesturePriority("whileHover"),filterTouch=function(R){return function(W,G){isMouseEvent(W)&&R(W,G)}},makeRenderlessComponent=function(R){return function(W){return R(W),null}},ro=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],ra={key:"gestures",shouldRender:function(R){return ro.some(function(W){return R.hasOwnProperty(W)})},Component:makeRenderlessComponent(function(R){var W,G,J,et,er,en,ei,eo,es,ec,el,eu,ed,ep=R.innerRef;G=(W=tslib_es6_rest(R,["innerRef"])).onPan,J=W.onPanStart,et=W.onPanEnd,er=W.onPanSessionStart,en=G||J||et||er,ei=(0,eh.useRef)(null),eo=(0,eh.useContext)(t3).transformPagePoint,es={onSessionStart:er,onStart:J,onMove:G,onEnd:function(R,W){ei.current=null,et&&et(R,W)}},(0,eh.useEffect)(function(){null!==ei.current&&ei.current.updateHandlers(es)}),usePointerEvent(ep,"pointerdown",en&&function(R){ei.current=new t9(R,es,{transformPagePoint:eo})}),useUnmountEffect(function(){return ei.current&&ei.current.end()}),function(R,W){var G=R.onTap,J=R.onTapStart,et=R.onTapCancel,er=R.whileTap,en=R.controls,ei=G||J||et||er,eo=(0,eh.useRef)(!1),es=(0,eh.useRef)(null);function removePointerUp(){es.current&&es.current(),es.current=null}er&&en&&en.setOverride(er,rn);var ec=(0,eh.useRef)(null);ec.current=function(R,J){var ei=W.current;if(removePointerUp(),eo.current&&ei){eo.current=!1,en&&er&&en.clearOverride(rn);var es=getGlobalLock(!0);es&&(es(),isNodeOrChild(ei,R.target)?G&&G(R,J):et&&et(R,J))}},usePointerEvent(W,"pointerdown",ei?function(R,G){removePointerUp(),es.current=addPointerEvent(window,"pointerup",function(R,W){return ec.current(R,W)}),W.current&&!eo.current&&(eo.current=!0,J&&J(R,G),en&&er&&en.startOverride(rn))}:void 0),useUnmountEffect(removePointerUp)}(W,ep),ec=W.whileHover,el=W.onHoverStart,eu=W.onHoverEnd,ed=W.controls,ec&&ed&&ed.setOverride(ec,ri),usePointerEvent(ep,"pointerenter",filterTouch(function(R,W){el&&el(R,W),ec&&ed&&ed.startOverride(ri)})),usePointerEvent(ep,"pointerleave",filterTouch(function(R,W){eu&&eu(R,W),ec&&ed&&ed.clearOverride(ri)}))})},isRefObject=function(R){return"object"==typeof R&&R.hasOwnProperty("current")},noop=function(R){return R},rs=function(){function ComponentDragControls(R){var W=R.ref,G=R.values,J=R.controls;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={transformPagePoint:noop},this.point={},this.origin={x:motionValue(0),y:motionValue(0)},this.openGlobalLock=null,this.panSession=null,this.prevConstraintsBox={width:0,height:0,x:0,y:0},this.ref=W,this.values=G,this.controls=J}return ComponentDragControls.prototype.start=function(R,W){var G=this,J=(void 0===W?{}:W).snapToCursor;void 0!==J&&J&&this.snapToCursor(R);var et=this.props.transformPagePoint;this.panSession=new t9(R,{onSessionStart:function(){t7=!0,bothAxis(function(R){var W=G.point[R];W&&W.stop()})},onStart:function(R,W){if(G.constraintsNeedResolution){var J=G.props,et=J.dragConstraints,er=J.transformPagePoint;G.constraints=calculateConstraintsFromDom(et,G.ref,G.point,er),G.applyConstraintsToPoint()}bothAxis(function(R){var W=G.point[R];W&&G.origin[R].set(W.get())});var en=G.props,ei=en.drag,eo=en.dragPropagation;if(!ei||eo||(G.openGlobalLock&&G.openGlobalLock(),G.openGlobalLock=getGlobalLock(ei),G.openGlobalLock)){G.isDragging=!0,G.currentDirection=null;var es=G.props.onDragStart;es&&es(R,convertPanToDrag(W,G.point))}},onMove:function(R,W){var J=G.props,et=J.dragPropagation,er=J.dragDirectionLock;if(et||G.openGlobalLock){var en=W.offset;if(er&&null===G.currentDirection){if(G.currentDirection=(void 0===ei&&(ei=10),eo=null,Math.abs(en.y)>ei?eo="y":Math.abs(en.x)>ei&&(eo="x"),eo),null!==G.currentDirection){var ei,eo,es=G.props.onDirectionLock;es&&es(G.currentDirection)}return}G.updatePoint("x",en),G.updatePoint("y",en);var ec=G.props.onDrag;ec&&ec(R,convertPanToDrag(W,G.point))}},onEnd:function(R,W){G.stop(R,W)}},{transformPagePoint:et})},ComponentDragControls.prototype.cancelDrag=function(){unblockViewportScroll(),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},ComponentDragControls.prototype.stop=function(R,W){null===(G=this.panSession)||void 0===G||G.end(),this.panSession=null;var G,J=this.isDragging;if(this.cancelDrag(),J){var et=this.props,er=et.dragMomentum,en=et.dragElastic,ei=et.onDragEnd;if(er||en){var eo=W.velocity;this.animateDragEnd(eo)}else this.recordBoxInfo(this.constraints);ei&&ei(R,convertPanToDrag(W,this.point))}},ComponentDragControls.prototype.recordBoxInfo=function(R){if(R){var W=R.right,G=R.left,J=R.bottom,et=R.top;this.prevConstraintsBox.width=(W||0)-(G||0),this.prevConstraintsBox.height=(J||0)-(et||0)}this.point.x&&(this.prevConstraintsBox.x=this.point.x.get()),this.point.y&&(this.prevConstraintsBox.y=this.point.y.get())},ComponentDragControls.prototype.snapToCursor=function(R){var W=this,G=this.props.transformPagePoint,J=extractEventInfo(R).point,et=getBoundingBox(this.ref,G),er={x:et.width/2+et.left+window.scrollX,y:et.height/2+et.top+window.scrollY},en={x:J.x-er.x,y:J.y-er.y};bothAxis(function(R){var G=W.point[R];G&&W.origin[R].set(G.get())}),this.updatePoint("x",en),this.updatePoint("y",en)},ComponentDragControls.prototype.setPoint=function(R,W){this.point[R]=W},ComponentDragControls.prototype.updatePoint=function(R,W){var G=this.props,J=G.drag,et=G.dragElastic,er=this.point[R];if(shouldDrag(R,J,this.currentDirection)&&er){var en=applyConstraints(R,this.origin[R].get()+W[R],this.constraints,et);er.set(en)}},ComponentDragControls.prototype.updateProps=function(R){var W=this,G=R.drag,J=void 0!==G&&G,et=R.dragDirectionLock,er=R.dragPropagation,en=R.dragConstraints,ei=void 0!==en&&en,eo=R.dragElastic,es=R.dragMomentum,ec=tslib_es6_rest(R,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=tslib_es6_assign({drag:J,dragDirectionLock:void 0!==et&&et,dragPropagation:void 0!==er&&er,dragConstraints:ei,dragElastic:void 0===eo||eo,dragMomentum:void 0===es||es},ec);var el=ec._dragValueX,eu=ec._dragValueY,ed=ec.dragOriginX,ep=ec.dragOriginY;ed&&(this.origin.x=ed),ep&&(this.origin.y=ep),bothAxis(function(R){if(shouldDrag(R,J,W.currentDirection)){var G="x"===R?el:eu;W.setPoint(R,G||W.values.get(R,0))}}),this.constraintsNeedResolution=isRefObject(ei),this.constraints=this.constraintsNeedResolution?this.constraints||!1:ei},ComponentDragControls.prototype.applyConstraintsToPoint=function(R){var W=this;return void 0===R&&(R=this.constraints),bothAxis(function(G){var J=W.point[G];J&&!J.isAnimating()&&applyConstraints(G,J,R,0)})},ComponentDragControls.prototype.animateDragEnd=function(R){var W=this,G=this.props,J=G.drag,et=G.dragMomentum,er=G.dragElastic,en=G.dragTransition,ei=G._dragValueX,eo=G._dragValueY,es=G._dragTransitionControls;return Promise.all(bothAxis(function(G){if(shouldDrag(G,J,W.currentDirection)){var ec,el=W.constraints?getConstraints(G,W.constraints):{},eu=es||W.controls,ed=tslib_es6_assign(tslib_es6_assign({type:"inertia",velocity:et?R[G]:0,bounceStiffness:er?200:1e6,bounceDamping:er?40:1e7,timeConstant:750,restDelta:1},en),el),ep="x"===G?ei:eo;return ep?startAnimation(G,ep,0,ed):eu.start(((ec={})[G]=0,ec.transition=ed,ec))}})).then(function(){W.recordBoxInfo(W.constraints),W.scalePoint();var R=W.props.onDragTransitionEnd;R&&R()})},ComponentDragControls.prototype.scalePoint=function(){var R=this,W=this.props,G=W.dragConstraints,J=W.transformPagePoint;if(isRefObject(G)){var et=getBoundingBox(G,J),er=getBoundingBox(this.ref,J),scaleAxisPoint=function(W,G){var J=R.point[W];if(J){if(J.isAnimating()){J.stop(),R.recordBoxInfo();return}var en=R.prevConstraintsBox[G]?(et[G]-er[G])/R.prevConstraintsBox[G]:1;J.set(R.prevConstraintsBox[W]*en)}};scaleAxisPoint("x","width"),scaleAxisPoint("y","height")}},ComponentDragControls.prototype.mount=function(R){var W=this,G=addPointerEvent(R,"pointerdown",function(R){var G=W.props,J=G.drag,et=G.dragListener;J&&(void 0===et||et)&&W.start(R)}),J=addDomEvent(window,"resize",function(){return W.scalePoint()});if(this.constraintsNeedResolution){var et=this.props,er=et.dragConstraints,en=et.transformPagePoint,ei=calculateConstraintsFromDom(er,this.ref,this.point,en);this.applyConstraintsToPoint(ei),this.recordBoxInfo(ei)}else!this.isDragging&&this.constraints&&this.applyConstraintsToPoint();return function(){G&&G(),J&&J(),W.cancelDrag()}},ComponentDragControls}();function bothAxis(R){return[R("x"),R("y")]}function convertPanToDrag(R,W){return tslib_es6_assign(tslib_es6_assign({},R),{point:{x:W.x?W.x.get():0,y:W.y?W.y.get():0}})}function getConstraints(R,W){var G=W.top,J=W.right,et=W.bottom,er=W.left;return"x"===R?{min:er,max:J}:{min:G,max:et}}function shouldDrag(R,W,G){return(!0===W||W===R)&&(null===G||G===R)}function calculateConstraintsFromDom(R,W,G,J){hey_listen_es_invariant(null!==R.current&&null!==W.current,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var et,er,en=getBoundingBox(R,J),ei=getBoundingBox(W,J),eo=en.left-ei.left+((et=G.x)?et.get():0),es=en.top-ei.top+((er=G.y)?er.get():0),ec=en.width-ei.width+eo,el=en.height-ei.height+es;return{top:es,left:eo,right:ec,bottom:el}}function getBoundingBox(R,W){var G=R.current.getBoundingClientRect(),J=W({x:G.left,y:G.top}),et=J.x,er=J.y,en=W({x:G.width,y:G.height});return{left:et,top:er,width:en.x,height:en.y}}function applyConstraints(R,W,G,J){var et=W instanceof tZ?W.get():W;if(!G)return et;var er=getConstraints(R,G),en=er.min,ei=er.max;return void 0!==en&&et<en?et=J?applyOverdrag(en,et,J):Math.max(en,et):void 0!==ei&&et>ei&&(et=J?applyOverdrag(ei,et,J):Math.min(ei,et)),W instanceof tZ&&W.set(et),et}function applyOverdrag(R,W,G){return popcorn_es_mix(R,W,"number"==typeof G?G:.35)}var rc={key:"drag",shouldRender:function(R){return!!R.drag},Component:makeRenderlessComponent(function(R){var W,G,J,et,er=R.innerRef,en=R.values,ei=R.controls;return G=(W=tslib_es6_rest(R,["innerRef","values","controls"])).dragControls,J=(0,eh.useContext)(t3).transformPagePoint,void((et=useConstant(function(){return new rs({ref:er,values:en,controls:ei})})).updateProps(tslib_es6_assign(tslib_es6_assign({},W),{transformPagePoint:J})),(0,eh.useEffect)(function(){return G&&G.subscribe(et)},[et]),(0,eh.useEffect)(function(){return et.mount(er.current)},[]))})};function isCSSVariable(R){return"string"==typeof R&&R.startsWith("var(--")}var rl=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function getVariableValue(R,W,G){void 0===G&&(G=1),hey_listen_es_invariant(G<=4,'Max CSS variable fallback depth detected in property "'+R+'". This may indicate a circular fallback dependency.');var J,et=(J=rl.exec(R))?[J[1],J[2]]:[,],er=et[0],en=et[1];if(er)return window.getComputedStyle(W).getPropertyValue(er)||(isCSSVariable(en)?getVariableValue(en,W,G+1):en)}var ru=new Set(["width","height","top","left","right","bottom","x","y"]),isPositionalKey=function(R){return ru.has(R)},setAndResetVelocity=function(R,W){R.set(W,!1),R.set(W)},isNumOrPxType=function(R){return R===eE||R===eM};(et=es||(es={})).width="width",et.height="height",et.left="left",et.right="right",et.top="top",et.bottom="bottom";var getPosFromMatrix=function(R,W){return parseFloat(R.split(", ")[W])},getTranslateFromMatrix=function(R,W){return function(G,J){var et=J.transform;if("none"===et||!et)return 0;var er=et.match(/^matrix3d\((.+)\)$/);if(er)return getPosFromMatrix(er[1],W);var en=et.match(/^matrix\((.+)\)$/);return en?getPosFromMatrix(en[1],R):0}},rd=new Set(["x","y","z"]),rp=tu.filter(function(R){return!rd.has(R)}),rf={width:function(R){return R.width},height:function(R){return R.height},top:function(R,W){return parseFloat(W.top)},left:function(R,W){return parseFloat(W.left)},bottom:function(R,W){var G=R.height;return parseFloat(W.top)+G},right:function(R,W){var G=R.width;return parseFloat(W.left)+G},x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)},convertChangedValueTypes=function(R,W,G,J,et){var er=G.getBoundingClientRect(),en=getComputedStyle(G),ei=en.display,eo={top:en.top,left:en.left,bottom:en.bottom,right:en.right,transform:en.transform};"none"===ei&&J.set("display",R.display||"block"),J.render();var es=G.getBoundingClientRect();return et.forEach(function(G){setAndResetVelocity(W.get(G),rf[G](er,eo)),R[G]=rf[G](es,en)}),R},checkAndConvertChangedValueTypes=function(R,W,G,J){void 0===J&&(J={}),G=tslib_es6_assign({},G),J=tslib_es6_assign({},J);var et=W.current,er=stylefire_es(et),en=Object.keys(G).filter(isPositionalKey),ei=[],eo=!1,es=en.reduce(function(W,et){var en,es=R.get(et);if(!es)return W;var ec=es.get(),el=G[et],eu=getDimensionValueType(ec);if(isKeyframesTarget(el))for(var ed=el.length,ep=null===el[0]?1:0;ep<ed;ep++)en?hey_listen_es_invariant(getDimensionValueType(el[ep])===en,"All keyframes must be of the same type"):hey_listen_es_invariant((en=getDimensionValueType(el[ep]))===eu||isNumOrPxType(eu)&&isNumOrPxType(en),"Keyframes must be of the same dimension as the current value");else en=getDimensionValueType(el);if(eu!==en){if(isNumOrPxType(eu)&&isNumOrPxType(en)){var ef,eh=es.get();"string"==typeof eh&&es.set(parseFloat(eh)),"string"==typeof el?G[et]=parseFloat(el):Array.isArray(el)&&en===eM&&(G[et]=el.map(parseFloat))}else eo||(ef=[],rp.forEach(function(W){var G=R.get(W);void 0!==G&&(ef.push([W,G.get()]),G.set(W.startsWith("scale")?1:0))}),ef.length&&er.render(),ei=ef,eo=!0),W.push(et),J[et]=void 0!==J[et]?J[et]:G[et],setAndResetVelocity(es,el)}return W},[]);if(!es.length)return{target:G,transitionEnd:J};var ec=convertChangedValueTypes(G,R,et,er,es);return ei.length&&ei.forEach(function(W){var G=W[0],J=W[1];R.get(G).set(J)}),er.render(),{target:ec,transitionEnd:J}},rh=(0,eh.createContext)(null);(er=el||(el={})).Prepare="prepare",er.Read="read",er.Render="render";var rg=[el.Prepare,el.Read,el.Render].reduce(function(R,W){return R[W]=[],R},{}),rm=!1;function flushCallbackList(R){for(var W=R.length,G=0;G<W;G++)R[G]();R.length=0}var createUseSyncEffect=function(R){return function(W){W&&(rm=!0,rg[R].push(W))}},ry=((ec={})[el.Prepare]=createUseSyncEffect(el.Prepare),ec[el.Read]=createUseSyncEffect(el.Read),ec[el.Render]=createUseSyncEffect(el.Render),ec.flush=function(){rm&&(flushCallbackList(rg.prepare),flushCallbackList(rg.read),flushCallbackList(rg.render),rm=!1)},ec),rv={duration:.8,ease:[.45,.05,.19,1]},rb=underDampedSpring(),r_={x:{id:"x",size:"width",min:"left",max:"right",origin:"originX"},y:{id:"y",size:"height",min:"top",max:"bottom",origin:"originY"}};function calcAxisDelta(R,W,G){var J,et=R[G.size]-W[G.size],er=.5;return et&&(R[G.min]===W[G.min]?er=0:R[G.max]===W[G.max]&&(er=1)),(J={})[G.size]=et,J[G.origin]=er,J[G.id]=.5===er?(R[G.min]+R[G.max])/2-(W[G.min]+W[G.max])/2:0,J}var rx={getLayout:function(R){return R.offset},measure:function(R){var W=R.offsetLeft,G=R.offsetTop,J=R.offsetWidth,et=R.offsetHeight;return{left:W,top:G,right:W+J,bottom:G+et,width:J,height:et}}},rw={getLayout:function(R){return R.boundingBox},measure:function(R){var W=R.getBoundingClientRect();return{left:W.left,top:W.top,width:W.width,height:W.height,right:W.right,bottom:W.bottom}}};function readPositionStyle(R){return window.getComputedStyle(R).position}function isSizeKey(R){return"width"===R||"height"===R}var rS=function(R){function LayoutAnimation(){return null!==R&&R.apply(this,arguments)||this}return!function(R,W){function __(){this.constructor=R}extendStatics(R,W),R.prototype=null===W?Object.create(W):(__.prototype=W.prototype,new __)}(LayoutAnimation,R),LayoutAnimation.prototype.getSnapshotBeforeUpdate=function(){var R,W,G,J=this.props,et=J.innerRef,er=J.positionTransition,en=J.values,ei=J.controls,eo=et.current;if(eo instanceof HTMLElement){var es,ec,el,eu=(ec=(es=this.props).layoutTransition,el=es.positionTransition,ec||el),ed=!!er,ep=readPositionStyle(eo),ef={offset:rx.measure(eo),boundingBox:rw.measure(eo)};return ry.prepare(function(){R=eo.style.transform,eo.style.transform=""}),ry.read(function(){W={offset:rx.measure(eo),boundingBox:rw.measure(eo)};var R=readPositionStyle(eo);G=ed&&ep===R?rx:rw}),ry.render(function(){var J=G.getLayout(ef),et=G.getLayout(W),er=tslib_es6_assign(tslib_es6_assign({},calcAxisDelta(J,et,r_.x)),calcAxisDelta(J,et,r_.y));if(!(er.x||er.y||er.width||er.height)){R&&(eo.style.transform=R);return}stylefire_es(eo).set({originX:er.originX,originY:er.originY}),tq.open();var es={},ec={},el="function"==typeof eu?eu({delta:er}):eu;function makeTransition(R,W,J,et){if(er[isSizeKey(R)?R:W]){var ei="boolean"==typeof el?tslib_es6_assign({},ed?rb:rv):el,eo=en.get(W,J),eu=eo.getVelocity();ec[W]=ei[W]?tslib_es6_assign({},ei[W]):tslib_es6_assign({},ei),void 0===ec[W].velocity&&(ec[W].velocity=eu||0),es[W]=J;var ep=isSizeKey(R)||G!==rx?0:eo.get();eo.set(et+ep)}}makeTransition("left","x",0,er.x),makeTransition("top","y",0,er.y),ed||(makeTransition("width","scaleX",1,ef.boundingBox.width/W.boundingBox.width),makeTransition("height","scaleY",1,ef.boundingBox.height/W.boundingBox.height)),es.transition=ec,el&&ei.start(es),tq.flush()}),null}},LayoutAnimation.prototype.componentDidUpdate=function(){ry.flush()},LayoutAnimation.prototype.render=function(){return null},LayoutAnimation.contextType=rh,LayoutAnimation}(eh.Component),rT=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","static","positionTransition","layoutTransition","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragElastic","dragMomentum","dragPropagation","dragTransition","_dragValueX","_dragValueY","_dragTransitionControls","dragOriginX","dragOriginY","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function targetWithoutTransition(R,W){void 0===W&&(W=!1),R.transition;var G=R.transitionEnd,J=tslib_es6_rest(R,["transition","transitionEnd"]);return W?tslib_es6_assign(tslib_es6_assign({},J),G):J}(en=eu||(eu={})).Target="Target",en.VariantLabel="VariantLabel",en.AnimationSubscription="AnimationSubscription";var resolveVariantLabels=function(R){var W=R instanceof tZ?R.get():R;return Array.from(new Set(W?Array.isArray(W)?W:[W]:[]))},rO=((ed={})[eu.Target]=makeRenderlessComponent(function(R){var W,G,J=R.animate,et=R.controls,er=R.values,en=R.transition;return W=(0,eh.useRef)(!0),void((G=(0,eh.useRef)(null)).current||(G.current=targetWithoutTransition(J,!0)),(0,eh.useEffect)(function(){var R={},ei=targetWithoutTransition(J),eo=targetWithoutTransition(J,!0);for(var es in ei){var ec,el,eu=W.current&&(!er.has(es)||er.get(es).get()!==eo[es]),ed=null!==eo[es],ep=(ec=G.current[es],void 0!==(el=eo[es])&&(Array.isArray(ec)&&Array.isArray(el)?!function(R,W){if(null===W)return!1;var G=W.length;if(G!==R.length)return!1;for(var J=0;J<G;J++)if(W[J]!==R[J])return!1;return!0}(el,ec):ec!==el));ed&&(ep||eu)&&(R[es]=ei[es])}W.current=!1,G.current=tslib_es6_assign(tslib_es6_assign({},G.current),eo),Object.keys(R).length&&et.start(tslib_es6_assign(tslib_es6_assign({},R),{transition:J.transition||en,transitionEnd:J.transitionEnd}))},[J]))}),ed[eu.VariantLabel]=makeRenderlessComponent(function(R){var W,G,J,et,er,en,ei=R.animate,eo=R.inherit,es=R.controls;return W=R.initial,G=void 0===eo||eo,J=resolveVariantLabels(ei),er=(et=(0,eh.useContext)(t1)).hasMounted&&et.hasMounted.current,en=(0,eh.useRef)(!1),void(0,eh.useEffect)(function(){var R,ei,eo=!1;G?(eo=!!er,J=resolveVariantLabels(et.animate)):eo=en.current||(R=resolveVariantLabels(W),ei=J,R.join(",")!==ei.join(",")),eo&&es.start(J),en.current=!0},[J.join(",")])}),ed[eu.AnimationSubscription]=makeRenderlessComponent(function(R){var W,G=R.animate,J=R.controls;return W=(0,eh.useMemo)(function(){return G.subscribe(J)},[G]),void(0,eh.useEffect)(function(){return function(){W&&W()}},[W])}),ed),isAnimationSubscription=function(R){return R.animate instanceof tJ},rP=["initial","animate","whileTap","whileHover"],rC=((ep={})[eu.Target]=function(R){var W;return void 0!==R.animate&&!(Array.isArray(W=R.animate)||"string"==typeof W)&&!isAnimationSubscription(R)},ep[eu.VariantLabel]=function(R){return void 0!==R.variants||rP.some(function(W){return"string"==typeof R[W]})},ep[eu.AnimationSubscription]=isAnimationSubscription,ep),getAnimationComponent=function(R){var W=void 0;for(var G in eu)rC[G](R)&&(W=G);return W?rO[W]:void 0},rk={key:"exit",shouldRender:function(R){return!!R.exit&&!checkShouldInheritVariant(R)},Component:makeRenderlessComponent(function(R){var W=R.animate,G=R.controls,J=R.exit,et=function(){var R=(0,eh.useContext)(t0);if(null===R)return[!0];var W=R.isPresent,G=R.onExitComplete,J=R.register;return(0,eh.useEffect)(J,[]),!W&&G?[!1,G]:[!0]}(),er=et[0],en=et[1],ei=(0,eh.useContext)(t0),eo=(0,eh.useRef)(!1),es=(null==ei?void 0:ei.custom)!==void 0?ei.custom:R.custom;(0,eh.useEffect)(function(){er?!eo.current||!W||W instanceof tJ||G.start(W):(!eo.current&&J&&(G.setProps(tslib_es6_assign(tslib_es6_assign({},R),{custom:es})),G.start(J).then(en)),eo.current=!0),er&&(eo.current=!1)},[er])})},isPropValid=function(R){return!rT.has(R)};try{var rE=G(83804).Z;isPropValid=function(R){return R.startsWith("on")?!rT.has(R):rE(R)}}catch(R){}var buildHTMLProps=function(R,W,G,J){var et={style:buildStyleAttr(R,W,G)};return J&&(et.style.userSelect="none",et.draggable=!1),et},buildSVGProps=function(R,W){var G=buildSVGAttrs(resolveCurrent(R),void 0,void 0,void 0,void 0,!1);return G.style=tslib_es6_assign(tslib_es6_assign({},W),G.style),G},rj=[{key:"layout",shouldRender:function(R){var W=R.positionTransition,G=R.layoutTransition;return hey_listen_es_invariant(!(W&&G),"Don't set both positionTransition and layoutTransition on the same component"),"undefined"!=typeof window&&!!(W||G)},Component:rS},rc,ra,rk],rA=rj.length;function createDomMotionConfig(R){var W="string"==typeof R,G=W&&-1!==t2.indexOf(R);return{renderComponent:function(J,et,er,en,ei){var eo=W?function(R){var W={};for(var G in R)isPropValid(G)&&(W[G]=R[G]);return W}(en):en,es=G?buildSVGProps(er,et):buildHTMLProps(er,et,ei,!!en.drag);return(0,eh.createElement)(R,tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},eo),{ref:J}),es))},loadFunctionalityComponents:function(R,W,G,J,et,er){var en=[],ei=getAnimationComponent(G);ei&&en.push((0,eh.createElement)(ei,{key:"animation",initial:G.initial,animate:G.animate,variants:G.variants,transition:G.transition,controls:et,inherit:er,values:W}));for(var eo=0;eo<rA;eo++){var es=rj[eo],ec=es.shouldRender,el=es.key,eu=es.Component;ec(G,J)&&en.push((0,eh.createElement)(eu,tslib_es6_assign({key:el},G,{parentContext:J,values:W,controls:et,innerRef:R})))}return en},getValueControlsConfig:function(R,W){return{values:W,readValueFromSource:function(W){return stylefire_es(R.current).get(W)},makeTargetAnimatable:function(G,J){var et,er,en=function(R,W,G,J){var et=tslib_es6_rest(G,[]),er=W.current;if(!(er instanceof HTMLElement))return{target:et,transitionEnd:J};for(var en in J&&(J=tslib_es6_assign({},J)),R.forEach(function(R){var W=R.get();if(isCSSVariable(W)){var G=getVariableValue(W,er);G&&R.set(G)}}),et){var ei=et[en];if(isCSSVariable(ei)){var eo=getVariableValue(ei,er);eo&&(et[en]=eo,J&&void 0===J[en]&&(J[en]=ei))}}return{target:et,transitionEnd:J}}(W,R,G,J);return et=G=en.target,er=J=en.transitionEnd,Object.keys(et).some(isPositionalKey)?checkAndConvertChangedValueTypes(W,R,et,er):{target:et,transitionEnd:er}}}}}}var rD=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","webview"].reduce(function(R,W){var G=createDomMotionConfig(W);return R[W]=createMotionComponent(G),R},{}),rI=t2.reduce(function(R,W){return R[W]=createMotionComponent(createDomMotionConfig(W)),R},{}),rM=tslib_es6_assign(tslib_es6_assign({custom:function(R){return createMotionComponent(createDomMotionConfig(R))}},rD),rI),noop$1=function(R){return R};function useTransform(R,W,G,J){var et=(0,eh.useRef)(null),er=[R],en=noop$1;return"function"==typeof W?en=W:Array.isArray(G)&&(en=function(){for(var R,W,G,J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef,eh,eg,em=[],ey=0;ey<arguments.length;ey++)em[ey]=arguments[ey];var ev=!Array.isArray(em[0]),eb=ev?0:-1,e_=em[0+eb],ex=em[1+eb],ew=em[2+eb],eS=em[3+eb],eT=(W=ex,G=ew,er=(et=void 0===(J=tslib_es6_assign({mixer:"object"==typeof(R=ew[0])&&R.mix?R.mix:void 0},eS))?{}:J).clamp,en=et.ease,ei=et.mixer,hey_listen_es_invariant((eo=W.length)===G.length,"Both input and output ranges must be the same length"),hey_listen_es_invariant(!en||!Array.isArray(en)||en.length===eo-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),W[0]>W[eo-1]&&(W=[].concat(W),G=[].concat(G),W.reverse(),G.reverse()),es=function(R,W,G){for(var J,et=[],er=G||("number"==typeof(J=R[0])?mixNumber:"string"==typeof J?eH.test(J)?mixColor:mixComplex:Array.isArray(J)?mixArray:"object"==typeof J?mixObject:void 0),en=R.length-1,ei=0;ei<en;ei++){var eo=er(R[ei],R[ei+1]);W&&(eo=popcorn_es_pipe(Array.isArray(W)?W[ei]:W,eo)),et.push(eo)}return et}(G,en,ei),eg=2===eo?(el=(ec=W)[0],eu=ec[1],ed=es[0],function(R){return ed(progress(el,eu,R))}):(eh=(ef=(ep=W).length)-1,function(R){var W=0,G=!1;if(R<=ep[0]?G=!0:R>=ep[eh]&&(W=eh-1,G=!0),!G){for(var J=1;J<ef&&!(ep[J]>R)&&J!==eh;J++);W=J-1}var et=progress(ep[W],ep[W+1],R);return es[W](et)}),void 0===er||er?popcorn_es_pipe(tt(W[0],W[eo-1]),eg):eg);return ev?eT(e_):eT}(W,G,J),er=[R,W.join(","),G.join(",")]),(0,eh.useMemo)(function(){return et.current&&et.current.destroy(),et.current=R.addChild({transformer:en}),et.current},er)}function setProgress(R,W,G){G.set(R&&W?R/W:0)}var rL="undefined"!=typeof window?eh.useLayoutEffect:eh.useEffect,rR={scrollX:motionValue(0),scrollY:motionValue(0),scrollXProgress:motionValue(0),scrollYProgress:motionValue(0)},rN=!1;function useViewportScroll(){return rL(function(){rN||function(){if(rN=!0,"undefined"!=typeof window){var R,W=((R=function(){var R={xOffset:window.pageXOffset,yOffset:window.pageYOffset,xMaxOffset:document.body.clientWidth-window.innerWidth,yMaxOffset:document.body.clientHeight-window.innerHeight},W=R.xOffset,G=R.yOffset,J=R.xMaxOffset,et=R.yMaxOffset;rR.scrollX.set(W),rR.scrollY.set(G),setProgress(W,J,rR.scrollXProgress),setProgress(G,et,rR.scrollYProgress)})(),R);addDomEvent(window,"scroll",W,{passive:!0}),addDomEvent(window,"resize",W)}}()},[]),rR}!function(){function DragControls(){this.componentControls=new Set}DragControls.prototype.subscribe=function(R){var W=this;return this.componentControls.add(R),function(){return W.componentControls.delete(R)}},DragControls.prototype.start=function(R,W){this.componentControls.forEach(function(G){G.start(R.nativeEvent||R,W)})}}();var PresenceChild=function(R){var W=R.children,G=R.initial,J=R.isPresent,et=R.onExitComplete,er=R.custom,en=(0,eh.useRef)(0),ei=(0,eh.useRef)(0),eo=(0,eh.useMemo)(function(){return ei.current=0,function(){return en.current++,function(){return en.current--}}},[J]);return(0,eh.createElement)(t0.Provider,{value:tslib_es6_assign(tslib_es6_assign({},{initial:G,isPresent:J,custom:er,onExitComplete:function(){ei.current++;var R=ei.current>=en.current;et&&R&&et()}}),{register:eo})},W)};function getChildKey(R){return R.key||""}var AnimatePresence=function(R){var W,G,J,et,er=R.children,en=R.custom,ei=R.initial,eo=void 0===ei||ei,es=R.onExitComplete,ec=R.exitBeforeEnter,el=(G=(W=(0,eh.useState)(0))[0],J=W[1],(0,eh.useCallback)(function(){return J(G+1)},[G])),eu=(0,eh.useContext)(rh)||el,ed=(0,eh.useRef)(!0),ep=(et=[],eh.Children.forEach(er,function(R){(0,eh.isValidElement)(R)&&et.push(R)}),et),ef=(0,eh.useRef)(ep),eg=(0,eh.useRef)(new Map).current,em=(0,eh.useRef)(new Set).current;if(!function(R,W){R.forEach(function(R){var G=getChildKey(R);W.set(G,R)})}(ep,eg),ed.current)return ed.current=!1,(0,eh.createElement)(eh.Fragment,null,ep.map(function(R){return(0,eh.createElement)(PresenceChild,{key:getChildKey(R),isPresent:!0,initial:!!eo&&void 0},R)}));for(var ey=__spreadArrays(ep),ev=ef.current.map(getChildKey),eb=ep.map(getChildKey),e_=ev.length,ex=0;ex<e_;ex++){var ew=ev[ex];-1===eb.indexOf(ew)?em.add(ew):em.delete(ew)}return ec&&em.size&&(ey=[]),em.forEach(function(R){if(-1===eb.indexOf(R)){var W=eg.get(R);if(W){var G=ev.indexOf(R);ey.splice(G,0,(0,eh.createElement)(PresenceChild,{key:getChildKey(W),isPresent:!1,onExitComplete:function(){em.delete(R);var W=ef.current.findIndex(function(W){return W.key===R});ef.current.splice(W,1),!em.size&&(ef.current=ep,eu(),es&&es())},custom:en},W))}}}),ey=ey.map(function(R){var W=R.key;return em.has(W)?R:(0,eh.createElement)(PresenceChild,{key:getChildKey(R),isPresent:!0},R)}),ef.current=ey,(0,eh.createElement)(eh.Fragment,null,em.size?ey:ey.map(function(R){return(0,eh.cloneElement)(R)}))},rB=motionValue(null);if("undefined"!=typeof window){if(window.matchMedia){var rZ=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=function(){return rB.set(rZ.matches)};rZ.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else rB.set(!1)}},89144:function(R,W,G){var J,et=void 0!==G.g?G.g:"undefined"!=typeof window?window:{},er=G(25893);"undefined"!=typeof document?J=document:(J=et["__GLOBAL_DOCUMENT_CACHE@4"])||(J=et["__GLOBAL_DOCUMENT_CACHE@4"]=er),R.exports=J},58908:function(R,W,G){var J;J="undefined"!=typeof window?window:void 0!==G.g?G.g:"undefined"!=typeof self?self:{},R.exports=J},8679:function(R,W,G){"use strict";var J=G(21296),et={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},er={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},en={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ei={};function getStatics(R){return J.isMemo(R)?en:ei[R.$$typeof]||et}ei[J.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ei[J.Memo]=en;var eo=Object.defineProperty,es=Object.getOwnPropertyNames,ec=Object.getOwnPropertySymbols,el=Object.getOwnPropertyDescriptor,eu=Object.getPrototypeOf,ed=Object.prototype;R.exports=function hoistNonReactStatics(R,W,G){if("string"!=typeof W){if(ed){var J=eu(W);J&&J!==ed&&hoistNonReactStatics(R,J,G)}var et=es(W);ec&&(et=et.concat(ec(W)));for(var en=getStatics(R),ei=getStatics(W),ep=0;ep<et.length;++ep){var ef=et[ep];if(!er[ef]&&!(G&&G[ef])&&!(ei&&ei[ef])&&!(en&&en[ef])){var eh=el(W,ef);try{eo(R,ef,eh)}catch(R){}}}}return R}},96103:function(R,W){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var G="function"==typeof Symbol&&Symbol.for,J=G?Symbol.for("react.element"):60103,et=G?Symbol.for("react.portal"):60106,er=G?Symbol.for("react.fragment"):60107,en=G?Symbol.for("react.strict_mode"):60108,ei=G?Symbol.for("react.profiler"):60114,eo=G?Symbol.for("react.provider"):60109,es=G?Symbol.for("react.context"):60110,ec=G?Symbol.for("react.async_mode"):60111,el=G?Symbol.for("react.concurrent_mode"):60111,eu=G?Symbol.for("react.forward_ref"):60112,ed=G?Symbol.for("react.suspense"):60113,ep=G?Symbol.for("react.suspense_list"):60120,ef=G?Symbol.for("react.memo"):60115,eh=G?Symbol.for("react.lazy"):60116,eg=G?Symbol.for("react.block"):60121,em=G?Symbol.for("react.fundamental"):60117,ey=G?Symbol.for("react.responder"):60118,ev=G?Symbol.for("react.scope"):60119;function z(R){if("object"==typeof R&&null!==R){var W=R.$$typeof;switch(W){case J:switch(R=R.type){case ec:case el:case er:case ei:case en:case ed:return R;default:switch(R=R&&R.$$typeof){case es:case eu:case eh:case ef:case eo:return R;default:return W}}case et:return W}}}function A(R){return z(R)===el}W.AsyncMode=ec,W.ConcurrentMode=el,W.ContextConsumer=es,W.ContextProvider=eo,W.Element=J,W.ForwardRef=eu,W.Fragment=er,W.Lazy=eh,W.Memo=ef,W.Portal=et,W.Profiler=ei,W.StrictMode=en,W.Suspense=ed,W.isAsyncMode=function(R){return A(R)||z(R)===ec},W.isConcurrentMode=A,W.isContextConsumer=function(R){return z(R)===es},W.isContextProvider=function(R){return z(R)===eo},W.isElement=function(R){return"object"==typeof R&&null!==R&&R.$$typeof===J},W.isForwardRef=function(R){return z(R)===eu},W.isFragment=function(R){return z(R)===er},W.isLazy=function(R){return z(R)===eh},W.isMemo=function(R){return z(R)===ef},W.isPortal=function(R){return z(R)===et},W.isProfiler=function(R){return z(R)===ei},W.isStrictMode=function(R){return z(R)===en},W.isSuspense=function(R){return z(R)===ed},W.isValidElementType=function(R){return"string"==typeof R||"function"==typeof R||R===er||R===el||R===ei||R===en||R===ed||R===ep||"object"==typeof R&&null!==R&&(R.$$typeof===eh||R.$$typeof===ef||R.$$typeof===eo||R.$$typeof===es||R.$$typeof===eu||R.$$typeof===em||R.$$typeof===ey||R.$$typeof===ev||R.$$typeof===eg)},W.typeOf=z},21296:function(R,W,G){"use strict";R.exports=G(96103)},9804:function(R){R.exports={CASE_SENSITIVE_TAG_NAMES:["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]}},46982:function(R,W,G){var J,et,er,en=G(93412),ei="html",eo="head",es="body",ec=/<([a-zA-Z]+[0-9]?)/,el=/<head.*>/i,eu=/<body.*>/i,ed=/<(area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)(.*?)\/?>/gi,ep=en.isIE(9),ef=ep||en.isIE();if("function"==typeof window.DOMParser){var eh=new window.DOMParser,eg=ep?"text/xml":"text/html";J=function(R,W){return W&&(R="<"+W+">"+R+"</"+W+">"),ep&&(R=R.replace(ed,"<$1$2$3/>")),eh.parseFromString(R,eg)}}if("object"==typeof document.implementation){var em=document.implementation.createHTMLDocument(ef?"HTML_DOM_PARSER_TITLE":void 0);et=function(R,W){if(W)return em.documentElement.getElementsByTagName(W)[0].innerHTML=R,em;try{return em.documentElement.innerHTML=R,em}catch(W){if(J)return J(R)}}}var ey=document.createElement("template");ey.content&&(er=function(R){return ey.innerHTML=R,ey.content.childNodes});var ev=et||J;R.exports=function(R){var W,G,et,en,ed=R.match(ec);switch(ed&&ed[1]&&(W=ed[1].toLowerCase()),W){case ei:if(J)return G=J(R),!el.test(R)&&(et=G.getElementsByTagName(eo)[0])&&et.parentNode.removeChild(et),!eu.test(R)&&(et=G.getElementsByTagName(es)[0])&&et.parentNode.removeChild(et),G.getElementsByTagName(ei);break;case eo:case es:if(ev){if(en=ev(R).getElementsByTagName(W),eu.test(R)&&el.test(R))return en[0].parentNode.childNodes;return en}break;default:if(er)return er(R);if(ev)return ev(R,es).getElementsByTagName(es)[0].childNodes}return[]}},5057:function(R,W,G){var J=G(46982),et=G(93412),er=et.formatDOM,en=et.isIE(9),ei=/<(![a-zA-Z\s]+)>/;R.exports=function(R){if("string"!=typeof R)throw TypeError("First argument must be a string");if(!R)return[];var W,G=R.match(ei);return G&&G[1]&&(W=G[1],en&&(R=R.replace(G[0],""))),er(J(R),null,W)}},93412:function(R,W,G){for(var J,et=G(9804).CASE_SENSITIVE_TAG_NAMES,er={},en=0,ei=et.length;en<ei;en++)er[(J=et[en]).toLowerCase()]=J;function formatAttributes(R){for(var W,G={},J=0,et=R.length;J<et;J++)G[(W=R[J]).name]=W.value;return G}R.exports={formatAttributes:formatAttributes,formatDOM:function formatDOM(R,W,G){W=W||null;for(var J,et,en,ei,eo=[],es=0,ec=R.length;es<ec;es++){switch(et=R[es],ei={next:null,prev:eo[es-1]||null,parent:W},(en=eo[es-1])&&(en.next=ei),"#"!==et.nodeName[0]&&(ei.name=er[J=(J=et.nodeName).toLowerCase()]||J,ei.attribs={},et.attributes&&et.attributes.length&&(ei.attribs=formatAttributes(et.attributes))),et.nodeType){case 1:"script"===ei.name||"style"===ei.name?ei.type=ei.name:ei.type="tag",ei.children=formatDOM(et.childNodes,ei);break;case 3:ei.type="text",ei.data=et.nodeValue;break;case 8:ei.type="comment",ei.data=et.nodeValue}eo.push(ei)}return G&&(eo.unshift({name:G.substring(0,G.indexOf(" ")).toLowerCase(),data:G,type:"directive",next:eo[0]?eo[0]:null,prev:null,parent:W}),eo[1]&&(eo[1].prev=eo[0])),eo},isIE:function(R){return R?document.documentMode===R:/(MSIE |Trident\/|Edge\/)/.test(navigator.userAgent)}}},30488:function(R,W,G){var J=G(53670),et=G(5057),er={decodeEntities:!0,lowerCaseAttributeNames:!1};function HTMLReactParser(R,W){if("string"!=typeof R)throw TypeError("First argument must be a string");return J(et(R,er),W)}HTMLReactParser.domToReact=J,HTMLReactParser.htmlToDOM=et,R.exports=HTMLReactParser},50484:function(R,W,G){var J=G(32686),et=G(5326),er=G(74606),en=er.camelCase,ei=J.html,eo=J.svg,es=J.isCustomAttribute,ec=Object.prototype.hasOwnProperty;R.exports=function(R){var W,G,J,el,eu={};for(W in R=R||{}){if(J=R[W],es(W)){eu[W]=J;continue}if(G=W.toLowerCase(),ec.call(ei,G)){eu[(el=ei[G]).propertyName]=!!el.hasBooleanValue||!!el.hasOverloadedBooleanValue&&!J||J;continue}if(ec.call(eo,W)){eu[(el=eo[W]).propertyName]=J;continue}er.PRESERVE_CUSTOM_ATTRIBUTES&&(eu[W]=J)}return null!=R.style&&(eu.style=function(R){if("string"!=typeof R)throw TypeError("First argument must be a string.");var W={};return et(R,function(R,G){R&&G&&(W[en(R)]=G)}),W}(R.style)),eu}},53670:function(R,W,G){var J=G(67294),et=G(50484),er=G(74606),en=J.cloneElement,ei=J.createElement,eo=J.isValidElement;R.exports=function domToReact(R,W){for(var G,J,es,ec,el=[],eu="function"==typeof(W=W||{}).replace,ed=0,ep=R.length;ed<ep;ed++){if(G=R[ed],eu&&eo(J=W.replace(G))){ep>1&&(J=en(J,{key:J.key||ed})),el.push(J);continue}if("text"===G.type){el.push(G.data);continue}if(es=G.attribs,er.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===G.type&&er.isCustomComponent(G.name,G.attribs)||(es=et(G.attribs)),ec=null,"script"===G.type||"style"===G.type)G.children[0]&&(es.dangerouslySetInnerHTML={__html:G.children[0].data});else{if("tag"!==G.type)continue;"textarea"===G.name&&G.children[0]?es.defaultValue=G.children[0].data:G.children&&G.children.length&&(ec=domToReact(G.children,W))}ep>1&&(es.key=ed),el.push(ei(G.name,es,ec))}return 1===el.length?el[0]:el}},74606:function(R,W,G){var J=G(67294),et=/-([a-z])/g,er=/^--[a-zA-Z0-9-]+$|^[^-]+$/,en=J.version.split(".")[0]>=16;R.exports={PRESERVE_CUSTOM_ATTRIBUTES:en,camelCase:function(R){if("string"!=typeof R)throw TypeError("First argument must be a string");return er.test(R)?R:R.toLowerCase().replace(et,function(R,W){return W.toUpperCase()})},invertObject:function(R,W){if(!R||"object"!=typeof R)throw TypeError("First argument must be an object");var G,J,et="function"==typeof W,er={},en={};for(G in R){if(J=R[G],et&&(er=W(G,J))&&2===er.length){en[er[0]]=er[1];continue}"string"==typeof J&&(en[J]=G)}return en},isCustomComponent:function(R,W){if(-1===R.indexOf("-"))return W&&"string"==typeof W.is;switch(R){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}}},5326:function(R,W,G){var J=G(18139);R.exports=function(R,W){var G,et,er,en=null;if(!R||"string"!=typeof R)return en;for(var ei=J(R),eo="function"==typeof W,es=0,ec=ei.length;es<ec;es++)et=(G=ei[es]).property,er=G.value,eo?W(et,er,G):er&&(en||(en={}),en[et]=er);return en}},80645:function(R,W){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */W.read=function(R,W,G,J,et){var er,en,ei=8*et-J-1,eo=(1<<ei)-1,es=eo>>1,ec=-7,el=G?et-1:0,eu=G?-1:1,ed=R[W+el];for(el+=eu,er=ed&(1<<-ec)-1,ed>>=-ec,ec+=ei;ec>0;er=256*er+R[W+el],el+=eu,ec-=8);for(en=er&(1<<-ec)-1,er>>=-ec,ec+=J;ec>0;en=256*en+R[W+el],el+=eu,ec-=8);if(0===er)er=1-es;else{if(er===eo)return en?NaN:(ed?-1:1)*(1/0);en+=Math.pow(2,J),er-=es}return(ed?-1:1)*en*Math.pow(2,er-J)},W.write=function(R,W,G,J,et,er){var en,ei,eo,es=8*er-et-1,ec=(1<<es)-1,el=ec>>1,eu=23===et?5960464477539062e-23:0,ed=J?0:er-1,ep=J?1:-1,ef=W<0||0===W&&1/W<0?1:0;for(isNaN(W=Math.abs(W))||W===1/0?(ei=isNaN(W)?1:0,en=ec):(en=Math.floor(Math.log(W)/Math.LN2),W*(eo=Math.pow(2,-en))<1&&(en--,eo*=2),en+el>=1?W+=eu/eo:W+=eu*Math.pow(2,1-el),W*eo>=2&&(en++,eo/=2),en+el>=ec?(ei=0,en=ec):en+el>=1?(ei=(W*eo-1)*Math.pow(2,et),en+=el):(ei=W*Math.pow(2,el-1)*Math.pow(2,et),en=0));et>=8;R[G+ed]=255&ei,ed+=ep,ei/=256,et-=8);for(en=en<<et|ei,es+=et;es>0;R[G+ed]=255&en,ed+=ep,en/=256,es-=8);R[G+ed-ep]|=128*ef}},87355:function(R){var W=[].indexOf;R.exports=function(R,G){if(W)return R.indexOf(G);for(var J=0;J<R.length;++J)if(R[J]===G)return J;return -1}},18139:function(R){var W=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,G=/\n/g,J=/^\s*/,et=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,er=/^:\s*/,en=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ei=/^[;\s]*/,eo=/^\s+|\s+$/g;function trim(R){return R?R.replace(eo,""):""}R.exports=function(R,eo){if("string"!=typeof R)throw TypeError("First argument must be a string");if(!R)return[];eo=eo||{};var es=1,ec=1;function updatePosition(R){var W=R.match(G);W&&(es+=W.length);var J=R.lastIndexOf("\n");ec=~J?R.length-J:ec+R.length}function position(){var R={line:es,column:ec};return function(W){return W.position=new Position(R),match(J),W}}function Position(R){this.start=R,this.end={line:es,column:ec},this.source=eo.source}Position.prototype.content=R;var el=[];function error(W){var G=Error(eo.source+":"+es+":"+ec+": "+W);if(G.reason=W,G.filename=eo.source,G.line=es,G.column=ec,G.source=R,eo.silent)el.push(G);else throw G}function match(W){var G=W.exec(R);if(G){var J=G[0];return updatePosition(J),R=R.slice(J.length),G}}function comments(R){var W;for(R=R||[];W=comment();)!1!==W&&R.push(W);return R}function comment(){var W=position();if("/"==R.charAt(0)&&"*"==R.charAt(1)){for(var G=2;""!=R.charAt(G)&&("*"!=R.charAt(G)||"/"!=R.charAt(G+1));)++G;if(G+=2,""===R.charAt(G-1))return error("End of comment missing");var J=R.slice(2,G-2);return ec+=2,updatePosition(J),R=R.slice(G),ec+=2,W({type:"comment",comment:J})}}return match(J),function(){var R,G=[];for(comments(G);R=function(){var R=position(),G=match(et);if(G){if(comment(),!match(er))return error("property missing ':'");var J=match(en),eo=R({type:"declaration",property:trim(G[0].replace(W,"")),value:J?trim(J[0].replace(W,"")):""});return match(ei),eo}}();)!1!==R&&(G.push(R),comments(G));return G}()}},27376:function(R){R.exports=function(R){if(!R)return!1;var G=W.call(R);return"[object Function]"===G||"function"==typeof R&&"[object RegExp]"!==G||"undefined"!=typeof window&&(R===window.setTimeout||R===window.alert||R===window.confirm||R===window.prompt)};var W=Object.prototype.toString},36808:function(R,W,G){var J,et,er;void 0!==(et="function"==typeof(J=er=function(){function extend(){for(var R=0,W={};R<arguments.length;R++){var G=arguments[R];for(var J in G)W[J]=G[J]}return W}function decode(R){return R.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function init(R){function api(){}function set(W,G,J){if("undefined"!=typeof document){"number"==typeof(J=extend({path:"/"},api.defaults,J)).expires&&(J.expires=new Date(new Date*1+864e5*J.expires)),J.expires=J.expires?J.expires.toUTCString():"";try{var et=JSON.stringify(G);/^[\{\[]/.test(et)&&(G=et)}catch(R){}G=R.write?R.write(G,W):encodeURIComponent(String(G)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),W=encodeURIComponent(String(W)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var er="";for(var en in J)J[en]&&(er+="; "+en,!0!==J[en]&&(er+="="+J[en].split(";")[0]));return document.cookie=W+"="+G+er}}function get(W,G){if("undefined"!=typeof document){for(var J={},et=document.cookie?document.cookie.split("; "):[],er=0;er<et.length;er++){var en=et[er].split("="),ei=en.slice(1).join("=");G||'"'!==ei.charAt(0)||(ei=ei.slice(1,-1));try{var eo=decode(en[0]);if(ei=(R.read||R)(ei,eo)||decode(ei),G)try{ei=JSON.parse(ei)}catch(R){}if(J[eo]=ei,W===eo)break}catch(R){}}return W?J[W]:J}}return api.set=set,api.get=function(R){return get(R,!1)},api.getJSON=function(R){return get(R,!0)},api.remove=function(R,W){set(R,"",extend(W,{expires:-1}))},api.defaults={},api.withConverter=init,api}(function(){})})?J.call(W,G,W,R):J)&&(R.exports=et),R.exports=er()},27537:function(R,W){function keyCode(R){if(R&&"object"==typeof R){var W=R.which||R.keyCode||R.charCode;W&&(R=W)}if("number"==typeof R)return er[R];var et=String(R),en=G[et.toLowerCase()];if(en)return en;var en=J[et.toLowerCase()];return en||(1===et.length?et.charCodeAt(0):void 0)}keyCode.isEventKey=function(R,W){if(R&&"object"==typeof R){var et=R.which||R.keyCode||R.charCode;if(null==et)return!1;if("string"==typeof W){var er=G[W.toLowerCase()];if(er)return er===et;var er=J[W.toLowerCase()];if(er)return er===et}else if("number"==typeof W)return W===et;return!1}};var G=(W=R.exports=keyCode).code=W.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},J=W.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
 * Programatically add the following
 */for(et=97;et<123;et++)G[String.fromCharCode(et)]=et-32;for(var et=48;et<58;et++)G[et-48]=et;for(et=1;et<13;et++)G["f"+et]=et+111;for(et=0;et<10;et++)G["numpad "+et]=et+96;var er=W.names=W.title={};for(et in G)er[G[et]]=et;for(var en in J)G[en]=J[en]},77090:function(R){var W,G;G=function(R,W,G){"use strict";if(function(){var W,G={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(W in eJ=R.lazySizesConfig||R.lazysizesConfig||{},G)W in eJ||(eJ[W]=G[W])}(),!W||!W.getElementsByClassName)return{init:function(){},cfg:eJ,noSupport:!0};var J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef,eh,eg,em,ey,ev,eb,e_,ex,ew,eS,eT,eO,eP,eC,ek,eE,ej,eA,eD,eI,eM,eL,eR,eN,eB,eZ,eU,eF,ez,eH,eq,eV,eW,eG,e$,eK,eY,eX,eQ,eJ,e0=W.documentElement,e1=R.HTMLPictureElement,e2="addEventListener",e3="getAttribute",e5=R[e2].bind(R),e4=R.setTimeout,e8=R.requestAnimationFrame||e4,e6=R.requestIdleCallback,e7=/^picture$/i,e9=["load","error","lazyincluded","_lazyloaded"],tt={},tr=Array.prototype.forEach,hasClass=function(R,W){return tt[W]||(tt[W]=RegExp("(\\s|^)"+W+"(\\s|$)")),tt[W].test(R[e3]("class")||"")&&tt[W]},addClass=function(R,W){hasClass(R,W)||R.setAttribute("class",(R[e3]("class")||"").trim()+" "+W)},removeClass=function(R,W){var G;(G=hasClass(R,W))&&R.setAttribute("class",(R[e3]("class")||"").replace(G," "))},addRemoveLoadEvents=function(R,W,G){var J=G?e2:"removeEventListener";G&&addRemoveLoadEvents(R,W),e9.forEach(function(G){R[J](G,W)})},triggerEvent=function(R,G,J,et,er){var en=W.createEvent("Event");return J||(J={}),J.instance=eQ,en.initEvent(G,!et,!er),en.detail=J,R.dispatchEvent(en),en},updatePolyfill=function(W,G){var J;!e1&&(J=R.picturefill||eJ.pf)?(G&&G.src&&!W[e3]("srcset")&&W.setAttribute("srcset",G.src),J({reevaluate:!0,elements:[W]})):G&&G.src&&(W.src=G.src)},getCSS=function(R,W){return(getComputedStyle(R,null)||{})[W]},getWidth=function(R,W,G){for(G=G||R.offsetWidth;G<eJ.minSize&&W&&!R._lazysizesWidth;)G=W.offsetWidth,W=W.parentNode;return G},tn=(ed=[],ep=eu=[],ef=function(){var R=ep;for(ep=eu.length?ed:eu,ec=!0,el=!1;R.length;)R.shift()();ec=!1},(eh=function(R,G){ec&&!G?R.apply(this,arguments):(ep.push(R),el||(el=!0,(W.hidden?e4:e8)(ef)))})._lsFlush=ef,eh),rAFIt=function(R,W){return W?function(){tn(R)}:function(){var W=this,G=arguments;tn(function(){R.apply(W,G)})}},debounce=function(R){var W,J,run=function(){W=null,R()},later=function(){var R=G.now()-J;R<99?e4(later,99-R):(e6||run)(run)};return function(){J=G.now(),W||(W=e4(later,99))}},ti=(eC=/^img$/i,ek=/^iframe$/i,eE="onscroll"in R&&!/(gle|ing)bot/.test(navigator.userAgent),ej=0,eA=0,eD=-1,eI=function(R){eA--,R&&!(eA<0)&&R.target||(eA=0)},eM=function(R){return null==eP&&(eP="hidden"==getCSS(W.body,"visibility")),eP||!("hidden"==getCSS(R.parentNode,"visibility")&&"hidden"==getCSS(R,"visibility"))},eL=function(R,G){var J,et=R,er=eM(R);for(ew-=G,eO+=G,eS-=G,eT+=G;er&&(et=et.offsetParent)&&et!=W.body&&et!=e0;)(er=(getCSS(et,"opacity")||1)>0)&&"visible"!=getCSS(et,"overflow")&&(J=et.getBoundingClientRect(),er=eT>J.left&&eS<J.right&&eO>J.top-1&&ew<J.bottom+1);return er},J=eR=function(){var R,G,J,et,er,en,ei,eo,es,ec,el,eu,ed=eQ.elements;if((ev=eJ.loadMode)&&eA<8&&(R=ed.length)){for(G=0,eD++;G<R;G++)if(ed[G]&&!ed[G]._lazyRace){if(!eE||eQ.prematureUnveil&&eQ.prematureUnveil(ed[G])){eq(ed[G]);continue}if((eo=ed[G][e3]("data-expand"))&&(en=1*eo)||(en=ej),ec||(ec=!eJ.expand||eJ.expand<1?e0.clientHeight>500&&e0.clientWidth>500?500:370:eJ.expand,eQ._defEx=ec,el=ec*eJ.expFactor,eu=eJ.hFac,eP=null,ej<el&&eA<1&&eD>2&&ev>2&&!W.hidden?(ej=el,eD=0):ej=ev>1&&eD>1&&eA<6?ec:0),es!==en&&(e_=innerWidth+en*eu,ex=innerHeight+en,ei=-1*en,es=en),(eO=(J=ed[G].getBoundingClientRect()).bottom)>=ei&&(ew=J.top)<=ex&&(eT=J.right)>=ei*eu&&(eS=J.left)<=e_&&(eO||eT||eS||ew)&&(eJ.loadHidden||eM(ed[G]))&&(em&&eA<3&&!eo&&(ev<3||eD<4)||eL(ed[G],en))){if(eq(ed[G]),er=!0,eA>9)break}else!er&&em&&!et&&eA<4&&eD<4&&ev>2&&(eg[0]||eJ.preloadAfterLoad)&&(eg[0]||!eo&&(eO||eT||eS||ew||"auto"!=ed[G][e3](eJ.sizesAttr)))&&(et=eg[0]||ed[G])}et&&!er&&eq(et)}},er=0,en=eJ.throttleDelay,ei=eJ.ricTimeout,eo=function(){et=!1,er=G.now(),J()},es=e6&&ei>49?function(){e6(eo,{timeout:ei}),ei!==eJ.ricTimeout&&(ei=eJ.ricTimeout)}:rAFIt(function(){e4(eo)},!0),eN=function(R){var W;(R=!0===R)&&(ei=33),et||(et=!0,(W=en-(G.now()-er))<0&&(W=0),R||W<9?es():e4(es,W))},eZ=rAFIt(eB=function(R){var W=R.target;if(W._lazyCache){delete W._lazyCache;return}eI(R),addClass(W,eJ.loadedClass),removeClass(W,eJ.loadingClass),addRemoveLoadEvents(W,eU),triggerEvent(W,"lazyloaded")}),eU=function(R){eZ({target:R.target})},eF=function(R,W){var G=R.getAttribute("data-load-mode")||eJ.iframeLoadMode;0==G?R.contentWindow.location.replace(W):1==G&&(R.src=W)},ez=function(R){var W,G=R[e3](eJ.srcsetAttr);(W=eJ.customMedia[R[e3]("data-media")||R[e3]("media")])&&R.setAttribute("media",W),G&&R.setAttribute("srcset",G)},eH=rAFIt(function(R,W,G,J,et){var er,en,ei,eo,es,ec;!(es=triggerEvent(R,"lazybeforeunveil",W)).defaultPrevented&&(J&&(G?addClass(R,eJ.autosizesClass):R.setAttribute("sizes",J)),en=R[e3](eJ.srcsetAttr),er=R[e3](eJ.srcAttr),et&&(eo=(ei=R.parentNode)&&e7.test(ei.nodeName||"")),ec=W.firesLoad||"src"in R&&(en||er||eo),es={target:R},addClass(R,eJ.loadingClass),ec&&(clearTimeout(ey),ey=e4(eI,2500),addRemoveLoadEvents(R,eU,!0)),eo&&tr.call(ei.getElementsByTagName("source"),ez),en?R.setAttribute("srcset",en):er&&!eo&&(ek.test(R.nodeName)?eF(R,er):R.src=er),et&&(en||eo)&&updatePolyfill(R,{src:er})),R._lazyRace&&delete R._lazyRace,removeClass(R,eJ.lazyClass),tn(function(){var W=R.complete&&R.naturalWidth>1;(!ec||W)&&(W&&addClass(R,eJ.fastLoadedClass),eB(es),R._lazyCache=!0,e4(function(){"_lazyCache"in R&&delete R._lazyCache},9)),"lazy"==R.loading&&eA--},!0)}),eq=function(R){if(!R._lazyRace){var W,G=eC.test(R.nodeName),J=G&&(R[e3](eJ.sizesAttr)||R[e3]("sizes")),et="auto"==J;(et||!em)&&G&&(R[e3]("src")||R.srcset)&&!R.complete&&!hasClass(R,eJ.errorClass)&&hasClass(R,eJ.lazyClass)||(W=triggerEvent(R,"lazyunveilread").detail,et&&to.updateElem(R,!0,R.offsetWidth),R._lazyRace=!0,eA++,eH(R,W,et,J,G))}},eV=debounce(function(){eJ.loadMode=3,eN()}),eW=function(){3==eJ.loadMode&&(eJ.loadMode=2),eV()},eG=function(){if(!em){if(G.now()-eb<999){e4(eG,999);return}em=!0,eJ.loadMode=3,eN(),e5("scroll",eW,!0)}},{_:function(){eb=G.now(),eQ.elements=W.getElementsByClassName(eJ.lazyClass),eg=W.getElementsByClassName(eJ.lazyClass+" "+eJ.preloadClass),e5("scroll",eN,!0),e5("resize",eN,!0),e5("pageshow",function(R){if(R.persisted){var G=W.querySelectorAll("."+eJ.loadingClass);G.length&&G.forEach&&e8(function(){G.forEach(function(R){R.complete&&eq(R)})})}}),R.MutationObserver?new MutationObserver(eN).observe(e0,{childList:!0,subtree:!0,attributes:!0}):(e0[e2]("DOMNodeInserted",eN,!0),e0[e2]("DOMAttrModified",eN,!0),setInterval(eN,999)),e5("hashchange",eN,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(R){W[e2](R,eN,!0)}),/d$|^c/.test(W.readyState)?eG():(e5("load",eG),W[e2]("DOMContentLoaded",eN),e4(eG,2e4)),eQ.elements.length?(eR(),tn._lsFlush()):eN()},checkElems:eN,unveil:eq,_aLSL:eW}),to=(eK=rAFIt(function(R,W,G,J){var et,er,en;if(R._lazysizesWidth=J,J+="px",R.setAttribute("sizes",J),e7.test(W.nodeName||""))for(er=0,en=(et=W.getElementsByTagName("source")).length;er<en;er++)et[er].setAttribute("sizes",J);G.detail.dataAttr||updatePolyfill(R,G.detail)}),eY=function(R,W,G){var J,et=R.parentNode;et&&(G=getWidth(R,et,G),!(J=triggerEvent(R,"lazybeforesizes",{width:G,dataAttr:!!W})).defaultPrevented&&(G=J.detail.width)&&G!==R._lazysizesWidth&&eK(R,et,J,G))},{_:function(){e$=W.getElementsByClassName(eJ.autosizesClass),e5("resize",eX)},checkElems:eX=debounce(function(){var R,W=e$.length;if(W)for(R=0;R<W;R++)eY(e$[R])}),updateElem:eY}),init=function(){!init.i&&W.getElementsByClassName&&(init.i=!0,to._(),ti._())};return e4(function(){eJ.init&&init()}),eQ={cfg:eJ,autoSizer:to,loader:ti,init:init,uP:updatePolyfill,aC:addClass,rC:removeClass,hC:hasClass,fire:triggerEvent,gW:getWidth,rAF:tn}}(W="undefined"!=typeof window?window:{},W.document,Date),W.lazySizes=G,R.exports&&(R.exports=G)},85507:function(R,W,G){var J,et,er,en,ei;en="undefined"!=typeof window?window:0,ei=function(R,W,G,J){"use strict";var et,er=W.createElement("a").style,en="objectFit"in er,ei=/object-fit["']*\s*:\s*["']*(contain|cover)/,eo=/object-position["']*\s*:\s*["']*(.+?)(?=($|,|'|"|;))/,es="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ec=/\(|\)|'/,el={center:"center","50% 50%":"center"};if(!en||!(en&&"objectPosition"in er)){var onRead=function(R){if(R.detail.instance==G){var J,er,eu,ed,ep,ef,eh,eg,em,ey,ev=R.target,eb=((eu=(er=(J=(getComputedStyle(ev,null)||{}).fontFamily||"").match(ei)||"")&&J.match(eo)||"")&&(eu=eu[1]),{fit:er&&er[1]||"",position:el[eu]||eu||"center"});return!!eb.fit&&(!en||"center"!=eb.position)&&(eg=G.cfg,em=function(){var R=ev.currentSrc||ev.src;R&&ep!==R&&(ep=R,eh.backgroundImage="url("+(ec.test(R)?JSON.stringify(R):R)+")",ed||(ed=!0,G.rC(ef,eg.loadingClass),G.aC(ef,eg.loadedClass)))},ey=function(){G.rAF(em)},ev._lazysizesParentFit=eb.fit,ev.addEventListener("lazyloaded",ey,!0),ev.addEventListener("load",ey,!0),G.rAF(function(){var R,J,er=ev,en=ev.parentNode;"PICTURE"==en.nodeName.toUpperCase()&&(er=en,en=en.parentNode),(J=(R=er).previousElementSibling)&&G.hC(J,et)&&(J.parentNode.removeChild(J),R.style.position=J.getAttribute("data-position")||"",R.style.visibility=J.getAttribute("data-visibility")||""),et||function(){if(!et){var R=W.createElement("style");et=G.cfg.objectFitClass||"lazysizes-display-clone",W.querySelector("head").appendChild(R)}}(),eh=(ef=ev.cloneNode(!1)).style,ef.addEventListener("load",function(){var R=ef.currentSrc||ef.src;R&&R!=es&&(ef.src=es,ef.srcset="")}),G.rC(ef,eg.loadedClass),G.rC(ef,eg.lazyClass),G.rC(ef,eg.autosizesClass),G.aC(ef,eg.loadingClass),G.aC(ef,et),["data-parent-fit","data-parent-container","data-object-fit-polyfilled",eg.srcsetAttr,eg.srcAttr].forEach(function(R){ef.removeAttribute(R)}),ef.src=es,ef.srcset="",eh.backgroundRepeat="no-repeat",eh.backgroundPosition=eb.position,eh.backgroundSize=eb.fit,ef.setAttribute("data-position",er.style.position),ef.setAttribute("data-visibility",er.style.visibility),er.style.visibility="hidden",er.style.position="absolute",ev.setAttribute("data-parent-fit",eb.fit),ev.setAttribute("data-parent-container","prev"),ev.setAttribute("data-object-fit-polyfilled",""),ev._objectFitPolyfilledDisplay=ef,en.insertBefore(ef,er),ev._lazysizesParentFit&&delete ev._lazysizesParentFit,ev.complete&&em()}),!0)}};R.addEventListener("lazybeforesizes",function(R){if(R.detail.instance==G){var W=R.target;null==W.getAttribute("data-object-fit-polyfilled")||W._objectFitPolyfilledDisplay||onRead(R)||G.rAF(function(){W.removeAttribute("data-object-fit-polyfilled")})}}),R.addEventListener("lazyunveilread",onRead,!0),J&&J.detail&&onRead(J)}},en&&(ei=ei.bind(null,en,en.document),R.exports?ei(G(77090)):(et=[G(77090)],void 0!==(er="function"==typeof(J=ei)?J.apply(W,et):J)&&(R.exports=er)))},48792:function(R,W,G){var J,et,er,en,ei,eo;en="undefined"!=typeof window?window:0,ei=function(R,W,G){"use strict";var J,et,er,en,ei,eo;R.addEventListener&&(J=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,et=/parent-fit["']*\s*:\s*["']*(contain|cover|width)/,er=/parent-container["']*\s*:\s*["']*(.+?)(?=(\s|$|,|'|"|;))/,en=/^picture$/i,ei=G.cfg,eo={getParent:function(W,G){var J=W,et=W.parentNode;return(!G||"prev"==G)&&et&&en.test(et.nodeName||"")&&(et=et.parentNode),"self"!=G&&(J="prev"==G?W.previousElementSibling:G&&(et.closest||R.jQuery)&&(et.closest?et.closest(G):jQuery(et).closest(G)[0])||et),J},getFit:function(R){var W,G,J=getComputedStyle(R,null)||{},en=J.content||J.fontFamily,ei={fit:R._lazysizesParentFit||R.getAttribute("data-parent-fit")};return!ei.fit&&en&&(W=en.match(et))&&(ei.fit=W[1]),ei.fit?(!(G=R._lazysizesParentContainer||R.getAttribute("data-parent-container"))&&en&&(W=en.match(er))&&(G=W[1]),ei.parent=eo.getParent(R,G)):ei.fit=J.objectFit,ei},getImageRatio:function(W){for(var G,et,er,eo,es,ec,el=W.parentNode,eu=el&&en.test(el.nodeName||"")?el.querySelectorAll("source, img"):[W],ed=0;ed<eu.length;ed++)if(G=(W=eu[ed]).getAttribute(ei.srcsetAttr)||W.getAttribute("srcset")||W.getAttribute("data-pfsrcset")||W.getAttribute("data-risrcset")||"",et=W._lsMedia||W.getAttribute("media"),et=ei.customMedia[W.getAttribute("data-media")||et]||et,G&&(!et||(R.matchMedia&&matchMedia(et)||{}).matches)){(er=parseFloat(W.getAttribute("data-aspectratio")))||(ec=(eo=G.match(J))?"w"==eo[2]?(es=eo[1],eo[3]):(es=eo[3],eo[1]):(es=W.getAttribute("width"),W.getAttribute("height")),er=es/ec);break}return er},calculateSize:function(R,W){var G,J,et,er=this.getFit(R),en=er.fit,ei=er.parent;return"width"==en||("contain"==en||"cover"==en)&&(J=this.getImageRatio(R))?(ei?W=ei.clientWidth:ei=R,et=W,"width"==en?et=W:(G=W/ei.clientHeight)&&("cover"==en&&G<J||"contain"==en&&J<G)&&(et=W*(J/G)),et):W}},G.parentFit=eo,W.addEventListener("lazybeforesizes",function(R){var W;R.defaultPrevented||R.detail.instance!=G||(W=R.target,R.detail.width=eo.calculateSize(W,R.detail.width))}))},en&&(eo=function(){ei(en.lazySizes),en.removeEventListener("lazyunveilread",eo,!0)},ei=ei.bind(null,en,en.document),R.exports?ei(G(77090)):(et=[G(77090)],void 0!==(er="function"==typeof(J=ei)?J.apply(W,et):J)&&(R.exports=er)))},23501:function(R,W,G){var J,et,er,en,ei;en="undefined"!=typeof window?window:0,ei=function(R,W,G){"use strict";var J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef,eh,eg,em,ey,ev,eb=G.cfg,e_=W.createElement("img"),ex="sizes"in e_&&"srcset"in e_,ew=/\s+\d+h/g,eS=(J=/\s+(\d+)(w|h)\s+(\d+)(w|h)/,et=Array.prototype.forEach,function(){var R=W.createElement("img"),removeHDescriptors=function(R){var W,G,et=R.getAttribute(eb.srcsetAttr);et&&(G=et.match(J))&&((W="w"==G[2]?G[1]/G[3]:G[3]/G[1])&&R.setAttribute("data-aspectratio",W),R.setAttribute(eb.srcsetAttr,et.replace(ew,"")))},handler=function(R){if(R.detail.instance==G){var W=R.target.parentNode;W&&"PICTURE"==W.nodeName&&et.call(W.getElementsByTagName("source"),removeHDescriptors),removeHDescriptors(R.target)}},test=function(){R.currentSrc&&W.removeEventListener("lazybeforeunveil",handler)};W.addEventListener("lazybeforeunveil",handler),R.onload=test,R.onerror=test,R.srcset="data:,a 1w 1h",R.complete&&test()});if(eb.supportsType||(eb.supportsType=function(R){return!R}),R.HTMLPictureElement&&ex){!G.hasHDescriptorFix&&W.msElementsFromPoint&&(G.hasHDescriptorFix=!0,eS());return}!R.picturefill&&!eb.pf&&(eb.pf=function(W){var G,J;if(!R.picturefill)for(G=0,J=W.elements.length;G<J;G++)ev(W.elements[G])},er=function(R,W){return R.w-W.w},en=/^\s*\d+\.*\d*px\s*$/,ei=function(R){for(var W,G,J=R.length,et=R[J-1],er=0;er<J;er++)if((et=R[er]).d=et.w/R.w,et.d>=R.d){!et.cached&&(W=R[er-1])&&W.d>R.d-.13*Math.pow(R.d,2.2)&&(G=Math.pow(W.d-.6,1.6),W.cached&&(W.d+=.15*G),W.d+(et.d-R.d)*G>R.d&&(et=W));break}return et},es=/(([^,\s].[^\s]+)\s+(\d+)w)/g,ec=/\s/,el=function(R,W,G,J){eo.push({c:W,u:G,w:1*J})},eu=function(R){return eo=[],(R=R.trim()).replace(ew,"").replace(es,el),eo.length||!R||ec.test(R)||eo.push({c:R,u:R,w:99}),eo},ed=function(){var R,G,J;ed.init||(ed.init=!0,addEventListener("resize",(G=W.getElementsByClassName("lazymatchmedia"),J=function(){var R,W;for(R=0,W=G.length;R<W;R++)ev(G[R])},function(){clearTimeout(R),R=setTimeout(J,66)})))},ep=function(W,J){var et,er=W.getAttribute("srcset")||W.getAttribute(eb.srcsetAttr);!er&&J&&(er=W._lazypolyfill?W._lazypolyfill._set:W.getAttribute(eb.srcAttr)||W.getAttribute("src")),W._lazypolyfill&&W._lazypolyfill._set==er||(et=eu(er||""),J&&W.parentNode&&(et.isPicture="PICTURE"==W.parentNode.nodeName.toUpperCase(),et.isPicture&&R.matchMedia&&(G.aC(W,"lazymatchmedia"),ed())),et._set=er,Object.defineProperty(W,"_lazypolyfill",{value:et,writable:!0}))},ef=function(W){var J=R.devicePixelRatio||1;return Math.min(G.getX&&G.getX(W)||J,2.5,J)},eh=function(W){return R.matchMedia?(eh=function(R){return!R||(matchMedia(R)||{}).matches})(W):!W},eg=function(R){var W,J,et,eo,es,ec,el;if(ep(eo=R,!0),(es=eo._lazypolyfill).isPicture){for(J=0,et=(W=R.parentNode.getElementsByTagName("source")).length;J<et;J++)if(eb.supportsType(W[J].getAttribute("type"),R)&&eh(W[J].getAttribute("media"))){ep(eo=W[J]),es=eo._lazypolyfill;break}}return es.length>1?(el=eo.getAttribute("sizes")||"",el=en.test(el)&&parseInt(el,10)||G.gW(R,R.parentNode),es.d=ef(R),es.src&&es.w&&!(es.w<el)?ec=es.src:(es.w=el,ec=ei(es.sort(er)),es.src=ec)):ec=es[0],ec},(em=function(R){if(!ex||!R.parentNode||"PICTURE"==R.parentNode.nodeName.toUpperCase()){var W=eg(R);W&&W.u&&R._lazypolyfill.cur!=W.u&&(R._lazypolyfill.cur=W.u,W.cached=!0,R.setAttribute(eb.srcAttr,W.u),R.setAttribute("src",W.u))}}).parse=eu,ev=em,eb.loadedClass&&eb.loadingClass&&(ey=[],['img[sizes$="px"][srcset].',"picture > img:not([srcset])."].forEach(function(R){ey.push(R+eb.loadedClass),ey.push(R+eb.loadingClass)}),eb.pf({elements:W.querySelectorAll(ey.join(", "))})))},en&&(ei=ei.bind(null,en,en.document),R.exports?ei(G(77090)):(et=[G(77090)],void 0!==(er="function"==typeof(J=ei)?J.apply(W,et):J)&&(R.exports=er)))},8146:function(R){var W,G,J=Object.prototype,et=Function.prototype.toString,er=J.hasOwnProperty,en=et.call(Object),ei=J.toString,eo=(W=Object.getPrototypeOf,G=Object,function(R){return W(G(R))});R.exports=function(R){if(!(R&&"object"==typeof R)||"[object Object]"!=ei.call(R)||function(R){var W=!1;if(null!=R&&"function"!=typeof R.toString)try{W=!!(R+"")}catch(R){}return W}(R))return!1;var W=eo(R);if(null===W)return!0;var G=er.call(W,"constructor")&&W.constructor;return"function"==typeof G&&G instanceof G&&et.call(G)==en}},18552:function(R,W,G){var J=G(10852)(G(55639),"DataView");R.exports=J},1989:function(R,W,G){var J=G(51789),et=G(80401),er=G(57667),en=G(21327),ei=G(81866);function Hash(R){var W=-1,G=null==R?0:R.length;for(this.clear();++W<G;){var J=R[W];this.set(J[0],J[1])}}Hash.prototype.clear=J,Hash.prototype.delete=et,Hash.prototype.get=er,Hash.prototype.has=en,Hash.prototype.set=ei,R.exports=Hash},38407:function(R,W,G){var J=G(27040),et=G(14125),er=G(82117),en=G(67518),ei=G(54705);function ListCache(R){var W=-1,G=null==R?0:R.length;for(this.clear();++W<G;){var J=R[W];this.set(J[0],J[1])}}ListCache.prototype.clear=J,ListCache.prototype.delete=et,ListCache.prototype.get=er,ListCache.prototype.has=en,ListCache.prototype.set=ei,R.exports=ListCache},57071:function(R,W,G){var J=G(10852)(G(55639),"Map");R.exports=J},83369:function(R,W,G){var J=G(24785),et=G(11285),er=G(96e3),en=G(49916),ei=G(95265);function MapCache(R){var W=-1,G=null==R?0:R.length;for(this.clear();++W<G;){var J=R[W];this.set(J[0],J[1])}}MapCache.prototype.clear=J,MapCache.prototype.delete=et,MapCache.prototype.get=er,MapCache.prototype.has=en,MapCache.prototype.set=ei,R.exports=MapCache},53818:function(R,W,G){var J=G(10852)(G(55639),"Promise");R.exports=J},58525:function(R,W,G){var J=G(10852)(G(55639),"Set");R.exports=J},88668:function(R,W,G){var J=G(83369),et=G(90619),er=G(72385);function SetCache(R){var W=-1,G=null==R?0:R.length;for(this.__data__=new J;++W<G;)this.add(R[W])}SetCache.prototype.add=SetCache.prototype.push=et,SetCache.prototype.has=er,R.exports=SetCache},46384:function(R,W,G){var J=G(38407),et=G(37465),er=G(63779),en=G(67599),ei=G(44758),eo=G(34309);function Stack(R){var W=this.__data__=new J(R);this.size=W.size}Stack.prototype.clear=et,Stack.prototype.delete=er,Stack.prototype.get=en,Stack.prototype.has=ei,Stack.prototype.set=eo,R.exports=Stack},62705:function(R,W,G){var J=G(55639).Symbol;R.exports=J},11149:function(R,W,G){var J=G(55639).Uint8Array;R.exports=J},70577:function(R,W,G){var J=G(10852)(G(55639),"WeakMap");R.exports=J},96874:function(R){R.exports=function(R,W,G){switch(G.length){case 0:return R.call(W);case 1:return R.call(W,G[0]);case 2:return R.call(W,G[0],G[1]);case 3:return R.call(W,G[0],G[1],G[2])}return R.apply(W,G)}},66193:function(R){R.exports=function(R,W){for(var G=-1,J=null==R?0:R.length;++G<J;)if(!W(R[G],G,R))return!1;return!0}},34963:function(R){R.exports=function(R,W){for(var G=-1,J=null==R?0:R.length,et=0,er=[];++G<J;){var en=R[G];W(en,G,R)&&(er[et++]=en)}return er}},47443:function(R,W,G){var J=G(42118);R.exports=function(R,W){return!!(null==R?0:R.length)&&J(R,W,0)>-1}},1196:function(R){R.exports=function(R,W,G){for(var J=-1,et=null==R?0:R.length;++J<et;)if(G(W,R[J]))return!0;return!1}},14636:function(R,W,G){var J=G(22545),et=G(35694),er=G(1469),en=G(44144),ei=G(65776),eo=G(36719),es=Object.prototype.hasOwnProperty;R.exports=function(R,W){var G=er(R),ec=!G&&et(R),el=!G&&!ec&&en(R),eu=!G&&!ec&&!el&&eo(R),ed=G||ec||el||eu,ep=ed?J(R.length,String):[],ef=ep.length;for(var eh in R)(W||es.call(R,eh))&&!(ed&&("length"==eh||el&&("offset"==eh||"parent"==eh)||eu&&("buffer"==eh||"byteLength"==eh||"byteOffset"==eh)||ei(eh,ef)))&&ep.push(eh);return ep}},29932:function(R){R.exports=function(R,W){for(var G=-1,J=null==R?0:R.length,et=Array(J);++G<J;)et[G]=W(R[G],G,R);return et}},62488:function(R){R.exports=function(R,W){for(var G=-1,J=W.length,et=R.length;++G<J;)R[et+G]=W[G];return R}},82908:function(R){R.exports=function(R,W){for(var G=-1,J=null==R?0:R.length;++G<J;)if(W(R[G],G,R))return!0;return!1}},44286:function(R){R.exports=function(R){return R.split("")}},18470:function(R,W,G){var J=G(77813);R.exports=function(R,W){for(var G=R.length;G--;)if(J(R[G][0],W))return G;return -1}},89465:function(R,W,G){var J=G(38777);R.exports=function(R,W,G){"__proto__"==W&&J?J(R,W,{configurable:!0,enumerable:!0,value:G,writable:!0}):R[W]=G}},89881:function(R,W,G){var J=G(47816),et=G(99291)(J);R.exports=et},93239:function(R,W,G){var J=G(89881);R.exports=function(R,W){var G=!0;return J(R,function(R,J,et){return G=!!W(R,J,et)}),G}},56029:function(R,W,G){var J=G(33448);R.exports=function(R,W,G){for(var et=-1,er=R.length;++et<er;){var en=R[et],ei=W(en);if(null!=ei&&(void 0===eo?ei==ei&&!J(ei):G(ei,eo)))var eo=ei,es=en}return es}},41848:function(R){R.exports=function(R,W,G,J){for(var et=R.length,er=G+(J?1:-1);J?er--:++er<et;)if(W(R[er],er,R))return er;return -1}},21078:function(R,W,G){var J=G(62488),et=G(37285);R.exports=function baseFlatten(R,W,G,er,en){var ei=-1,eo=R.length;for(G||(G=et),en||(en=[]);++ei<eo;){var es=R[ei];W>0&&G(es)?W>1?baseFlatten(es,W-1,G,er,en):J(en,es):er||(en[en.length]=es)}return en}},28483:function(R,W,G){var J=G(25063)();R.exports=J},47816:function(R,W,G){var J=G(28483),et=G(3674);R.exports=function(R,W){return R&&J(R,W,et)}},97786:function(R,W,G){var J=G(71811),et=G(40327);R.exports=function(R,W){W=J(W,R);for(var G=0,er=W.length;null!=R&&G<er;)R=R[et(W[G++])];return G&&G==er?R:void 0}},68866:function(R,W,G){var J=G(62488),et=G(1469);R.exports=function(R,W,G){var er=W(R);return et(R)?er:J(er,G(R))}},44239:function(R,W,G){var J=G(62705),et=G(89607),er=G(2333),en=J?J.toStringTag:void 0;R.exports=function(R){return null==R?void 0===R?"[object Undefined]":"[object Null]":en&&en in Object(R)?et(R):er(R)}},53325:function(R){R.exports=function(R,W){return R>W}},13:function(R){R.exports=function(R,W){return null!=R&&W in Object(R)}},42118:function(R,W,G){var J=G(41848),et=G(62722),er=G(42351);R.exports=function(R,W,G){return W==W?er(R,W,G):J(R,et,G)}},9454:function(R,W,G){var J=G(44239),et=G(37005);R.exports=function(R){return et(R)&&"[object Arguments]"==J(R)}},90939:function(R,W,G){var J=G(2492),et=G(37005);R.exports=function baseIsEqual(R,W,G,er,en){return R===W||(null!=R&&null!=W&&(et(R)||et(W))?J(R,W,G,er,baseIsEqual,en):R!=R&&W!=W)}},2492:function(R,W,G){var J=G(46384),et=G(67114),er=G(18351),en=G(16096),ei=G(64160),eo=G(1469),es=G(44144),ec=G(36719),el="[object Arguments]",eu="[object Array]",ed="[object Object]",ep=Object.prototype.hasOwnProperty;R.exports=function(R,W,G,ef,eh,eg){var em=eo(R),ey=eo(W),ev=em?eu:ei(R),eb=ey?eu:ei(W);ev=ev==el?ed:ev,eb=eb==el?ed:eb;var e_=ev==ed,ex=eb==ed,ew=ev==eb;if(ew&&es(R)){if(!es(W))return!1;em=!0,e_=!1}if(ew&&!e_)return eg||(eg=new J),em||ec(R)?et(R,W,G,ef,eh,eg):er(R,W,ev,G,ef,eh,eg);if(!(1&G)){var eS=e_&&ep.call(R,"__wrapped__"),eT=ex&&ep.call(W,"__wrapped__");if(eS||eT){var eO=eS?R.value():R,eP=eT?W.value():W;return eg||(eg=new J),eh(eO,eP,G,ef,eg)}}return!!ew&&(eg||(eg=new J),en(R,W,G,ef,eh,eg))}},2958:function(R,W,G){var J=G(46384),et=G(90939);R.exports=function(R,W,G,er){var en=G.length,ei=en,eo=!er;if(null==R)return!ei;for(R=Object(R);en--;){var es=G[en];if(eo&&es[2]?es[1]!==R[es[0]]:!(es[0]in R))return!1}for(;++en<ei;){var ec=(es=G[en])[0],el=R[ec],eu=es[1];if(eo&&es[2]){if(void 0===el&&!(ec in R))return!1}else{var ed=new J;if(er)var ep=er(el,eu,ec,R,W,ed);if(!(void 0===ep?et(eu,el,3,er,ed):ep))return!1}}return!0}},62722:function(R){R.exports=function(R){return R!=R}},28458:function(R,W,G){var J=G(23560),et=G(15346),er=G(13218),en=G(80346),ei=/^\[object .+?Constructor\]$/,eo=Object.prototype,es=Function.prototype.toString,ec=eo.hasOwnProperty,el=RegExp("^"+es.call(ec).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");R.exports=function(R){return!(!er(R)||et(R))&&(J(R)?el:ei).test(en(R))}},38749:function(R,W,G){var J=G(44239),et=G(41780),er=G(37005),en={};en["[object Float32Array]"]=en["[object Float64Array]"]=en["[object Int8Array]"]=en["[object Int16Array]"]=en["[object Int32Array]"]=en["[object Uint8Array]"]=en["[object Uint8ClampedArray]"]=en["[object Uint16Array]"]=en["[object Uint32Array]"]=!0,en["[object Arguments]"]=en["[object Array]"]=en["[object ArrayBuffer]"]=en["[object Boolean]"]=en["[object DataView]"]=en["[object Date]"]=en["[object Error]"]=en["[object Function]"]=en["[object Map]"]=en["[object Number]"]=en["[object Object]"]=en["[object RegExp]"]=en["[object Set]"]=en["[object String]"]=en["[object WeakMap]"]=!1,R.exports=function(R){return er(R)&&et(R.length)&&!!en[J(R)]}},67206:function(R,W,G){var J=G(91573),et=G(16432),er=G(6557),en=G(1469),ei=G(39601);R.exports=function(R){return"function"==typeof R?R:null==R?er:"object"==typeof R?en(R)?et(R[0],R[1]):J(R):ei(R)}},280:function(R,W,G){var J=G(25726),et=G(86916),er=Object.prototype.hasOwnProperty;R.exports=function(R){if(!J(R))return et(R);var W=[];for(var G in Object(R))er.call(R,G)&&"constructor"!=G&&W.push(G);return W}},70433:function(R){R.exports=function(R,W){return R<W}},69199:function(R,W,G){var J=G(89881),et=G(98612);R.exports=function(R,W){var G=-1,er=et(R)?Array(R.length):[];return J(R,function(R,J,et){er[++G]=W(R,J,et)}),er}},91573:function(R,W,G){var J=G(2958),et=G(1499),er=G(26366);R.exports=function(R){var W=et(R);return 1==W.length&&W[0][2]?er(W[0][0],W[0][1]):function(G){return G===R||J(G,R,W)}}},16432:function(R,W,G){var J=G(90939),et=G(27361),er=G(79095),en=G(15403),ei=G(89162),eo=G(26366),es=G(40327);R.exports=function(R,W){return en(R)&&ei(W)?eo(es(R),W):function(G){var en=et(G,R);return void 0===en&&en===W?er(G,R):J(W,en,3)}}},82689:function(R,W,G){var J=G(29932),et=G(97786),er=G(67206),en=G(69199),ei=G(71131),eo=G(7518),es=G(85022),ec=G(6557),el=G(1469);R.exports=function(R,W,G){W=W.length?J(W,function(R){return el(R)?function(W){return et(W,1===R.length?R[0]:R)}:R}):[ec];var eu=-1;return W=J(W,eo(er)),ei(en(R,function(R,G,et){return{criteria:J(W,function(W){return W(R)}),index:++eu,value:R}}),function(R,W){return es(R,W,G)})}},40371:function(R){R.exports=function(R){return function(W){return null==W?void 0:W[R]}}},79152:function(R,W,G){var J=G(97786);R.exports=function(R){return function(W){return J(W,R)}}},40098:function(R){var W=Math.ceil,G=Math.max;R.exports=function(R,J,et,er){for(var en=-1,ei=G(W((J-R)/(et||1)),0),eo=Array(ei);ei--;)eo[er?ei:++en]=R,R+=et;return eo}},5976:function(R,W,G){var J=G(6557),et=G(45357),er=G(30061);R.exports=function(R,W){return er(et(R,W,J),R+"")}},56560:function(R,W,G){var J=G(75703),et=G(38777),er=G(6557),en=et?function(R,W){return et(R,"toString",{configurable:!0,enumerable:!1,value:J(W),writable:!0})}:er;R.exports=en},14259:function(R){R.exports=function(R,W,G){var J=-1,et=R.length;W<0&&(W=-W>et?0:et+W),(G=G>et?et:G)<0&&(G+=et),et=W>G?0:G-W>>>0,W>>>=0;for(var er=Array(et);++J<et;)er[J]=R[J+W];return er}},5076:function(R,W,G){var J=G(89881);R.exports=function(R,W){var G;return J(R,function(R,J,et){return!(G=W(R,J,et))}),!!G}},71131:function(R){R.exports=function(R,W){var G=R.length;for(R.sort(W);G--;)R[G]=R[G].value;return R}},22545:function(R){R.exports=function(R,W){for(var G=-1,J=Array(R);++G<R;)J[G]=W(G);return J}},80531:function(R,W,G){var J=G(62705),et=G(29932),er=G(1469),en=G(33448),ei=1/0,eo=J?J.prototype:void 0,es=eo?eo.toString:void 0;R.exports=function baseToString(R){if("string"==typeof R)return R;if(er(R))return et(R,baseToString)+"";if(en(R))return es?es.call(R):"";var W=R+"";return"0"==W&&1/R==-ei?"-0":W}},27561:function(R,W,G){var J=G(67990),et=/^\s+/;R.exports=function(R){return R?R.slice(0,J(R)+1).replace(et,""):R}},7518:function(R){R.exports=function(R){return function(W){return R(W)}}},45652:function(R,W,G){var J=G(88668),et=G(47443),er=G(1196),en=G(74757),ei=G(23593),eo=G(21814);R.exports=function(R,W,G){var es=-1,ec=et,el=R.length,eu=!0,ed=[],ep=ed;if(G)eu=!1,ec=er;else if(el>=200){var ef=W?null:ei(R);if(ef)return eo(ef);eu=!1,ec=en,ep=new J}else ep=W?[]:ed;t:for(;++es<el;){var eh=R[es],eg=W?W(eh):eh;if(eh=G||0!==eh?eh:0,eu&&eg==eg){for(var em=ep.length;em--;)if(ep[em]===eg)continue t;W&&ep.push(eg),ed.push(eh)}else ec(ep,eg,G)||(ep!==ed&&ep.push(eg),ed.push(eh))}return ed}},74757:function(R){R.exports=function(R,W){return R.has(W)}},71811:function(R,W,G){var J=G(1469),et=G(15403),er=G(55514),en=G(79833);R.exports=function(R,W){return J(R)?R:et(R,W)?[R]:er(en(R))}},40180:function(R,W,G){var J=G(14259);R.exports=function(R,W,G){var et=R.length;return G=void 0===G?et:G,!W&&G>=et?R:J(R,W,G)}},26393:function(R,W,G){var J=G(33448);R.exports=function(R,W){if(R!==W){var G=void 0!==R,et=null===R,er=R==R,en=J(R),ei=void 0!==W,eo=null===W,es=W==W,ec=J(W);if(!eo&&!ec&&!en&&R>W||en&&ei&&es&&!eo&&!ec||et&&ei&&es||!G&&es||!er)return 1;if(!et&&!en&&!ec&&R<W||ec&&G&&er&&!et&&!en||eo&&G&&er||!ei&&er||!es)return -1}return 0}},85022:function(R,W,G){var J=G(26393);R.exports=function(R,W,G){for(var et=-1,er=R.criteria,en=W.criteria,ei=er.length,eo=G.length;++et<ei;){var es=J(er[et],en[et]);if(es){if(et>=eo)return es;return es*("desc"==G[et]?-1:1)}}return R.index-W.index}},14429:function(R,W,G){var J=G(55639)["__core-js_shared__"];R.exports=J},99291:function(R,W,G){var J=G(98612);R.exports=function(R,W){return function(G,et){if(null==G)return G;if(!J(G))return R(G,et);for(var er=G.length,en=W?er:-1,ei=Object(G);(W?en--:++en<er)&&!1!==et(ei[en],en,ei););return G}}},25063:function(R){R.exports=function(R){return function(W,G,J){for(var et=-1,er=Object(W),en=J(W),ei=en.length;ei--;){var eo=en[R?ei:++et];if(!1===G(er[eo],eo,er))break}return W}}},98805:function(R,W,G){var J=G(40180),et=G(62689),er=G(83140),en=G(79833);R.exports=function(R){return function(W){var G=et(W=en(W))?er(W):void 0,ei=G?G[0]:W.charAt(0),eo=G?J(G,1).join(""):W.slice(1);return ei[R]()+eo}}},67740:function(R,W,G){var J=G(67206),et=G(98612),er=G(3674);R.exports=function(R){return function(W,G,en){var ei=Object(W);if(!et(W)){var eo=J(G,3);W=er(W),G=function(R){return eo(ei[R],R,ei)}}var es=R(W,G,en);return es>-1?ei[eo?W[es]:es]:void 0}}},47445:function(R,W,G){var J=G(40098),et=G(16612),er=G(18601);R.exports=function(R){return function(W,G,en){return en&&"number"!=typeof en&&et(W,G,en)&&(G=en=void 0),W=er(W),void 0===G?(G=W,W=0):G=er(G),en=void 0===en?W<G?1:-1:er(en),J(W,G,en,R)}}},23593:function(R,W,G){var J=G(58525),et=G(50308),er=G(21814),en=J&&1/er(new J([,-0]))[1]==1/0?function(R){return new J(R)}:et;R.exports=en},38777:function(R,W,G){var J=G(10852),et=function(){try{var R=J(Object,"defineProperty");return R({},"",{}),R}catch(R){}}();R.exports=et},67114:function(R,W,G){var J=G(88668),et=G(82908),er=G(74757);R.exports=function(R,W,G,en,ei,eo){var es=1&G,ec=R.length,el=W.length;if(ec!=el&&!(es&&el>ec))return!1;var eu=eo.get(R),ed=eo.get(W);if(eu&&ed)return eu==W&&ed==R;var ep=-1,ef=!0,eh=2&G?new J:void 0;for(eo.set(R,W),eo.set(W,R);++ep<ec;){var eg=R[ep],em=W[ep];if(en)var ey=es?en(em,eg,ep,W,R,eo):en(eg,em,ep,R,W,eo);if(void 0!==ey){if(ey)continue;ef=!1;break}if(eh){if(!et(W,function(R,W){if(!er(eh,W)&&(eg===R||ei(eg,R,G,en,eo)))return eh.push(W)})){ef=!1;break}}else if(!(eg===em||ei(eg,em,G,en,eo))){ef=!1;break}}return eo.delete(R),eo.delete(W),ef}},18351:function(R,W,G){var J=G(62705),et=G(11149),er=G(77813),en=G(67114),ei=G(68776),eo=G(21814),es=J?J.prototype:void 0,ec=es?es.valueOf:void 0;R.exports=function(R,W,G,J,es,el,eu){switch(G){case"[object DataView]":if(R.byteLength!=W.byteLength||R.byteOffset!=W.byteOffset)break;R=R.buffer,W=W.buffer;case"[object ArrayBuffer]":if(R.byteLength!=W.byteLength||!el(new et(R),new et(W)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return er(+R,+W);case"[object Error]":return R.name==W.name&&R.message==W.message;case"[object RegExp]":case"[object String]":return R==W+"";case"[object Map]":var ed=ei;case"[object Set]":var ep=1&J;if(ed||(ed=eo),R.size!=W.size&&!ep)break;var ef=eu.get(R);if(ef)return ef==W;J|=2,eu.set(R,W);var eh=en(ed(R),ed(W),J,es,el,eu);return eu.delete(R),eh;case"[object Symbol]":if(ec)return ec.call(R)==ec.call(W)}return!1}},16096:function(R,W,G){var J=G(58234),et=Object.prototype.hasOwnProperty;R.exports=function(R,W,G,er,en,ei){var eo=1&G,es=J(R),ec=es.length;if(ec!=J(W).length&&!eo)return!1;for(var el=ec;el--;){var eu=es[el];if(!(eo?eu in W:et.call(W,eu)))return!1}var ed=ei.get(R),ep=ei.get(W);if(ed&&ep)return ed==W&&ep==R;var ef=!0;ei.set(R,W),ei.set(W,R);for(var eh=eo;++el<ec;){var eg=R[eu=es[el]],em=W[eu];if(er)var ey=eo?er(em,eg,eu,W,R,ei):er(eg,em,eu,R,W,ei);if(!(void 0===ey?eg===em||en(eg,em,G,er,ei):ey)){ef=!1;break}eh||(eh="constructor"==eu)}if(ef&&!eh){var ev=R.constructor,eb=W.constructor;ev!=eb&&"constructor"in R&&"constructor"in W&&!("function"==typeof ev&&ev instanceof ev&&"function"==typeof eb&&eb instanceof eb)&&(ef=!1)}return ei.delete(R),ei.delete(W),ef}},31957:function(R,W,G){var J="object"==typeof G.g&&G.g&&G.g.Object===Object&&G.g;R.exports=J},58234:function(R,W,G){var J=G(68866),et=G(99551),er=G(3674);R.exports=function(R){return J(R,er,et)}},45050:function(R,W,G){var J=G(37019);R.exports=function(R,W){var G=R.__data__;return J(W)?G["string"==typeof W?"string":"hash"]:G.map}},1499:function(R,W,G){var J=G(89162),et=G(3674);R.exports=function(R){for(var W=et(R),G=W.length;G--;){var er=W[G],en=R[er];W[G]=[er,en,J(en)]}return W}},10852:function(R,W,G){var J=G(28458),et=G(47801);R.exports=function(R,W){var G=et(R,W);return J(G)?G:void 0}},85924:function(R,W,G){var J=G(5569)(Object.getPrototypeOf,Object);R.exports=J},89607:function(R,W,G){var J=G(62705),et=Object.prototype,er=et.hasOwnProperty,en=et.toString,ei=J?J.toStringTag:void 0;R.exports=function(R){var W=er.call(R,ei),G=R[ei];try{R[ei]=void 0;var J=!0}catch(R){}var et=en.call(R);return J&&(W?R[ei]=G:delete R[ei]),et}},99551:function(R,W,G){var J=G(34963),et=G(70479),er=Object.prototype.propertyIsEnumerable,en=Object.getOwnPropertySymbols,ei=en?function(R){return null==R?[]:J(en(R=Object(R)),function(W){return er.call(R,W)})}:et;R.exports=ei},64160:function(R,W,G){var J=G(18552),et=G(57071),er=G(53818),en=G(58525),ei=G(70577),eo=G(44239),es=G(80346),ec="[object Map]",el="[object Promise]",eu="[object Set]",ed="[object WeakMap]",ep="[object DataView]",ef=es(J),eh=es(et),eg=es(er),em=es(en),ey=es(ei),ev=eo;(J&&ev(new J(new ArrayBuffer(1)))!=ep||et&&ev(new et)!=ec||er&&ev(er.resolve())!=el||en&&ev(new en)!=eu||ei&&ev(new ei)!=ed)&&(ev=function(R){var W=eo(R),G="[object Object]"==W?R.constructor:void 0,J=G?es(G):"";if(J)switch(J){case ef:return ep;case eh:return ec;case eg:return el;case em:return eu;case ey:return ed}return W}),R.exports=ev},47801:function(R){R.exports=function(R,W){return null==R?void 0:R[W]}},222:function(R,W,G){var J=G(71811),et=G(35694),er=G(1469),en=G(65776),ei=G(41780),eo=G(40327);R.exports=function(R,W,G){W=J(W,R);for(var es=-1,ec=W.length,el=!1;++es<ec;){var eu=eo(W[es]);if(!(el=null!=R&&G(R,eu)))break;R=R[eu]}return el||++es!=ec?el:!!(ec=null==R?0:R.length)&&ei(ec)&&en(eu,ec)&&(er(R)||et(R))}},62689:function(R){var W=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");R.exports=function(R){return W.test(R)}},51789:function(R,W,G){var J=G(94536);R.exports=function(){this.__data__=J?J(null):{},this.size=0}},80401:function(R){R.exports=function(R){var W=this.has(R)&&delete this.__data__[R];return this.size-=W?1:0,W}},57667:function(R,W,G){var J=G(94536),et=Object.prototype.hasOwnProperty;R.exports=function(R){var W=this.__data__;if(J){var G=W[R];return"__lodash_hash_undefined__"===G?void 0:G}return et.call(W,R)?W[R]:void 0}},21327:function(R,W,G){var J=G(94536),et=Object.prototype.hasOwnProperty;R.exports=function(R){var W=this.__data__;return J?void 0!==W[R]:et.call(W,R)}},81866:function(R,W,G){var J=G(94536);R.exports=function(R,W){var G=this.__data__;return this.size+=this.has(R)?0:1,G[R]=J&&void 0===W?"__lodash_hash_undefined__":W,this}},37285:function(R,W,G){var J=G(62705),et=G(35694),er=G(1469),en=J?J.isConcatSpreadable:void 0;R.exports=function(R){return er(R)||et(R)||!!(en&&R&&R[en])}},65776:function(R){var W=/^(?:0|[1-9]\d*)$/;R.exports=function(R,G){var J=typeof R;return!!(G=null==G?9007199254740991:G)&&("number"==J||"symbol"!=J&&W.test(R))&&R>-1&&R%1==0&&R<G}},16612:function(R,W,G){var J=G(77813),et=G(98612),er=G(65776),en=G(13218);R.exports=function(R,W,G){if(!en(G))return!1;var ei=typeof W;return("number"==ei?!!(et(G)&&er(W,G.length)):"string"==ei&&W in G)&&J(G[W],R)}},15403:function(R,W,G){var J=G(1469),et=G(33448),er=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,en=/^\w*$/;R.exports=function(R,W){if(J(R))return!1;var G=typeof R;return!!("number"==G||"symbol"==G||"boolean"==G||null==R||et(R))||en.test(R)||!er.test(R)||null!=W&&R in Object(W)}},37019:function(R){R.exports=function(R){var W=typeof R;return"string"==W||"number"==W||"symbol"==W||"boolean"==W?"__proto__"!==R:null===R}},15346:function(R,W,G){var J,et=G(14429),er=(J=/[^.]+$/.exec(et&&et.keys&&et.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"";R.exports=function(R){return!!er&&er in R}},25726:function(R){var W=Object.prototype;R.exports=function(R){var G=R&&R.constructor;return R===("function"==typeof G&&G.prototype||W)}},89162:function(R,W,G){var J=G(13218);R.exports=function(R){return R==R&&!J(R)}},27040:function(R){R.exports=function(){this.__data__=[],this.size=0}},14125:function(R,W,G){var J=G(18470),et=Array.prototype.splice;R.exports=function(R){var W=this.__data__,G=J(W,R);return!(G<0)&&(G==W.length-1?W.pop():et.call(W,G,1),--this.size,!0)}},82117:function(R,W,G){var J=G(18470);R.exports=function(R){var W=this.__data__,G=J(W,R);return G<0?void 0:W[G][1]}},67518:function(R,W,G){var J=G(18470);R.exports=function(R){return J(this.__data__,R)>-1}},54705:function(R,W,G){var J=G(18470);R.exports=function(R,W){var G=this.__data__,et=J(G,R);return et<0?(++this.size,G.push([R,W])):G[et][1]=W,this}},24785:function(R,W,G){var J=G(1989),et=G(38407),er=G(57071);R.exports=function(){this.size=0,this.__data__={hash:new J,map:new(er||et),string:new J}}},11285:function(R,W,G){var J=G(45050);R.exports=function(R){var W=J(this,R).delete(R);return this.size-=W?1:0,W}},96e3:function(R,W,G){var J=G(45050);R.exports=function(R){return J(this,R).get(R)}},49916:function(R,W,G){var J=G(45050);R.exports=function(R){return J(this,R).has(R)}},95265:function(R,W,G){var J=G(45050);R.exports=function(R,W){var G=J(this,R),et=G.size;return G.set(R,W),this.size+=G.size==et?0:1,this}},68776:function(R){R.exports=function(R){var W=-1,G=Array(R.size);return R.forEach(function(R,J){G[++W]=[J,R]}),G}},26366:function(R){R.exports=function(R,W){return function(G){return null!=G&&G[R]===W&&(void 0!==W||R in Object(G))}}},24523:function(R,W,G){var J=G(88306);R.exports=function(R){var W=J(R,function(R){return 500===G.size&&G.clear(),R}),G=W.cache;return W}},94536:function(R,W,G){var J=G(10852)(Object,"create");R.exports=J},86916:function(R,W,G){var J=G(5569)(Object.keys,Object);R.exports=J},31167:function(R,W,G){R=G.nmd(R);var J=G(31957),et=W&&!W.nodeType&&W,er=et&&R&&!R.nodeType&&R,en=er&&er.exports===et&&J.process,ei=function(){try{var R=er&&er.require&&er.require("util").types;if(R)return R;return en&&en.binding&&en.binding("util")}catch(R){}}();R.exports=ei},2333:function(R){var W=Object.prototype.toString;R.exports=function(R){return W.call(R)}},5569:function(R){R.exports=function(R,W){return function(G){return R(W(G))}}},45357:function(R,W,G){var J=G(96874),et=Math.max;R.exports=function(R,W,G){return W=et(void 0===W?R.length-1:W,0),function(){for(var er=arguments,en=-1,ei=et(er.length-W,0),eo=Array(ei);++en<ei;)eo[en]=er[W+en];en=-1;for(var es=Array(W+1);++en<W;)es[en]=er[en];return es[W]=G(eo),J(R,this,es)}}},55639:function(R,W,G){var J=G(31957),et="object"==typeof self&&self&&self.Object===Object&&self,er=J||et||Function("return this")();R.exports=er},90619:function(R){R.exports=function(R){return this.__data__.set(R,"__lodash_hash_undefined__"),this}},72385:function(R){R.exports=function(R){return this.__data__.has(R)}},21814:function(R){R.exports=function(R){var W=-1,G=Array(R.size);return R.forEach(function(R){G[++W]=R}),G}},30061:function(R,W,G){var J=G(56560),et=G(21275)(J);R.exports=et},21275:function(R){var W=Date.now;R.exports=function(R){var G=0,J=0;return function(){var et=W(),er=16-(et-J);if(J=et,er>0){if(++G>=800)return arguments[0]}else G=0;return R.apply(void 0,arguments)}}},37465:function(R,W,G){var J=G(38407);R.exports=function(){this.__data__=new J,this.size=0}},63779:function(R){R.exports=function(R){var W=this.__data__,G=W.delete(R);return this.size=W.size,G}},67599:function(R){R.exports=function(R){return this.__data__.get(R)}},44758:function(R){R.exports=function(R){return this.__data__.has(R)}},34309:function(R,W,G){var J=G(38407),et=G(57071),er=G(83369);R.exports=function(R,W){var G=this.__data__;if(G instanceof J){var en=G.__data__;if(!et||en.length<199)return en.push([R,W]),this.size=++G.size,this;G=this.__data__=new er(en)}return G.set(R,W),this.size=G.size,this}},42351:function(R){R.exports=function(R,W,G){for(var J=G-1,et=R.length;++J<et;)if(R[J]===W)return J;return -1}},83140:function(R,W,G){var J=G(44286),et=G(62689),er=G(676);R.exports=function(R){return et(R)?er(R):J(R)}},55514:function(R,W,G){var J=G(24523),et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,er=/\\(\\)?/g,en=J(function(R){var W=[];return 46===R.charCodeAt(0)&&W.push(""),R.replace(et,function(R,G,J,et){W.push(J?et.replace(er,"$1"):G||R)}),W});R.exports=en},40327:function(R,W,G){var J=G(33448),et=1/0;R.exports=function(R){if("string"==typeof R||J(R))return R;var W=R+"";return"0"==W&&1/R==-et?"-0":W}},80346:function(R){var W=Function.prototype.toString;R.exports=function(R){if(null!=R){try{return W.call(R)}catch(R){}try{return R+""}catch(R){}}return""}},67990:function(R){var W=/\s/;R.exports=function(R){for(var G=R.length;G--&&W.test(R.charAt(G)););return G}},676:function(R){var W="\ud800-\udfff",G="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",J="\ud83c[\udffb-\udfff]",et="[^"+W+"]",er="(?:\ud83c[\udde6-\uddff]){2}",en="[\ud800-\udbff][\udc00-\udfff]",ei="(?:"+G+"|"+J+")?",eo="[\\ufe0e\\ufe0f]?",es="(?:\\u200d(?:"+[et,er,en].join("|")+")"+eo+ei+")*",ec=RegExp(J+"(?="+J+")|(?:"+[et+G+"?",G,er,en,"["+W+"]"].join("|")+")"+(eo+ei+es),"g");R.exports=function(R){return R.match(ec)||[]}},75703:function(R){R.exports=function(R){return function(){return R}}},23279:function(R,W,G){var J=G(13218),et=G(7771),er=G(14841),en=Math.max,ei=Math.min;R.exports=function(R,W,G){var eo,es,ec,el,eu,ed,ep=0,ef=!1,eh=!1,eg=!0;if("function"!=typeof R)throw TypeError("Expected a function");function invokeFunc(W){var G=eo,J=es;return eo=es=void 0,ep=W,el=R.apply(J,G)}function shouldInvoke(R){var G=R-ed,J=R-ep;return void 0===ed||G>=W||G<0||eh&&J>=ec}function timerExpired(){var R,G,J,er=et();if(shouldInvoke(er))return trailingEdge(er);eu=setTimeout(timerExpired,(R=er-ed,G=er-ep,J=W-R,eh?ei(J,ec-G):J))}function trailingEdge(R){return(eu=void 0,eg&&eo)?invokeFunc(R):(eo=es=void 0,el)}function debounced(){var R,G=et(),J=shouldInvoke(G);if(eo=arguments,es=this,ed=G,J){if(void 0===eu)return ep=R=ed,eu=setTimeout(timerExpired,W),ef?invokeFunc(R):el;if(eh)return clearTimeout(eu),eu=setTimeout(timerExpired,W),invokeFunc(ed)}return void 0===eu&&(eu=setTimeout(timerExpired,W)),el}return W=er(W)||0,J(G)&&(ef=!!G.leading,ec=(eh="maxWait"in G)?en(er(G.maxWait)||0,W):ec,eg="trailing"in G?!!G.trailing:eg),debounced.cancel=function(){void 0!==eu&&clearTimeout(eu),ep=0,eo=ed=es=eu=void 0},debounced.flush=function(){return void 0===eu?el:trailingEdge(et())},debounced}},77813:function(R){R.exports=function(R,W){return R===W||R!=R&&W!=W}},711:function(R,W,G){var J=G(66193),et=G(93239),er=G(67206),en=G(1469),ei=G(16612);R.exports=function(R,W,G){var eo=en(R)?J:et;return G&&ei(R,W,G)&&(W=void 0),eo(R,er(W,3))}},13311:function(R,W,G){var J=G(67740)(G(30998));R.exports=J},30998:function(R,W,G){var J=G(41848),et=G(67206),er=G(40554),en=Math.max;R.exports=function(R,W,G){var ei=null==R?0:R.length;if(!ei)return -1;var eo=null==G?0:er(G);return eo<0&&(eo=en(ei+eo,0)),J(R,et(W,3),eo)}},94654:function(R,W,G){var J=G(21078),et=G(35161);R.exports=function(R,W){return J(et(R,W),1)}},27361:function(R,W,G){var J=G(97786);R.exports=function(R,W,G){var et=null==R?void 0:J(R,W);return void 0===et?G:et}},79095:function(R,W,G){var J=G(13),et=G(222);R.exports=function(R,W){return null!=R&&et(R,W,J)}},6557:function(R){R.exports=function(R){return R}},35694:function(R,W,G){var J=G(9454),et=G(37005),er=Object.prototype,en=er.hasOwnProperty,ei=er.propertyIsEnumerable,eo=J(function(){return arguments}())?J:function(R){return et(R)&&en.call(R,"callee")&&!ei.call(R,"callee")};R.exports=eo},1469:function(R){var W=Array.isArray;R.exports=W},98612:function(R,W,G){var J=G(23560),et=G(41780);R.exports=function(R){return null!=R&&et(R.length)&&!J(R)}},51584:function(R,W,G){var J=G(44239),et=G(37005);R.exports=function(R){return!0===R||!1===R||et(R)&&"[object Boolean]"==J(R)}},44144:function(R,W,G){R=G.nmd(R);var J=G(55639),et=G(95062),er=W&&!W.nodeType&&W,en=er&&R&&!R.nodeType&&R,ei=en&&en.exports===er?J.Buffer:void 0,eo=ei?ei.isBuffer:void 0;R.exports=eo||et},18446:function(R,W,G){var J=G(90939);R.exports=function(R,W){return J(R,W)}},23560:function(R,W,G){var J=G(44239),et=G(13218);R.exports=function(R){if(!et(R))return!1;var W=J(R);return"[object Function]"==W||"[object GeneratorFunction]"==W||"[object AsyncFunction]"==W||"[object Proxy]"==W}},41780:function(R){R.exports=function(R){return"number"==typeof R&&R>-1&&R%1==0&&R<=9007199254740991}},7654:function(R,W,G){var J=G(81763);R.exports=function(R){return J(R)&&R!=+R}},14293:function(R){R.exports=function(R){return null==R}},81763:function(R,W,G){var J=G(44239),et=G(37005);R.exports=function(R){return"number"==typeof R||et(R)&&"[object Number]"==J(R)}},13218:function(R){R.exports=function(R){var W=typeof R;return null!=R&&("object"==W||"function"==W)}},37005:function(R){R.exports=function(R){return null!=R&&"object"==typeof R}},68630:function(R,W,G){var J=G(44239),et=G(85924),er=G(37005),en=Object.prototype,ei=Function.prototype.toString,eo=en.hasOwnProperty,es=ei.call(Object);R.exports=function(R){if(!er(R)||"[object Object]"!=J(R))return!1;var W=et(R);if(null===W)return!0;var G=eo.call(W,"constructor")&&W.constructor;return"function"==typeof G&&G instanceof G&&ei.call(G)==es}},47037:function(R,W,G){var J=G(44239),et=G(1469),er=G(37005);R.exports=function(R){return"string"==typeof R||!et(R)&&er(R)&&"[object String]"==J(R)}},33448:function(R,W,G){var J=G(44239),et=G(37005);R.exports=function(R){return"symbol"==typeof R||et(R)&&"[object Symbol]"==J(R)}},36719:function(R,W,G){var J=G(38749),et=G(7518),er=G(31167),en=er&&er.isTypedArray,ei=en?et(en):J;R.exports=ei},3674:function(R,W,G){var J=G(14636),et=G(280),er=G(98612);R.exports=function(R){return er(R)?J(R):et(R)}},10928:function(R){R.exports=function(R){var W=null==R?0:R.length;return W?R[W-1]:void 0}},35161:function(R,W,G){var J=G(29932),et=G(67206),er=G(69199),en=G(1469);R.exports=function(R,W){return(en(R)?J:er)(R,et(W,3))}},66604:function(R,W,G){var J=G(89465),et=G(47816),er=G(67206);R.exports=function(R,W){var G={};return W=er(W,3),et(R,function(R,et,er){J(G,et,W(R,et,er))}),G}},6162:function(R,W,G){var J=G(56029),et=G(53325),er=G(6557);R.exports=function(R){return R&&R.length?J(R,er,et):void 0}},84753:function(R,W,G){var J=G(56029),et=G(53325),er=G(67206);R.exports=function(R,W){return R&&R.length?J(R,er(W,2),et):void 0}},88306:function(R,W,G){var J=G(83369);function memoize(R,W){if("function"!=typeof R||null!=W&&"function"!=typeof W)throw TypeError("Expected a function");var memoized=function(){var G=arguments,J=W?W.apply(this,G):G[0],et=memoized.cache;if(et.has(J))return et.get(J);var er=R.apply(this,G);return memoized.cache=et.set(J,er)||et,er};return memoized.cache=new(memoize.Cache||J),memoized}memoize.Cache=J,R.exports=memoize},53632:function(R,W,G){var J=G(56029),et=G(70433),er=G(6557);R.exports=function(R){return R&&R.length?J(R,er,et):void 0}},22762:function(R,W,G){var J=G(56029),et=G(67206),er=G(70433);R.exports=function(R,W){return R&&R.length?J(R,et(W,2),er):void 0}},50308:function(R){R.exports=function(){}},7771:function(R,W,G){var J=G(55639);R.exports=function(){return J.Date.now()}},39601:function(R,W,G){var J=G(40371),et=G(79152),er=G(15403),en=G(40327);R.exports=function(R){return er(R)?J(en(R)):et(R)}},96026:function(R,W,G){var J=G(47445)();R.exports=J},59704:function(R,W,G){var J=G(82908),et=G(67206),er=G(5076),en=G(1469),ei=G(16612);R.exports=function(R,W,G){var eo=en(R)?J:er;return G&&ei(R,W,G)&&(W=void 0),eo(R,et(W,3))}},89734:function(R,W,G){var J=G(21078),et=G(82689),er=G(5976),en=G(16612),ei=er(function(R,W){if(null==R)return[];var G=W.length;return G>1&&en(R,W[0],W[1])?W=[]:G>2&&en(W[0],W[1],W[2])&&(W=[W[0]]),et(R,J(W,1),[])});R.exports=ei},70479:function(R){R.exports=function(){return[]}},95062:function(R){R.exports=function(){return!1}},23493:function(R,W,G){var J=G(23279),et=G(13218);R.exports=function(R,W,G){var er=!0,en=!0;if("function"!=typeof R)throw TypeError("Expected a function");return et(G)&&(er="leading"in G?!!G.leading:er,en="trailing"in G?!!G.trailing:en),J(R,W,{leading:er,maxWait:W,trailing:en})}},18601:function(R,W,G){var J=G(14841),et=1/0;R.exports=function(R){return R?(R=J(R))===et||R===-et?(R<0?-1:1)*17976931348623157e292:R==R?R:0:0===R?R:0}},40554:function(R,W,G){var J=G(18601);R.exports=function(R){var W=J(R),G=W%1;return W==W?G?W-G:W:0}},14841:function(R,W,G){var J=G(27561),et=G(13218),er=G(33448),en=0/0,ei=/^[-+]0x[0-9a-f]+$/i,eo=/^0b[01]+$/i,es=/^0o[0-7]+$/i,ec=parseInt;R.exports=function(R){if("number"==typeof R)return R;if(er(R))return en;if(et(R)){var W="function"==typeof R.valueOf?R.valueOf():R;R=et(W)?W+"":W}if("string"!=typeof R)return 0===R?R:+R;R=J(R);var G=eo.test(R);return G||es.test(R)?ec(R.slice(2),G?2:8):ei.test(R)?en:+R}},79833:function(R,W,G){var J=G(80531);R.exports=function(R){return null==R?"":J(R)}},45578:function(R,W,G){var J=G(67206),et=G(45652);R.exports=function(R,W){return R&&R.length?et(R,J(W,2)):[]}},11700:function(R,W,G){var J=G(98805)("toUpperCase");R.exports=J},84221:function(R,W,G){var J=G(46894).getUint64;R.exports=function(R){var W=new DataView(R.buffer,R.byteOffset,R.byteLength),G={version:R[0],flags:new Uint8Array(R.subarray(1,4)),references:[],referenceId:W.getUint32(4),timescale:W.getUint32(8)},et=12;0===G.version?(G.earliestPresentationTime=W.getUint32(et),G.firstOffset=W.getUint32(et+4),et+=8):(G.earliestPresentationTime=J(R.subarray(et)),G.firstOffset=J(R.subarray(et+8)),et+=16),et+=2;var er=W.getUint16(et);for(et+=2;er>0;et+=12,er--)G.references.push({referenceType:(128&R[et])>>>7,referencedSize:2147483647&W.getUint32(et),subsegmentDuration:W.getUint32(et+4),startsWithSap:!!(128&R[et+8]),sapType:(112&R[et+8])>>>4,sapDeltaTime:268435455&W.getUint32(et+8)});return G}},51489:function(R){var W,G,J,et;W=function(R){return 9e4*R},G=function(R,W){return R*W},J=function(R){return R/9e4},et=function(R,W){return R/W},R.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:W,secondsToAudioTs:G,videoTsToSeconds:J,audioTsToSeconds:et,audioTsToVideoTs:function(R,G){return W(et(R,G))},videoTsToAudioTs:function(R,W){return G(J(R),W)},metadataTsToSeconds:function(R,W,G){return J(G?R:R-W)}}},46894:function(R){R.exports={getUint64:function(R){var W,G=new DataView(R.buffer,R.byteOffset,R.byteLength);return G.getBigUint64?(W=G.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(W):W:4294967296*G.getUint32(0)+G.getUint32(4)},MAX_UINT32:4294967296}},7544:function(R,W,G){R.exports=G(65217)},38377:function(R,W,G){"use strict";G.d(W,{B:function(){return socialShares},K:function(){return J}});var socialShares=function(R,W,G){switch(R){case"facebook":return"https://www.facebook.com/sharer/sharer.php?u=".concat(W).concat(G?"&t=".concat(G):"");case"mail":return"mailto:?subject=".concat(G," op Netwerk Oorlogsbronnen&body=Ga naar ").concat(W," en lees alles over ").concat(G);case"whatsapp":return"https://wa.me/?text=Ga naar ".concat(W," op Netwerk Oorlogsbronnen en lees alles over ").concat(G);default:return W}},J=["https://www.facebook.com/netwerkoorlogsbronnen/","https://www.instagram.com/oorlogsbronnen/","https://www.youtube.com/channel/UC52z4SLN6wuUmqhbOE7_UzA","https://www.linkedin.com/company/7970439"]},72015:function(R,W){"use strict";W.Z={skipTo:"Ga direct naar: ",goToSlide:"Ga naar foto "}},76527:function(R,W){"use strict";W.Z={overviewPage:{title:"De Luchtoorlog boven Nederland",intro:"De luchtoorlog boven bezet Nederland werd deels uitgevochten tijdens de meidagen van 1940 en de bevrijding van Nederland in 1944 en 1945 tussen de Duitse en geallieerde luchtmachten. Maar ook in de tussentijd wanneer de geallieerden via bezet Nederland naar Duitsland vlogen om te bombarderen of bezet Nederland zelf bombardeerden, met vaak burgerslachtoffers als gevolg. Ook crashten daarbij regelmatig vliegtuigen in bezet Nederland.",button:"Meer over de Luchtoorlog boven Nederland",article:"/artikel/luchtoorlog-boven-bezet-nederland",numbers:{title:"De luchtoorlog in cijfers",subtitle:"Onderstaande informatie is bekend over de vliegtuigcrashes en bombardementen tijdens de luchtoorlog in Nederland gedurende de Tweede Wereldoorlog"},map:{button:"Meer over dit onderwerp",crashes:"Crashes",bombardments:"Bombardementen",per_province:"Aantal per provincie",targets:"Doelen",hover_button:"Klik om de kaart te gebruiken",legend:{tooltipTexts:{crashesPerProvince:"De achtergrond van de kaart toont het totaal aantal vliegtuigcrashes in deze periode. Hoe donkerder, hoe meer crashes",crashes:"Dit zijn de vliegtuigcrashes waarover wij meer informatie hebben verzameld. Klik er op om verder te lezen",targets:"Hiermee worden de doelen van de in deze periode gecrashte vliegtuigen aangegeven",AMERICAN:"Amerikaanse bombardementen op Nederlands grondgebied in de geselecteerde periode. Klik erop voor meer informatie",BRITISH:"Britse bombardementen op Nederlands grondgebied in de geselecteerde periode. Klik erop voor meer informatie",GERMAN:"Duitse bombardementen op Nederlands grondgebied in de geselecteerde periode. Klik erop voor meer informatie"}}},chart:{title:"Vliegtuigcrashes in de tijd",y_label:"Aantal crashes",tooltip_label:"crashes"},bombardments_pie:{title:"Bombardementen in Nederland"},crashes_pie:{title:"Vliegtuigcrashes in Nederland"}},crashDetailPage:{header:{details:{labels:{airforceCategory:"Van wie?",airforce:"Luchtmacht",aircraftType:"Type vliegtuig",partOfDay:"Moment"}}},buttons:{readMore:"Meer over de luchtoorlog"},map:{fromLocation:"Vertrekpunt",crashLocation:"Crash",toLocation:"Doel"},source:{title:"Bron: Studiegroep Luchtoorlog 1939-1945: Loss Register",href:"https://verliesregister.studiegroepluchtoorlog.nl/ahome/lossregister/"}},bombardmentDetailPage:{header:{},buttons:{readMore:"Meer over de luchtoorlog"}},homepageEntry:{title:"De Luchtoorlog boven Nederland",text:"De luchtoorlog boven bezet Nederland werd deels uitgevochten tijdens de meidagen van 1940 en de bevrijding van Nederland in 1944 en 1945 tussen de Duitse en geallieerde luchtmachten. Maar ook in de tussentijd wanneer de geallieerden via bezet Nederland naar Duitsland vlogen om te bombarderen of bezet Nederland zelf bombardeerden, met vaak burgerslachtoffers als gevolg. Ook crashten daarbij regelmatig vliegtuigen in bezet Nederland.",more:{text:"Naar de luchtoorlog",href:"/luchtoorlog"}},bombardmentSidePanel:{readMoreText:"Meer over dit bombardement",relatedPersonsTitle:"Mensen",morePersonsText:"Bekijk alle personen"},planeCrashSidePanel:{crewTitle:"Bemanning",readMoreText:"Meer over de vliegtuigcrash",sourceLinkText:"Bron: Studiegroep Luchtoorlog 1939-1945: Loss Register",sourceLinkUrl:"https://verliesregister.studiegroepluchtoorlog.nl/ahome/lossregister/"}}},34586:function(R,W){"use strict";W.Z={buttons:{back:"Vorige",backToAll:"Alle bekendmakingen",allPeople:"Alle betrokken mensen"},overview:{title:"Bekendmakingen",intro:"Bekendmakingen zijn geschriften waarin iets ter algemene kennis wordt gebracht. Tijdens de Tweede Wereldoorlog waren deze bekendmakingen afkomstig van de bezetter en ook het Militair Gezag. De bekendmakingen werden op muren en aanplakplaatsen geplakt. Het was een van de belangrijkste communicatiemiddelen die de autoriteiten hanteerde om de burger te informeren.",titleDataSection:"Data over bekendmakingen",eventsOverTime:{title:"Bekendmakingen in de tijd",text:"In Oorlogsbronnen zijn veel bekendmakingen te vinden. Wanneer werden ze uitgevaardigd? Bekijk de verdeling per thema en klik op de balk om de bekendmakingen te zien.",themeFilter:"Filter data op",label:"Aantal publicaties",sidebarTitle:function(R,W,G){return"".concat(R," bekendmakingen uit ").concat(W).concat(G?" over ".concat(G.toLowerCase()):"")}},map:{title:"Bekendmakingen in het land",text:"Klik op Afspelen om te ontdekken waar en wanneer de bekendmakingen gepubliceerd werden. Klik op Pauzeer en daarna op een stip om de bekendmaking te bekijken.",filterTitle:"Filter kaart op:"},pieChart:{title:"Onderwerpen"},mandators:{title:"Top 4 uitvaardigers",showAll:"Bekijk alle uitvaardigers"},announcements:{title:"Uitgelichte bekendmakingen",more:{href:"/bekendmaking/alle-bekendmakingen",text:"Bekijk alle bekendmakingen"}}},allPage:{title:"Alle bekendmakingen",titleForTheme:"Alle bekendmakingen over",titleForPlace:"Alle bekendmakingen over of uit",titleForPerson:function(R){return"Alle bekendmakingen waar ".concat(R," bij betrokken was")}},timeline:{title:"Wat ging vooraf aan deze bekendmaking?",titleOnlyConsequences:"Wat gebeurde er na deze bekendmaking?",relatedPersonsTitle:{singular:"Betrokken mens",plural:"Betrokken mensen",plusButton:"Bekijk wie dit waren"},relatedAnnouncementsTitle:{singular:"Andere bekendmaking die hierbij hoort",plural:"Andere bekendmakingen die hierbij horen",plusButton:"Bekijk de bekendmakingen",plusButtonSingular:"Bekijk deze bekendmaking"},relatedPersonsMore:"Bekijk wie dit waren",beforeEvent:"Dit was een aanleiding voor de bekendmaking",afterEvent:"Dit was een gevolg van de bekendmaking"},allPeople:{title:function(R){return"Mensen betrokken bij ".concat(R||"")}},sidepanel:{relatedPersons:{title:"Betrokken mensen",showAll:"Alle betrokken mensen"},announcement:{more:"Meer over deze bekendmaking"},relatedTitle:function(R){return"Bekendmakingen die horen bij ".concat(R)},moreButton:function(R){return"Bekijk alle ".concat(R," bekendmakingen")}},relatedThemesTitle:"Gerelateerde thema's"}},46488:function(R,W){"use strict";W.Z={peopleTitle:"Wie waren de Engelandvaarders?",peopleMore:"Bekijk alle Engelandvaarders",overviewPage:{title:"De tocht naar Engeland",captions:{video:"Engelandvaarders op bezoek bij koningin Wilhelmina, Engelandvaarders worden in februari 1944 opgepikt op de Noordzee door een Brits reddingsschip, Engelandvaarders nemen dienst in de RAF.",map:"Landkaart gebruikt door Engelandvaarder Kees Wolters bij de oversteek van de demarcatielijn tussen door de Duitsers bezet en het ‘vrije’ Frankrijk van Vichy.",photo:"Pasfoto van Trijntje Pellikaan-Vogelaar genomen in Lissabon, tijdens haar tocht naar Engeland."}},map:{intro:{title:"De 4 hoofdroutes van Engelandvaarders",text:"Het was niet makkelijk om uit bezet Nederland weg te komen. De reis was lang en gevaarlijk en niet iedereen haalde het. Aangekomen in Engeland werden de Engelandvaarders verhoord om hun betrouwbaarheid te toetsen.",sub_text:"Deze verhoren werden afgenomen door de Britse inlichtingendienst en vervolgens door de Nederlandse Politie Buitendienst (PBD) in Londen. De verhoren van de PBD liggen opgeslagen in het Nationaal Archief en zijn nu digitaal beschikbaar.",disclaimer:'De weergegeven routes zijn gemaakt op basis van informatie uit dit archiefmateriaal. In sommige gevallen is deze informatie aangevuld met secundaire bronnen. Omdat niet altijd exacte data en locaties konden worden achterhaald, is soms de meest logische optie ingevuld. De opgenomen verhoren bevatten voornamelijk de gegevens van degene die daadwerkelijk in Engeland zijn aangekomen. Van degene die Engeland niet hebben gehaald is op Oorlogsbronnen geen route-informatie beschikbaar. Wel vind je deze personen mogelijk onder "Wie waren de Engelandvaarders?"'}},routePage:{personsTitle:"Wie waren deze Engelandvaarders?"},chart:{divider_title:"Over de routes",title:"Routes Engelandvaarders",yLabel:"Aantal Engelandvaarders",xLabel:"Datum van vertrek"},toThemePage:"Meer over Engelandvaarders",timeline:{plus:function(R){return"Meer over de ".concat(R||"Engelandvaarders")},sidePanelRouteTitle:function(R){return"".concat(R," Engelandvaarders kwamen aan via de ")},sidePanelMorePeople:"Bekijk alle mensen",moreAboutStopButton:"Meer over deze etappe",sourceTitle:"Bekijk de archiefstukken bij het Nationaal Archief",stopSidepanelText:function(R,W){return W?""+((R?"".concat(R," ondernam deze etappe met "):"Deze etappe werd ondernomen met ")+"".concat(W," anderen.")):R?"".concat(R," ondernam deze etappe alleen."):"Deze etappe werd alleen ondernomen."}}}},73712:function(R,W){"use strict";W.Z={modeFilterTitle:"kenmerken",regularFilterTitle:"Type organisatie",header:{memberText:"Deelnemer Oorlogsbronnen",locationButtonScreenreaderText:function(R){return"Ga naar de pagina van de plaats ".concat(R)},link:{text:"Naar de website",screenreaderText:function(R){return"Ga naar de website van ".concat(R)}}},search:{title:function(R){return"Doorzoek de oorlogsbronnen van ".concat(R)},placeholderText:"Zoek op bron, tijd, plaats..."},relatedSources:{title:function(R){return"Oorlogsbronnen van ".concat(R)},moreText:"Bekijk de hele collectie"},organizationData:{title:"Over de collectie",relatedThemesTitle:"Meest gebruikte termen",noThemesFound:"Geen termen gevonden van deze organisatie",chartTitle:"Waaruit bestaat de collectie"},sidepanel:{callToActionText:"Meer bronnen over dit thema"}}},11626:function(R,W,G){"use strict";G.d(W,{Z:function(){return et}});var helpers_firstLetterToUpperCase=function(R){return R?"".concat(R.charAt(0).toUpperCase()).concat(R.slice(1)):""},J=G(74884),et={overview:{wipe:"Zoekopdracht wissen",context:{place:"Mensen uit",thesaurus:"Mensen betrokken bij",transport:"Mensen op het transport",onThisDay:"Uitgelicht",textWithDate:function(R){return"deze mensen zijn op ".concat(R," geboren.")},totalResults:"resultaten",announcements:"Top uitvaardigers van bekendmakingen"},intro:{title:"Oorlogslevens",subtitle:"Start hier uw zoektocht naar mensen in de Tweede Wereldoorlog.",placeholder:"Zoek bijv. op Polak of Kamp Westerbork",linkText:"Door welke bronnen of organisaties zoek ik?",linkTarget:"/organisaties?mode=war_lives"},advanced:{open:"Uitgebreid zoeken",submit:"Zoeken",title:"Uitgebreid zoeken",subtitle:"Vul de gegevens in die bij jou bekend zijn.",firstname:"Voornaam",lastname:"Achternaam",birthdate:"Geboortedatum",birthplace:"Geboorteplaats",deathdate:"Overlijdensdatum",deathplace:"Overlijdensplaats",day:"Dag",month:"Maand",year:"Jaar",sortBy:{label:"Sorteer op",relevance:"Relevantie",lastnamedesc:"Achternaam Z-A",lastnameasc:"Achternaam A-Z",birthdatedesc:"Geboortedatum aflopend",birthdateasc:"Geboortedatum oplopend"},sentences:{name:"Ik ben op zoek naar",birth:"Geboren in",death:"Overleden in",place:"in"}}},notFound:{name:"Onbekend",date:"datum onbekend",location:"locatie onbekend"},labels:{person:{warOf:"De oorlog van",type:"Mens"},shareTimeLine:"Deel deze tijdlijn",readBiography:"Wat we weten over",readAnnouncement:"Bekijk deze bekendmaking",undatedEvents:"Gebeurtenissen zonder datering",timelinePartnerSources:"Bronvermelding partners",timelinePartnerSourcesSubtitle:"Bovenstaande tijdlijn is geautomatiseerd samengesteld op basis van collecties van partners uit het Netwerk Oorlogsbronnen",timelineMiscImages:"Overig beeldmateriaal",timelineMoreItineraries:function(R){return"Bekijk nog ".concat(R," ").concat(R>1?"etappes":"etappe")},timelineLessItineraries:"Sluit etappes",transportStack:function(R,W,G){return"Naast ".concat(helpers_firstLetterToUpperCase(R)," is bij Oorlogsbronnen van nog ").concat(W-1," mensen bekend dat ze die dag zijn ").concat((0,J.Z)(G),".")},transportStackDescription:"Deze lijst is waarschijnlijk nog niet compleet. Gegevens worden telkens onderzocht en toegevoegd.",transportStackButton:"Wie waren dat?",eventStack:function(R,W,G,et){return"Naast ".concat(helpers_firstLetterToUpperCase(R)," is bij Oorlogsbronnen van nog ").concat(G-1," mensen bekend dat ze die dag betrokken waren bij ").concat(W," ").concat((0,J.Z)(et),".")},eventStackDescription:"Deze lijst is waarschijnlijk nog niet compleet. Gegevens worden telkens onderzocht en toegevoegd.",eventStackButton:"Wie waren dat?",eventStackPanelTitle:function(R){return"Betrokken bij ".concat((0,J.Z)(R))},timelineAge:function(R,W){return"".concat(R," is dan ").concat(W," jaar oud")},timelineAgeInMonths:function(R,W){return"".concat(R," is dan ").concat(W," ").concat(1===W?"maand":"maanden"," oud")},eventImplication:"De volgende gebeurtenissen hadden invloed op het leven van ",eventImplicationSingle:"Deze gebeurtenis had invloed op het leven van "},sources:{title:"Bronvermelding",links:{externalLink:"Naar website",internalLink:"Bron bekijken",mail:"Stuur e-mail"},labels:{images:"Afbeeldingen",events:"Gebeurtenissen"},subtitles:{events:"Deze gebeurtenis is gereconstrueerd uit de volgende bronnen:",images:"Deze afbeeldingen zijn gebruikt om deze gebeurtenis te illustreren:"}},sidePanels:{readMoreLabel:"Meer over dit onderwerp",loadMoreLabel:"Toon meer anderen",othersOnTransport:"Mensen op dit transport",otherPersonsTransport:function(R){return"Bekijk ".concat(R," mensen op dit transport")},otherPersonsSubtitle:function(R,W,G){return"Wat Oorlogsbronnen weet over de ".concat(R," mensen op het transport dat op ").concat(W||"onbekend"," vertrok uit ").concat(G||"onbekend",".")},otherPersons:{title:"Wie waren dat?",unknownGroupLabel:"Onbekend"},mapInfographicSubtitle:"Dit zijn de plaatsen waar mensen die op dit transport zaten zijn omgekomen tijdens de Tweede Wereldoorlog. Beweeg de kaart en zoom in voor meer details."},moreAnnouncements:{title:function(R){return"Meer bekendmakingen waar ".concat(R," bij betrokken was")},plusButton:"Bekijk bekendmakingen",plusButtonSingular:"Bekijk deze bekendmaking"},sourceLabels:{direct:"Bezoek de pagina van deze persoon op ",indirect:"Bezoek de website van "},objectionText:{title:"Heeft u bezwaar tegen de vermelding van deze persoon?",text:"Laat het ons weten door een e-mail te sturen naar ",emailAddress:"info@oorlogsbronnen.nl"},duplicationBar:{open:"Er zijn mensen dubbel",label:"Vink 2 of 3 mensen aan die dubbel in de lijst staan",button:"Selectie verzenden",submit:{title:"Bedankt voor de melding.",description:"We gaan ons best doen om deze twee personen te ontdubbelen.",failed:"Er is iets misgegaan tijdens het versturen, probeer het later opnieuw.",button:"Versturen"}},suggestDataText:{title:function(R){return"Afbeelding van ".concat(R)},description:function(R){return"Ontbreekt een portretfoto, of kan je ons helpen met een betere afbeelding van ".concat(R,", dan kan je deze hier toevoegen. Ook is het mogelijk om de bestaande portretfoto beter bij te snijden.")},buttonText:"Voeg toe",uploadButtonText:"Portretfoto toevoegen",cropButtonText:"Uitsnede portretfoto maken"},suggestDataTooltip:{title:"Gebeurtenis toevoegen aan deze tijdlijn",text:"Heb jij meer informatie of zijn we iets vergeten? Help ons en voeg toe wat je weet."}}},44015:function(R,W){"use strict";W.Z={titles:{pre:"De Tweede Wereldoorlog in ",organizations:function(R){return"Organisaties in ".concat(R)},places:function(R){return"Plaatsen in ".concat(R)},organizationsTitlePrefix:"Organisaties in",placesTitlePrefix:"Plaatsen in"},persons:{title:"Mensen uit",subtitle:function(R,W){return W>1?"Er zijn bij Oorlogsbronnen <strong>".concat(W,"</strong> mensen bekend die bij de Tweede Wereldoorlog betrokken waren. Zij woonden in ").concat(R," of zijn er geboren of overleden."):"Er is bij Oorlogsbronnen <strong>1</strong> iemand bekend die bij de Tweede Wereldoorlog betrokken waren. Zij woonden in ".concat(R," of zijn er geboren of overleden.")},subtitleString:function(R,W){return parseInt("".concat(W),10)>1||"string"==typeof W?"Er zijn bij Oorlogsbronnen ".concat(W," mensen bekend die bij de Tweede Wereldoorlog betrokken waren. Zij woonden in ").concat(R," of zijn er geboren of overleden."):"Er is bij Oorlogsbronnen 1 iemand bekend die bij de Tweede Wereldoorlog betrokken waren. Zij woonden in ".concat(R," of zijn er geboren of overleden.")}},infographics:{sourcesPre:"Deze informatie wordt automatisch gegenereerd op basis van beschikbare bronnen van",sourcesLink:"de volgende organisaties",titles:{category:"Achtergrond",ageDistribution:"Leeftijd",deathDate:"Overlijdensdatum",gender:"Man-vrouw",deathPlace:"Overlijdensplaats"}},map:{label:"Kaart",title:"Slachtoffers",description:"Ontdek lokale gebeurtenissen en belangrijke plekken tijdens de Tweede Wereldoorlog op de kaart. Beweeg en zoom in voor meer details."},placeMaps:{instruction:function(R){return"Gebruik de interactieve kaarten van ".concat(R," om verschillende belangrijke gebeurtenissen te zien. Pauzeer of klik op de tijdlijn om zelf rond te kijken.")},scrubber:{play:"Afspelen",pause:"Pauzeer"},buttons:{open:"Bekijk de gebeurtenissen"}},provinceCard:{preTitle:"Wat gebeurde er nog meer in de ",label:"Provincie"},search:{title:"Zoek naar bronnen over ",placeholder:function(R){return"Zoek een foto, video of andere oorlogsbron over ".concat(R,"...")},placeholderMobile:function(R){return"Zoek een foto, video of bron over ".concat(R,"...")},placeholderPlaceOnly:function(R){return"Zoek een plaats binnen ".concat(R,"...")}}}},59239:function(R,W){"use strict";var noResultPre=function(R){switch(R){case"gebeurtenissen":return"Geen gebeurtenissen gevonden";case"mensen":return"Geen mensen gevonden";case"foto":return"Geen foto's gevonden";case"video":return"Geen video's gevonden";default:return"Geen bronnen gevonden"}};W.Z={inputPlaceholder:"Zoek door miljoenen bronnen en levens",inputSubmitButton:"Zoeken",headerInputPlaceholder:"Zoek door miljoenen bronnen en levens",facetTranslation:function(R){switch(R){case"organization":return"Organisatie";case"spatial":return"Plaats";case"province":case"place":return"Provincie";case"topic":return"Thema";case"class":return"Materiaal";case"rights":return"Rechten";default:return R}},classTranslation:function(R){switch(R){case"http://schema.org/Event":return"Gebeurtenissen";case"http://schema.org/Person":return"Mensen";case"http://schema.org/Photograph":return"Foto's";case"http://schema.org/VideoObject":return"Video's";case"http://schema.org/WebPage":return"Artikelen";default:return R}},sortTranslation:function(R){switch(R){case"old":return"Datum (oud - nieuw)";case"new":return"Datum (nieuw - oud)";default:return"Relevantie"}},submitSearch:"Zoekopdracht indienen",noFilters:"Geen filters beschikbaar",invalidDate:"Voer een geldige datum in",dateReversed:"De tot datum moet na de van datum liggen",locationSearchButton:"Locatie op kaart",filterTitle:"Filter zoekresultaten",filterButton:"Filters",filterOn:"Filter op",sortOn:"Sorteer op",suggestionsText:"Wil je zoeken op:",suggestedEntitiesText:"Ga direct naar:",filterClose:"Sluiten",filterClear:"Filters wissen",filterApply:"Filter toepassen",filterActive:"Gefilterd op:",filterRemove:"Filters wissen",facetFilterPlaceholder:"Zoek op filter...",facetFilterNoResults:"Geen filters gevonden",facetFilterNeedMore:"Probeer een langere zoekterm",facetFilterSearching:"Zoeken...",facetFilterMore:"Meer opties tonen",resultsInDrawer:"Bronnen in ",checkOutClass:"Bekijk alle ",noResultsTitle:function(R){return"".concat(noResultPre(R))},noResultsSubTitlePre:"De zoekopdracht",noResultsSubTiteSuf:"heeft geen resultaten opgeleverd.",noResultsTip:"Probeer een van deze suggesties.",knowledgeGraph:{description:"Omschrijving",related:"Ook interessant",location:"Kaart",events:"Gebeurtenissen",more:"Meer over dit onderwerp"}}},68595:function(R,W){"use strict";W.Z={propertyTranslation:function(R){switch(R){case"publisher":return"Organisatie";case"type":return"Type";case"subject":return"Trefwoorden";case"collection":return"Collectie";case"rights":return"Rechten";case"identifier":return"Identificatienummer";case"date":return"Datum";case"contentLocation":return"Locatie";case"source":return"Bron";case"thumbnail":return"Afbeelding";case"provenance":return"Herkomst";case"hasPart":return"Heeft onderdeel";case"isPartOf":return"Onderdeel van";case"language":return"Taal";case"place":return"Plaats";case"province":return"Provincie";case"series":return"Serie";case"archive":return"Archief";case"newspaper":return"Krant";case"creator":return"Vervaardiger";case"format":return"Formaat";case"contentUrl":return"Directe link";case"disambiguatingDescription":return"In Oorlogsbronnen in set";default:return R}},titles:{date:"Deze bron in de tijd",more:"Uitgebreide gegevens over deze bron",location:"Locatie",relatedThesaurusObjects:"Bronnen bij dit thema",relatedObjects:"Ook interessant",today:"De Tweede Wereldoorlog",textWithDate:function(R){return"dit gebeurde er op ".concat(R,".")}},buttons:{backToFilteredSources:"Vorige",backToAll:"Alle bronnen",toSource:"Bekijk bron",goToSource:"Bekijk deze bron",seeSource:"Bekijk bron",modes:{list:"Lijstweergave",map:"Kaartweergave",grid:"Overzichtweergave"},provincePre:"Meer over "},detail:{buttons:{toSource:"Bron bekijken",toAllSources:"Bekijk alle bronnen",enlarge:"Vergroten",play:"Video afspelen",share:"Bron delen",expandText:"Toon meer",collapseText:"Toon minder",expandProperties:"Meer informatie",collapseProperties:"Minder informatie"},relatedPersons:{title:"Gerelateerde mensen",viewMore:"Bekijk alle mensen"},disclaimer:{title:"Disclaimer over kwetsend taalgebruik",text:"Bij bronnen vindt u soms teksten met termen die we tegenwoordig niet meer zouden gebruiken, omdat ze als kwetsend of uitsluitend worden ervaren.",linkText:"Lees meer"},audio:{title:"Luister naar:"}}}},747:function(R,W){"use strict";W.Z={suggestPage:{title:"Suggesties voor de tijdlijn van",subtitle:function(R){return"Op deze pagina kunt u een foto toevoegen aan de tijdlijn van ".concat(R,'. Wilt u andere gegevens op de tijdlijn aanpassen omdat deze niet correct zijn? Dan vragen we u te mailen naar <a href="mailto:info@oorlogsbronnen.nl">info@oorlogsbronnen.nl</a>.')}},suggestWizard:{title:"Wat wil je gaan doen?",options:{addSource:"Gebeurtenis toevoegen",personImage:"Profielfoto toevoegen",personImageCrop:"Profielfoto bijsnijden",undatedEvents:"Gebeurtenis aanpassen"}},suggestForm:{disabled:"Door een technische storing is het momenteel niet mogelijk om foto's toe te voegen of bij te snijden.",titles:{addSource:"Gebeurtenis toevoegen",personImage:function(R){return"Nieuwe foto aanleveren ".concat(R?"van ".concat(R):"voor deze persoon")},personImageCrop:"Uitsnede aanpassen",undatedEvents:"Gebeurtenis zonder datering"},subtitles:{addSource:function(R){return"Met dit formulier kun je gebeurtenissen uit de tweede Wereldoorlog die betrekking hadden op het leven van ".concat(R," voorstellen. Wij controleren alle suggesties en zullen relevante gebeurtenissen aan de tijdlijn toevoegen. Als we naar aanleiding van je bijdrage nog vragen hebben zouden we je graag nog even willen e-mailen.")}},labels:{eventSubject:"Waar gaat de gebeurtenis over?",eventDescription:"Omschrijf de bron",eventStartDate:"Wanneer vond dit plaats?",eventEndDate:"Wanneer eindigde dit?",eventStartLocation:"Waar vond dit plaats?",eventStartWithEndLocation:"Waar begon dit?",eventEndLocation:"Waar eindigde dit?",eventSource:"Welke bron heb je daar voor?",eventLinkSource:"Link naar een webpagina over deze gebeurtenis",eventUploadSource:"Upload bron",photoSource:"Welke bron heb je daar voor?",photoLinkSource:"Link naar de foto",photoUploadSource:"Upload foto",photoUploadDescription:"Documentatie",photoUploadTitle:"Titel",photoPermission:"Ik ga akkoord met de publicatie ...",eventPermission:"Ik ben akkoord met de publicatie ...",undatedEventSingleDate:"Wanneer vond dit plaats?",undatedEventStartDate:"Wat was de startdatum?",undatedEventEndDate:"Wat was de einddatum?",userContact:"E-mailadres",copyright:"Auteursrechten"},descriptions:{eventSource:"Deel een link of upload een PDF, JPG of PNG formaat (max. 2MB)",eventSourcePhotoUpload:function(R){return R?"Deel een link of upload een foto in JPG of PNG formaat (max. 2MB) van zodat wij ".concat(R," een gezicht kunnen geven."):"Deel een link of upload een foto in JPG of PNG formaat (max. 2MB)."},userContact:"Mochten wij nog vragen hebben naar aanleiding van deze aanpassing dan zouden we graag even contact op willen nemen.",copyright:"Wij mogen op onze website alleen beeldmateriaal tonen waar geen auteursrechten op rusten, waar de vervaardiger toestemming voor heeft gegeven of die u zelf hebt gemaakt.",photoUpload:"In dit veld kunt u nog wat informatie kwijt over de foto. Bijvoorbeeld, wie wanneer de foto gemaakt heeft of bij een groepsfoto om wie het gaat. Deze gegevens worden niet gepubliceerd, maar helpen ons bij het verbeteren van de pagina."},optionalTexts:{fileUploadTypes:"(.pdf, .jpg of .png)",fileImageUploadTypes:"(.jpg of .png)"},placeholders:{eventSubject:"Selecteer een onderwerp...",eventDescription:"Omschrijf hier kort de inhoud van de bron en geef aan waar de bron zich bevindt en wie de eigenaar van de bron is.",eventDateDay:"Dag",eventDateMonth:"Maand",eventDateYear:"Jaar",eventLocation:"Plaatsnaam...",eventSource:"Plak hier de url van de bron",imageSource:"Plak hier de url van de foto",imageTitle:"Vul hier een titel voor deze foto in",userContact:"E-mailadres",photoUpload:"Vul hier uw informatie in",copyrightOptions:"Kies een auteursrecht"},buttons:{upload:"Upload bestand",submit:"Verzenden",submitCrop:"Opslaan",save:"Uitsnede opslaan",addAnother:"Nog een gebeurtenis toevoegen",addAnotherPhoto:"Nieuwe profielfoto uploaden",doSuggestion:"Doe suggestie",backButton:"Terug naar de tijdlijn",uploadDone:"Gelukt!"},errorMessages:{subject:"Het is verplicht om een onderwerp te kiezen",description:"Het is verplicht om een omschrijving toe te voegen.",sourceUrl:"Dit is geen geldige webpagina",sourceUpload:"Het is verplicht om een bron toe te voegen.",emailAddress:"Het is verplicht om een e-mailadres toe te voegen.",disclaimer:"Het is verplicht om akkoord te gaan met de voorwaarden.",cropError:"Het is niet gelukt om deze uitsnede in te sturen, probeer het (later) nog eens",photoError:"Het is niet gelukt om deze foto in te sturen, probeer het (later) nog eens",eventError:"Het is niet gelukt om deze gebeurtenis in te sturen, probeer het (later) nog eens",date:"Dit is geen geldige datum",tooBig:"Het bestand dat je probeer te uploaden is te groot, deze mag maximaal 2MB zijn.",noFromToDatesGiven:"Vul ten minste \xe9\xe9n geldige datum",imageType:"Het is verplicht om een soort foto te selecteren",imageCopyright:"Het is verplicht een auteursrecht te selecteren"},feedback:{sent:"Verzonden!",cropSent:"Je uitsnede is verzonden. We gaan je bijdrage nu verwerken en zo snel mogelijk online zetten. Bedankt voor je hulp bij het verbeteren van deze tijdlijn.",photoSent:"Je foto is verstuurd, we gaan ons best doen deze aan onze dataset toe te voegen en op de tijdlijn te tonen.",eventSent:"Je gebeurtenis is verstuurd, we gaan ons best doen deze aan onze dataset toe te voegen en op de tijdlijn te tonen.",undatedSent:"Je suggestie is verstuurd, we gaan ons best doen deze aan onze dataset toe te voegen en op de tijdlijn te tonen."},doAnotherSuggestion:"Nog een aanpassing doorgeven"},suggestButtonLabels:{cropImage:"Portretfoto bijsnijden",uploadImage:"Voeg een foto toe"}}},45995:function(R,W){"use strict";W.Z={propertyTranslation:function(R){switch(R){case"thing":return"Thema";case"spatialThing":case"place":return"Plaats";case"pointOfInterest":return"Locatie";case"province":return"Provincie";case"event":return"Gebeurtenis";case"organization":case"photograph":return"Organisatie";case"article":return"Artikel";case"person":return"Mens";case"planeCrash":return"Vliegtuigcrash";case"https://oorlogsbronnen.nl/event/Bombardement":return"Bombardement";default:return R}},parentTheme:"Hoofdthema: ",shareText:"Deel dit thema",moreSources:"Bekijk alle bronnen over ",provincePrefix:"Meer over",titles:{articles:"Artikelen",events:"Gebeurtenissen",custom_map:"Op de kaart",persons:"Mensen",sources:"Bronnen",map:"Kaart",videos:"Video's",announcements:"Bekendmakingen",photographs:"Foto's",organizations:"Gerelateerde organisaties",places:"Plaatsen",relatedThemes:"Verder lezen",externalSources:"Externe bronnen",news:"Nieuws en agenda",placePersons:"Wie waren dat?",poi_items:"Deze onderwerpen zijn aan deze locatie verbonden:"}}},25978:function(R,W,G){"use strict";var J=G(59499),et=G(4730);G(67294);var er=G(70643),en=G(85893),ei=["label"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var eo=(0,er.ZP)(function(R){var W=R.label,G=(0,et.Z)(R,ei);return W?(0,en.jsx)("label",_objectSpread({},G)):(0,en.jsx)("span",_objectSpread({},G))}).withConfig({displayName:"ScreenReaderText",componentId:"sc-13e20gx-0"})(["position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;border:0 !important;"]);W.Z=eo},86569:function(R,W,G){"use strict";G.d(W,{w:function(){return ec}});var J,et=G(71383),er=G(70643),en=G(4129),ei=G(37184),eo=G(59409),es=G(74498),ec=(0,er.iv)(["position:relative;background:",";color:",";border:none;padding:0 23px;min-height:45px;border-radius:25px;text-decoration:none;transition:background ",";display:inline-flex;text-align:center;margin:0 ","px 0 0;clear:left;font-weight:300;cursor:pointer;justify-content:center;align-items:center;&:hover{text-decoration:none;background:",";color:",";}"],en.ZP.colors.primary,en.ZP.colors.white,en.ZP.transitions.quick,en.ZP.dist.xs,en.ZP.colors.primaryDark,en.ZP.colors.white),el=er.ZP.div.withConfig({displayName:"Btnstyles__StyledBtn",componentId:"sc-1t80je7-0"})(["font-size:","px;position:relative;background:",";color:",";border:none;padding:0 23px;min-height:45px;border-radius:25px;text-decoration:none;transition:background ",";display:flex;font-weight:300;cursor:pointer;justify-content:center;align-items:center;a{color:inherit;display:inherit;line-height:1;justify-content:center;align-items:center;&:before{content:'';position:absolute;width:100%;height:100%;top:0;left:0;}}.btn-inner{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:12px;}&:hover{text-decoration:none;",";a,span{text-decoration:none;}",";}","{display:block;transition:transform ",";margin:",";}.btn-inner{","{margin:-3px 0 0 12px;}}"," ",";",";"],en.ZP.fontSizes.base,function(R){return R.color?R.color:en.ZP.colors.primary},function(R){return R.color===en.ZP.colors.white?en.ZP.colors.primary:en.ZP.colors.white},en.ZP.transitions.quick,function(R){return R.reverseHover?(0,er.iv)(["color:",";background:",";"],R.color?R.color:en.ZP.colors.primary,R.color===en.ZP.colors.white?en.ZP.colors.primary:en.ZP.colors.white):(0,er.iv)(["background:",";"],R.color?(0,eo.Z)(R.color):en.ZP.colors.text)},function(R){return R.arrowIcon&&(0,er.iv)(["","{transform:translateX(4px);}"],ei.Z)},ei.Z,en.ZP.transitions.quick,function(R){return R.iconRight?"-3px 0 0 12px":"-3px 12px 0 0"},ei.Z,es.Z.sm(J||(J=(0,et.Z)(["\n        padding: 0 ","px;\n     "])),en.ZP.dist.md),function(R){return R.disabled&&(0,er.iv)(["pointer-events:none;opacity:0.5;"])},function(R){return R.centered&&(0,er.iv)(["padding:0 ","px;","{position:absolute;top:50%;transform:translate(0,-50%);","}&:hover{",";}"],2*en.ZP.dist.md,ei.Z,R.iconRight?(0,er.iv)(["right:","px;"],en.ZP.dist.md):(0,er.iv)(["left:","px;"],en.ZP.dist.md),R.arrowIcon&&(0,er.iv)(["","{transform:translate(4px,-50%);}"],ei.Z))});W.Z=el},9558:function(R,W,G){"use strict";var J=G(59499),et=G(4730);G(67294);var er=G(86569),en=G(1702),ei=G(77081),eo=G(25978),es=G(85893),ec=["color","href","click","className","icon","iconSize","type","iconRight","screenReaderText","children"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R){var W=R.color,G=R.href,J=R.click,el=R.className,eu=R.icon,ed=R.iconSize,ep=R.type,ef=R.iconRight,eh=R.screenReaderText,eg=R.children,em=(0,et.Z)(R,ec),Inner=function(){return(0,es.jsxs)(es.Fragment,{children:[eu&&!ef&&(0,es.jsx)(en.Z,{size:ed||14,name:eu}),(0,es.jsx)("span",{className:"btn-inner",children:eg}),eu&&ef&&(0,es.jsx)(en.Z,{size:ed||14,name:eu}),eh&&(0,es.jsx)(eo.Z,{children:eh})]})};return G?(0,es.jsx)(er.Z,_objectSpread(_objectSpread({color:W,className:el,iconRight:ef,arrowIcon:"arrow"===eu},em),{},{children:(0,es.jsx)(ei.Z,{url:G,children:(0,es.jsx)(Inner,{})})})):(0,es.jsx)(er.Z,_objectSpread(_objectSpread({color:W,onClick:J,type:void 0===ep?"button":ep,className:el,as:"button",iconRight:ef,arrowIcon:"arrow"===eu},em),{},{children:(0,es.jsx)(Inner,{})}))}},36568:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=G(37184),en=G(59409),ei=J.ZP.a.withConfig({displayName:"BtnTextstyles__StyledBtnText",componentId:"sc-o6yh4y-0"})(["display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;color:",";transition:color ",";cursor:pointer;text-align:left;font-weight:700;","{color:",";transition:transform ",",color ",";transform:translateX(-3px);margin-top:4px;","}&:disabled{opacity:0.5;pointer-events:none;}&:hover{text-decoration:none;color:",";","{color:",";transform:translateX(3px);",";}}"],function(R){return R.color||et.ZP.colors.textLight},et.ZP.transitions.quick,er.Z,function(R){return R.color||et.ZP.colors.textLight},et.ZP.transitions.quick,et.ZP.transitions.quick,function(R){return R.reverse?(0,J.iv)(["margin-right:15px;transform:translateX(3px) rotate(180deg);"]):(0,J.iv)(["margin-left:15px;"])},function(R){return R.color?(0,en.Z)(R.color):et.ZP.colors.textLight},er.Z,function(R){return R.color?(0,en.Z)(R.color):et.ZP.colors.textLight},function(R){return R.reverse&&(0,J.iv)(["transform:translateX(-3px) rotate(180deg);"])});W.Z=ei},54814:function(R,W,G){"use strict";G(67294);var J=G(36568),et=G(1702),er=G(41664),en=G.n(er),ei=G(14621),eo=G(85893);W.Z=function(R){var W=R.href,G=R.icon,er=R.disabled,es=R.className,ec=R.color,el=R.reverse,eu=R.click,ed=R.hideIcon,ep=R.children,inner=function(){return(0,eo.jsxs)(eo.Fragment,{children:[!el&&ep,!ed&&(0,eo.jsx)(eo.Fragment,{children:G?(0,eo.jsx)(et.Z,{size:15,name:G}):(0,eo.jsx)(et.Z,{size:15,name:"arrow"})}),el&&ep]})},ef=W&&("object"==typeof W||!(0,ei.Z)(W))?(0,eo.jsx)(en(),{legacyBehavior:!0,href:W,passHref:!0,children:(0,eo.jsx)(J.Z,{as:"a",className:es,reverse:el,onClick:eu,color:ec,children:inner()})}):(0,eo.jsx)(J.Z,{as:"a",href:W,target:"_blank",rel:"noopener",className:es,reverse:el,onClick:eu,color:ec,children:inner()});return W?(0,eo.jsx)(eo.Fragment,{children:ef}):(0,eo.jsx)(J.Z,{className:es,reverse:el,as:"button",type:"button",onClick:eu,color:ec,disabled:er,children:inner()})}},42389:function(R,W,G){"use strict";G.d(W,{Z:function(){return CustomSpinner_CustomSpinner}}),G(67294);var J=G(70643),et=G(4129),er=J.ZP.div.withConfig({displayName:"CustomSpinnerstyles__StyledCustomSpinner",componentId:"sc-1z0ezqq-0"})(["width:40px;height:40px;color:",";position:relative;.dot{background-color:currentColor;width:17px;height:17px;border-radius:50%;position:absolute;right:30%;bottom:0;&:first-of-type{width:7px;height:7px;right:10%;top:4%;}&:last-of-type{width:13px;height:13px;left:6%;top:10%;}}"],function(R){return R.lightBg?et.ZP.colors.secondaryLight:et.ZP.colors.secondary}),en=G(68846),ei=G(85893),CustomSpinner_CustomSpinner=function(R){var W=R.lightBg;return(0,ei.jsxs)(er,{lightBg:W,children:[(0,ei.jsx)(en.ww.div,{className:"dot",animate:{opacity:[0,1,0],transition:{default:{duration:3,loop:1/0,repeatDelay:1.5,delay:0}}}}),(0,ei.jsx)(en.ww.div,{className:"dot",animate:{opacity:[0,1,0],transition:{default:{duration:3,loop:1/0,repeatDelay:1.5,delay:1}}}}),(0,ei.jsx)(en.ww.div,{className:"dot",animate:{opacity:[0,1,0],transition:{default:{duration:3,loop:1/0,repeatDelay:1.5,delay:1.5}}}})]})}},77081:function(R,W,G){"use strict";G(67294);var J=G(41664),et=G.n(J),er=G(14621),en=G(85893);W.Z=function(R){var W=R.url,G=R.children,J=R.prefetch,ei=R.title;return"object"!=typeof W&&(0,er.Z)(W)?(0,en.jsx)("a",{href:W,target:"_blank",rel:"noopener",title:ei,children:G}):(0,en.jsx)(et(),{legacyBehavior:!0,href:W,prefetch:J,children:(0,en.jsx)("a",{title:ei,children:G})})}},37184:function(R,W,G){"use strict";var J=G(70643),et=J.ZP.div.withConfig({displayName:"Iconstyles__StyledIcon",componentId:"sc-6jq1lb-0"})(["display:flex;justify-content:center;align-items:center;> div{display:flex;justify-content:center;align-items:center;}",""],function(R){return R.size&&(0,J.iv)(["svg{width:","px;height:","px;}"],R.size,R.size)});W.Z=et},1702:function(R,W,G){"use strict";G.d(W,{Z:function(){return Icon_Icon}}),G(67294);var J=G(37184),et=G(30488),er=G.n(et),en={};en.announcementHeaderPathBottom='<svg width="1241" height="354" viewBox="0 0 1241 354" fill="none" xmlns="http://www.w3.org/2000/svg">     <path         d="M1 580c113.09-101.982 140-288 264.42-336.149 203.269-78.662 397.545 130.858 557.233-53.252C966.309 24.973 1129.28-18.896 1240.81 8.406"         stroke="url(#a)" stroke-opacity=".3" stroke-width="1.4" stroke-dasharray="4 4"/>              <linearGradient  x1="1184" y1="-10" x2="-75.379" y2="439" gradientUnits="userSpaceOnUse">             <stop offset=".436" stop-color="currentColor"/>             <stop offset="1" stop-color="currentColor" stop-opacity="0"/>         </linearGradient>      </svg> ',en.announcementHeaderPathTop='<svg width="1390" height="366" viewBox="0 0 1390 366" fill="none" xmlns="http://www.w3.org/2000/svg">     <path         d="M1-27c232 298 485.594 134.605 773 298 343 195 303.63-142.432 433.81-208.716C1338-4 1368.99 142.5 1367.92 234.067 1365.71 423.268 2001.41 83.233 2158 365"         stroke="url(#a)" stroke-opacity=".3" stroke-width="1.4" stroke-dasharray="4 4"/>              <linearGradient  x1="1421" y1="95" x2="-85" y2="93" gradientUnits="userSpaceOnUse">             <stop stop-color="currentColor"/>             <stop offset=".91" stop-color="currentColor" stop-opacity="0"/>         </linearGradient>      </svg> ',en.arrow='<svg viewBox="0 0 14 9" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M.5 4.156h12v1.5H.5z"/><path d="M9.543.883L13.56 4.9 12.5 5.96 8.483 1.943z"/><path d="M8.483 7.863L12.5 3.846l1.06 1.06-4.017 4.018z"/></g></svg> ',en.arrowLong='<svg viewBox="0 0 24 9" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M.8 3.484h22v1.5H.8z"/><path d="M19.843.211l4.017 4.017-1.06 1.06-4.017-4.016z"/><path d="M18.783 7.191L22.8 3.174l1.06 1.06-4.017 4.018z"/></g></svg> ',en.calendar='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><g stroke="currentColor" stroke-width="1.7" fill="none" fill-rule="evenodd"><path d="M1 2.09h12v9.8A1.11 1.11 0 0 1 11.89 13H2.11A1.11 1.11 0 0 1 1 11.89v-9.8Z" stroke-linejoin="round"/><path d="M1 5.909h11.559"/><g stroke-linecap="round"><path d="M3.727 1v2.182M10.273 1v2.182"/></g></g></svg> ',en.calendarInBox='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32" width="32" height="32"><path fill="currentColor" fill-rule="evenodd" d="M9.15 11.09c0-.469.38-.85.85-.85h12c.47 0 .85.381.85.85v9.8a1.96 1.96 0 0 1-1.96 1.96h-9.78a1.96 1.96 0 0 1-1.96-1.96v-9.8Zm1.7.85v8.95c0 .144.116.26.26.26h9.78a.26.26 0 0 0 .26-.26v-8.95h-10.3Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M21.56 15.76H10v-1.7h11.56v1.7ZM12.727 9.15c.47 0 .85.38.85.85v2.182a.85.85 0 1 1-1.7 0V10c0-.47.38-.85.85-.85ZM19.273 9.15c.47 0 .85.38.85.85v2.182a.85.85 0 1 1-1.7 0V10c0-.47.38-.85.85-.85Z" clip-rule="evenodd"/></svg> ',en.caret='<svg viewBox="0 0 8 12" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M.726 2.203L2.058.87l5.19 5.191-1.331 1.332z"/><path d="M2.058 11.252L.726 9.92l5.19-5.19L7.249 6.06z"/></g></svg> ',en.caretThin='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 10"><path d="M1.744 1.209l7 7 7-7" stroke="currentColor" stroke-width="2" fill="none" fill-rule="evenodd" stroke-linecap="round"/></svg> ',en.check='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 10">     <path fill="none" stroke="currentColor" stroke-width="2" d="M.741 2.879l4.027 4.778 5.815-6.9"/> </svg> ',en.close='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M11.33.764l1.296 1.296L2.02 12.667.723 11.37z"/><path d="M.723 2.06L2.02.764 12.626 11.37l-1.296 1.297z"/></g></svg> ',en.crop='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32" width="32" height="32"><path fill="currentColor" fill-rule="evenodd" d="M10.689 10.673H21.31v10.623H10.69V10.673Zm1.7 1.7v7.223h7.222v-7.223H12.39Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M10.689 20.477V7h1.7v13.477h-1.7ZM19.611 25V11.523h1.7V25h-1.7Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M11.539 19.596h13.476v1.7H11.54v-1.7ZM6.985 10.673H20.46v1.7H6.985v-1.7Z" clip-rule="evenodd"/></svg> ',en.download='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M7.854 9.484L6.56 8.19l3.595-3.596a.915.915 0 111.294 1.294L7.854 9.484z"/><path d="M4.258 4.594a.915.915 0 011.294 0L9.148 8.19 7.854 9.484 4.258 5.888a.915.915 0 010-1.294z"/><path d="M8.764 6.974h-1.83v-6h1.83z"/><g><path d="M15.237 15.92h-1.83v-5.086a.915.915 0 011.83 0v5.085zM2.225 15.92H.395v-5.086a.915.915 0 011.83 0v5.085z"/><path d="M.394 15.92v-1.83h14.843v1.83z"/></g></g></svg> ',en.external='<svg viewBox="0 0 16 15" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="currentColor"><path d="M15.031.026v1.83h-6V.026z"/><path d="M15.031 6.026h-1.83v-6h1.83z"/></g><g fill="currentColor"><path d="M15.031 14.873h-1.83v-6h1.83z"/><path d="M.188 14.874v-1.83h14.843v1.83z"/><path d="M2.018 14.873H.188V.02h1.83z"/></g><path fill="currentColor" d="M12.612 1.156l1.294 1.294-4.242 4.243L8.37 5.399zM6.192.025v1.83h-6V.025z"/></g></svg> ',en.facebook='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"  fill="currentColor">     <path transform="translate(5 0)" d="M6.47409189,19.5469794 L6.47409189,10.8317656 L9.41799495,10.8317656 L9.85459074,7.42038198 L6.47409189,7.42038198 L6.47409189,5.21667794 C6.3837479,4.74866741 6.53478646,4.26664401 6.87619669,3.93340352 C7.21760693,3.60016302 7.70380245,3.46020097 8.1705784,3.56078733 L9.97933239,3.56078733 L9.97933239,0.510462519 C9.10512474,0.41714953 8.22647367,0.371430693 7.34728347,0.37350916 C6.1358592,0.286674155 4.94784451,0.73821617 4.10114318,1.60730597 C3.25444185,2.47639576 2.83548313,3.67431872 2.95637722,4.88051969 L2.95637722,7.37058076 L0,7.37058076 L0,10.7819644 L2.94390306,10.7819644 L2.94390306,19.4971782 L6.47409189,19.4971782 L6.47409189,19.5469794 Z"/> </svg> ',en.female='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 70"><g transform="translate(2.746 3.005)" stroke="currentColor" stroke-width="5" fill="none" fill-rule="evenodd"><circle cx="21.908" cy="21.908" r="21.908"/><path d="M21.908 43.817V66M13.794 57.335h16.228"/></g></svg> ',en.filter='<svg viewBox="0 0 10 11" xmlns="http://www.w3.org/2000/svg"><path d="M9.014.1H.406a.402.402 0 00-.36.234.46.46 0 00.031.454L3.553 5.64c0 .002.002.003.003.005a1 1 0 01.177.569v3.855c0 .114.041.223.117.304a.391.391 0 00.444.093l1.144-.719c.159-.052.264-.211.264-.403v-3.13a1 1 0 01.177-.57l.003-.004L9.342.788a.46.46 0 00.032-.454.402.402 0 00-.36-.234z" fill="currentColor" fill-rule="nonzero"/></svg> ',en.geo='<svg viewBox="0 0 10 11" xmlns="http://www.w3.org/2000/svg"><path d="M1.88 7.808C.09 6.018.065 3.143 1.823 1.386c1.757-1.758 4.633-1.731 6.423.059s1.816 4.665.059 6.422L5.122 11.05 1.88 7.81zm3.243-1.733a1.619 1.619 0 100-3.238 1.619 1.619 0 000 3.238z" fill="currentColor" fill-rule="evenodd"/></svg> ',en.geoOutline='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 16"><path d="M7.012 1.135a5.788 5.788 0 0 1 4.125 1.699 5.785 5.785 0 0 1 1.697 3.978 5.846 5.846 0 0 1-1.34 3.86l-.192.22-4.322 4.332-4.129-4.129c-1.127-1.218-1.67-2.709-1.666-4.169a5.752 5.752 0 0 1 1.7-4.071 5.847 5.847 0 0 1 4.127-1.72ZM7 5.895a.927.927 0 0 0-.656.27.907.907 0 0 0 0 1.29c.168.167.4.27.656.27a.927.927 0 0 0 .656-.27.907.907 0 0 0 0-1.29.927.927 0 0 0-.656-.27Z" stroke="currentColor" stroke-width="1.7" fill="none" fill-rule="evenodd" stroke-linejoin="round"/></svg> ',en.grid='<svg viewBox="0 0 12 13" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M.125.807h2.541v2.541H.126zM4.766.807h2.541v2.541h-2.54zM9.407.807h2.541v2.541h-2.54z"/><g><path d="M.125 5.456h2.541v2.54H.126zM4.766 5.456h2.541v2.54h-2.54zM9.407 5.456h2.541v2.54h-2.54z"/></g><g><path d="M.125 10.096h2.541v2.54H.126zM4.766 10.096h2.541v2.54h-2.54zM9.407 10.096h2.541v2.54h-2.54z"/></g></g></svg> ',en.info='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"> <rect width="20" height="20" fill="currentColor" rx="10"/>     <path stroke="#fff" stroke-width="1.545" d="M7.65 8.48h2.443v6.69M7.65 15.17h4.7"/>     <circle cx="10" cy="5.045" r="1.227" fill="#fff"/> </svg> ',en.instagram='<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" viewBox="0 0 21 21" fill="currentColor">     <path d="M10.3019957,1.97734174 C13.019147,1.97734174 13.3539619,1.97734174 14.4227939,1.97734174 C15.069051,1.98404165 15.7093684,2.10363724 16.3157856,2.33090616 C17.2031847,2.67945892 17.9046459,3.39276681 18.2474098,4.29515292 C18.4709042,4.91181172 18.5885135,5.56294326 18.5951022,6.22011474 C18.5951022,7.32009293 18.5951022,7.64746739 18.5951022,10.4105078 C18.5951022,13.1735483 18.5951022,13.5140177 18.5951022,14.6009009 C18.5885135,15.2580724 18.4709042,15.9092039 18.2474098,16.5258628 C17.9046459,17.4282489 17.2031847,18.1415568 16.3157856,18.4901095 C15.7093684,18.7173784 15.069051,18.836974 14.4227939,18.8436739 C13.3410844,18.8436739 13.019147,18.8436739 10.3019957,18.8436739 C7.58484431,18.8436739 7.25002945,18.8436739 6.1811974,18.8436739 C5.53494034,18.836974 4.89462292,18.7173784 4.28820569,18.4901095 C3.40080658,18.1415568 2.69934544,17.4282489 2.35658151,16.5258628 C2.13308711,15.9092039 2.01547779,15.2580724 2.00888915,14.6009009 C2.00888915,13.5009227 2.00888915,13.1735483 2.00888915,10.4105078 C2.00888915,7.64746739 2.00888915,7.30699795 2.00888915,6.22011474 C2.01547779,5.56294326 2.13308711,4.91181172 2.35658151,4.29515292 C2.69934544,3.39276681 3.40080658,2.67945892 4.28820569,2.33090616 C4.89462292,2.10363724 5.53494034,1.98404165 6.1811974,1.97734174 C7.26290694,1.97734174 7.58484431,1.97734174 10.3019957,1.97734174 L10.3019957,1.97734174 Z M6.09105494,0.170234719 C5.24589617,0.188541446 4.40990003,0.35236569 3.61857598,0.65474892 C2.25333864,1.19363876 1.17381459,2.29139455 0.643874729,3.67968893 C0.346513536,4.48437741 0.185410115,5.3344924 0.16740743,6.19392479 C0.16740743,7.29390297 0.16740743,7.64746739 0.16740743,10.4759827 C0.16740743,13.3044981 0.16740743,13.6449675 0.16740743,14.7580407 C0.185410115,15.617473 0.346513536,16.467588 0.643874729,17.2722765 C1.17370393,18.6681737 2.25873956,19.7715342 3.63145347,20.3103115 C4.42277753,20.6126947 5.25877366,20.776519 6.10393243,20.7948257 C7.18564198,20.7948257 7.53333433,20.7948257 10.3148732,20.7948257 C13.096412,20.7948257 13.4312268,20.7948257 14.5258139,20.7948257 C15.3709727,20.776519 16.2069688,20.6126947 16.9982928,20.3103115 C18.3710068,19.7715342 19.4560424,18.6681737 19.9858716,17.2722765 C20.2832328,16.467588 20.4443362,15.617473 20.4623389,14.7580407 C20.4623389,13.6580625 20.4623389,13.3044981 20.4623389,10.4759827 C20.4623389,7.64746739 20.4623389,7.30699795 20.4623389,6.19392479 C20.4443362,5.3344924 20.2832328,4.48437741 19.9858716,3.67968893 C19.4501307,2.28611057 18.3604164,1.18750414 16.9854153,0.65474892 C16.1940913,0.35236569 15.3580952,0.188541446 14.5129364,0.170234719 L6.09105494,0.170234719 Z"/>     <path d="M10.3019957,5.14632651 C7.40739381,5.14632651 5.06085537,7.53249488 5.06085537,10.4759827 C5.06085537,13.4194706 7.40739381,15.8056389 10.3019957,15.8056389 C13.1965975,15.8056389 15.543136,13.4194706 15.543136,10.4759827 C15.543136,7.53249488 13.1965975,5.14632651 10.3019957,5.14632651 Z M10.3019957,13.933057 C8.42441608,13.933057 6.90233709,12.3852721 6.90233709,10.4759827 C6.90233709,8.56669331 8.42441608,7.01890843 10.3019957,7.01890843 C12.1795752,7.01890843 13.7016542,8.56669331 13.7016542,10.4759827 C13.7016542,12.3852721 12.1795752,13.933057 10.3019957,13.933057 Z"/>     <ellipse cx="15.749" cy="4.937" rx="1.223" ry="1.244"/> </svg> ',en.landscape='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32"><path fill="currentColor" fill-rule="evenodd" d="M7.15 23.1V8.9h17.7v14.2H7.15Zm1.7-1.7h14.3V10.6H8.85v10.8Z" clip-rule="evenodd"/><path fill="currentColor" d="M17.554 12.927a.608.608 0 0 1 1.037.423.595.595 0 0 1-.176.423.608.608 0 0 1-1.037-.423c0-.165.067-.315.176-.423Z"/><path fill="currentColor" fill-rule="evenodd" d="M11.98 12.9a.85.85 0 0 1 .66.29l4.332 4.944 2.489-2.041a.85.85 0 0 1 1.14.056l4 4-1.202 1.202-3.456-3.455-2.529 2.074a.85.85 0 0 1-1.178-.097l-4.206-4.8-3.366 4.208-1.328-1.062 4-5a.85.85 0 0 1 .645-.319Z" clip-rule="evenodd"/></svg> ',en.legend='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32"><path fill="currentColor" d="M9.163 7.397c0-.68.55-1.23 1.23-1.23h16.899a1.23 1.23 0 0 1 0 2.458h-16.9a1.23 1.23 0 0 1-1.229-1.228ZM9.163 16c0-.679.55-1.229 1.23-1.229h16.899a1.23 1.23 0 0 1 0 2.458h-16.9c-.679 0-1.229-.55-1.229-1.229ZM9.163 24.604c0-.68.55-1.23 1.23-1.23h16.899a1.229 1.229 0 1 1 0 2.458h-16.9c-.679 0-1.229-.55-1.229-1.228ZM6.705 7.397c0-.68-.55-1.23-1.229-1.23h-.768a1.23 1.23 0 1 0 0 2.458h.768c.679 0 1.23-.55 1.23-1.228ZM6.705 16c0-.679-.55-1.229-1.229-1.229h-.768a1.229 1.229 0 1 0 0 2.458h.768c.679 0 1.23-.55 1.23-1.229ZM6.705 24.604c0-.68-.55-1.23-1.229-1.23h-.768a1.229 1.229 0 1 0 0 2.458h.768c.679 0 1.23-.55 1.23-1.228Z"/></svg> ',en.link='<svg viewBox="0 0 11 10" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="nonzero"><path d="M6.383 3.781a2.263 2.263 0 00-3.201 0L1.126 5.84a2.263 2.263 0 003.2 3.203l1.697-1.697a.162.162 0 00-.115-.277h-.065a2.721 2.721 0 01-1.034-.2.162.162 0 00-.177.035l-1.22 1.222a.97.97 0 11-1.373-1.372L4.104 4.69a.97.97 0 011.37 0c.256.24.654.24.91 0a.647.647 0 00.187-.41.647.647 0 00-.188-.499z"/><path d="M9.502.663a2.263 2.263 0 00-3.201 0L4.605 2.357a.162.162 0 00.118.277h.06c.354-.001.705.068 1.033.202.06.025.13.01.176-.036l1.217-1.216a.97.97 0 111.373 1.373L7.065 4.472l-.013.014-.53.527a.97.97 0 01-1.37 0 .663.663 0 00-.91 0 .647.647 0 000 .912c.188.188.407.341.647.453.034.016.068.029.102.043.034.015.07.026.104.04.034.012.07.024.103.033l.096.026a2.25 2.25 0 00.436.063h.123l.097-.011c.035-.002.073-.01.115-.01h.055l.111-.016.052-.01.094-.02h.017c.398-.099.76-.304 1.05-.594l2.058-2.058a2.263 2.263 0 000-3.201z"/></g></svg> ',en.linkedin='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M2.795 4.972A2.295 2.295 0 01.492 2.686 2.295 2.295 0 012.795.4a2.295 2.295 0 012.302 2.286 2.296 2.296 0 01-2.302 2.286zM.863 19.364h3.973V6.677H.863zM19.76 19.495h-3.97v-6.17c0-1.472-.027-3.364-2.064-3.364-2.067 0-2.384 1.603-2.384 3.258v6.276h-3.97V6.808h3.811v1.733h.053c.53-.997 1.826-2.049 3.759-2.049 4.022 0 4.765 2.628 4.765 6.044v6.959z"/></g></svg> ',en.list='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M.73.807h2.541v2.541H.731zM.73 5.456h2.541v2.54H.731zM.73 10.096h2.541v2.54H.731zM5.371.807h7.177v2.541H5.371zM5.371 5.456h7.177v2.541H5.371zM5.371 10.096h7.177v2.541H5.371z"/></g></svg> ',en.logo='<svg viewBox="0 0 124 45" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g fill="none" fill-rule="evenodd"><path  d="M.343.19h14.15v18.831H.343z"/><path  d="M.373.19h18.099v18.831H.373z"/><path d="M9.05 16.272c.732 0 1.438-.13 2.118-.392a5.052 5.052 0 001.805-1.19c.523-.531.941-1.194 1.255-1.988.314-.793.47-1.73.47-2.811 0-1.063-.156-1.996-.47-2.799-.314-.801-.732-1.469-1.255-2a5.052 5.052 0 00-1.805-1.19 5.862 5.862 0 00-2.119-.393c-.732 0-1.438.132-2.118.393a5.052 5.052 0 00-1.805 1.19c-.523.531-.941 1.199-1.255 2-.314.803-.47 1.736-.47 2.799 0 1.081.156 2.018.47 2.811.314.794.732 1.457 1.255 1.988a5.052 5.052 0 001.805 1.19c.68.262 1.386.392 2.118.392m0 3.034a9.857 9.857 0 01-3.321-.575 8.268 8.268 0 01-2.89-1.752c-.846-.785-1.53-1.766-2.053-2.942C.262 12.859 0 11.477 0 9.89c0-1.587.262-2.968.785-4.146.523-1.176 1.207-2.157 2.053-2.942a8.275 8.275 0 012.89-1.752A9.869 9.869 0 019.049.475c1.116 0 2.22.192 3.31.576a8.26 8.26 0 012.902 1.752c.845.785 1.53 1.766 2.053 2.942.523 1.178.785 2.56.785 4.146 0 1.587-.262 2.968-.785 4.146-.523 1.176-1.208 2.157-2.053 2.942a8.253 8.253 0 01-2.903 1.752 9.9 9.9 0 01-3.309.575M29.135 16.272c.733 0 1.439-.13 2.119-.392a5.052 5.052 0 001.804-1.19c.524-.531.942-1.194 1.256-1.988.314-.793.47-1.73.47-2.811 0-1.063-.156-1.996-.47-2.799-.314-.801-.732-1.469-1.256-2a5.052 5.052 0 00-1.804-1.19 5.862 5.862 0 00-2.119-.393c-.732 0-1.438.132-2.118.393a5.052 5.052 0 00-1.805 1.19c-.523.531-.941 1.199-1.255 2-.314.803-.47 1.736-.47 2.799 0 1.081.156 2.018.47 2.811.314.794.732 1.457 1.255 1.988a5.052 5.052 0 001.805 1.19c.68.262 1.386.392 2.118.392m0 3.034a9.857 9.857 0 01-3.321-.575 8.268 8.268 0 01-2.89-1.752c-.846-.785-1.53-1.766-2.053-2.942-.523-1.178-.785-2.56-.785-4.146 0-1.587.262-2.968.785-4.146.523-1.176 1.207-2.157 2.053-2.942a8.275 8.275 0 012.89-1.752 9.869 9.869 0 013.321-.576c1.116 0 2.22.192 3.31.576a8.26 8.26 0 012.902 1.752c.845.785 1.53 1.766 2.053 2.942.523 1.178.785 2.56.785 4.146 0 1.587-.262 2.968-.785 4.146-.523 1.176-1.208 2.157-2.053 2.942a8.253 8.253 0 01-2.903 1.752 9.9 9.9 0 01-3.309.575M44.304 7.694h4.237c.663 0 1.19-.174 1.583-.523.392-.349.588-.828.588-1.439 0-.61-.196-1.09-.588-1.438-.392-.349-.92-.523-1.583-.523h-4.237v3.923zM41.01.998c0-.174.087-.261.262-.261h7.14c.837 0 1.595.11 2.275.327.68.218 1.269.54 1.766.968.497.427.88.95 1.15 1.569.27.619.406 1.33.406 2.131 0 .576-.092 1.116-.275 1.622a5.086 5.086 0 01-.745 1.373c-.314.41-.676.767-1.086 1.073-.41.304-.833.545-1.268.719l3.897 8.264c.017.035.026.07.026.105 0 .104-.079.157-.236.157h-3.007c-.14 0-.262-.087-.366-.262l-3.924-8.055h-2.72v8.055c0 .175-.087.262-.261.262H41.27c-.175 0-.262-.087-.262-.262V.998zM57.094.998c0-.174.087-.261.261-.261h2.772c.175 0 .262.087.262.261v15.013h8.919c.174 0 .261.087.261.261v2.511c0 .175-.087.262-.261.262H57.355c-.174 0-.261-.087-.261-.262V.998zM80.423 16.272c.732 0 1.438-.13 2.118-.392a5.052 5.052 0 001.805-1.19c.523-.531.941-1.194 1.255-1.988.314-.793.471-1.73.471-2.811 0-1.063-.157-1.996-.47-2.799-.315-.801-.733-1.469-1.256-2a5.052 5.052 0 00-1.805-1.19 5.862 5.862 0 00-2.118-.393c-.733 0-1.439.132-2.119.393a5.052 5.052 0 00-1.804 1.19c-.523.531-.942 1.199-1.256 2-.314.803-.47 1.736-.47 2.799 0 1.081.156 2.018.47 2.811.314.794.733 1.457 1.256 1.988a5.052 5.052 0 001.804 1.19c.68.262 1.386.392 2.119.392m0 3.034a9.857 9.857 0 01-3.322-.575 8.268 8.268 0 01-2.89-1.752c-.846-.785-1.53-1.766-2.053-2.942-.523-1.178-.785-2.56-.785-4.146 0-1.587.262-2.968.785-4.146.523-1.176 1.207-2.157 2.053-2.942a8.275 8.275 0 012.89-1.752 9.869 9.869 0 013.322-.576c1.115 0 2.219.192 3.309.576a8.26 8.26 0 012.903 1.752c.845.785 1.53 1.766 2.052 2.942.524 1.178.785 2.56.785 4.146 0 1.587-.261 2.968-.785 4.146-.523 1.176-1.207 2.157-2.052 2.942a8.253 8.253 0 01-2.903 1.752 9.9 9.9 0 01-3.31.575M108.015 9.446c.174 0 .261.088.261.262v4.524c0 .402-.087.732-.261.994a8.682 8.682 0 01-1.373 1.674 8.454 8.454 0 01-1.778 1.295 9.138 9.138 0 01-2.08.824 8.87 8.87 0 01-2.25.287c-1.22 0-2.38-.196-3.478-.588a8.116 8.116 0 01-2.89-1.766c-.828-.784-1.486-1.765-1.974-2.942-.489-1.177-.733-2.55-.733-4.119 0-1.534.249-2.89.746-4.067s1.15-2.162 1.962-2.956a8.087 8.087 0 012.785-1.791 8.93 8.93 0 013.217-.601c.993 0 1.935.135 2.824.405.89.27 1.687.658 2.394 1.164a6.49 6.49 0 011.739 1.843c.453.724.75 1.54.889 2.446 0 .174-.096.262-.288.262h-2.746c-.157 0-.262-.088-.314-.262-.349-1.028-.928-1.756-1.739-2.184-.81-.427-1.73-.64-2.76-.64-.662 0-1.311.135-1.948.405a4.974 4.974 0 00-1.7 1.203c-.497.532-.898 1.194-1.203 1.987-.305.794-.458 1.722-.458 2.786 0 1.012.135 1.914.406 2.707.27.793.65 1.46 1.137 2a4.96 4.96 0 001.727 1.243 5.324 5.324 0 002.144.431c2.162 0 3.731-.75 4.708-2.249V12.48h-4.839c-.174 0-.261-.087-.261-.262v-2.51c0-.174.087-.262.261-.262h7.873z" fill="currentColor"/><g transform="translate(109.372 .285)"><mask  fill="#fff"></mask><path d="M.788 5.395c0-.837.178-1.578.536-2.223A5.132 5.132 0 012.75 1.537 6.364 6.364 0 014.79.531 8.441 8.441 0 017.196.19c1.01 0 1.926.152 2.746.457.82.305 1.525.71 2.118 1.216a5.451 5.451 0 011.373 1.74c.323.653.493 1.338.51 2.053 0 .174-.087.261-.261.261H10.91c-.157 0-.245-.087-.262-.261-.14-.82-.528-1.43-1.164-1.832-.637-.4-1.417-.6-2.34-.6-.855 0-1.579.165-2.171.496-.593.332-.89.837-.89 1.517 0 .384.118.72.353 1.007.236.288.55.545.942.771.393.228.854.432 1.386.615.532.183 1.086.353 1.661.51.785.21 1.538.458 2.262.746a9.272 9.272 0 011.936 1.033c.566.4 1.02.867 1.36 1.399.34.532.51 1.163.51 1.896 0 .925-.17 1.748-.51 2.472a5.157 5.157 0 01-1.426 1.83c-.61.497-1.351.872-2.223 1.125-.872.253-1.84.379-2.903.379-1.029 0-1.975-.161-2.838-.484a7.021 7.021 0 01-2.236-1.32A6.124 6.124 0 01.88 15.254a5.514 5.514 0 01-.536-2.406c0-.174.087-.262.262-.262h2.746c.157 0 .244.088.262.262.087 1.063.488 1.853 1.203 2.367.714.514 1.638.771 2.772.771 1.116 0 1.996-.222 2.642-.667.644-.445.967-1.033.967-1.765 0-.662-.38-1.212-1.138-1.648-.758-.435-1.765-.81-3.02-1.125a19.88 19.88 0 01-2.629-.836c-.776-.314-1.434-.68-1.974-1.098a4.21 4.21 0 01-1.23-1.478C.928 6.803.789 6.145.789 5.395" fill="currentColor" mask="url(#b)"/></g><path d="M4.132 40.738h4.29c.749 0 1.364-.217 1.844-.653.479-.436.719-1.064.719-1.883 0-.785-.24-1.404-.72-1.857-.48-.454-1.094-.68-1.843-.68h-4.29v5.073zm0-8.107h4.002c.61 0 1.115-.17 1.517-.51.4-.34.601-.867.601-1.583 0-.714-.2-1.233-.601-1.556-.402-.322-.907-.484-1.517-.484H4.132v4.133zM1.098 43.772c-.174 0-.261-.087-.261-.261V25.726c0-.174.087-.262.261-.262h7.01c.75 0 1.455.11 2.118.327a5.19 5.19 0 011.74.955c.497.419.884.928 1.163 1.53s.419 1.278.419 2.027c0 .872-.17 1.583-.51 2.131-.34.55-.79 1.043-1.347 1.478.784.35 1.42.885 1.91 1.608.487.725.731 1.662.731 2.812 0 .768-.13 1.483-.392 2.145a5.108 5.108 0 01-1.111 1.726 5.085 5.085 0 01-1.766 1.15c-.697.28-1.474.42-2.328.42H1.098zM21.106 32.421h4.237c.663 0 1.19-.174 1.583-.523.392-.348.588-.828.588-1.438s-.196-1.09-.588-1.438c-.393-.35-.92-.524-1.583-.524h-4.237v3.923zm-3.295-6.695c0-.174.087-.262.261-.262h7.14c.837 0 1.596.11 2.276.328.68.218 1.269.54 1.765.967.497.427.88.95 1.151 1.57.27.618.405 1.33.405 2.13 0 .576-.09 1.117-.274 1.622a5.086 5.086 0 01-.746 1.374c-.313.41-.675.767-1.085 1.072-.41.305-.833.545-1.268.719l3.896 8.265c.018.035.027.07.027.104 0 .105-.079.157-.236.157h-3.007c-.14 0-.262-.087-.367-.261l-3.923-8.056h-2.72v8.056c0 .174-.087.261-.261.261h-2.773c-.174 0-.261-.087-.261-.261V25.726z" fill="currentColor"/><g transform="translate(33.287 25.013)"><mask  fill="#fff"></mask><path d="M9.422 15.987c.733 0 1.439-.13 2.119-.392a5.052 5.052 0 001.804-1.19c.524-.531.942-1.194 1.256-1.988.314-.793.47-1.73.47-2.811 0-1.064-.156-1.997-.47-2.799-.314-.802-.732-1.469-1.256-2a5.052 5.052 0 00-1.804-1.19 5.862 5.862 0 00-2.119-.393c-.732 0-1.438.131-2.118.392a5.052 5.052 0 00-1.805 1.19c-.523.532-.941 1.2-1.255 2.001-.314.802-.47 1.735-.47 2.799 0 1.081.156 2.018.47 2.811.314.794.732 1.457 1.255 1.988a5.052 5.052 0 001.805 1.19c.68.262 1.386.392 2.118.392m0 3.034a9.857 9.857 0 01-3.321-.575 8.268 8.268 0 01-2.89-1.753c-.846-.784-1.53-1.765-2.053-2.942-.523-1.177-.785-2.558-.785-4.145 0-1.587.262-2.969.785-4.146.523-1.176 1.207-2.157 2.053-2.942A8.275 8.275 0 016.1.766 9.869 9.869 0 019.422.19c1.116 0 2.22.192 3.31.576a8.26 8.26 0 012.902 1.752c.845.785 1.53 1.766 2.053 2.942.523 1.177.785 2.56.785 4.146 0 1.587-.262 2.968-.785 4.145-.523 1.177-1.208 2.158-2.053 2.942a8.253 8.253 0 01-2.903 1.753 9.9 9.9 0 01-3.309.575" fill="currentColor" mask="url(#d)"/></g><path d="M66.876 43.772c-.193 0-.332-.07-.419-.209l-7.715-12.397v12.345c0 .174-.088.261-.262.261h-2.824c-.175 0-.262-.087-.262-.261V25.726c0-.174.087-.262.262-.262h2.798c.192 0 .331.07.418.21l7.716 12.397V25.726c0-.174.087-.262.261-.262h2.825c.174 0 .262.088.262.262v17.785c0 .174-.088.261-.262.261h-2.798zM85.706 43.772c-.192 0-.331-.07-.418-.209l-7.716-12.397v12.345c0 .174-.087.261-.261.261h-2.825c-.174 0-.261-.087-.261-.261V25.726c0-.174.087-.262.261-.262h2.799c.191 0 .33.07.418.21L85.42 38.07V25.726c0-.174.087-.262.261-.262h2.825c.174 0 .261.088.261.262v17.785c0 .174-.087.261-.261.261h-2.799zM96.35 40.738h8.632c.174 0 .261.088.261.262v2.51c0 .175-.087.262-.261.262H93.317c-.174 0-.261-.087-.261-.261V25.726c0-.174.087-.262.261-.262h11.272c.175 0 .262.088.262.262v2.51c0 .175-.087.262-.262.262h-8.238v4.133h7.454c.174 0 .261.087.261.261v2.511c0 .174-.087.262-.261.262H96.35v5.073zM120.308 43.772c-.192 0-.331-.07-.418-.209l-7.716-12.397v12.345c0 .174-.087.261-.261.261h-2.825c-.174 0-.261-.087-.261-.261V25.726c0-.174.087-.262.261-.262h2.799c.191 0 .33.07.418.21l7.716 12.397V25.726c0-.174.087-.262.261-.262h2.825c.174 0 .261.088.261.262v17.785c0 .174-.087.261-.261.261h-2.799z" fill="currentColor"/></g></svg> ',en.mail='<svg viewBox="0 0 12 9" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="nonzero"><path d="M10.373.5H1.419a.944.944 0 00-.41.096L5.876 5.46l1.09-1.048L10.782.596A.944.944 0 0010.373.5zM11.232 1.046L7.64 4.638l3.592 3.592a.944.944 0 00.096-.41V1.456a.944.944 0 00-.096-.41zM.56 1.046a.944.944 0 00-.096.409V7.82c0 .146.036.284.095.409l3.592-3.592L.56 1.046z"/><path d="M7.19 5.088L6.1 6.136a.317.317 0 01-.45 0L4.6 5.088 1.01 8.68c.125.06.263.095.41.095h8.954a.944.944 0 00.41-.095L7.19 5.088z"/></g></svg> ',en.male='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 74 73"><g transform="translate(4.093 4.28)" stroke="currentColor" stroke-width="5" fill="none" fill-rule="evenodd"><circle transform="rotate(45 29.802 35.32)" cx="29.802" cy="35.321" r="21.073"/><path d="M45.315 19.808l14.84-14.84"/><path stroke-linecap="round" d="M50.222 4.967h9.934v9.934"/></g></svg> ',en.map='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13.68 13.08"><path d="M12.73.91a3.11 3.11 0 00-5.22 1.58 6.13 6.13 0 01.69.57 5.37 5.37 0 011.53 3.66l.8.8 2.2-2.24a3.11 3.11 0 000-4.37zm-2.2 3.21a1.11 1.11 0 110-2.21 1.11 1.11 0 010 2.21z" fill="currentColor" fill-rule="evenodd"/><path d="M4.39 2.48a4.4 4.4 0 00-3.11 7.5l3.11 3.1 3.1-3.1a4.4 4.4 0 00-3.1-7.5zm0 5.8a1.56 1.56 0 111.55-1.55 1.56 1.56 0 01-1.55 1.55z" fill="currentColor" fill-rule="evenodd"/></svg> ',en.map_line='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none" viewBox="0 0 32 32"><path fill="currentColor" fill-rule="evenodd" d="M20 8c-.409 0-.796.081-1.148.227l-.766-1.847A4.988 4.988 0 0 1 20 6c.676 0 1.323.135 1.914.38l-.766 1.847A2.988 2.988 0 0 0 20 8Zm-2.773 1.852c-.146.352-.227.74-.227 1.148v2h-2v-2c0-.676.135-1.323.38-1.914l1.847.766ZM23 11c0-.409-.081-.796-.227-1.148l1.847-.766c.245.59.38 1.238.38 1.914v2h-2v-2ZM8 12a1 1 0 0 1 1 1v2H7v-2a1 1 0 0 1 1-1Zm-1 6v-3h2v3H7Zm16 0v-3h2v3h-2ZM7 21v-1.25h2V21c0 .409.081.796.227 1.148l-1.847.766A4.988 4.988 0 0 1 7 21Zm10-1v1c0 .676-.135 1.323-.38 1.914l-1.847-.766c.146-.352.227-.74.227-1.148v-1h2Zm6 0v-2h2v2a1 1 0 1 1-2 0Zm-11 6a4.987 4.987 0 0 1-1.914-.38l.766-1.847c.352.146.74.227 1.148.227.409 0 .796-.081 1.148-.227l.766 1.847c-.59.245-1.238.38-1.914.38Z" clip-rule="evenodd"/><path fill="currentColor" d="M17 13h-2v2h2v-2ZM15 20h2v-3h-2v3Z"/><path fill="currentColor" fill-rule="evenodd" d="M8 9a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm-3.5 1.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0ZM24 21a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm-3.5 1.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0Z" clip-rule="evenodd"/></svg> ',en.minus='<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 3"><path d="M10.298 1.59h-9" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg> ',en.pause='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="currentColor" fill-rule="evenodd"><path d="M4 3h3v14H4zM13 3h3v14h-3z"/></g></svg> ',en.person='<svg xmlns="http://www.w3.org/2000/svg" width="59" height="59" fill="none">     <path fill="#384350" stroke="#4B5A6E" stroke-width="4"           d="M56.338 29.787c0 15.005-12.164 27.169-27.17 27.169C14.165 56.956 2 44.792 2 29.786 2 14.783 14.164 2.619 29.169 2.619s27.169 12.164 27.169 27.169Z"/>     <mask  width="39" height="26" x="10" y="33" maskUnits="userSpaceOnUse" style="mask-type:alpha">         <path fill="#fff"               d="m33.57 33.886.348 4.815c.028.388.239.738.564.944l.084.049.088.046 7.266 2.755a9.167 9.167 0 0 1 5.103 4.793l1.845 4.078a29.228 29.228 0 0 1-19.693 7.592 29.22 29.22 0 0 1-19.039-7.016l1.724-4.345a9.167 9.167 0 0 1 5.06-5.11l.212-.083 6.523-2.473.4-.232c.317-.185.533-.501.591-.86l.012-.1.388-4.853h8.524Z"/>     </mask>     <g mask="url(#a)">         <path fill="#C6D2E0"               d="m33.57 33.886.348 4.815c.028.388.239.738.564.944l.084.049.088.046 7.266 2.755a9.167 9.167 0 0 1 5.103 4.793l1.845 4.078a29.228 29.228 0 0 1-19.693 7.592 29.22 29.22 0 0 1-19.039-7.016l1.724-4.345a9.167 9.167 0 0 1 5.06-5.11l.212-.083 6.523-2.473.4-.232c.317-.185.533-.501.591-.86l.012-.1.388-4.853h8.524Z"/>         <path fill="#455468"               d="M29.502 39.12c3.529 0 6.39-2.113 6.39-4.722 0-2.608-2.861-4.722-6.39-4.722-3.529 0-6.39 2.114-6.39 4.722 0 2.609 2.861 4.723 6.39 4.723Z"               opacity=".203"/>     </g>     <path fill="#ACB8C8" fill-rule="evenodd"           d="M18.529 21.15c-.914-.062-1.613.229-2.097.872-.727.965.41 7.705 2.629 6.89 1.48-.544 1.302-3.131-.532-7.762ZM39.809 21.15c.914-.062 1.613.229 2.097.872.727.965-.41 7.705-2.629 6.89-1.48-.544-1.302-3.131.532-7.762Z"           clip-rule="evenodd"/>     <path fill="#C6D2E0" fill-rule="evenodd"           d="M29.273 9.924c5.948 0 10.77 4.822 10.77 10.77 0 .439-.027.877-.08 1.312l-.744 6.064a10.02 10.02 0 0 1-19.892 0l-.744-6.064c-.725-5.904 3.474-11.277 9.378-12.002.435-.053.873-.08 1.312-.08Z"           clip-rule="evenodd"/> </svg> ',en.play='<svg viewBox="0 0 13 16" xmlns="http://www.w3.org/2000/svg"><path d="M12.3 8.065L.7 15.631V.5z" fill="currentColor" fill-rule="evenodd"/></svg> ',en.plus='<svg viewBox="0 0 10 11" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M5.009 10.2a.574.574 0 01-.574-.574V.775a.574.574 0 011.148 0v8.851a.574.574 0 01-.574.575z"/><path d="M.009 5.2c0-.377.306-.684.684-.684h8.631a.685.685 0 110 1.37H.694A.685.685 0 01.008 5.2z"/></g></svg> ',en.profile='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 32 32" width="32" height="32"><path fill="currentColor" fill-rule="evenodd" d="M16 8.85a7.15 7.15 0 1 0 0 14.3 7.15 7.15 0 0 0 0-14.3ZM7.15 16a8.85 8.85 0 1 1 17.7 0 8.85 8.85 0 0 1-17.7 0Z" clip-rule="evenodd"/><path fill="currentColor" fill-rule="evenodd" d="M16 11.85a1.65 1.65 0 1 0 0 3.3 1.65 1.65 0 0 0 0-3.3Zm-3.35 1.65a3.35 3.35 0 1 1 6.7 0 3.35 3.35 0 0 1-6.7 0ZM16 19.475a4.152 4.152 0 0 0-3.99 3.002l-1.633-.47a5.852 5.852 0 0 1 11.246 0l-1.634.47A4.152 4.152 0 0 0 16 19.475Z" clip-rule="evenodd"/></svg> ',en.search='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><circle stroke="currentColor" stroke-width="1.5" cx="7.544" cy="5.105" r="4.355"/><path fill="currentColor" d="M4.025 7.313l1.06 1.061-3.61 3.61-1.06-1.06z"/></g></svg> ',en.share='<svg viewBox="0 0 15 19" width="15" height="19" xmlns="http://www.w3.org/2000/svg">     <g stroke="currentColor" stroke-width="1.7" fill="none" fill-rule="evenodd">         <path d="M4.024 7.5H1v9.706h12.937V7.5H10.84M4.652 4.61l2.763-2.763 2.87 2.87M7.468 12.353V2.321"/>     </g> </svg> ',en.spinner='<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="64" height="64" viewBox="0 0 128 128"><g><circle cx="16" cy="64" r="16" fill="currentColor"/><circle cx="16" cy="64" r="14.344" fill="currentColor" transform="rotate(45 64 64)"/><circle cx="16" cy="64" r="12.531" fill="currentColor" transform="rotate(90 64 64)"/><circle cx="16" cy="64" r="10.75" fill="currentColor" transform="rotate(135 64 64)"/><circle cx="16" cy="64" r="10.063" fill="currentColor" transform="rotate(180 64 64)"/><circle cx="16" cy="64" r="8.063" fill="currentColor" transform="rotate(225 64 64)"/><circle cx="16" cy="64" r="6.438" fill="currentColor" transform="rotate(270 64 64)"/><circle cx="16" cy="64" r="5.375" fill="currentColor" transform="rotate(315 64 64)"/><animateTransform attributeName="transform" type="rotate" values="0 64 64;315 64 64;270 64 64;225 64 64;180 64 64;135 64 64;90 64 64;45 64 64" calcMode="discrete" dur="960ms" repeatCount="indefinite"/></g></svg> ',en.ticket='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g stroke="currentColor" stroke-width="1.7" fill="none" fill-rule="evenodd" stroke-linejoin="round"><path d="M13.49 3.46c-.84.84-.81 2.234.069 3.113.878.879 2.272.91 3.113.068l1.591 1.591-9.898 9.899-1.591-1.591c.84-.841.81-2.235-.068-3.114-.88-.879-2.273-.909-3.114-.068L2 11.768l9.898-9.9L13.49 3.46Z"/><path stroke-dasharray="2.22,1.11" d="m5.702 8.065 6.364 6.364"/></g></svg> ',en.twitter='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"  fill="currentColor">     <path transform="translate(0, 1)" d="M20.2960145,2.22676369 C19.5370914,2.5838939 18.7317838,2.81887295 17.9069217,2.92387218 C18.7761358,2.37622235 19.4279634,1.51434961 19.7416394,0.497934635 C18.9255369,1.00803361 18.0326206,1.36643547 17.1017579,1.55753954 C15.9342776,0.239739846 14.122393,-0.189458499 12.5339445,0.475518063 C10.9454959,1.14049463 9.90391174,2.76424832 9.9080807,4.56904821 C9.90797206,4.90675855 9.94338775,5.24343613 10.013676,5.57288444 C6.66696348,5.39988637 3.54767937,3.73220377 1.43406097,0.985910578 C0.339359932,2.99947194 0.917700216,5.56518839 2.75400174,6.84162189 C2.09695164,6.82202183 1.45404186,6.63551179 0.879685851,6.29787727 L0.879685851,6.29787727 C0.883798305,8.38907309 2.27908702,10.1890957 4.21913599,10.6060077 C3.86173998,10.7068089 3.49350146,10.7583578 3.12358515,10.7593716 C2.8576844,10.7580471 2.5925044,10.7300368 2.33162069,10.6757186 C2.86155757,12.4748077 4.41594823,13.7188108 6.19904714,13.7708803 C4.72509207,14.9860571 2.90784686,15.6438929 1.03807874,15.639131 C0.708347808,15.6584814 0.377854102,15.6584814 0.0481231676,15.639131 C3.69302665,18.0597052 8.2925626,18.2077044 12.0701963,16.0259652 C15.84783,13.8442259 18.2122074,9.67427948 18.2501063,5.126735 L18.2501063,4.49933736 C19.0688642,3.88027953 19.7753195,3.11045604 20.3356128,2.22676369 L20.3356128,2.22676369 L20.2960145,2.22676369 Z"/> </svg> ',en.upload='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="none"><path fill="currentColor" fill-rule="evenodd" d="M10.392 22.579h-1.83v-5.085a.915.915 0 1 1 1.83 0v3.255h11.183v-3.255a.915.915 0 1 1 1.83 0v5.085H10.392Zm3.327-10.057 1.391-1.39v5.01h1.83V11.14l1.383 1.382a.915.915 0 0 0 1.294-1.294l-2.302-2.302-1.294-1.294-1.294 1.294-2.302 2.302a.915.915 0 0 0 1.294 1.294Z" clip-rule="evenodd"/></svg> ',en.whatsapp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.057 24l1.687-6.163a11.867 11.867 0 01-1.587-5.946C.16 5.335 5.495 0 12.05 0a11.817 11.817 0 018.413 3.488 11.824 11.824 0 013.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 01-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884-.001 2.225.651 3.891 1.746 5.634l-.999 3.648 3.742-.981zm11.387-5.464c-.074-.124-.272-.198-.57-.347-.297-.149-1.758-.868-2.031-.967-.272-.099-.47-.149-.669.149-.198.297-.768.967-.941 1.165-.173.198-.347.223-.644.074-.297-.149-1.255-.462-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.297-.347.446-.521.151-.172.2-.296.3-.495.099-.198.05-.372-.025-.521-.075-.148-.669-1.611-.916-2.206-.242-.579-.487-.501-.669-.51l-.57-.01c-.198 0-.52.074-.792.372s-1.04 1.016-1.04 2.479 1.065 2.876 1.213 3.074c.149.198 2.095 3.2 5.076 4.487.709.306 1.263.489 1.694.626.712.226 1.36.194 1.872.118.571-.085 1.758-.719 2.006-1.413.248-.695.248-1.29.173-1.414z" fill="currentColor"/></svg> ',en.youtube='<svg viewBox="0 0 30 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.781.4h18.776c2.653 0 4.804 2.535 4.804 4.591v9.6c0 2.536-2.151 4.592-4.804 4.592H5.781c-2.652 0-4.803-2.536-4.803-4.592v-9.6C.978 2.456 3.128.4 5.78.4zM19.1 9.048L16.37 7.704l-2.987-1.469a.908.908 0 00-.852.031.827.827 0 00-.418.713v5.625c.001.29.16.56.42.71.258.15.58.16.85.03l2.987-1.466 2.73-1.343a.834.834 0 00.475-.744c0-.313-.184-.6-.476-.743z" fill="currentColor" fill-rule="evenodd"/></svg> ',en.zoom='<svg viewBox=" 0 0 16 15" xmlns="http://www.w3.org/2000/svg"><g fill="currentColor" fill-rule="evenodd"><path d="M.325 14.873v-1.83h6v1.83z"/><path d="M.325 8.873h1.83v6H.325z"/><g><path d="M15.177.026v1.83h-6V.026z"/><path d="M15.177 6.026h-1.83v-6h1.83z"/></g></g></svg> ';var ei=G(85893),Icon_Icon=function(R){var W=R.name,G=R.size,et=R.className;return en[W]?(0,ei.jsx)(J.Z,{size:G,className:et,children:er()(en[W])}):null}},70205:function(R,W,G){"use strict";G.d(W,{xL:function(){return eo},Li:function(){return es},ZP:function(){return ec}});var J=G(70643),et=G(4129),er=G(59409),helpers_lightColorVersion=function(R){switch(R){case et.wL.backgroundDark:return et.wL.background;case et.wL.secondaryDark:return et.wL.secondary;case et.wL.tertiaryDark:return et.wL.tertiary;case et.wL.primaryDark:return et.wL.primaryDark;case et.wL.grayDark:return et.wL.gray;case et.wL.textDark:return et.wL.text;case et.wL.secondary:return et.wL.white;default:return R}},en=G(37184),ei=J.ZP.button.withConfig({displayName:"IconButtonstyles__StyledIconButton",componentId:"sc-e9c5w5-0"})(["background:",";color:",";display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;pointer-events:",";opacity:",";transition:background ",";z-index:1;","{pointer-events:none;}a{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;color:inherit;position:relative;font-weight:700;}&:hover{a{text-decoration:none;}",";}",";"],function(R){return R.color?R.color:"inherit"},function(R){return R.iconColor?R.iconColor:"inherit"},function(R){return R.disabled?"none":"all"},function(R){return R.disabled?.5:1},et.ZP.transitions.quick,en.Z,function(R){return R.reverseHover?(0,J.iv)(["background:",";color:",";"],R.iconColor?R.iconColor:"inherit",R.color?R.color:"inherit"):(0,J.iv)(["background:",";color:",";"],R.color?(0,er.Z)(R.color):"inherit",R.iconColor?helpers_lightColorVersion(R.iconColor):"inherit")},function(R){return R.size?(0,J.iv)(["width:","px;height:","px;border-radius:","px;"],R.size,R.size,R.size):null}),eo=J.ZP.button.withConfig({displayName:"IconButtonstyles__SmallStyledIconButton",componentId:"sc-e9c5w5-1"})(["display:flex;width:14px;height:14px;"]),es=(0,J.ZP)(ei).withConfig({displayName:"IconButtonstyles__SquareStyledIconButton",componentId:"sc-e9c5w5-2"})(["display:flex;border-radius:0;width:31px;height:31px;"]),ec=ei},19445:function(R,W,G){"use strict";var J=G(59499),et=G(4730);G(67294);var er=G(70205),en=G(1702),ei=G(77081),eo=G(25978),es=G(85893),ec=["icon","type","className","click","href","size","iconSize","small","square","screenReaderText","title"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R){var W=R.icon,G=R.type,J=R.className,el=R.click,eu=R.href,ed=R.size,ep=R.iconSize,ef=R.small,eh=R.square,eg=R.screenReaderText,em=R.title,ey=(0,et.Z)(R,ec),ev=ed||45,Inner=function(){return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(en.Z,{name:W,size:ep||ev/3.5}),eg&&(0,es.jsx)(eo.Z,{children:eg})]})},eb=ef?er.xL:eh?er.Li:er.ZP;return eu?(0,es.jsx)(eb,_objectSpread(_objectSpread({className:J,size:ev,as:"div"},ey),{},{children:(0,es.jsx)(ei.Z,{url:eu,title:em,children:(0,es.jsx)(Inner,{})})})):(0,es.jsx)(eb,_objectSpread(_objectSpread({className:J,onClick:el,size:ev,type:G||"button"},ey),{},{children:(0,es.jsx)(Inner,{})}))}},99604:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=G(70205),en=G(37850),ei=J.ZP.div.withConfig({displayName:"Imagestyles__StyledImage",componentId:"sc-18ekdvs-0"})(["width:100%;overflow:hidden;position:relative;"," img{filter:blur(2px);transition:filter 50ms ease-out;width:100%;position:relative;z-index:1;&.lazyloaded{filter:none;}","}> ","{",";",";position:absolute;z-index:2;}",";"],function(R){return R.fit&&(0,J.iv)(['display:flex;align-items:center;justify-content:center;font-family:"object-fit: ','";'],R.fit)},function(R){return R.fit&&(0,J.iv)(["height:100%;width:100%;object-fit:",";object-position:center center;"],R.fit)},er.ZP,(0,en.TE)("top","large"),(0,en.TE)("left","large"),function(R){return R.inCircle&&(0,J.iv)(["img{margin:","%;width:","%;height:","%;border-radius:50%;}&:before{content:'';position:absolute;width:100%;height:100%;top:0;left:0;border-radius:50%;background-color:",";}"],5,90,90,et.ZP.colors.white)});W.Z=ei},40805:function(R,W,G){"use strict";var J=G(59499),et=G(4730),er=G(67294),en=G(99604);G(77090),G(48792),G(23501),G(85507);var ei=G(19318),eo=G(93718),es=G(85893),ec=["alt","cropped","withZoom","useCropped","srcset","src","placeholder","useFallback","fallbackClass","fallbackSrc","cropPos","doneLoading"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R){var W=R.alt,G=R.cropped,J=R.withZoom,el=R.useCropped,eu=R.srcset,ed=R.src,ep=R.placeholder,ef=R.useFallback,eh=R.fallbackClass,eg=R.fallbackSrc,em=(R.cropPos,R.doneLoading),ey=(0,et.Z)(R,ec),ev=(0,er.useRef)(null),eb=(0,er.useState)(!1),e_=eb[0],ex=eb[1],ew=(0,er.useState)(ed),eS=ew[0],eT=ew[1],eO=(0,er.useState)(""),eP=eO[0],eC=eO[1],ek=(0,er.useState)(!1),eE=ek[0],ej=ek[1];(0,er.useEffect)(function(){ep?G&&el?eT(G.placeholder):eT(ep):G&&el?eT(G.src):eT(ed),G&&el?eC(G.srcset):eC(eu)},[ed,eu,ep,eg,e_]);var eA=(0,er.useMemo)(function(){return!eu&&(null==G||!G.srcset||!el)||!!eP},[eu,G,el,eP]);return e_&&ef&&eE||!ed&&!eu?(0,es.jsx)(eo.Z,{primaryClass:eh}):(0,es.jsxs)(en.Z,_objectSpread(_objectSpread({},ey),{},{children:[J&&(0,es.jsx)(ei.Z,{image:{alt:W,src:ed,srcset:eu,placeholder:ep,fallbackSrc:eg,useFallback:ef,fallbackClass:eh}}),(0,es.jsx)("img",{ref:ev,"data-srcset":eP,"data-src":eS,"data-sizes":"auto",src:eS,alt:W,onError:function(){eg&&!eE?(ej(!0),ev.current&&(ev.current.src=eg),eT(eg),eC("")):ex(!0)},onLoad:function(R){em&&R.currentTarget.complete&&em()},className:eA?"lazyload":""})]}))}},8780:function(R,W,G){"use strict";G.d(W,{Z:function(){return Image_SanityImage}});var J=G(59499),et=G(4730),er=G(67294),en=G(16835),ei=G(6803),eo=G.n(ei),es=G(82842),ec=G(41097);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var el=eo()(ec.L),eu=G(99604),ed=G(85893),ep=["image","className"];function SanityImage_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SanityImage_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SanityImage_ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SanityImage_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var SanityImageUnstyled=function(R){var W=R.image,G=R.forwardRef,et=(0,er.useState)(""),ei=et[0],eo=et[1],ec=(0,er.useMemo)(function(){var R=function(R){if(R)return el.image(R)}(W);if(R){var G=es.Q.default.reduce(function(W,G){return _objectSpread(_objectSpread({},W),{},(0,J.Z)({},G,R.width(G).fit("max").url()))},{});if(G){var et=R.url(),er=Object.entries(G).reduce(function(R,W){var G=(0,en.Z)(W,2),J=G[0],et=G[1];return R?"".concat(R,", ").concat(et," ").concat(J,"w"):"".concat(et," ").concat(J,"w")},"");return{srcSet:G,originalSrc:et,srcsetString:er}}}},[W]),eu=null!=ec&&ec.srcSet?ec.srcSet["100"]:null==ec?void 0:ec.originalSrc;return(0,er.useEffect)(function(){eo("lazyload")},[]),ec?(0,ed.jsx)("img",{"data-srcset":null==ec?void 0:ec.srcsetString,"data-src":eu,"data-sizes":"auto",src:eu,alt:"",className:ei,ref:G},eu):null},Image_SanityImage=function(R){var W=R.image,G=R.className,J=(0,et.Z)(R,ep);return(0,ed.jsx)(eu.Z,SanityImage_objectSpread(SanityImage_objectSpread({},J),{},{className:G,children:(0,ed.jsx)(er.Suspense,{fallback:null,children:(0,ed.jsx)(SanityImageUnstyled,{image:W})})}))}},97731:function(R,W,G){"use strict";var J=G(70643),et=G(37850),er=G(4129),en=J.ZP.div.withConfig({displayName:"InfographicChartTooltipstyles__StyledInfographicChartTooltip",componentId:"sc-1ph2pz9-0"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:center;border-radius:","px;background:",";color:",";padding:6px 11px;white-space:nowrap;transition:opacity ",";position:relative;transform:translate(-50%,0);.title{font-weight:700;}.date{font-family:",";color:",";",";}&:hover{text-decoration:none;}&:before{content:'';position:absolute;width:8px;height:8px;background:",";bottom:0;left:50%;transform:translate(-50%,50%) rotate(-45deg);}"],er.ZP.borderRadius.xs,er.ZP.colors.backgroundDark,er.ZP.colors.white,er.ZP.transitions.quick,er.ZP.fonts.secondary,er.ZP.colors.white,(0,et.JB)("extraSmall"),er.ZP.colors.backgroundDark);W.Z=en},49368:function(R,W,G){"use strict";var J=G(97731),et=G(67294),er=G(85893);W.Z=function(R){R.active;var W=R.payload,G=R.label,en=R.singularLabel,ei=R.pluralLabel,eo=(0,et.useMemo)(function(){return W&&0!==W.length?1===W[0].value?"1 ".concat(en):"".concat(W[0].value," ").concat(ei):""},[W]);return W&&W.length>0?(0,er.jsxs)(J.Z,{children:[(0,er.jsx)("div",{className:"date",children:G}),(0,er.jsx)("div",{className:"title",children:eo})]}):null}},92529:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=J.ZP.div.withConfig({displayName:"Labelstyles__StyledLabel",componentId:"sc-71e3pd-0"})(["padding:3px 7px;max-width:fit-content;background-color:",";border-radius:2px;font-family:",";font-size:","px;color:",";text-align:center;text-transform:uppercase;white-space:nowrap;"],function(R){return R.backgroundColor||et.ZP.colors.tertiary},et.ZP.fonts.secondary,et.ZP.fontSizes.sm,et.ZP.colors.black);W.Z=er},18937:function(R,W,G){"use strict";G(67294);var J=G(34085),et=G(68846),er=G(42389),en=G(85893);W.Z=function(R){var W=R.loading,G=R.lightBg;return(0,en.jsx)(et.M_,{exitBeforeEnter:!0,children:W&&(0,en.jsx)(J.KX,{lightBg:G,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},children:(0,en.jsx)(et.ww.div,{transition:{delay:0},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:{delay:0}},children:(0,en.jsx)(er.Z,{lightBg:G})})})})}},40579:function(R,W,G){"use strict";var J=G(70643),et=G(37850),er=G(4129),en=J.ZP.div.withConfig({displayName:"PlaceholderImagestyles__StyledPlaceholderImage",componentId:"sc-z31gt3-0"})(["",";width:100%;position:relative;background:",";overflow:hidden;.innerPlaceholder{",";",";display:flex;flex-direction:column;justify-content:center;align-items:center;background:",";border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);img{width:","px;}}"],(0,et.TE)("height",{xs:200}),er.ZP.colors.grayDark,(0,et.TE)("width",{xs:120,md:140}),(0,et.TE)("height",{xs:120,md:140}),er.ZP.colors.backgroundMiddle,function(R){return R.bigger?100:70});W.Z=en},93718:function(R,W,G){"use strict";G.d(W,{Z:function(){return PlaceholderImage_PlaceholderImage}});var J=G(59499);G(67294);var et=G(40579),primaryClassToPlaceholderFileName=function(R){switch(R){case"archive":case"archiveFile":case"archiveSeries":case"certificate":return"archief";case"photograph":case"visualArtwork":case"creativeWork":return"foto";case"book":return"boek";case"person":return"mens";case"personSuggest":return"mensSuggestPhoto";case"audio":case"audioObject":return"audio";case"article":case"newspaper":return"krant";case"videoObject":return"video";case"monument":return"monument";case"theme":return"multiple";case"event":return"event";case"location":return"plaats";default:return"object"}},er=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var PlaceholderImage_PlaceholderImage=function(R){var W=R.primaryClass;return W?(0,er.jsx)(et.Z,{bigger:"mens"===primaryClassToPlaceholderFileName(W),children:(0,er.jsx)("div",{className:"innerPlaceholder",children:(0,er.jsx)("img",function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({alt:""},{src:"/img/placeholders/".concat(primaryClassToPlaceholderFileName(W),".png"),srcSet:"/img/placeholders/".concat(primaryClassToPlaceholderFileName(W),"@2x.png 2x")}))})}):null}},60835:function(R,W,G){"use strict";var J=G(70643),et=G(86569),er=G(4129),en=G(37850),ei=J.ZP.div.withConfig({displayName:"ProvinceLinkstyles__StyledProvinceLink",componentId:"sc-1r8vl4b-0"})(["","{color:",";white-space:nowrap;min-height:auto;padding:5px 23px 5px 15px;}.pill{",";background:",";font-family:",";color:",";padding:0 ","px;text-align:center;width:auto;display:inline-block;height:30px;line-height:30px;border-radius:15px;text-decoration:none;transition:background ",",color ",";}a.pill:hover{background-color:",";;color:",";}"],et.Z,er.ZP.colors.text,(0,en.JB)("small"),er.ZP.colors.white,er.ZP.fonts.secondary,er.ZP.colors.text,er.ZP.dist.sm,er.ZP.transitions.quick,er.ZP.transitions.quick,er.ZP.colors.text,er.ZP.colors.white);W.Z=ei},72442:function(R,W,G){"use strict";G.d(W,{$:function(){return ProvinceLinkFromDrupalTransform}});var J=G(82212),et=G(87534),ProvinceLinkFromDrupalTransform=function(R){var W=R.field_provincie;if(W){var G=W.toLowerCase();return{id:G,title:"Provincie ".concat(W),href:(0,et.Ko)(G),provinceSlug:G.replace("provincie ","")}}};W.Z=function(R){if(R["http://www.w3.org/2004/02/skos/core#prefLabel"]){var W=(0,J.y)(R["http://www.w3.org/2004/02/skos/core#prefLabel"]);if(W)return{id:R["@id"]||W,title:W.replace("Provincie ","provincie ").replace("provincie ",""),href:(0,et.Ko)(W),provinceSlug:W.toLowerCase().replace("provincie ","")}}}},3327:function(R,W,G){"use strict";G(67294);var J=G(60835),et=G(74884),er=G(68595),en=G(9558),ei=G(4129),eo=G(41664),es=G.n(eo),ec=G(85893);W.Z=function(R){R.id;var W=R.href,G=R.title,eo=R.shortLabel;return(0,ec.jsx)(J.Z,{children:eo?(0,ec.jsx)(es(),{legacyBehavior:!0,href:W,children:(0,ec.jsx)("a",{className:"pill",children:G})}):(0,ec.jsxs)(en.Z,{href:W,icon:"geo",color:ei.ZP.colors.white,children:[er.Z.buttons.provincePre," ",(0,et.Z)(G)]})})}},14937:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=G(37184),en=G(99604),ei=G(40579),eo=G(37850),es=G(92529),ec=J.ZP.div.withConfig({displayName:"SidePanelRelatedPersonstyles__StyledSidePanelRelatedPerson",componentId:"sc-1vtwz17-0"})(["margin:","px 0;display:flex;flex-direction:row;align-items:center;color:",";&:hover{text-decoration:none;","{transform:translateX(4px);}","{> img{transform:scale(1.05);}}}.relatedPerson{margin-left:","px;display:flex;flex-direction:column;align-items:flex-start;margin-bottom:-6px;.personMeta{","{display:inline-block;color:",";margin-bottom:0;}.countLabel{margin-left:","px;display:inline-block;color:",";}}.smallJobTitle{",";color:",";font-family:",";text-transform:uppercase;margin-bottom:3px;}}",",","{width:100px;min-width:100px;height:100px;border-radius:50%;overflow:hidden;img{border-radius:50%;overflow:hidden;}}","{width:100px;height:100px;flex:1 1 0;flex-grow:0;img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform ",";}}","{.innerPlaceholder > img{width:50px;}}.relatedPersonName{"," margin-top:6px;margin-bottom:3px;font-weight:700;}","{color:",";transition:transform ",";}"],et.ZP.dist.md,et.ZP.colors.white,er.Z,en.Z,et.ZP.dist.sm,es.Z,et.ZP.colors.white,et.ZP.dist.xxs,et.ZP.colors.blue,(0,eo.JB)(et.ZP.fontSizes.label),et.ZP.colors.blue,et.ZP.fonts.secondary,en.Z,ei.Z,en.Z,et.ZP.transitions.quick,ei.Z,(0,eo.JB)({xs:16,lg:20}),er.Z,et.ZP.colors.primary,et.ZP.transitions.quick);W.Z=ec},9630:function(R,W,G){"use strict";var J=G(59499),et=G(67294),er=G(14937),en=G(1702),ei=G(40805),eo=G(41664),es=G.n(eo),ec=G(93718),el=G(92529),eu=G(4129),ed=G(24672),ep=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R){var W=R.thumbnail,G=R.name,J=R.href,eo=R.probability,ef=R.hasCountLabel,eh=R.jobTitle,eg=R.small,em=(0,et.useMemo)(function(){if(eh)return(0,ed.Z)(eh,eg?40:32)},[eh]);return(0,ep.jsx)(es(),{legacyBehavior:!0,href:J,passHref:!0,children:(0,ep.jsxs)(er.Z,{as:"a",small:!0,children:[W&&W.primary?(0,ep.jsx)(ei.Z,_objectSpread(_objectSpread({},W.primary),{},{useFallback:!0,fallbackClass:"person",fit:"cover"})):(0,ep.jsx)(ec.Z,{primaryClass:"person"}),(0,ep.jsxs)("div",{className:"relatedPerson",children:[(em||ef)&&(0,ep.jsxs)("div",{className:"personMeta",children:[em&&!eg&&(0,ep.jsx)(el.Z,{backgroundColor:eu.ZP.colors.secondary,children:em}),ef&&(0,ep.jsxs)("span",{className:"countLabel",children:[eo," x"]})]}),(0,ep.jsx)("div",{className:"relatedPersonName",children:G}),em&&eg&&(0,ep.jsx)("span",{className:"smallJobTitle",children:em}),(0,ep.jsx)(en.Z,{size:24,name:"arrowLong"})]})]})})}},84941:function(R,W,G){"use strict";G.d(W,{Z:function(){return SourceAttributesConnected_SourceAttributesConnected}});var J=G(59499),et=G(16835);G(67294);var er=G(40865),en=G(77081),ei=G(22143),eo=G(68595),es=G(85893),SourceAttribute_SourceAttribute=function(R){var W=R.label,G=R.children,J=R.className;return(0,es.jsxs)(ei.Z,{className:J,children:[(0,es.jsx)("div",{className:"label",children:"subject"===W?"Thema's":eo.Z.propertyTranslation(W)}),G]})},ec=G(3327);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var el={initial:{y:"100%",transition:{delay:.8}},hidden:function(R){return{y:"100%",transition:{delay:.4-R/20}}},show:function(R){return{y:"0%",transition:{delay:.1+R/20,ease:"easeOut"}}}},SourceAttributesConnected_SourceAttributesConnected=function(R){var W=R.detailed,G=R.isOpen,ei=R.cols,eo=R.noGutter,eu=R.disableAnimation;return(0,es.jsx)(es.Fragment,{children:W&&Object.entries(W).map(function(R,ed){var ep=(0,et.Z)(R,2),ef=(ep[0],ep[1]);return!ef||ef.items.length<1?null:(0,es.jsx)(er.Z,{motionDiv:!0,cols:ei||{xs:1,lg:1/4},bottom:ed!==Object.entries(W).length-1?"large":void 0,variants:el,custom:ed,initial:eu?"show":"initial",animate:G?"show":"hidden",noGutter:eo,children:(0,es.jsx)(SourceAttribute_SourceAttribute,{label:ef.label,children:function(){switch(ef.type){case"linked":return(0,es.jsx)("ul",{className:ef.inline?"inline":"",children:ef.items.map(function(R){return(0,es.jsx)("li",{children:R.href?(0,es.jsx)(en.Z,{url:R.href,children:R.text}):R.text},R.text)})});case"publisher":return(0,es.jsxs)("div",{className:"linkedPublisher ".concat(ef.inline?"inline":""),children:[ef.items.map(function(R){return(0,es.jsx)("span",{children:R.href?(0,es.jsx)(en.Z,{url:R.href,children:R.text}):R.text},R.text)}),ef.via&&(0,es.jsxs)(es.Fragment,{children:[" ","via"," ",ef.via.map(function(R){return(0,es.jsx)("span",{children:R.href?(0,es.jsx)(en.Z,{url:R.href,children:R.text}):R.text},R.text)})]})]});case"places":return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)("ul",{className:ef.inline?"inline":"",children:ef.items.map(function(R){return(0,es.jsx)("li",{children:R.href?(0,es.jsx)(en.Z,{url:R.href,children:R.text}):R.text},R.text)})}),ef.province&&(0,es.jsx)("ul",{className:"inline provinceLink",children:ef.province.map(function(R){return(0,es.jsx)(ec.Z,function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({},R),R.id)})})]});case"pills":return(0,es.jsx)("ul",{className:"pills ".concat(ef.inline?"inline":""),children:ef.items.map(function(R){return(0,es.jsx)("li",{children:(0,es.jsx)(en.Z,{url:R.href,children:R.text})},R.text)})});case"unlinked":return(0,es.jsx)("ul",{className:ef.inline?"inline":"",children:ef.items.map(function(R){return(0,es.jsx)("li",{children:R},R)})})}}()})},ef.label)})})}},24957:function(R,W,G){"use strict";G(67294);var J=G(30488),et=G.n(J),er=G(63784),en=G(83203),ei=G(85893);W.Z=function(R){var W=R.description,G=R.limit,J=R.className,eo=R.singular;if(!W)return null;var es=Array.isArray(W.value)?W.value.join(" "):W.value;return(G&&G<es.length&&(es="".concat((0,er.Z)(es,G))),G||eo)?(0,ei.jsx)("div",{className:J,children:et()(es)}):Array.isArray(W.value)?(0,ei.jsx)(ei.Fragment,{children:W.value.map(function(R){return(0,ei.jsx)("div",{className:J,children:(0,en.Z)(R)},R)})}):(0,ei.jsx)("div",{className:J,children:(0,en.Z)(W.value)})}},85890:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=J.ZP.div.withConfig({displayName:"Tooltipstyles__StyledTooltip",componentId:"sc-xbg6n1-0"})(["position:relative;display:inline-block;.tooltip{padding:3px 8px;display:",";max-width:200px;width:max-content;background-color:#000;border-radius:","px;position:absolute;text-align:center;font-size:12px;color:#fff;word-break:normal;word-spacing:normal;word-wrap:normal;z-index:2;&:before{content:'';width:10px;height:10px;background-color:#000;position:absolute;}","}}"],function(R){return R.isShown?"inline-block":"none"},et.ZP.borderRadius.xs,function(R){return"right"===R.position?(0,J.iv)(["left:calc(100% + ","px);top:50%;transform:translateY(-50%);&:before{top:50%;left:-","px;transform:translateY(-50%) rotate(45deg);}"],10,5):"bottom"===R.position?(0,J.iv)(["top:calc(100% + ","px);left:50%;transform:translateX(-50%);&:before{top:-","px;left:50%;transform:translateX(-50%) rotate(45deg);}"],10,5):"left"===R.position?(0,J.iv)(["right:calc(100% + ","px);top:50%;transform:translateY(-50%);&:before{top:50%;right:-","px;transform:translateY(-50%) rotate(45deg);}"],10,5):(0,J.iv)(["bottom:calc(100% + ","px);left:50%;transform:translateX(-50%);&:before{bottom:-","px;left:50%;transform:translateX(-50%) rotate(45deg);}"],10,5)});W.Z=er},23566:function(R,W,G){"use strict";var J=G(67294),et=G(85890),er=G(85893);W.Z=function(R){var W=R.labelText,G=R.position,en=R.children,ei=(0,J.useState)(!1),eo=ei[0],es=ei[1];return(0,er.jsxs)(et.Z,{position:void 0===G?"top":G,isShown:eo,children:[(0,er.jsx)("div",{id:"tooltip-text",className:"tooltip",children:W}),(0,er.jsx)("div",{className:"child",onMouseEnter:function(){es(!0)},onMouseLeave:function(){es(!1)},onFocus:function(){es(!0)},onBlur:function(){es(!1)},"aria-labelledby":"tooltip-text",children:en})]})}},79117:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=J.ZP.div.withConfig({displayName:"VideoIsolatedstyles__StyledVideoIsolated",componentId:"sc-ordlxo-0"})(["width:100%;height:100%;.cover{width:100%;height:100%;position:relative;.play{width:75px;height:75px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:50%;position:absolute;top:120px;left:50%;transform:translate(-50%,-50%);transition:background ",";z-index:1;svg{color:",";}}&:hover{.play{background-color:",";}}}"],et.ZP.transitions.quick,et.ZP.colors.white,et.ZP.colors.primaryDark);W.Z=er},58608:function(R,W,G){"use strict";var J=G(59499),et=G(67294),er=G(79117),en=G(70656),ei=G(40805),eo=G(93718),es=G(70205),ec=G(1702),el=G(4129),eu=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R){var W=R.url,G=R.poster,J=(0,et.useState)(!1),ed=J[0],ep=J[1];return(0,eu.jsxs)(er.Z,{children:[(0,eu.jsxs)("button",{className:"cover",onClick:function(R){R.preventDefault(),R.stopPropagation(),ep(!0)},type:"button",title:"Speel video af",children:[G?(0,eu.jsx)(ei.Z,_objectSpread(_objectSpread({fit:"cover"},G),{},{useFallback:!0,fallbackClass:"video"})):(0,eu.jsx)(eo.Z,{primaryClass:"video"}),(0,eu.jsx)(es.ZP,{as:"div",className:"play",color:el.ZP.colors.primary,children:(0,eu.jsx)(ec.Z,{name:"play",size:20})})]}),(0,eu.jsx)(en.Z,{open:ed,src:W,close:function(){ep(!1)}})]})}},90281:function(R,W,G){"use strict";G.d(W,{Z:function(){return VideoWithStream_VideoWithStream}});var J=G(67294),et=G(70643),er=G(70205),en=G(4129),ei=et.ZP.div.withConfig({displayName:"VideoWithStreamstyles__StyledVideoWithStream",componentId:"sc-n4l2zb-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;","{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);}.vjs-big-play-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background-color:",";border:0;width:72px;height:72px;border-radius:50%;.vjs-icon-placeholder:before{line-height:72px;}}.vjs-control-bar{background-color:rgba(0,0,0,0.7);}.video-js-wrapper:hover{.vjs-big-play-button{background-color:",";}}"],er.ZP,en.ZP.colors.primary,en.ZP.colors.primaryDark),eo=G(59200),es=G(85893),VideoWithStream_VideoWithStream=function(R){var W=R.src,G=R.presetWidth,et=R.autoPlay,er=R.presetHeight,ec=R.setVideoRef,el=(0,J.useRef)(null),eu=(0,J.useRef)(),ed=(0,J.useRef)(null);(0,J.useEffect)(function(){ec&&ec(ed.current)},[ed]);var ep=(0,J.useMemo)(function(){return W.includes(".m3u8")},[W]);return J.useEffect(function(){if(ep&&!eu.current){var R=el.current;R&&(eu.current=(0,eo.Z)(R,{autoplay:et,controls:!0,sources:[{src:W,type:"application/x-mpegURL"}]},function(){}))}},[el.current,ep,eu.current]),J.useEffect(function(){var R=eu.current;return function(){R&&(R.dispose(),eu.current=void 0)}},[eu]),(0,es.jsx)(ei,{children:ep?(0,es.jsx)("div",{"data-vjs-player":!0,children:(0,es.jsx)("video",{className:"video-js video-js-wrapper",ref:el,width:G?G-en.ZP.grid.gutter:void 0,height:er?er-en.ZP.grid.gutter:void 0})}):(0,es.jsx)("video",{ref:ed,width:G?G-en.ZP.grid.gutter:void 0,height:er?er-en.ZP.grid.gutter:void 0,autoPlay:et,controls:!0,children:(0,es.jsx)("source",{src:W,type:"video/mp4"})})},W)}},19318:function(R,W,G){"use strict";var J=G(59499),et=G(4730),er=G(67294),en=G(19445),ei=G(18257),eo=G(4129),es=G(85893),ec=["image"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R){var W=R.image,G=(0,et.Z)(R,ec),J=(0,er.useState)(!1),el=J[0],eu=J[1];return(0,es.jsxs)(es.Fragment,{children:[(0,es.jsx)(en.Z,_objectSpread(_objectSpread({icon:"zoom",reverseHover:!0,color:eo.wL.white,iconColor:eo.ZP.colors.primary},G),{},{click:function(){eu(!0)},screenReaderText:"Afbeelding uitvergroten"})),(0,es.jsx)(ei.Z,{image:W,open:el,close:function(){eu(!1)}})]})}},70835:function(R,W,G){"use strict";G.d(W,{Z:function(){return inModal_inModal}});var J=G(59499),et=G(4730),er=G(67294),en=G(68846),ei=G(70643),eo=G(4129),es=(0,ei.ZP)(en.ww.div).withConfig({displayName:"inModalstyles__StyledInModal",componentId:"sc-1t9xdqm-0"})(["position:fixed;top:0;left:0;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:",";&::before{content:'';position:absolute;width:100%;height:100%;left:0;top:0;background:rgba(0,0,0,0.72);z-index:-1;pointer-events:none;}.closeButton{position:absolute;top:","px;right:","px;padding:","px;cursor:pointer;z-index:",";}.closeBackground{position:absolute;top:0;left:0;width:100%;height:100%;}.outerWrapper{height:100%;overflow-y:scroll;}"],eo.ZP.zIndexes.modal,eo.ZP.grid.gutter,eo.ZP.grid.gutter,eo.ZP.dist.xs,eo.ZP.zIndexes.modal),ec=G(19445),el=G(67891),eu=G(85893),ed=["open","close","hasOpened","hasClosed"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var ep={hidden:{height:"100%",y:500,opacity:0,width:"100%",transition:{ease:"easeIn",duration:.25}},visible:{height:"100%",y:0,opacity:1,width:"100%",transition:{ease:"easeIn",duration:.25}}},ef={hidden:{pointerEvents:"none",opacity:0,transition:{ease:"easeIn",duration:.2,delay:.2}},visible:{pointerEvents:"auto",opacity:1,transition:{ease:"easeIn",duration:.2,delay:0}}},inModal_inModal=function(R){return function(W){var G=W.open,J=W.close,ei=W.hasOpened,eh=W.hasClosed,eg=(0,et.Z)(W,ed),em=(0,er.useRef)(null);(0,er.useEffect)(function(){var handleKeyboardClick=function(R){("Esc"===R.key||"Escape"===R.key)&&J()};return document.addEventListener("keydown",handleKeyboardClick,!1),function(){document.removeEventListener("keydown",handleKeyboardClick,!1)}},[]),(0,er.useEffect)(function(){G&&em.current?G&&(0,el.disableBodyScroll)(em.current):(0,el.clearAllBodyScrollLocks)()},[em,G]);var done=function(R){R&&ei&&ei(),!R&&eh&&eh()};return(0,eu.jsx)(es,{variants:ef,initial:G?"visible":"hidden",animate:G?"visible":"hidden",onAnimationComplete:function(){return done(G)},children:(0,eu.jsx)(en.ww.div,{variants:ep,initial:G?"visible":"hidden",animate:G?"visible":"hidden",children:(0,eu.jsx)("div",{className:"outerWrapper",ref:em,children:(0,eu.jsx)(R,_objectSpread(_objectSpread({},eg),{},{CloseButton:function(){return G?(0,eu.jsxs)(eu.Fragment,{children:[(0,eu.jsx)("button",{onClick:J,className:"closeBackground",type:"button"}),(0,eu.jsx)(ec.Z,{reverseHover:!0,click:J,icon:"close",className:"closeButton",color:eo.ZP.colors.white,iconColor:eo.ZP.colors.black,screenReaderText:"Uitvergroting sluiten"})]}):null},manualClose:J,open:G}))})})})}}},66184:function(R,W,G){"use strict";var J=G(67294);W.Z=function(R,W){(0,J.useEffect)(function(){var listener=function(G){!R||!R.current||R.current.contains(G.target)||W(G)};return document.addEventListener("mousedown",listener),document.addEventListener("touchstart",listener),function(){document.removeEventListener("mousedown",listener),document.removeEventListener("touchstart",listener)}},[R,W])}},29840:function(R,W,G){"use strict";var J=G(67294);W.Z=function(R,W){var G=(0,J.useState)(R),et=G[0],er=G[1];return(0,J.useEffect)(function(){var G=setTimeout(function(){er(R)},W);return function(){clearTimeout(G)}},[R]),et}},48111:function(R,W,G){"use strict";var J=G(67294);W.Z=function(R){var W=(0,J.useState)(0),G=W[0],et=W[1];return[(0,J.useCallback)(function(R){null!==R&&et(R.getBoundingClientRect().height)},[]),(0,J.useMemo)(function(){return G>R+45},[G,R])]}},26027:function(R,W,G){"use strict";G.d(W,{Z:function(){return AnyEntityCard_AnyEntityCard},J:function(){return getBestEntityLinkMethod}});var J,et,er=G(59499);G(67294);var en=G(23275),ei=G(25617),eo=G(40111),es=G(17391),ec=G(41664),el=G.n(ec),eu=G(40805),ed=G(93718),ep=G(45995),ef=G(71383),eh=G(70643),eg=G(37850),em=G(96071),ey=G(84967),ev=G(4129),eb=G(99604),e_=G(40579),ex=eh.ZP.div.withConfig({displayName:"AnyEntityCardstyles__StyledAnyEntityCard",componentId:"sc-cz21dl-0"})(["list-style:none;a{color:",";display:flex;align-items:center;gap:12px;width:100%;","}&:hover{a{text-decoration:none;}",",","{img{transform:scale(1.1);}}}.imgWrapper{width:60px;aspect-ratio:1;background:",";flex-shrink:0;",";",",","{width:100%;height:100%;object-fit:cover;}.innerPlaceholder{width:65px;height:65px;img{width:40px;}}img{transition:transform ",";}}.text{width:auto;flex-shrink:1;h4{",";}}"],ev.ZP.colors.white,em.Z.lg(J||(J=(0,ef.Z)(["\n            gap: 16px;\n        "]))),eb.Z,e_.Z,(0,ey.m4)(ev.ZP.colors.grayLight,.3),em.Z.md(et||(et=(0,ef.Z)(["\n            width: 76px;\n        "]))),eb.Z,e_.Z,ev.ZP.transitions.default,(0,eg.JB)("h5")),ew=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var getBestEntityLinkMethod=function(R){var W=R.type,G=(R.id,R.value);switch(W){case en.DC.SOURCE:return{type:eo.a.source,data:G};case en.DC.PERSON:return{type:eo.a.person,data:G};case en.DC.PROVINCE:case en.DC.PLACE:return{type:eo.a.location,id:G.id};case en.DC.THESAURUS:if(G.isBombardment)return{type:eo.a.bombardment,id:G.id};return{type:eo.a.thesaurus,data:G};case en.DC.DRUPAL_ARTICLE:default:return}},AnyEntityCard_AnyEntityCard=function(R){var W,G,J=R.type,et=R.value,er=R.id,eo=(0,ei.I0)(),openSidePanel=function(R){eo((0,es.vD)(R))};if(!J||!et)return null;var ec="",ef="",eh="",eg=void 0;switch(J){case en.DC.SOURCE:ec=(null==et?void 0:et.primaryClass)||"",ef=(null==et?void 0:et.title)||"",eh=(null==et?void 0:et.sourceUrl)||"",eg=null==et?void 0:null===(W=et.enriched)||void 0===W?void 0:W.thumbnail;break;case en.DC.PERSON:ec="person",ef=(null==et?void 0:et.name)||"",eg=null==et?void 0:null===(G=et.thumbnail)||void 0===G?void 0:G.primary,eh=(null==et?void 0:et.href)||"";break;case en.DC.PROVINCE:case en.DC.PLACE:ec="place",ef=(null==et?void 0:et.title)||"",eg=null==et?void 0:et.thumbnail,eh=(null==et?void 0:et.href)||"";break;case en.DC.THESAURUS:ec=(null==et?void 0:et.primaryClass)||"",ef=(null==et?void 0:et.title)||"",eg=null==et?void 0:et.thumbnail,eh=(null==et?void 0:et.href)||"";break;case en.DC.DRUPAL_ARTICLE:return null}var em=getBestEntityLinkMethod({type:J,value:et,id:er});return ef?(0,ew.jsx)(ex,{children:(0,ew.jsx)(el(),{href:eh,target:"_blank",onClick:function(R){em&&(R.preventDefault(),openSidePanel(em))},children:(0,ew.jsxs)(ew.Fragment,{children:[(0,ew.jsx)("div",{className:"imgWrapper",children:eg?(0,ew.jsx)(eu.Z,_objectSpread(_objectSpread({},eg),{},{fit:"cover"})):(0,ew.jsx)(ed.Z,{primaryClass:ec})}),(0,ew.jsxs)("div",{className:"text",children:[(0,ew.jsx)("h4",{children:ef}),ec&&ep.Z.propertyTranslation(ec)]})]})})}):null}},35394:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=G(99604),en=G(92529),ei=G(37184),eo=J.ZP.div.withConfig({displayName:"AnnouncementCardstyles__StyledAnnouncementCard",componentId:"sc-qdlwi7-0"})(["margin-bottom:30px;display:block;width:100%;&:hover{text-decoration:none;.imageWrapper > "," > img{transform:scale(1.05);}","{transform:translateX(4px);}}.imageWrapper{margin-bottom:","px;padding:16px ","px;display:flex;justify-content:center;width:100%;height:290px;background:",";overflow:hidden;","{img{transition:transform ",";}}}","{margin-bottom:10px;}.date{display:block;color:",";font-family:",";}h3{color:",";font-size:16px;}",";"],er.Z,ei.Z,et.ZP.dist.sm,et.ZP.dist.sm,function(R){return R.hasDarkBackground?et.ZP.colors.backgroundDark:et.ZP.colors.backgroundLight},er.Z,et.ZP.transitions.quick,en.Z,et.ZP.colors.blue,et.ZP.fonts.secondary,function(R){return R.hasDarkBackground?et.ZP.colors.white:et.ZP.colors.black},function(R){return R.hasDarkBackground&&(0,J.iv)(["h3{padding-right:24px;position:relative;}","{transition:",";color:",";position:absolute;right:0;top:2px;}"],ei.Z,et.ZP.transitions.quick,et.ZP.colors.white)});W.Z=eo},11247:function(R,W,G){"use strict";var J=G(59499);G(67294);var et=G(35394),er=G(41664),en=G.n(er),ei=G(40805),eo=G(92529),es=G(1702),ec=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R){var W=R.image,G=R.title,J=R.date,er=R.href,el=R.inSidePanel;return(0,ec.jsx)(en(),{legacyBehavior:!0,href:er,passHref:!0,children:(0,ec.jsxs)(et.Z,{as:"a",hasDarkBackground:el,children:[(0,ec.jsx)("div",{className:"imageWrapper",children:(0,ec.jsx)(ei.Z,_objectSpread(_objectSpread({},W),{},{fit:"contain"}))}),J&&J.asString&&(el?(0,ec.jsx)(eo.Z,{children:J.asString}):(0,ec.jsx)("span",{className:"date",children:J.asString})),(0,ec.jsxs)("h3",{children:[G,el&&(0,ec.jsx)(es.Z,{name:"arrow",size:16})]})]})})}},74635:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=G(75098),en=G(37850),ei=J.ZP.div.withConfig({displayName:"LifeEventFromToMapstyles__StyledLifeEventFromToMap",componentId:"sc-19bqd90-0"})(["","{",";}"],er.Z,(0,en.TE)("height",et.ZP.consts.lifeFromToMapHeight));W.Z=ei},69910:function(R,W,G){"use strict";G.d(W,{Fk:function(){return AnnouncementsOverTimeScrubberTransform},wU:function(){return AnnouncementsOverTimeScrubberForGeoJSONTransform}});var J=G(27812),et=G(27484),er=G.n(et),en=G(68707),ei=G(7145),AnnouncementsOverTimeScrubberTransform=function(R){for(var W=[],G=er()(ei.YK.startDate,"D-M-YYYY"),et=er()(ei.YK.endDate,"D-M-YYYY"),eo=G;eo.isBefore(et.add(1,"year"),"year");eo=eo.add(1,"year"))W=[].concat((0,J.Z)(W),[eo.locale("nl").format("MMM 'YY")]);W.length>35&&(W=(0,en.yy)(W,10)),W.length>25&&(W=(0,en.yy)(W,5)),W.length>12&&(W=(0,en.yy)(W,2));var es=R.map(function(R){return R.config.in}),ec={};return es.forEach(function(R){var W=100*R;ec[W]&&ec[W]<1?ec[W]=ec[W]+.2:ec[W]=.2}),{timeIndicators:W,eventIndicators:ec,endDate:et,startDate:G,altDesign:!0}},AnnouncementsOverTimeScrubberForGeoJSONTransform=function(R){for(var W=[],G=er()(ei.YK.startDate,"D-M-YYYY"),et=er()(ei.YK.endDate,"D-M-YYYY"),en=G;en.isBefore(et.add(1,"month").add(1,"day"),"month");en=en.add(1,"year"))W=[].concat((0,J.Z)(W),[en.locale("nl").format("YYYY")]);var eo=R.features.map(function(R){return R.properties.fadeIn}),es={};return eo.forEach(function(R){var W=100*R;es[W]&&es[W]<1?es[W]=es[W]+.2:es[W]=.2}),{timeIndicators:W,eventIndicators:es,endDate:et,startDate:G,altDesign:!0}};W.ZP=function(R){var W,G,et=R.map(function(R){return R.item}).filter(function(R){var W;return!!(null!==(W=R.dateObj)&&void 0!==W&&W.date)&&!!R.location}),ei=[];if(0===et.length)return{timeIndicators:[],eventIndicators:[],endDate:er()("31-12-1945"),startDate:er()("1-1-1940")};var eo=et[0].dateObj.date,es=et[et.length-1].dateObj.date;if(W=er()(eo).startOf("month").locale("nl"),G=er()(es).endOf("month").locale("nl"),W.isBefore(G,"month")){for(var ec=W;ec.isBefore(G.add(1,"month"),"month");ec=ec.add(1,"month"))ei=[].concat((0,J.Z)(ei),[ec.locale("nl").format("MMM 'YY")]);ei=[].concat((0,J.Z)(ei),[G.add(1,"month").format("MMM 'YY")])}else ei=[W.locale("nl").format("MMM 'YY"),G.add(1,"month").locale("nl").format("MMM 'YY")];ei.length>35&&(ei=(0,en.yy)(ei,10)),ei.length>25&&(ei=(0,en.yy)(ei,5)),ei.length>12&&(ei=(0,en.yy)(ei,2));var el=R.map(function(R){return R.config.in}),eu={};return el.forEach(function(R){var W=100*R;eu[W]&&eu[W]<1?eu[W]=eu[W]+.2:eu[W]=.2}),{timeIndicators:ei,eventIndicators:eu,endDate:G,startDate:W}}},72489:function(R,W,G){"use strict";var J,et=G(71383),er=G(70643),en=G(4129),ei=G(37850),eo=G(74498),es=G(84967),ec=er.ZP.form.withConfig({displayName:"SearchFormSuggestsstyles__StyledSearchFormSuggests",componentId:"sc-pbc2tu-0"})(["position:relative;.inputWrapper{position:relative;width:100%;input{width:100%;z-index:",";}}.suggestionsWrapper{"," ",";margin:0;position:absolute;left:0;width:100%;background:",";border-radius:0 0 37px 0;list-style-type:none;.suggestionTypeText{",";margin-bottom:","px;color:",";}.suggestions{",";",";",";list-style-type:none;border-top:1px solid ",";"," ul{width:100%;}li{border-top:1px solid ",";width:100%;button{",";",";width:100%;text-align:left;color:",";font-weight:700;cursor:pointer;.suggestionTerm{font-weight:300;}&:hover{color:",";}}&:first-of-type{border-top:none;}}}}"],en.ZP.zIndexes.navigation,(0,ei.TE)("top",en.ZP.consts.headerHeight),(0,ei.JB)("medium"),en.ZP.colors.white,(0,ei.JB)({xs:14}),en.ZP.dist.xs,en.ZP.colors.secondary,(0,ei.TE)("padding-top","small"),(0,ei.TE)("padding-right","small"),(0,ei.TE)("padding-left","small"),en.ZP.colors.secondaryExtraLight,eo.Z.md(J||(J=(0,et.Z)(["\n                border-top: 0;\n            "]))),(0,es.m4)(en.ZP.colors.blue,.3),(0,ei.TE)("padding-top","extraSmall"),(0,ei.TE)("padding-bottom","extraSmall"),en.ZP.colors.text,en.ZP.colors.primary);W.Z=ec},93466:function(R,W,G){"use strict";G.d(W,{Z:function(){return SearchFormSuggests_SearchFormSuggests}});var J,et=G(16835),er=G(50029),en=G(59499),ei=G(87794),eo=G.n(ei),es=G(67294),ec=G(11163),el=G(59817),eu=G(1702),ed=G(29840),ep=G(32959),ef={transformation:function(R){return function(W){if(W&&W.items&&W.items.length>0){var G=RegExp(R,"gi");return{items:W.items.map(function(R){return{asString:R.tuple[0],spanned:R.tuple[0].replace(G,'<span class="suggestionTerm">$&</span>')}})}}return{statusCode:404,items:[]}}},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,G=arguments.length>2?arguments[2]:void 0;return"".concat(G?"person_suggest":"suggest_query","/p/topic/").concat(encodeURIComponent(R),"/results?count=").concat(W)}},eh=G(72489),eg=G(72459),analytics_trackSearchSuggestionClicked=function(R,W,G){window.dataLayer&&window.dataLayer.push({event:"GAEvent",eventCategory:"Klik op zoeksuggestie",suggestie:R,searchbar:G?"menu":"bronnen",klikurl:W})},em=G(64731),ey=G(30488),ev=G.n(ey),eb=G(59239),e_=G(75347),ex=G(71383),ew=G(70643),eS=G(4129),eT=G(92529),eO=G(37850),eP=G(42786),eC=ew.ZP.div.withConfig({displayName:"SuggestedItemCardstyles__StyledSuggestedItemCard",componentId:"sc-hs7r34-0"})(["",";",";display:flex;flex-direction:row;align-items:center;text-decoration:none;color:",";cursor:pointer;.itemImage{margin-right:12px;max-width:70px;width:100%;height:70px;img{width:100%;height:100%;object-fit:cover;}&--person{",";border-radius:50%;border-color:",";border-style:solid;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;-webkit-mask-image:-webkit-radial-gradient(white,black);}}.itemContent{display:flex;flex-direction:column;width:100%;font-weight:700;.itemDate{font-family:",";font-size:13px;color:",";text-transform:uppercase;white-space:nowrap;font-weight:300;}.itemTitle{line-height:1.25;}}","{margin-left:","px;display:inline-block;height:fit-content;font-size:","px;",";}&:hover{color:",";.arrow{transform:translateX(4px);transition:transform ",";}text-decoration:none;}",""],(0,eO.TE)("padding-top",{xs:eS.ZP.dist.xs,lg:eS.ZP.dist.sm}),(0,eO.TE)("padding-bottom",{xs:eS.ZP.dist.xs,lg:eS.ZP.dist.sm}),eS.ZP.colors.text,(0,eO.TE)("border-width",{xs:3}),eS.ZP.colors.secondaryExtraLight,eS.ZP.fonts.secondary,eS.ZP.colors.secondary,eT.Z,eS.ZP.dist.xs,eS.ZP.fontSizes.label,function(R){return R.isPerson&&(0,ew.iv)(["background-color:",";color:",";"],eS.ZP.colors.blue,eS.ZP.colors.white)},eS.ZP.colors.primary,eS.ZP.transitions.quick,eP.Z.md(J||(J=(0,ex.Z)(["\n        position: relative;\n        padding-top: 38px;\n\n        .itemImage {\n            display: none;\n        }\n\n        "," {\n            position: absolute;\n            left: 0;\n            top: 15px;\n            line-height: 16px;\n            margin: 0;\n            padding: 2px 4px;\n        }\n\n    "])),eT.Z)),ek=G(23275),eE=G(45995),ej=G(41664),eA=G.n(ej),eD=G(40805),eI=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,en.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var SuggestedPlace=function(R){return(0,eI.jsx)(eA(),{legacyBehavior:!0,href:R.href,passHref:!0,children:(0,eI.jsxs)(eC,{as:"a",noImage:!R.thumbnail,children:[R.thumbnail&&(0,eI.jsx)(eD.Z,_objectSpread({className:"itemImage"},R.thumbnail)),(0,eI.jsx)("div",{className:"itemContent",children:(0,eI.jsx)("span",{className:"itemTitle",children:R.title})}),R.classes&&R.classes.length>0?(0,eI.jsx)(eT.Z,{children:eE.Z.propertyTranslation(R.classes[0].value)}):(0,eI.jsx)(eu.Z,{name:"arrowLong",className:"arrow",size:24})]})})},SuggestedThesaurus=function(R){return(0,eI.jsx)(eA(),{legacyBehavior:!0,href:R.href,passHref:!0,children:(0,eI.jsxs)(eC,{as:"a",noImage:!R.thumbnail,children:[R.thumbnail&&(0,eI.jsx)(eD.Z,_objectSpread({className:"itemImage"},R.thumbnail)),(0,eI.jsxs)("div",{className:"itemContent",children:[(0,eI.jsx)("span",{className:"itemTitle",children:R.title}),R.dateObj&&R.dateObj.startDate&&(0,eI.jsx)("span",{className:"itemDate",children:R.dateObj.asString})]}),R.classes&&R.classes.length>0?(0,eI.jsx)(eT.Z,{children:eE.Z.propertyTranslation(R.classes[0].value)}):(0,eI.jsx)(eu.Z,{name:"arrowLong",className:"arrow",size:24})]})})},SuggestedPerson=function(R){var W,G;return(0,eI.jsx)(eA(),{legacyBehavior:!0,href:R.href,passHref:!0,children:(0,eI.jsxs)(eC,{as:"a",isPerson:!0,noImage:!(null!==(W=R.thumbnail)&&void 0!==W&&W.primary),children:[(null===(G=R.thumbnail)||void 0===G?void 0:G.primary)&&(0,eI.jsx)(eD.Z,_objectSpread({className:"itemImage itemImage--person"},R.thumbnail.primary)),(0,eI.jsx)("div",{className:"itemContent",children:(0,eI.jsx)("span",{className:"itemTitle",children:R.name})}),(0,eI.jsx)(eT.Z,{children:eE.Z.propertyTranslation("person")})]})})},SuggestedItemCard_SuggestedItemCard=function(R){var W=R.item,G=W.type,J=W.value;if(W.id,!J)return null;switch(G){case ek.DC.PERSON:return(0,eI.jsx)(SuggestedPerson,_objectSpread({},J));case ek.DC.PLACE:case ek.DC.PROVINCE:return(0,eI.jsx)(SuggestedPlace,_objectSpread({},J));case ek.DC.THESAURUS:return(0,eI.jsx)(SuggestedThesaurus,_objectSpread({},J));case ek.DC.SOURCE:case ek.DC.DRUPAL_ARTICLE:case ek.DC.INDICATOR:default:return null}},SuggestedItems_SuggestedItems=function(R){var W=R.items;return(0,eI.jsxs)(e_.Z,{children:[(0,eI.jsx)("span",{className:"suggestionTypeText",children:eb.Z.suggestedEntitiesText}),W.map(function(R,W){return(0,eI.jsx)("li",{children:(0,eI.jsx)(SuggestedItemCard_SuggestedItemCard,{item:R})},R.id)})]})};function SearchFormSuggests_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SearchFormSuggests_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SearchFormSuggests_ownKeys(Object(G),!0).forEach(function(W){(0,en.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SearchFormSuggests_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var SearchFormSuggests_SearchFormSuggests=function(R){var W=R.loading,G=R.children,J=R.placeholder,en=R.propagateSearchTerm,ei=R.propagateSearchTermLength,ey=R.propagateInputFocus,e_=R.clearButton,ex=R.personsOnly,ew=R.prefix,eS=R.extraParams,eT=(0,es.useState)([]),eO=eT[0],eP=eT[1],eC=(0,es.useState)([]),ek=eC[0],eE=eC[1],ej=(0,es.useState)(!1),eA=ej[0],eD=ej[1],eM=(0,es.useState)(""),eL=eM[0],eR=eM[1],eN=(0,es.useRef)(null),eB=(0,es.useRef)(null),eZ=(0,es.useRef)(null),eU=(0,ec.useRouter)(),eF=(0,ed.Z)(eL,300),doSearchQuery=function(R){if(en)en(R),ei&&ei(R.length);else{if(eS&&!R)return;var W=ex?SearchFormSuggests_objectSpread({personterm:R,mode:eU.query?eU.query.mode:null},eS):SearchFormSuggests_objectSpread({term:R,mode:eU.query?eU.query.mode:null},eS);eU.push({pathname:ex?"/mensen":"/bronnen",query:(0,el.h)(W)})}},clearSuggestionsState=function(){eP([]),eE([])};(0,es.useEffect)(function(){W&&eD(!1)},[W]),(0,es.useEffect)(function(){eR((0,eg.i)(ex?eU.query.personterm:eU.query.term)||"");var handleRouteChange=function(){eD(!1),clearSuggestionsState()},handeRouteComplete=function(){eD(!1),clearSuggestionsState(),eR((0,eg.i)(ex?eU.query.personterm:eU.query.term)||"")};return eU.events.on("routeChangeStart",handleRouteChange),eU.events.on("routeChangeComplete",handeRouteComplete),function(){eU.events.off("routeChangeStart",handleRouteChange),eU.events.off("routeChangeComplete",handeRouteComplete)}},[eU]),(0,es.useEffect)(function(){var R,W=(R=(0,er.Z)(eo().mark(function _callee(R){var W,G,J,er,en,ei;return eo().wrap(function(eo){for(;;)switch(eo.prev=eo.next){case 0:return eo.next=2,Promise.all([(0,ep.Z)(ef.transformation(eF),ef.endpoint(eF,4,ex)),R?(0,ep.Z)(em.Z.transformation,em.Z.endpoint(eF,4)):null]);case 2:W=eo.sent,J=(G=(0,et.Z)(W,2))[0],er=G[1],J&&200===J.statusCode?eP(null===(en=J.data)||void 0===en?void 0:en.items):eP([]),er&&200===er.statusCode?eE(null===(ei=er.data)||void 0===ei?void 0:ei.items):eE([]);case 8:case"end":return eo.stop()}},_callee)})),function(W){return R.apply(this,arguments)});eA&&eF&&eF.length>2?W(!ex):clearSuggestionsState()},[eF]),(0,es.useEffect)(function(){eA||eP([])},[eA]);var userInputSearch=function(R){eD(!0),eR(R),ei&&ei(R.length)},suggestionClicked=function(R){eD(!1),clearSuggestionsState(),eR(R),analytics_trackSearchSuggestionClicked(R,ex?"/mensen?personterm=".concat(R):"/bronnen?term=".concat(R),!en),doSearchQuery(R)};return(0,es.useEffect)(function(){var noticeClick=function(R){eA&&eB.current&&!eB.current.contains(R.target)&&(eD(!1),clearSuggestionsState())};return eB.current&&document.addEventListener("click",noticeClick),function(){document.removeEventListener("click",noticeClick)}},[eB,eA]),(0,es.useEffect)(function(){var noticeKeyDown=function noticeKeyDown(R){"ArrowDown"===R.key&&eO&&eO.length>0&&eZ&&eZ.current&&(eZ.current.focus(),document.removeEventListener("keydown",noticeKeyDown))};return eZ.current&&document.addEventListener("keydown",noticeKeyDown),function(){document.removeEventListener("keydown",noticeKeyDown)}},[eZ,eO]),(0,eI.jsx)(eI.Fragment,{children:(0,eI.jsxs)(eh.Z,{ref:eB,onSubmit:function(R){R.preventDefault(),clearSuggestionsState(),eD(!1),doSearchQuery(eL)},children:[ew,(0,eI.jsx)("div",{className:"inputWrapper",children:(0,eI.jsx)("input",{ref:eN,disabled:W,type:"search",placeholder:J,value:eL,"aria-label":"Zoekterm",onFocus:ey,onBlur:ey,onChange:function(R){userInputSearch(R.target.value)}})}),(0,eI.jsxs)("div",{className:"suggestionsWrapper",children:[eO&&eO.length>0&&(0,eI.jsxs)("div",{className:"suggestions",children:[(0,eI.jsx)("span",{className:"suggestionTypeText",children:eb.Z.suggestionsText}),(0,eI.jsx)("ul",{children:eO.map(function(R,W){return(0,eI.jsx)("li",{children:(0,eI.jsx)("button",{ref:0===W?eZ:null,title:"Zoek op ".concat(R.asString),type:"button",onClick:function(){suggestionClicked(R.asString)},children:ev()(R.spanned)})},R.asString)})})]}),ek&&ek.length>0&&(0,eI.jsx)(SuggestedItems_SuggestedItems,{items:ek})]}),e_&&eL.length>0&&!W&&(0,eI.jsx)("button",{className:"closeButton",type:"button",title:"Zoekterm wissen",onClick:function(){eR(""),eN.current&&eN.current.focus()},children:(0,eI.jsx)(eu.Z,{name:"close",size:18})}),W&&(0,eI.jsx)(eu.Z,{className:"loader",name:"spinner",size:35}),G]})})}},50496:function(R,W,G){"use strict";G.d(W,{j:function(){return eR},Z:function(){return SidePanelOtherPersons_SidePanelOtherPersons}});var J,et=G(59499),er=G(50029),en=G(87794),ei=G.n(en),eo=G(67294),es=G(70643),ec=G(37850),el=G(4129),eu=es.ZP.div.withConfig({displayName:"SidePanelOtherPersonsstyles__StyledSidePanelOtherPersons",componentId:"sc-1idpab2-0"})([".panelTitle{",";padding:","px 90px ","px ","px;hyphens:none;margin:0;}.panelSubtitle{padding:0 ","px ","px;border-bottom:1px solid ",";}.sidePanelContent{padding:0;}.infographic{padding:","px;border-bottom:1px solid ",";width:100%;position:relative;&:first-of-type{padding-top:0;}&Title{",";",";text-align:left;}&Subtitle{",";",";}&--map{padding:0 0 ","px;.infographicTitle{padding-left:","px;}.infographicSubtitle{padding:0 ","px}}.otherPersons{",";display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;}}"],(0,ec.JB)("h3"),el.ZP.dist.xl,el.ZP.dist.xl,el.ZP.dist.xl,el.ZP.dist.xl,el.ZP.dist.xl,el.ZP.colors.backgroundDark,el.ZP.dist.xl,el.ZP.colors.backgroundDark,(0,ec.TE)("margin-top","small"),(0,ec.TE)("margin-bottom","extraSmall"),(0,ec.TE)("margin-bottom","small"),(0,ec.JB)("small"),el.ZP.dist.xl,el.ZP.dist.xl,el.ZP.dist.xl,(0,ec.TE)("margin-bottom","small")),ed=G(9558),ep=G(18937),ef=G(16835),eh=G(32959),eg=G(18869),em=G(22620),ey=G(27484),ev=G.n(ey),eb=G(48148),e_=G(11626),ex=G(97674);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var ew=(J=(0,er.Z)(ei().mark(function _callee(R,W,G){var J,et,er,en,eo,es,ec,el,eu,ed,ep;return ei().wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return ei.prev=0,ei.next=3,Promise.all([(0,eh.Z)(eg.Z.infographics.category.transformation(W),eg.Z.infographics.category.endpoint(R,G)),(0,eh.Z)(eg.Z.infographics.gender.transformation,eg.Z.infographics.gender.endpoint(R,G)),(0,eh.Z)(eg.Z.infographics.deathPlace.transformation,eg.Z.infographics.deathPlace.endpoint(R,G)),(0,eh.Z)(eg.Z.infographics.deathPlacePOIs.transformation,eg.Z.infographics.deathPlacePOIs.endpoint(R,G)),(0,eh.Z)(eg.Z.infographics.deathDate.transformation(G?ev()(G.date):void 0),eg.Z.infographics.deathDate.endpoint(R,G)),(0,eh.Z)(eg.Z.infographics.ageDistribution.transformation,eg.Z.infographics.ageDistribution.endpoint(R,G)),(0,eh.Z)(eg.Z.infographics.otherPersons.transformation,eg.Z.infographics.otherPersons.endpoint(R,G))]);case 3:return J=ei.sent,er=(et=(0,ef.Z)(J,7))[0],en=et[1],eo=et[2],es=et[3],ec=et[4],el=et[5],eu=et[6],ed="",G&&(ep=(0,eb.ri)(G.date),ed=e_.Z.sidePanels.otherPersonsSubtitle(W,ep,G.fromLabel)),ei.abrupt("return",{category:er.data,gender:en.data,deathPlaces:_objectSpread(_objectSpread({},(0,em.Z)(eo.data,es.data)),{},{mainItem:eo.data.items.length>0?(0,ex.g2)(eo.data.items[0]):void 0}),deathDate:ec.data,ageDistribution:el.data,otherPersons:eu.data,subtitle:ed});case 17:ei.prev=17,ei.t0=ei.catch(0),console.error(ei.t0);case 20:return ei.abrupt("return",void 0);case 21:case"end":return ei.stop()}},_callee,null,[[0,17]])})),function(R,W,G){return J.apply(this,arguments)}),eS=G(91213),eT=G(4135),eO=G(75098),eP=es.ZP.div.withConfig({displayName:"InfographicPlacesMapstyles__StyledInfographicPlacesMap",componentId:"sc-1b5ay1i-0"})(["width:100%;height:100%;","{",";overflow:hidden;width:100%;}"],eO.Z,function(R){return(0,ec.TE)("height",R.inSidepanel?el.ZP.consts.sidepanelMapHeight:el.ZP.consts.lifeHeaderMapHeight)}),eC=G(5152),ek=G.n(eC),eE=G(40865),ej=G(85893),eA=ek()(function(){return Promise.all([G.e(2634),G.e(2909),G.e(4291)]).then(G.bind(G,74291))},{loading:function(){return(0,ej.jsx)(eE.Z,{justifyContent:"center",cols:[1],noGutter:!0,children:(0,ej.jsx)(ep.Z,{loading:!0})})},ssr:!1,loadableGenerated:{webpack:function(){return[74291]}}}),InfographicPlacesMap_InfographicPlacesMap=function(R){var W=R.items,G=R.mainItem,J=R.inSidepanel,et=R.features,er=R.pointsOfInterest;return(0,ej.jsx)(eP,{inSidepanel:J,children:(0,ej.jsx)(eA,{items:W,mainItem:G,pointsOfInterest:er,features:et,inSidepanel:J})})},eD=G(9766),eI=G(40839),eM=G(9630),eL=G(44015);function SidePanelOtherPersons_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SidePanelOtherPersons_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelOtherPersons_ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelOtherPersons_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var eR=4,SidePanelOtherPersons_SidePanelOtherPersons=function(R){var W=R.id,G=(R.title,R.total),J=R.transport,et=(0,eo.useState)(!0),en=et[0],es=et[1],ec=(0,eo.useState)({subtitle:""}),el=ec[0],ef=ec[1];return(0,eo.useEffect)(function(){var R,et=(R=(0,er.Z)(ei().mark(function _callee(R){var W;return ei().wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return et.prev=0,et.next=3,ew(R,G,J);case 3:(W=et.sent)&&(ef(W),es(!1)),et.next=10;break;case 7:et.prev=7,et.t0=et.catch(0);case 10:return et.prev=10,es(!1),et.finish(10);case 13:case"end":return et.stop()}},_callee,null,[[0,7,10,13]])})),function(W){return R.apply(this,arguments)});W&&et(W)},[W]),el&&!en?(0,ej.jsx)(eu,{children:(0,ej.jsxs)("div",{className:"sidePanelContent",children:[(0,ej.jsx)("h2",{className:"panelTitle",children:e_.Z.sidePanels.otherPersons.title}),(0,ej.jsx)("p",{className:"panelSubtitle",children:el.subtitle}),el.category&&(0,ej.jsxs)("div",{className:"infographic",children:[(0,ej.jsx)("h4",{className:"infographicTitle",children:eL.Z.infographics.titles.category}),(0,ej.jsx)(eS.Z,SidePanelOtherPersons_objectSpread(SidePanelOtherPersons_objectSpread({},el.category),{},{inSidepanel:!0}))]}),el.ageDistribution&&(0,ej.jsxs)("div",{className:"infographic",children:[(0,ej.jsx)("h4",{className:"infographicTitle",children:eL.Z.infographics.titles.ageDistribution}),(0,ej.jsx)(eD.Z,SidePanelOtherPersons_objectSpread(SidePanelOtherPersons_objectSpread({},el.ageDistribution),{},{inSidepanel:!0}))]}),el.deathDate&&(0,ej.jsxs)("div",{className:"infographic",children:[(0,ej.jsx)("h4",{className:"infographicTitle",children:eL.Z.infographics.titles.deathDate}),(0,ej.jsx)(eI.Z,SidePanelOtherPersons_objectSpread(SidePanelOtherPersons_objectSpread({},el.deathDate),{},{inSidepanel:!0}))]}),el.gender&&(0,ej.jsxs)("div",{className:"infographic",children:[(0,ej.jsx)("h4",{className:"infographicTitle",children:eL.Z.infographics.titles.gender}),(0,ej.jsx)(eT.Z,SidePanelOtherPersons_objectSpread(SidePanelOtherPersons_objectSpread({},el.gender),{},{inSidepanel:!0}))]}),el.deathPlaces&&(0,ej.jsxs)("div",{className:"infographic infographic--map",children:[(0,ej.jsx)("h4",{className:"infographicTitle",children:eL.Z.infographics.titles.deathPlace}),(0,ej.jsx)("div",{className:"infographicSubtitle",children:e_.Z.sidePanels.mapInfographicSubtitle}),(0,ej.jsx)(InfographicPlacesMap_InfographicPlacesMap,SidePanelOtherPersons_objectSpread(SidePanelOtherPersons_objectSpread({},el.deathPlaces),{},{inSidepanel:!0}))]}),el.otherPersons&&(0,ej.jsxs)("div",{className:"infographic",children:[(0,ej.jsx)("h4",{className:"infographicTitle",children:e_.Z.sidePanels.othersOnTransport}),(0,ej.jsx)("div",{className:"otherPersons",children:el.otherPersons.map(function(R){return(0,ej.jsx)(eM.Z,SidePanelOtherPersons_objectSpread({},R),R.id)})}),G>eR&&J&&(0,ej.jsx)(ed.Z,{href:"/mensen?transport_from=".concat(encodeURI(J.from),"&transport_to=").concat(encodeURI(J.to),"&transport_date=").concat(J.date),children:e_.Z.sidePanels.otherPersonsTransport(G)})]})]})}):(0,ej.jsx)(ep.Z,{loading:!0,lightBg:!0})}},54064:function(R,W,G){"use strict";G.d(W,{f:function(){return ex},Z:function(){return SidePanelRelatedAnnouncements_SidePanelRelatedAnnouncements}});var J,et=G(59499),er=G(50029),en=G(87794),ei=G.n(en),eo=G(67294),es=G(71383),ec=G(70643),el=G(4129),eu=G(96071),ed=G(35394),ep=G(37850),ef=ec.ZP.div.withConfig({displayName:"SidePanelRelatedAnnouncementsstyles__StyledSidePanelRelatedAnnouncements",componentId:"sc-1401efs-0"})(["padding:40px;width:100%;.sidePanelTitle{margin-bottom:","px;padding-bottom:","px;border-bottom:1px solid ",";h2{",";width:240px;","}}.relatedAnnouncements{","{margin-bottom:","px;}}"],el.ZP.dist.xl,el.ZP.dist.md,el.ZP.colors.backgroundSemi,(0,ep.JB)("h3"),eu.Z.lg(J||(J=(0,es.Z)(["\n                width: 330px;\n            "]))),ed.Z,el.ZP.dist.xl),eh=G(32959),eg=G(15443),em=G(18937),ey=G(11247),ev=G(9558),eb=G(34586),e_=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var ex=9,SidePanelRelatedAnnouncements_SidePanelRelatedAnnouncements=function(R){var W=R.title,G=R.id,J=R.presetAnnouncements,et=R.filterOutAnnouncementById,en=R.more,es=(0,eo.useState)(!0),ec=es[0],el=es[1],eu=(0,eo.useState)(J),ed=eu[0],ep=eu[1],ew=(0,eo.useState)(0),eS=ew[0],eT=ew[1];(0,eo.useEffect)(function(){var R,W=(R=(0,er.Z)(ei().mark(function _callee(R){var W;return ei().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,(0,eh.Z)(eg.Z.relatedAnnouncements.transformation(R),eg.Z.relatedAnnouncements.endpoint(R,ex));case 3:(null==(W=G.sent)?void 0:W.statusCode)<300&&null!=W&&W.data&&(W.stats&&eT(W.stats.total),ep(W.data.announcements.filter(function(R){return R.id!==et})),el(!1)),G.next=10;break;case 7:G.prev=7,G.t0=G.catch(0);case 10:return G.prev=10,el(!1),G.finish(10);case 13:case"end":return G.stop()}},_callee,null,[[0,7,10,13]])})),function(W){return R.apply(this,arguments)});G&&!J?W(G):el(!1)},[G,J]);var eO=(0,eo.useMemo)(function(){return en||(eS>ex?{href:"/bekendmaking/alle-bekendmakingen?theme=".concat(encodeURIComponent(G)),text:eb.Z.sidepanel.moreButton(eS)}:void 0)},[en,eS]);return ed&&!ec?(0,e_.jsxs)(ef,{children:[(0,e_.jsx)("div",{className:"sidePanelTitle",children:(0,e_.jsx)("h2",{children:W})}),(0,e_.jsx)("div",{className:"relatedAnnouncements",children:ed.map(function(R){return(0,e_.jsx)(ey.Z,_objectSpread(_objectSpread({},R),{},{inSidePanel:!0}),R.id)})}),eO&&(0,e_.jsx)(ev.Z,{href:eO.href,children:eO.text})]}):(0,e_.jsx)(em.Z,{loading:!0,lightBg:!0})}},22143:function(R,W,G){"use strict";var J,et=G(71383),er=G(70643),en=G(37850),ei=G(4129),eo=G(80369),es=G(60835),ec=G(74498),el=er.ZP.div.withConfig({displayName:"SourceAttributestyles__StyledSourceAttribute",componentId:"sc-ea5s4g-0"})(["margin:0 0 ","px 0;.label{",";font-family:",";position:relative;margin:0 0 ","px 0;padding:0 0 ","px 0;white-space:normal;",";}ul{list-style-type:none;li{margin:","px 0 0 0;word-break:break-all;word-break:break-word;hyphens:auto;> a{color:",";text-decoration:underline;&:hover{color:",";text-decoration:none;}}","{margin:","px 0 0 0;}}&.inline{display:inline-block;li{display:inline;hyphens:none;&:not(:last-of-type):after{content:', ';}}}&.pills{display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;color:",";margin:0;padding:0;li{margin-right:10px;margin-top:10px;display:inline-flex;a{",";font-family:",";padding:0 ","px;position:relative;height:30px;background-color:",";border-radius:15px;overflow:hidden;line-height:30px;text-decoration:none;white-space:nowrap;&:hover{color:",";background-color:",";}}","}}&.provinceLink{margin-top:","px;","{margin-bottom:8px;}}}.linkedPublisher{> span > a{color:",";text-decoration:underline;&:hover{color:",";text-decoration:none;}}}"],ei.ZP.dist.sm,(0,en.JB)("small"),ei.ZP.fonts.secondary,ei.ZP.dist.xs,ei.ZP.dist.xs,eo.Z,ei.ZP.dist.xxs,ei.ZP.colors.white,ei.ZP.colors.secondaryLight,es.Z,ei.ZP.dist.xs,ei.ZP.colors.white,(0,en.JB)({xs:ei.ZP.fontSizes.label,md:ei.ZP.fontSizes.sm}),ei.ZP.fonts.secondary,ei.ZP.dist.sm,ei.ZP.colors.backgroundSemi,ei.ZP.colors.text,ei.ZP.colors.background,ec.Z.sm(J||(J=(0,et.Z)(["\n                    padding: 0 ","px;\n\n                    a {\n                        margin-top: 7px;\n                        margin-right: 7px;\n                    }\n                "])),ei.ZP.dist.xs),ei.ZP.dist.sm,es.Z,ei.ZP.colors.white,ei.ZP.colors.secondaryLight);W.Z=el},75347:function(R,W,G){"use strict";var J=G(70643),et=G(37850),er=G(4129),en=G(84967),ei=J.ZP.ul.withConfig({displayName:"SuggestedItemsstyles__StyledSuggestedItems",componentId:"sc-10whkkt-0"})(["",";",";",";",";border-top:1px solid ",";list-style-type:none;li{border-top:1px solid ",";&:first-of-type{border-top:none;}}"],(0,et.TE)("padding-top","small"),(0,et.TE)("padding-right","small"),(0,et.TE)("padding-bottom","extraSmall"),(0,et.TE)("padding-left","small"),er.ZP.colors.blue,(0,en.m4)(er.ZP.colors.blue,.3));W.Z=ei},70656:function(R,W,G){"use strict";G.d(W,{Z:function(){return el}});var J=G(67294),et=G(70643),er=G(4129),en=et.ZP.div.withConfig({displayName:"VideoModalstyles__StyledVideoModal",componentId:"sc-1dl8fym-0"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:","px 0;.meta{font-family:",";color:",";display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative;z-index:4;min-width:280px;margin-top:","px;}"],er.ZP.dist.sm,er.ZP.fonts.secondary,er.ZP.colors.white,er.ZP.dist.sm),ei=G(70835),eo=G(59200),es=G(90281),ec=G(85893);eo.Z.log.level("off");var el=(0,ei.Z)(function(R){var W=R.src,G=R.CloseButton,et=R.open,er=R.caption,ei=(0,J.useState)(320),eo=ei[0],el=ei[1],eu=(0,J.useState)(200),ed=eu[0],ep=eu[1],ef=(0,J.useRef)();return(0,J.useEffect)(function(){el(window.innerWidth);var R=window.innerHeight,W=.625*window.innerWidth;W>R?ep(R):ep(W),!et&&ef.current&&ef.current.pause()},[et,ef]),W?(0,ec.jsxs)(en,{children:[(0,ec.jsx)(G,{}),et&&(0,ec.jsx)(es.Z,{autoPlay:!0,setVideoRef:function(R){R&&(ef.current=R)},src:W,presetWidth:eo,presetHeight:ed}),er&&(0,ec.jsx)("div",{className:"meta",children:(0,ec.jsx)("div",{className:"caption",children:er})})]}):null})},18257:function(R,W,G){"use strict";G.d(W,{Z:function(){return eb}});var J,et=G(59499);G(67294);var er=G(71383),en=G(70643),ei=G(99604),eo=G(4129),es=G(37184),ec=G(74498),el=G(37850),eu=en.ZP.div.withConfig({displayName:"Zoomedstyles__StyledZoomed",componentId:"sc-p593tr-0"})([".closeBackground{z-index:2;}.zoomInner{width:calc(100% - ","px);height:calc(100vh - ","px);top:","px;margin-left:","px;margin-right:","px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;pointer-events:none;position:relative;z-index:3;","{width:100%;height:100%;z-index:1;img{width:100%;height:100%;object-fit:contain;}}.meta{font-family:",";color:",";display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative;z-index:4;min-width:280px;margin-top:","px;.publisher{position:relative;z-index:3;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;margin-left:","px;pointer-events:all;color:",";","{margin-left:8px;}}.sourceLink{position:relative;z-index:3;display:flex;pointer-events:all;color:",";","{color:",";}}","}.buttons{margin-top:","px;display:flex;justify-content:center;align-items:center;flex-direction:row;button{z-index:3;pointer-events:all;&:first-of-type{margin-right:","px;}}}}"],eo.ZP.grid.gutter,eo.ZP.grid.gutter,eo.ZP.grid.gutter/2,eo.ZP.grid.gutter/2,eo.ZP.grid.gutter/2,ei.Z,eo.ZP.fonts.secondary,eo.ZP.colors.white,eo.ZP.dist.sm,eo.ZP.dist.sm,eo.ZP.colors.whiteDark,es.Z,eo.ZP.colors.white,es.Z,eo.ZP.colors.white,ec.Z.md(J||(J=(0,er.Z)(["\n                flex-direction: column;\n                width: 100%;\n                align-items: flex-start;\n                ",";\n\n                .publisher {\n                    margin: ","px 0 0 0;\n                }\n            "])),(0,el.JB)("small"),eo.ZP.dist.xxs),eo.ZP.dist.sm,eo.ZP.dist.sm),ed=G(70835),ep=G(40805),ef=G(1702),eh=G(54814),eg=G(11163),em=G(9558),ey=G(747),ev=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var eb=(0,ed.Z)(function(R){var W=R.image,G=R.meta,J=R.CloseButton,er=(R.CloseBackground,R.personSuggestHref),en=(0,eg.useRouter)(),navigateToUploadOption=function(R){en.push({pathname:er,query:{form:R}})};return(0,ev.jsxs)(eu,{children:[(0,ev.jsxs)("div",{className:"zoomInner",children:[W&&(0,ev.jsx)(ep.Z,function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({},W),W.src),er&&(0,ev.jsxs)("div",{className:"buttons",children:[(0,ev.jsx)(em.Z,{click:function(){return navigateToUploadOption("personImageCrop")},className:"cropButton",icon:"crop",iconSize:24,iconRight:!0,children:ey.Z.suggestButtonLabels.cropImage}),(0,ev.jsx)(em.Z,{click:function(){return navigateToUploadOption("personImage")},className:"cropButton",color:eo.wL.secondary,icon:"upload",iconSize:24,iconRight:!0,children:ey.Z.suggestButtonLabels.uploadImage})]}),G&&(0,ev.jsxs)("div",{className:"meta",children:[G.caption&&!G.source&&(0,ev.jsx)("div",{className:"caption",children:G.caption}),G.caption&&G.source&&(0,ev.jsx)(eh.Z,{href:G.source,className:"sourceLink",children:G.caption}),G.publisher&&(0,ev.jsxs)("a",{className:"publisher",href:G.publisher.url,target:"_blank",rel:"noopener",title:G.publisher.title,children:[G.publisher.title,(0,ev.jsx)(ef.Z,{className:"iconExternal",name:"external",size:14})]})]})]}),(0,ev.jsx)(J,{})]})})},34960:function(R,W,G){"use strict";var J=G(70643),et=G(37850),er=J.ZP.div.withConfig({displayName:"AerialWarfareCrashMapstyles__StyledAerialWarfareCrashMap",componentId:"sc-1ufde82-0"})(["",";width:100%;.marker-icon{position:absolute;max-width:30px;bottom:0;left:50%;transform:translate(-50%,50%);}"],function(R){return!R.freeHeight&&(0,et.TE)("height",{xs:260,sm:360,md:450,lg:520,xl:600})});W.Z=er},27701:function(R,W,G){"use strict";var J=G(5152),et=G.n(J),er=G(40865),en=G(1702);G(67294);var ei=G(85893),eo=et()(function(){return Promise.all([G.e(2634),G.e(2909),G.e(3987)]).then(G.bind(G,3987))},{loading:function(){return(0,ei.jsx)(er.Z,{justifyContent:"center",cols:[1],noGutter:!0,children:(0,ei.jsx)(en.Z,{name:"spinner",size:10})})},ssr:!1,loadableGenerated:{webpack:function(){return[3987]}}});W.Z=eo},88278:function(R,W,G){"use strict";var J=G(27812),et=G(59499);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var er=[[0,12],[12,18],[18,25],[25,35],[35,50],[50,65],[65,80],[80,150]],ageGroupKey=function(R){return R[1]>80?"".concat(R[0],"+"):"".concat(R[0]>0?R[0]+1:R[0],"-").concat(R[1])};W.Z=function(R){var W=R.items.map(function(R){return{age:R.tuple[0],count:R.probability}}),G=er.reduce(function(R,W){return _objectSpread(_objectSpread({},R),{},(0,et.Z)({},ageGroupKey(W),{count:0,percentage:"0%"}))},{});W.forEach(function(R){var W=er.find(function(W){return R.age>W[0]&&R.age<=W[1]});if(W){var J=ageGroupKey(W);G[J].count=G[J].count+R.count}});var en=Math.max.apply(Math,(0,J.Z)(Object.values(G).map(function(R){return R.count})));return{items:Object.keys(G).reduce(function(R,W){return _objectSpread(_objectSpread({},R),{},(0,et.Z)({},W,{count:G[W].count,percentage:"".concat(Math.floor(G[W].count/en*100),"%")}))},{})}}},9766:function(R,W,G){"use strict";G.d(W,{Z:function(){return InfographicAgeDistribution_InfographicAgeDistribution}});var J=G(16835);G(67294);var et=G(70643),er=G(4129),en=et.ZP.div.withConfig({displayName:"InfographicAgeDistributionstyles__StyledInfographicAgeDistribution",componentId:"sc-1e4i8bg-0"})(["width:100%;display:flex;flex-direction:row;justify-content:stretch;align-items:stretch;line-height:15px;.ageGroup{height:15px;display:flex;flex-direction:row;justify-content:stretch;align-items:flex-start;margin:","px 0;}.keyColumn,.valueColumn{display:flex;flex-direction:column;justify-content:flex-start;}.keyColumn{font-size:14px;align-items:flex-end;flex-shrink:0;margin-right:","px;.ageGroup{font-weight:400;}}.valueColumn{font-size:","px;color:",";width:100%;.ageGroup{width:100%;.bar{height:15px;border-radius:7.5px;background-color:",";min-width:1px;}.count{margin-left:12px;}}}",";"],er.ZP.dist.sm,er.ZP.dist.sm,er.ZP.fontSizes.sm,er.ZP.colors.secondary,er.ZP.colors.tertiary,function(R){return R.inSidepanel&&(0,et.iv)([".count{color:",";}"],er.ZP.colors.white)}),ei=G(85893),InfographicAgeDistribution_InfographicAgeDistribution=function(R){var W=R.items,G=R.inSidepanel;return(0,ei.jsxs)(en,{inSidepanel:G,children:[(0,ei.jsx)("div",{className:"keyColumn",children:Object.keys(W).map(function(R){return(0,ei.jsx)("div",{className:"ageGroup",children:R},R)})}),(0,ei.jsx)("div",{className:"valueColumn",children:Object.entries(W).map(function(R){var W=(0,J.Z)(R,2),G=W[0],et=W[1];return(0,ei.jsxs)("div",{className:"ageGroup",children:[(0,ei.jsx)("div",{className:"bar",style:{width:et.percentage,minWidth:"0%"!==et.percentage?2:1}}),(0,ei.jsx)("div",{className:"count",children:et.count})]},G)})})]})}},43704:function(R,W,G){"use strict";var J=G(27812),et=G(11626);W.Z=function(R,W){var G=R.items;if(G&&0!==G.length){var er=Math.round(G.reduce(function(R,W){return R+W.probability},0)),en=Math.max.apply(Math,(0,J.Z)(G.map(function(R){return Math.round(R.probability)}))),ei=G.map(function(R){R.rank;var W=R.probability;return{label:R.tuple[0],percentage:Math.round(W/en*100),count:W}});if(W&&W>er){var eo=W-er;ei.push({label:et.Z.sidePanels.otherPersons.unknownGroupLabel,percentage:Math.round(eo/en*100),count:eo})}return{total:er,groups:ei}}}},91213:function(R,W,G){"use strict";G.d(W,{Z:function(){return InfographicCategory_InfographicCategory}}),G(67294);var J=G(70643),et=G(37850),er=G(4129),en=J.ZP.div.withConfig({displayName:"InfographicCategorystyles__StyledInfographicCategory",componentId:"sc-vnd9eg-0"})(["display:flex;flex-direction:column;justify-content:flex-start;align-items:center;width:100%;.group{",";display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;.label{",";width:100%;text-align:justify-all;font-weight:bold;.count{font-family:",";margin-left:4px;padding-left:7px;position:relative;font-weight:normal;&:before{content:'';width:4px;height:4px;border-radius:2px;background-color:",";position:absolute;top:50%;left:0;transform:translate(-50%,-50%);}}}.bar{",";background-color:rgba(40,40,39,0.2);height:35px;position:relative;.barBg,.barFill{position:absolute;top:0;left:0;width:100%;height:100%;}.barBg{background-image:url('/img/person_mask.png');background-repeat:repeat-x;background-size:13.5px;}.barFill{background-color:",";}}}",";"],(0,et.TE)("margin-top","small"),(0,et.JB)("medium"),er.ZP.fonts.secondary,er.ZP.colors.text,(0,et.TE)("width",{xs:243,sm:337.5}),er.ZP.colors.secondary,function(R){return R.inSidepanel&&(0,J.iv)(["align-items:flex-start;.group{.label{.count:before{background-color:",";}}.bar{background:",";.barBg{background-image:url('/img/person_mask_dark.png');}}}"],er.ZP.colors.white,er.ZP.colors.backgroundDark)}),ei=G(85893),InfographicCategory_InfographicCategory=function(R){R.total;var W=R.groups,G=R.inSidepanel;return(0,ei.jsx)(en,{inSidepanel:G,children:W.map(function(R){return(0,ei.jsxs)("div",{className:"group",children:[(0,ei.jsxs)("div",{className:"label",children:[R.label,"  ",(0,ei.jsx)("span",{className:"count",children:R.count})]}),(0,ei.jsxs)("div",{className:"bar",children:[(0,ei.jsx)("div",{className:"barFill",style:{width:"".concat(R.percentage,"%"),maxWidth:14*R.count}}),(0,ei.jsx)("div",{className:"barBg"})]})]},R.label)})})}},76139:function(R,W,G){"use strict";var J=G(27812),et=G(27484),er=G.n(et),en=G(48148);W.Z=function(R,W,G){var et,ei,eo=R.items;if(eo&&0!==eo.length){var es=eo.map(function(R){return{date:er()(R.tuple).format("MM-YYYY"),rawDate:er()(R.tuple),deaths:R.probability}}),ec=G||er()("1937/12/31"),el=er()("1950/01/01"),eu=es.filter(function(R){return R&&R.rawDate&&R.rawDate.isAfter(ec)&&R.rawDate.isBefore(el)}).sort(function(R,W){return R.rawDate.isAfter(W.rawDate)?1:-1}),ed=null===(et=eu[0])||void 0===et?void 0:et.rawDate.subtract(1,"month").startOf("month"),ep=null===(ei=eu[eu.length-1])||void 0===ei?void 0:ei.rawDate.add(2,"month").startOf("month"),ef={};eu.forEach(function(R){ef[R.date]?ef[R.date]=ef[R.date]+R.deaths:ef[R.date]=R.deaths});for(var eh=[],eg=ed;eg.isBefore(ep);eg=eg.add(1,"month"))eh.push({date:(0,en.Q)(eg.toDate()),deaths:ef[eg.format("MM-YYYY")]||0});var em=Math.max.apply(Math,(0,J.Z)(eh.map(function(R){return R.deaths})));return{items:eh,startYear:(0,en.wX)(ed.toDate()),endYear:(0,en.wX)(ep.subtract(1,"month").toDate()),highestPerMonth:em}}}},40839:function(R,W,G){"use strict";G.d(W,{Z:function(){return InfographicDeathDate_InfographicDeathDate}}),G(67294);var J=G(70643).ZP.div.withConfig({displayName:"InfographicDeathDatestyles__StyledInfographicDeathDate",componentId:"sc-b5lblw-0"})(["width:100%;.recharts-layer.xAxis{.recharts-cartesian-axis-ticks{.recharts-cartesian-axis-tick{display:none;&:first-of-type,&:last-of-type{display:block;}}}}.tooltipBar{background:red;width:20px;height:100%;}"]),et=G(29009),er=G(46888),en=G(14195),ei=G(3023),eo=G(25048),es=G(75358),ec=G(26050),el=G(86108),eu=G(4129),ed=G(49368),ep=G(85893),InfographicDeathDate_InfographicDeathDate=function(R){var W=R.inSidepanel,G=R.items,ef=R.startYear,eh=R.endYear,eg=R.highestPerMonth;return(0,ep.jsx)(J,{inSidepanel:W,children:(0,ep.jsx)(et.h,{width:"100%",height:400,children:(0,ep.jsxs)(er.T,{data:G,margin:{top:60,left:0,right:0,bottom:0},children:[(0,ep.jsx)(en.q,{vertical:!1,stroke:eu.ZP.colors.secondary,strokeOpacity:.3}),(0,ep.jsxs)(ei.K,{dataKey:"date",tickLine:!1,axisLine:!1,style:{fontSize:0,fill:W?eu.ZP.colors.white:eu.ZP.colors.black},tickMargin:0,children:[(0,ep.jsx)(eo._,{value:ef,position:"insideLeft",offset:0}),(0,ep.jsx)(eo._,{value:eh,position:"insideRight",offset:0})]}),(0,ep.jsx)(es.B,{tickCount:eg>6?5:eg,tickLine:!1,axisLine:!1,width:40,style:{fontSize:12,fill:W?eu.ZP.colors.white:eu.ZP.colors.textDark}}),(0,ep.jsx)(ec.u,{cursor:{strokeDasharray:"5 2",stroke:W?eu.ZP.colors.white:eu.ZP.colors.text,strokeWidth:.5},allowEscapeViewBox:{x:!0},content:(0,ep.jsx)(ed.Z,{singularLabel:"dode",pluralLabel:"doden"}),position:{y:0},offset:0,isAnimationActive:!1}),(0,ep.jsx)(el.u,{activeDot:{r:5,fill:eu.ZP.colors.primary,strokeWidth:3},dataKey:"deaths",fillOpacity:1,fill:"#C6D2E0",stroke:eu.ZP.colors.secondary,strokeWidth:1.5})]})})})}},16554:function(R,W){"use strict";W.Z=function(R){var W=R.items;if(W&&0!==W.length){var G=W.filter(function(R){var W=R.tuple;return"male"!==W[0]&&"female"!==W[0]}).reduce(function(R,W){return R+W.probability},0);return{groups:W.map(function(R){R.rank;var W=R.probability,J=R.tuple[0];return("man"===J||"Man"===J)&&(J="Mannen"),("vrouw"===J||"Vrouw"===J)&&(J="Vrouwen"),{label:J,percentage:Math.round(W/G*100),count:W}}).filter(function(R){return"male"!==R.label&&"female"!==R.label}).sort(function(R,W){return"Mannen"===R.label?-1:1})}}}},4135:function(R,W,G){"use strict";G.d(W,{Z:function(){return InfographicGender_InfographicGender}}),G(67294);var J=G(70643),et=G(37184),er=G(37850),en=G(4129),ei=J.ZP.div.withConfig({displayName:"InfographicGenderstyles__StyledInfographicGender",componentId:"sc-m7lk26-0"})(["position:relative;width:",";display:flex;flex-direction:column;justify-content:flex-start;align-items:center;.genderIcons{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;position:absolute;top:","px;left:50%;transform:translate(-50%,-50%);","{margin:0 -4px;}}.legenda{",";width:100%;max-width:","px;display:flex;flex-direction:row;justify-content:center;align-items:flex-start;.genderGroup{width:50%;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;.percentage{",";margin-bottom:","px;line-height:1;}.gender{font-weight:400;}}}"],function(R){return R.inSidepanel?"230px":"100%"},function(R){return R.inSidepanel?115:150},et.Z,function(R){return(0,er.TE)("margin-top",R.inSidepanel?"small":"medium")},function(R){return R.inSidepanel?200:250},(0,er.JB)({xs:24,md:36}),en.ZP.dist.xxs),eo=G(29009),es=G(73604),ec=G(46208),el=G(43815),eu=G(1702),ed=G(85893),InfographicGender_InfographicGender=function(R){var W=R.groups,G=R.inSidepanel;return(0,ed.jsxs)(ei,{inSidepanel:G,children:[(0,ed.jsx)(eo.h,{width:G?230:"100%",height:G?230:300,children:(0,ed.jsx)(es.u,{margin:{top:0,left:0,right:0,bottom:0},children:(0,ed.jsx)(ec.b,{isAnimationActive:!1,data:W,dataKey:"percentage",cx:"50%",cy:"50%",startAngle:90,endAngle:450,legendType:"none",paddingAngle:0,innerRadius:G?90:120,outerRadius:G?100:135,strokeOpacity:0,fill:"#8884d8",children:W.map(function(R){return(0,ed.jsx)(el.b,{fill:"Mannen"===R.label?en.ZP.colors.tertiary:en.ZP.colors.secondary},R.label)})})})}),(0,ed.jsxs)("div",{className:"genderIcons",children:[W.some(function(R){return"Mannen"===R.label})&&(0,ed.jsx)(eu.Z,{name:"male",size:G?60:77}),W.some(function(R){return"Vrouwen"===R.label})&&(0,ed.jsx)(eu.Z,{name:"female",size:G?54:70})]}),(0,ed.jsx)("div",{className:"legenda",children:W.map(function(R){return(0,ed.jsxs)("div",{className:"genderGroup",children:[(0,ed.jsxs)("div",{className:"percentage",style:{color:"Mannen"===R.label?en.ZP.colors.tertiary:en.ZP.colors.secondary},children:[R.percentage,"%"]}),(0,ed.jsx)("div",{className:"gender",children:R.label})]},R.label)})})]})}},22620:function(R,W,G){"use strict";var J=G(59499),et=G(97674);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R,W){var G=R.items.map(function(R){return _objectSpread(_objectSpread({},(0,et.g2)(R)),{},{count:R.probability})}).filter(function(R){return R&&"location"in R&&R.location});return{items:W?G.filter(function(R){return!W.some(function(W){return W.id===R.id})}):G,pointsOfInterest:null==W?void 0:W.map(function(R){var W=G.find(function(W){return W.id===R.id});return _objectSpread(_objectSpread({},R),{},{count:(null==W?void 0:W.count)||R.count})}),features:{type:"FeatureCollection",features:G.map(function(R){return{type:"Feature",geometry:{type:"Point",coordinates:[R.location.longitude,R.location.latitude]},properties:R}})}}}},27545:function(R,W,G){"use strict";var J,et=G(71383),er=G(70643),en=G(4129),ei=G(96071),eo=er.ZP.div.withConfig({displayName:"OrganizationDetailRelatedSubjectsChartstyles__StyledOrganizationDetailRelatedSubjectsChart",componentId:"sc-1ka0xlg-0"})([".subjectPieChartWrapper{position:relative;flex:1;width:","%;height:fit-content;.innerText{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);span{line-height:1.25;}span:last-of-type{font-size:","px;font-family:",";}}}.subjectListWrapper{ul{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;"," li{::marker{font-size:140%;}button{margin-bottom:","px;vertical-align:middle;cursor:pointer;span{font-size:",";color:",";}.count{color ",";font-family:",";}}}}}"],function(R){return R.inSidePanel?100:50},en.ZP.fontSizes.xl,en.ZP.fonts.secondary,ei.Z.lg(J||(J=(0,et.Z)(["\n                margin-left: 50px;\n            "]))),en.ZP.dist.xs,en.ZP.fonts.primary,en.ZP.colors.black,en.ZP.colors.blue,en.ZP.fonts.secondary);W.Z=eo},82753:function(R,W,G){"use strict";var J=G(59499),et=G(67294),er=G(27545),en=G(40865),ei=G(45108),eo=G(29009),es=G(73604),ec=G(46208),el=G(43815),eu=G(4129),ed=G(90693),ep=G(25617),ef=G(88001),eh=G(85893);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var renderActiveShape=function(R){var W=R.cx,G=R.cy,J=R.innerRadius,et=R.outerRadius,er=R.startAngle,en=R.endAngle,eo=R.fill;return(0,eh.jsx)(ei.L,{cx:W,cy:G,innerRadius:J-7,outerRadius:et+5,startAngle:er,endAngle:en,fill:eo,style:{filter:"drop-shadow(0px 0px 7px rgba(0,0,0,0.32))"}})};W.Z=function(R){var W=R.charts,G=R.total,J=R.inSidePanel,ei=(0,et.useState)(void 0),eg=ei[0],em=ei[1],ey=(0,ep.v9)(function(R){return R.body}).breakpoint;return(0,eh.jsxs)(er.Z,{as:ed.Z,inSidePanel:J,alignItems:"center",children:[(0,eh.jsxs)(en.Z,{cols:J?{xs:.5}:{xs:1,md:.5,lg:1,xl:.5},className:"subjectPieChartWrapper",children:[(0,eh.jsxs)("div",{className:"innerText",children:[(0,eh.jsx)("span",{children:"Totaal"}),(0,eh.jsx)("span",{children:(0,ef.Z)(G)})]}),(0,eh.jsx)(eo.h,{width:"99%",aspect:1,children:(0,eh.jsx)(es.u,{margin:{top:0,left:0,right:0,bottom:0},children:(0,eh.jsx)(ec.b,{maxRadius:200,activeIndex:eg,data:W,dataKey:"count",cx:"50%",cy:"50%",innerRadius:"55%",outerRadius:"90%",activeShape:function(R){return renderActiveShape(_objectSpread(_objectSpread({},R),{},{breakpoint:ey}))},fill:eg?W[eg].color:eu.wL.primary,children:W.map(function(R){return(0,eh.jsx)(el.b,{fill:R.color},R.label)})})})})]}),(0,eh.jsx)(en.Z,{cols:J?{xs:.5}:{xs:1,md:.5,lg:1,xl:.5},className:"subjectListWrapper",top:{xs:eu.ZP.dist.xs,sm:eu.ZP.dist.sm,lg:0},children:W&&(0,eh.jsx)("ul",{children:W.map(function(R,W){return(0,eh.jsx)("li",{style:{color:R.color},children:(0,eh.jsx)("button",{type:"button",onMouseOver:function(){em(W)},onMouseLeave:function(){em(void 0)},onClick:function(){em(W)},"aria-label":"".concat(R.label," ").concat(R.count),children:(0,eh.jsxs)("span",{children:[R.label," ",(0,eh.jsx)("span",{className:"count",children:(0,ef.Z)(R.count)})]})})})})})})]})}},67139:function(R,W,G){"use strict";G.d(W,{Z:function(){return OrganizationDetailRelatedSubjectsChart_OrganizationDetailRelatedSubjectsChartTransform}});var J=G(4129),et={"http://schema.org/Photograph":"#6B9E76","https://data.niod.nl/ArchiveFile":"#657487","http://schema.org/Book":"#49624E","https://data.niod.nl/Archive":"#BA5345","http://www.w3.org/2000/01/rdf-schema#Resource":"#E49B66","https://data.niod.nl/Bekendmaking":"#FFCD4E"},OrganizationDetailRelatedSubjectsChart_OrganizationDetailRelatedSubjectsChartTransform=function(R){return{total:R.map(function(R){return R.probability}).reduce(function(R,W){return(R||0)+(W||0)},0)||0,charts:R.map(function(R){return{label:R.label,count:R.probability&&R.probability,color:et[R.id]||J.wL.gray,id:R.id}})}}},34085:function(R,W,G){"use strict";G.d(W,{KX:function(){return ec},_4:function(){return es},tO:function(){return eo}});var J=G(70643),et=G(68846),er=G(4129),en=G(37184),ei=G(37850),eo=(0,J.ZP)(et.ww.div).withConfig({displayName:"PageLoaderstyles__StyledPageLoader",componentId:"sc-i4bs8u-0"})(["position:fixed;top:0;left:0;width:100%;height:100%;background:",";z-index:",";display:flex;flex-direction:row;justify-content:center;align-items:center;&:before{",";content:'';position:absolute;width:100%;top:0;left:0;opacity:0.3;background-image:linear-gradient(180deg,"," 0%,rgba(255,255,255,0) 100%);}","{color:",";}"],er.ZP.colors.background,er.ZP.zIndexes.loader,(0,ei.TE)("height",{xs:160,sm:300}),er.ZP.colors.grayDark,en.Z,er.ZP.colors.secondary),es=J.ZP.div.withConfig({displayName:"PageLoaderstyles__StyledPageLoaderBackground",componentId:"sc-i4bs8u-1"})(["background:transparent;transition:background 250ms ease-out;position:relative;&:before{",";content:'';position:absolute;width:100%;top:0;left:0;opacity:0.3;background-image:linear-gradient(180deg,"," 0%,rgba(255,255,255,0) 100%);}",";"],(0,ei.TE)("height",{xs:160,sm:300}),er.ZP.colors.grayDark,function(R){return R.bg&&(0,J.iv)(["background:",";color:",";"],R.bg,R.bg===er.wL.backgroundDark&&er.ZP.colors.white)}),ec=(0,J.ZP)(et.ww.div).withConfig({displayName:"PageLoaderstyles__StyledElementLoader",componentId:"sc-i4bs8u-2"})(["position:absolute;bottom:-320px;left:0;width:100%;height:320px;background:",";z-index:",";display:flex;flex-direction:row;justify-content:center;align-items:center;","{color:",";}"],function(R){return R.lightBg?"transparent":er.ZP.colors.backgroundDark},er.ZP.zIndexes.loader,en.Z,er.ZP.colors.white)},70108:function(R,W,G){"use strict";var J=G(48046);W.Z=function(R,W,G,et){if(R.items&&0!==R.items.length){var er=R.items.slice(0,4);return{items:R.items.slice(4).map(J.ll),highlighted:er.map(J.ll),total:null==et?void 0:et.total,more:{text:G||"Alle mensen",href:{pathname:"/mensen",query:W}}}}}},8384:function(R,W,G){"use strict";G.d(W,{J:function(){return bestDateAsDayjs}});var J=G(59499),et=G(97674),er=G(27484),en=G.n(er),ei=G(87534),eo=G(69910);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var bestDateAsDayjs=function(R){return R.startDate?en()(R.startDate):R.endDate?en()(R.endDate):en()(R.date)};W.Z=function(R,W){var G=R.items.map(et.g2).filter(function(R){return void 0!==R}).filter(function(R){var W;return!!(null!==(W=R.dateObj)&&void 0!==W&&W.date)&&!!R.location}).map(function(R){return{item:R,dayjsDate:bestDateAsDayjs(R.dateObj)}}).sort(function(R,W){return R.dayjsDate.isAfter(en()(W.dayjsDate))?1:-1}),J=G.length>0?G[0].dayjsDate.startOf("month"):en()("1-1-1940"),er=(G.length>0?G[G.length-1].dayjsDate.endOf("month"):en()("31-12-1945")).diff(J,"minute"),es=G.map(function(R){var W=R.item,G=R.dayjsDate;return{item:W,config:{in:G.diff(J,"minute")/er,date:G}}}),ec={type:"FeatureCollection",features:es.map(function(R){var W;return{type:"Feature",id:R.item.id,geometry:{type:"Point",coordinates:[R.item.location.longitude,R.item.location.latitude]},properties:_objectSpread({id:R.item.id,fadeIn:R.config.in,locationLabel:R.item.locationLabel,locationSlug:R.item.locationLabel?(0,ei.pR)(R.item.locationLabel):void 0,date:null===(W=R.item.dateObj)||void 0===W?void 0:W.asString},R.item.location)}})},el=(0,eo.ZP)(es);return _objectSpread(_objectSpread({items:es,geoJson:ec,scrubber:el},W),{},{type:"flow"})}},40111:function(R,W,G){"use strict";G.d(W,{a:function(){return eo},Z:function(){return SidePanel_SidePanel}});var J,et,er,en,ei,eo,es=G(59499),ec=G(77191),el=G(67294),eu=G(25617),ed=G(17391),ep=G(71383),ef=G(70643),eh=G(4129),eg=G(96071),em=G(70205),ey=G(99604),ev=G(40579),eb=G(34085),e_=G(74498),ex=G(37184),ew=ef.ZP.div.withConfig({displayName:"SidePanelstyles__StyledSidePanel",componentId:"sc-1nfb8i1-0"})([".sidePanelOverlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:",";opacity:0.5;z-index:",";}.sidePanelContainer{position:fixed;top:0;right:0;width:100%;height:100%;background-color:",";color:",";overflow-y:auto;z-index:",";display:flex;flex-direction:column;justify-content:stretch;align-items:flex-start;","}.sidePanelContent{position:relative;padding:","px ","px 0;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;width:100%;> .title{margin-bottom:","px;}p{word-break:break-word;}.poi-entities{width:100%;position:relative;padding-top:40px;margin-top:20px;border-top:1px solid ",";display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:20px;}}.sidePanelFooter{padding:","px;}.sidePanelHeader{position:relative;width:100%;height:auto;.headerImage{:not(:has(",")){min-height:85px;","}}&:before{content:'';position:absolute;width:100%;height:50%;bottom:0;background:linear-gradient(0deg,rgba(0,0,0,1) 0%,rgba(255,255,255,0) 100%);}}.headerImage{","{height:auto;img{max-height:540px;object-fit:cover;object-position:center;}}","{height:100%;}}.sidePanelRelatedPersonsHeader{min-height:90px;width:100%;}.closeButton{position:absolute;top:30px;right:30px;z-index:",";","{width:55px;height:55px;}","}.contentImage{margin-top:-30%;margin-bottom:","px;}.title{hyphens:auto;}.subtitle{font-size:30px;color:",";margin-bottom:","px;}.dateRange{font-family:",";color:",";text-transform:uppercase;}.callToActionIcon{margin-left:","px;}","{position:absolute;top:0;}"],eh.ZP.colors.black,eh.ZP.zIndexes.overlay,eh.ZP.colors.black,eh.ZP.colors.white,eh.ZP.zIndexes.modal,eg.Z.md(et||(et=(0,ep.Z)(["\n            width: 470px;\n        "]))),eh.ZP.dist.xl,eh.ZP.dist.xl,eh.ZP.dist.sm,eh.ZP.colors.gray,eh.ZP.dist.xl,ey.Z,e_.Z.sm(er||(er=(0,ep.Z)(["\n                      min-height: 20px;\n                "]))),ey.Z,ev.Z,eh.ZP.zIndexes.overlay,em.ZP,e_.Z.sm(en||(en=(0,ep.Z)(["\n            top: 15px;\n            right: 15px;\n\n            "," {\n                width: 35px;\n                height: 35px;\n\n                "," {\n                    svg {\n                        width: 10px;\n                    }\n                }\n            }\n        "])),em.ZP,ex.Z),eh.ZP.dist.lg,eh.ZP.colors.secondaryExtraLight,eh.ZP.dist.md,eh.ZP.fonts.secondary,eh.ZP.colors.secondaryExtraLight,eh.ZP.dist.sm,eb.KX),eS=ef.ZP.div.withConfig({displayName:"SidePanelPersonstyles__StyledSidePanelPerson",componentId:"sc-e3dbs-0"})([""]),eT=G(40805),eO=G(85893),SidePanelPerson_SidePanelPerson=function(R){var W,G,J,et,er=R.name,en=R.dates,ei=R.thumbnail,eo=R.flat;return(0,eO.jsxs)(eS,{children:[(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsx)("div",{className:"headerImage",children:ei&&(0,eO.jsx)(eT.Z,{src:null===(W=ei.primary)||void 0===W?void 0:W.src,alt:null===(G=ei.primary)||void 0===G?void 0:G.alt,useFallback:!0,fallbackClass:"fallback"})})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsx)("h2",{className:"title",children:er}),en&&(0,eO.jsxs)("p",{className:"dateRange",children:[null===(J=en.birth)||void 0===J?void 0:J.dateAsString," - ",null===(et=en.death)||void 0===et?void 0:et.dateAsString]}),eo.description&&(0,eO.jsx)(eO.Fragment,{children:Array.isArray(eo.description.value)?eo.description.value.map(function(R){return(0,eO.jsx)("p",{children:R})}):(0,eO.jsx)("p",{children:eo.description.value})})]}),(0,eO.jsx)("div",{className:"sidePanelFooter"})]})},eP=G(50029),eC=G(87794),ek=G.n(eC),eE=G(11626),ej=G(9558),eA=G(1702),eD=G(58608),eI=G(32959),eM=G(15443),eL=G(18937),eR=G(26027),eN=G(45995);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var SidePanelThesaurusWithFetch=function(R){var W=R.id,G=(0,el.useState)(void 0),J=G[0],et=G[1];return(0,el.useEffect)(function(){var R,G=(R=(0,eP.Z)(ek().mark(function _callee(R){var W;return ek().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,(0,eI.Z)(eM.Z.single.transformation,eM.Z.single.endpoint(R));case 3:(null==(W=G.sent)?void 0:W.statusCode)<300&&null!=W&&W.data&&et(W.data),G.next=10;break;case 7:G.prev=7,G.t0=G.catch(0);case 10:case"end":return G.stop()}},_callee,null,[[0,7]])})),function(W){return R.apply(this,arguments)});W&&G(W)},[W]),J?(0,eO.jsx)(SidePanelThesaurus,_objectSpread({},J)):null},SidePanelThesaurus=function(R){var W,G,J,et=R.id,er=R.thumbnail,en=R.video,ei=R.title,eo=R.href,es=R.flat,ec=R.isPOI,eu=(0,el.useState)({loading:ec||!1,entities:[]}),ed=eu[0],ep=eu[1];return(0,el.useEffect)(function(){var R;(R=(0,eP.Z)(ek().mark(function _callee2(R){var W;return ek().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,(0,eI.Z)(eM.Z.poiEntities.transformation,eM.Z.poiEntities.endpoint(R,50));case 3:ep({loading:!1,entities:null===(W=G.sent.data)||void 0===W?void 0:W.items}),G.next=11;break;case 7:G.prev=7,G.t0=G.catch(0),ep({loading:!1,entities:void 0});case 11:case"end":return G.stop()}},_callee2,null,[[0,7]])})),function(W){return R.apply(this,arguments)})(et)},[ec,et]),(0,eO.jsxs)(eO.Fragment,{children:[(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsxs)("div",{className:"headerImage",children:[en&&(0,eO.jsx)(eD.Z,_objectSpread({},en)),!en&&er&&(0,eO.jsx)(eT.Z,{src:er.src,alt:er.alt,useFallback:!0,fallbackClass:"multiple",fit:"contain"})]})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsx)("h2",{className:"title",children:ei}),(0,eO.jsx)("p",{children:es&&(null===(W=es.definition)||void 0===W?void 0:W.value)||(null===(G=es.scopeNote)||void 0===G?void 0:G.value)}),ec&&(0,eO.jsxs)(eO.Fragment,{children:[(0,eO.jsx)(eL.Z,{loading:ed.loading,lightBg:!0}),!ed.loading&&ed.entities&&ed.entities.length>0&&(0,eO.jsxs)("div",{className:"poi-entities",children:[(0,eO.jsx)("h4",{children:eN.Z.titles.poi_items})," ",null===(J=ed.entities)||void 0===J?void 0:J.map(function(R,W){return(0,el.createElement)(eR.Z,_objectSpread(_objectSpread({},R),{},{key:R.id}))})]})]})]}),(0,eO.jsx)("div",{className:"sidePanelFooter",children:eo&&(0,eO.jsxs)(ej.Z,{className:"callToAction",href:eo,children:[eE.Z.sidePanels.readMoreLabel,(0,eO.jsx)(eA.Z,{size:14,name:"arrow",className:"callToActionIcon"})]})})]})},SidePanelLocation_SidePanelLocation=function(R){var W,G,J,et,er=R.id,en=(0,el.useState)(),ei=en[0],eo=en[1];return(0,el.useEffect)(function(){var R,W=(R=(0,eP.Z)(ek().mark(function _callee(R){var W;return ek().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,(0,eI.Z)(eM.Z.single.transformation,eM.Z.single.endpoint(R));case 3:(null==(W=G.sent)?void 0:W.statusCode)<300&&null!=W&&W.data&&eo(W.data),G.next=10;break;case 7:G.prev=7,G.t0=G.catch(0);case 10:case"end":return G.stop()}},_callee,null,[[0,7]])})),function(W){return R.apply(this,arguments)});er&&W(er)},[er]),ei?(0,eO.jsxs)(eO.Fragment,{children:[(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsx)("div",{className:"headerImage",children:ei.thumbnail&&(0,eO.jsx)(eT.Z,{src:ei.thumbnail.src,alt:ei.thumbnail.alt,useFallback:!0,fallbackClass:"multiple"})})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsx)("h2",{className:"title",children:ei.title}),(0,eO.jsx)("p",{children:(null===(W=ei.flat)||void 0===W?void 0:null===(G=W.definition)||void 0===G?void 0:G.value)||(null===(J=ei.flat)||void 0===J?void 0:null===(et=J.scopeNote)||void 0===et?void 0:et.value)})]}),(0,eO.jsx)("div",{className:"sidePanelFooter",children:ei.href&&(0,eO.jsxs)(ej.Z,{className:"callToAction",href:ei.href,children:[eE.Z.sidePanels.readMoreLabel,(0,eO.jsx)(eA.Z,{size:14,name:"arrow",className:"callToActionIcon"})]})})]}):(0,eO.jsx)(eL.Z,{loading:!0})},eB=G(66184),eZ=G(67891),eU=G(50496),eF=G(19445),ez=G(68846),eH=G(37850),eq=ef.ZP.div.withConfig({displayName:"SidePanelRelatedPersonsstyles__StyledSidePanelRelatedPersons",componentId:"sc-15phq7e-0"})(["padding:40px;width:100%;.sidePanelTitle{margin-bottom:","px;padding-bottom:","px;border-bottom:1px solid ",";h2{width:240px;","}}.relatedPersons{",";display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;}"],eh.ZP.dist.xl,eh.ZP.dist.md,eh.ZP.colors.backgroundSemi,eg.Z.lg(ei||(ei=(0,ep.Z)(["\n                width: 330px;\n            "]))),(0,eH.TE)("margin-bottom","small")),eV=G(9630);function SidePanelRelatedPersons_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var SidePanelRelatedPersons_SidePanelRelatedPersons=function(R){R.type;var W=R.id,G=R.total,J=R.title,et=R.panelTitle,er=(0,el.useState)(!0),en=er[0],ei=er[1],eo=(0,el.useState)(),ec=eo[0],eu=eo[1];return(0,el.useEffect)(function(){var R,G=(R=(0,eP.Z)(ek().mark(function _callee(R){var W;return ek().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,(0,eI.Z)(eM.Z.relatedPersonsInSidePanel.transformation({theme:R}),eM.Z.relatedPersonsInSidePanel.endpoint(R,12));case 3:(null==(W=G.sent)?void 0:W.statusCode)<300&&null!=W&&W.data&&(eu(W.data),ei(!1)),G.next=10;break;case 7:G.prev=7,G.t0=G.catch(0);case 10:return G.prev=10,ei(!1),G.finish(10);case 13:case"end":return G.stop()}},_callee,null,[[0,7,10,13]])})),function(W){return R.apply(this,arguments)});W&&G(W)},[W]),ec&&!en?(0,eO.jsxs)(eq,{children:[(0,eO.jsx)("div",{className:"sidePanelTitle",children:(0,eO.jsx)("h2",{children:et||J})}),(0,eO.jsx)("div",{className:"relatedPersons",children:ec.items.map(function(R){return(0,eO.jsx)(eV.Z,function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelRelatedPersons_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelRelatedPersons_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({},R),R.id)})}),G>12&&ec.more&&(0,eO.jsx)(ej.Z,{href:ec.more.href,children:ec.more.text})]}):(0,eO.jsx)(eL.Z,{loading:!0,lightBg:!0})},eW=G(54064),eG=G(76718),e$=ef.ZP.div.withConfig({displayName:"SidePanelAnnouncementstyles__StyledSidePanelAnnouncement",componentId:"sc-ii1k0r-0"})([".headerImage{","{",";}}"],ey.Z,(0,eH.TE)("height",{xs:320,md:440})),eK=G(34586);function SidePanelAnnouncement_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SidePanelAnnouncement_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelAnnouncement_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelAnnouncement_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var SidePanelAnnouncement_SidePanelAnnouncement=function(R){var W=R.id,G=(0,el.useState)(),J=G[0],et=G[1];return(0,el.useEffect)(function(){var R,G=(R=(0,eP.Z)(ek().mark(function _callee(R){var W;return ek().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,(0,eI.Z)(eG.Z.single.transformation,eG.Z.single.endpoint(R));case 3:(null==(W=G.sent)?void 0:W.statusCode)<300&&null!=W&&W.data&&et(W.data),G.next=10;break;case 7:G.prev=7,G.t0=G.catch(0);case 10:case"end":return G.stop()}},_callee,null,[[0,7]])})),function(W){return R.apply(this,arguments)});W&&G(W)},[W]),J?(0,eO.jsxs)(e$,{children:[(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsx)("div",{className:"headerImage",children:J.image&&(0,eO.jsx)(eT.Z,SidePanelAnnouncement_objectSpread(SidePanelAnnouncement_objectSpread({},J.image),{},{useFallback:!0,fallbackClass:"multiple",fit:"contain"}))})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsx)("h2",{className:"title",children:J.title}),(0,eO.jsx)("p",{children:J.description})]}),(0,eO.jsx)("div",{className:"sidePanelFooter",children:J.href&&(0,eO.jsxs)(ej.Z,{className:"callToAction",href:J.href,children:[eK.Z.sidepanel.announcement.more,(0,eO.jsx)(eA.Z,{size:14,name:"arrow",className:"callToActionIcon"})]})})]}):null},eY=G(92529),eX=G(86569),eQ=G(14937),eJ=G(85890),e0=ef.ZP.div.withConfig({displayName:"SidePanelBombardmentstyles__StyledSidePanelBombardment",componentId:"sc-1e1vc2b-0"})([".headerImage{position:relative;&:after{content:'';position:absolute;left:0;bottom:0;width:100%;height:50%;z-index:",";background:linear-gradient(180deg,rgba(0,0,0,0) 0%,#000 100%);}}.sidePanelContent{padding-bottom:","px;border-bottom:1px solid ",";.title{",";}.factionFlag{margin-bottom:","px;width:60px;}"," > .tooltip{margin-top:-8px;background-color:",";color:",";&:before{background-color:",";}}}.personsWrapper{padding:","px ","px ","px;border-bottom:1px solid ",";h3{font-size:","px;}","{&:not(:last-of-type){padding-bottom:","px;border-bottom:1px solid rgba(60,70,74,0.3);}}}.mapWrapper{padding:","px ","px 0;}","{margin-bottom:","px;}","{width:100%;}"],eh.ZP.zIndexes.overlay,eh.ZP.dist.lg,eh.ZP.colors.backgroundDark,(0,eH.JB)("h3"),eh.ZP.dist.sm,eJ.Z,eh.ZP.colors.tertiary,eh.ZP.colors.black,eh.ZP.colors.tertiary,eh.ZP.dist.xl,eh.ZP.dist.xl,eh.ZP.dist.lg,eh.ZP.colors.backgroundDark,eh.ZP.fontSizes.xl,eQ.Z,eh.ZP.dist.md,eh.ZP.dist.xl,eh.ZP.dist.xl,eY.Z,eh.ZP.dist.sm,eX.Z),e1=G(94999),e2=G(15347),e3=G(76527),e5=G(5152),e4=G.n(e5),e8=G(40865),e6=G(23566);function SidePanelBombardment_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SidePanelBombardment_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelBombardment_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelBombardment_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var e7=e4()(function(){return Promise.all([G.e(2634),G.e(2909),G.e(7739)]).then(G.bind(G,57739))},{loading:function(){return(0,eO.jsx)(e8.Z,{justifyContent:"center",cols:[1],noGutter:!0,children:(0,eO.jsx)(eA.Z,{name:"spinner",size:10})})},ssr:!1,loadableGenerated:{webpack:function(){return[57739]}}}),SidePanelBombardment_SidePanelBombardment=function(R){var W=R.id,G=(0,el.useState)(),J=G[0],et=G[1];(0,el.useEffect)(function(){var R,G=(R=(0,eP.Z)(ek().mark(function _callee(R){var W;return ek().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,(0,e1.Z)({slug:R});case 3:(null==(W=G.sent)?void 0:W.statusCode)<300&&null!=W&&W.data?et(W.data):et(void 0),G.next=10;break;case 7:G.prev=7,G.t0=G.catch(0);case 10:case"end":return G.stop()}},_callee,null,[[0,7]])})),function(W){return R.apply(this,arguments)});W&&G(W)},[W]);var er=(0,el.useMemo)(function(){var R,W,G;return J&&null!=J&&null!==(R=J.item)&&void 0!==R&&R.flat.definition?J.item.flat.definition.value:J&&null!=J&&null!==(W=J.item)&&void 0!==W&&W.flat.scopeNote?null===(G=J.item.flat.scopeNote)||void 0===G?void 0:G.value:void 0},[J]);return J&&J.item?(0,eO.jsxs)(e0,{children:[J.item.thumbnail&&(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsx)("div",{className:"headerImage",children:(0,eO.jsx)(eT.Z,SidePanelBombardment_objectSpread({},J.item.thumbnail))})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[J.item.broaderConcept&&J.item.broaderConcept.length>0&&(0,eO.jsx)(e6.Z,{labelText:e2.PB[J.item.broaderConcept[0].id],position:"right",children:(0,eO.jsx)("img",{className:"factionFlag",src:"/img/aerial/".concat(e2.lK[J.item.broaderConcept[0].id],".png"),alt:"",role:"presentation"})}),(0,eO.jsx)("h2",{className:"title",children:J.item.title}),J.item.dateObj&&(0,eO.jsx)(eY.Z,{children:J.item.dateObj.asString}),er&&(0,eO.jsx)("p",{children:er}),J.item.href&&(0,eO.jsx)(ej.Z,{href:J.item.href,icon:"arrow",iconRight:!0,children:e3.Z.bombardmentSidePanel.readMoreText})]}),J.persons&&(0,eO.jsxs)("div",{className:"personsWrapper",children:[(0,eO.jsx)("h3",{children:e3.Z.bombardmentSidePanel.relatedPersonsTitle}),J.persons.highlighted.map(function(R){return(0,eO.jsx)(eV.Z,SidePanelBombardment_objectSpread({},R),R.id)}),J.persons.more&&(0,eO.jsx)(ej.Z,{href:J.persons.more.href,icon:"arrow",iconRight:!0,children:e3.Z.bombardmentSidePanel.morePersonsText})]}),J.item.location&&(0,eO.jsx)("div",{className:"mapWrapper",children:(0,eO.jsx)(e7,SidePanelBombardment_objectSpread({},J.item))}),(0,eO.jsx)("div",{className:"sidePanelFooter"})]}):null},e9=G(34960),tt=ef.ZP.div.withConfig({displayName:"SidePanelPlaneCrashstyles__StyledSidePanelPlaneCrash",componentId:"sc-57zwf2-0"})([".headerImage{position:relative;&:after{content:'';position:absolute;left:0;bottom:0;width:100%;height:50%;z-index:",";background:linear-gradient(180deg,rgba(0,0,0,0) 0%,#000 100%);}}.sidePanelContent{padding-bottom:","px;border-bottom:1px solid ",";.title{",";}.planeCrashDetailsWrapper{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;.detailItem{width:50%;&:nth-child(odd){margin-right:","px;width:calc(50% - ","px);}span{line-height:28px;}.label{font-family:",";font-size:","px;&:after{margin-top:7px;content:'';display:block;border-bottom:1px solid ",";width:36px;}}.value{padding-top:7px;font-size:","px;}}}.sourceLink{margin-top:","px;color:",";&:hover{text-decoration:underline;}}}}.personsWrapper{padding:","px ","px ","px;border-bottom:1px solid ",";h3{font-size:","px;}","{&:not(:last-of-type){padding-bottom:","px;border-bottom:1px solid rgba(60,70,74,0.3);}","{max-width:100px;}}}.mapWrapper{padding:","px ","px 0;","{height:260px;}}","{margin-bottom:","px;}","{margin-top:","px;width:100%;}"],eh.ZP.zIndexes.overlay,eh.ZP.dist.lg,eh.ZP.colors.backgroundDark,(0,eH.JB)("h3"),eh.ZP.dist.md,eh.ZP.dist.md,eh.ZP.fonts.secondary,eh.ZP.fontSizes.label,eh.ZP.colors.tertiaryDark,eh.ZP.fontSizes.md,eh.ZP.dist.sm,eh.ZP.colors.white,eh.ZP.dist.xl,eh.ZP.dist.xl,eh.ZP.dist.lg,eh.ZP.colors.backgroundDark,eh.ZP.fontSizes.xl,eQ.Z,eh.ZP.dist.md,ey.Z,eh.ZP.dist.xl,eh.ZP.dist.xl,e9.Z,eY.Z,eh.ZP.dist.sm,eX.Z,eh.ZP.dist.sm),tr=G(3917),tn=G(27701);function SidePanelPlaneCrash_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SidePanelPlaneCrash_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelPlaneCrash_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelPlaneCrash_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}e4()(function(){return Promise.all([G.e(2634),G.e(2909),G.e(7739)]).then(G.bind(G,57739))},{loading:function(){return(0,eO.jsx)(e8.Z,{justifyContent:"center",cols:[1],noGutter:!0,children:(0,eO.jsx)(eA.Z,{name:"spinner",size:10})})},ssr:!1,loadableGenerated:{webpack:function(){return[57739]}}});var crashDetailItems=function(R){var W,G,J,et;return(0,eO.jsxs)("div",{className:"planeCrashDetailsWrapper",children:[R.airforceCategory&&(0,eO.jsxs)("div",{className:"detailItem",children:[(0,eO.jsx)("span",{className:"label",children:e3.Z.crashDetailPage.header.details.labels.airforceCategory}),(0,eO.jsx)("span",{className:"value",children:null===(W=R.airforceCategory)||void 0===W?void 0:W.value})]}),R.aircraft&&(0,eO.jsxs)("div",{className:"detailItem",children:[(0,eO.jsx)("span",{className:"label",children:e3.Z.crashDetailPage.header.details.labels.aircraftType}),(0,eO.jsx)("span",{className:"value",children:null===(G=R.aircraft)||void 0===G?void 0:G.value})]}),R.airforce&&(0,eO.jsxs)("div",{className:"detailItem",children:[(0,eO.jsx)("span",{className:"label",children:e3.Z.crashDetailPage.header.details.labels.airforce}),(0,eO.jsx)("span",{className:"value",children:null===(J=R.airforce)||void 0===J?void 0:J.value})]}),R.partOfDay&&(0,eO.jsxs)("div",{className:"detailItem",children:[(0,eO.jsx)("span",{className:"label",children:e3.Z.crashDetailPage.header.details.labels.partOfDay}),(0,eO.jsx)("span",{className:"value",children:null===(et=R.partOfDay)||void 0===et?void 0:et.value})]})]})},SidePanelPlaneCrash_SidePanelPlaneCrash=function(R){var W,G,J=R.id,et=(0,el.useState)(),er=et[0],en=et[1];(0,el.useEffect)(function(){var R,W=(R=(0,eP.Z)(ek().mark(function _callee(R){var W;return ek().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,(0,tr.Z)({slug:R});case 3:(null==(W=G.sent)?void 0:W.statusCode)<300&&null!=W&&W.data?en(W.data):en(void 0),G.next=10;break;case 7:G.prev=7,G.t0=G.catch(0);case 10:case"end":return G.stop()}},_callee,null,[[0,7]])})),function(W){return R.apply(this,arguments)});J&&W(J)},[J]);var ei=(0,el.useMemo)(function(){var R,W,G;return er&&null!=er&&null!==(R=er.item)&&void 0!==R&&R.flat.definition?er.item.flat.definition.value:er&&null!=er&&null!==(W=er.item)&&void 0!==W&&W.flat.scopeNote?null===(G=er.item.flat.scopeNote)||void 0===G?void 0:G.value:void 0},[er]);return er&&er.item?(0,eO.jsxs)(tt,{children:[er.item.thumbnail&&(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsx)("div",{className:"headerImage",children:(0,eO.jsx)(eT.Z,SidePanelPlaneCrash_objectSpread({},er.item.thumbnail))})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsx)("h2",{className:"title",children:er.item.title}),er.item.dateObj&&(0,eO.jsx)(eY.Z,{children:er.item.dateObj.asString}),ei&&(0,eO.jsx)("p",{children:ei}),er.item.planeCrash&&crashDetailItems(er.item.planeCrash),(0,eO.jsx)("a",{href:e3.Z.planeCrashSidePanel.sourceLinkUrl,className:"sourceLink",target:"_blank",rel:"noopener",children:e3.Z.planeCrashSidePanel.sourceLinkText}),er.item.href&&(0,eO.jsx)(ej.Z,{href:er.item.href,icon:"arrow",iconRight:!0,children:e3.Z.planeCrashSidePanel.readMoreText})]}),er.persons&&(0,eO.jsxs)("div",{className:"personsWrapper",children:[(0,eO.jsx)("h3",{children:e3.Z.planeCrashSidePanel.crewTitle}),er.persons.highlighted.map(function(R){return(0,eO.jsx)(eV.Z,SidePanelPlaneCrash_objectSpread({},R),R.id)})]}),(null===(W=er.item)||void 0===W?void 0:null===(G=W.planeCrash)||void 0===G?void 0:G.locations)&&(0,eO.jsx)("div",{className:"mapWrapper",children:(0,eO.jsx)(tn.Z,SidePanelPlaneCrash_objectSpread({},er.item.planeCrash.locations))}),(0,eO.jsx)("div",{className:"sidePanelFooter"})]}):null},ti=ef.ZP.div.withConfig({displayName:"SidePanelEnglandSailersstyles__StyledSidePanelEnglandSailers",componentId:"sc-10m8628-0"})([".divider{margin-top:","px;border-top:1px solid ",";}h3{",";}","{width:100%;text-align:left;}"],eh.ZP.dist.xl,eh.ZP.colors.gray,(0,eH.JB)("h4"),eX.Z),to=G(48046),ta=G(46488),ts=G(37601);function SidePanelEnglandSailers_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SidePanelEnglandSailers_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelEnglandSailers_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelEnglandSailers_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var SidePanelEnglandSailers_SidePanelEnglandSailers=function(R){var W,G,J=R.route,et=(0,el.useState)(void 0),er=et[0],en=et[1],ei=(0,el.useState)(void 0),eo=(ei[0],ei[1]),es=(0,el.useState)(void 0),ec=es[0],eu=es[1],ed=(0,el.useState)(0),ep=ed[0],ef=ed[1];return(0,el.useEffect)(function(){var R;(R=(0,eP.Z)(ek().mark(function _callee(){var R;return ek().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.prev=0,W.next=3,(0,eI.Z)(eM.Z.single.transformation,eM.Z.single.endpoint(J||"engelandvaarders"));case 3:(R=W.sent).statusCode<300&&R.data?en(R.data):en(void 0),W.next=10;break;case 7:W.prev=7,W.t0=W.catch(0),en(void 0);case 10:case"end":return W.stop()}},_callee,null,[[0,7]])})),function(){return R.apply(this,arguments)})()},[J]),(0,el.useEffect)(function(){var R;(R=(0,eP.Z)(ek().mark(function _callee2(){var R,W;return ek().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(G.prev=0,!(!J||!er)){G.next=3;break}return G.abrupt("return");case 3:return G.next=5,(0,eI.Z)(function(R){var W;return null==R?void 0:null===(W=R.items)||void 0===W?void 0:W.map(to.ll)},eM.Z.relatedPersons.endpoint(er.id));case 5:(R=G.sent).statusCode<300&&R.data?(eu(R.data),null!==(W=R.stats)&&void 0!==W&&W.total&&ef(R.stats.total)):eu(void 0),G.next=12;break;case 9:G.prev=9,G.t0=G.catch(0),eo(void 0);case 12:case"end":return G.stop()}},_callee2,null,[[0,9]])})),function(){return R.apply(this,arguments)})()},[J,er]),(0,eO.jsx)(ti,{children:er&&(0,eO.jsxs)(eO.Fragment,{children:[(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsxs)("div",{className:"headerImage",children:[er.video&&(0,eO.jsx)(eD.Z,SidePanelEnglandSailers_objectSpread({},er.video)),!er.video&&er.thumbnail&&(0,eO.jsx)(eT.Z,{src:er.thumbnail.src,alt:er.thumbnail.alt,useFallback:!0,fallbackClass:"multiple",fit:"contain"})]})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsx)("h2",{className:"title",children:er.title}),(0,eO.jsx)("p",{children:er.flat&&(null===(W=er.flat.definition)||void 0===W?void 0:W.value)||(null===(G=er.flat.scopeNote)||void 0===G?void 0:G.value)}),(0,eO.jsxs)(ej.Z,{className:"callToAction",href:ts.a$.target,children:[ta.Z.toThemePage,(0,eO.jsx)(eA.Z,{size:14,name:"arrow",className:"callToActionIcon"})]})]}),ec&&ep>0&&(0,eO.jsxs)("div",{className:"sidePanelContent divider",children:[(0,eO.jsxs)("h3",{className:"title",children:[ep?ta.Z.timeline.sidePanelRouteTitle(ep):"",er.title]}),ec.map(function(R){return(0,eO.jsx)(eV.Z,SidePanelEnglandSailers_objectSpread({},R),R.id)})]}),(0,eO.jsx)("div",{className:"sidePanelFooter",children:er.href&&ec&&ep>(null==ec?void 0:ec.length)&&(0,eO.jsxs)(ej.Z,{className:"callToAction",href:{pathname:"/mensen",query:{theme:er.id}},children:[ta.Z.timeline.sidePanelMorePeople,(0,eO.jsx)(eA.Z,{size:14,name:"arrow",className:"callToActionIcon"})]})})]})})},tc=G(74635),tl=G(75098),tu=ef.ZP.div.withConfig({displayName:"SidePanelItineraryStopstyles__StyledSidePanelItineraryStop",componentId:"sc-ian10k-0"})(["","{","{",";}}"],tc.Z,tl.Z,(0,eH.TE)("height",{xs:300}));function SidePanelItineraryStop_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var td=e4()(function(){return Promise.all([G.e(2634),G.e(2909),G.e(9005)]).then(G.bind(G,59005))},{loading:function(){return(0,eO.jsx)(e8.Z,{justifyContent:"center",cols:[1],noGutter:!0,children:(0,eO.jsx)(eL.Z,{loading:!0})})},ssr:!1,loadableGenerated:{webpack:function(){return[59005]}}}),SidePanelItineraryStop_SidePanelItineraryStop=function(R){var W,G,J,et=R.data,er=(0,el.useMemo)(function(){var R=[];if(et.startLocation&&R.push(et.startLocation),et.endLocation&&R.push(et.endLocation),R.length>0)return R},[et]),en=(0,el.useMemo)(function(){var R;return null===(R=et.persons)||void 0===R?void 0:R.filter(function(R){var W;return R.id!==(null===(W=et.currentPerson)||void 0===W?void 0:W.id)})},[et.persons,et.currentPerson]);return(0,eO.jsx)(tu,{children:(0,eO.jsxs)(eO.Fragment,{children:[er&&(0,eO.jsx)(td,{locations:er,viewConfig:{padding:100,maxZoom:10}}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsxs)("div",{className:"dateRange",children:[et.startDate,et.endDate&&" - ",et.endDate]}),(0,eO.jsxs)("h3",{className:"title",children:["Van ",null===(W=et.startLocation)||void 0===W?void 0:W.label," naar ",null===(G=et.endLocation)||void 0===G?void 0:G.label]}),(0,eO.jsx)("p",{children:ta.Z.timeline.stopSidepanelText(null===(J=et.currentPerson)||void 0===J?void 0:J.name,null==en?void 0:en.length)}),null==en?void 0:en.map(function(R){return(0,eO.jsx)(eV.Z,function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelItineraryStop_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelItineraryStop_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({},R),R.id)})]})]})})},tp=G(8780),SidePanelMapModule_SidePanelMapModule=function(R){var W=R.data,G=W.title,J=W.text,et=W.image,er=W.button;return(0,eO.jsxs)(eO.Fragment,{children:[(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsx)("div",{className:"headerImage",children:et&&(0,eO.jsx)(tp.Z,{image:et,fit:"contain"})})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsx)("h2",{className:"title",children:G}),J&&(0,eO.jsx)("p",{children:J})]}),(0,eO.jsx)("div",{className:"sidePanelFooter",children:er&&(0,eO.jsxs)(ej.Z,{className:"callToAction",href:er.href,children:[er.label,(0,eO.jsx)(eA.Z,{size:14,name:"arrow",className:"callToActionIcon"})]})})]})},tf=G(23275);function SidePanelAnyType_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SidePanelAnyType_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelAnyType_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelAnyType_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var SidePanelAnyType_SidePanelAnyType=function(R){var W=R.id,G=R.value;switch(R.type){case tf.DC.THESAURUS:return(0,eO.jsx)(SidePanelThesaurus,SidePanelAnyType_objectSpread({},G));case tf.DC.PERSON:return(0,eO.jsx)(SidePanelPerson_SidePanelPerson,SidePanelAnyType_objectSpread({},G));default:return(0,eO.jsx)(SidePanelThesaurusWithFetch,{id:W})}},th=G(82753),tg=G(9725),tm=G(59817),ty=G(27545),tv=ef.ZP.div.withConfig({displayName:"SidePanelOrganizationSubjectstyles__StyledSidePanelOrganizationSubject",componentId:"sc-1a1gg3r-0"})(["width:100%;.sidePanelCallToAction{margin-top:15px;padding:0 40px;width:100%;","{width:100%;}}.sidePanelChartWrapper{margin-top:52px;padding:0 40px 0 20px;width:100%;","{width:100%;.innerText{color:",";span{font-size:14px;}span:last-of-type{font-size:16px;}}.subjectListWrapper{li{button{span{color:",";font-size:14px;}.count{font-size:14px;}}}}}}"],eX.Z,ty.Z,eh.ZP.colors.white,eh.ZP.colors.white),tb=G(73712),t_=G(67139);function SidePanelOrganizationSubject_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var SidePanelOrganizationSubject_SidePanelOrganizationSubject=function(R){var W,G,J=R.thesaurusId,et=R.organization,er=(0,el.useState)(!0),en=er[0],ei=er[1],eo=(0,el.useState)(),ec=eo[0],eu=eo[1],ed=(0,el.useState)(),ep=ed[0],ef=ed[1];return(0,el.useEffect)(function(){var R,W=(R=(0,eP.Z)(ek().mark(function _callee(R){var W,G;return ek().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.prev=0,J.next=3,(0,eI.Z)(eM.Z.single.transformation,eM.Z.single.endpoint(R));case 3:if((null==(W=J.sent)?void 0:W.statusCode)<300&&null!=W&&W.data&&eu(W.data),!W.data){J.next=10;break}return J.next=8,(0,eI.Z)(eM.Z.organizationRelatedSubjectsByTheme.transformation,eM.Z.organizationRelatedSubjectsByTheme.endpoint(W.data.id,et.id));case 8:(G=J.sent).statusCode<300&&G.data&&(ef((0,t_.Z)(G.data.items)),ei(!1));case 10:J.next=15;break;case 12:J.prev=12,J.t0=J.catch(0);case 15:case"end":return J.stop()}},_callee,null,[[0,12]])})),function(W){return R.apply(this,arguments)});J&&W(J)},[J]),ec&&!en?(0,eO.jsxs)(tv,{children:[(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsx)("div",{className:"headerImage",children:ec.thumbnail&&(0,eO.jsx)(eT.Z,{src:ec.thumbnail.src,alt:ec.thumbnail.alt,useFallback:!0,fallbackClass:"multiple",fit:"contain"})})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsx)("h2",{className:"title",children:ec.title}),(0,eO.jsx)("p",{children:ec.flat&&(null===(W=ec.flat.definition)||void 0===W?void 0:W.value)||(null===(G=ec.flat.scopeNote)||void 0===G?void 0:G.value)})]}),(0,eO.jsx)("div",{className:"sidePanelCallToAction",children:(0,eO.jsxs)(ej.Z,{className:"callToAction",href:function(){if(ec){var R={organization:(0,tg.Gd)({id:et.id,title:et.title}),topic:(0,tg.Gd)({id:null==ec?void 0:ec.id,title:ec.title})};return{pathname:"/bronnen",query:(0,tm.h)(R)}}}(),children:[tb.Z.sidepanel.callToActionText,(0,eO.jsx)(eA.Z,{size:14,name:"arrow",className:"callToActionIcon"})]})}),ep&&(0,eO.jsx)("div",{className:"sidePanelChartWrapper",children:(0,eO.jsx)(th.Z,function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelOrganizationSubject_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelOrganizationSubject_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({inSidePanel:!0},ep))})]}):(0,eO.jsx)(eL.Z,{loading:!0})},tx=ef.ZP.div.withConfig({displayName:"SidePanelSourceItemstyles__StyledSidePanelSourceItem",componentId:"sc-4fktuz-0"})([".attributes{",";.attribute-wrapper{",";&:last-of-type{margin-bottom:0;}}}","{margin-top:12px;}.description{margin-top:12px;margin-bottom:8px;}"],(0,eH.TE)("margin-top",eh.ZP.distanceConfigs.medium),(0,eH.TE)("margin-bottom",eh.ZP.distanceConfigs.extraSmall),eY.Z),tw=G(72459),tS=G(24957),tT=G(68595),tO=G(84941);function SidePanelSourceItem_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SidePanelSourceItem_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanelSourceItem_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanelSourceItem_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var SidePanelSourceItem_SidePanelSourceItem=function(R){var W=R.flat,G=(R.connected,R.enriched),J=R.primaryClass,et=R.title,er=R.sourceUrl,en=(R.id,R.detailed),ei=G.thumbnail,eo=W.contentUrl,es=W.video,ec=(0,el.useMemo)(function(){if(en)return{creator:en.creator,place:en.place,subjects:en.subjects}},[en]),eu=(0,el.useMemo)(function(){return eo?(0,tw.i)(eo.value):es?(0,tw.i)(es.value):void 0},[eo,es]);return(0,eO.jsxs)(tx,{children:[(0,eO.jsx)("div",{className:"sidePanelHeader",children:(0,eO.jsxs)("div",{className:"headerImage",children:[eu&&(0,eO.jsx)(eD.Z,{url:eu}),!eu&&ei&&(0,el.createElement)(eT.Z,SidePanelSourceItem_objectSpread(SidePanelSourceItem_objectSpread({},ei),{},{className:"sourceImage",fit:"contain",useFallback:!0,fallbackClass:J,key:null==ei?void 0:ei.src}))]})}),(0,eO.jsxs)("div",{className:"sidePanelContent",children:[(0,eO.jsxs)("div",{className:"texts",children:[(0,eO.jsx)("h2",{className:"title",children:et}),G&&G.dateObj&&(G.dateObj.rangeAsString||G.dateObj.asString)&&(0,eO.jsx)(eY.Z,{children:G.dateObj.rangeAsString||G.dateObj.asString}),W.description&&(0,eO.jsx)(tS.Z,{className:"description",description:W.description,limit:300})]}),(0,eO.jsx)("div",{className:"attributes",children:(0,eO.jsx)(tO.Z,{detailed:ec,cols:{xs:1},noGutter:!0,isOpen:!0,disableAnimation:!0})})]}),(0,eO.jsx)("div",{className:"sidePanelFooter",children:er&&(0,eO.jsxs)(ej.Z,{className:"callToAction",href:er,children:[tT.Z.buttons.goToSource,(0,eO.jsx)(eA.Z,{size:14,name:"arrow",className:"callToActionIcon"})]})})]})};function SidePanel_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function SidePanel_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?SidePanel_ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):SidePanel_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}(J=eo||(eo={})).person="person",J.otherPersons="otherPersons",J.relatedPersons="relatedPersons",J.relatedAnnouncements="relatedAnnouncements",J.thesaurus="thesaurus",J.thesaurusWithFetch="thesaurusWithFetch",J.itineraryStop="itineraryStop",J.englandSailers="englandSailers",J.location="location",J.announcement="announcement",J.crash="crash",J.bombardment="bombardment",J.stats="stats",J.mapModule="mapModule",J.source="source",J.anyType="anyType",J.organizationSubject="organizationSubject";var SidePanel_SidePanel=function(R){(0,ec.Z)(R);var W=(0,eu.v9)(function(R){return R.overlays}),G=W.sidepanelOpen,J=W.sidepanelContent,et=(0,el.useRef)(null),er=(0,eu.I0)();return(0,eB.Z)(et,function(R){R.preventDefault(),er((0,ed.w)())}),(0,el.useEffect)(function(){et.current&&G&&(0,eZ.disableBodyScroll)(et.current),G||(0,eZ.clearAllBodyScrollLocks)()},[G]),(0,eO.jsx)(ez.M_,{children:G&&J&&(0,eO.jsxs)(ew,{children:[(0,eO.jsx)(ez.ww.div,{animate:{opacity:.5},initial:{opacity:0},exit:{opacity:0},className:"sidePanelOverlay"}),(0,eO.jsxs)(ez.ww.div,{animate:{x:0,transition:{ease:"easeIn"}},initial:{x:"100%"},exit:{x:"100%",transition:{ease:"easeInOut"}},className:"sidePanelContainer",ref:et,children:[(0,eO.jsx)("div",{className:"closeButton",children:(0,eO.jsx)(eF.Z,{screenReaderText:"Sluiten",color:eh.ZP.colors.primary,iconColor:eh.ZP.colors.white,icon:"close",click:function(){er((0,ed.w)())}})}),function(){if(J){if(J.type===eo.person){var R=J.data;return(0,eO.jsx)(SidePanelPerson_SidePanelPerson,SidePanel_objectSpread({},R))}if(J.type===eo.thesaurus){var W=J.data;return(0,eO.jsx)(SidePanelThesaurus,SidePanel_objectSpread({},W))}if(J.type===eo.thesaurusWithFetch){var G=J.id;return(0,eO.jsx)(SidePanelThesaurusWithFetch,{id:G})}if(J.type===eo.englandSailers){var et=J.route;return(0,eO.jsx)(SidePanelEnglandSailers_SidePanelEnglandSailers,{route:et})}if(J.type===eo.location){var er=J.id;return(0,eO.jsx)(SidePanelLocation_SidePanelLocation,{id:er})}if(J.type===eo.otherPersons)return(0,eO.jsx)(eU.Z,SidePanel_objectSpread({},J));if(J.type===eo.itineraryStop)return(0,eO.jsx)(SidePanelItineraryStop_SidePanelItineraryStop,SidePanel_objectSpread({},J));if(J.type===eo.relatedPersons)return(0,eO.jsx)(SidePanelRelatedPersons_SidePanelRelatedPersons,SidePanel_objectSpread({},J),J.id);if(J.type===eo.relatedAnnouncements)return(0,eO.jsx)(eW.Z,SidePanel_objectSpread({},J),J.id);if(J.type===eo.announcement)return(0,eO.jsx)(SidePanelAnnouncement_SidePanelAnnouncement,SidePanel_objectSpread({},J),J.id);if(J.type===eo.organizationSubject)return(0,eO.jsx)(SidePanelOrganizationSubject_SidePanelOrganizationSubject,SidePanel_objectSpread({},J),J.thesaurusId);if(J.type===eo.bombardment)return(0,eO.jsx)(SidePanelBombardment_SidePanelBombardment,SidePanel_objectSpread({},J),J.id);if(J.type===eo.crash)return(0,eO.jsx)(SidePanelPlaneCrash_SidePanelPlaneCrash,SidePanel_objectSpread({},J),J.id);if(J.type===eo.mapModule)return(0,eO.jsx)(SidePanelMapModule_SidePanelMapModule,SidePanel_objectSpread({},J));if(J.type===eo.anyType)return(0,eO.jsx)(SidePanelAnyType_SidePanelAnyType,SidePanel_objectSpread({},J.data));if(J.type===eo.source)return(0,eO.jsx)(SidePanelSourceItem_SidePanelSourceItem,SidePanel_objectSpread({},J.data))}}()]})]})})}},40865:function(R,W,G){"use strict";var J=G(59499),et=G(4730);G(67294);var er=G(70643),en=G(4129),ei=G(37850),eo=G(77444),es=G(94525),ec=G(85893),el=["noGutter","grow","order","push","cols","innerRef"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var eu=(0,er.ZP)(function(R){R.noGutter,R.grow,R.order,R.push,R.cols;var W=R.innerRef,G=(0,et.Z)(R,el);return(0,ec.jsx)(eo.Z,_objectSpread(_objectSpread({},G),{},{innerRef:W}))}).withConfig({displayName:"Box",componentId:"sc-1icitgw-0"})(["",";flex-grow:",";flex-wrap:wrap;display:flex;",";",";",";"],function(R){return en.ZP.grid.gutter&&R.cols&&!R.noGutter&&(0,er.iv)(["padding-left:","px;padding-right:","px;"],en.ZP.grid.gutter/2,en.ZP.grid.gutter/2)},function(R){return R.grow?1:0},function(R){return R.cols?(0,ei.$Q)(R.cols):(0,er.iv)(["width:100%;"])},function(R){return R.order?(0,es.Z)("order",R.order):null},function(R){return R.push?(0,ei.VF)(R.push):null});W.Z=eu},90693:function(R,W,G){"use strict";var J=G(59499),et=G(4730),er=G(70643),en=G(21775),ei=G(77444),eo=G(4129),es=G(37850),ec=G(85893),el=["inStory"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var containerWidth=function(R){return(0,en.Z)({css:"width: ".concat(eo.ZP.grid.width[R],"px"),min:R})},eu=(0,er.ZP)(function(R){R.inStory;var W=(0,et.Z)(R,el);return(0,ec.jsx)(ei.Z,function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({},W))}).withConfig({displayName:"Container",componentId:"sc-137unl9-0"})(["",";",";",";",";",";",";margin-right:auto;margin-left:auto;display:flex;flex-wrap:wrap;width:100%;position:relative;"],containerWidth("md"),containerWidth("lg"),containerWidth("xl"),containerWidth("xxl"),(0,es.TE)("padding-left",{xs:9,md:0}),(0,es.TE)("padding-right",{xs:9,md:0}));W.Z=eu},77444:function(R,W,G){"use strict";var J=G(59499),et=G(4730),er=G(70643);G(67294);var en=G(37850),ei=G(94525),eo=G(68846),es=G(85893),ec=["textAlign","alignItems","justifyContent","top","bottom","left","right","direction","motionDiv","innerRef"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var el=(0,er.ZP)(function(R){R.textAlign,R.alignItems,R.justifyContent,R.top,R.bottom,R.left,R.right,R.direction;var W=R.motionDiv,G=R.innerRef,J=(0,et.Z)(R,ec);return W?(0,es.jsx)(eo.ww.div,_objectSpread(_objectSpread({},J),{},{ref:G})):(0,es.jsx)("div",_objectSpread(_objectSpread({},J),{},{ref:G}))}).withConfig({displayName:"SFO",componentId:"sc-10nnyo7-0"})(["display:flex;",";",";",";",";",";",";",";",";",";"],function(R){return R.relative&&(0,er.iv)(["position:relative;"])},function(R){return R.top&&(0,en.TE)("margin-top",R.top)},function(R){return R.bottom&&(0,en.TE)("margin-bottom",R.bottom)},function(R){return R.left&&(0,en.TE)("margin-left",R.left)},function(R){return R.right&&(0,en.TE)("margin-right",R.right)},function(R){return R.justifyContent&&(0,ei.Z)("justify-content",R.justifyContent)},function(R){return R.alignItems&&(0,ei.Z)("align-items",R.alignItems)},function(R){return R.direction&&(0,ei.Z)("flex-direction",R.direction)},function(R){return R.textAlign&&(0,ei.Z)("text-align",R.textAlign)});W.Z=el},75098:function(R,W,G){"use strict";G.d(W,{Z:function(){return en}});var J=G(70643),et=(0,J.iv)([".mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:left;}.mapboxgl-map:-webkit-full-screen{width:100%;height:100%;}.mapboxgl-canary{background-color:salmon;}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer;}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing;}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y;}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom;}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none;}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{position:absolute;pointer-events:none;z-index:2;}.mapboxgl-ctrl-top-left{top:0;left:0;}.mapboxgl-ctrl-top-right{top:0;right:0;}.mapboxgl-ctrl-bottom-left{bottom:0;left:0;}.mapboxgl-ctrl-bottom-right{right:0;bottom:0;}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0);}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{margin:10px 0 0 10px;float:left;}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{margin:10px 10px 0 0;float:right;}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{margin:0 0 10px 10px;float:left;}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{margin:0 10px 10px 0;float:right;}.mapboxgl-ctrl-group{border-radius:4px;background:#fff;}.mapboxgl-ctrl-group:not(:empty){-moz-box-shadow:0 0 2px rgba(0,0,0,0.1);-webkit-box-shadow:0 0 2px rgba(0,0,0,0.1);box-shadow:0 0 0 2px rgba(0,0,0,0.1);}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText;}}.mapboxgl-ctrl-group button{width:29px;height:29px;display:block;padding:0;outline:none;border:0;box-sizing:border-box;background-color:transparent;cursor:pointer;}.mapboxgl-ctrl-group button + button{border-top:1px solid #ddd;}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:50%;}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent;}.mapboxgl-ctrl-group button + button{border-top:1px solid ButtonText;}}.mapboxgl-ctrl button::-moz-focus-inner{border:0;padding:0;}.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff;}.mapboxgl-ctrl button:disabled{cursor:not-allowed;}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:0.25;}.mapboxgl-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,0.05);}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff;}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none;}.mapboxgl-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0;}.mapboxgl-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px;}.mapboxgl-ctrl-group button:focus:only-child{border-radius:inherit;}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\");}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\");}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E\");}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\");}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\");}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E\");}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\");}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E\");}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E\");}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{-webkit-animation:mapboxgl-spin 2s linear infinite;-moz-animation:mapboxgl-spin 2s infinite linear;-o-animation:mapboxgl-spin 2s infinite linear;-ms-animation:mapboxgl-spin 2s infinite linear;animation:mapboxgl-spin 2s linear infinite;}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3C/svg%3E\");}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/svg%3E\");}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='29' height='29' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 005.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 009 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 003.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0011 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 110 7 3.5 3.5 0 110-7z'/%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3Cpath d='M14 5l1 1-9 9-1-1 9-9z' fill='red'/%3E%3C/svg%3E\");}}@-webkit-keyframes mapboxgl-spin{0%{-webkit-transform:rotate(0deg);}to{-webkit-transform:rotate(1turn);}}@-moz-keyframes mapboxgl-spin{0%{-moz-transform:rotate(0deg);}to{-moz-transform:rotate(1turn);}}@-o-keyframes mapboxgl-spin{0%{-o-transform:rotate(0deg);}to{-o-transform:rotate(1turn);}}@-ms-keyframes mapboxgl-spin{0%{-ms-transform:rotate(0deg);}to{-ms-transform:rotate(1turn);}}@keyframes mapboxgl-spin{0%{transform:rotate(0deg);}to{transform:rotate(1turn);}}a.mapboxgl-ctrl-logo{width:88px;height:23px;margin:0 0 -4px -4px;display:block;background-repeat:no-repeat;cursor:pointer;overflow:hidden;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg opacity='.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg opacity='.9' fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E\");}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px;}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/g%3E%3C/svg%3E\");}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='88' height='23' viewBox='0 0 88 23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd'%3E%3Cdefs%3E%3Cpath id='a' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='b' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='c'%3E%3Crect width='100%25' height='100%25' fill='%23fff'/%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/mask%3E%3Cg stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23c)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23b' mask='url(%23c)'/%3E%3C/g%3E%3Cuse xlink:href='%23a'/%3E%3Cuse xlink:href='%23b'/%3E%3C/svg%3E\");}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{padding:0 5px;background-color:hsla(0,0%,100%,0.5);margin:0;}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{min-height:20px;padding:0;margin:10px;position:relative;background-color:#fff;border-radius:3px 12px 12px 3px;}.mapboxgl-ctrl-attrib.mapboxgl-compact:hover{padding:2px 24px 2px 4px;visibility:visible;margin-top:6px;}.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover,.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:hover{padding:2px 4px 2px 24px;border-radius:12px 3px 3px 12px;}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none;}.mapboxgl-ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner{display:block;}.mapboxgl-ctrl-attrib.mapboxgl-compact:after{content:'';cursor:pointer;position:absolute;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\");background-color:hsla(0,0%,100%,0.5);width:24px;height:24px;box-sizing:border-box;border-radius:12px;}.mapboxgl-ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0;}.mapboxgl-ctrl-top-right > .mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;right:0;}.mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:after{top:0;left:0;}.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0;}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\");}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E\");}}.mapboxgl-ctrl-attrib a{color:rgba(0,0,0,0.75);text-decoration:none;}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline;}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px;}.mapboxgl-attrib-empty{display:none;}.mapboxgl-ctrl-scale{background-color:hsla(0,0%,100%,0.75);font-size:10px;border:2px solid #333;border-top:#333;padding:0 5px;color:#333;box-sizing:border-box;}.mapboxgl-popup{position:absolute;top:0;left:0;display:-webkit-flex;display:flex;will-change:transform;pointer-events:none;}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{-webkit-flex-direction:column;flex-direction:column;}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{-webkit-flex-direction:column-reverse;flex-direction:column-reverse;}.mapboxgl-popup-anchor-left{-webkit-flex-direction:row;flex-direction:row;}.mapboxgl-popup-anchor-right{-webkit-flex-direction:row-reverse;flex-direction:row-reverse;}.mapboxgl-popup-tip{width:0;height:0;border:10px solid transparent;z-index:1;}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{-webkit-align-self:center;align-self:center;border-top:none;border-bottom-color:#fff;}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;align-self:flex-start;border-top:none;border-left:none;border-bottom-color:#fff;}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;align-self:flex-end;border-top:none;border-right:none;border-bottom-color:#fff;}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{-webkit-align-self:center;align-self:center;border-bottom:none;border-top-color:#fff;}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{-webkit-align-self:flex-start;align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff;}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{-webkit-align-self:flex-end;align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff;}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{-webkit-align-self:center;align-self:center;border-left:none;border-right-color:#fff;}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{-webkit-align-self:center;align-self:center;border-right:none;border-left-color:#fff;}.mapboxgl-popup-close-button{position:absolute;right:0;top:0;border:0;border-radius:0 3px 0 0;cursor:pointer;background-color:transparent;}.mapboxgl-popup-close-button:hover{background-color:rgba(0,0,0,0.05);}.mapboxgl-popup-content{position:relative;background:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,0.1);padding:10px 10px 15px;pointer-events:auto;}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0;}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0;}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0;}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0;}.mapboxgl-popup-track-pointer{display:none;}.mapboxgl-popup-track-pointer *{pointer-events:none;user-select:none;}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex;}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none;}.mapboxgl-marker{position:absolute;top:0;left:0;will-change:transform;cursor:pointer;svg{cursor:pointer;}}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;width:15px;height:15px;border-radius:50%;}.mapboxgl-user-location-dot:before{content:'';position:absolute;-webkit-animation:mapboxgl-user-location-dot-pulse 2s infinite;-moz-animation:mapboxgl-user-location-dot-pulse 2s infinite;-ms-animation:mapboxgl-user-location-dot-pulse 2s infinite;animation:mapboxgl-user-location-dot-pulse 2s infinite;}.mapboxgl-user-location-dot:after{border-radius:50%;border:2px solid #fff;content:'';height:19px;left:-2px;position:absolute;top:-2px;width:19px;box-sizing:border-box;box-shadow:0 0 3px rgba(0,0,0,0.35);}@-webkit-keyframes mapboxgl-user-location-dot-pulse{0%{-webkit-transform:scale(1);opacity:1;}70%{-webkit-transform:scale(3);opacity:0;}to{-webkit-transform:scale(1);opacity:0;}}@-ms-keyframes mapboxgl-user-location-dot-pulse{0%{-ms-transform:scale(1);opacity:1;}70%{-ms-transform:scale(3);opacity:0;}to{-ms-transform:scale(1);opacity:0;}}@keyframes mapboxgl-user-location-dot-pulse{0%{transform:scale(1);opacity:1;}70%{transform:scale(3);opacity:0;}to{transform:scale(1);opacity:0;}}.mapboxgl-user-location-dot-stale{background-color:#aaa;}.mapboxgl-user-location-dot-stale:after{display:none;}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair;}.mapboxgl-boxzoom{position:absolute;top:0;left:0;width:0;height:0;background:#fff;border:2px dotted #202020;opacity:0.5;}@media print{.mapbox-improve-map{display:none;}}"]),er=G(4129),en=J.ZP.div.withConfig({displayName:"StyledMapbox",componentId:"sc-1xmxs6b-0"})([".controls{position:absolute;top:10px;right:10px;}.mapboxgl-ctrl-group{position:absolute;right:","px;top:","px;box-shadow:none !important;background:transparent !important;.mapboxgl-ctrl-zoom-in,.mapboxgl-ctrl-zoom-out{border-radius:50% !important;background-color:",";border:0;margin-bottom:","px;.mapboxgl-ctrl-icon{background-size:25px;}&:hover{background-color:"," !important;}}}.mapboxgl-ctrl-attrib-button{display:none;}",";",""],er.ZP.dist.sm,er.ZP.dist.sm,er.ZP.colors.white,er.ZP.dist.xs,er.ZP.colors.whiteDark,function(R){return R.markersEnabled?(0,J.iv)([".mapboxgl-marker:hover{z-index:8;}"]):(0,J.iv)([".mapboxgl-marker{pointer-events:none;}"])},et)},15347:function(R,W,G){"use strict";G.d(W,{FZ:function(){return ev},NV:function(){return eb},PB:function(){return ex},a9:function(){return ey},ap:function(){return eg},fi:function(){return eh},g8:function(){return ew},kS:function(){return em},lK:function(){return e_},oz:function(){return ed},xR:function(){return eu}});var J,et,er,en,ei,eo,es,ec,el,eu,ed,ep=G(59499),ef=G(4129);(J=eu||(eu={})).AXIS="AXIS",J.ALLIES="ALLIES",J.DUTCH="DUTCH",(et=ed||(ed={})).GERMAN="GERMAN",et.BRITISH="BRITISH",et.AMERICAN="AMERICAN";var eh=(er={},(0,ep.Z)(er,eu.AXIS,"Duitse Strijdkrachten"),(0,ep.Z)(er,eu.ALLIES,"Geallieerden"),(0,ep.Z)(er,eu.DUTCH,"Nederlandse Strijdkrachten"),er),eg=(en={},(0,ep.Z)(en,eu.DUTCH,ef.ZP.colors.tertiary),(0,ep.Z)(en,eu.AXIS,ef.ZP.colors.blue),(0,ep.Z)(en,eu.ALLIES,ef.ZP.colors.yellow),en),em=(ei={},(0,ep.Z)(ei,eu.DUTCH,ef.ZP.colors.white),(0,ep.Z)(ei,eu.AXIS,ef.ZP.colors.white),(0,ep.Z)(ei,eu.ALLIES,ef.ZP.colors.text),ei),ey=(eo={},(0,ep.Z)(eo,ed.BRITISH,ef.ZP.colors.blueDark),(0,ep.Z)(eo,ed.AMERICAN,ef.ZP.colors.tertiaryDark),(0,ep.Z)(eo,ed.GERMAN,ef.ZP.colors.primary),eo),ev=(es={},(0,ep.Z)(es,ed.BRITISH,"Brits"),(0,ep.Z)(es,ed.AMERICAN,"Amerikaans"),(0,ep.Z)(es,ed.GERMAN,"Duits"),es),eb={"https://data.niod.nl/WO2_Thesaurus/events/19538":ed.BRITISH,"https://data.niod.nl/WO2_Thesaurus/events/19540":ed.AMERICAN,"https://data.niod.nl/WO2_Thesaurus/events/19539":ed.GERMAN},e_=(ec={},(0,ep.Z)(ec,"https://data.niod.nl/WO2_Thesaurus/events/19539","airforce-GERMAN"),(0,ep.Z)(ec,"https://data.niod.nl/WO2_Thesaurus/events/19538","airforce-BRITISH"),(0,ep.Z)(ec,"https://data.niod.nl/WO2_Thesaurus/events/19540","airforce-AMERICAN"),ec),ex=(el={},(0,ep.Z)(el,"https://data.niod.nl/WO2_Thesaurus/events/19539","Luftwaffe"),(0,ep.Z)(el,"https://data.niod.nl/WO2_Thesaurus/events/19538","Royal Air Force"),(0,ep.Z)(el,"https://data.niod.nl/WO2_Thesaurus/events/19540","United States Army Air Forces"),el),ew={originalSlug:"luchtoorlog",target:"/luchtoorlog"}},7145:function(R,W,G){"use strict";G.d(W,{VX:function(){return er},YK:function(){return J},rD:function(){return et}});var J={startDate:"1-1-1938",endDate:"31-12-1945"},et={originalSlug:"bekendmakingen",target:"/bekendmakingen"},er="https://data.niod.nl/Bekendmaking"},77021:function(R,W,G){"use strict";G.d(W,{Tq:function(){return er},oP:function(){return et},xG:function(){return J}});var J="SOURCES_GO_BACK",et="cookie-consent-analytics",er=void 0},37601:function(R,W,G){"use strict";G.d(W,{AP:function(){return ep},Ew:function(){return ef},a$:function(){return eg},nc:function(){return eu},x1:function(){return ed},xt:function(){return eh}});var J,et,er,en,ei,eo,es,ec=G(59499),el=G(4129);(J=es||(es={})).NORTHSEA="NORTHSEA",J.NORTH="NORTH",J.SOUTH="SOUTH",J.EAST="EAST";var eu=(et={},(0,ec.Z)(et,es.NORTHSEA,"Noordzee"),(0,ec.Z)(et,es.NORTH,"Noordelijke route"),(0,ec.Z)(et,es.SOUTH,"Zuidelijke route"),(0,ec.Z)(et,es.EAST,"Oostelijke route"),et),ed={Noordzee:es.NORTHSEA,"Noordzee route":es.NORTHSEA,"Oostelijke route":es.EAST,"Zuidelijke route":es.SOUTH,"Zuidelijke route, via Zwitserland":es.SOUTH,"Noordelijke route":es.NORTH};er={},(0,ec.Z)(er,es.NORTHSEA,"engelandvaarders-noordzee-route"),(0,ec.Z)(er,es.NORTH,"engelandvaarders-noordelijke-route"),(0,ec.Z)(er,es.SOUTH,"engelandvaarders-zuidelijke-route"),(0,ec.Z)(er,es.EAST,"engelandvaarders-oostelijke-route");var ep=(en={},(0,ec.Z)(en,es.NORTHSEA,"Noordzee route"),(0,ec.Z)(en,es.NORTH,"Noordelijke route"),(0,ec.Z)(en,es.SOUTH,"Zuidelijke route"),(0,ec.Z)(en,es.EAST,"Oostelijke route"),en),ef=(ei={},(0,ec.Z)(ei,es.NORTHSEA,el.ZP.colors.tertiary),(0,ec.Z)(ei,es.NORTH,el.ZP.colors.blue),(0,ec.Z)(ei,es.SOUTH,el.ZP.colors.yellow),(0,ec.Z)(ei,es.EAST,el.ZP.colors.primary),ei),eh=(eo={},(0,ec.Z)(eo,es.NORTHSEA,!0),(0,ec.Z)(eo,es.NORTH,!0),(0,ec.Z)(eo,es.SOUTH,!1),(0,ec.Z)(eo,es.EAST,!0),eo),eg={originalSlug:"engelandvaarders",target:"/engelandvaarders"}},87954:function(R,W,G){"use strict";G.d(W,{Px:function(){return et},RV:function(){return er},_$:function(){return en},d8:function(){return J}});var J=["transported"],et=24,er=["https://data.niod.nl/WO2_Thesaurus/events/11167","https://data.niod.nl/WO2_Thesaurus/events/18479","https://data.niod.nl/WO2_Thesaurus/events/11168","https://data.niod.nl/WO2_Thesaurus/events/7865","https://data.niod.nl/WO2_Thesaurus/events/11163","https://data.niod.nl/WO2_Thesaurus/events/10174","https://data.niod.nl/WO2_Thesaurus/events/11198","https://data.niod.nl/WO2_Thesaurus/events/11165","https://data.niod.nl/WO2_Thesaurus/events/11170","https://data.niod.nl/WO2_Thesaurus/events/11169","https://data.niod.nl/WO2_Thesaurus/events/11171","https://data.niod.nl/WO2_Thesaurus/events/11172","https://data.niod.nl/WO2_Thesaurus/events/11166"],en=["buried","reburied","monumentPlaced","crashed"]},9427:function(R,W,G){"use strict";G.d(W,{AW:function(){return el},As:function(){return ec},CW:function(){return eu},DL:function(){return ef},DY:function(){return eg},HB:function(){return em},Hp:function(){return es},Mi:function(){return eh},P:function(){return ei},S6:function(){return eo},X0:function(){return ey},n_:function(){return en},on:function(){return ed},r1:function(){return ep},rR:function(){return J},xv:function(){return er},zF:function(){return et}});var J="_AS_",et="/bronnen",er={perPage:24,perTimeline:20,perClass:{"http://schema.org/Person":5,"http://schema.org/Event":3,"http://schema.org/VideoObject":2,"http://schema.org/Photograph":6,"http://schema.org/WebPage":2}},en="http://www.w3.org/2004/02/skos/core#Concept",ei=["http://www.w3.org/2004/02/skos/core#Concept"],eo="http://schema.org/WebPage",es="http://schema.org/Person",ec="http://schema.org/Event",el="http://schema.org/Thing",eu="https://data.niod.nl/PointOfInterest",ed=["http://www.w3.org/2000/01/rdf-schema#Resource"],ep="http://www.w3.org/2003/01/geo/wgs84_pos#SpatialThing",ef="http://www.w3.org/2004/02/skos/core#inScheme",eh="https://data.niod.nl/WO2_Thesaurus/6564",eg="https://data.niod.nl/organizationsWO2/Province",em="http://schema.org/Organization",ey=["https://data.niod.nl/Keywords_Organizations/850","https://data.niod.nl/Organizations/1079"]},15370:function(R,W,G){"use strict";G.d(W,{FM:function(){return er},MD:function(){return et},OE:function(){return J},qr:function(){return en}});var J={"http://schema.org/Person":9,"http://schema.org/Event":25,"http://schema.org/VideoObject":6,"http://schema.org/Photograph":12,"http://schema.org/WebPage":5},et=4,er=25,en=3},91913:function(R,W,G){"use strict";G.d(W,{s:function(){return J}});var J=["http://schema.org/Photograph","http://schema.org/Event","http://schema.org/VideoObject","http://schema.org/WebPage","http://schema.org/Person"]},88001:function(R,W){"use strict";W.Z=function(R){if(!R)return"";var W=R.toString(),G=W.length;return G<=3?W:G<=4||G<=6?"".concat(W.slice(0,G-3),".").concat(W.slice(G-3)):G<=9?"".concat(W.slice(0,G-6),".").concat(W.slice(G-6,G-3),".").concat(W.slice(G-3)):W}},14621:function(R,W){"use strict";W.Z=function(R){if(!R)return!1;var W=R.split("?")[0];return!!(W.includes("http://")||W.includes("https://"))&&!W.startsWith("https://www.oorlogsbronnen.nl")}},34799:function(R,W,G){"use strict";var J,et=G(59499),er=G(50029),en=G(87794),ei=G.n(en),eo=G(74552);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var es=(J=(0,er.Z)(ei().mark(function _callee(R,W){var G,J,er;return ei().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return G={statusCode:404,data:null},en.prev=1,en.next=4,eo.W.get("".concat("https://nginx.main.oorlogsbronnen-backend.de3.amazee.io","/").concat(W)).redirects(0);case 4:if(!((J=en.sent)&&J.body)){en.next=12;break}if(301!==J.body.status){en.next=8;break}return en.abrupt("return",{statusCode:301,redirectTo:J.body.redirect});case 8:return en.next=10,R(J.body);case 10:return er=en.sent,en.abrupt("return",function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({statusCode:J.statusCode},er));case 12:en.next=18;break;case 14:return en.prev=14,en.t0=en.catch(1),en.abrupt("return",G);case 18:case"end":return en.stop()}},_callee,null,[[1,14]])})),function(R,W){return J.apply(this,arguments)});W.Z=es},82842:function(R,W,G){"use strict";G.d(W,{Q:function(){return J}});var J={default:[100,300,600,800]}},87534:function(R,W,G){"use strict";G.d(W,{AM:function(){return createAnnouncementRouteByName},Be:function(){return createPersonRouteFromOldUrl},Ko:function(){return createProvinceRouteByName},be:function(){return createSourceRouteById},bs:function(){return createBombardmentRouteByName},cC:function(){return createPersonRouteByAttrs},dC:function(){return createPersonSuggestRouteByIds},nA:function(){return createOrganizationRouteByName},pR:function(){return createPlaceRouteByName},qQ:function(){return createPersonRouteByIds},tq:function(){return createCrashRouteByName},vi:function(){return createThemaRouteByName}});var J=G(7145),et=G(15347),er=G(37601),createThemaRouteByName=function(R){switch((R||"").toLowerCase()){case J.rD.originalSlug:return J.rD.target;case et.g8.originalSlug:return et.g8.target;case er.a$.originalSlug:return er.a$.target;default:return"/thema/".concat(encodeURIComponent(R))}},createPlaceRouteByName=function(R){return"/plaats/".concat(encodeURIComponent(R))},createCrashRouteByName=function(R){return"/crash/".concat(encodeURIComponent(R))},createBombardmentRouteByName=function(R){return"/bombardement/".concat(encodeURIComponent(R))},createProvinceRouteByName=function(R){return"/provincie/".concat(encodeURIComponent(R.toLowerCase().replace("provincie ","")))},createOrganizationRouteByName=function(R){return"/organisatie/".concat(encodeURIComponent(R))},createSourceRouteById=function(R,W){return W&&W.includes(J.VX)?"/bekendmaking/".concat(encodeURIComponent("".concat(R,"/gebeurtenis"))):"/bron/".concat(encodeURIComponent(R))},createPersonRouteByAttrs=function(R){var W;return null!=R&&null!==(W=R.oorlogslevensIdentifier)&&void 0!==W&&W.value?"/tijdlijn/".concat(encodeURIComponent(R.oorlogslevensIdentifier.value[0])):"/mensen"},createPersonRouteFromOldUrl=function(R){return R.replace("https://www.oorlogslevens.nl/person","/tijdlijn").replace("https://www.oorlogsbronnen.nl/person","/tijdlijn")},createAnnouncementRouteByName=function(R){return"/bekendmaking/".concat(encodeURIComponent(R))},getBestPersonUrl=function(R,W){if(!R)return"".concat(W);if(!Array.isArray(R))return"".concat(R);if(0===R.length)return"".concat(R[0]);var G=R.find(function(R){return!R.includes("/")});if(G)return"".concat(G);var J=R.reduce(function(R,W){var G=W.match(/[0-9]{2}/g);if(G){var J=parseInt(G[0]);if(J<R.lowest||J===R.lowest&&R.str&&W.length<R.str.length)return{lowest:J,str:W}}return R},{lowest:9999,str:void 0});return J.str?"".concat(J.str):"".concat(R[0])},createPersonRouteByIds=function(R,W){var G=getBestPersonUrl(R,W);return"/tijdlijn/".concat(G)},createPersonSuggestRouteByIds=function(R,W){var G=getBestPersonUrl(R,W);return"/tijdlijn/suggestie/".concat(G)}},48148:function(R,W,G){"use strict";G.d(W,{Fq:function(){return apiDateToApiString},Oe:function(){return dateToApiDate},Q:function(){return dateToMonthYearOnly},VY:function(){return dateStringToDateObj},kE:function(){return J},ri:function(){return machineStringToHumanStringFullMonths},wX:function(){return dateToShortMonthYearOnly}});var J=["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],et=["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dateToMonthYearOnly=function(R){return"".concat(J[R.getMonth()]," ").concat(R.getFullYear())},dateToShortMonthYearOnly=function(R){return"".concat(et[R.getMonth()]," ").concat(R.getFullYear())},apiDateToApiString=function(R){return"".concat(R.year,"-").concat(R.month,"-").concat(R.day)},machineStringToHumanStringFullMonths=function(R){var W=dateToApiDate(R);if(!W)return"";var G=J[W.month-1];return"".concat(W.day," ").concat(G||W.month," ").concat(W.year)},dateStringToDateObj=function(R){var W=new Date(R);return isNaN(W.getTime())?void 0:W},dateToApiDate=function(R){var W=new Date(R);return isNaN(W.getTime())?void 0:{day:W.getDate(),month:W.getMonth()+1,year:W.getFullYear()}}},93972:function(R,W,G){"use strict";var J=G(27812);W.Z=function(R){var W="",G="";if(1===R.length)W="".concat(R[0].longitude+.1,", ").concat(R[0].latitude+-.025,", ").concat(10,",0");else{var et=R.map(function(R){return R.longitude}),er=R.map(function(R){return R.latitude}),en=Math.min.apply(Math,(0,J.Z)(et)),ei=Math.min.apply(Math,(0,J.Z)(er)),eo=Math.max.apply(Math,(0,J.Z)(et)),es=Math.max.apply(Math,(0,J.Z)(er));W="[".concat(en,", ").concat(ei,", ").concat(eo,", ").concat(es,"]"),G="100"}return{src:"".concat("https://api.mapbox.com/styles/v1/joost3000/cloyci7zv014901qm062ed1gy","/static/").concat("").concat("").concat(W,"/").concat(1280,"x").concat(540,"@2x?").concat(G&&"padding=".concat(G),"&access_token=").concat("pk.eyJ1Ijoiam9vc3QzMDAwIiwiYSI6ImNrOTl3OHhmODBmZTEzZG4yMnJ1d3llM2YifQ.yRVlAqv-LWFJXT6MZPl_hg"),alt:""}}},74884:function(R,W){"use strict";W.Z=function(R){return R?"".concat(R.charAt(0).toLowerCase()).concat(R.slice(1)):""}},85064:function(R,W){"use strict";W.Z=function(R){if(R){if(!Array.isArray(R))return R;if(R.length>0)return R[0]}}},69766:function(R,W,G){"use strict";G.d(W,{W9:function(){return et},Xw:function(){return J}});var J="jsonapislug?slug=",et="jsonapipages?page="},74432:function(R,W,G){"use strict";function removeEmptyFromArray(R){return R.filter(function(R){return![null,void 0].includes(R)})}G.d(W,{U:function(){return removeEmptyFromArray}})},59817:function(R,W,G){"use strict";G.d(W,{C:function(){return removeEmptyStringFromObject},h:function(){return removeEmptyFromObject}});var J=G(59499),et=G(16835);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var removeEmptyFromObject=function(R){return Object.entries(R).reduce(function(R,W){var G=(0,et.Z)(W,2),er=G[0],en=G[1];return en?_objectSpread(_objectSpread({},R),{},(0,J.Z)({},er,en)):R},{})},removeEmptyStringFromObject=function(R){return Object.entries(R).reduce(function(R,W){var G=(0,et.Z)(W,2),er=G[0],en=G[1];return en||0===en?_objectSpread(_objectSpread({},R),{},(0,J.Z)({},er,en)):R},{})}},25244:function(R,W,G){"use strict";G.d(W,{Z:function(){return helpers_replaceAllStrings}});var J=["http://purl.org/dc/terms/","http://purl.org/dc/elements/1.1/","http://purl.org/dc/dcmitype/","http://schema.org/","http://www.w3.org/2004/02/skos/core#","http://www.w3.org/2000/01/rdf-schema#","https://data.niod.nl/organizationsWO2/","https://data.niod.nl/","http://www.w3.org/2003/01/geo/wgs84_pos#"],helpers_replaceAllStrings=function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J,G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return W.reduce(function(R,W){return R.replace(W,G)},R)}},98580:function(R,W,G){"use strict";G.d(W,{m:function(){return integratedSearchPrefixer},Y:function(){return searchTermWithPrefix}});var J=G(27484),et=G.n(J),searchTermWithPrefix=function(R){return R&&R.length?"".concat("search/p/topic/").concat(encodeURIComponent(R)):"works"},integratedSearchPrefixer=function(R,W){return null===R?"onthisday/p/datepart/".concat(W||et()().format("MM-DD")):R?"".concat("integrated_search/p/topic/").concat(encodeURIComponent(R)):"works"}},24672:function(R,W,G){"use strict";var J=G(63784);W.Z=function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:32;return(0,J.Z)(R,W-3)}},72459:function(R,W,G){"use strict";G.d(W,{i:function(){return singleOrArrayToSingle}});var singleOrArrayToSingle=function(R){return Array.isArray(R)?R[0]:R}},63784:function(R,W,G){"use strict";G.d(W,{a:function(){return truncateString}});var truncateString=function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:130,G=Array.isArray(R)?R.join(" "):R;if(!G||"string"!=typeof G)return"";if(G.length<W)return G;var J=G.substring(0,W);return"".concat(J,"...")};W.Z=function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:130,G=Array.isArray(R)?R.join(" "):R;if(!G||"string"!=typeof G)return"";if(G.length<W)return G;var J=G.substring(0,W),et=G.substring(W,G.length),er=et.substr(0,et.indexOf(" "));return"".concat(J).concat(er," ...")}},83203:function(R,W){"use strict";W.Z=function(R){return R?R.replace(/(<([^>]+)>)/gi,""):""}},74552:function(R,W,G){"use strict";G.d(W,{W:function(){return en}});var J=G(80569),et=G.n(J),er=G(92659),en=G.n(er)()(et());en.redirects(0),en.ok(function(R){return R.status<400})},32959:function(R,W,G){"use strict";var J,et=G(50029),er=G(87794),en=G.n(er),ei=G(94981),eo=G(74552),es=(J=(0,et.Z)(en().mark(function _callee(R,W){var G,J,et,er,es;return en().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return G="https://www.oorlogsbronnen.nl".includes("oobr.nl")||"https://www.oorlogsbronnen.nl".includes("localhost")||"https://www.oorlogsbronnen.nl".includes("docker.amazee.io"),en.prev=1,J=W.includes(",count"),en.next=5,eo.W.get("".concat("https://rest.spinque.com/4/netwerkoorlogsbronnen/api/in10/e/").concat(W,"&config=").concat("production"));case 5:if(!((et=en.sent).status<300)){en.next=27;break}if(!(et&&et.body)){en.next=24;break}return er=J&&Array.isArray(et.body)?et.body[0]:et.body,es=J&&Array.isArray(et.body)&&et.body.length>1?(0,ei.E)(et.body[1]):void 0,en.prev=10,en.t0=et.status,en.next=14,R(er);case 14:return en.t1=en.sent,en.t2=es,en.abrupt("return",{statusCode:en.t0,data:en.t1,stats:en.t2});case 19:throw en.prev=19,en.t3=en.catch(10),en.t3;case 22:en.next=25;break;case 24:case 27:return en.abrupt("return",{statusCode:et.status});case 25:en.next=28;break;case 28:en.next=34;break;case 30:return en.prev=30,en.t4=en.catch(1),G&&console.error("Error fetching ".concat(W,":"),en.t4),en.abrupt("return",{statusCode:en.t4.status||500});case 34:case"end":return en.stop()}},_callee,null,[[1,30],[10,19]])})),function(R,W){return J.apply(this,arguments)});W.Z=es},76718:function(R,W,G){"use strict";G.d(W,{Z:function(){return eg}});var J=G(59499),et=G(1248),er=G(70108),en=G(27484),ei=G.n(en),eo=G(97674),es=G(40111),ec=G(37507),el=G(9078),eu=G(1679),InterfaceTransformations_interfaceAnnouncementEvent=function(R,W){var G,J,et,er,en,ed=[],ep={},ef=(0,eo.g2)(R);if(ef){var eh=null===(G=(0,eu.ZP)(R,function(R){return R}))||void 0===G?void 0:G.data;if(eh.attributes.location){var eg=(0,ec.Z)(eh.attributes.location);eg&&eg.length>0&&(en=(0,el.Z)(eg[0]))}ep={contextDate:ef.dateObj?ei()(ef.dateObj.date).locale("nl").format("YYYY"):void 0,contextTitle:ef.title},ef.thumbnail&&(ep.highlightedEventFootage={actualSource:!1,thumbnail:ef.thumbnail,title:"",id:ef.id});var em=ef.thumbnail&&ef.flat.thumbnailUrl?[{title:ef.title,url:ef.flat.thumbnailUrl.value,thumbnail:ef.thumbnail}]:[];return ed=[{description:(null===(J=ef.flat.definition)||void 0===J?void 0:J.value)||(null===(et=ef.flat.scopeNote)||void 0===et?void 0:et.value),plus:{id:ef.id,text:"Lees meer over deze gebeurtenis",sidepanelContent:{type:es.a.thesaurus,data:ef}}}],{id:ef.id,type:"announcementEvent",context:ep,backgroundImage:en,dateLabel:(null===(er=ef.dateObj)||void 0===er?void 0:er.asString)||"onbekend",textual:ed,sources:{media:em,events:[]}}}},ed=G(90367),ep=G(33138),ef=G(51767),eh=G(48046);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var eg={single:{transformation:et.a,endpoint:function(R){return"announcement/p/id/".concat(encodeURIComponent(R),"/results?")}},relatedPersons:{transformation:function(R){return function(W){return(0,er.Z)(W,R)}},endpoint:function(R){return"announcement_allpersons/p/id/".concat(encodeURIComponent(R),"/results?")}},relatedPersonsForAnnouncementEvent:{transformation:function(R){return function(W){if(W.items&&0!==W.items.length)return{id:R,persons:(0,eh.VH)(W).items.map(function(R){return R.data})}}},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return"persons/e/person_concept:FILTER/p/value/1.0(".concat(encodeURIComponent(R),")/results,count?count=").concat(W)}},relatedThesaurus:{transformation:ep.k,endpoint:function(R,W){return"related_topics/p/id/".concat(encodeURIComponent(R),"/results?count=").concat(W)}},events:{transformation:function(R){var W=R.items,G=!1;return W.map(function(R){if(R&&R.tuple&&R.tuple.length){var W=R.tuple[0].class;if(W){if(W.includes("http://schema.org/Event"))return InterfaceTransformations_interfaceAnnouncementEvent(R,G);if(W.includes("https://data.niod.nl/Bekendmaking"))return G=!0,(0,ed.Z)(R)}}}).filter(function(R){return!!R})},endpoint:function(R){return"announcement_events/p/id/".concat(encodeURIComponent(R),"/results?")}},overview:{transformation:et.X,endpoint:function(R,W,G){return"".concat(R?"announcements/q/announcements_theme:FILTER/p/id/".concat(encodeURIComponent(R)):"announcements","/results,count?").concat(W?"count=".concat(W):"","&offset=").concat(W&&G?(0,ef.z)(W,G):0)}},geo:{transformation:et.X,endpoint:function(R,W){return"".concat(R?"announcements_geo/q/announcements_theme:FILTER/p/id/".concat(encodeURIComponent(R)):"announcements_geo","/results?").concat(W?"count=".concat(W):"")}},bestof:{transformation:et.X,endpoint:function(R,W,G){return"announcements/".concat(R?"q/announcements_theme:FILTER/p/id/".concat(encodeURIComponent(R),"/"):"","results,count?").concat(W?"count=".concat(W):"","&offset=").concat(W&&G?(0,ef.z)(W,G):0)}},byThesaurus:{transformation:et.X,endpoint:function(R,W,G){return"announcement_related/p/id/".concat(encodeURIComponent(R),"/results,count?count=").concat(W,"&offset=").concat(W&&G?(0,ef.z)(W,G):0)}},geoOnly:{transformation:et.X,endpoint:function(R){return"announcements_geo/results?".concat(R?"count=".concat(R):"")}},mandators:{transformation:function(R){return(0,eh.VH)(R).items.map(function(R){return R.data})},endpoint:function(R){return"announcements/e/announcements_person/results,count?".concat(R?"count=".concat(R):"")}},datesOnly:{transformation:function(R){var W;return null==R?void 0:null===(W=R.items)||void 0===W?void 0:W.map(function(R){return{date:ei()(R.tuple[0],"YYYY-MM"),count:R.probability}}).sort(function(R,W){return R.date.isAfter(W.date)?1:-1}).map(function(R){return _objectSpread(_objectSpread({},R),{},{date:R.date.format("MM-YYYY")})})},endpoint:function(){return"announcements/e/announcements_date/results?count=1000"}},overviewRelatedThesaurus:{transformation:ep.k,endpoint:function(R){return"announcements/e/announcements_theme/results?".concat(R?"count=".concat(R):"")}},overviewDatesForThesaurus:{transformation:function(R){var W;return null==R?void 0:null===(W=R.items)||void 0===W?void 0:W.map(function(R){return{date:ei()(R.tuple[0],"YYYY-MM"),count:R.probability}}).sort(function(R,W){return R.date.isAfter(W.date)?1:-1}).map(function(R){return _objectSpread(_objectSpread({},R),{},{date:R.date.format("MM-YYYY")})})},endpoint:function(R){return"announcements/q/announcements_theme:FILTER/p/id/".concat(encodeURIComponent(R),"/e/announcements_date/results?count=1000")}},perMonth:{transformation:et.X,endpoint:function(R,W){return"announcements/".concat(W?"e/announcements_theme:FILTER/p/id/".concat(encodeURIComponent(W),"/"):"","e/announcements_datepart:FILTER/p/datepart/").concat(R,"/results?count=1000")}}}},72038:function(R,W,G){"use strict";G.d(W,{S:function(){return ec},a:function(){return filterStringForClass}});var J=G(9427),et=G(51767),er=G(9725),en=G(94858),ei=G(98580),eo=G(46848),sortQueryToSortString=function(R){switch(R){case"old":return"/e/sort_date";case"new":return"/e/sort_date_desc";default:return""}},es=G(48046),filterStringForClass=function(R){return"/q/".concat(encodeURIComponent("class:FILTER"),"/p/value/1.0(").concat(encodeURIComponent(R),")")},ec={"http://schema.org/Person":{transformation:function(R,W){return{offset:R.offset,count:R.count,items:R.items.map(function(R){return(0,es.ll)(R)}).filter(function(R){return null!==R}),total:null==W?void 0:W.total}},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.xv.perClass["http://schema.org/Person"],G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,en=arguments.length>3?arguments[3]:void 0,eo=arguments.length>4?arguments[4]:void 0,es=arguments.length>5?arguments[5]:void 0;return"".concat((0,ei.m)(R,es)).concat(filterStringForClass("http://schema.org/Person")).concat((0,er.MT)(en)).concat(sortQueryToSortString(eo),"/results,count?count=").concat(W,"&offset=").concat((0,et.z)(W,G))}},"http://schema.org/Event":{transformation:en.u,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.xv.perClass["http://schema.org/Event"],G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,en=arguments.length>3?arguments[3]:void 0,eo=arguments.length>4?arguments[4]:void 0,es=arguments.length>5?arguments[5]:void 0;return"".concat((0,ei.m)(R,es)).concat(filterStringForClass("http://schema.org/Event")).concat((0,er.MT)(en)).concat(sortQueryToSortString(eo),"/results,count?count=").concat(W,"&offset=").concat((0,et.z)(W,G))}},"http://schema.org/Photograph":{transformation:en.u,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.xv.perClass["http://schema.org/Photograph"],G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,en=arguments.length>3?arguments[3]:void 0,eo=arguments.length>4?arguments[4]:void 0,es=arguments.length>5?arguments[5]:void 0;return"".concat((0,ei.m)(R,es)).concat(filterStringForClass("http://schema.org/Photograph")).concat((0,er.MT)(en)).concat(sortQueryToSortString(eo),"/results,count?count=").concat(W,"&offset=").concat((0,et.z)(W,G))}},"http://schema.org/VideoObject":{transformation:en.u,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.xv.perClass["http://schema.org/VideoObject"],G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,en=arguments.length>3?arguments[3]:void 0,eo=arguments.length>4?arguments[4]:void 0,es=arguments.length>5?arguments[5]:void 0;return"".concat((0,ei.m)(R,es)).concat(filterStringForClass("http://schema.org/VideoObject")).concat((0,er.MT)(en)).concat(sortQueryToSortString(eo),"/results,count?count=").concat(W,"&offset=").concat((0,et.z)(W,G))}},"http://schema.org/WebPage":{transformation:function(R,W){return{offset:R.offset,count:R.count,items:R.items.map(function(R){return(0,eo.w)(R)}).filter(function(R){return null!==R}),total:null==W?void 0:W.total}},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J.xv.perClass["http://schema.org/WebPage"],G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,en=arguments.length>3?arguments[3]:void 0,eo=arguments.length>4?arguments[4]:void 0,es=arguments.length>5?arguments[5]:void 0;return"".concat((0,ei.m)(R,es)).concat(filterStringForClass("http://schema.org/WebPage")).concat((0,er.MT)(en)).concat(sortQueryToSortString(eo),"/results,count?count=").concat(W,"&offset=").concat((0,et.z)(W,G))}}}},18869:function(R,W,G){"use strict";G.d(W,{Z:function(){return eS},J:function(){return filterForTransport}});var J=G(59499),et=G(48046),er=G(34507),en=G(97674),ei=G(71001),eo=G(37694);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var life_personLocation=function(R){var W,G=R.rank,J=R.probability,et=R.tuple,er=void 0;if(et.length&&(er=et[0]),er){var es=(0,en.yg)(er,G,J);if(null!=es&&es.location)return _objectSpread({id:es.id,label:es.title},es.location);if(null!==(W=er.attributes)&&void 0!==W&&W.exactMatch){var ec=er.attributes.exactMatch,el=(0,eo.Z)(ec);if(el)return _objectSpread({id:ec["@id"],label:(0,ei.Z)(ec["http://www.w3.org/2004/02/skos/core#prefLabel"])||""},el)}}},es=G(25244),ec=G(16666),el=G(74884),eu=G(87534),ed=G(83203),ep=G(54586);function lifeMediaItems_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function lifeMediaItems_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?lifeMediaItems_ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):lifeMediaItems_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var lifeMediaItem=function(R,W){var G=R.rank,J=R.probability,et=R.tuple;if(et.length){var er=et[0],en=et[1];if(en&&en.attributes){var ei=en.id,eo=en.class,ef=en.attributes,eh=null;try{if(-1!==ei.indexOf("https://www.oorlogslevens.nl/person/")){var eg,em=(0,ec.k)(ef);eh={id:ei,actualSource:!1,title:(null===(eg=em.flat.caption)||void 0===eg?void 0:eg.value)||"",thumbnail:em.enriched.thumbnail}}else{var ey,ev,eb,e_,ex=(0,ec.k)(ef),ew=(0,ed.Z)((0,ep.c)(ex.flat.title,ex.flat.prefLabel,ex.flat.name));eh=lifeMediaItems_objectSpread(lifeMediaItems_objectSpread({id:ei,title:ew,slug:encodeURIComponent(ei),sourceUrl:(0,eu.be)(ei),themeUrl:null!==(ey=ex.flat.prefLabel)&&void 0!==ey&&ey.value?(0,eu.vi)(null===(ev=ex.flat.prefLabel)||void 0===ev?void 0:ev.value):(0,eu.vi)((null===(eb=ex.flat.name)||void 0===eb?void 0:eb.value)||ew),personUrl:(0,eu.qQ)(null===(e_=ex.flat.oorlogslevensIdentifier)||void 0===e_?void 0:e_.value,ei),rank:G,probability:J,primaryClass:eo.length>0?(0,el.Z)((0,es.Z)(eo[0])):void 0,classes:eo.map(function(R){return{schema:R,value:(0,es.Z)(R)}})},ex),{},{actualSource:!0})}}catch(R){return}return{eventId:er.id,mediaItem:eh}}}},ef=G(40111),eh=G(11626),life_lifeExtraStatsStack=function(R,W,G,J,et,er,en,ei){if(R.total&&!(R.total<=1)){if(et)return{label:eh.Z.labels.transportStack(W,R.total,en),description:eh.Z.labels.transportStackDescription,plus:{id:G,text:eh.Z.labels.transportStackButton,sidepanelContent:{type:ef.a.otherPersons,id:G,transport:et,title:ei||"",total:R.total}}};if(er)return{label:eh.Z.labels.eventStack(W,J||"het",R.total,en),description:eh.Z.labels.eventStackDescription,plus:{id:G,text:eh.Z.labels.eventStackButton,sidepanelContent:{type:ef.a.relatedPersons,id:G,title:eh.Z.labels.eventStackPanelTitle(en),total:R.total}}}}},eg=G(43704),em=G(16554),ey=G(88278),persons_defaultPersonResultsTransformation=function(R){return R.items.map(et.ll).filter(function(R){return null!==R})},ev=G(51767),eb=G(87954),e_=G(55489),ex=G(76139),ew=G(50496),queryTransformations_personSearchStateToQuery=function(R){var W,G=R.personterm?"person_search/":"persons/";if(R.personterm?G="".concat(G,"p/text/").concat(encodeURI(R.personterm),"/"):R.place?G="".concat(G).concat((W=R.place,"e/person_place:FILTER/p/value/1.0(".concat(encodeURIComponent(W),")/"))):R.transport?G="".concat(G).concat(filterForTransport(R.transport)):R.thesaurus?G="".concat(G,"e/person_concept:FILTER/p/value/1.0(").concat(encodeURIComponent(R.thesaurus),")/"):R.advanced?(R.advanced.firstname&&(G="".concat(G,"q/person_search_firstname/p/value/").concat(encodeURI(R.advanced.firstname),"/")),R.advanced.lastname&&(G="".concat(G,"q/person_search_lastname/p/value/").concat(encodeURI(R.advanced.lastname),"/")),R.advanced.birthdate&&(G="".concat(G,"q/person_search_birthdate/p/value/").concat(encodeURI(R.advanced.birthdate),"/")),R.advanced.birthplace&&(G="".concat(G,"q/person_search_birthplace/p/value/").concat(encodeURI(R.advanced.birthplace),"/")),R.advanced.deathdate&&(G="".concat(G,"q/person_search_deathdate/p/value/").concat(encodeURI(R.advanced.deathdate),"/")),R.advanced.deathplace&&(G="".concat(G,"q/person_search_deathplace/p/value/").concat(encodeURI(R.advanced.deathplace),"/"))):R.mandators&&(G="announcements/e/announcements_person/"),R.sorting)switch(R.sorting){case"lastnameasc":G="".concat(G,"q/sort_familyname/");break;case"lastnamedesc":G="".concat(G,"q/sort_familyname_desc/");break;case"birthdateasc":G="".concat(G,"q/sort_birthdate/");break;case"birthdatedesc":G="".concat(G,"q/sort_birthdate_desc/")}return G};function personModel_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function personModel_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?personModel_ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):personModel_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var personsFilterForEventPrefix=function(R){return"person_event_related/p/id/".concat(encodeURIComponent(R),".")},filterForTransport=function(R){var W=R.from,G=R.to,J=R.date;return"e/person_transport:FILTER/p/fromLocation/".concat(encodeURIComponent(W),"/p/toLocation/").concat(encodeURIComponent(G),"/p/date/").concat(encodeURIComponent(J),"/")},eS={single:{transformation:function(R){var W=R.items;return{item:W&&W.length>0?(0,et.ll)(W[0]):void 0}},endpoint:function(R){return"person/p/id/".concat(R,"/results?")}},events:{transformation:er.Z,endpoint:function(R,W){return"person_grouped_events/p/id/".concat(R,"/results?count=").concat(W||1e3)}},locations:{transformation:function(R){return R.items.map(function(R){return life_personLocation(R)})},endpoint:function(R,W){return"person_locations/p/id/".concat(R,"/results?count=").concat(W||1e3)}},media:{transformation:function(R){var W=R.items.map(lifeMediaItem),G=[];return W.forEach(function(R){G.some(function(W){return W&&R&&W.mediaItem.id===R.mediaItem.id})||G.push(R)}),G},endpoint:function(R,W){return"person_event_media2/p/id/".concat(R.map(function(R,W){return encodeURIComponent("".concat(W>0?"|":"","1.0(").concat(R,")"))}),"/results?count=").concat(W?W*R.length:3*R.length)}},onThisDay:{transformation:persons_defaultPersonResultsTransformation,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return"persons/e/person_onthisday/p/value/".concat(R,"/results,count?count=").concat(W,"&offset=").concat((0,ev.z)(W,G))}},search:{transformation:persons_defaultPersonResultsTransformation,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:eb.Px;return"".concat(queryTransformations_personSearchStateToQuery(R),"results,count?count=").concat(W,"&offset=").concat((0,ev.z)(W,R.page||1))}},miscImages:{transformation:function(R){return{images:R.items.map(function(R){if(R.tuple&&R.tuple.length>0)return{thumbnail:(0,e_.Wl)(R.tuple[0].attributes),caption:R.tuple[0].attributes["http://schema.org/caption"],id:R.tuple[0].id,publisher:{url:R.tuple[0].attributes["http://schema.org/url"],title:R.tuple[0].attributes["http://schema.org/maintainer"]},position:parseInt(R.tuple[0].attributes["http://schema.org/position"])}}).sort(function(R,W){return R.position-W.position})}},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return"person_images/p/id/".concat(R,"/results?count=").concat(W,"&offset=").concat(G)}},eventSuggestionSubjects:{transformation:function(R){return R},endpoint:function(){return"crowdsource_eventlist/results?count=1000"}},sidebar:{byEvent:{transformation:function(R,W,G,J,et,er){return function(en){return life_lifeExtraStatsStack(en,W,R,J,void 0,G,et,er)}},endpoint:function(R){return"persons/e/person_concept:FILTER/p/value/1.0(".concat(encodeURIComponent(R),")/statistics?count=1000")}},byTransport:{transformation:function(R,W,G,J,et){return function(er){return life_lifeExtraStatsStack(er,W,R,void 0,G,void 0,J,et)}},endpoint:function(R,W){return"persons/".concat(filterForTransport(R),"statistics?count=").concat(W||1e3)}}},infographics:{category:{transformation:function(R){return function(W){return(0,eg.Z)(W,R)}},endpoint:function(R,W){return"".concat(W?"persons/".concat(filterForTransport(W)):"".concat(personsFilterForEventPrefix(R)),"q/person_category/results?count=10000")}},gender:{transformation:em.Z,endpoint:function(R,W){return"".concat(W?"persons/".concat(filterForTransport(W)):"".concat(personsFilterForEventPrefix(R)),"q/person_gender/results?count=10000")}},deathPlace:{transformation:function(R){return R},endpoint:function(R,W){return"".concat(W?"persons/".concat(filterForTransport(W)):"".concat(personsFilterForEventPrefix(R)),"q/person_deathplace/results?count=10000")}},deathPlacePOIs:{transformation:function(R){return R.items.map(function(R){return personModel_objectSpread(personModel_objectSpread({},(0,en.g2)(R)),{},{count:R.probability})})},endpoint:function(R,W){return"".concat(W?"persons/".concat(filterForTransport(W)):"".concat(personsFilterForEventPrefix(R)),"q/person_deathplace_camps_events/results?count=20")}},deathDate:{transformation:function(R){return function(W){return(0,ex.Z)(W,void 0,R)}},endpoint:function(R,W){return"".concat(W?"persons/".concat(filterForTransport(W)):"".concat(personsFilterForEventPrefix(R)),"q/person_deathdate/results?count=10000")}},ageDistribution:{transformation:ey.Z,endpoint:function(R,W){return"".concat(W?"persons/".concat(filterForTransport(W)):"".concat(personsFilterForEventPrefix(R)),"q/person_age/results?count=20000")}},otherPersons:{transformation:persons_defaultPersonResultsTransformation,endpoint:function(R,W){return"".concat(W?"persons/".concat(filterForTransport(W)):"".concat(personsFilterForEventPrefix(R)),"results?count=").concat(ew.j)}}}}},64731:function(R,W,G){"use strict";G.d(W,{N:function(){return et}});var J=G(23275),et={transformation:function(R){return(0,J.N)(R,void 0,!0)},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return"suggest_thesaurus_entity/p/topic/".concat(encodeURIComponent(R),"/results?count=").concat(W)}};W.Z={transformation:function(R){return(0,J.N)(R,void 0,!0)},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return"suggest_entity/p/topic/".concat(encodeURIComponent(R),"/results?count=").concat(W)}}},15443:function(R,W,G){"use strict";G.d(W,{Z:function(){return em}});var J=G(53570),et=G(33138),er=G(94858),en=G(98580),ei=G(68707),eo=G(70108),es=G(71943),ec=G(43753),el=G(1248),eu=G(48046),ed=G(34586),ep=G(15370),ef=G(74432),eh=G(91709),organizationSubjectItemTransform=function(R,W,G){var J,et=R.id,er=R.attributes,en=void 0,ei=(0,eh.H)(er);try{en={id:et,label:null===(J=ei.label)||void 0===J?void 0:J.value,rank:W,probability:G}}catch(R){}return en},organizationSubjectTransform=function(R){var W=R.rank,G=R.probability,J=R.tuple,et=void 0;return J.length&&(et=J[0]),organizationSubjectItemTransform(et,W,G)},organizationSubjectResults=function(R,W){var G=R.offset,J=R.count,et=R.items;return{offset:G,count:J,items:(0,ef.U)(et.map(function(R){return organizationSubjectTransform(R)})),total:null==W?void 0:W.total}},eg=G(23275),em={single:{transformation:J.K,endpoint:function(R){return"entity/p/id/".concat(encodeURIComponent(R),"/results?")}},relatedThemes:{transformation:et.k,endpoint:function(R,W){return"entity_related/p/id/".concat(encodeURIComponent(R),"/results?count=").concat(W)}},relatedPersons:{transformation:function(R){return function(W,G){return(0,eo.Z)(W,R,void 0,G)}},endpoint:function(R){return"persons/e/person_concept:FILTER/p/value/1.0(".concat(encodeURIComponent(R),")/results,count?count=").concat(ep.OE["http://schema.org/Person"])}},relatedPersonsInSidePanel:{transformation:function(R){return function(W){return{items:(0,eu.VH)(W).items.map(function(R){return R.data}),more:{text:ed.Z.sidepanel.relatedPersons.showAll,href:{pathname:"/mensen",query:R}}}}},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return"persons/e/person_concept:FILTER/p/value/1.0(".concat(encodeURIComponent(R),")/results?count=").concat(W)}},poiEntities:{transformation:function(R){return(0,eg.N)(R,void 0,!0)},endpoint:function(R,W){return"point_of_interest_on_location/p/id/".concat(encodeURIComponent(R),"/results?count=").concat(W)}},relatedAnnouncements:{transformation:function(R){return function(W){if(W.items&&0!==W.items.length)return{id:R,announcements:(0,el.X)(W).items}}},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return"announcement_related/p/id/".concat(encodeURIComponent(R),"/results,count?count=").concat(W)}},events:{transformation:ei.bv,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;return"entity_timeline/p/id/".concat(encodeURIComponent(R),"/results,count?count=").concat(W)}},announcements:{transformation:function(R,W){var G=(0,el.X)(R,W);if(G.items.length>0)return G.items},endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return"announcement_related/p/id/".concat(encodeURIComponent(R),"/results,count?count=").concat(W)}},sources:{transformation:er.u,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return"".concat((0,en.m)(R),"/q/exclude_concepts/results,count?count=").concat(W)}},highlighted:{transformation:ec.Z,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return"select/p/id/".concat((0,es.I)([R]),"/q/highlighted_objects/results,count?count=").concat(W)}},organization:{transformation:J.K,endpoint:function(R){return"entity/p/id/".concat(encodeURIComponent(R),"/results?")}},organizationRelatedSources:{transformation:er.u,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return"bronnen_organisaties/p/id/".concat(encodeURIComponent(R),"/results,count?count=").concat(W)}},organizationRelatedThemes:{transformation:et.k,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return"connected_entities/p/id/".concat(encodeURIComponent(R),"/e/connected_entities_subject_count/results?count=").concat(W)}},organizationRelatedSubjects:{transformation:organizationSubjectResults,endpoint:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return"connected_entities/p/id/".concat(encodeURIComponent(R),"/e/connected_entities_type_count/results?count=").concat(W)}},organizationRelatedSubjectsByTheme:{transformation:organizationSubjectResults,endpoint:function(R,W){var G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30;return"connected_entities/p/id/".concat(encodeURIComponent(W),"/e/subject%3AFILTER/p/id/").concat(encodeURIComponent(R),"/e/connected_entities_type_count/results?count=").concat(G)}},crash:{transformation:J.K,endpoint:function(R){return"entity/p/id/".concat(encodeURIComponent(R),"/results?")}}}},71943:function(R,W,G){"use strict";G.d(W,{I:function(){return idsToQueryString}});var idsToQueryString=function(R){return R.reduce(function(W,G,J){return"".concat(W).concat(encodeURIComponent('1.0("'.concat(G,'")').concat(J===R.length-1?"":"|")))},"")}},51767:function(R,W,G){"use strict";G.d(W,{z:function(){return pageToOffset}});var pageToOffset=function(R,W){return(W-1)*R}},9725:function(R,W,G){"use strict";G.d(W,{Gd:function(){return filterParamOptionToSingleString},MT:function(){return paramsToFacetFilterString},sU:function(){return singleStringToParamOption}});var J=G(16835),et=G(9427),filterParamOptionToSingleString=function(R){return"".concat(R.id).concat(et.rR).concat(R.title)},singleStringToParamOption=function(R){var W=R.split(et.rR),G=(0,J.Z)(W,2),er=G[0],en=G[1];if(er&&en)return{id:er,title:en}},paramsToFacetFilterString=function(R){return R&&0!==R.length?R.reduce(function(R,W){return"".concat(R).concat(W.options.reduce(function(R,W,G){return"".concat(R).concat(encodeURIComponent("".concat(G>0?"|":"",'1.0("').concat(W.id,'")')))},"/q/".concat(encodeURIComponent("".concat(W.facet,":FILTER")),"/p/value/")))},""):""}},94999:function(R,W,G){"use strict";var J,et=G(16835),er=G(50029),en=G(87794),ei=G.n(en),eo=G(32959),es=G(15443),ec=G(15370),el=G(68785),eu=G(52003),ed=(J=(0,er.Z)(ei().mark(function _callee(R){var W,G,J,er,en,ed,ep,ef,eh;return ei().wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return W=R.slug,ei.next=3,(0,eo.Z)(es.Z.single.transformation,es.Z.single.endpoint(W));case 3:if(!((G=ei.sent).statusCode<300&&G.data)){ei.next=16;break}return ei.next=7,Promise.all([(0,el.l)(W,["http://schema.org/Event"]),(0,eu.r)(W,G.data.id),(0,eo.Z)(es.Z.relatedPersons.transformation({theme:G.data.id}),es.Z.relatedPersons.endpoint(G.data.id)),(0,eo.Z)(es.Z.events.transformation,es.Z.events.endpoint(G.data.id,ec.FM))]);case 7:return J=ei.sent,en=(er=(0,et.Z)(J,4))[0],ed=er[1],ep=er[2],ef=er[3],eh=void 0,ef&&ef.statusCode<300&&ef.data&&ef.data.timeline.items.length>1&&(eh={events:ef.data}),ei.abrupt("return",{data:{item:G.data,photographs:en["http://schema.org/Photograph"],persons:ep.data,sources:ed,events:eh},statusCode:G.statusCode});case 16:return ei.abrupt("return",{statusCode:G.data?G.statusCode:404});case 17:case"end":return ei.stop()}},_callee)})),function(R){return J.apply(this,arguments)});W.Z=ed},3917:function(R,W,G){"use strict";var J,et=G(16835),er=G(50029),en=G(87794),ei=G.n(en),eo=G(32959),es=G(15443),ec=(J=(0,er.Z)(ei().mark(function _callee(R){var W,G,J,er,en,ec;return ei().wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return J=R.slug,ei.next=3,(0,eo.Z)(es.Z.crash.transformation,es.Z.crash.endpoint(J));case 3:if(!(200!==(er=ei.sent).statusCode||!(null!==(W=er.data)&&void 0!==W&&W.id))){ei.next=6;break}return ei.abrupt("return",{statusCode:er.statusCode});case 6:if(en=void 0,!(null!==(G=er.data)&&void 0!==G&&G.id)){ei.next=14;break}return ei.next=10,Promise.all([(0,eo.Z)(es.Z.relatedPersons.transformation({theme:er.data.id}),es.Z.relatedPersons.endpoint(er.data.id))]);case 10:ec=ei.sent,en=(0,et.Z)(ec,1)[0].data;case 14:return ei.abrupt("return",{data:{item:er.data,persons:en},statusCode:er.statusCode});case 15:case"end":return ei.stop()}},_callee)})),function(R){return J.apply(this,arguments)});W.Z=ec},68785:function(R,W,G){"use strict";G.d(W,{l:function(){return ep}});var J,et=G(59499),er=G(50029),en=G(87794),ei=G.n(en),eo=G(72038),es=G(38572),ec=G(91913),el=G(32959),eu=G(15370),ed=G(59239);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var ep=(J=(0,er.Z)(ei().mark(function _callee2(R,W,G){return ei().wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.abrupt("return",ec.s.reduce(function(){var J=(0,er.Z)(ei().mark(function _callee(J,er){var en,ec,ep,ef;return ei().wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:return ei.next=2,J;case 2:if(en=ei.sent,!("http://schema.org/Person"===er||W&&W.includes(er))){ei.next=5;break}return ei.abrupt("return",J);case 5:return ei.next=7,(0,el.Z)(eo.S[er].transformation,eo.S[er].endpoint("http://schema.org/WebPage"===er&&G?G:R,eu.OE[er]));case 7:return(ec=ei.sent).statusCode<300&&ec.data&&ec.data.items.length>0&&(en=function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}((0,et.Z)({},er,{results:ec.data,more:null!==(ep=ec.stats)&&void 0!==ep&&ep.total&&(null===(ef=ec.stats)||void 0===ef?void 0:ef.total)>eu.OE[er]||"http://schema.org/Event"===er?{text:"Alle ".concat(ed.Z.classTranslation(er)),href:{pathname:"/bronnen",query:{term:R,tab:(0,es.wp)(er),sort:(0,es.LJ)(er)}}}:void 0}),en)),ei.abrupt("return",en);case 10:case"end":return ei.stop()}},_callee)}));return function(R,W){return J.apply(this,arguments)}}(),{}));case 1:case"end":return J.stop()}},_callee2)})),function(R,W,G){return J.apply(this,arguments)})},52003:function(R,W,G){"use strict";G.d(W,{r:function(){return eu}});var J,et=G(50029),er=G(87794),en=G.n(er),ei=G(32959),eo=G(15370),es=G(45995),ec=G(74884),el=G(15443),eu=(J=(0,et.Z)(en().mark(function _callee(R,W){var G,J,et,er;return en().wrap(function(en){for(;;)switch(en.prev=en.next){case 0:return en.next=2,(0,ei.Z)(el.Z.sources.transformation,el.Z.sources.endpoint(R,eo.MD));case 2:if(!((G=en.sent)&&G.statusCode<300&&G.data&&G.data.items.length>0)){en.next=8;break}if(0!==(er=G.data.items.filter(function(R){return(null==R?void 0:R.id)!==W})).length){en.next=7;break}return en.abrupt("return",void 0);case 7:return en.abrupt("return",{items:er,more:null!==(J=G.stats)&&void 0!==J&&J.total&&(null===(et=G.stats)||void 0===et?void 0:et.total)>eo.MD?{text:"Alle ".concat((0,ec.Z)(es.Z.titles.sources)),href:{pathname:"/bronnen",query:{term:R}}}:void 0});case 8:case"end":return en.stop()}},_callee)})),function(R,W){return J.apply(this,arguments)})},31790:function(R,W,G){"use strict";G.d(W,{B:function(){return et}});var J,et,er=G(59499),en=G(27812),ei=G(48046);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}(J=et||(et={})).uitvaardiger="uitvaardiger",J.slachtoffer="slachtoffer",J.genoemde="genoemde";var mergeArraysAndAddRole=function(R,W,G){return[].concat((0,en.Z)(R),(0,en.Z)(W.map(function(R){return(0,ei.Av)(R["@id"],R)}).filter(function(R){return!!R}).map(function(R){return _objectSpread(_objectSpread({},R),{},{role:G})})))};W.Z=function(R){var W=R.genoemde,G=R.opdrachtgever,J=R.slachtoffer,er=[];if(G&&(er=mergeArraysAndAddRole(er,G,et.uitvaardiger)),J&&(er=mergeArraysAndAddRole(er,J,et.slachtoffer)),W&&(er=mergeArraysAndAddRole(er,W,et.genoemde)),0!==er.length)return{highlighted:(er=er.reduce(function(R,W){return R.some(function(R){return R.id===W.id})?R:[].concat((0,en.Z)(R),[W])},[]))[0],rest:er.slice(1)}}},9359:function(R,W,G){"use strict";G.d(W,{i7:function(){return announcementItemTransform}});var J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef=G(87534),eh=G(55489),eg=G(70716),em=G(97220),ey=G(85064),ev=G(31790),eb=G(81856),e_=G(17508);(J=en||(en={})).Amsterdam="Amsterdam",J.Arnhem="Arnhem",J.Haarlem="Haarlem",J.Leusden="Leusden",J.Scheveningen="Scheveningen",J.WassenaarWaalsdorpervlakte="Wassenaar, Waalsdorpervlakte",(et=ei||(ei={}))["Biografie\xebnWO2"]="Biografie\xebn WO2",et["Biografie\xebnWO2Supplement02"]="Biografie\xebn WO2: supplement 02",et.NationaalMonumentKampAmersfoort="Nationaal Monument Kamp Amersfoort",et.Oorlogsgravenstichting="Oorlogsgravenstichting",(eo||(eo={})).Nl="nl",(es||(es={})).Niod="NIOD",(ec||(ec={})).PublicDomain="Public Domain",(el||(el={})).Bekendmakingen="Bekendmakingen",(eu||(eu={})).Foto="foto",(er=ed||(ed={})).ArthurSeyssInquart="Arthur Seyss-Inquart",er.HannsAlbinRauter="Hanns Albin Rauter",er.IRFEMuller="ir. F.E. Muller",(ep||(ep={})).InOorlogsbronnenInSetBeeldbankNiod="In Oorlogsbronnen in set beeldbank_niod";var announcementPhotographTransform=function(R){if(R){var W=Array.isArray(R)&&R.length>0?R[0]:R;return(0,eh.Wl)(W)}},announcementItemTransform=function(R,W,G){var J,et=R.id;R.class;var er=R.attributes;if(er){try{var en=er.photograph&&er.photograph.length>0?er.photograph[0]:void 0,ei=en?(0,eb.Z)({attributes:en,id:en["@id"],class:en.class||[]}):void 0;J={id:et,href:(0,ef.AM)(et),title:er["http://schema.org/name"]||"",date:(0,em.J)(er),image:announcementPhotographTransform(er.photograph),description:(0,ey.Z)(er["http://schema.org/description"]),location:(0,eg.N)(er),locationLabel:(0,e_.nv)(er),place:er["http://schema.org/location"]||"",attributes:{linked:[],unlinked:[]},persons:(0,ev.Z)(er),source:ei,sourceUrl:er["http://purl.org/dc/elements/1.1/source"]}}catch(R){}return J}};W.ZP=function(R,W){var G=R.rank,J=R.probability,et=R.tuple,er=void 0;return et.length&&(er=et[0]),announcementItemTransform(er,G,J)}},46848:function(R,W,G){"use strict";G.d(W,{w:function(){return drupalArticleItemTransform}});var J=G(91709),et=G(48148),er=G(27484),en=G.n(er),getDateAsDateObject=function(R){if(R){var W=(0,et.VY)(R);return{date:W,asString:en()(W).locale("nl").format("LL")}}},drupalArticleItemTransform=function(R){var W,G,et=R.rank,er=R.probability,en=R.tuple,ei=void 0;en.length&&(ei=en[0]);var eo=ei,es=eo.id,ec=eo.attributes,el=void 0,eu=(0,J.H)(ec),ed=ec["http://schema.org/image"]&&ec["http://schema.org/image"]["http://schema.org/contentUrl"]?{src:"".concat("https://nginx.main.oorlogsbronnen-backend.de3.amazee.io","/").concat(ec["http://schema.org/image"]["http://schema.org/contentUrl"]),alt:""}:void 0;try{el={id:es,title:null===(G=eu.name)||void 0===G?void 0:G.value,sourceUrl:ec["drupal:path"],themeUrl:ec["drupal:path"],personUrl:ec["drupal:path"],slug:(W=ec["drupal:path"])?W.replace("/artikel/",""):"",rank:et,probability:er,flat:eu,enriched:{thumbnail:ed,dateObj:getDateAsDateObject(ec["http://schema.org/dateCreated"])},connected:{}}}catch(W){console.log("Something went wrong with transforming:",R),console.error(W)}return el}},1679:function(R,W,G){"use strict";G.d(W,{B_:function(){return searchResultsToData},tF:function(){return searchResultsToSingleItem}});var searchResultFormatToData=function(R,W){var G=R.rank,J=R.probability,et=R.tuple,er=void 0;if(et.length&&(er=et[0]),er&&er.attributes){var en={rank:G,probability:J};return{meta:en,data:W(er,en)}}},searchResultsToData=function(R,W){return{count:R.count,offset:R.offset,items:R.items.map(function(R){return searchResultFormatToData(R,W)}).filter(function(R){return!!R})}},searchResultsToSingleItem=function(R,W){var G=searchResultsToData(R,W);if(G&&G.items.length>0)return G.items[0].data};W.ZP=searchResultFormatToData},71869:function(R,W,G){"use strict";var J=G(74884),et=G(25244);W.Z=function(R){return(0,J.Z)((0,et.Z)(R))}},38572:function(R,W,G){"use strict";G.d(W,{LJ:function(){return classIndicatorsToSortQuery},mz:function(){return tabQueryToClassIndicators},wp:function(){return classIndicatorsToTabQuery}});var classIndicatorsToTabQuery=function(R){switch(R){case"http://schema.org/Person":return"mensen";case"http://schema.org/Photograph":return"foto";case"http://schema.org/VideoObject":return"video";case"http://schema.org/Event":return"gebeurtenissen";case"http://schema.org/WebPage":return"artikelen";default:return}},classIndicatorsToSortQuery=function(R){switch(R){case"http://schema.org/Person":case"http://schema.org/Photograph":case"http://schema.org/VideoObject":case"http://schema.org/WebPage":default:return;case"http://schema.org/Event":return"old"}},tabQueryToClassIndicators=function(R){switch(R){case"foto":return"http://schema.org/Photograph";case"mensen":return"http://schema.org/Person";case"gebeurtenissen":return"http://schema.org/Event";case"video":return"http://schema.org/VideoObject";case"artikelen":return"http://schema.org/WebPage";default:return}}},97324:function(R,W,G){"use strict";G.d(W,{i:function(){return transformAttributeToKeyValueObjects}});var J=G(59499),et=G(82212),er=G(71869),en=G(68595);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var transformAttributeToKeyValueObjects=function(R){return Object.keys(R).reduce(function(W,G){return _objectSpread(_objectSpread({},W),{},(0,J.Z)({},(0,er.Z)(G),{label:en.Z.propertyTranslation((0,er.Z)(G)),schema:G,value:(0,et.VB)(R[G])}))},{})}},82212:function(R,W,G){"use strict";G.d(W,{LO:function(){return transformW3SchemaToKeyValueObject},VB:function(){return stringFromW3LanguageObject},y:function(){return firstStringFromLanguageObject}});var J=G(59499),et=G(25244),er=G(74884),firstStringFromLanguageObject=function(R){return R?R.nl?R.nl:R.default?R.default:R.en?R.en:R.de?R.de:null:null},stringFromW3LanguageObject=function(R){return Array.isArray(R)||"string"==typeof R||"number"==typeof R?R:firstStringFromLanguageObject(R)},transformW3SchemaToKeyValueObject=function(R,W){if(!W)return null;var G=(0,er.Z)((0,et.Z)(R));return(0,J.Z)({},G,{schema:R,value:stringFromW3LanguageObject(W)})}},71001:function(R,W,G){"use strict";var J=G(72459);W.Z=function(R){if(R){if(R.nl)return(0,J.i)(R.nl);if(R.en)return(0,J.i)(R.en);if(R.de)return(0,J.i)(R.de)}}},2756:function(R,W,G){"use strict";G.d(W,{N:function(){return connectedAttributes}});var J=G(27812),et=G(59499),er=G(82212);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var typeAttribute=function(R){var W=R["@id"],G=R["http://www.w3.org/2000/01/rdf-schema#label"];return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:W,facet:"class"},(0,er.LO)("http://www.w3.org/2000/01/rdf-schema#label",G))},en=G(67025);function pageAttribute_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var pageAttribute=function(R){var W=R["@id"],G=R["http://schema.org/thumbnail"];return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?pageAttribute_ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):pageAttribute_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:W,pageNumber:R.nativePageNumber},(0,er.LO)("http://schema.org/thumbnail",G))},ei=G(4730),eo=G(97324),es=["@id"];function seriesAttribute_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var seriesAttribute=function(R){var W=R["@id"],G=(0,ei.Z)(R,es);return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?seriesAttribute_ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):seriesAttribute_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:W},(0,eo.i)(G))};function geoObject_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function geoObject_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?geoObject_ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):geoObject_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var geoObject=function(R){var W=R["@id"],G=R["http://schema.org/latitude"],J=R["http://schema.org/latitude"];return geoObject_objectSpread(geoObject_objectSpread({id:W},(0,er.LO)("http://schema.org/latitude",G)),(0,er.LO)("http://schema.org/longitude",J))},ec=G(87534),el=G(72442),eu=["@id","http://schema.org/geo","http://schema.org/address"];function placeAttribute_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var placeAttribute=function(R){var W,G=R["@id"],J=R["http://schema.org/geo"],er=R["http://schema.org/address"],en=(0,ei.Z)(R,eu),es=(0,eo.i)(en);es.prefLabel&&!Array.isArray(es.prefLabel)&&(W={href:(0,ec.pR)(es.prefLabel.value),label:es.prefLabel.value});var ed=void 0;return en.province&&(ed=en.province.map(el.Z).filter(function(R){return!!R})),function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?placeAttribute_ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):placeAttribute_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:G,geo:J?geoObject(J):void 0,address:er?{schema:"http://schema.org/address",value:(0,eo.i)(er)}:void 0,asLink:W,provinceLinks:ed},es)},ed=["@id","publisher"];function withPublisherAttribute_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var withPublisherAttribute=function(R){var W=R["@id"],G=R.publisher,J=(0,ei.Z)(R,ed);return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?withPublisherAttribute_ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):withPublisherAttribute_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:W,publisher:G&&G.map(function(R){return(0,en.r)(R)})},(0,eo.i)(J))},ep=G(74884),ef=G(25244),eh=G(9427);function rightsAttribute_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var rightsAttribute=function(R){var W=R["@id"],G=R["http://www.w3.org/2000/01/rdf-schema#label"];return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?rightsAttribute_ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):rightsAttribute_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:W},(0,er.LO)("http://www.w3.org/2000/01/rdf-schema#label",G))},connectedAttributes=function(R,W){var G=R.type,et=R.subject,er=R.publisher,ei=R.newspaper,eo=R.page,es=R.series,ec=R.place,el=R.archive,eu=R.broader,ed=R.rights,eg=R.provider,em=ec?ec.map(function(R){return placeAttribute(R)}):void 0,ey=em?em.reduce(function(R,W){return W.provinceLinks?[].concat((0,J.Z)(R),(0,J.Z)(W.provinceLinks)):R},[]).reduce(function(R,W){return R.some(function(R){return R.id===W.id})?R:[].concat((0,J.Z)(R),[W])},[]):[],ev=G&&G.map(function(R){return typeAttribute(R)||null}).filter(function(R){return!eh.on.includes(R.id)});if(!ev&&W["http://purl.org/dc/elements/1.1/type"]){var eb=W["http://purl.org/dc/elements/1.1/type"];ev=[{id:"unknown",facet:"class",label:{schema:(0,ep.Z)((0,ef.Z)(eb)),value:eb}}]}return{type:ev,newspaper:ei&&ei.map(function(R){return withPublisherAttribute(R)}),publisher:er&&er.map(function(R){return(0,en.r)(R,"organization")}),page:eo&&eo.map(function(R){return pageAttribute(R)}),series:es&&es.map(function(R){return seriesAttribute(R)}),subject:et&&et.map(function(R){return(0,en.r)(R,"topic")}),place:em,provinceLinks:ey,archive:el&&el.map(function(R){return withPublisherAttribute(R)}),broader:eu&&eu.map(function(R){return(0,en.r)(R)}),rights:ed&&ed.map(rightsAttribute),provider:eg&&eg.map(function(R){return(0,en.r)(R,"organisation")})}}},29229:function(R,W,G){"use strict";G.d(W,{Z:function(){return itemAttributes_detailedAttributes}});var J=G(4730),helpers_getBestLabel=function(R){var W=R.title||R.prefLabel||R.label||R.name;return W?Array.isArray(W.value)?W.value[0]:W.value:null},et=G(87534),er=["id","facet"],en=["id","facet"],ei=["id","facet"],connectedToLinkedToThesaurus=function(R){return R.map(function(R){R.id,R.facet;var W=helpers_getBestLabel((0,J.Z)(R,er));if(W)return{text:W,href:(0,et.vi)(W)}}).filter(function(R){return!!R})},flatToLinked=function(R){if(R&&R.value&&R.label)return{label:R.label,type:"linked",items:Array.isArray(R.value)?R.value.map(function(R){return{href:R,text:R}}):[{href:R.value,text:R.value}]}},flatToUnlinked=function(R,W){if(R&&R.value&&R.label)return{label:R.label,type:"unlinked",items:Array.isArray(R.value)?R.value:[R.value],inline:W}},itemAttributes_detailedAttributes=function(R,W,G,er){var eo=flatToUnlinked(R.identifier),es=null!=W&&W.publisher?{label:"publisher",type:"publisher",items:connectedToLinkedToThesaurus(W.publisher),via:W.provider&&connectedToLinkedToThesaurus(null==W?void 0:W.provider)}:void 0;return eo&&es&&(eo.label="".concat(eo.label," van ").concat(es.items[0].text)),{organization:es,place:null!=W&&W.place?{label:"place",type:"places",items:W.place.map(function(R){R.id,R.facet;var W=helpers_getBestLabel((0,J.Z)(R,en));if(W)return{text:W,href:(0,et.pR)(W)}}).filter(function(R){return!!R}),province:W.provinceLinks}:void 0,subjects:null!=W&&W.subject?{label:"subject",type:"pills",items:connectedToLinkedToThesaurus(W.subject)}:void 0,collection:flatToUnlinked(R.collection),sourceType:flatToUnlinked(R.type),rights:null!=W&&W.rights?{label:"rights",type:"linked",items:W.rights.map(function(R){var W=R.id,G=helpers_getBestLabel((R.facet,(0,J.Z)(R,ei)));if(G)return{text:G,href:W}}).filter(function(R){return!!R})}:void 0,identifier:eo,source:flatToLinked(R.source),disambiguatingDescription:flatToUnlinked(R.disambiguatingDescription),directLinkToImage:G?void 0:flatToLinked(R.thumbnailUrl||R.thumbnail),directLinkToVideo:flatToLinked(R.contentUrl),creator:flatToUnlinked(R.creator),extraSubjects:flatToUnlinked(R.subject,!0)}}},91709:function(R,W,G){"use strict";G.d(W,{H:function(){return flatAttributes}});var J=G(97324),flatAttributes=function(R){return(0,J.i)(R)}},16666:function(R,W,G){"use strict";G.d(W,{k:function(){return itemAttributes}});var J=G(4730),et=G(2756),er=G(97220),en=G(91709),ei=G(70716),eo=G(55489),es=G(75441),ec=G(29229),el=["type","subject","publisher","newspaper","page","series","place","archive","broader","province","rights","provider"],itemAttributes=function(R){var W,G=R.type,eu=R.subject,ed=R.publisher,ep=R.newspaper,ef=R.page,eh=R.series,eg=R.place,em=R.archive,ey=R.broader,ev=(R.province,R.rights),eb=R.provider,e_=(0,J.Z)(R,el),ex=(0,en.H)(e_),ew=(0,et.N)({type:G,subject:eu,publisher:ed,newspaper:ep,page:ef,series:eh,place:eg,archive:em,broader:ey,rights:ev,provider:eb},e_),eS={thumbnail:(0,eo.Wl)(e_,ef),location:(0,ei.N)(e_,eg),dateObj:(0,er.J)(e_),personDate:(0,es.p)(e_),relatedPersons:[],shortDescription:ex.description&&ex.description.value&&Array.isArray(ex.description.value)?ex.description.value[0]:null===(W=ex.description)||void 0===W?void 0:W.value};return{detailed:(0,ec.Z)(ex,ew,void 0,eS),flat:ex,connected:ew,enriched:eS}}},97220:function(R,W,G){"use strict";G.d(W,{J:function(){return retrieveDateAsObject}});var J=G(59499),et=G(48148),er=G(72459),en=G(27484),ei=G.n(en);G(99182);var eo=G(56176),es=G.n(eo);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}ei().extend(es());var retrieveDateAsObject=function(R){if(R){var W={};if(R["http://schema.org/endDate"]){var G=(0,er.i)(R["http://schema.org/endDate"]);W="number"==typeof G?_objectSpread(_objectSpread({},W),{},{asInteger:G,asString:"".concat(G),endDate:"".concat(G)}):_objectSpread(_objectSpread({},W),{},{date:(0,et.VY)(G),endDate:(0,et.VY)(G)})}if(R["http://schema.org/startDate"]){var J=(0,er.i)(R["http://schema.org/startDate"]);W="number"==typeof J?_objectSpread(_objectSpread({},W),{},{asInteger:J,asString:"".concat(J),startDate:"".concat(J)}):_objectSpread(_objectSpread({},W),{},{date:(0,et.VY)(J),startDate:(0,et.VY)(J)})}if(R["http://purl.org/dc/elements/1.1/date"]){var en=(0,er.i)(R["http://purl.org/dc/elements/1.1/date"]);W="number"==typeof en?_objectSpread(_objectSpread({},W),{},{asInteger:en,asString:"".concat(en),date:(0,et.VY)("".concat(en))}):_objectSpread(_objectSpread({},W),{},{date:(0,et.VY)(en)})}if(R["http://schema.org/temporal"]){var eo=(0,er.i)(R["http://schema.org/temporal"]);W=_objectSpread(_objectSpread({},W),{},{asString:"".concat(eo),date:(0,et.VY)(eo)})}if(!W.date){var es="string"==typeof W.startDate?(0,et.VY)(W.startDate):W.startDate,ec="string"==typeof W.endDate?(0,et.VY)(W.endDate):W.endDate;W.date=es||ec}if(W.startDate||(W.startDate=W.date||W.endDate),W.asString=W.asString||W&&W.date&&ei()(W.date).locale("nl").format("LL"),W.startDate&&W.endDate&&"string"==typeof W.startDate&&"string"==typeof W.endDate&&!ei()(W.startDate).isSame(W.endDate)?W.rangeAsString="".concat(W.startDate," - ").concat(W.endDate):"object"!=typeof W.startDate||"object"!=typeof W.endDate||ei()(W.startDate).isSame(W.endDate)||(W.rangeAsString="".concat(ei()(W.startDate).locale("nl").format("LL")," - ").concat(ei()(W.endDate).locale("nl").format("LL"))),W.startDate||W.endDate||W.date)return W}}},70716:function(R,W,G){"use strict";G.d(W,{N:function(){return retrieveLocationAsObject}});var J=G(17508),retrieveLocationAsObject=function(R,W){if(R.location&&Array.isArray(R.location))return(0,J.ZP)(R.location[0]);var G=null;if(R&&R["http://schema.org/geo"]&&(G=R["http://schema.org/geo"]),W){if(!G){var et=W.find(function(R){return R["http://schema.org/geo"]});et&&(G=et["http://schema.org/geo"])}if(!G){var er=W.find(function(R){return R["http://schema.org/longitude"]&&R["http://schema.org/latitude"]});er&&(G=er)}if(!G){var en=W.find(function(R){return R["http://www.w3.org/2003/01/geo/wgs84_pos#lat"]&&R["http://www.w3.org/2003/01/geo/wgs84_pos#long"]});if(en)return{longitude:en["http://www.w3.org/2003/01/geo/wgs84_pos#long"],latitude:en["http://www.w3.org/2003/01/geo/wgs84_pos#lat"]}}}if(G)return{longitude:G["http://schema.org/longitude"],latitude:G["http://schema.org/latitude"]}}},67025:function(R,W,G){"use strict";G.d(W,{r:function(){return thesaurusObject}});var J=G(59499),et=G(82212);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var thesaurusObject=function(R,W){var G=R["@id"],er=R["http://www.w3.org/2004/02/skos/core#prefLabel"];return R["http://www.w3.org/2004/02/skos/core#inScheme"],function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:G,facet:W},(0,et.LO)("http://www.w3.org/2000/01/rdf-schema#prefLabel",er))}},55489:function(R,W,G){"use strict";G.d(W,{IA:function(){return createIIIFUrl},Wl:function(){return retrieveThumbnailAsObject},kA:function(){return generateSourcemapsFromIIIF},tg:function(){return imageField}});var J=G(59499),et=G(16835),er=G(82842),en=G(82212);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var imageField=function(R,W,G,J){return{src:R,alt:W||"",placeholder:G?G[100]:void 0,fallbackSrc:J,srcset:G?Object.entries(G).reduce(function(R,W){var G=(0,et.Z)(W,2),J=G[0],er=G[1];return"".concat(R).concat(R&&", ").concat(er," ").concat(J,"w")},""):void 0}},createIIIFUrl=function(R,W,G){var J="full";if(G){var er=G.split(","),en=(0,et.Z)(er,4),ei=en[0],eo=en[1],es=en[2],ec=en[3];J="pct:".concat(es,",").concat(ec,",").concat(ei,",").concat(eo)}return"https://data.spinque.com/iiif/2/".concat(encodeURIComponent(R),"/").concat(J,"/").concat(W?"!".concat(W,",").concat(W):"full","/0/default.jpg")},generateSourcemapsFromIIIF=function(R,W){return er.Q.default.reduce(function(G,et){return _objectSpread(_objectSpread({},G),{},(0,J.Z)({},et,createIIIFUrl(R,et,W)))},{})},retrieveThumbnailAsObject=function(R,W){var G=R?R["http://schema.org/thumbnail"]:null;if(G||(G=W?W[0]["http://schema.org/thumbnail"]:null),!G&&R["http://schema.org/page"]&&(G=Array.isArray(R["http://schema.org/page"])?R["http://schema.org/page"][0]["http://schema.org/thumbnail"]:R["http://schema.org/page"]["http://schema.org/thumbnail"]),G||(G=R["http://schema.org/thumbnailUrl"]),G||(G=R["https://data.niod.nl/thesaurus_wo2/ImagesWW2/imageURL"]),G){Array.isArray(G)&&G.length>0?G=G[0]:"object"==typeof G&&(G=(0,en.y)(G));var J=generateSourcemapsFromIIIF(G);return imageField(createIIIFUrl(G),R["http://schema.org/caption"]||"",J,G)}}},75441:function(R,W,G){"use strict";G.d(W,{p:function(){return personDateObject}});var J=G(59499),et=G(48148),er=G(72459),en=G(26998),ei=G(27484),eo=G.n(ei);G(99182);var es=G(56176),ec=G.n(es);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}eo().extend(ec());var personDateObject=function(R){if(R){var W={},G=(0,en.I)(R.birthEvent),J=(0,en.I)(R.deathEvent);if(G.date||G.dateAsString)(W=_objectSpread(_objectSpread({},W),{},{birthDate:(0,et.VY)(G.date||G.dateAsString)})).birthDateAsString=G.dateAsString;else if(R["http://schema.org/birthDate"]){var ei=(0,er.i)(R["http://schema.org/birthDate"]);(W=_objectSpread(_objectSpread({},W),{},{birthDate:(0,et.VY)(ei)})).birthDateAsString=eo()(W.birthDate).locale("nl").format("DD-MM-YYYY")}if(J.date||J.dateAsString)(W=_objectSpread(_objectSpread({},W),{},{deathDate:(0,et.VY)(J.date||J.dateAsString)})).deathDateAsString=J.dateAsString;else if(R["http://schema.org/deathDate"]){var es=(0,er.i)(R["http://schema.org/deathDate"]);(W=_objectSpread(_objectSpread({},W),{},{deathDate:(0,et.VY)(es)})).deathDateAsString=eo()(W.deathDate).locale("nl").format("DD-MM-YYYY")}return W&&W.birthDate&&W.deathDate?(W.lifeYears="".concat(eo()(W.birthDate).locale("nl").format("YYYY"),"-").concat(eo()(W.deathDate).locale("nl").format("YYYY")),W.rangeAsString="".concat(eo()(W.birthDate).locale("nl").format("LL"),"-").concat(eo()(W.deathDate).locale("nl").format("LL"))):W&&W.birthDate&&(W.lifeYears="".concat(eo()(W.birthDate).locale("nl").format("YYYY"),"-"),W.rangeAsString="".concat(eo()(W.birthDate).locale("nl").format("LL"),"-")),W}}},54586:function(R,W,G){"use strict";G.d(W,{c:function(){return getBestTitle},W:function(){return itemTransform}});var J=G(59499),et=G(25244),er=G(16666),en=G(74884),ei=G(87534),eo=G(91709),es=G(24672),getLocationName=function(R){if(R){var W=(0,eo.H)(R.attributes);return W.prefLabel?W.prefLabel.value:void 0}},sourceMarker=function(R,W){var G,J;return{title:(0,es.Z)(null===(G=R.flat.title)||void 0===G?void 0:G.value),thumbnail:R.enriched.thumbnail,locationName:getLocationName(W)||(null===(J=R.flat.spatial)||void 0===J?void 0:J.value)}},coverMarker=function(R,W,G){var J;return{title:"".concat(G," bronnen"),thumbnail:R.enriched.thumbnail,spatialId:W.id,locationName:getLocationName(W)||(null===(J=R.flat.spatial)||void 0===J?void 0:J.value),count:G}},ec=G(72459),el=G(83203);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var getBestTitle=function(R,W,G){return R?(0,ec.i)(R.value):W?(0,ec.i)(W.value):G?(0,ec.i)(G.value):""},itemTransform=function(R){var W,G,J=R.rank,eo=R.probability,es=R.tuple,ec=void 0;if(es.length&&(ec=es[0]),!ec||!ec.attributes)return null;var eu=ec,ed=eu.id,ep=eu.class,ef=eu.attributes,eh=null;try{var eg,em,ey,ev,eb=(0,er.k)(ef),e_=(0,el.Z)(getBestTitle(eb.flat.title,eb.flat.prefLabel,eb.flat.name));eh=_objectSpread({id:ed,title:e_,slug:encodeURIComponent(ed),sourceUrl:(0,ei.be)(ed,ep),themeUrl:null!==(eg=eb.flat.prefLabel)&&void 0!==eg&&eg.value?(0,ei.vi)(null===(em=eb.flat.prefLabel)||void 0===em?void 0:em.value):(0,ei.vi)((null===(ey=eb.flat.name)||void 0===ey?void 0:ey.value)||e_),personUrl:(0,ei.qQ)(null===(ev=eb.flat.oorlogslevensIdentifier)||void 0===ev?void 0:ev.value,ed),rank:J,probability:eo,primaryClass:ep.length>0?(0,en.Z)((0,et.Z)(ep[0])):void 0,classes:ep.map(function(R){return{schema:R,value:(0,et.Z)(R)}})},eb)}catch(R){}if(eh)try{eh=_objectSpread(_objectSpread({},eh),{},{marker:(W=eh,G=void 0,{id:W.id,coordinates:W.enriched.location,type:G&&eo>1?"cover":"direct",marker:G&&eo>1?coverMarker(W,G,eo):sourceMarker(W,G)})})}catch(R){console.log("Something went wrong with creating marker for item:",R)}return eh}},90367:function(R,W,G){"use strict";G.d(W,{B:function(){return interfaceAnnouncementOnPersonTimeline}});var J=G(59499),et=G(27812),er=G(40111),en=G(9359),ei=G(31790),eo=G(34586),es=G(11626),ec=G(93972),el=G(54064);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var roleStackBuilder=function(R,W,G){switch(R){case ei.B.uitvaardiger:return"".concat(W," heeft ").concat(G," uitgevaardigd");case ei.B.genoemde:return"".concat(W," is in ").concat(G," genoemd");case ei.B.slachtoffer:return"".concat(W," is slachtoffer geworden van ").concat(G)}},interfaceAnnouncementOnPersonTimeline=function(R,W){var G=[],J={},en=R.merged.attributes;if(en){en.image&&(J.singleFootage=en.image);var ei=[{title:en.title,url:null===(eu=en.source)||void 0===eu?void 0:eu.externalUrl,publisher:null!==(ed=en.source)&&void 0!==ed&&null!==(ep=ed.detailed)&&void 0!==ep&&null!==(ef=ep.organization)&&void 0!==ef&&ef.items?{url:null===(eh=en.source)||void 0===eh?void 0:null===(eg=eh.detailed)||void 0===eg?void 0:eg.organization.items[0].href,name:null===(em=en.source)||void 0===em?void 0:null===(ey=em.detailed)||void 0===ey?void 0:ey.organization.items[0].text}:void 0,thumbnail:en.image}];if(G=[{label:en.title,description:en.description}],en.persons){var eu,ed,ep,ef,eh,eg,em,ey,ev,eb,e_,ex=[en.persons.highlighted];en.persons.rest&&(ex=[].concat((0,et.Z)(ex),(0,et.Z)(en.persons.rest)));var ew=null===(e_=ex.find(function(R){return(null==R?void 0:R.id)===W.id}))||void 0===e_?void 0:e_.role;ew&&W.name&&(G=[{label:roleStackBuilder(ew,W.name,en.title),description:en.description}])}var eS=void 0;if(R.subAnnouncements){if(R.subAnnouncements.length>1){var eT=R.subAnnouncements.slice(0,el.f),eO=void 0;R.subAnnouncements.length>el.f&&(eO={text:eo.Z.sidepanel.moreButton(R.subAnnouncements.length),href:"/bekendmaking/alle-bekendmakingen?person=".concat(encodeURIComponent(W.id))});var eP={type:er.a.relatedAnnouncements,presetAnnouncements:eT,title:es.Z.moreAnnouncements.title(W.name),id:R.merged.id,more:eO},eC=R.subAnnouncements.slice(1,5),ek=R.subAnnouncements.length-4;eS={title:es.Z.moreAnnouncements.title(W.name),id:R.merged.id,plus:_objectSpread(_objectSpread({},eP),{},{text:es.Z.moreAnnouncements.plusButton}),announcements:eC,moreCount:ek>0?ek:0}}else G&&G.length>0&&(G[0]=_objectSpread(_objectSpread({},G[0]),{},{plus:{id:"plus-".concat(en.id),text:es.Z.moreAnnouncements.plusButtonSingular,sidepanelContent:{type:er.a.announcement,id:en.id}}}))}var eE=void 0;return en.location&&(eE={image:(0,ec.Z)([en.location]),type:"mapbox"}),en.place&&(J.locationLabel=en.place),{id:en.id,type:"announcement",context:J,backgroundImage:eE,dateLabel:(null===(ev=en.date)||void 0===ev?void 0:ev.asString)||(null===(eb=en.date)||void 0===eb?void 0:eb.rangeAsString)||"Onbekend",textual:G,sources:{media:ei,events:[]},relatedAnnouncements:eS}}};W.Z=function(R){var W,G,J,et,er,ei,eo,es,ec,el,eu,ed=[],ep={},ef=(0,en.ZP)(R);if(ef){ef.image&&(ep.singleFootage=ef.image);var eh=[{title:ef.title,url:null===(W=ef.source)||void 0===W?void 0:W.externalUrl,publisher:null!==(G=ef.source)&&void 0!==G&&null!==(J=G.detailed)&&void 0!==J&&null!==(et=J.organization)&&void 0!==et&&et.items?{url:null===(er=ef.source)||void 0===er?void 0:null===(ei=er.detailed)||void 0===ei?void 0:ei.organization.items[0].href,name:null===(eo=ef.source)||void 0===eo?void 0:null===(es=eo.detailed)||void 0===es?void 0:es.organization.items[0].text}:void 0,thumbnail:ef.image}];return ed=[{label:ef.title,description:ef.description}],{id:ef.id,dataClass:R.dataClass,type:"announcement",plainBg:!0,context:ep,backgroundImage:eu,dateLabel:(null===(ec=ef.date)||void 0===ec?void 0:ec.asString)||(null===(el=ef.date)||void 0===el?void 0:el.rangeAsString)||"Onbekend",textual:ed,sources:{media:eh,events:[]}}}}},9078:function(R,W,G){"use strict";var J=G(93972);W.Z=function(R,W){if(W){var G,et,er,en,ei,eo,es,ec,el=null!==(G=W.from)&&void 0!==G&&null!==(et=G.coordinates)&&void 0!==et&&et.longitude&&null!==(er=W.from)&&void 0!==er&&null!==(en=er.coordinates)&&void 0!==en&&en.longitude?W.from.coordinates:void 0,eu=null!==(ei=W.to)&&void 0!==ei&&null!==(eo=ei.coordinates)&&void 0!==eo&&eo.longitude&&null!==(es=W.to)&&void 0!==es&&null!==(ec=es.coordinates)&&void 0!==ec&&ec.longitude?W.to.coordinates:void 0;if(el&&eu)return{image:(0,J.Z)([el,eu]),type:"mapbox"};if(eu)return{image:(0,J.Z)([eu]),type:"mapbox"};if(el)return{image:(0,J.Z)([el]),type:"mapbox"}}else if(R){if(R.thumbnail)return{image:R.thumbnail,type:"locationThumbnail"};if(R.coordinates&&R.coordinates.longitude&&R.coordinates.latitude)return{image:(0,J.Z)([R.coordinates]),type:"mapbox"}}}},37694:function(R,W){"use strict";W.Z=function(R){var W=R["http://schema.org/geo"]||R.geo;if(W)return{latitude:W.lat,longitude:W.lng}}},26998:function(R,W,G){"use strict";G.d(W,{I:function(){return getBestDateAndPlace}});var J=G(63496),et=G(48148),er=G(27484),en=G.n(er),ei=G(11626),getBestDateAndPlace=function(R,W,G){if(R){var er,ei,eo=R.value||R,es=eo.map(function(R){return R["http://schema.org/date"]}),ec=eo.map(function(R){return R["http://schema.org/location"]});er=(0,J.Z)(es),ei=(0,J.Z)(ec)}else W&&(ei=(0,J.Z)(W.value)),G&&(er=(0,J.Z)(G.value));var el=er?(0,et.VY)(er):void 0;return{date:el,dateAsString:el&&en()(el).locale("nl").format("LL"),place:ei}};W.Z=function(R){var W,G=R.birthDate,J=R.deathDate,et=R.birthEvent,er=R.deathEvent,eo=R.birthPlace,es=R.deathPlace,ec=getBestDateAndPlace(et,eo,G),el=getBestDateAndPlace(er,es,J);null!=ec&&ec.dateAsString&&null!=el&&el.dateAsString&&el.date&&ec.date&&!en()(ec.date).isSame(el.date)?W="".concat(ec.dateAsString," - ").concat(el.dateAsString):ec.dateAsString?W=ec.dateAsString:el.dateAsString&&(W=el.dateAsString);var eu="".concat(ec.place?ec.place:ei.Z.notFound.location,", ").concat(ec.dateAsString||ei.Z.notFound.date),ed="".concat(el.place?el.place:ei.Z.notFound.location,", ").concat(el.dateAsString||ei.Z.notFound.date),ep="".concat(ec.place?ec.place:ei.Z.notFound.location,", ").concat(ec.date?en()(ec.date).locale("nl").format("DD-MM-YYYY"):ei.Z.notFound.date),ef="".concat(el.place?el.place:ei.Z.notFound.location,", ").concat(el.date?en()(el.date).locale("nl").format("DD-MM-YYYY"):ei.Z.notFound.date),eh="".concat(eu," - ").concat(ed);return{birth:ec,death:el,datesString:W,datesAndPlacesStrings:{birth:eu,death:ed,birthAndDeath:eh,birthNumbers:ep,deathNumbers:ef}}}},14981:function(R,W){"use strict";W.Z=function(R,W){if(0!==R.length){for(var G,J,et,er,en=R[0],ei=0;ei<R.length;ei+=1)(!(null!==(J=en.coordinates)&&void 0!==J&&J.longitude)||!en.coordinates.latitude)&&null!==(et=R[ei].coordinates)&&void 0!==et&&et.latitude&&null!==(er=R[ei].coordinates)&&void 0!==er&&er.longitude?en=R[ei]:Object.keys(R[ei]).length>Object.keys(en).length&&(en=R[ei]);if(null!==(G=en.coordinates)&&void 0!==G&&G.longitude&&en.coordinates.latitude||!W)return en}}},63496:function(R,W,G){"use strict";var J=G(27812),et=G(59499);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,et.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}W.Z=function(R){if(!Array.isArray(R))return R;if(1===R.length)return R[0];var W=R.reduce(function(R,W){return W?R[W]?_objectSpread(_objectSpread({},R),{},(0,et.Z)({},W,R[W]+1)):_objectSpread(_objectSpread({},R),{},(0,et.Z)({},W,1)):R},{}),G=Math.max.apply(Math,(0,J.Z)(Object.values(W))),er=Object.keys(W).filter(function(R){return W[R]===G}).map(function(R){return R});return 1===er.length?er[0]:er.reduce(function(R,W){return W.length>R.length?W:R},"")}},91224:function(R,W,G){"use strict";G.d(W,{$W:function(){return startEndDatesToString},D2:function(){return datesToRenderDate},iQ:function(){return dateToRenderDate}});var J=G(59499),et=G(27484),er=G.n(et),en=G(11626);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var dateToRenderDate=function(R){if(R&&(!Array.isArray(R)||0!==R.length)){var W=new Date(Array.isArray(R)?R[0]:R);return{date:W,dateAsString:er()(W).locale("nl").format("LL")}}},startEndDatesToString=function(R,W,G){var J=void 0,et=!1;return R&&W?J=R.dateAsString===W.dateAsString?R.dateAsString:"".concat(R.dateAsString," - ").concat(W.dateAsString):W?(J="".concat(en.Z.notFound.date," - ").concat(W.dateAsString),et=!0):R?(J="".concat(R.dateAsString," - ").concat(en.Z.notFound.date),et=!0):G?(J=G.dateAsString,et=!1):(J=en.Z.notFound.date,et=!0),{rangeString:J,unprecise:et}},datesToRenderDate=function(R,W,G){var et=dateToRenderDate(R),er=dateToRenderDate(W),en=dateToRenderDate(G);return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({date:et,start:er,end:en},startEndDatesToString(er,en,et))}},37507:function(R,W,G){"use strict";var J=G(59499),et=G(71001),er=G(91224),en=G(37694);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}W.Z=function(R){return Array.isArray(R)?R.map(function(W){var G={};if(W.exactMatch){var ei=(0,en.Z)(W.exactMatch);ei&&(G={id:W["@id"]||R[0]["@id"],label:(0,et.Z)(W.exactMatch["http://www.w3.org/2004/02/skos/core#prefLabel"])||"",coordinates:ei})}return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:W["@id"]||R[0]["@id"],source:(0,et.Z)(W["http://purl.org/dc/terms/source"]),hiddenLabel:(0,et.Z)(W["http://www.w3.org/2004/02/skos/core#hiddenLabel"]),prefLabel:(0,et.Z)(W["http://www.w3.org/2004/02/skos/core#prefLabel"]),scopeNote:(0,et.Z)(W["http://www.w3.org/2004/02/skos/core#scopeNote"]),thubmnail:W["https://data.niod.nl/thesaurus_wo2/ImagesWW2/imageURL"]?{src:W["https://data.niod.nl/thesaurus_wo2/ImagesWW2/imageURL"],alt:(0,et.Z)(W["http://www.w3.org/2004/02/skos/core#altLabel"])||""}:void 0,sourceImage:W["https://data.niod.nl/thesaurus_wo2/ImagesWW2/sourceImage"],created:W["http://purl.org/dc/terms/created"],modified:W["http://purl.org/dc/terms/modified"],endDate:(0,er.iQ)(W["http://schema.org/startDate"]),startDate:(0,er.iQ)(W["http://schema.org/startDate"]),coordinates:W["http://schema.org/geo"]?{latitude:W["http://schema.org/geo"].lat,longitude:W["http://schema.org/geo"].lng}:{latitude:W["http://www.w3.org/2003/01/geo/wgs84_pos#lat"],longitude:W["http://www.w3.org/2003/01/geo/wgs84_pos#long"]}},G)}):[]}},34507:function(R,W,G){"use strict";G.d(W,{W:function(){return et},Z:function(){return life_lifeEvents}});var J,et,er=G(59499),en=G(27484),ei=G.n(en);G(99182);var eo=G(56176),es=G.n(eo),ec=G(61861),el=G(37507),eu=G(91224),ed=G(11626),ep=G(97674),ef=G(87534),eh=G(11790),eg=G(38863);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var life_lifeSuperEvent=function(R){try{var W,G,J,et=(0,ep.hl)(R),er=(null===(W=et.flat.prefLabel)||void 0===W?void 0:W.value)||(null===(G=et.flat.name)||void 0===G?void 0:G.value)||(null===(J=et.flat.title)||void 0===J?void 0:J.value);if(!er)return;var en=(0,eh.Z)(R["@type"]),ei=(0,eg.Z)(R["@type"]),eo=(0,ef.vi)(er);return en&&(eo=(0,ef.tq)(er)),ei&&(eo=(0,ef.bs)(er)),_objectSpread(_objectSpread({},et),{},{id:R["@id"]||et.flat.prefLabel,slug:encodeURIComponent(er),href:eo,isCrash:en,isBombardment:ei})}catch(R){}},em=G(74884),MergeHelpers_replaceVarsInDescriptions=function(R,W,G,J,et,er){if(!R)return"";var en=Array.isArray(R)?R[0]:R;return(en=(en=(en=(en=en.replace("${date}",(0,em.Z)(W)||ed.Z.notFound.date)).replace("${startDate}",(0,em.Z)(G)||ed.Z.notFound.date)).replace("${endDate}",(0,em.Z)(J)||ed.Z.notFound.date)).replace("${fromLocation}",(0,em.Z)(er)||ed.Z.notFound.location)).replace("${toLocation}",(0,em.Z)(et)||ed.Z.notFound.location)},ey=G(55489);function lifeEventAttributes_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function lifeEventAttributes_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?lifeEventAttributes_ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):lifeEventAttributes_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}ei().extend(es());var eventBaseAttributes=function(R){var W=(0,eu.D2)(R["http://schema.org/date"],R["http://schema.org/startDate"],R["http://schema.org/endDate"]),G=void 0;return R["http://schema.org/image"]&&(G={thumbnail:(0,ey.tg)((0,ey.IA)(R["http://schema.org/image"]),"",(0,ey.kA)(R["http://schema.org/image"])),title:R["http://schema.org/caption"]||"",id:R["http://schema.org/image"],publisher:R["https://data.niod.nl/sourceImage"]?{url:R["https://data.niod.nl/sourceImage"],title:R["https://data.niod.nl/sourceImage"]}:void 0}),{name:R["http://schema.org/name"],date:(null==W?void 0:W.date)||(null==W?void 0:W.start)||(null==W?void 0:W.end),superEvent:R.superEvent&&R.superEvent.length>0?life_lifeSuperEvent(R.superEvent[0]):void 0,raw:R,directMedia:G}},singleEventAttributes=function(R){var W,G,J=eventBaseAttributes(R),et={label:MergeHelpers_replaceVarsInDescriptions(R["http://schema.org/alternateName"],null==J?void 0:null===(W=J.date)||void 0===W?void 0:W.dateAsString),description:MergeHelpers_replaceVarsInDescriptions(R["http://schema.org/description"],null==J?void 0:null===(G=J.date)||void 0===G?void 0:G.dateAsString)},er=(0,ec.Z)(R.source,et.description||et.label);return lifeEventAttributes_objectSpread(lifeEventAttributes_objectSpread({},J),{},{sources:er,locations:R.location&&(0,el.Z)(R.location),location:R["http://schema.org/location"],texts:et})},rangeEventAttributes=function(R){var W,G,J,et,er,en,ei=(0,eu.D2)(R["http://schema.org/date"],R["http://schema.org/startDate"],R["http://schema.org/endDate"]),eo={label:MergeHelpers_replaceVarsInDescriptions(R["http://schema.org/alternateName"],null==ei?void 0:null===(W=ei.date)||void 0===W?void 0:W.dateAsString,null==ei?void 0:null===(G=ei.start)||void 0===G?void 0:G.dateAsString,null==ei?void 0:null===(J=ei.end)||void 0===J?void 0:J.dateAsString),description:MergeHelpers_replaceVarsInDescriptions(R["http://schema.org/description"],null==ei?void 0:null===(et=ei.date)||void 0===et?void 0:et.dateAsString,null==ei?void 0:null===(er=ei.start)||void 0===er?void 0:er.dateAsString,null==ei?void 0:null===(en=ei.end)||void 0===en?void 0:en.dateAsString)},es=(0,ec.Z)(R.source,eo.description||eo.label);return lifeEventAttributes_objectSpread(lifeEventAttributes_objectSpread({},eventBaseAttributes(R)),{},{sources:es,dateRange:ei,location:R["http://schema.org/location"],locations:R.location&&(0,el.Z)(R.location),texts:eo})},rangeEventFromToAttributes=function(R){var W,G,J,et,er,en,ei,eo,es,ep=(0,eu.D2)(R["http://schema.org/date"],R["http://schema.org/startDate"],R["http://schema.org/endDate"]),ef=R.fromLocation?(0,el.Z)(R.fromLocation)[0]:void 0,eh=(null==ef?void 0:ef.prefLabel)||(null==ef?void 0:ef.altLabel)||R["http://schema.org/fromLocation"]||ed.Z.notFound.location,eg=R.toLocation?(0,el.Z)(R.toLocation)[0]:void 0,em=(null==eg?void 0:eg.prefLabel)||(null==eg?void 0:eg.altLabel)||R["http://schema.org/toLocation"]||ed.Z.notFound.location,ey=(0,ec.Z)(R.source,MergeHelpers_replaceVarsInDescriptions(R["http://schema.org/description"],null==ep?void 0:null===(W=ep.date)||void 0===W?void 0:W.dateAsString,null==ep?void 0:null===(G=ep.start)||void 0===G?void 0:G.dateAsString,null==ep?void 0:null===(J=ep.end)||void 0===J?void 0:J.dateAsString)),ev={label:MergeHelpers_replaceVarsInDescriptions(R["http://schema.org/alternateName"],null==ep?void 0:null===(et=ep.date)||void 0===et?void 0:et.dateAsString,null==ep?void 0:null===(er=ep.start)||void 0===er?void 0:er.dateAsString,null==ep?void 0:null===(en=ep.end)||void 0===en?void 0:en.dateAsString,eh,em),description:MergeHelpers_replaceVarsInDescriptions(R["http://schema.org/description"],null==ep?void 0:null===(ei=ep.date)||void 0===ei?void 0:ei.dateAsString,null==ep?void 0:null===(eo=ep.start)||void 0===eo?void 0:eo.dateAsString,null==ep?void 0:null===(es=ep.end)||void 0===es?void 0:es.dateAsString,eh,em)},eb={from:ef,to:eg,asString:"".concat(eh," - ").concat(em),unprecise:!eg||!ef};return lifeEventAttributes_objectSpread(lifeEventAttributes_objectSpread({},eventBaseAttributes(R)),{},{sources:ey,dateRange:ep,location:R["http://schema.org/location"],locations:eb,texts:ev})},mesoEventAttributes=function(R,W,G){var J=(0,ep.yg)(R,W,G);if(J){var et=J.dateObj&&J.dateObj.date&&J.dateObj.asString?{date:J.dateObj.date,dateAsString:J.dateObj.asString}:void 0;return{thesaurusItem:J,date:et}}},ev=G(27812),eb=G(63496),e_=G(14981),ex=G(9078);function bestValueFromDates_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function bestValueFromDates_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?bestValueFromDates_ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):bestValueFromDates_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var MergeHelpers_bestValueFromDates=function(R){if(1===R.length)return R[0];var W=R.reduce(function(R,W){return W?R[W.dateAsString]?bestValueFromDates_objectSpread(bestValueFromDates_objectSpread({},R),{},(0,er.Z)({},W.dateAsString,R[W.dateAsString]+1)):bestValueFromDates_objectSpread(bestValueFromDates_objectSpread({},R),{},(0,er.Z)({},W.dateAsString,1)):R},{}),G=Math.max.apply(Math,(0,ev.Z)(Object.values(W))),J=Object.keys(W).filter(function(R){return W[R]===G});return R.find(function(R){return R.dateAsString===J[0]})||R[0]},MergeHelpers_mainImagesFromDirectMedia=function(R){return R.map(function(R){return R.directMedia}).reduce(function(R,W){return!W||R.some(function(R){var G,J;return(null===(G=R.thumbnail)||void 0===G?void 0:G.fallbackSrc)===(null==W?void 0:null===(J=W.thumbnail)||void 0===J?void 0:J.fallbackSrc)})?R:[].concat((0,ev.Z)(R),[W])},[])},mergedSingleEventAttributes=function(R){var W=R.map(function(R){var W=R.locations;return W?(0,e_.Z)(W):void 0}).filter(function(R){return void 0!==R}),G=MergeHelpers_bestValueFromDates(R.map(function(R){return R.date}).filter(function(R){return!!R}));return{name:(0,eb.Z)(R.map(function(R){return R.name})),texts:{label:(0,eb.Z)(R.map(function(R){return R.texts.label})),description:(0,eb.Z)(R.map(function(R){return R.texts.description}))},sources:R.map(function(R){return R.sources}).filter(function(R){return void 0!==R&&R.length>0}).reduce(function(R,W){return W?[].concat((0,ev.Z)(R),(0,ev.Z)(W)):R},[]),date:G,location:(0,eb.Z)(R.map(function(R){return R.location})),locations:(0,e_.Z)(W)}},MergeHelpers_mergeSingleEvent=function(R){var W,G,J,et=R.map(function(R){return R.attributes}),er=mergedSingleEventAttributes(et),en=et.map(function(R){return R.superEvent}).filter(function(R){return void 0!==R});return{id:R[0].id,dataClass:R[0].dataClass,type:R[0].type,attributes:er,cluster:R[0].cluster,dateLabel:(null===(W=er.date)||void 0===W?void 0:W.dateAsString)||ed.Z.notFound.date,locationLabel:er.location||(null===(G=er.locations)||void 0===G?void 0:G.prefLabel)||(null===(J=er.locations)||void 0===J?void 0:J.altLabel)||void 0,backgroundImage:(0,ex.Z)(er.locations),superEvent:en.length>0?en[0]:void 0,mainImages:MergeHelpers_mainImagesFromDirectMedia(et)}};function bestDateRange_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var MergeHelpers_bestDateRange=function(R){var W=R.map(function(R){return R.start}).filter(function(R){return void 0!==R}),G=R.map(function(R){return R.end}).filter(function(R){return void 0!==R}),J=R.map(function(R){return R.date}).filter(function(R){return void 0!==R}),et=MergeHelpers_bestValueFromDates(W),en=MergeHelpers_bestValueFromDates(G),ei=MergeHelpers_bestValueFromDates(J);return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?bestDateRange_ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):bestDateRange_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({date:ei,start:et,end:en},(0,eu.$W)(et,en,ei))},mergeRangeEventAttributes=function(R){var W=R.map(function(R){var W=R.locations;return W?(0,e_.Z)(W):void 0}).filter(function(R){return void 0!==R}),G=MergeHelpers_bestValueFromDates(R.map(function(R){return R.date}).filter(function(R){return!!R})),J=MergeHelpers_bestDateRange(R.map(function(R){return R.dateRange}).filter(function(R){return void 0!==R}));return{name:(0,eb.Z)(R.map(function(R){return R.name})),texts:{label:(0,eb.Z)(R.map(function(R){return R.texts.label})),description:(0,eb.Z)(R.map(function(R){return R.texts.description}))},sources:R.map(function(R){return R.sources}).filter(function(R){return void 0!==R&&R.length>0}).reduce(function(R,W){return W?[].concat((0,ev.Z)(R),(0,ev.Z)(W)):R},[]),date:G,dateRange:J,location:(0,eb.Z)(R.map(function(R){return R.location})),locations:(0,e_.Z)(W)}},MergeHelpers_mergeRangeEvent=function(R){var W,G,J,et,er=R.map(function(R){return R.attributes}),en=mergeRangeEventAttributes(er),ei=er.map(function(R){return R.superEvent}).filter(function(R){return void 0!==R});return{id:R[0].id,dataClass:R[0].dataClass,type:R[0].type,attributes:en,cluster:R[0].cluster,dateLabel:(null===(W=en.date)||void 0===W?void 0:W.dateAsString)||(null===(G=en.dateRange)||void 0===G?void 0:G.rangeString)||ed.Z.notFound.date,locationLabel:en.location||(null===(J=en.locations)||void 0===J?void 0:J.prefLabel)||(null===(et=en.locations)||void 0===et?void 0:et.altLabel)||void 0,backgroundImage:(0,ex.Z)(en.locations),superEvent:ei.length>0?ei[0]:void 0,mainImages:MergeHelpers_mainImagesFromDirectMedia(er)}},MergeHelpers_bestValueFromFromToLocations=function(R){var W=R.map(function(R){return R.from}).filter(function(R){return void 0!==R}),G=R.map(function(R){return R.to}).filter(function(R){return void 0!==R}),J=(0,e_.Z)(W),et=(0,e_.Z)(G),er=(null==J?void 0:J.prefLabel)||(null==J?void 0:J.altLabel)||ed.Z.notFound.location,en=(null==et?void 0:et.prefLabel)||(null==et?void 0:et.altLabel)||ed.Z.notFound.location;return{from:J,to:et,asString:"".concat(er," - ").concat(en),unprecise:!J||!et}},mergeFromToRangeEventAttributes=function(R){var W=MergeHelpers_bestValueFromDates(R.map(function(R){return R.date}).filter(function(R){return!!R})),G=MergeHelpers_bestDateRange(R.map(function(R){return R.dateRange}).filter(function(R){return void 0!==R})),J=MergeHelpers_bestValueFromFromToLocations(R.map(function(R){return R.locations}).filter(function(R){return void 0!==R}));return{name:(0,eb.Z)(R.map(function(R){return R.name})),texts:{label:(0,eb.Z)(R.map(function(R){return R.texts.label})),description:(0,eb.Z)(R.map(function(R){return R.texts.description}))},sources:R.map(function(R){return R.sources}).filter(function(R){return void 0!==R&&R.length>0}).reduce(function(R,W){return W?[].concat((0,ev.Z)(R),(0,ev.Z)(W)):R},[]),date:W,dateRange:G,location:(0,eb.Z)(R.map(function(R){return R.location})),locations:J}},MergeHelpers_mergeFromToEvent=function(R){var W,G,J,et,er,en,ei,eo,es,ec,el=R.map(function(R){return R.attributes}),eu=mergeFromToRangeEventAttributes(el),ep=el.map(function(R){return R.superEvent}).filter(function(R){return void 0!==R});return{id:R[0].id,dataClass:R[0].dataClass,type:R[0].type,attributes:eu,cluster:R[0].cluster,dateLabel:(null===(W=eu.date)||void 0===W?void 0:W.dateAsString)||(null===(G=eu.dateRange)||void 0===G?void 0:G.rangeString)||ed.Z.notFound.date,locationLabel:eu.location||(null===(J=eu.locations)||void 0===J?void 0:null===(et=J.to)||void 0===et?void 0:et.prefLabel)||(null===(er=eu.locations)||void 0===er?void 0:null===(en=er.to)||void 0===en?void 0:en.altLabel)||(null===(ei=eu.locations)||void 0===ei?void 0:null===(eo=ei.from)||void 0===eo?void 0:eo.prefLabel)||(null===(es=eu.locations)||void 0===es?void 0:null===(ec=es.from)||void 0===ec?void 0:ec.altLabel)||void 0,backgroundImage:(0,ex.Z)(void 0,eu.locations),superEvent:ep.length>0?ep[0]:void 0,mainImages:MergeHelpers_mainImagesFromDirectMedia(el)}},life_getBestEvent=function(R){var W,G=null===(W=R.find(function(R){return void 0!==R}))||void 0===W?void 0:W.type;return"rangeEvent"===G?MergeHelpers_mergeRangeEvent(R):"rangeFromToEvent"===G?MergeHelpers_mergeFromToEvent(R):MergeHelpers_mergeSingleEvent(R)},life_addSubEventsToMesoEvent=function(R){var W=R.find(function(R){return R.attributes.thesaurusItem.mainItemOnLife}),G=R.filter(function(R){return!R.attributes.thesaurusItem.mainItemOnLife});return W?{merged:W,subEvents:G.length>0?G:void 0}:{merged:R[0]}},ew=G(8384),getBestMainAnnouncement=function(R){var W=R.filter(function(R){var W;return!!(null!==(W=R.attributes.date)&&void 0!==W&&W.date)}).sort(function(R,W){return(0,ew.J)(R.attributes.date).isAfter((0,ew.J)(W.attributes.date))?1:-1});return W.length>0&&W.find(function(R){return!!R.attributes.image})||R[0]},eS=G(87954);function splitMergeSortEventList_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function splitMergeSortEventList_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?splitMergeSortEventList_ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):splitMergeSortEventList_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var splitMergeSortEvents=function(R){var W=R.map(function(R){return R.cluster}),G=Array.from(new Set(W)).map(function(W){return R.filter(function(R){return(null==R?void 0:R.cluster)===W})}).map(function(R){var W,G,J,et=R.map(function(R){return null==R?void 0:R.id}).filter(function(R){return void 0!==R});if(R&&0!==R.length)return(null===(W=R[0])||void 0===W?void 0:W.type)==="mesoEvent"?splitMergeSortEventList_objectSpread(splitMergeSortEventList_objectSpread({},life_addSubEventsToMesoEvent(R)),{},{allEventIds:et}):(null===(G=R[0])||void 0===G?void 0:G.type)==="announcementEvent"?splitMergeSortEventList_objectSpread(splitMergeSortEventList_objectSpread({},{subAnnouncements:R.map(function(R){return R.attributes}),merged:getBestMainAnnouncement(R)}),{},{allEventIds:[]}):(null===(J=R[0])||void 0===J?void 0:J.type)==="tripEvent"?{merged:R[0],allEventIds:[]}:{merged:life_getBestEvent(R),cluster:R,allEventIds:et}}).filter(function(R){return void 0!==R}).reduce(function(R,W){return void 0!==W.merged.attributes.date||eS._$.some(function(R){return"singleEvent"===W.merged.type&&W.merged.dataClass===R})?splitMergeSortEventList_objectSpread(splitMergeSortEventList_objectSpread({},R),{},{items:[].concat((0,ev.Z)(R.items),[W])}):splitMergeSortEventList_objectSpread(splitMergeSortEventList_objectSpread({},R),{},{undatedItems:[].concat((0,ev.Z)(R.undatedItems),[W])})},{undatedItems:[],items:[]});return{items:G.items,undatedItems:G.undatedItems.filter(function(R){return"mesoEvent"!==R.merged.type}),allLifeEventIds:G.items.reduce(function(R,W){return[].concat((0,ev.Z)(R),(0,ev.Z)(W.allEventIds))},[])}},eT=G(9359),eO=G(75083);(J=et||(et={})).arrested="arrested",J.arrestedSecondary="arrestedSecondary",J.released="released",J.freed="freed",J.perpretated="perpretated",J.affected="affected",J.executed="executed",J.betrayed="betrayed",J.hasBetrayed="hasBetrayed",J.fought="fought",J.birth="birth",J.deathSecondary="deathSecondary",J.landed="landed",J.buried="buried",J.reburied="reburied",J.monumentPlaced="monumentPlaced",J.decorated="decorated",J.sentenced="sentenced",J.drafted="drafted",J.death="death",J.escaped="escaped",J.deathTertiary="deathTertiary",J.takenIn="takenIn",J.labourForced="labourForced",J.interned="interned",J.hiding="hiding",J.becameMember="becameMember",J.imprisoned="imprisoned",J.recruted="recruted",J.exempted="exempted",J.transported="transported",J.fled="fled",J.moved="moved",J.trip="trip",J.appointed="appointed",J.forcedMove="forcedMove",J.evacuated="evacuated",J.snatched="snatched",J.unknown="unknown";var life_lifeEvents=function(R){return R.items&&0!==R.items.length?splitMergeSortEvents(R.items.map(function(R){var W=R.tuple,G=R.probability,J=R.rank;try{var er=W.length>1?W[1]:W[0],en=W.length>1?W[0]:-1;if("number"==typeof er)return;switch("http://schema.org/Event"===er.class[0]?er.class[1]:er.class[0]){case"https://data.niod.nl/WO2_Thesaurus/events/6344":return{dataClass:et.arrested,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6345":return{dataClass:et.arrestedSecondary,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6346":return{dataClass:et.released,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6347":return{dataClass:et.freed,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/13790":return{dataClass:et.appointed,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6355":return{dataClass:et.perpretated,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6356":return{dataClass:et.affected,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6357":return{dataClass:et.executed,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6358":return{dataClass:et.betrayed,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/11177":return{dataClass:et.hasBetrayed,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6359":return{dataClass:et.fought,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6360":return{dataClass:et.birth,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6361":return{dataClass:et.deathSecondary,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6363":return{dataClass:et.landed,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6364":return{dataClass:et.buried,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/20598":return{dataClass:et.reburied,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/20599":return{dataClass:et.monumentPlaced,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6365":return{dataClass:et.decorated,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6563":return{dataClass:et.sentenced,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/8542":return{dataClass:et.drafted,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/8772":return{dataClass:et.death,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/8795":return{dataClass:et.escaped,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/8771":return{dataClass:et.deathTertiary,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/19486.html":return{dataClass:et.snatched,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/10956":return{dataClass:et.takenIn,id:er.id,attributes:rangeEventAttributes(er.attributes),type:"rangeEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/8514":return{dataClass:et.labourForced,id:er.id,attributes:rangeEventAttributes(er.attributes),type:"rangeEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6349":return{dataClass:et.interned,id:er.id,attributes:rangeEventAttributes(er.attributes),type:"rangeEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6351":return{dataClass:et.hiding,id:er.id,attributes:rangeEventAttributes(er.attributes),type:"rangeEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6352":return{dataClass:et.becameMember,id:er.id,attributes:rangeEventAttributes(er.attributes),type:"rangeEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6354":return{dataClass:et.imprisoned,id:er.id,attributes:rangeEventAttributes(er.attributes),type:"rangeEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6362":return{dataClass:et.recruted,id:er.id,attributes:rangeEventAttributes(er.attributes),type:"rangeEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6562":return{dataClass:et.exempted,id:er.id,attributes:rangeEventAttributes(er.attributes),type:"rangeEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/11174":return{dataClass:et.evacuated,id:er.id,attributes:rangeEventFromToAttributes(er.attributes),type:"rangeFromToEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/19198":return{dataClass:et.forcedMove,id:er.id,attributes:rangeEventFromToAttributes(er.attributes),type:"rangeFromToEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6348":return{dataClass:et.transported,id:er.id,attributes:rangeEventFromToAttributes(er.attributes),type:"rangeFromToEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/events/6353":return{dataClass:et.fled,id:er.id,attributes:rangeEventFromToAttributes(er.attributes),type:"rangeFromToEvent",cluster:en};case"https://data.niod.nl/WO2_Thesaurus/17064":if(er.class[1]&&"http://schema.org/Trip"===er.class[1])return{dataClass:et.trip,id:er.id,attributes:(0,eO.Z)(er.attributes),type:"tripEvent",cluster:en};return{dataClass:et.moved,id:er.id,attributes:rangeEventFromToAttributes(er.attributes),type:"rangeFromToEvent",cluster:en};case"http://www.w3.org/2004/02/skos/core#Concept":case"https://oorlogsbronnen.nl/event/Bombardement":return{id:er.id,attributes:mesoEventAttributes(er,J,G),dataClass:"mesoEvent",type:"mesoEvent",cluster:en};case"https://data.niod.nl/Bekendmaking":return{id:er.id,attributes:(0,eT.i7)(er,0,0),type:"announcementEvent",cluster:en};default:return{dataClass:et.unknown,id:er.id,attributes:singleEventAttributes(er.attributes),type:"singleEvent",cluster:en}}}catch(R){}}).filter(function(R){return!!R})):{items:[],undatedItems:[],allLifeEventIds:[]}}},48046:function(R,W,G){"use strict";G.d(W,{ll:function(){return personItemOnDetailPage},VH:function(){return personResultsToPersonItems},Av:function(){return personToPersonItemType}});var J=G(87534),et=G(97324),er=G(61861),en=G(63496),ei=G(11626),MergeHelpers_bestPersonName=function(R){var W,G,J,et,er,eo,es=void 0,ec=void 0,el=void 0;return null!==(W=R.preferredName)&&void 0!==W&&W.value?es=(0,en.Z)(null===(J=R.preferredName)||void 0===J?void 0:J.value):null!==(G=R.name)&&void 0!==G&&G.value&&(es=(0,en.Z)(null===(et=R.name)||void 0===et?void 0:et.value)),!es&&(R.givenName&&(ec=(0,en.Z)(null===(er=R.givenName)||void 0===er?void 0:er.value)),R.familyName&&(el=(0,en.Z)(null===(eo=R.familyName)||void 0===eo?void 0:eo.value)),ec&&el&&(es="".concat(ec," ").concat(el))),es||ei.Z.notFound.name},eo=G(26998),es=G(59499),ec=G(55489);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,es.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var createImage=function(R,W,G){var J=(0,ec.kA)(R["http://schema.org/thumbnailUrl"],G),et=(0,ec.IA)(R["http://schema.org/thumbnailUrl"],void 0,G),er=R["http://schema.org/caption"]||W||"";return(0,ec.tg)(et,er,J,R["http://schema.org/thumbnailUrl"])},MergeHelpers_bestPersonImages=function(R,W,G){if(!(null!=R&&R.imageObject)||0===R.imageObject.length){var J=R&&R["https://data.niod.nl/thesaurus_wo2/ImagesWW2/imageURL"]?R["https://data.niod.nl/thesaurus_wo2/ImagesWW2/imageURL"]:W;if(J){var et=(0,ec.kA)(J),er=(0,ec.IA)(J),en=G||"";return{thumbnail:{primary:(0,ec.tg)(er,en,et,J)}}}return{}}var ei=R.imageObject.sort(function(R,W){return R["http://schema.org/position"]&&W["http://schema.org/position"]?R["http://schema.org/position"]-W["http://schema.org/position"]:R["http://schema.org/position"]||W["http://schema.org/position"]?R["http://schema.org/position"]?-1:1:0}).map(function(R){return _objectSpread(_objectSpread({},createImage(R,G,R["https://data.niod.nl/imageCrop"])),{},{pos:R["http://schema.org/position"]})});return{thumbnail:{primary:ei[0],secondary:ei[1]},images:ei}};G(16666);var el=G(72459),MergeHelpers_bestPronoun=function(R,W){if(R.gender&&R.gender.value){if("Female"===R.gender.value)return"zij";if("Male"===R.gender.value)return"hij"}return W},eu=G(27812),ed=G(82212),ep=G(1679),personToPersonItemType=function(R,W,G){var en=null;try{var ei,es,ec,ep,ef,eh,eg=(0,et.i)(W),em=MergeHelpers_bestPersonName(eg),ey=MergeHelpers_bestPersonImages(W,(0,el.i)(null===(es=eg.image)||void 0===es?void 0:es.value),em),ev=ey.thumbnail,eb=ey.images,e_=void 0;null!==(ec=eg.description)&&void 0!==ec&&ec.value&&(e_=Array.isArray(eg.description.value)?eg.description.value:[eg.description.value]);var ex=void 0;null!==(ep=eg.jobTitle)&&void 0!==ep&&ep.value&&(ex=Array.isArray(eg.jobTitle.value)?eg.jobTitle.value[0]:eg.jobTitle.value),en={id:R,name:em,slug:encodeURIComponent(R),href:(0,J.qQ)(null===(ef=eg.oorlogslevensIdentifier)||void 0===ef?void 0:ef.value,R),suggestHref:(0,J.dC)(null===(eh=eg.oorlogslevensIdentifier)||void 0===eh?void 0:eh.value,R),dates:(0,eo.Z)(eg),pronoun:MergeHelpers_bestPronoun(eg,em),thumbnail:ev,images:eb,sources:eg.source&&(0,er.Z)(eg.source.value,""),subjects:(ei=eg.subject)&&ei.value&&"string"!=typeof ei.value&&0!==ei.value.length?ei.value.reduce(function(R,W){var G=(0,ed.y)(W["http://www.w3.org/2004/02/skos/core#prefLabel"]);return G?[].concat((0,eu.Z)(R),[{id:W["@id"],url:(0,J.vi)(G),title:G}]):R},[]):[],flat:eg,biography:e_,probability:G,jobTitle:ex}}catch(R){}return en},personItemOnDetailPage=function(R){R.rank,R.probability;var W=R.tuple,G=void 0;if(W.length&&(G=W[0]),!G||!G.attributes)return null;var J=G;return personToPersonItemType(J.id,J.attributes)},personResultsToPersonItems=function(R){return(0,ep.B_)(R,function(R,W){return personToPersonItemType(R.id,R.attributes,null==W?void 0:W.probability)})}},61861:function(R,W,G){"use strict";G.d(W,{Z:function(){return life_personSources}});var personSourceTransform=function(R,W){var G;return{title:W,url:R["http://schema.org/url"],publisher:R.publisher&&{identifier:(G=R.publisher)["http://schema.org/identifier"],email:G["http://schema.org/email"],name:G["http://schema.org/name"],url:G["http://schema.org/url"]}}},life_personSources=function(R,W){if(!R)return[];if(Array.isArray(R)){var G=[];return R.filter(function(R){return!!(R["http://schema.org/url"]||R.publisher)}).map(function(R){return personSourceTransform(R,W)}).filter(function(R){return!!R.publisher&&!G.includes(R.publisher.name)&&(G.push(R.publisher.name),!0)})}return[personSourceTransform(R,W)]}},75083:function(R,W,G){"use strict";var J=G(85064),et=G(17508),er=G(91224),en=G(72459),ei=G(71001),eo=G(48046),es=G(37601),itineraryItemLocationTransform=function(R){if(R){var W=R["http://www.w3.org/2004/02/skos/core#prefLabel"]?(0,ei.Z)(R["http://www.w3.org/2004/02/skos/core#prefLabel"]):(0,J.Z)(R["http://schema.org/name"]),G=(0,et.ZP)(R);return W?{label:W,coordinates:G}:void 0}};W.Z=function(R){if(R){var W,G,et=(0,er.D2)(R["http://schema.org/date"],R["http://schema.org/startDate"],R["http://schema.org/endDate"]),ei=es.x1[R["https://data.niod.nl/route"]],ec=void 0;ei&&R.hoofdroute&&R.hoofdroute.length>0&&R.hoofdroute[0]["http://www.w3.org/2004/02/skos/core#prefLabel"]&&(ec=R.hoofdroute[0]["http://www.w3.org/2004/02/skos/core#prefLabel"].nl);try{G={name:R["http://schema.org/name"]||"",date:(null==et?void 0:et.date)||(null==et?void 0:et.start)||(null==et?void 0:et.end),dateRange:et,mainRoute:ei?{original:R["https://data.niod.nl/route"],id:ei,label:es.AP[ei],slug:ec}:void 0,endLocation:(0,J.Z)(R["http://schema.org/endLocation"]),startLocation:(0,J.Z)(R["http://schema.org/startLocation"]),itinerary:(W=R.itinerary)?W.map(function(R){var W,G=(0,er.D2)((0,en.i)(R["http://schema.org/date"]),(0,en.i)(R["http://schema.org/startDate"]),(0,en.i)(R["http://schema.org/endDate"]));return{id:"".concat(R["http://schema.org/startDate"]," - ").concat(R["http://schema.org/endDate"]," - ").concat(R["http://schema.org/position"]),dateRange:G,pos:(0,en.i)(R["http://schema.org/position"]),startLocation:itineraryItemLocationTransform(R.startLocation),endLocation:itineraryItemLocationTransform(R.endLocation),persons:null===(W=R.medereiziger)||void 0===W?void 0:W.map(function(R){return(0,eo.Av)(R["@id"],R,void 0)})}}):[],sourceUrl:R["http://purl.org/dc/elements/1.1/source"]}}catch(R){}return G}}},19432:function(R,W,G){"use strict";G.d(W,{u:function(){return placeItemTransform},v:function(){return placeItemTupleTransform}});var J=G(97674),et=G(9427),er=G(74884),en=G(25244),ei=G(91709),eo=G(87534),place_mapImage=function(R,W){var G=W?"".concat(R.longitude,", ").concat(R.latitude,", ").concat(6,",0"):"".concat(R.longitude,", ").concat(R.latitude,", ").concat(10.5,",0");return{src:"".concat("https://api.mapbox.com/styles/v1/joost3000/cloyci7zv014901qm062ed1gy","/static/").concat(G,"/").concat(W?560:720,"x").concat(W?560:360,"@2x?access_token=").concat("pk.eyJ1Ijoiam9vc3QzMDAwIiwiYSI6ImNrOTl3OHhmODBmZTEzZG4yMnJ1d3llM2YifQ.yRVlAqv-LWFJXT6MZPl_hg"),alt:""}},es=G(35290),placeItemTupleTransform=function(R,W,G,ec){var el=R.id,eu=R.class,ed=R.attributes,ep=void 0;if(ed){var ef=eu.map(function(R){return et.P.includes(R)?null:{schema:R,value:(0,er.Z)((0,en.Z)(R))}}).filter(function(R){return null!==R}),eh=void 0;ef&&ef.length>0&&(ef.length>1&&"thing"===ef[0].value&&(eh=ef[1].value),eh=ef[0].value);var eg=(0,ei.H)(ed),em=(0,J.hl)(ed,eg);try{var ey,ev,eb=(null===(ey=eg.prefLabel)||void 0===ey?void 0:ey.value)||(null===(ev=eg.title)||void 0===ev?void 0:ev.value);if(!eb)return;ep={id:el,slug:encodeURIComponent(eb),href:(0,eo.pR)(eb),rank:W,probability:G,primaryClass:eh,classes:ef,title:em.title,thumbnail:em.thumbnail,location:em.location,isPOI:(0,es.Z)(eu),mapImage:em.location?place_mapImage(em.location,ec):void 0,provinces:em.provinces}}catch(R){}return ep}},placeItemTransform=function(R,W){var G=R.rank,J=R.probability,et=R.tuple,er=void 0;return et.length&&(er=et[0]),placeItemTupleTransform(er,G,J,W)}},1248:function(R,W,G){"use strict";G.d(W,{X:function(){return announcementResults},a:function(){return announcementByIdResults}});var J=G(9359),announcementResults=function(R,W){return{offset:R.offset,count:R.count,items:R.items.map(J.ZP).filter(function(R){return null!==R}),total:null==W?void 0:W.total}},announcementByIdResults=function(R){var W=R.items;return W&&W.length>0?(0,J.ZP)(W[0]):void 0}},68707:function(R,W,G){"use strict";G.d(W,{bv:function(){return eventsResultsToTimeline},yy:function(){return cutoutItemsFromArray}});var J=G(59499),et=G(27812),er=G(54586),en=G(27484),ei=G.n(en);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}G(99182);var cutoutItemsFromArray=function(R,W){return R.filter(function(R,G){return G%W==0})},eventTransform=function(R){var W,G,J,et,er;return null!==(W=R.enriched.dateObj)&&void 0!==W&&W.date&&null!==(G=R.enriched.dateObj)&&void 0!==G&&G.asString?{id:R.id,title:null===(J=R.flat.prefLabel)||void 0===J?void 0:J.value,href:R.themeUrl,date:{human:null===(et=R.enriched.dateObj)||void 0===et?void 0:et.asString,machine:null===(er=R.enriched.dateObj)||void 0===er?void 0:er.date},image:R.enriched.thumbnail}:void 0},eventsResultsToTimeline=function(R){var W=R.offset,G=R.count,J=R.items.filter(function(R){return null!==R}).map(function(R){return(0,er.W)(R)}).filter(function(R){return R&&R.enriched&&R.enriched.dateObj&&R.enriched.dateObj.date&&R.enriched.dateObj.asString});return 0===J.length?{timeline:{items:[],timeIndicators:[]}}:eventsItemsToTimeline({offset:W,count:G,items:J})},eventsItemsToTimeline=function(R){var W,G,J=R.offset,er=R.count,en=R.items.map(function(R){return eventTransform(R)}),eo=en.sort(function(R,W){return ei()(R.date.machine).isBefore(ei()(W.date.machine))?-1:1}),es=eo[0].date,ec=eo[eo.length-1].date,el=[],eu=!1;if(ei()(es.machine).startOf("year").isSame(ei()(ec.machine).startOf("year"))){if(eu=!0,W=ei()(es.machine).startOf("month").locale("nl"),G=ei()(ec.machine).endOf("month").locale("nl"),W.isBefore(G,"month")){for(var ed=W;ed.isBefore(G.add(1,"month"),"month");ed=ed.add(1,"month"))el=[].concat((0,et.Z)(el),[ed.format("MMM 'YY")]);el=[].concat((0,et.Z)(el),[G.add(1,"month").format("MMM 'YY")])}else el=[W.format("MMM 'YY"),G.add(1,"month").format("MMM 'YY")]}else{W=ei()(es.machine).startOf("year"),G=ei()(ec.machine).endOf("year");for(var ep=parseInt(ei()(es.machine).format("YYYY").toString()),ef=parseInt(ei()(ec.machine).format("YYYY").toString()),eh=ep;eh<=ef;eh+=1)el=[].concat((0,et.Z)(el),[eh]);el.length>35&&(el=cutoutItemsFromArray(el,10)),el.length>25&&(el=cutoutItemsFromArray(el,5)),el.length>12&&(el=cutoutItemsFromArray(el,2)),el=[].concat((0,et.Z)(el),[ef+1])}var eg=W.diff(G),em=en.map(function(R){return _objectSpread(_objectSpread({},R),{},{offset:W.diff(ei()(R.date.machine))/eg*100})});return em[0].highlighted=!0,em[em.length-1].highlighted=!0,{offset:J,count:er,timeline:{timeIndicators:el,items:em,withinMonth:eu,bigDates:{start:W.format("YYYY"),end:G.format("YYYY")}}}}},43753:function(R,W,G){"use strict";var J=G(54586);W.Z=function(R){var W=R.items;if(W&&W.length>0)return W.map(function(R){if(R.tuple&&R.tuple.length>0){var W=(0,J.W)(R);if(W&&null!=W&&W.enriched.thumbnail)return{image:W.enriched.thumbnail,meta:{caption:W.title,id:W.id,source:W.sourceUrl}}}}).filter(function(R){return void 0!==R})}},23275:function(R,W,G){"use strict";G.d(W,{DC:function(){return et},N:function(){return integratedSearchResults}});var J,et,er=G(59499),en=G(91913),ei=G(74432),eo=G(54586),es=G(97674),ec=G(9427),el=G(46848),eu=G(48046),ed=G(83975),ep=G(19432),ef=G(87534);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var provinceItemTransform=function(R){var W=R.rank,G=R.probability,J=R.tuple,et=void 0;J.length&&(et=J[0]);var er=(0,ep.v)(et,W,G);if(er)return _objectSpread(_objectSpread({},er),{},{title:er.title.replace("provincie ","").replace("Provincie ",""),href:(0,ef.Ko)(er.title)})};function integratedSearchResults_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}(J=et||(et={})).SOURCE="source",J.THESAURUS="thesaurus",J.INDICATOR="indicator",J.DRUPAL_ARTICLE="drupalArticle",J.PERSON="person",J.PLACE="place",J.PROVINCE="province";var singleItemToEnrichedResult=function(R){var W=R.tuple,G=void 0;W.length&&(G=W[0]);var J=G.id;return en.s.includes(J)?{type:et.INDICATOR,value:J,id:J}:G.class.includes(ec.Hp)?{type:et.PERSON,value:(0,eu.ll)(R),id:J}:G.class.includes(ec.DY)?{type:et.PROVINCE,value:provinceItemTransform(R),id:J}:(0,ed.Z)(G.class,G.attributes)?{type:et.PLACE,value:(0,ep.u)(R),id:J}:G.class.includes(ec.n_)?{type:et.THESAURUS,value:(0,es.g2)(R),id:J}:G.class.includes(ec.S6)?{type:et.DRUPAL_ARTICLE,value:(0,el.w)(R),id:J}:{type:et.SOURCE,value:(0,eo.W)(R),id:J}},itemsAndEnrichedClassResults=function(R,W){var G,J=(0,ei.U)(R.map(singleItemToEnrichedResult));return!W&&J&&J.length>0&&J[0].type===et.THESAURUS&&(G=J[0],J.shift()),{items:(0,ei.U)(J),classIndicators:J.filter(function(R){return R.type===et.INDICATOR}).map(function(R){return R}),knowledgeGraphItem:G}},integratedSearchResults=function(R,W,G){return function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?integratedSearchResults_ownKeys(Object(G),!0).forEach(function(W){(0,er.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):integratedSearchResults_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({offset:R.offset,count:R.count},itemsAndEnrichedClassResults(R.items,G))}},94858:function(R,W,G){"use strict";G.d(W,{u:function(){return searchResults}});var J=G(54586),searchResults=function(R,W){return{offset:R.offset,count:R.count,items:R.items.map(function(R){return(0,J.W)(R)}).filter(function(R){return null!==R}),total:null==W?void 0:W.total}}},94981:function(R,W,G){"use strict";G.d(W,{E:function(){return statisticsResults}});var J=G(59499);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var statisticsResults=function(R){var W=R.total,G=R.stats;return{total:W,stats:_objectSpread(_objectSpread({},G[0]),{},{numResults:G.reduce(function(R,W){return R+W.numResults},0)})}}},81856:function(R,W,G){"use strict";G.d(W,{Z:function(){return sourceItem_sourceItem}});var J=G(59499),et=G(4730),er=G(97220),en=G(29229),ei=G(55489),helpers_itemAttributeToSingleValue=function(R){if(R&&R.value)return Array.isArray(R.value)?R.value[0]:R.value},eo=G(71869),es=G(68595),ec=G(82212);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var el=G(74884),eu=G(25244),ed=G(87534),ep=G(2756),ef=G(48046),itemAttributes_personsAttribute=function(R){var W=null==R?void 0:R.person;if(W&&Array.isArray(W)&&0!==W.length){var G=W.map(function(R){return(0,ef.Av)(R["@id"],R)}).filter(function(R){return!!R});return{highlighted:G[0],rest:G.slice(1)}}},eh=G(17508),eg=G(71001),locationObject=function(R){if(R){var W=(0,eg.Z)(R["http://www.w3.org/2004/02/skos/core#prefLabel"]),G=R["https://data.niod.nl/thesaurus_wo2/ImagesWW2/imageURL"]?R["https://data.niod.nl/thesaurus_wo2/ImagesWW2/imageURL"]:void 0,J=(0,eh.ZP)(R),et=W?(0,ed.pR)(W):void 0;if(W&&J&&et)return{label:W,imageUrl:G,coordinates:J,placeUrl:et}}},itemObjects_relatedLocationsObject=function(R){if(R&&R.place){var W=R.place;if(W&&Array.isArray(W)&&0!==W.length)return{locations:W.map(function(R){return locationObject(R)}).filter(function(R){return void 0!==R})}}},helpers_itemAttributesToSingleStringValue=function(R){if(R&&R.value)return Array.isArray(R.value)?R.value.join(" "):R.value},em=["type","subject","publisher","newspaper","page","series","place","archive","broader","province","rights","provider"];function sourceItem_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var sourceItem_sourceItem=function(R){var W,G=R.id,ef=R.class,eh=R.attributes,eg=eh.type,ey=eh.subject,ev=eh.publisher,eb=eh.newspaper,e_=eh.page,ex=eh.series,ew=eh.place,eS=eh.archive,eT=eh.broader,eO=eh.province,eP=eh.rights,eC=eh.provider,ek=(0,et.Z)(eh,em),eE=function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?sourceItem_ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):sourceItem_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({type:eg,subject:ey,publisher:ev,newspaper:eb,page:e_,series:ex,place:ew,archive:eS,broader:eT,province:eO,rights:eP},ek),ej=Object.keys(ek).reduce(function(R,W){return _objectSpread(_objectSpread({},R),{},(0,J.Z)({},(0,eo.Z)(W),{label:es.Z.propertyTranslation((0,eo.Z)(W)),schema:W,value:(0,ec.VB)(ek[W])}))},{}),eA=(0,ep.N)({type:eg,subject:ey,publisher:ev,newspaper:eb,page:e_,series:ex,place:ew,archive:eS,broader:eT,rights:eP,provider:eC},ek),eD=["https://rightsstatements.org/page/InC/1.0/","http://rightsstatements.org/page/InC/1.0/","https://rightsstatements.org/vocab/InC/1.0/","http://rightsstatements.org/vocab/InC/1.0/","https://europeana.eu/rights/rr-f/","http://europeana.eu/rights/rr-f/"],eI=null===(W=eA.rights)||void 0===W?void 0:W.some(function(R){return eD.includes(R.id)});return{id:G,title:helpers_itemAttributeToSingleValue(ej.title)||"",description:helpers_itemAttributesToSingleStringValue(ej.description)||"",href:(0,ed.be)(G),video:null!=ef&&ef.includes("http://schema.org/VideoObject")?helpers_itemAttributeToSingleValue(ej.contentUrl):void 0,audio:null!=ef&&ef.includes("http://schema.org/AudioObject")?helpers_itemAttributeToSingleValue(ej.contentUrl):void 0,internalUrl:(0,ed.be)(G,ef),externalUrl:ej.source&&helpers_itemAttributeToSingleValue(ej.source),date:(0,er.J)(eE),detailed:(0,en.Z)(ej,eA,eI),thumbnail:(0,ei.Wl)(eE),classes:ef?{primary:ef.length>0?{label:(0,el.Z)((0,eu.Z)(ef[0])),id:ef[0]}:void 0,rest:ef.map(function(R){return{id:R,label:(0,eu.Z)(R)}})}:void 0,relatedPersons:itemAttributes_personsAttribute(eE),relatedLocations:itemObjects_relatedLocationsObject(eE),isImageCopyRighted:eI}}},38863:function(R,W){"use strict";W.Z=function(R){return R.includes("https://oorlogsbronnen.nl/event/Bombardement")}},11790:function(R,W){"use strict";W.Z=function(R){return R.includes("https://oorlogsbronnen.nl/event/Vliegtuigcrash")}},35290:function(R,W,G){"use strict";var J=G(9427);W.Z=function(R){return R.includes(J.CW)}},83975:function(R,W,G){"use strict";var J=G(9427);W.Z=function(R,W){return R.includes(J.r1)&&!R.includes(J.CW)&&!R.includes(J.As)&&!R.includes(J.AW)&&W&&W[J.DL]&&W[J.DL].some(function(R){return R&&R["@id"]===J.Mi})}},53570:function(R,W,G){"use strict";G.d(W,{K:function(){return thesaurusByIdSingleResult}});var J=G(97674),thesaurusByIdSingleResult=function(R){var W=R.items;return W&&W.length>0?(0,J.g2)(W[0]):void 0}},97674:function(R,W,G){"use strict";G.d(W,{hl:function(){return thesaurusItemAttributes},g2:function(){return thesaurusItemTransform},yg:function(){return thesaurusTupleTransform}});var J=G(59499),et=G(25244),er=G(74884),en=G(91709),ei=G(82212),eo=G(55489),thesaurus_thesaurusThumbnail=function(R){var W=R["http://schema.org/thumbnail"]||R["http://schema.org/thumbnailUrl"]||R["https://data.niod.nl/thesaurus_wo2/ImagesWW2/imageURL"];if(W){var G=void 0;if("string"==typeof W?G=W:"object"==typeof W?G=(0,ei.y)(W):console.error("Unknown type for thesaurus thumbnail"),G){var J="";R["http://www.w3.org/2004/02/skos/core#prefLabel"]&&R["http://www.w3.org/2004/02/skos/core#prefLabel"].nl&&(J=R["http://www.w3.org/2004/02/skos/core#prefLabel"].nl);var et=(0,eo.kA)(G),er=(0,eo.IA)(G);return(0,eo.tg)(er,J,et,G)}}},es=G(17508),ec=G(87534),el=G(9427),eu=G(75441),ed=G(97220),ep=G(83975),thesaurusvideo=function(R){if(R){var W=R.value;if(W){var G=(0,eo.kA)(W),J=(0,eo.IA)(W),et=(0,eo.tg)(J,"",G,W);return{url:W,poster:et}}}},thesaurus_thesaurusWebsite=function(R){if(R)return(Array.isArray(R.value)?R.value:[R.value]).map(function(R){return R.includes("http")?R:"https://".concat(R)})},ef=G(67025),itemAttributes_organizationLogo=function(R){var W=R["http://schema.org/logo"];if(W){var G=void 0;if("string"==typeof W?G=W:"object"==typeof W?G=W[0]["@id"]:console.error("Unknown type for organization logo"),G){var J="";R["http://www.w3.org/2004/02/skos/core#prefLabel"]&&R["http://www.w3.org/2004/02/skos/core#prefLabel"].nl&&(J=R["http://www.w3.org/2004/02/skos/core#prefLabel"].nl);var et=(0,eo.kA)(G),er=(0,eo.IA)(G);return(0,eo.tg)(er,J,et,G)}}},thesaurus_isThesaurusOrganizationParticipant=function(R){if(R)return Array.isArray(R)?!!R.find(function(R){return el.X0.includes(R.id)}):el.X0.includes(R.id)},thesaurus_thesaurusSource=function(R){if(R.source&&Array.isArray(R.source)&&R.source.length>0){var W=R.source.map(function(R){var W;return{id:R["@id"],publisher:null===(W=R.publisher)||void 0===W?void 0:W["http://schema.org/name"]}}).filter(function(R){return!!R.publisher});return W.length>0?W:void 0}},eh=G(38863),eg=G(37507),em=G(14981),thesaurusPlaneCrashObject=function(R){var W=R.fromLocation?(0,em.Z)((0,eg.Z)(R.fromLocation.value),!0):void 0,G=R.toLocation?(0,em.Z)((0,eg.Z)(R.toLocation.value),!0):void 0,J=R.location?(0,em.Z)((0,eg.Z)(R.location.value),!0):void 0;return{aircraft:R.aircraft?R.aircraft:void 0,airforce:R.airforce?R.airforce:void 0,airforceCategory:R.airforceCategory?R.airforceCategory:void 0,partOfDay:R.partOfDay?R.partOfDay:void 0,manufacturer:R.manufacturer?R.manufacturer:void 0,locations:W||G||J?{fromLocation:W,toLocation:G,crashLocation:J}:void 0}},ey=G(11790),ev=G(35290);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var thesaurusItemAttributes=function(R,W){var G,J,et,er,eo=W||(0,en.H)(R),ec=R["http://www.w3.org/2004/02/skos/core#inScheme"]&&R["http://www.w3.org/2004/02/skos/core#inScheme"].find(function(R){return"https://data.niod.nl/WO2_Thesaurus/11183"===R["@id"]});return{flat:eo,title:(null===(J=eo.prefLabel)||void 0===J?void 0:J.value)||(null===(et=eo.name)||void 0===et?void 0:et.value)||(null===(er=eo.title)||void 0===er?void 0:er.value)||"",thumbnail:thesaurus_thesaurusThumbnail(R),video:thesaurusvideo(null==eo?void 0:eo.videoURL),location:(0,es.ZP)(R),locationLabel:(0,es.nv)(R),provinces:(0,es.BN)(R),personDate:(0,eu.p)(R),dateObj:(0,ed.J)(R),webUrls:thesaurus_thesaurusWebsite(null==eo?void 0:eo.website),source:thesaurus_thesaurusSource(R),subject:R.subject&&R.subject.map(function(R){return(0,ef.r)(R)}),organizationLogo:itemAttributes_organizationLogo(R),mainItemOnLife:ec,broaderConcept:(G=R.broaderConcept)?G.map(function(R){return{id:R["@id"],href:"/thema/".concat(encodeURIComponent(R["@id"])),title:(0,ei.VB)(R["http://www.w3.org/2004/02/skos/core#prefLabel"])}}):void 0,planeCrash:thesaurusPlaneCrashObject(eo)}},thesaurusTupleTransform=function(R,W,G){var ei=R.id,eo=R.class,es=R.attributes,eu=void 0,ed=eo.map(function(R){return el.P.includes(R)?null:{schema:R,value:(0,er.Z)((0,et.Z)(R))}}).filter(function(R){return null!==R}),ef=void 0;if(ed&&ed.length>0&&(ed.length>1&&"thing"===ed[0].value&&(ef=ed[1].value),ef=ed[0].value),es){try{var eg,em,eb,e_=(0,en.H)(es),ex=(null===(eg=e_.prefLabel)||void 0===eg?void 0:eg.value)||(null===(em=e_.title)||void 0===em?void 0:em.value)||(null===(eb=e_.name)||void 0===eb?void 0:eb.value);if(!ex)return;var ew=(0,ep.Z)(eo,es),eS=e_.oorlogslevensIdentifier&&e_.oorlogslevensIdentifier.value,eT=eo.includes("http://schema.org/Event"),eO=eo.includes(el.HB)&&ei.includes("Organizations"),eP=(0,eh.Z)(eo),eC=(0,ev.Z)(eo),ek=(0,ey.Z)(eo),eE=(0,ec.vi)(ex);ew&&(eE=(0,ec.pR)(ex)),eS&&(eE=(0,ec.cC)(e_)),eO&&(eE=(0,ec.nA)(ex)),ek&&(eE=(0,ec.tq)(ex)),eP&&(eE=(0,ec.bs)(ex));var ej=thesaurusItemAttributes(es,e_),eA=thesaurus_isThesaurusOrganizationParticipant(ej.subject);eu=function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({id:ei,slug:encodeURIComponent(ex),href:eE,isPlace:ew,isEvent:eT,isOrganization:eO,isOrganizationParticipant:eA,isBombardment:eP,isPOI:eC,isCrash:ek,rank:W,probability:G,primaryClass:ef,classes:ed},ej)}catch(R){}return eu}},thesaurusItemTransform=function(R){var W=R.rank,G=R.probability,J=R.tuple,et=void 0;return J.length&&(et=J[0]),thesaurusTupleTransform(et,W,G)}},17508:function(R,W,G){"use strict";G.d(W,{BN:function(){return thesaurusProvince},nv:function(){return thesaurusLocationLabel}});var J=G(27812),et=G(82212),er=G(72442),getLocationFromAttrs=function(R){if(R.exactMatch){var W=R.exactMatch["http://schema.org/geo"]||R.exactMatch.geo;if(W)return{latitude:W.lat,longitude:W.lng}}return R["http://www.w3.org/2003/01/geo/wgs84_pos#long"]&&R["http://www.w3.org/2003/01/geo/wgs84_pos#lat"]?{longitude:R["http://www.w3.org/2003/01/geo/wgs84_pos#long"],latitude:R["http://www.w3.org/2003/01/geo/wgs84_pos#lat"]}:R["http://schema.org/latitude"]&&R["http://schema.org/longitude"]?{latitude:R["http://schema.org/latitude"],longitude:R["http://schema.org/longitude"]}:void 0},thesaurusProvince=function(R){var W;if(R){if(R.province)W=R.province.map(er.Z).filter(function(R){return!!R});else if(R.location){var G=R.location.filter(function(R){return R.province}).map(function(R){return R.province}).flat();G&&(W=G.map(er.Z).reduce(function(R,W){return R.some(function(R){return R&&(null==R?void 0:R.id)===(null==W?void 0:W.id)})?R:[].concat((0,J.Z)(R),[W])},[]).filter(function(R){return!!R}))}return W}},getLocationLabelFromAttrs=function(R){var W=void 0;return R["http://www.w3.org/2004/02/skos/core#prefLabel"]&&(W=(0,et.y)(R["http://www.w3.org/2004/02/skos/core#prefLabel"])),W||void 0},thesaurusLocationLabel=function(R){if(R.location){var W=R.location.find(function(R){return getLocationLabelFromAttrs(R)});if(W)return getLocationLabelFromAttrs(W)}};W.ZP=function(R){var W=getLocationFromAttrs(R);if(W)return W;if(R.location){var G=R.location.find(function(R){return getLocationFromAttrs(R)});if(G)return getLocationFromAttrs(G)}}},33138:function(R,W,G){"use strict";G.d(W,{k:function(){return thesaurusSearchResults}});var J=G(97674),et=G(74432),thesaurusSearchResults=function(R,W){var G=R.offset,er=R.count,en=R.items;return{offset:G,count:er,items:(0,et.U)(en.map(function(R){return(0,J.g2)(R)})),total:null==W?void 0:W.total}}},81137:function(R,W){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),function(R,W){for(var G in W)Object.defineProperty(R,G,{enumerable:!0,get:W[G]})}(W,{PrefetchKind:function(){return J},ACTION_REFRESH:function(){return et},ACTION_NAVIGATE:function(){return er},ACTION_RESTORE:function(){return en},ACTION_SERVER_PATCH:function(){return ei},ACTION_PREFETCH:function(){return eo},ACTION_FAST_REFRESH:function(){return es},ACTION_SERVER_ACTION:function(){return ec}});var G,J,et="refresh",er="navigate",en="restore",ei="server-patch",eo="prefetch",es="fast-refresh",ec="server-action";(G=J||(J={})).AUTO="auto",G.FULL="full",G.TEMPORARY="temporary",("function"==typeof W.default||"object"==typeof W.default&&null!==W.default)&&void 0===W.default.__esModule&&(Object.defineProperty(W.default,"__esModule",{value:!0}),Object.assign(W.default,W),R.exports=W.default)},9642:function(R,W,G){"use strict";function getDomainLocale(R,W,G,J){return!1}Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),G(79086),("function"==typeof W.default||"object"==typeof W.default&&null!==W.default)&&void 0===W.default.__esModule&&(Object.defineProperty(W.default,"__esModule",{value:!0}),Object.assign(W.default,W),R.exports=W.default)},13366:function(R,W,G){"use strict";var J=G(930),et=G(85696),er=G(3323),en=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"];function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){J(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"default",{enumerable:!0,get:function(){return ev}});var ei=G(38754)._(G(67294)),eo=G(49530),es=G(49270),ec=G(16788),el=G(43819),eu=G(38739),ed=G(36643),ep=G(88651),ef=G(91063),eh=G(9642),eg=G(40246),em=G(81137),ey=new Set;function prefetch(R,W,G,J,et,er){if(er||(0,es.isLocalURL)(W)){if(!J.bypassPrefetchedCheck){var en=W+"%"+G+"%"+(void 0!==J.locale?J.locale:"locale"in R?R.locale:void 0);if(ey.has(en))return;ey.add(en)}Promise.resolve(er?R.prefetch(W,et):R.prefetch(W,G,J)).catch(function(R){})}}function formatStringOrUrl(R){return"string"==typeof R?R:(0,ec.formatUrl)(R)}var ev=ei.default.forwardRef(function(R,W){var G,J,ec=R.href,ey=R.as,ev=R.children,eb=R.prefetch,e_=void 0===eb?null:eb,ex=R.passHref,ew=R.replace,eS=R.shallow,eT=R.scroll,eO=R.locale,eP=R.onClick,eC=R.onMouseEnter,ek=R.onTouchStart,eE=R.legacyBehavior,ej=void 0!==eE&&eE,eA=er(R,en);G=ev,ej&&("string"==typeof G||"number"==typeof G)&&(G=ei.default.createElement("a",null,G));var eD=ei.default.useContext(ed.RouterContext),eI=ei.default.useContext(ep.AppRouterContext),eM=null!=eD?eD:eI,eL=!eD,eR=!1!==e_,eN=null===e_?em.PrefetchKind.AUTO:em.PrefetchKind.FULL,eB=ei.default.useMemo(function(){if(!eD){var R=formatStringOrUrl(ec);return{href:R,as:ey?formatStringOrUrl(ey):R}}var W=et((0,eo.resolveHref)(eD,ec,!0),2),G=W[0],J=W[1];return{href:G,as:ey?(0,eo.resolveHref)(eD,ey):J||G}},[eD,ec,ey]),eZ=eB.href,eU=eB.as,eF=ei.default.useRef(eZ),ez=ei.default.useRef(eU);ej&&(J=ei.default.Children.only(G));var eH=ej?J&&"object"==typeof J&&J.ref:W,eq=et((0,ef.useIntersection)({rootMargin:"200px"}),3),eV=eq[0],eW=eq[1],eG=eq[2],e$=ei.default.useCallback(function(R){(ez.current!==eU||eF.current!==eZ)&&(eG(),ez.current=eU,eF.current=eZ),eV(R),eH&&("function"==typeof eH?eH(R):"object"==typeof eH&&(eH.current=R))},[eU,eH,eZ,eG,eV]);ei.default.useEffect(function(){eM&&eW&&eR&&prefetch(eM,eZ,eU,{locale:eO},{kind:eN},eL)},[eU,eZ,eW,eO,eR,null==eD?void 0:eD.locale,eM,eL,eN]);var eK={ref:e$,onClick:function(R){ej||"function"!=typeof eP||eP(R),ej&&J.props&&"function"==typeof J.props.onClick&&J.props.onClick(R),eM&&!R.defaultPrevented&&function(R,W,G,J,et,er,en,eo,ec,el){if(!("A"===R.currentTarget.nodeName.toUpperCase()&&((eu=R.currentTarget.getAttribute("target"))&&"_self"!==eu||R.metaKey||R.ctrlKey||R.shiftKey||R.altKey||R.nativeEvent&&2===R.nativeEvent.which||!ec&&!(0,es.isLocalURL)(G)))){R.preventDefault();var eu,navigate=function(){var R=null==en||en;"beforePopState"in W?W[et?"replace":"push"](G,J,{shallow:er,locale:eo,scroll:R}):W[et?"replace":"push"](J||G,{forceOptimisticNavigation:!el,scroll:R})};ec?ei.default.startTransition(navigate):navigate()}}(R,eM,eZ,eU,ew,eS,eT,eO,eL,eR)},onMouseEnter:function(R){ej||"function"!=typeof eC||eC(R),ej&&J.props&&"function"==typeof J.props.onMouseEnter&&J.props.onMouseEnter(R),eM&&(eR||!eL)&&prefetch(eM,eZ,eU,{locale:eO,priority:!0,bypassPrefetchedCheck:!0},{kind:eN},eL)},onTouchStart:function(R){ej||"function"!=typeof ek||ek(R),ej&&J.props&&"function"==typeof J.props.onTouchStart&&J.props.onTouchStart(R),eM&&(eR||!eL)&&prefetch(eM,eZ,eU,{locale:eO,priority:!0,bypassPrefetchedCheck:!0},{kind:eN},eL)}};if((0,el.isAbsoluteUrl)(eU))eK.href=eU;else if(!ej||ex||"a"===J.type&&!("href"in J.props)){var eY=void 0!==eO?eO:null==eD?void 0:eD.locale,eX=(null==eD?void 0:eD.isLocaleDomain)&&(0,eh.getDomainLocale)(eU,eY,null==eD?void 0:eD.locales,null==eD?void 0:eD.domainLocales);eK.href=eX||(0,eg.addBasePath)((0,eu.addLocale)(eU,eY,null==eD?void 0:eD.defaultLocale))}return ej?ei.default.cloneElement(J,eK):ei.default.createElement("a",_objectSpread(_objectSpread({},eA),eK),G)});("function"==typeof W.default||"object"==typeof W.default&&null!==W.default)&&void 0===W.default.__esModule&&(Object.defineProperty(W.default,"__esModule",{value:!0}),Object.assign(W.default,W),R.exports=W.default)},91063:function(R,W,G){"use strict";var J=G(85696);Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});var et=G(67294),er=G(83185),en="function"==typeof IntersectionObserver,ei=new Map,eo=[];function useIntersection(R){var W=R.rootRef,G=R.rootMargin,es=R.disabled||!en,ec=J((0,et.useState)(!1),2),el=ec[0],eu=ec[1],ed=(0,et.useRef)(null),ep=(0,et.useCallback)(function(R){ed.current=R},[]);return(0,et.useEffect)(function(){if(en){if(!es&&!el){var R,J,et,ec,ep=ed.current;if(ep&&ep.tagName)return J=(R=function(R){var W,G={root:R.root||null,margin:R.rootMargin||""},J=eo.find(function(R){return R.root===G.root&&R.margin===G.margin});if(J&&(W=ei.get(J)))return W;var et=new Map;return W={id:G,observer:new IntersectionObserver(function(R){R.forEach(function(R){var W=et.get(R.target),G=R.isIntersecting||R.intersectionRatio>0;W&&G&&W(G)})},R),elements:et},eo.push(G),ei.set(G,W),W}({root:null==W?void 0:W.current,rootMargin:G})).id,et=R.observer,(ec=R.elements).set(ep,function(R){return R&&eu(R)}),et.observe(ep),function(){if(ec.delete(ep),et.unobserve(ep),0===ec.size){et.disconnect(),ei.delete(J);var R=eo.findIndex(function(R){return R.root===J.root&&R.margin===J.margin});R>-1&&eo.splice(R,1)}}}}else if(!el){var ef=(0,er.requestIdleCallback)(function(){return eu(!0)});return function(){return(0,er.cancelIdleCallback)(ef)}}},[es,G,W,el,ed.current]),[ep,el,(0,et.useCallback)(function(){eu(!1)},[])]}("function"==typeof W.default||"object"==typeof W.default&&null!==W.default)&&void 0===W.default.__esModule&&(Object.defineProperty(W.default,"__esModule",{value:!0}),Object.assign(W.default,W),R.exports=W.default)},65217:function(R,W,G){"use strict";var J=G(87794),et=G(3075),er=G(88361),en=G(85971),ei=G(52715),eo=G(91193),es=G(49376);Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"default",{enumerable:!0,get:function(){return eu}});var ec=G(38754)._(G(67294)),el=G(43819);function appGetInitialProps(R){return _appGetInitialProps.apply(this,arguments)}function _appGetInitialProps(){return(_appGetInitialProps=es(J.mark(function _callee(R){var W,G,et;return J.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return W=R.Component,G=R.ctx,J.next=3,(0,el.loadGetInitialProps)(W,G);case 3:return et=J.sent,J.abrupt("return",{pageProps:et});case 5:case"end":return J.stop()}},_callee)}))).apply(this,arguments)}var eu=function(R){en(App,R);var W,G=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=eo(App);if(W){var J=eo(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return ei(this,R)});function App(){return et(this,App),G.apply(this,arguments)}return er(App,[{key:"render",value:function(){var R=this.props,W=R.Component,G=R.pageProps;return ec.default.createElement(W,G)}}]),App}(ec.default.Component);eu.origGetInitialProps=appGetInitialProps,eu.getInitialProps=appGetInitialProps,("function"==typeof W.default||"object"==typeof W.default&&null!==W.default)&&void 0===W.default.__esModule&&(Object.defineProperty(W.default,"__esModule",{value:!0}),Object.assign(W.default,W),R.exports=W.default)},93539:function(R,W,G){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"AmpStateContext",{enumerable:!0,get:function(){return J}});var J=G(38754)._(G(67294)).default.createContext({})},47187:function(R,W){"use strict";function isInAmpMode(R){var W=void 0===R?{}:R,G=W.ampFirst,J=W.hybrid,et=W.hasQuery;return void 0!==G&&G||void 0!==J&&J&&void 0!==et&&et}Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},95941:function(R,W,G){"use strict";var J=G(930);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){J(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}Object.defineProperty(W,"__esModule",{value:!0}),function(R,W){for(var G in W)Object.defineProperty(R,G,{enumerable:!0,get:W[G]})}(W,{noSSR:function(){return _noSSR},default:function(){return dynamic}});var et=G(38754),er=(G(67294),et._(G(33449)));function convertModule(R){return{default:(null==R?void 0:R.default)||R}}function _noSSR(R,W){return delete W.webpack,delete W.modules,R(W)}function dynamic(R,W){var G=er.default,J={loading:function(R){return R.error,R.isLoading,R.pastDelay,null}};R instanceof Promise?J.loader=function(){return R}:"function"==typeof R?J.loader=R:"object"==typeof R&&(J=_objectSpread(_objectSpread({},J),R));var et=(J=_objectSpread(_objectSpread({},J),W)).loader;return(J.loadableGenerated&&(J=_objectSpread(_objectSpread({},J),J.loadableGenerated),delete J.loadableGenerated),"boolean"!=typeof J.ssr||J.ssr)?G(_objectSpread(_objectSpread({},J),{},{loader:function(){return null!=et?et().then(convertModule):Promise.resolve(convertModule(function(){return null}))}})):(delete J.webpack,delete J.modules,_noSSR(G,J))}("function"==typeof W.default||"object"==typeof W.default&&null!==W.default)&&void 0===W.default.__esModule&&(Object.defineProperty(W.default,"__esModule",{value:!0}),Object.assign(W.default,W),R.exports=W.default)},62268:function(R,W,G){"use strict";var J=G(930);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}Object.defineProperty(W,"__esModule",{value:!0}),function(R,W){for(var G in W)Object.defineProperty(R,G,{enumerable:!0,get:W[G]})}(W,{defaultHead:function(){return _defaultHead},default:function(){return _default2}});var et=G(38754),er=G(61757)._(G(67294)),en=et._(G(88959)),ei=G(93539),eo=G(95963),es=G(47187);function _defaultHead(R){void 0===R&&(R=!1);var W=[er.default.createElement("meta",{charSet:"utf-8"})];return R||W.push(er.default.createElement("meta",{name:"viewport",content:"width=device-width"})),W}function onlyReactElement(R,W){return"string"==typeof W||"number"==typeof W?R:W.type===er.default.Fragment?R.concat(er.default.Children.toArray(W.props.children).reduce(function(R,W){return"string"==typeof W||"number"==typeof W?R:R.concat(W)},[])):R.concat(W)}G(29067);var ec=["name","httpEquiv","charSet","itemProp"];function reduceComponents(R,W){var G,et,en,ei,eo=W.inAmpMode;return R.reduce(onlyReactElement,[]).reverse().concat(_defaultHead(eo).reverse()).filter((G=new Set,et=new Set,en=new Set,ei={},function(R){var W=!0,J=!1;if(R.key&&"number"!=typeof R.key&&R.key.indexOf("$")>0){J=!0;var er=R.key.slice(R.key.indexOf("$")+1);G.has(er)?W=!1:G.add(er)}switch(R.type){case"title":case"base":et.has(R.type)?W=!1:et.add(R.type);break;case"meta":for(var eo=0,es=ec.length;eo<es;eo++){var el=ec[eo];if(R.props.hasOwnProperty(el)){if("charSet"===el)en.has(el)?W=!1:en.add(el);else{var eu=R.props[el],ed=ei[el]||new Set;("name"!==el||!J)&&ed.has(eu)?W=!1:(ed.add(eu),ei[el]=ed)}}}}return W})).reverse().map(function(R,W){var G=R.key||W;if(!eo&&"link"===R.type&&R.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(function(W){return R.props.href.startsWith(W)})){var et=function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){J(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({},R.props||{});return et["data-href"]=et.href,et.href=void 0,et["data-optimized-fonts"]=!0,er.default.cloneElement(R,et)}return er.default.cloneElement(R,{key:G})})}var _default2=function(R){var W=R.children,G=(0,er.useContext)(ei.AmpStateContext),J=(0,er.useContext)(eo.HeadManagerContext);return er.default.createElement(en.default,{reduceComponentsToState:reduceComponents,headManager:J,inAmpMode:(0,es.isInAmpMode)(G)},W)};("function"==typeof W.default||"object"==typeof W.default&&null!==W.default)&&void 0===W.default.__esModule&&(Object.defineProperty(W.default,"__esModule",{value:!0}),Object.assign(W.default,W),R.exports=W.default)},85079:function(R,W,G){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"LoadableContext",{enumerable:!0,get:function(){return J}});var J=G(38754)._(G(67294)).default.createContext(null)},33449:function(R,W,G){"use strict";/**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
 MIT License
 Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/var J=G(930),et=G(3075),er=G(88361);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){J(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"default",{enumerable:!0,get:function(){return eu}});var en=G(38754)._(G(67294)),ei=G(85079),eo=[],es=[],ec=!1;function load(R){var W=R(),G={loading:!0,loaded:null,error:null};return G.promise=W.then(function(R){return G.loading=!1,G.loaded=R,R}).catch(function(R){throw G.loading=!1,G.error=R,R}),G}var el=function(){function LoadableSubscription(R,W){et(this,LoadableSubscription),this._loadFn=R,this._opts=W,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return er(LoadableSubscription,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var R=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var W=this._res,G=this._opts;W.loading&&("number"==typeof G.delay&&(0===G.delay?this._state.pastDelay=!0:this._delay=setTimeout(function(){R._update({pastDelay:!0})},G.delay)),"number"==typeof G.timeout&&(this._timeout=setTimeout(function(){R._update({timedOut:!0})},G.timeout))),this._res.promise.then(function(){R._update({}),R._clearTimeouts()}).catch(function(W){R._update({}),R._clearTimeouts()}),this._update({})}},{key:"_update",value:function(R){this._state=_objectSpread(_objectSpread({},this._state),{},{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},R),this._callbacks.forEach(function(R){return R()})}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(R){var W=this;return this._callbacks.add(R),function(){W._callbacks.delete(R)}}}]),LoadableSubscription}();function Loadable(R){return function(R,W){var G=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},W),J=null;function init(){if(!J){var W=new el(R,G);J={getCurrentValue:W.getCurrentValue.bind(W),subscribe:W.subscribe.bind(W),retry:W.retry.bind(W),promise:W.promise.bind(W)}}return J.promise()}if(!ec){var et=G.webpack?G.webpack():G.modules;et&&es.push(function(R){var W,G=function(R,W){var G="undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(!G){if(Array.isArray(R)||(G=function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(R))){G&&(R=G);var J=0,F=function(){};return{s:F,n:function(){return J>=R.length?{done:!0}:{done:!1,value:R[J++]}},e:function(R){throw R},f:F}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var et,er=!0,en=!1;return{s:function(){G=G.call(R)},n:function(){var R=G.next();return er=R.done,R},e:function(R){en=!0,et=R},f:function(){try{er||null==G.return||G.return()}finally{if(en)throw et}}}}(et);try{for(G.s();!(W=G.n()).done;){var J=W.value;if(R.includes(J))return init()}}catch(R){G.e(R)}finally{G.f()}})}function LoadableComponent(R,W){init(),(et=en.default.useContext(ei.LoadableContext))&&Array.isArray(G.modules)&&G.modules.forEach(function(R){et(R)});var et,er=en.default.useSyncExternalStore(J.subscribe,J.getCurrentValue,J.getCurrentValue);return en.default.useImperativeHandle(W,function(){return{retry:J.retry}},[]),en.default.useMemo(function(){var W;return er.loading||er.error?en.default.createElement(G.loading,{isLoading:er.loading,pastDelay:er.pastDelay,timedOut:er.timedOut,error:er.error,retry:J.retry}):er.loaded?en.default.createElement((W=er.loaded)&&W.default?W.default:W,R):null},[R,er])}return LoadableComponent.preload=function(){return init()},LoadableComponent.displayName="LoadableComponent",en.default.forwardRef(LoadableComponent)}(load,R)}function flushInitializers(R,W){for(var G=[];R.length;){var J=R.pop();G.push(J(W))}return Promise.all(G).then(function(){if(R.length)return flushInitializers(R,W)})}Loadable.preloadAll=function(){return new Promise(function(R,W){flushInitializers(eo).then(R,W)})},Loadable.preloadReady=function(R){return void 0===R&&(R=[]),new Promise(function(W){var res=function(){return ec=!0,W()};flushInitializers(es,R).then(res,res)})},window.__NEXT_PRELOADREADY=Loadable.preloadReady;var eu=Loadable},88959:function(R,W,G){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"default",{enumerable:!0,get:function(){return SideEffect}});var J=G(67294),et=J.useLayoutEffect,er=J.useEffect;function SideEffect(R){var W=R.headManager,G=R.reduceComponentsToState;function emitChange(){if(W&&W.mountedInstances){var et=J.Children.toArray(Array.from(W.mountedInstances).filter(Boolean));W.updateHead(G(et,R))}}return et(function(){var G;return null==W||null==(G=W.mountedInstances)||G.add(R.children),function(){var G;null==W||null==(G=W.mountedInstances)||G.delete(R.children)}}),et(function(){return W&&(W._pendingUpdate=emitChange),function(){W&&(W._pendingUpdate=emitChange)}}),er(function(){return W&&W._pendingUpdate&&(W._pendingUpdate(),W._pendingUpdate=null),function(){W&&W._pendingUpdate&&(W._pendingUpdate(),W._pendingUpdate=null)}}),null}},29067:function(R,W){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),Object.defineProperty(W,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});var warnOnce=function(R){}},39187:function(R,W,G){var J=G(34155);G(91479);var et=G(67294),er=et&&"object"==typeof et&&"default"in et?et:{default:et};function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,J.key,J)}}var en=void 0!==J&&J.env&&!0,isString=function(R){return"[object String]"===Object.prototype.toString.call(R)},ei=function(){function StyleSheet(R){var W=void 0===R?{}:R,G=W.name,J=void 0===G?"stylesheet":G,et=W.optimizeForSpeed,er=void 0===et?en:et;invariant$1(isString(J),"`name` must be a string"),this._name=J,this._deletedRulePlaceholder="#"+J+"-deleted-rule____{}",invariant$1("boolean"==typeof er,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=er,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var ei=document.querySelector('meta[property="csp-nonce"]');this._nonce=ei?ei.getAttribute("content"):null}var R,W=StyleSheet.prototype;return W.setOptimizeForSpeed=function(R){invariant$1("boolean"==typeof R,"`setOptimizeForSpeed` accepts a boolean"),invariant$1(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=R,this.inject()},W.isOptimizeForSpeed=function(){return this._optimizeForSpeed},W.inject=function(){var R=this;if(invariant$1(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(en||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(W,G){return"number"==typeof G?R._serverSheet.cssRules[G]={cssText:W}:R._serverSheet.cssRules.push({cssText:W}),G},deleteRule:function(W){R._serverSheet.cssRules[W]=null}}},W.getSheetForTag=function(R){if(R.sheet)return R.sheet;for(var W=0;W<document.styleSheets.length;W++)if(document.styleSheets[W].ownerNode===R)return document.styleSheets[W]},W.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},W.insertRule=function(R,W){if(invariant$1(isString(R),"`insertRule` accepts only strings"),this._optimizeForSpeed){var G=this.getSheet();"number"!=typeof W&&(W=G.cssRules.length);try{G.insertRule(R,W)}catch(W){return en||console.warn("StyleSheet: illegal rule: \n\n"+R+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var J=this._tags[W];this._tags.push(this.makeStyleTag(this._name,R,J))}return this._rulesCount++},W.replaceRule=function(R,W){if(this._optimizeForSpeed){var G=this.getSheet();if(W.trim()||(W=this._deletedRulePlaceholder),!G.cssRules[R])return R;G.deleteRule(R);try{G.insertRule(W,R)}catch(J){en||console.warn("StyleSheet: illegal rule: \n\n"+W+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),G.insertRule(this._deletedRulePlaceholder,R)}}else{var J=this._tags[R];invariant$1(J,"old rule at index `"+R+"` not found"),J.textContent=W}return R},W.deleteRule=function(R){if(this._optimizeForSpeed)this.replaceRule(R,"");else{var W=this._tags[R];invariant$1(W,"rule at index `"+R+"` not found"),W.parentNode.removeChild(W),this._tags[R]=null}},W.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEach(function(R){return R&&R.parentNode.removeChild(R)}),this._tags=[]},W.cssRules=function(){var R=this;return this._tags.reduce(function(W,G){return G?W=W.concat(Array.prototype.map.call(R.getSheetForTag(G).cssRules,function(W){return W.cssText===R._deletedRulePlaceholder?null:W})):W.push(null),W},[])},W.makeStyleTag=function(R,W,G){W&&invariant$1(isString(W),"makeStyleTag accepts only strings as second parameter");var J=document.createElement("style");this._nonce&&J.setAttribute("nonce",this._nonce),J.type="text/css",J.setAttribute("data-"+R,""),W&&J.appendChild(document.createTextNode(W));var et=document.head||document.getElementsByTagName("head")[0];return G?et.insertBefore(J,G):et.appendChild(J),J},_defineProperties(StyleSheet.prototype,[{key:"length",get:function(){return this._rulesCount}}]),R&&_defineProperties(StyleSheet,R),StyleSheet}();function invariant$1(R,W){if(!R)throw Error("StyleSheet: "+W+".")}var stringHash=function(R){for(var W=5381,G=R.length;G;)W=33*W^R.charCodeAt(--G);return W>>>0},eo={};function computeId(R,W){if(!W)return"jsx-"+R;var G=String(W),J=R+G;return eo[J]||(eo[J]="jsx-"+stringHash(R+"-"+G)),eo[J]}function computeSelector(R,W){var G=R+W;return eo[G]||(eo[G]=W.replace(/__jsx-style-dynamic-selector/g,R)),eo[G]}var es=function(){function StyleSheetRegistry(R){var W=void 0===R?{}:R,G=W.styleSheet,J=void 0===G?null:G,et=W.optimizeForSpeed,er=void 0!==et&&et;this._sheet=J||new ei({name:"styled-jsx",optimizeForSpeed:er}),this._sheet.inject(),J&&"boolean"==typeof er&&(this._sheet.setOptimizeForSpeed(er),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var R=StyleSheetRegistry.prototype;return R.add=function(R){var W=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(R.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(R,W){return R[W]=0,R},{}));var G=this.getIdAndRules(R),J=G.styleId,et=G.rules;if(J in this._instancesCounts){this._instancesCounts[J]+=1;return}var er=et.map(function(R){return W._sheet.insertRule(R)}).filter(function(R){return -1!==R});this._indices[J]=er,this._instancesCounts[J]=1},R.remove=function(R){var W=this,G=this.getIdAndRules(R).styleId;if(function(R,W){if(!R)throw Error("StyleSheetRegistry: "+W+".")}(G in this._instancesCounts,"styleId: `"+G+"` not found"),this._instancesCounts[G]-=1,this._instancesCounts[G]<1){var J=this._fromServer&&this._fromServer[G];J?(J.parentNode.removeChild(J),delete this._fromServer[G]):(this._indices[G].forEach(function(R){return W._sheet.deleteRule(R)}),delete this._indices[G]),delete this._instancesCounts[G]}},R.update=function(R,W){this.add(W),this.remove(R)},R.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},R.cssRules=function(){var R=this,W=this._fromServer?Object.keys(this._fromServer).map(function(W){return[W,R._fromServer[W]]}):[],G=this._sheet.cssRules();return W.concat(Object.keys(this._indices).map(function(W){return[W,R._indices[W].map(function(R){return G[R].cssText}).join(R._optimizeForSpeed?"":"\n")]}).filter(function(R){return!!R[1]}))},R.styles=function(R){var W,G;return W=this.cssRules(),void 0===(G=R)&&(G={}),W.map(function(R){var W=R[0],J=R[1];return er.default.createElement("style",{id:"__"+W,key:"__"+W,nonce:G.nonce?G.nonce:void 0,dangerouslySetInnerHTML:{__html:J}})})},R.getIdAndRules=function(R){var W=R.children,G=R.dynamic,J=R.id;if(G){var et=computeId(J,G);return{styleId:et,rules:Array.isArray(W)?W.map(function(R){return computeSelector(et,R)}):[computeSelector(et,W)]}}return{styleId:computeId(J),rules:Array.isArray(W)?W:[W]}},R.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(R,W){return R[W.id.slice(2)]=W,R},{})},StyleSheetRegistry}(),ec=et.createContext(null);ec.displayName="StyleSheetContext";var el=er.default.useInsertionEffect||er.default.useLayoutEffect,eu=new es;function JSXStyle(R){var W=eu||et.useContext(ec);return W&&el(function(){return W.add(R),function(){W.remove(R)}},[R.id,String(R.dynamic)]),null}JSXStyle.dynamic=function(R){return R.map(function(R){return computeId(R[0],R[1])}).join(" ")},W.style=JSXStyle},4131:function(R,W,G){R.exports=G(39187).style},27393:function(R,W,G){"use strict";G.r(W),G.d(W,{default:function(){return rZ}});var J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef,eh,eg,em,ey,ev,eb,e_,ex,ew,eS,eT,eO,eP,eC,ek=G(50029),eE=G(59499),ej=G(4730),eA=G(87794),eD=G.n(eA),eI=G(67294),eM=G(7544),eL=G.n(eM),eR=G(11163),eN=G.n(eR),eB=(J=function(R,W){return(J=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(R,W){R.__proto__=W}||function(R,W){for(var G in W)W.hasOwnProperty(G)&&(R[G]=W[G])})(R,W)},function(R,W){function __(){this.constructor=R}J(R,W),R.prototype=null===W?Object.create(W):(__.prototype=W.prototype,new __)}),__assign=function(){return(__assign=Object.assign||function(R){for(var W,G=1,J=arguments.length;G<J;G++)for(var et in W=arguments[G])Object.prototype.hasOwnProperty.call(W,et)&&(R[et]=W[et]);return R}).apply(this,arguments)},__generator=function(R,W){var G,J,et,er,en={label:0,sent:function(){if(1&et[0])throw et[1];return et[1]},trys:[],ops:[]};return er={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(er[Symbol.iterator]=function(){return this}),er;function verb(er){return function(ei){return function(er){if(G)throw TypeError("Generator is already executing.");for(;en;)try{if(G=1,J&&(et=2&er[0]?J.return:er[0]?J.throw||((et=J.return)&&et.call(J),0):J.next)&&!(et=et.call(J,er[1])).done)return et;switch(J=0,et&&(er=[2&er[0],et.value]),er[0]){case 0:case 1:et=er;break;case 4:return en.label++,{value:er[1],done:!1};case 5:en.label++,J=er[1],er=[0];continue;case 7:er=en.ops.pop(),en.trys.pop();continue;default:if(!(et=(et=en.trys).length>0&&et[et.length-1])&&(6===er[0]||2===er[0])){en=0;continue}if(3===er[0]&&(!et||er[1]>et[0]&&er[1]<et[3])){en.label=er[1];break}if(6===er[0]&&en.label<et[1]){en.label=et[1],et=er;break}if(et&&en.label<et[2]){en.label=et[2],en.ops.push(er);break}et[2]&&en.ops.pop(),en.trys.pop();continue}er=W.call(R,en)}catch(R){er=[6,R],J=0}finally{G=et=0}if(5&er[0])throw er[1];return{value:er[0]?er[1]:void 0,done:!0}}([er,ei])}}},__rest=function(R,W){var G={};for(var J in R)Object.prototype.hasOwnProperty.call(R,J)&&0>W.indexOf(J)&&(G[J]=R[J]);if(null!=R&&"function"==typeof Object.getOwnPropertySymbols)for(var et=0,J=Object.getOwnPropertySymbols(R);et<J.length;et++)0>W.indexOf(J[et])&&Object.prototype.propertyIsEnumerable.call(R,J[et])&&(G[J[et]]=R[J[et]]);return G},eZ=G(70643),eU=G(94525),eF=G(90693),ez=G(40865);eZ.ZP.div.withConfig({displayName:"DebugBarstyles__StyledDebugBar",componentId:"sc-3zs40c-0"})([".breakpoint,.selfLink,.showConfig{position:fixed;bottom:0;font-size:12px;background:rgba(0,0,0,0.6);color:white;padding:2px 4px;z-index:9999;}.breakpoint{left:0;border-radius:0 3px 0 0;&::before{",";}}.showConfig{right:20px;ul{position:relative;display:none;margin-left:0;padding:0;list-style-type:none;}&:hover{span{display:none;}ul{display:block;li{font-size:16px;}}}}.selfLink{right:0;border-radius:3px 0 0 0;}.gridOverlay{pointer-events:none;height:100vh;width:100%;position:fixed;left:0;top:0;z-index:9998;","{height:100vh;outline:1px blue solid;opacity:0.2;}","{.inner{height:100vh;width:100%;background:pink;}}}"],(0,eU.Z)("content",["xs","sm","md","lg","xl"],function(R){return'"'.concat(R,'"')}),eF.Z,ez.Z);var eH=G(41664),eq=G.n(eH),eV=G(85893),eW=G(37850),eG=G(4129),e$=(0,eZ.iv)(["body{font-size:","px;font-family:",";line-height:1.5;font-weight:300;}h1,h2,h3,h4,h5,h6{line-height:1.2;margin:0;font-family:",";font-weight:700;@media (max-width:360px){word-break:break-all;word-break:break-word;hyphens:auto;}}h1{",";}h2{",";}h3{",";}h4{",";}h5{",";}p{",";line-height:1.5;margin-top:0;margin-bottom:","px;&:last-child{margin-bottom:0;}}p,a,div,input,button{font-weight:300;font-family:",";}"],eG.ZP.fontSizes.base,eG.ZP.fonts.primary,eG.ZP.fonts.primary,(0,eW.JB)("h1"),(0,eW.JB)("h2"),(0,eW.JB)("h3"),(0,eW.JB)("h4"),(0,eW.JB)("h5"),(0,eW.JB)("medium"),eG.ZP.dist.sm,eG.ZP.fonts.primary),eK=(0,eZ.iv)(["/*! sanitize.css v5.0.0 | CC0 License | github.com/jonathantneal/sanitize.css */ *,::before,::after{background-repeat:no-repeat;box-sizing:inherit;}::before,::after{text-decoration:inherit;vertical-align:inherit;}html{box-sizing:border-box;cursor:default;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}article,aside,footer,header,nav,section{display:block;}body{margin:0;}h1{font-size:2em;margin:0.5em 0;}figcaption,figure,main{display:block;}figure{margin:1em 40px;}hr{box-sizing:content-box;height:0;overflow:visible;}nav ol,nav ul{list-style:none;}pre{font-family:monospace,monospace;font-size:1em;}a{background-color:transparent;-webkit-text-decoration-skip:objects;}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:inherit;}b,strong{font-weight:bolder;}code,kbd,samp{font-family:monospace,monospace;font-size:1em;}dfn{font-style:italic;}mark{background-color:#ffff00;color:#000000;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}::-moz-selection{background-color:#b3d4fc;color:#000000;text-shadow:none;}::selection{background-color:#b3d4fc;color:#000000;text-shadow:none;}audio,canvas,iframe,img,svg,video{vertical-align:middle;}audio,video{display:inline-block;}audio:not([controls]){display:none;height:0;}img{border-style:none;}svg{fill:currentColor;}svg:not(:root){overflow:hidden;}table{border-collapse:collapse;}button,input,optgroup,select,textarea{margin:0;}button,input,select,textarea{background-color:transparent;color:inherit;font-size:inherit;line-height:inherit;}button,input{overflow:visible;}button,select{text-transform:none;}button,html [type=\"button\"],[type=\"reset\"],[type=\"submit\"]{-webkit-appearance:button;}button::-moz-focus-inner,[type='button']::-moz-focus-inner,[type='reset']::-moz-focus-inner,[type='submit']::-moz-focus-inner{border-style:none;padding:0;}button:-moz-focusring,[type='button']:-moz-focusring,[type='reset']:-moz-focusring,[type='submit']:-moz-focusring{outline:1px dotted ButtonText;}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{display:inline-block;vertical-align:baseline;}textarea{overflow:auto;resize:vertical;}[type='checkbox'],[type='radio']{box-sizing:border-box;padding:0;}[type='number']::-webkit-inner-spin-button,[type='number']::-webkit-outer-spin-button{height:auto;}[type='search']{-webkit-appearance:textfield;outline-offset:-2px;}[type='search']::-webkit-search-cancel-button,[type='search']::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details,menu{display:block;}summary{display:list-item;}canvas{display:inline-block;}template{display:none;}a,area,button,input,label,select,summary,textarea,[tabindex]{-ms-touch-action:manipulation;touch-action:manipulation;}[hidden]{display:none;}[aria-busy='true']{cursor:progress;}[aria-controls]{cursor:pointer;}[aria-hidden='false'][hidden]:not(:focus){clip:rect(0,0,0,0);display:inherit;position:absolute;}[aria-disabled]{cursor:default;}"]),eY=(0,eZ.iv)(["@font-face{font-family:'swiper-icons';src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA') format('woff');font-weight:400;font-style:normal;}:root{--swiper-theme-color:#007aff;}.swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;}.swiper-container-vertical > .swiper-wrapper{flex-direction:column;}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;box-sizing:content-box;}.swiper-container-android .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0);}.swiper-container-multirow > .swiper-wrapper{flex-wrap:wrap;}.swiper-container-multirow-column > .swiper-wrapper{flex-wrap:wrap;flex-direction:column;}.swiper-container-free-mode > .swiper-wrapper{transition-timing-function:ease-out;margin:0 auto;}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;}.swiper-slide-invisible-blank{visibility:hidden;}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto;}.swiper-container-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height;}.swiper-container-3d{perspective:1200px;}.swiper-container-3d .swiper-wrapper,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-cube-shadow{transform-style:preserve-3d;}.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10;}.swiper-container-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,0.5),rgba(0,0,0,0));}.swiper-container-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,0.5),rgba(0,0,0,0));}.swiper-container-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,0.5),rgba(0,0,0,0));}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,0.5),rgba(0,0,0,0));}.swiper-container-css-mode > .swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;}.swiper-container-css-mode > .swiper-wrapper::-webkit-scrollbar{display:none;}.swiper-container-css-mode > .swiper-wrapper > .swiper-slide{scroll-snap-align:start start;}.swiper-container-horizontal.swiper-container-css-mode > .swiper-wrapper{scroll-snap-type:x mandatory;}.swiper-container-vertical.swiper-container-css-mode > .swiper-wrapper{scroll-snap-type:y mandatory;}:root{--swiper-navigation-size:44px;}.swiper-button-prev,.swiper-button-next{position:absolute;top:50%;width:calc(var(--swiper-navigation-size) / 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(-1 * var(--swiper-navigation-size) / 2);z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color));}.swiper-button-prev.swiper-button-disabled,.swiper-button-next.swiper-button-disabled{opacity:0.35;cursor:auto;pointer-events:none;}.swiper-button-prev:after,.swiper-button-next:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none !important;letter-spacing:0;text-transform:none;font-variant:initial;line-height:1;}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{left:10px;right:auto;}.swiper-button-prev:after,.swiper-container-rtl .swiper-button-next:after{content:'prev';}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{right:10px;left:auto;}.swiper-button-next:after,.swiper-container-rtl .swiper-button-prev:after{content:'next';}.swiper-button-prev.swiper-button-white,.swiper-button-next.swiper-button-white{--swiper-navigation-color:#ffffff;}.swiper-button-prev.swiper-button-black,.swiper-button-next.swiper-button-black{--swiper-navigation-color:#000000;}.swiper-button-lock{display:none;}:root{}.swiper-pagination{position:absolute;text-align:center;transition:300ms opacity;transform:translate3d(0,0,0);z-index:10;}.swiper-pagination.swiper-pagination-hidden{opacity:0;}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-container-horizontal > .swiper-pagination-bullets{bottom:10px;left:0;width:100%;}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0;}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(0.33);position:relative;}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1);}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1);}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(0.66);}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(0.33);}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(0.66);}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(0.33);}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:0.2;}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer;}.swiper-pagination-bullet-active{opacity:1;background:var(--swiper-pagination-color,var(--swiper-theme-color));}.swiper-container-vertical > .swiper-pagination-bullets{right:10px;top:50%;transform:translate3d(0px,-50%,0);}.swiper-container-vertical > .swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block;}.swiper-container-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px;}.swiper-container-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:200ms transform,200ms top;}.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px;}.swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap;}.swiper-container-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:200ms transform,200ms left;}.swiper-container-horizontal.swiper-container-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:200ms transform,200ms right;}.swiper-pagination-progressbar{background:rgba(0,0,0,0.25);position:absolute;}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top;}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top;}.swiper-container-horizontal > .swiper-pagination-progressbar,.swiper-container-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0;}.swiper-container-vertical > .swiper-pagination-progressbar,.swiper-container-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:4px;height:100%;left:0;top:0;}.swiper-pagination-white{--swiper-pagination-color:#ffffff;}.swiper-pagination-black{--swiper-pagination-color:#000000;}.swiper-pagination-lock{display:none;}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,0.1);}.swiper-container-horizontal > .swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%;}.swiper-container-vertical > .swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%;}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,0.5);border-radius:10px;left:0;top:0;}.swiper-scrollbar-cursor-drag{cursor:move;}.swiper-scrollbar-lock{display:none;}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center;}.swiper-zoom-container > img,.swiper-zoom-container > svg,.swiper-zoom-container > canvas{max-width:100%;max-height:100%;object-fit:contain;}.swiper-slide-zoomed{cursor:move;}:root{}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;animation:swiper-preloader-spin 1s infinite linear;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent;}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff;}.swiper-lazy-preloader-black{--swiper-preloader-color:#000;}@keyframes swiper-preloader-spin{100%{transform:rotate(360deg);}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000;}.swiper-container-fade.swiper-container-free-mode .swiper-slide{transition-timing-function:ease-out;}.swiper-container-fade .swiper-slide{pointer-events:none;transition-property:opacity;}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none;}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto;}.swiper-container-cube{overflow:visible;}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%;}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none;}.swiper-container-cube.swiper-container-rtl .swiper-slide{transform-origin:100% 0;}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto;}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-prev,.swiper-container-cube .swiper-slide-next + .swiper-slide{pointer-events:auto;visibility:visible;}.swiper-container-cube .swiper-slide-shadow-top,.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;background:#000;opacity:0.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0;}.swiper-container-flip{overflow:visible;}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none;}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto;}.swiper-container-flip .swiper-slide-shadow-top,.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden;}"]),eX=(0,eZ.vJ)([""," "," "," img{max-width:100%;height:auto;}body{color:",";background:",";width:100%;padding:0;}button{color:inherit;border:0;padding:0;font-family:",";}ul{padding:0;margin:0;}a{text-decoration:none;color:",";&:hover{text-decoration:underline;}}input{border-radius:0;}"],eK,e$,eY,eG.ZP.colors.text,eG.ZP.colors.background,eG.ZP.fonts.primary,eG.ZP.colors.primary),eQ=G(25617),eJ=G(44467),e0=G(27272),e1=G(67891);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,eE.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var e2=(0,e0.oM)({name:"navigation",initialState:{navigationOpen:!1,mobileSearchOpen:!1},reducers:{openNavigation:function(R){R.navigationOpen=!0},switchNavigation:function(R){return R.navigationOpen&&(0,e1.clearAllBodyScrollLocks)(),_objectSpread(_objectSpread({},R),{},{navigationOpen:!R.navigationOpen})},closeAll:function(R){return(0,e1.clearAllBodyScrollLocks)(),_objectSpread(_objectSpread({},R),{},{navigationOpen:!1,mobileSearchOpen:!1})},switchMobileSearch:function(R){return R.navigationOpen&&(0,e1.clearAllBodyScrollLocks)(),_objectSpread(_objectSpread({},R),{},{mobileSearchOpen:!R.mobileSearchOpen})},setFooterData:function(R,W){R.footerData=W.payload}}}),e3=e2.actions,e5=e3.switchNavigation,e4=e3.openNavigation,e8=e3.closeAll,e6=e3.switchMobileSearch,e7=e3.setFooterData,e9=e2.reducer,tt=G(17391),tr=G(57908),tn=eZ.ZP.div.withConfig({displayName:"Wrapperstyles__StyledWrapper",componentId:"sc-g14kvo-0"})(["position:relative;overflow:hidden;> div:focus{outline:none;}&:after{content:'';background:",";width:100%;height:100%;left:0;top:0;opacity:0;position:absolute;z-index:",";pointer-events:none;transition:opacity ",";",";",";}"],eG.ZP.colors.backgroundDark,eG.ZP.zIndexes.header-1,eG.ZP.transitions.default,function(R){return"off"!==R.focusMode&&(0,eZ.iv)(["pointer-events:all;opacity:0.3;"])},function(R){return"overHeader"===R.focusMode&&(0,eZ.iv)(["z-index:",";"],eG.ZP.zIndexes.focusLayer)}),newRouteSameAsOld=function(R,W){return R.split("?")[0]===W.split("?")[0]},Wrapper_Wrapper=function(R){var W=R.children,G=(0,eQ.I0)(),J=(0,eQ.v9)(function(R){return R}),et=J.body.breakpoint,er=J.overlays.focusMode,en=(0,eI.useRef)(null),ei=(0,eR.useRouter)();return(0,eI.useEffect)(function(){var resized=function(){var R=(0,tr.bc)();"string"==typeof R&&R!==et&&G((0,eJ.dq)(R)),!(0,tr.tq)(R)&&(0,tr.t9)(et)&&G(e8())},routeChange=function(R){newRouteSameAsOld(R,ei.asPath)||G(e8()),G((0,tt.w)()),G((0,tt.UA)()),G((0,tt.oW)("off"))},routeChangeCompleted=function(R){en&&en.current&&!newRouteSameAsOld(R,ei.asPath)&&(en.current.setAttribute("tabindex","-1"),en.current.focus())};return window.addEventListener("resize",resized),ei.events.on("routeChangeStart",routeChange),ei.events.on("routeChangeComplete",routeChangeCompleted),resized(),function(){window.removeEventListener("resize",resized),ei.events.off("routeChangeStart",routeChange),ei.events.off("routeChangeComplete",routeChangeCompleted)}},[et]),(0,eI.useEffect)(function(){var routeChange=function(R){newRouteSameAsOld(R,ei.asPath)||G(e8())};return ei.events.on("routeChangeStart",routeChange),function(){ei.events.off("routeChangeStart",routeChange)}},[et,ei.asPath]),(0,eV.jsxs)(tn,{focusMode:er,children:[(0,eV.jsx)(eX,{}),(0,eV.jsx)("div",{ref:en}),W,!1]})},ti=G(68846),to=G(34085),ta=G(42389),ts={initial:{opacity:1,y:0,transition:{duration:.5,ease:"easeOut"}},out:{opacity:0,y:0,transition:{duration:.15,ease:"easeOut"}},in:{opacity:1,y:0,transition:{duration:.25,delay:.25,ease:"easeOut"}}},tc={initial:{opacity:0,transition:{duration:0,delay:1.5,ease:"easeOut"}},done:{opacity:0,transition:{duration:.1,ease:"easeOut"}},loading:{opacity:1,transition:{duration:.25,delay:1.5,ease:"easeOut"}}},PageLoader_PageLoader=function(R){var W=R.children,G=R.bg,J=(0,eR.useRouter)(),et=(0,eI.useState)(!1),er=et[0],en=et[1];return(0,eI.useEffect)(function(){var pageLoadStarted=function(R){var W=R.substring(0,R.indexOf("?"));(W&&W!==J.pathname||!W)&&en(!0)},pageLoadDone=function(){en(!1)};return J.events.on("routeChangeStart",pageLoadStarted),J.events.on("routeChangeError",pageLoadDone),J.events.on("routeChangeComplete",pageLoadDone),function(){J.events.off("routeChangeStart",pageLoadStarted),J.events.off("routeChangeError",pageLoadDone),J.events.off("routeChangeComplete",pageLoadDone)}},[J]),(0,eV.jsxs)(to._4,{bg:G,children:[(0,eV.jsx)(ti.ww.div,{style:{position:"relative",overflow:"hidden"},variants:ts,initial:"initial",animate:er?"out":"in",children:W}),(0,eV.jsx)(ti.M_,{exitBeforeEnter:!0,children:er&&(0,eV.jsx)(ti.ww.div,{style:{pointerEvents:"none"},variants:tc,initial:"initial",animate:"loading",exit:"done",children:(0,eV.jsx)(to.tO,{children:(0,eV.jsx)(ta.Z,{})})})})]})},tl=G(14890),tu=(0,e0.oM)({name:"userLocation",initialState:{location:void 0,isSet:!1},reducers:{setUserLocation:function(R,W){return{location:W.payload,isSet:!0}}}});tu.actions.setUserLocation;var td=tu.reducer,tp=G(63844),tf=G(47575),th=G(96279),tg=(0,tl.UY)({userLocation:td,duplicatePersons:tp.ZP,navigation:e9,body:eJ.ZP,overlays:tt.ZP,lifeSuggest:tf.Z,themesAndPlacesMaps:th.Z}),tm=G(28500),ty=G(51517),tv=G(71383),tb=G(21775),t_=G(74498),tx=eZ.ZP.span.withConfig({displayName:"Hamburgerstyles__StyledHamburger",componentId:"sc-1odacv1-0"})(["box-sizing:content-box;width:","px;height:","px;position:relative;> div,> div:before,> div:after{",";content:'';position:absolute;background:",";width:","px;height:","px;border-radius:","px;transition:transform ",",background ",";}> div{top:","px;&::before{left:0;top:-","px;transform-origin:top left;}&::after{left:0;top:","px;transform-origin:bottom left;}}",";"],15,12,(0,eW.TE)("left","extraSmall"),function(R){return R.open?eG.ZP.colors.black:eG.ZP.colors.text},15,2,2,eG.ZP.transitions.quick,eG.ZP.transitions.quick,5,5,5,function(R){return R.open&&(0,eZ.iv)(["> div{background:transparent;&::before{transform:rotate(45deg);}&::after{transform:rotate(-45deg);}}"])}),tw=G(96071),backgroundWidth=function(R){return(0,tb.Z)({css:"width: calc(".concat(eG.ZP.grid.width[R],"px + 50vw - ").concat(eG.ZP.grid.width[R]/2,"px  - ").concat(eG.ZP.grid.gutter,"px)"),min:R})},tS=eZ.ZP.div.withConfig({displayName:"Headerstyles__StyledHeader",componentId:"sc-od31eq-0"})(["width:100%;position:absolute;top:0;height:auto;z-index:",";.headroom{width:100%;> ","{",";",";}",";&--unfixed{position:relative;transform:translateY(0);transition:background-color ",";}&--scrolled{transition:transform ",";}&--unpinned{position:fixed;transform:translateY(-100%);}&--pinned{position:fixed;transform:translateY(0%);}&:before{content:'';position:absolute;height:100%;width:calc(100vw - ","px);top:0;left:0;z-index:-1;background:",";",";",";",";",";",";}}.navWrapper{","{display:none;}",";}.logoWrapper{position:relative;z-index:",";a{width:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;","}}.logo{",";color:",";svg{width:100%;}transition:color ",";}.hamburgerButton{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;width:50%;position:relative;z-index:",";","}.searchWrapper{input::placeholder{font-size:14px;}}.mobileSearchOpenButton{",";flex-direction:row;justify-content:flex-end;align-items:center;width:100%;button{",";",";",";background:",";color:",";svg{z-index:",";}&:focus{","}}}"],eG.ZP.zIndexes.header,eF.Z,(0,eW.TE)("height",eG.ZP.consts.headerHeight),(0,eU.Z)("overflow",{xs:"hidden",lg:"visible"}),tw.Z.lg(ec||(ec=(0,tv.Z)(["\n            display: flex;\n            align-items: center;\n\n            .icons {\n                display: none;\n            }\n        "]))),eG.ZP.transitions.quick,eG.ZP.transitions.default,eG.ZP.grid.gutter-1,eG.ZP.colors.background,(0,eW.TE)("border-bottom-right-radius",eG.ZP.consts.headerCorner),backgroundWidth("md"),backgroundWidth("lg"),backgroundWidth("xl"),backgroundWidth("xxl"),tx,t_.Z.lg(el||(el=(0,tv.Z)(["\n            order: -1;\n            "," {\n                display: block;\n            }\n        "])),tx),eG.ZP.zIndexes.navigationIcons,tw.Z.lg(eu||(eu=(0,tv.Z)(["\n                justify-content: flex-start;\n            "]))),(0,eW.TE)("max-width",{xs:80,lg:90}),function(R){return R.navigationOpen?eG.ZP.colors.black:eG.ZP.colors.text},eG.ZP.transitions.quick,eG.ZP.zIndexes.navigationIcons,tw.Z.lg(ed||(ed=(0,tv.Z)(["\n            display: none;\n        "]))),(0,eU.Z)("display",{xs:"flex",lg:"none"}),(0,eW.TE)("border-bottom-right-radius",eG.ZP.consts.headerCorner),(0,eW.TE)("height",eG.ZP.consts.headerHeight),(0,eW.TE)("width",eG.ZP.consts.headerHeight),eG.ZP.colors.white,function(R){return R.navigationOpen?eG.ZP.colors.black:eG.ZP.colors.text},eG.ZP.zIndexes.navigationIcons,t_.Z.lg(ep||(ep=(0,tv.Z)(["\n                    svg {\n                      outline: auto 5px -webkit-focus-ring-color;\n                    }\n                "])))),tT=eZ.ZP.div.withConfig({displayName:"GlobalSearchInputstyles__StyledGlobalSearchInput",componentId:"sc-p7i3al-0"})(["",";width:100%;form{",";display:flex;flex-direction:row;justify-content:space-between;align-items:center;width:100%;max-width:440px;background:",";input{",";",";color:",";border:0;background:transparent;position:relative;flex:1;&::placeholder{font-size:","px;color:",";opacity:0.5;}}.searchButton{",";",";height:100%;color:",";cursor:pointer;display:flex;flex-direction:row;justify-content:center;align-items:center;}.closeButton{display:none;position:absolute;top:50%;transform:translate(0,-50%);left:","px;color:",";}.inputWrapper{position:initial;}.suggestionsWrapper{z-index:-1;.suggestions{width:100%;",";border-top:1px solid ",";&:before{content:'';position:absolute;width:100%;height:","px;top:-","px;left:0;background:",";z-index:-1;}}}}"],(0,eU.Z)("display",{xs:"none",lg:"flex"}),(0,eW.TE)("border-bottom-right-radius",eG.ZP.consts.headerCorner),eG.ZP.colors.white,(0,eW.TE)("padding","small"),(0,eW.TE)("min-width",{md:140}),eG.ZP.colors.text,eG.ZP.fontSizes.sm,eG.ZP.colors.text,(0,eW.TE)("padding-right",{xs:eG.ZP.dist.sm,sm:eG.ZP.dist.md,xl:eG.ZP.dist.lg}),(0,eW.TE)("padding-left",{xs:eG.ZP.dist.sm,sm:eG.ZP.dist.md,xl:eG.ZP.dist.lg}),eG.ZP.colors.text,eG.ZP.grid.gutter,eG.ZP.colors.text,(0,eW.TE)("border-bottom-right-radius",eG.ZP.consts.headerCorner),eG.ZP.colors.blue,eG.ZP.consts.headerCorner.xs,eG.ZP.consts.headerCorner.xs,eG.ZP.colors.white),tO=G(93466),tP=G(1702),tC=G(59239),GlobalSearchInput_GlobalSearchInput=function(){(0,eQ.v9)(function(R){return R}).overlays.focusMode;var R=(0,eQ.I0)(),W=(0,eI.useState)(0),G=W[0],J=W[1],et=(0,eI.useState)(!1),er=et[0],en=et[1];return(0,eI.useEffect)(function(){R((0,tt.oW)(G>2&&er?"underHeader":"off"))},[G,er]),(0,eV.jsx)(tT,{children:(0,eV.jsx)(tO.Z,{propagateSearchTermLength:function(R){J(R)},propagateInputFocus:function(){en(function(R){return!R})},placeholder:tC.Z.headerInputPlaceholder,children:(0,eV.jsx)("button",{className:"searchButton",type:"submit",title:"Zoek",children:(0,eV.jsx)(tP.Z,{name:"search",size:15})})})})},tk=G(42786),tE=eZ.ZP.ul.withConfig({displayName:"Navigationstyles__StyledNavigation",componentId:"sc-1fosmfo-0"})(["position:relative;width:100%;height:100%;list-style-type:none;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;flex:1;"," .socials{display:none;}li{",";display:flex;justify-content:flex-start;align-items:center;border-bottom:2px solid transparent;margin-top:2px;a{color:",";position:relative;}&:last-of-type{margin-right:0;}&.activeItem{border-bottom:2px solid ",";a{color:",";}}}",""],tk.Z.lg(ef||(ef=(0,tv.Z)(["\n        justify-content: space-between;\n    "]))),(0,eW.TE)("margin-right",{xs:0,lg:0,xl:eG.ZP.dist.xl}),eG.ZP.colors.text,eG.ZP.colors.primary,eG.ZP.colors.primary,function(R){return t_.Z.lg(eh||(eh=(0,tv.Z)(["\n        ",";\n        padding-bottom: ","px;\n        position: fixed;\n        width: 100%;\n        height: 100vh;\n        opacity: 0;\n        left: 0;\n        display: flex;\n        flex-direction: column;\n        align-items: stretch;\n        justify-content: flex-start;\n        background: ",";\n        z-index: ",";\n        transition: transform ",", opacity ",";\n        visibility: hidden;\n\n        .socials {\n            display: block;\n            position: absolute;\n            bottom: 0;\n            left: 0;\n            width: 100%;\n            background-color: ",";\n            margin: 0;\n\n            ul {\n                display: flex;\n                justify-content: center;\n                align-items: center;\n                height: ","px;\n            }\n\n            a {\n                color: ",";\n                margin: 0 ","px;\n\n                svg {\n                    width: 20px;\n                    height: 20px;\n                }\n            }\n        }\n\n        > li:not(.socials) {\n            margin: 0;\n            width: 100%;\n            border-bottom: 1px solid ",";\n            display: flex;\n            justify-content: stretch;\n            align-items: stretch;\n\n            a {\n                font-size: ","px;\n                font-weight: 700;\n                width: 100%;\n                padding: 0 ","px;\n                line-height: 80px;\n            }\n\n            &.activeItem {\n                a {\n                    color: ",";\n                }\n            }\n\n            &:first-of-type {\n                border-top: 1px solid ",";\n            }\n\n            &:last-of-type {\n                margin-top: 50px;\n            }\n        }\n\n\n        &:before {\n            content: '';\n            position: fixed;\n            width: 100%;\n            height: 100vh;\n            left: 0;\n            top:0;\n            z-index: -1;\n            background: ",";\n            pointer-events: none;\n        }\n\n        ",";\n    "])),(0,eW.TE)("padding-top",eG.ZP.consts.headerHeight),75,eG.ZP.colors.tertiary,eG.ZP.zIndexes.navigation,eG.ZP.transitions.quick,eG.ZP.transitions.quick,eG.ZP.colors.white,75,eG.ZP.colors.tertiary,eG.ZP.dist.sm,eG.ZP.colors.tertiaryDark,eG.ZP.fontSizes.lg,eG.ZP.grid.gutter,eG.ZP.colors.text,eG.ZP.colors.tertiaryDark,eG.ZP.colors.tertiary,R.open&&(0,eZ.iv)(["transform:translate(0,0);opacity:1;visibility:visible;"]))}),tj=G(37184),tA=eZ.ZP.a.withConfig({displayName:"NavigationItemstyles__StyledNavigationItem",componentId:"sc-54udtx-0"})(["",";",";",";color:",";text-decoration:none;font-weight:300;transition:opacity ",";white-space:nowrap;&:hover{opacity:0.72;text-decoration:none;","{transform:translateX(4px);}}","{",";position:absolute;top:0;right:","px;transition:transform ",";}"],(0,eW.JB)({xs:eG.ZP.fontSizes.sm,md:14}),(0,eW.TE)("padding-top","extraSmall"),(0,eW.TE)("padding-bottom","extraSmall"),eG.ZP.colors.white,eG.ZP.transitions.quick,tj.Z,tj.Z,(0,eU.Z)("display",{xs:"block",md:"none"}),eG.ZP.grid.gutter,eG.ZP.transitions.quick),NavigationItem_NavigationItem=function(R){var W=R.title,G=R.url,J=R.path;return(0,eV.jsx)(eq(),{legacyBehavior:!0,href:J||G,as:J?G:void 0,passHref:!0,children:(0,eV.jsxs)(tA,{title:W,children:[W," ",(0,eV.jsx)(tP.Z,{name:"arrow",size:14})]})})},tD=eZ.ZP.ul.withConfig({displayName:"SocialsListstyles__StyledSocialsList",componentId:"sc-5vrv2a-0"})(["list-style-type:none;display:flex;flex-direction:row;justify-content:flex-start;align-items:flex-start;li{a{display:inline;transition:"," opacity;&:hover{opacity:0.72;}}}"],eG.ZP.transitions.quick),tI=G(25978),SocialIcon_SocialIcon=function(R){var W=R.size,G=R.href,J=(0,eI.useState)(),et=J[0],er=J[1];return(0,eI.useEffect)(function(){er(G.includes("instagram")?"instagram":G.includes("pinterest")?"pinterest":G.includes("facebook")?"facebook":G.includes("youtube")?"youtube":G.includes("linkedin")?"linkedin":G.includes("mailto")?"mail":G.includes("oorlogsbronnen")||G.includes("localhost")?"link":"")},[G,er]),et?(0,eV.jsxs)("a",{href:G,target:"_blank",rel:"noopener",title:"Netwerk Oorlogsbronnen op ".concat(et),children:[(0,eV.jsx)(tP.Z,{name:et,size:W||20}),(0,eV.jsxs)(tI.Z,{children:["Netwerk Oorlogsbronnen op ",et]})]}):null},SocialsList_SocialsList=function(R){var W=R.socialUrls;return W?(0,eV.jsx)(tD,{children:W.map(function(R){return(0,eV.jsx)("li",{children:(0,eV.jsx)(SocialIcon_SocialIcon,{href:R,size:15})},R)})}):null},tM=G(38377),tL=["primary","secondary"],tR=["title"];function Navigation_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Navigation_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Navigation_ownKeys(Object(G),!0).forEach(function(W){(0,eE.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Navigation_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var menuItemIsActive=function(R,W){if(R.startsWith(W))return!0;var G=R.split("/");if(G.length>2){var J=G[1];if(("bron"===J||"thema"===J)&&W.startsWith("/bronnen")||"tijdlijn"===J&&W.startsWith("/mensen")||"kaart"===J&&W.startsWith("/kaarten")||"artikel"===J&&W.startsWith("/artikelen"))return!0}return!1},Navigation_Navigation=function(R){var W=R.primary,G=(R.secondary,(0,ej.Z)(R,tL)),J=(0,eI.useState)(""),et=J[0],er=J[1],en=(0,eR.useRouter)();return(0,eI.useEffect)(function(){en&&en.asPath&&er(en.asPath)},[en]),(0,eV.jsxs)(tE,Navigation_objectSpread(Navigation_objectSpread({},G),{},{children:[W.map(function(R){var W=R.title,G=(0,ej.Z)(R,tR);return(0,eV.jsx)("li",{className:menuItemIsActive(et,G.url)?"activeItem":"",children:(0,eV.jsx)(NavigationItem_NavigationItem,Navigation_objectSpread({title:W},G))},W)}),(0,eV.jsx)("li",{className:"socials",children:(0,eV.jsx)(SocialsList_SocialsList,{socialUrls:tM.K})})]}))},Hamburger_Hamburger=function(R){var W=R.open;return(0,eV.jsx)(tx,{open:W,children:(0,eV.jsx)("div",{})})},tN=G(72489),tB=G(70205),tZ=G(75347),tU=eZ.ZP.div.withConfig({displayName:"MobileGlobalSearchstyles__StyledMobileGlobalSearch",componentId:"sc-7uqo6q-0"})(["",";position:fixed;width:100%;min-height:100vh;flex:1;opacity:0;left:0;background:",";z-index:",";transition:transform ",",opacity ",";visibility:hidden;overflow:scroll;"," ",";&:before{content:'';position:fixed;width:100%;height:100vh;left:0;z-index:-1;background:",";pointer-events:none;}","{margin-top:","px;width:100%;display:flex;flex-direction:row;justify-content:stretch;align-items:flex-start;","{margin-left:10px;}input{height:45px;border:0;border-bottom:2px solid ",";flex:1;}.inputWrapper{width:calc(100% - 55px);}.suggestionsWrapper{margin-top:","px;.suggestions,","{padding-top:","px;padding-right:0;padding-left:0;display:flex;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-items:flex-start;li{width:100%;}}}}"],(0,eW.TE)("padding-top",eG.ZP.consts.headerHeight),eG.ZP.colors.white,eG.ZP.zIndexes.navigation,eG.ZP.transitions.quick,eG.ZP.transitions.quick,tw.Z.lg(eg||(eg=(0,tv.Z)(["\n        display: none;\n    "]))),function(R){return R.open&&(0,eZ.iv)(["opacity:1;visibility:visible;"])},eG.ZP.colors.white,tN.Z,eG.ZP.dist.md,tB.ZP,eG.ZP.colors.secondaryShade,eG.ZP.dist.md,tZ.Z,eG.ZP.dist.md),tF=G(19445),MobileGlobalSearch_MobileGlobalSearch=function(R){var W=R.open;return(0,eV.jsx)(tU,{open:W,children:(0,eV.jsx)(eF.Z,{children:(0,eV.jsx)(ez.Z,{cols:[1],children:(0,eV.jsx)(tO.Z,{placeholder:tC.Z.headerInputPlaceholder,children:(0,eV.jsx)(tF.Z,{icon:"search",type:"submit",size:45,color:eG.wL.primary,iconColor:eG.wL.white})})})})})},tz=eZ.ZP.a.withConfig({displayName:"SkipLinkstyles__StyledSkipLink",componentId:"sc-fhhkrv-0"})(["position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;&:focus-within{position:static;width:auto;height:auto;.skipInner{position:absolute;background:",";font-size:","px;color:",";text-decoration:none;padding:","px;display:block;border-radius:","px;z-index:9999;outline:auto 5px -webkit-focus-ring-color;}}"],eG.ZP.colors.secondaryDark,eG.ZP.fontSizes.lg,eG.ZP.colors.white,eG.ZP.dist.xs,eG.ZP.borderRadius.xs),tH=G(72015),SkipLink_SkipLink=function(R){var W=R.id,G=R.to,J=R.click;return(0,eV.jsx)(tz,{href:"#".concat(W),onClick:J,children:(0,eV.jsxs)("div",{className:"skipInner",children:[tH.Z.skipTo," ",G]})})};function Header_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Header_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Header_ownKeys(Object(G),!0).forEach(function(W){(0,eE.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Header_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var Header_Header=function(R){var W=R.nav,G=(0,eQ.v9)(function(R){return R}),J=G.navigation,et=J.navigationOpen,er=J.mobileSearchOpen,en=G.body.mobile,ei=(0,eI.useRef)(null),eo=(0,eI.useRef)(null),es=(0,eQ.I0)(),setBodyScroll=function(){var R=arguments.length>0&&void 0!==arguments[0]&&arguments[0];ei.current&&(R?(0,e1.enableBodyScroll)(ei.current.inner):(0,e1.disableBodyScroll)(ei.current.inner))};return(0,eI.useEffect)(function(){et?(er&&es(e6()),setBodyScroll(!1)):setBodyScroll(!0)},[et]),(0,eI.useEffect)(function(){er?(et&&es(e5()),setBodyScroll(!1)):setBodyScroll(!0)},[er]),(0,eV.jsxs)(eV.Fragment,{children:[(0,eV.jsx)(SkipLink_SkipLink,{id:"main-nav",to:"Hoofdnavigatie",click:function(){en&&es(e4())}}),(0,eV.jsx)(SkipLink_SkipLink,{id:"main-content",to:"Inhoud"}),(0,eV.jsx)(tS,{navigationOpen:et,children:(0,eV.jsx)(ty.Z,{disableInlineStyles:!0,ref:ei,children:(0,eV.jsxs)(eF.Z,{as:"nav",children:[(0,eV.jsx)(ez.Z,{className:"logoWrapper",cols:{xs:4/12,lg:3/24,xl:2/12},direction:"row",alignItems:"center",justifyContent:{xs:"center",lg:"flex-start"},children:(0,eV.jsx)(eq(),{legacyBehavior:!0,href:"/",children:(0,eV.jsxs)("a",{children:[(0,eV.jsx)(tP.Z,{className:"logo",name:"logo"}),(0,eV.jsx)(tI.Z,{children:"Home"})]})})}),(0,eV.jsxs)(ez.Z,{tabIndex:"-1",className:"navWrapper",cols:{xs:4/12,lg:.5,xl:.5},direction:"row",children:[(0,eV.jsxs)("button",{ref:eo,className:"hamburgerButton",type:"button",onClick:function(){es(e5())},children:[(0,eV.jsx)(Hamburger_Hamburger,{open:et}),(0,eV.jsx)(tI.Z,{children:"Hoofdnavigatie openen"})]}),(0,eV.jsx)(Navigation_Navigation,Header_objectSpread(Header_objectSpread({},W),{},{open:et})),et&&(0,eV.jsx)("button",{role:"button",onFocus:function(){eo&&eo.current&&eo.current.focus()}})]}),(0,eV.jsxs)(ez.Z,{className:"searchWrapper",cols:{xs:4/12,sm:2/12,lg:9/24,xl:4/12},push:{sm:2/12,md:2/12,lg:0},direction:"row",justifyContent:"flex-end",children:[(0,eV.jsx)("div",{className:"mobileSearchOpenButton",children:(0,eV.jsxs)("button",{onClick:function(){es(e6())},type:"button",children:[(0,eV.jsx)(tP.Z,{name:er?"close":"search",size:er?14:16}),(0,eV.jsx)(tI.Z,{children:"Zoekveld openen"})]})}),(0,eV.jsx)(MobileGlobalSearch_MobileGlobalSearch,{open:er}),(0,eV.jsx)(GlobalSearchInput_GlobalSearchInput,{})]})]})})})]})},tq=eZ.ZP.div.withConfig({displayName:"FooterListstyles__StyledFooterList",componentId:"sc-1n2dkn3-0"})(["color:",";ul{list-style-type:none;li{margin-bottom:","px;a{",";color:",";}}}"],eG.ZP.colors.white,eG.ZP.dist.xs,(0,eW.JB)("small"),eG.ZP.colors.white),tV=eZ.ZP.div.withConfig({displayName:"Footerstyles__StyledFooter",componentId:"sc-x8p6qw-0"})(["",";",";background-color:",";","{width:auto;}.contact{",";width:100%;color:",";a{display:block;color:",";text-decoration:underline;margin:","px ","px 0 0;}","{margin-top:","px;}}.sponsors{margin-top:","px;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:","px;img{max-height:60px;}","}.footerExtra{padding-top:","px;border-top:1px solid ",";.disclaimerMenu{ul{display:flex;flex-direction:row;li{margin-right:","px;padding-right:","px;position:relative;&:before{content:'•';position:absolute;top:0;right:-","px;transform:translate(-100%,2px);}&:last-of-type{&:before{content:none;}}}}}.awards{display:flex;align-items:center;"," span{",";margin-right:17px;display:inline-block;width:90px;color:",";}a > img{width:48px;margin-right:17px;}a:first-of-type > img{width:69px;}}}"],(0,eW.TE)("padding-top","extraLarge"),(0,eW.TE)("padding-bottom","extraLarge"),eG.ZP.colors.backgroundGray,tq,(0,eW.JB)("small"),eG.ZP.colors.white,eG.ZP.colors.white,eG.ZP.dist.sm,eG.ZP.dist.sm,tD,eG.ZP.dist.sm,eG.ZP.dist.xl,eG.ZP.grid.gutter,t_.Z.md(em||(em=(0,tv.Z)(["\n            flex-wrap: wrap;\n\n            img {\n                max-width: 50%;\n            }\n        "]))),eG.ZP.dist.md,eG.ZP.colors.gray,eG.ZP.grid.gutter/4,eG.ZP.grid.gutter/4,eG.ZP.grid.gutter/4,t_.Z.lg(ey||(ey=(0,tv.Z)(["\n                margin-bottom: ","px;\n            "])),eG.ZP.dist.xs),(0,eW.JB)("small"),eG.ZP.colors.white),tW=G(77081),tG=eZ.ZP.div.withConfig({displayName:"FooterTitlestyles__StyledFooterTitle",componentId:"sc-n584ve-0"})(["",";",";",";text-transform:uppercase;border-bottom:1px solid ",";color:",";font-family:",";"],(0,eW.JB)("small"),(0,eW.TE)("margin-bottom","small"),(0,eW.TE)("padding-bottom","small"),eG.ZP.colors.gray,eG.ZP.colors.grayLight,eG.ZP.fonts.secondary),FooterTitle_FooterTitle=function(R){var W=R.children;return(0,eV.jsx)(tG,{children:W})},FooterList_FooterList=function(R){var W=R.title,G=R.items,J=R.className;return(0,eV.jsxs)(tq,{className:J,children:[W&&(0,eV.jsx)(FooterTitle_FooterTitle,{children:W}),G&&(0,eV.jsx)("ul",{children:G.map(function(R){var W=R.title,G=R.url;return(0,eV.jsx)("li",{children:(0,eV.jsx)(tW.Z,{url:G,prefetch:!1,children:W})},"".concat(W,"-").concat(G))})})]})},t$={address:"Vijzelstraat 32",zipcode:"1017 HL",city:"Amsterdam",mail:"info@oorlogsbronnen.nl"},tK=eZ.ZP.div.withConfig({displayName:"NewsletterBlockstyles__StyledNewsletterBlock",componentId:"sc-1ebmz0u-0"})(["color:",";width:100%;display:flex;flex-direction:column;align-items:flex-start;.title{",";",";max-width:400px;line-height:1.7;font-weight:bold;}.subtitle{",";}form{display:flex;width:100%;input{flex:1;border:0;border-bottom:2px solid ",";margin-right:","px;&::placeholder{font-weight:400;}}button{background:",";color:",";&:hover{background:",";}}","}.error{margin-top:","px;display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;padding:","px;background:",";border-radius:","px;}.done{background:",";color:",";padding:","px;border-radius:","px;}"],eG.ZP.colors.white,(0,eW.JB)("h4"),(0,eW.TE)("margin-bottom","extraSmall"),(0,eW.TE)("margin-bottom","small"),eG.ZP.colors.white,eG.ZP.dist.md,eG.ZP.colors.white,eG.ZP.colors.text,eG.ZP.colors.whiteDark,t_.Z.sm(ev||(ev=(0,tv.Z)(["\n\n            input {\n            margin-right: ","px;\n                width: 100%;\n            }\n            button {\n                  font-size: ","px;\n                  max-width: 240px;\n                 height: 44px;\n            }\n        "])),eG.ZP.dist.xs,eG.ZP.fontSizes.sm),eG.ZP.dist.xs,eG.ZP.dist.xs,eG.ZP.colors.black,eG.ZP.borderRadius.xs,eG.ZP.colors.backgroundDark,eG.ZP.colors.white,eG.ZP.dist.sm,eG.ZP.borderRadius.xs),tY=G(9558),tX={newsletter:{title:"Ontvang onze nieuwsbrief",subtitle:"De Oorlogsbronnen.nl nieuwsbrief bevat een overzicht van de meest interessante en relevante onderwerpen, artikelen en bronnen van dit moment.",placeholder:"Vul je emailadres in",submit:"Aanmelden",notValid:"Dit is geen geldig emailadres",notFilled:"Vul hierboven je emailadres in",wentWrong:"Er ging iets mis, probeer het (later) nog eens",alreadySubscribed:"Je bent al aangemeld voor de nieuwsbrief",done:"Bedankt voor je aanmelding"},disclaimerMenu:[{url:"/privacy",title:"Privacy"},{url:"/cookies",title:"Cookies"},{url:"/toegankelijkheid",title:"Toegankelijkheid"}]},tQ=G(74552),tJ=(et=(0,ek.Z)(eD().mark(function _callee(R,W){var G,J;return eD().wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return G={statusCode:500},et.prev=1,et.next=4,tQ.W.post("".concat("https://nginx.main.oorlogsbronnen-backend.de3.amazee.io","/").concat(R)).type("form").send(W);case 4:if(!((J=et.sent)&&J.statusCode<300&&J.body)){et.next=9;break}return et.abrupt("return",{statusCode:J.statusCode,data:J.body});case 9:return et.abrupt("return",{statusCode:J.statusCode});case 10:et.next=16;break;case 12:return et.prev=12,et.t0=et.catch(1),console.error("Error posting to ".concat(R,":"),et.t0),et.abrupt("return",G);case 16:case"end":return et.stop()}},_callee,null,[[1,12]])})),function(R,W){return et.apply(this,arguments)}),t0=(er=(0,ek.Z)(eD().mark(function _callee(R){var W;return eD().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,G.next=3,tJ("newsletter",{listid:"31da075c00",email:R});case 3:if(!((W=G.sent)&&W.data&&200===W.statusCode)){G.next=8;break}return G.abrupt("return",{success:W.data.nobstatus&&"pending"===W.data.nobstatus,reason:W.data.nobstatus});case 8:return G.abrupt("return",{success:!1,reason:W.data.nobstatus});case 9:G.next=15;break;case 11:return G.prev=11,G.t0=G.catch(0),console.error(G.t0),G.abrupt("return",{success:!1,reason:"error"});case 15:case"end":return G.stop()}},_callee,null,[[0,11]])})),function(R){return er.apply(this,arguments)}),t1=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,NewsletterBlock_NewsletterBlock=function(R){var W=R.title,G=R.subtitle,J=(0,eI.useState)(!1),et=J[0],er=J[1],en=(0,eI.useState)(!1),ei=en[0],eo=en[1],es=(0,eI.useState)(""),ec=es[0],el=es[1],eu=(0,eI.useState)(""),ed=eu[0],ep=eu[1],ef=(0,eI.useState)(!1),eh=ef[0],eg=ef[1],em=(0,eI.useState)(!1),ey=em[0],ev=em[1];return(0,eI.useEffect)(function(){el(""),ed&&0!==ed.length?(eo(!0),ed.length>5&&er(t1.test(ed.toLowerCase()))):(eo(!1),er(!1))},[ed]),(0,eV.jsxs)(tK,{children:[(0,eV.jsx)("div",{className:"title",children:W}),(0,eV.jsx)("div",{className:"subtitle",children:G}),eh?(0,eV.jsx)("div",{className:"done",children:tX.newsletter.done}):(0,eV.jsxs)(eV.Fragment,{children:[(0,eV.jsx)("form",{onSubmit:function(R){if(R.preventDefault(),!ei){el(tX.newsletter.notFilled);return}if(!et){el(tX.newsletter.notValid);return}el(""),ev(!0),t0(ed).then(function(R){R.success?eg(!0):el("already_subscribed"===R.reason?tX.newsletter.alreadySubscribed:tX.newsletter.wentWrong)}).finally(function(){ev(!1)})},children:ey?(0,eV.jsx)(tP.Z,{name:"spinner",size:18}):(0,eV.jsxs)(eV.Fragment,{children:[(0,eV.jsx)("input",{type:"text",placeholder:tX.newsletter.placeholder,"aria-label":"E-mailadres waarop je de nieuwsbrief wilt ontvangen",name:"mail",value:ed,onChange:function(R){ep(R.target.value)}}),(0,eV.jsx)(tY.Z,{type:"submit",children:tX.newsletter.submit})]})}),ec.length>0&&(0,eV.jsx)("div",{className:"error",children:ec})]})]})};function Footer_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Footer_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Footer_ownKeys(Object(G),!0).forEach(function(W){(0,eE.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Footer_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var Footer_Footer=function(R){var W=R.navigationLists;if(!W)return null;var G=W.length+3;return(0,eV.jsx)(tV,{children:(0,eV.jsxs)(eF.Z,{children:[(0,eV.jsxs)(ez.Z,{cols:{xs:1,md:.5,lg:1/G*2},top:"small",direction:"column",justifyContent:"flex-start",alignItems:"flex-start",bottom:"footerSpacing",children:[(0,eV.jsx)(NewsletterBlock_NewsletterBlock,{title:tX.newsletter.title,subtitle:tX.newsletter.subtitle}),(0,eV.jsxs)("div",{className:"sponsors",children:[(0,eV.jsx)("img",{src:"/img/wo2net.png",alt:"WO2NET"}),(0,eV.jsx)("img",{src:"/img/vws.png",alt:"Ministerie van volksgezondheid, welzijn en sport"}),(0,eV.jsx)("img",{src:"/img/vfonds.svg",alt:"VFonds"})]})]}),(0,eV.jsx)(ez.Z,{cols:{xs:.5,md:.5,lg:1/G},bottom:"footerSpacing",children:(0,eV.jsxs)("div",{className:"contact",children:[(0,eV.jsx)(FooterTitle_FooterTitle,{children:"Contact"}),(0,eV.jsxs)("p",{children:[t$.address,(0,eV.jsx)("br",{})," ",t$.zipcode," ",t$.city]}),(0,eV.jsx)("a",{href:"mailto:".concat(t$.mail),title:"Mail naar Netwerk Oorlogsbronnen",children:t$.mail}),(0,eV.jsx)(eq(),{legacyBehavior:!0,href:"/[type]",as:"/pers-en-media",children:(0,eV.jsx)("a",{title:"Mail naar Netwerk Oorlogsbronnen",children:"Pers en media"})}),(0,eV.jsx)(SocialsList_SocialsList,{socialUrls:tM.K})]})}),W.map(function(R){return(0,eV.jsx)(ez.Z,{bottom:"footerSpacing",cols:{xs:.5,lg:1/G},children:(0,eI.createElement)(FooterList_FooterList,Footer_objectSpread(Footer_objectSpread({},R),{},{key:R.title}))},R.title)}),(0,eV.jsxs)(ez.Z,{cols:{xs:1},direction:{xs:"column",sm:"row"},justifyContent:{xs:"start",sm:"space-between"},className:"footerExtra",children:[(0,eV.jsxs)("div",{className:"awards",children:[(0,eV.jsx)("span",{children:"Deze website is bekroond met:"}),(0,eV.jsx)("a",{href:"https://dutchinteractiveawards.nl/",target:"_blank",rel:"noopener nofollow",children:(0,eV.jsx)("img",{src:"/img/DIA.png",alt:"Deze website is bekroond met 3 DIA awards"})}),(0,eV.jsx)("a",{href:"https://www.lovieawards.com/",target:"_blank",rel:"noopener nofollow",children:(0,eV.jsx)("img",{src:"/img/LOVIE.png",alt:"Deze website is bekroond met 4 Lovie awards"})})]}),(0,eV.jsx)(FooterList_FooterList,{items:tX.disclaimerMenu,className:"disclaimerMenu"})]})]})})},t2={primary:[{title:"Artikelen",url:"/artikelen"},{title:"Bronnen",url:"/bronnen"},{title:"Mensen",url:"/mensen",path:"/mensen"},{title:"Kaarten",url:"/kaarten",path:"/kaarten"},{title:"Over Oorlogsbronnen",url:"/over-oorlogsbronnen",path:"/[type]"}]},t3={default:{title:"Er ging iets mis",text:"Deze pagina bestaat niet of er ging iets anders mis",button:{text:"Terug naar home",href:"https://www.oorlogsbronnen.nl"}},404:{title:"Deze pagina bestaat niet",button:{text:"Terug naar home",href:"/"}}},molecules_Error_Error=function(R){var W=R.code,G=W&&t3[W]?t3[W]:t3.default,J=G.title,et=G.text,er=G.button;return(0,eV.jsx)(eV.Fragment,{children:(0,eV.jsx)(eF.Z,{bottom:"headerSpacing",children:(0,eV.jsxs)(ez.Z,{cols:[1],direction:"column",justifyContent:"center",alignItems:"center",top:"headerSpacing",children:[(0,eV.jsxs)("h1",{children:[!1,J]}),et&&(0,eV.jsx)(ez.Z,{top:"large",bottom:"large",justifyContent:"center",children:et}),er&&(0,eV.jsx)(ez.Z,{top:"large",bottom:"large",justifyContent:"center",children:(0,eV.jsx)(tY.Z,{href:er.href,color:eG.wL.secondary,children:er.text})})]})})})},t5=G(34799),t4=G(69766),t8={transformation:function(R){return{navigationLists:R.map(function(R){var W=R.name,G=R.child;return{title:W,items:G&&G.map(function(R){return{title:R.name,url:R.url_str}})}})}},endpoint:"".concat(t4.W9,"footermenu")},t6=eZ.ZP.div.withConfig({displayName:"CookieBannerstyles__StyledCookieBanner",componentId:"sc-14rz170-0"})(["position:fixed;bottom:0;width:100%;z-index:",";background-color:",";.text{.title{margin-bottom:","px;}p{",";}button{color:",";cursor:pointer;}}.settings{",";background:",";display:",";label{cursor:pointer;",";}input[type='checkbox']{margin-right:","px;}","}.close{",";",";cursor:pointer;position:absolute;}"],eG.ZP.zIndexes.overlay,eG.ZP.colors.white,eG.ZP.dist.xs,(0,eW.JB)("small"),eG.ZP.colors.secondary,(0,eW.TE)("padding-bottom","small"),eG.ZP.colors.white,function(R){return R.settingsOpen?"flex":"none"},(0,eW.JB)("small"),eG.ZP.dist.xxs,t_.Z.md(eb||(eb=(0,tv.Z)(["\n            ",":first-of-type {\n                margin-bottom: ","px;\n            }\n        "])),ez.Z,eG.ZP.dist.sm),(0,eW.TE)("top","small"),(0,eW.TE)("right","small")),t7=G(36808),t9=G.n(t7),helpers_setTrackingCookies=function(R){var W=!(arguments.length>1)||void 0===arguments[1]||arguments[1];t9().set(R,W?"1":"0",{expires:365,secure:!0}),window&&window.dataLayer&&window.dataLayer.push({event:R})},re=G(77021),rt={title:"Wij gebruiken cookies",textWithMarketingCookie:'Wij plaatsen functionele cookies om deze website naar behoren te laten functioneren, analytische cookies om het gebruik van de website te kunnen meten en marketing cookies jouw ervaring op de website nog beter te maken. Meer informatie vind je in onze <a href="/cookies" title="Cookiesverklaring">cookie-</a> en <a href="/privacy" title="Privacycerklaring">privacyverklaring</a>. Liever geen cookies?',textWithoutMarketingCookie:'Wij plaatsen functionele cookies om deze website naar behoren te laten functioneren en analytische cookies om het gebruik van de website te kunnen meten. Meer informatie vind je in onze <a href="/cookies" title="Cookiesverklaring">cookie-</a> en <a href="/privacy" title="Privacycerklaring">privacyverklaring</a>.',settingsOpen:"Pas dan je cookie-instellingen aan.",analytical:"Ik wil functionele en analytische cookies. Deze cookies worden geplaatst om onze website goed te laten functioneren en om bezoekstatistieken te verzamelen op basis van geanonimiseerde ip-adressen.",marketing:"Ik wil marketing cookies. Deze cookies worden zowel door ons, als door derde partijen gebruikt om gericht aanbiedingen te doen en marketing inzichten te verkrijgen.",save:"Opslaan"},rr=G(54814),rn=G(30488),ri=G.n(rn),CookieBanner_CookieBanner=function(){var R=(0,eI.useState)(!1),W=R[0],G=R[1],J=(0,eI.useState)(!0),et=J[0],er=J[1],en=(0,eI.useState)(!1),ei=en[0],eo=en[1],es=(0,eR.useRouter)(),save=function(){G(!1),re.Tq&&helpers_setTrackingCookies(re.Tq||"",et)};return(0,eI.useEffect)(function(){return t9().get(re.oP)||G(!0),helpers_setTrackingCookies(re.oP),es.events.on("routeChangeStart",function(){save()}),es.events.off("routeChangeStart",function(){save()})},[]),W?(0,eV.jsxs)(t6,{settingsOpen:ei,children:[(0,eV.jsx)("div",{className:"text",children:(0,eV.jsx)(eF.Z,{top:"small",bottom:"small",children:(0,eV.jsxs)(ez.Z,{cols:{xs:1},direction:"column",alignItems:"flex-start",children:[(0,eV.jsx)("h5",{className:"title",children:rt.title}),re.Tq?(0,eV.jsxs)("p",{children:[ri()(rt.textWithMarketingCookie),(0,eV.jsx)("button",{type:"button",onClick:function(){eo(function(R){return!R})},children:rt.settingsOpen})]}):(0,eV.jsx)("p",{children:ri()(rt.textWithoutMarketingCookie)})]})})}),re.Tq&&(0,eV.jsx)("div",{className:"settings",children:(0,eV.jsxs)(eF.Z,{children:[(0,eV.jsx)(ez.Z,{cols:{xs:1,md:.5},direction:"row",children:(0,eV.jsxs)("label",{htmlFor:"analytical",children:[(0,eV.jsx)("input",{type:"checkbox",id:"analytical",name:"analytical",disabled:!0,checked:!0}),rt.analytical]})}),(0,eV.jsx)(ez.Z,{cols:{xs:1,md:.5},direction:"row",children:(0,eV.jsxs)("label",{htmlFor:"marketing",children:[(0,eV.jsx)("input",{type:"checkbox",id:"marketing",name:"marketing",checked:et,onChange:function(){er(function(R){return!R})}}),rt.marketing]})}),(0,eV.jsx)(ez.Z,{cols:{xs:1},top:"extraSmall",justifyContent:"flex-end",children:(0,eV.jsx)(rr.Z,{click:save,children:rt.save})})]})}),(0,eV.jsx)("button",{className:"close",type:"button",onClick:save,children:(0,eV.jsx)(tP.Z,{name:"close",size:16})})]}):null},ro=G(9008),ra=G.n(ro),rs=G(4131),rc=G.n(rs),rl=(0,eV.jsx)(rc(),{id:"123151297",children:["@font-face{font-family:'Relative';font-weight:300;src:url('/fonts/Relative-Book.woff');}","@font-face{font-family:'Relative';font-weight:400;src:url('/fonts/Relative-Medium.woff');}","@font-face{font-family:'Relative';font-weight:700;src:url('/fonts/Relative-Bold.woff');}","@font-face{font-family:'Relative Faux';src:url('/fonts/Relative-Faux.woff');}"]}),Meta_Meta=function(R){var W=R.title,G=R.description,J=R.image,et=(0,eR.useRouter)();return(0,eV.jsxs)(eV.Fragment,{children:[(0,eV.jsxs)(ra(),{children:[(0,eV.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),(0,eV.jsx)("meta",{charSet:"utf-8"}),(0,eV.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/img/favicon/apple-touch-icon.png"}),(0,eV.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"}),(0,eV.jsx)("link",{rel:"icon",type:"image/png",sizes:"16x16",href:"/img/favicon/favicon-16x16.png"}),(0,eV.jsx)("link",{rel:"manifest",href:"/img/favicon/site.webmanifest"}),(0,eV.jsx)("link",{rel:"mask-icon",href:"/img/favicon/safari-pinned-tab.svg",color:"#f93a1d"}),(0,eV.jsx)("meta",{name:"msapplication-TileColor",content:"#000000"}),(0,eV.jsx)("meta",{name:"theme-color",content:"#000000"}),(0,eV.jsx)("title",{children:W?"".concat(W," - Netwerk Oorlogsbronnen"):"Netwerk Oorlogsbronnen"}),G&&(0,eV.jsx)("meta",{name:"description",content:G}),W&&(0,eV.jsx)("meta",{property:"og:title",content:W}),G&&(0,eV.jsx)("meta",{property:"og:description",content:G}),J&&(0,eV.jsx)("meta",{property:"og:image",content:J}),(0,eV.jsx)("meta",{property:"og:url",content:"".concat("https://www.oorlogsbronnen.nl").concat(et&&et.asPath)})]}),rl]})},ru=G(40111),rd=G(77191),rp=G(18257),GlobalZoomModal_GlobalZoomModal=function(R){(0,rd.Z)(R);var W=(0,eQ.I0)(),G=(0,eQ.v9)(function(R){return R.overlays}),J=G.zoomOpen,et=G.zoomContent;return(0,eV.jsx)(rp.Z,{hasClosed:function(){(0,tt.HT)()},image:null==et?void 0:et.image,meta:null==et?void 0:et.meta,personSuggestHref:null==et?void 0:et.personSuggestHref,open:J&&et,close:function(){W((0,tt.UA)())}},null==et?void 0:et.image.src)},rf=G(27812),rh=G(99604),rg=G(40579),rm={xs:65,sm:75,md:85,lg:120,xl:120,xxl:120},ry=(0,eZ.ZP)(ti.ww.div).withConfig({displayName:"Previewerstyles__StyledPreviewer",componentId:"sc-ik2pt3-0"})([".innerPreview{position:fixed;top:0;left:0;width:100%;height:100%;z-index:",";overflow:visible;max-width:","px;display:flex;flex-direction:column;justify-content:center;align-items:center;","}.thumbnails{position:relative;border-top:1px solid ",";overflow:hidden;min-height:115px;&:before,&:after{content:'';",";",";",";position:absolute;z-index:2;left:0;background:linear-gradient(-90deg,rgba(10,10,10,0) 0%,rgba(10,10,10,1) 90%);}&:after{left:auto;right:0;transform:rotate(180deg);}.offset{",";",";display:flex;flex-direction:row;justify-content:center;align-items:flex-start;position:relative;transition:transform ease-in-out 0.2s;button{cursor:pointer;}.thumbnailsItem{",";",";flex-shrink:0;",",",",.moreWrapper{width:100%;height:100%;padding:4px;}&.active{",",","{padding:0;border:4px solid ",";}.moreItem{transform:scale(1.05);}}&:hover{text-decoration:none;}&:first-child{&:before{background:linear-gradient(-90deg,rgba(10,10,10,0) 0%,rgba(10,10,10,1) 90%);}}}.moreItem{cursor:pointer;background-color:",";border-radius:12px;width:100%;height:100%;color:",";padding:16px 16px 7px;display:flex;flex-direction:column;justify-content:space-between;transition:background ",";text-align:left;h5{",";font-weight:300;}","{justify-content:flex-end;transition:transform ",";}&:hover{background-color:",";text-decoration:none;","{transform:translateX(4px);}}","}}}.closeButton{position:absolute;top:","px;right:","px;z-index:1;color:",";display:flex;flex-direction:row;justify-content:flex-start;align-items:center;cursor:pointer;","{background-color:",";width:45px;height:45px;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background ",",color ",";border-radius:50%;margin-left:8px;}&:hover{","{background-color:",";color:",";}}}",""],eG.ZP.zIndexes.overlay,eG.ZP.grid.width.xxl+eG.ZP.grid.gutter,tw.Z.md(e_||(e_=(0,tv.Z)(["\n            top: 0;\n            left: 50%;\n            transform: translateX(-50%);\n\n            &:before {\n                content: '';\n                position: absolute;\n                width: 50vw;\n                height: 100%;\n                top: 0;\n                right: 50%;\n                background: ",";\n                z-index: -1;\n            }\n\n            &:after {\n                content: '';\n                position: absolute;\n                width: 50vw;\n                height: 100%;\n                top: 0;\n                left: 50%;\n                background: ",";\n                z-index: -1;\n            }\n        "])),eG.ZP.colors.backgroundExtraDark,eG.ZP.colors.backgroundDark),eG.ZP.colors.backgroundDark,(0,eW.TE)("width",rm),(0,eW.TE)("height",rm),(0,eW.TE)("top","large"),(0,eW.TE)("padding-top","large"),(0,eW.TE)("padding-bottom","large"),(0,eW.TE)("width",rm),(0,eW.TE)("height",rm),rh.Z,rg.Z,rh.Z,rg.Z,eG.ZP.colors.white,eG.ZP.colors.primary,eG.ZP.colors.white,eG.ZP.transitions.quick,(0,eW.JB)({xs:12,lg:16}),tj.Z,eG.ZP.transitions.quick,eG.ZP.colors.primaryDark,tj.Z,t_.Z.lg(ex||(ex=(0,tv.Z)(["\n                    border-radius: 6px;\n                    padding: 5px 5px 3px;\n\n                    "," {\n                        max-width: 16px;\n                    }\n\n                "])),tj.Z),eG.ZP.grid.gutter,eG.ZP.grid.gutter,eG.ZP.colors.white,tj.Z,eG.ZP.colors.backgroundSemi,eG.ZP.transitions.quick,eG.ZP.transitions.quick,tj.Z,eG.ZP.colors.white,eG.ZP.colors.black,t_.Z.xl(ew||(ew=(0,tv.Z)(["\n        .innerPreview {\n          overflow-y: scroll;\n\n          .closeButton {\n            top: ","px;\n            right: ","px;\n\n          }\n        }\n    "])),eG.ZP.grid.gutter/2,eG.ZP.grid.gutter/2)),rv=G(16835),rb=G(86569),r_=eZ.ZP.div.withConfig({displayName:"PreviewerSourceDetailstyles__StyledPreviewerSourceDetail",componentId:"sc-1bnqutk-0"})(["height:100%;width:100%;.imageWrapper{",";height:100%;display:flex;flex:1;flex-direction:column;justify-content:flex-start;align-items:stretch;max-width:1000px;background-color:",";.upper{",";",";",";display:flex;flex-direction:row;justify-content:stretch;align-items:center;height:100%;max-height:100%;flex:0 1 auto;.stretchWrapper{width:100%;height:100%;position:relative;}","{flex-shrink:0;&.prev{margin-right:","px;transform:scaleX(-1) rotate(-90deg);}&.next{margin-left:","px;transform:rotate(-90deg);}}",",","{width:100%;height:100%;position:absolute;}","{min-width:80%;min-height:80%;}.videoWrapper{height:100%;width:100%;position:relative;.videoInnerWrapper{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;font-family:'object-fit: contain';video{object-position:center center;height:100%;width:100%;object-fit:contain;}}}.moreWrapper{height:100%;width:100%;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;a{",";",";width:100%;max-width:calc(100% - 60px);background-color:",";height:auto;border-radius:12px;color:",";display:flex;flex-direction:column;justify-content:space-between;transition:background ",";position:relative;&:hover{text-decoration:none;background-color:",";","{transform:translateX(4px);}}.label{",";",";line-height:1;font-weight:700;}","{",";",";position:absolute;transition:transform ",";","}.more-thumbnails{position:relative;height:100%;width:calc(100% - 50px);display:flex;flex-direction:row;justify-content:flex-start;align-items:center;","{",";position:relative;aspect-ratio:1;height:auto;border:3px solid ",";&:first-of-type{transform:rotate(4deg);}&:nth-of-type(2){margin-left:-6px;transform:rotate(-8deg) translateY(3px);}&:last-of-type{transform:rotate(4deg) translateY(3px);}}}}}}}.infoWrapper{",";",";display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;height:100%;max-width:600px;background:",";color:",";padding:","px;&--last{justify-content:center;",";}.texts{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;}.title{",";margin-bottom:16px;}.buttons{",";",";",";display:flex;flex-direction:row;justify-content:flex-start;align-items:center;z-index:2;width:100%;","{margin:0 ","px 0 0;}}.description{margin-top:16px;margin-bottom:16px;",";}.attributes{margin-top:16px;}","}",""],(0,eW.TE)("padding-top","large"),eG.ZP.colors.backgroundExtraDark,(0,eW.TE)("padding-left","large"),(0,eW.TE)("padding-right","large"),(0,eW.TE)("padding-bottom","large"),tB.ZP,eG.ZP.dist.lg,eG.ZP.dist.lg,rh.Z,rg.Z,rg.Z,(0,eW.TE)("padding-block",{xs:24,md:32,lg:50}),(0,eW.TE)("padding-inline",{xs:16,md:24,lg:42}),eG.ZP.colors.primary,eG.ZP.colors.white,eG.ZP.transitions.quick,eG.ZP.colors.primaryDark,tj.Z,(0,eW.JB)({xs:24,md:32,lg:50}),(0,eW.TE)("margin-bottom","medium"),tj.Z,(0,eW.TE)("bottom",{xs:20,md:28,lg:44}),(0,eW.TE)("right",{xs:16,md:24,lg:42}),eG.ZP.transitions.quick,t_.Z.md(eS||(eS=(0,tv.Z)(["\n                            max-width: 32px;\n                        "]))),rh.Z,(0,eW.TE)("width",{xs:50,md:100}),eG.ZP.colors.white,(0,eW.TE)("width",{xs:320,xl:420}),(0,eW.TE)("padding-top",{xs:0,md:20,lg:60,xl:120}),eG.ZP.colors.backgroundDark,eG.ZP.colors.white,eG.ZP.grid.gutter,(0,eW.TE)("padding-bottom",{xs:0,md:20,lg:60,xl:120}),(0,eW.JB)("h4"),(0,eW.TE)("margin-top","medium"),(0,eW.TE)("margin-bottom","large"),(0,eW.TE)("padding-bottom","large"),rb.Z,eG.ZP.grid.gutter/2,function(R){return R.tooHigh&&!R.textOpen&&(0,eZ.iv)(["max-height:","px;position:relative;overflow:hidden;margin-bottom:0;&:before{content:'';position:absolute;width:100%;height:60px;bottom:0;left:0;background-image:linear-gradient( 180deg,rgba(255,255,255,0) 0,"," 90% );}"],390,eG.ZP.colors.backgroundDark)},tw.Z.md(eT||(eT=(0,tv.Z)(["\n            overflow-y: auto;\n        "]))),t_.Z.lg(eO||(eO=(0,tv.Z)(["\n        .imageWrapper {\n            height: auto;\n            flex: 0;\n            width: 100%;\n            min-height: 680px;\n            padding-top: 80px;\n\n            ","\n            .upper {\n                "," {\n                    z-index: 1;\n                }\n\n                "," {\n                    flex-shrink: 0;\n                    z-index: 2;\n\n                    &.prev {\n                        margin-right: -22.5px;\n                    }\n\n                    &.next {\n                        margin-left: -22.5px;\n                    }\n\n                    &:disabled {\n                        visibility: hidden;\n                    }\n                }\n            }\n        }\n\n        .infoWrapper {\n            height: auto;\n            max-width: 100%;\n            width: 100%;\n\n        }\n    "])),t_.Z.md(eP||(eP=(0,tv.Z)(["\n                min-height: 520px;\n\n            "]))),rh.Z,tB.ZP)),rx=G(72459),rw=G(40805),rS=G(77444),rT={close:"Sluiten",toDetail:"Bekijken"},rO=G(24957),rP=G(90281),rC=G(92529),rk=G(48111),rE=G(68595),rj=G(84941);function PreviewerSourceDetail_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function PreviewerSourceDetail_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?PreviewerSourceDetail_ownKeys(Object(G),!0).forEach(function(W){(0,eE.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):PreviewerSourceDetail_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var PreviewerSourceDetail_PreviewerSourceDetail=function(R){var W,G,J=R.activeItem,et=(R.items,R.firstItemActive),er=R.lastItemActive,en=R.navigatedItems,ei=R.children,eo=(0,rk.Z)(400),es=(0,rv.Z)(eo,2),ec=es[0],el=es[1],eu=(0,eI.useState)(!1),ed=eu[0],ep=eu[1],ef=(0,eI.useMemo)(function(){if((null==J?void 0:J.type)==="item"){if(J.item.flat.contentUrl)return(0,rx.i)(J.item.flat.contentUrl.value);if(J.item.flat.video)return(0,rx.i)(J.item.flat.video.value)}},[J]);return(0,eV.jsxs)(r_,{tooHigh:el,textOpen:ed,as:rS.Z,direction:{xs:"column",lg:"row"},justifyContent:{xs:"flex-start",lg:"center"},alignItems:"flex-start",children:[(0,eV.jsxs)("div",{className:"imageWrapper",children:[(0,eV.jsxs)("div",{className:"upper",children:[(0,eV.jsx)(tF.Z,{color:eG.ZP.colors.white,type:"button",icon:"caretThin",className:"prev",size:40,click:function(){en(-1)},disabled:et,screenReaderText:"Vorige bron"}),(0,eV.jsx)("div",{className:"stretchWrapper",children:(null==J?void 0:J.type)==="item"&&(0,eV.jsx)(eV.Fragment,{children:ef?(0,eV.jsx)("div",{className:"videoWrapper",children:(0,eV.jsx)("div",{className:"videoInnerWrapper",children:(0,eV.jsx)(rP.Z,{autoPlay:!0,src:ef})},null===(W=J.item.enriched.thumbnail)||void 0===W?void 0:W.src)}):(0,eI.createElement)(rw.Z,PreviewerSourceDetail_objectSpread(PreviewerSourceDetail_objectSpread({},J.item.enriched.thumbnail),{},{className:"sourceImage",fit:"contain",useFallback:!0,fallbackClass:J.item.primaryClass,key:null===(G=J.item.enriched.thumbnail)||void 0===G?void 0:G.src}))})}),(0,eV.jsx)(tF.Z,{color:eG.ZP.colors.white,type:"button",icon:"caretThin",className:"next",size:40,click:function(){en(1)},disabled:er,screenReaderText:"Volgende bron"})]}),ei]}),(0,eV.jsx)("div",{className:"infoWrapper ".concat((null==J?void 0:J.type)==="last"?"infoWrapper--last":""),children:(null==J?void 0:J.type)==="item"&&(0,eV.jsxs)(eV.Fragment,{children:[(0,eV.jsxs)("div",{ref:ec,className:"texts",children:[(0,eV.jsx)("h2",{className:"title",children:J.item.title}),J.item.enriched&&J.item.enriched.dateObj&&(J.item.enriched.dateObj.rangeAsString||J.item.enriched.dateObj.asString)&&(0,eV.jsx)(rC.Z,{children:J.item.enriched.dateObj.rangeAsString||J.item.enriched.dateObj.asString}),J.item.flat.description&&(0,eV.jsx)("div",{className:"description",children:(0,eV.jsx)(rO.Z,{className:"description",description:J.item.flat.description,limit:300})}),el&&(0,eV.jsx)(tY.Z,{click:function(){ep(function(R){return!R})},color:eG.ZP.colors.transparent,icon:ed?"minus":"plus",children:ed?rE.Z.detail.buttons.collapseText:rE.Z.detail.buttons.expandText})]}),(0,eV.jsx)("div",{className:"attributes",children:(0,eV.jsx)(rj.Z,{disableAnimation:!0,detailed:J.item.detailed?{creator:J.item.detailed.creator,place:J.item.detailed.place,subjects:J.item.detailed.subjects}:void 0,cols:{xs:1},noGutter:!0,isOpen:!0})}),(0,eV.jsx)("div",{className:"buttons",children:(0,eV.jsx)(rb.Z,{color:eG.ZP.colors.primary,arrowIcon:!0,iconRight:!0,reverseHover:!0,children:(0,eV.jsx)(eq(),{legacyBehavior:!0,href:J.item.sourceUrl,children:(0,eV.jsxs)("a",{title:rT.toDetail,onClick:function(){t9().set(re.xG,"1")},children:[rT.toDetail," ",(0,eV.jsx)(tP.Z,{size:14,name:"arrow"})]})})})})]})})]})},analytics_trackSourceViewedInPreview=function(R,W,G,J){window.dataLayer&&window.dataLayer.push({event:"GAEvent",eventCategory:"bron bekeken in previewer",bronnaam:R||"Titel van bron onbekend",brontype:W||"Type van bron onbekend",bronorganisatie:G||"Uitgever van bron onbekend",bronthemas:J||["Geen thema bekend"]})},rA=G(63784),rD=G(59817);function Previewer_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Previewer_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Previewer_ownKeys(Object(G),!0).forEach(function(W){(0,eE.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Previewer_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var rI={hidden:{pointerEvents:"none",height:"100%",opacity:0,width:"100%",transition:{ease:"easeIn",duration:.25}},visible:{pointerEvents:"auto",height:"100%",opacity:1,width:"100%",transition:{ease:"easeIn",duration:.25}}},rM={xs:5,sm:5,md:7,lg:5,xl:9,xxl:9},Previewer_Previewer=function(){var R=(0,eI.useState)(),W=R[0],G=R[1],J=(0,eQ.v9)(function(R){return R.body}).breakpoint,et=(0,eI.useRef)(null),er=(0,eQ.v9)(function(R){return R.overlays}),en=er.previewerOpen,ei=er.previewerContent,eo=(0,eQ.I0)(),es=(0,eR.useRouter)(),ec=(0,eI.useState)([]),el=ec[0],eu=ec[1],ed=(0,eI.useState)("preview"),ep=ed[0],ef=ed[1],closePreview=function(){es.replace({query:(0,rD.h)(Previewer_objectSpread(Previewer_objectSpread({},es.query),{},(0,eE.Z)({},ep,null)))},void 0,{shallow:!0}).then(function(){eo((0,tt.PP)())})};(0,eI.useEffect)(function(){!es.query[ep]&&en&&eo((0,tt.PP)())},[es.query]),(0,eI.useEffect)(function(){null!=ei&&ei.items&&(ef(tC.Z.classTranslation(ei.classIndicator)),eu((0,rf.Z)(ei.items.map(function(R){return{type:"item",item:R}}))))},[ei]),(0,eI.useEffect)(function(){el.length>0&&(null==ei?void 0:ei.indexToOpen)!==void 0&&G(el[ei.indexToOpen])},[el,null==ei?void 0:ei.indexToOpen]),(0,eI.useEffect)(function(){et.current&&en&&(0,e1.disableBodyScroll)(et.current)},[et.current,en]),(0,eI.useEffect)(function(){en||((0,e1.clearAllBodyScrollLocks)(),eu([]),G(void 0))},[en]),(0,eI.useEffect)(function(){if((null==W?void 0:W.type)==="item"){var R,G;analytics_trackSourceViewedInPreview((0,rA.Z)(W.item.title),W.item.primaryClass,null===(R=W.item.flat.publisher)||void 0===R?void 0:R.value,null===(G=W.item.connected.subject)||void 0===G?void 0:G.map(function(R){var W;return(null==R?void 0:null===(W=R.prefLabel)||void 0===W?void 0:W.value)||""}))}},[W]),(0,eI.useEffect)(function(){var handleKeyboardClick=function(R){("Esc"===R.key||"Escape"===R.key)&&closePreview()};return document.addEventListener("keydown",handleKeyboardClick,!1),function(){document.removeEventListener("keydown",handleKeyboardClick,!1)}},[]);var _navigatedItems=function(R){ei&&(eo((0,tt.d4)(R)),es.replace({query:(0,rD.C)(Previewer_objectSpread(Previewer_objectSpread({},es.query),{},(0,eE.Z)({},ep,R)))},void 0,{shallow:!0}))},eh=(0,eI.useMemo)(function(){var R=rm[J];return(null==ei?void 0:ei.indexToOpen)===void 0?0:R*(Math.floor(rM[J]/2)-1-(null==ei?void 0:ei.indexToOpen))},[null==ei?void 0:ei.indexToOpen]);return(0,eV.jsx)(ry,{children:(0,eV.jsx)(ti.ww.div,{variants:rI,className:"innerPreview",ref:et,animate:W&&ei?"visible":"hidden",initial:"hidden",children:W&&ei?(0,eV.jsxs)(eV.Fragment,{children:[(0,eV.jsx)(PreviewerSourceDetail_PreviewerSourceDetail,{activeItem:W,items:el,navigatedItems:function(R){_navigatedItems(ei.indexToOpen+R)},firstItemActive:0===ei.indexToOpen,lastItemActive:ei.indexToOpen===el.length-1,children:(0,eV.jsx)("div",{className:"thumbnails",children:(0,eV.jsxs)("div",{className:"offset",style:{transform:"translateX(".concat(eh,"px)")},children:[el.map(function(R,W){if((null==R?void 0:R.type)==="item"&&R.item)return(0,eV.jsx)("button",{type:"button",title:"Ga naar slide ".concat(W),onClick:function(){_navigatedItems(W)},disabled:W===ei.indexToOpen,className:"thumbnailsItem ".concat(W===ei.indexToOpen?"active":""),children:(0,eV.jsx)(rw.Z,Previewer_objectSpread(Previewer_objectSpread({},R.item.enriched.thumbnail),{},{fit:"cover",useFallback:!0,fallbackClass:R.item.primaryClass}))},R.item.id)}),ei.moreSlide&&(0,eV.jsx)(eq(),{href:ei.moreSlide.href,className:"thumbnailsItem thumbnailsItem--last",children:(0,eV.jsx)("div",{className:"moreWrapper",children:(0,eV.jsxs)("div",{className:"moreItem",children:[(0,eV.jsx)("h5",{children:ei.moreSlide.label}),(0,eV.jsx)(tP.Z,{name:"arrowLong",size:25})]})})},"more")]})})}),(0,eV.jsxs)("button",{onClick:closePreview,type:"button",className:"closeButton",children:[rT.close,(0,eV.jsx)(tP.Z,{name:"close",size:15})]})]}):null})})};G(25124),G(85525);var rL=eZ.ZP.div.withConfig({displayName:"DuplicatePersonsBarstyles__StyledDuplicatePersonsBar",componentId:"sc-4x1cdt-0"})(["position:fixed;bottom:0;width:100%;z-index:",";.innerBar{width:100%;background-color:",";padding:9px 20px;position:relative;height:50px;.label{font-weight:500;}.persons{font-family:",";color:",";margin-left:6px;}.closeButton{position:absolute;width:44px;height:44px;right:10px;top:3px;}","{display:inline-flex;margin-left:15px;min-height:32px;padding-left:15px;padding-right:15px;}","}.innerBarSubmitted{padding:9px 20px;display:flex;align-items:center;justify-content:space-between;position:relative;width:100%;height:50px;background-color:",";color:",";.submittedText{span{font-weight:700;}}.submitterEmailAddress{margin-left:","px;display:inline-block;input{padding-left:15px;height:32px;background-color:",";border:none;border-top-left-radius:20px;border-bottom-left-radius:20px;}button{padding:0 20px;height:32px;background-color:",";color:",";border-top-right-radius:20px;border-bottom-right-radius:20px;}}&--failed{background-color:",";}}.inactiveInnerBar{width:100%;background-color:rgba(0,0,0,0.7);padding:9px 20px;display:flex;flex-direction:row;height:50px;justify-content:flex-end;align-items:center;","{min-height:32px;}}"],eG.ZP.zIndexes.header,eG.ZP.colors.white,eG.ZP.fonts.secondary,eG.ZP.colors.textLight,rb.Z,t_.Z.lg(eC||(eC=(0,tv.Z)(["\n            height: 80px;\n\n            "," {\n                margin: 8px 0;\n            }\n        "])),rb.Z),eG.ZP.colors.tertiary,eG.ZP.colors.black,eG.ZP.dist.sm,eG.ZP.colors.white,eG.ZP.colors.backgroundDark,eG.ZP.colors.white,eG.ZP.colors.primary,rb.Z),rR=G(11626),DuplicatePersonsBar_DuplicatePersonsBar=function(R){var W=R.showOnThisPage,G=(0,eQ.v9)(function(R){return R}),J=G.duplicatePersons,et=J.persons,er=J.active,en=J.filled,ei=J.done,eo=G.body.smallMobile,es=(0,eQ.I0)(),ec=(0,eI.useState)(!1),el=ec[0],eu=ec[1],ed=(0,eI.useMemo)(function(){return 0===et.length?"0 geselecteerd":et.map(function(R){return R.name}).join(", ")},[et]);return(0,eI.useEffect)(function(){W||(eu(!1),es((0,tp.$o)(!1)))},[W]),eo||!W?null:(0,eV.jsxs)(rL,{children:[er&&!ei&&!el&&(0,eV.jsxs)("div",{className:"innerBar",children:[(0,eV.jsx)("span",{className:"label",children:rR.Z.duplicationBar.label}),(0,eV.jsxs)("span",{className:"persons",children:["(",ed,")"]}),(0,eV.jsx)(tY.Z,{disabled:!en,icon:"arrow",iconRight:!0,click:function(){var R;(R=(0,ek.Z)(eD().mark(function _callee(){var R,W;return eD().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.prev=0,R=et.map(function(R){return encodeURIComponent(R.id)}).join(","),G.next=4,tQ.W.get("https://www.nob-obol.nl/receive/identities?personen=".concat(R));case 4:(W=G.sent)&&200===W.status?es((0,tp.j0)()):eu(!0),G.next=11;break;case 8:G.prev=8,G.t0=G.catch(0),eu(!0);case 11:case"end":return G.stop()}},_callee,null,[[0,8]])})),function(){return R.apply(this,arguments)})()},color:eG.wL.primary,children:rR.Z.duplicationBar.button}),(0,eV.jsxs)("button",{className:"closeButton",type:"button",onClick:function(){es((0,tp.$o)(!1))},children:[(0,eV.jsx)(tP.Z,{name:"close",size:16}),(0,eV.jsx)(tI.Z,{children:"Sluit dubbelingsbalk"})]})]}),ei&&(0,eV.jsxs)("div",{className:"innerBarSubmitted",children:[(0,eV.jsxs)("div",{className:"submittedText",children:[(0,eV.jsx)("span",{children:rR.Z.duplicationBar.submit.title})," ",rR.Z.duplicationBar.submit.description]}),(0,eV.jsxs)("button",{className:"closeButton",type:"button",onClick:function(){es((0,tp.$o)(!1))},children:[(0,eV.jsx)(tP.Z,{name:"close",size:16}),(0,eV.jsx)(tI.Z,{children:"Sluit dubbelingsbalk"})]})]}),el&&(0,eV.jsxs)("div",{className:"innerBarSubmitted innerBarSubmitted--failed",children:[(0,eV.jsx)("div",{className:"submittedText",children:(0,eV.jsx)("span",{children:rR.Z.duplicationBar.submit.failed})}),(0,eV.jsxs)("button",{className:"closeButton",type:"button",onClick:function(){eu(!1),es((0,tp.$o)(!1))},children:[(0,eV.jsx)(tP.Z,{name:"close",size:16}),(0,eV.jsx)(tI.Z,{children:"Sluit dubbelingsbalk"})]})]}),!er&&(0,eV.jsx)("div",{className:"inactiveInnerBar",children:(0,eV.jsx)(tY.Z,{click:function(){es((0,tp.$o)(!0))},color:eG.wL.primary,children:rR.Z.duplicationBar.open})})]})},rN=["statusCode","title","metaData","footerMenu","bg","showDuplicatePersonsBar","studio"],rB=["ctx"];function _app_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _app_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?_app_ownKeys(Object(G),!0).forEach(function(W){(0,eE.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):_app_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var NetwerkOorlogsbronnen=function(R){var W=R.Component,G=R.pageProps,J=G.statusCode,et=G.title,er=G.metaData,en=G.footerMenu,ei=G.bg,eo=G.showDuplicatePersonsBar,es=G.studio,ec=(0,ej.Z)(G,rN),el=R.store,eu=(0,eR.useRouter)();return es?(0,eV.jsx)(W,_app_objectSpread({},ec)):(0,eV.jsxs)(eQ.zt,{store:el,children:[(0,eV.jsx)(Meta_Meta,{title:J<300?(null==er?void 0:er.title)||et:t3.default.title,image:null==er?void 0:er.image,description:null==er?void 0:er.description}),(0,eV.jsxs)(Wrapper_Wrapper,{children:[(0,eV.jsx)(Header_Header,{nav:t2}),(0,eV.jsxs)("main",{id:"main-content",children:[(0,eV.jsxs)(PageLoader_PageLoader,{bg:ei,children:[J<300?(0,eI.createElement)(W,_app_objectSpread(_app_objectSpread({},ec),{},{key:eu.asPath})):(0,eV.jsx)(molecules_Error_Error,{code:J}),(0,eV.jsx)(ru.Z,{}),(0,eV.jsx)(GlobalZoomModal_GlobalZoomModal,{})]}),(0,eV.jsx)(Previewer_Previewer,{})]}),en&&(0,eV.jsx)(Footer_Footer,_app_objectSpread({},en)),(0,eV.jsx)(DuplicatePersonsBar_DuplicatePersonsBar,{showOnThisPage:eo}),(0,eV.jsx)(CookieBanner_CookieBanner,{})]})]})};NetwerkOorlogsbronnen.getInitialProps=(en=(0,ek.Z)(eD().mark(function _callee(R){var W,G,J,et,er,en;return eD().wrap(function(ei){for(;;)switch(ei.prev=ei.next){case 0:if(W=R.ctx,G=(0,ej.Z)(R,rB),J={},!(et=W.store.getState().navigation).footerData){ei.next=7;break}J={footerMenu:et.footerData},ei.next=17;break;case 7:return ei.prev=7,ei.next=10,(0,t5.Z)(t8.transformation,t8.endpoint);case 10:(er=ei.sent)&&(W.store.dispatch(e7(er)),J=_app_objectSpread(_app_objectSpread({},J),{},{footerMenu:er})),ei.next=17;break;case 14:ei.prev=14,ei.t0=ei.catch(7),console.error("Something went wrong fetching footer menu",ei.t0);case 17:return ei.next=19,eL().getInitialProps(_app_objectSpread({ctx:W},G));case 19:return 301===(en=ei.sent.pageProps).statusCode&&en.redirectTo&&(W.res?(W.res.writeHead(301,{Location:en.redirectTo}),W.res.end()):eN().push(en.redirectTo)),J=_app_objectSpread(_app_objectSpread({},J),en),ei.abrupt("return",{pageProps:J});case 24:case"end":return ei.stop()}},_callee,null,[[7,14]])})),function(R){return en.apply(this,arguments)});var rZ=(ei=__assign(__assign({},{storeKey:"__NEXT_REDUX_STORE__",debug:!1,serializeState:function(R){return R},deserializeState:function(R){return R}}),ei),eo="undefined"==typeof window,es=function(R){var W=R.initialState,G=R.ctx,J=ei.storeKey,createStore=function(){var R;return R=ei.deserializeState(W),__assign(__assign(__assign({},G),ei),{isServer:eo}),(0,tl.MT)(tg,R,(0,tm.Uo)())};return eo?createStore():(J in window||(window[J]=createStore()),window[J])},function(R){var W;return(W=function(W){function WrappedApp(R,G){var J=W.call(this,R,G)||this,et=R.initialState;return ei.debug&&console.log("4. WrappedApp.render created new store with initialState",et),J.store=es({initialState:et}),J}return eB(WrappedApp,W),WrappedApp.prototype.render=function(){var W=this.props,G=W.initialProps,J=(W.initialState,__rest(W,["initialProps","initialState"]));return eI.createElement(R,__assign({},J,G,{store:this.store}))},WrappedApp}(eI.Component)).displayName="withRedux("+(R.displayName||R.name||"App")+")",W.getInitialProps=function(W){var G,J,et,er;return G=void 0,J=void 0,et=void 0,er=function(){var G,J;return __generator(this,function(et){switch(et.label){case 0:if(!W)throw Error("No app context");if(!W.ctx)throw Error("No page context");if(G=es({ctx:W.ctx}),ei.debug&&console.log("1. WrappedApp.getInitialProps wrapper got the store with state",G.getState()),W.ctx.store=G,W.ctx.isServer=eo,J={},!("getInitialProps"in R))return[3,2];return[4,R.getInitialProps.call(R,W)];case 1:J=et.sent(),et.label=2;case 2:return ei.debug&&console.log("3. WrappedApp.getInitialProps has store state",G.getState()),[2,{isServer:eo,initialState:eo?ei.serializeState(G.getState()):G.getState(),initialProps:J}]}})},new(et||(et=Promise))(function(R,W){function fulfilled(R){try{step(er.next(R))}catch(R){W(R)}}function rejected(R){try{step(er.throw(R))}catch(R){W(R)}}function step(W){var G;W.done?R(W.value):((G=W.value)instanceof et?G:new et(function(R){R(G)})).then(fulfilled,rejected)}step((er=er.apply(G,J||[])).next())})},W})(NetwerkOorlogsbronnen)},70253:function(R,W,G){"use strict";G.d(W,{Sx:function(){return en},gx:function(){return er},hH:function(){return ei},tW:function(){return et}});var J=G(34155),et="2023-12-08",er=assertValue("production","Missing environment variable: NEXT_PUBLIC_SANITY_DATASET"),en=assertValue("tyokf7xt","Missing environment variable: NEXT_PUBLIC_SANITY_PROJECT_ID");J.env.SANITY_API_READ_TOKEN;var ei=!1;function assertValue(R,W){if(void 0===R)throw Error(W);return R}},41097:function(R,W,G){"use strict";G.d(W,{L:function(){return el},S:function(){return previewClient}});var J=G(70253),et=G(2786),er=G(8146),en=G(86819),ei=G(34670),eo=G(44031);let filterDefault=R=>{let{path:W}=R,G=W.at(-1);return!("slug"===W.at(-2)&&"current"===G||"string"==typeof G&&G.startsWith("_"))&&("number"!=typeof G||"marks"!==W.at(-2)||"number"!=typeof W.at(-3)||"children"!==W.at(-4)||"number"!=typeof W.at(-5))&&("href"!==G||"number"!=typeof W.at(-2)||"markDefs"!==W.at(-3)||"number"!=typeof W.at(-4))&&("string"!=typeof G||"number"!=typeof W.at(-2)||"style"!==G&&"listItem"!==G)};function prettyPathForLogging(R){return R.map((R,W)=>"number"==typeof R?"[".concat(R,"]"):W>0?".".concat(R):R).join("")}var es=G(34155);let createClient=R=>{var W,G;let{encodeSourceMap:J=function(){try{return"true"===(void 0).SANITY_SOURCE_MAP||"auto"}catch{}try{return"true"===es.env.SANITY_SOURCE_MAP||"auto"}catch{}return"auto"}(),encodeSourceMapAtPath:ec,studioUrl:el=function(){try{return(void 0).SANITY_STUDIO_URL}catch{}try{return es.env.SANITY_STUDIO_URL}catch{}}(),logger:eu,...ed}=R,ep=!0===J;if("auto"===J&&(ep=function(){try{return"preview"===(void 0).VERCEL_ENV}catch{}try{return"preview"===es.env.VERCEL_ENV}catch{}return!1}()),"string"==typeof J&&"auto"!==J)throw Error("Invalid value for encodeSourceMap: ".concat(J,". Did you mean 'auto'?"));try{if(ep&&!1!==R.resultSourceMap){if(!el)return null==(W=null==eu?void 0:eu.error)||W.call(eu,"[@sanity/preview-kit]: Content source map enabled client is enabled, but no studioUrl is provided. Falling back to @sanity/client"),(0,et.eI)(ed);null==(G=null==eu?void 0:eu.debug)||G.call(eu,"[@sanity/preview-kit]: Creating source map enabled client");let R=function(R){let{studioUrl:W,encodeSourceMapAtPath:G,logger:J}=R,es=et.Lx.clone();function httpRequest(R){let W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:es;return W({maxRedirects:0,...R})}return es.use(function(R){let{studioUrl:W,encodeSourceMapAtPath:G,logger:J}=R,et=function(R){let{studioUrl:W,encodeSourceMapAtPath:G,logger:J}=R,et=function(R){let W=R.replace(/\/$/,"");return(R,G)=>"".concat(W,"/intent/edit/id=").concat(R._id,";path=").concat(function(R){let W=Array.isArray(R)?R:(0,ei.P)(R);return encodeURIComponent(W.map((R,W)=>"number"==typeof R?"[".concat(R,"]"):W>0?".".concat(R):R).join(""))}(G))}(W),er={encoded:[],skipped:[]},transcode=(R,W,ei)=>("function"==typeof G?G({path:ei,filterDefault}):filterDefault({path:ei,filterDefault}))===!1?(J&&er.skipped.push({path:prettyPathForLogging(ei),value:"".concat(R.slice(0,20)).concat(R.length>20?"...":""),length:R.length}),R):(J&&er.encoded.push({path:prettyPathForLogging(ei),value:"".concat(R.slice(0,20)).concat(R.length>20?"...":""),length:R.length}),(0,en.n8)(R,{origin:"sanity.io",href:et(W,ei)},"auto"));return(R,W)=>(er.encoded.length=0,er.skipped.length=0,{result:(0,eo.cv)(R,W,(R,W,G)=>transcode(R,W,G)),report:er})}({studioUrl:W,encodeSourceMapAtPath:G,logger:J});return{onResponse:R=>{var W,G,en,ei,eo,es,ec,el,eu;if("object"!=typeof R||null===R)return R;if(Array.isArray(R.body)||"string"==typeof R.body||er(R.body)){if(el=R.body,"object"!=typeof el||null===el||!("resultSourceMap"in el))return J&&(eu=R.body,"object"==typeof eu&&null!==eu&&"result"in eu)&&(null==(W=null==J?void 0:J.error)||W.call(J,"[@sanity/preview-kit]: Missing Content Source Map from response body",R.body)),R;let er=et(R.body.result,R.body.resultSourceMap);if(J){let R=er.report.skipped.length,W=er.report.encoded.length;if((R||W)&&(null==(G=(null==J?void 0:J.groupCollapsed)||J.log)||G("[@sanity/preview-kit]: Stega encoding source map into result"),null==(en=J.log)||en.call(J,"[@sanity/preview-kit]: Paths encoded: ".concat(er.report.encoded.length,", skipped: ").concat(er.report.skipped.length))),er.report.encoded.length>0&&(null==(ei=null==J?void 0:J.log)||ei.call(J,"[@sanity/preview-kit]: Table of encoded paths"),null==(eo=(null==J?void 0:J.table)||J.log)||eo(er.report.encoded)),er.report.skipped.length>0){let R=new Set;for(let{path:W}of er.report.skipped)R.add(W.replace(/\[\d+\]/g,"[]"));null==(es=null==J?void 0:J.log)||es.call(J,"[@sanity/preview-kit]: List of skipped paths",[...R.values()])}(R||W)&&(null==(ec=null==J?void 0:J.groupEnd)||ec.call(J))}let ed={...R.body,result:er.result};return{...R,body:ed}}return R}}}({studioUrl:W,encodeSourceMapAtPath:G,logger:J})),httpRequest.defaultRequester=es,httpRequest}({encodeSourceMapAtPath:ec,studioUrl:el,logger:eu});return new et.aN(R,{...ed,resultSourceMap:!0})}}catch(R){console.error("[@sanity/preview-kit]: Error creating client",R,"falling back to non-embedded sourcemap mode")}return(0,et.eI)(ed)};var ec=G(34155),el=function(R){let{studioUrl:W=ec.env.NEXT_PUBLIC_SANITY_STUDIO_URL,encodeSourceMap:G=!!W&&"auto"}=R;return"auto"===G&&"preview"===ec.env.NEXT_PUBLIC_VERCEL_ENV&&(G=!0),createClient({...R,studioUrl:W,encodeSourceMap:G})}({apiVersion:J.tW,dataset:J.gx,projectId:J.Sx,useCdn:J.hH}),previewClient=function(R){return el.withConfig({token:R,useCdn:!1,ignoreBrowserTokenWarning:!0,perspective:"previewDrafts"})}},44467:function(R,W,G){"use strict";G.d(W,{dq:function(){return eo},y0:function(){return es}});var J=G(59499),et=G(27272),er=G(57908);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var en=(0,et.oM)({name:"navigation",initialState:{breakpoint:"lg",mobile:!1,smallMobile:!1,depthOpen:!1},reducers:{setBreakpoint:function(R,W){return _objectSpread(_objectSpread({},R),{},{breakpoint:W.payload,mobile:(0,er.tq)(W.payload),smallMobile:(0,er.Lm)(W.payload)})},setDepthState:function(R,W){return _objectSpread(_objectSpread({},R),{},{depthOpen:W.payload})}}}),ei=en.actions,eo=ei.setBreakpoint,es=ei.setDepthState;W.ZP=en.reducer},63844:function(R,W,G){"use strict";G.d(W,{$o:function(){return es},FK:function(){return eo},ev:function(){return ei},j0:function(){return ec}});var J=G(59499),et=G(27812);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var er=(0,G(27272).oM)({name:"duplicatePersons",initialState:{persons:[],active:!1,full:!1,filled:!1,done:!1},reducers:{addPerson:function(R,W){var G=[].concat((0,et.Z)(R.persons),[W.payload]);return _objectSpread(_objectSpread({},R),{},{persons:G,full:G.length>2,filled:G.length>1})},removePerson:function(R,W){var G=R.persons.filter(function(R){return R.id!==W.payload});return _objectSpread(_objectSpread({},R),{},{persons:G,full:G.length>2,filled:G.length>1})},setDuplicateBarActive:function(R,W){return W.payload?_objectSpread(_objectSpread({},R),{},{active:W.payload}):_objectSpread(_objectSpread({},R),{},{persons:[],full:!1,filled:!1,active:!1,done:!1})},setDone:function(R){return _objectSpread(_objectSpread({},R),{},{done:!0})}}}),en=er.actions,ei=en.addPerson,eo=en.removePerson,es=en.setDuplicateBarActive,ec=en.setDone;W.ZP=er.reducer},47575:function(R,W,G){"use strict";G.d(W,{s:function(){return er}});var J=G(59499);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var et=(0,G(27272).oM)({name:"lifeSuggest",initialState:{storedEmailAddress:""},reducers:{setEmailAddress:function(R,W){return _objectSpread(_objectSpread({},R),{},{storedEmailAddress:W.payload})}}}),er=et.actions.setEmailAddress;W.Z=et.reducer},17391:function(R,W,G){"use strict";G.d(W,{FQ:function(){return eo},HT:function(){return ec},PP:function(){return eu},UA:function(){return es},YU:function(){return el},d4:function(){return ed},oW:function(){return ep},vD:function(){return en},w:function(){return ei}});var J=G(59499);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var et=(0,G(27272).oM)({name:"sidepanel",initialState:{sidepanelOpen:!1,zoomOpen:!1,previewerOpen:!1,focusMode:"off"},reducers:{openSidepanel:function(R,W){R.sidepanelOpen=!0,R.sidepanelContent=W.payload},closeSidepanel:function(R,W){R.sidepanelOpen=!1,R.sidepanelContent=void 0},openZoom:function(R,W){R.zoomOpen=!0,R.zoomContent=W.payload},closeZoom:function(R,W){R.zoomOpen=!1},emptyZoom:function(R,W){R.zoomContent=void 0,R.previewerContent=void 0},openPreviewer:function(R,W){R.previewerOpen=!0,R.previewerContent=W.payload},closePreviewer:function(R,W){R.previewerOpen=!1,R.previewerContent=void 0},setPreviewerActiveIndex:function(R,W){R.previewerContent&&(R.previewerContent=_objectSpread(_objectSpread({},R.previewerContent),{},{indexToOpen:W.payload}))},setFocusMode:function(R,W){R.focusMode=W.payload}}}),er=et.actions,en=er.openSidepanel,ei=er.closeSidepanel,eo=er.openZoom,es=er.closeZoom,ec=er.emptyZoom,el=er.openPreviewer,eu=er.closePreviewer,ed=er.setPreviewerActiveIndex,ep=er.setFocusMode;W.ZP=et.reducer},96279:function(R,W,G){"use strict";G.d(W,{I:function(){return er}});var J=G(59499);function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){(0,J.Z)(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var et=(0,G(27272).oM)({name:"themesAndPlacesMaps",initialState:{themesMaps:[],placesMaps:[],isSet:!1},reducers:{setThemesAndPlacesMaps:function(R,W){return _objectSpread(_objectSpread({},W.payload),{},{isSet:!0})}}}),er=et.actions.setThemesAndPlacesMaps;W.Z=et.reducer},4129:function(R,W,G){"use strict";G.d(W,{F3:function(){return eh},TS:function(){return ep},wL:function(){return eu}}),(J=el||(el={}))[J.xs=0]="xs",J[J.sm=576]="sm",J[J.md=767]="md",J[J.lg=980]="lg",J[J.xl=1280]="xl",J[J.xxl=1440]="xxl";var J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef,eh,eg,em,ey={xs:el.xs,sm:el.sm,md:el.md,lg:el.lg,xl:el.xl,xxl:el.xxl};(et=eu||(eu={})).primary="#BA5345",et.primaryDark="#9D2C1E",et.warning="#CA0000",et.primaryLight="#FFD0D0",et.secondary="#647487",et.secondaryLight="#7e8b9b",et.secondaryLightBetween="#B9CBDC",et.secondaryExtraLight="#C6D2E0",et.secondaryExtraExtraLight="#E0E8F2",et.secondaryDark="#32383e",et.secondaryMiddle="#303b49",et.secondaryShade="#E1E6F1",et.tertiary="#6B9E76",et.tertiaryDark="#49624E",et.tertiaryMiddle="#5D8666",et.tertiaryBright="#6FAA7C",et.tertiaryLight="#94BE9D",et.highlight="#F6EED8",et.background="#F2F3F5",et.backgroundDark="#282827",et.backgroundExtraDark="#0A0A0A",et.backgroundGray="#343433",et.backgroundSemi="#454545",et.backgroundLight="#F2F3F5",et.backgroundMiddle="#8F9091",et.text="#282827",et.textGray="#7D7D7D",et.textGrayLight="#909090",et.textGrayExtraLight="#CCCCCC",et.textLight="#606E80",et.textDark="#334254",et.textBlue="#384350",et.transparent="transparent",et.white="#ffffff",et.whiteDark="#C6D2E0",et.black="#000000",et.offBlack="#151515",et.gray="#5B5959",et.grayLight="#9C9C9C",et.grayMiddle="#6C6C6C",et.grayDark="#555555",et.grayDarker="#4E4E4E",et.blue="#657487",et.blueLight="#9FA6B4",et.blueDark="#ACBDD2",et.blueBackground="#E4E6EA",et.yellow="#FFCD4E",(er=ed||(ed={}))[er.xxs=5]="xxs",er[er.xs=10]="xs",er[er.sm=15]="sm",er[er.md=20]="md",er[er.lg=30]="lg",er[er.xl=40]="xl",er[er.xxl=50]="xxl",er[er.xxxl=90]="xxxl",(en=ep||(ep={}))[en.xs=10]="xs",en[en.label=14]="label",en[en.sm=12]="sm",en[en.filters=13]="filters",en[en.base=15]="base",en[en.md=16]="md",en[en.lg=18]="lg",en[en.xl=24]="xl",en[en.xxl=32]="xxl",(ei=ef||(ef={}))[ei.default=1]="default",ei[ei.overDefault=2]="overDefault",ei[ei.loader=5]="loader",ei[ei.sharer=6]="sharer",ei[ei.header=10]="header",ei[ei.focusLayer=11]="focusLayer",ei[ei.navigation=15]="navigation",ei[ei.navigationIcons=16]="navigationIcons",ei[ei.map=20]="map",ei[ei.drawer=25]="drawer",ei[ei.overlay=50]="overlay",ei[ei.modal=75]="modal",(eo=eh||(eh={})).primary="Relative",eo.secondary="Relative Faux",(es=eg||(eg={})).default="350ms ease",es.quick="175ms ease-in",(ec=em||(em={}))[ec.xs=3]="xs",ec[ec.md=6]="md";var ev={breakpointsArray:[0,576,767,980,1280,1440],breakpoints:ey,grid:{gutter:32,width:{xs:-32,sm:544,md:735,lg:948,xl:1248,xxl:1408}},columnConfigs:{story:{xs:11/12,sm:10/12,md:7/12,lg:7/12},sourceResults:{xs:1,xl:8/12},personResults:{xs:1,lg:.5},source:{xs:1,md:8/12,xl:.5},contentPage:{xs:1,md:10/12,lg:8/12,xl:.5}},pushConfigs:{story:{lg:1/12},source:{md:2/12,xl:.25},contentPage:{md:1/12,lg:2/12,xl:.25}},dist:ed,distanceConfigs:{extraSmall:{xs:ed.xxs,sm:ed.xs,lg:ed.sm},small:{xs:ed.xs,sm:ed.sm,lg:ed.md},medium:{xs:ed.sm,sm:ed.md,lg:ed.lg},large:{xs:ed.sm,sm:ed.md,lg:ed.xl},announcementsSpacing:{xs:ed.lg,lg:ed.xl},textBlocks:{xs:ed.xl,md:ed.lg,lg:ed.xl},extraLarge:{xs:ed.md,sm:ed.lg,lg:ed.xxl},blockSpacing:{xs:60,sm:70,lg:90},blockSpacingSmall:{xs:40,sm:50,lg:70},headerSpacing:{xs:90,sm:140,lg:170},cardSpacing:{xs:25,sm:30,md:32},storyPadding:{xs:32,sm:0},knowledgeGraphSpacing:{xs:15,md:25},footerSpacing:{xs:40,md:30},lifeEventSpacing:{xs:90,lg:140}},fontSizes:ep,fontConfigs:{extraSmall:{xs:ep.sm,md:ep.sm},small:{xs:ep.sm,md:ep.sm},medium:{xs:ep.base,md:ep.md},large:{xs:ep.md,lg:ep.lg},default:{xs:ep.sm,sm:ep.base},formInput:{xs:16,sm:20,lg:30},label:{xs:ep.label},bigLabel:{xs:ep.label},h1:{xs:34,sm:48,md:52,lg:66},h2:{xs:28,sm:32,xl:42},h3:{xs:28,sm:32,lg:36},h4:{xs:18,sm:22,lg:24},h5:{xs:18,sm:19,lg:20},h6:{xs:ep.sm,sm:15,lg:16}},borderRadius:em,transitions:eg,zIndexes:ef,colors:eu,fonts:eh,consts:{headerHeight:{xs:60,sm:70,lg:80},headerCorner:{xs:33,lg:37},imageHeaderHeight:{xs:320,md:400,lg:460},lifeContainerInVh:{xs:80},personHeaderHeight:{xs:300,sm:360,md:420,lg:520,xl:520,xxl:520},lifeHeaderMapHeight:{xs:240,sm:300,md:450,lg:500,xl:500,xxl:500},placesInClusters:{xs:240,sm:300,md:450,lg:600,xl:600,xxl:600},announcementMaps:{xs:240,sm:300,md:450,lg:500,xl:525},sidepanelMapHeight:{xs:300,sm:300,md:350,lg:400,xl:400,xxl:400},lifeFromToMapHeight:{xs:300,sm:300,md:420,lg:420,xl:420,xxl:420},formInputHeight:{xs:36,sm:40,md:50}}};W.ZP=ev},96071:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=Object.keys(et.ZP.breakpoints).reduce(function(R,W){return R[W]=function(R){for(var G=arguments.length,er=Array(G>1?G-1:0),en=1;en<G;en++)er[en-1]=arguments[en];return(0,J.iv)(["@media (min-width:","px){","}"],et.ZP.breakpoints[W],J.iv.apply(void 0,[R].concat(er)))},R},{});W.Z=er},74498:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=Object.keys(et.ZP.breakpoints).reduce(function(R,W){return R[W]=function(R){for(var G=arguments.length,er=Array(G>1?G-1:0),en=1;en<G;en++)er[en-1]=arguments[en];return(0,J.iv)(["@media (max-width:","px){","}"],et.ZP.breakpoints[W],J.iv.apply(void 0,[R].concat(er)))},R},{});W.Z=er},42786:function(R,W,G){"use strict";var J=G(70643),et=G(4129),er=Object.keys(et.ZP.breakpoints).reduce(function(R,W){var G=Object.keys(et.ZP.breakpoints).indexOf(W);if(G===Object.keys(et.ZP.breakpoints).length-1)R[W]=function(R){for(var G=arguments.length,er=Array(G>1?G-1:0),en=1;en<G;en++)er[en-1]=arguments[en];return(0,J.iv)(["@media (min-width:","px){","}"],et.ZP.breakpoints[W],J.iv.apply(void 0,[R].concat(er)))};else{var er=et.ZP.breakpointsArray[G+1];R[W]=function(R){for(var G=arguments.length,en=Array(G>1?G-1:0),ei=1;ei<G;ei++)en[ei-1]=arguments[ei];return(0,J.iv)(["@media (min-width:","px) and (max-width:","px){","}"],et.ZP.breakpoints[W],er-1,J.iv.apply(void 0,[R].concat(en)))}}return R},{});W.Z=er},21775:function(R,W,G){"use strict";var J=G(4129);W.Z=function(R){var W=R.css,G=void 0===W?null:W,et=R.min,er=void 0===et?null:et,en=R.max,ei=void 0===en?null:en;return er&&ei?"@media(min-width: ".concat(J.ZP.breakpoints[er],"px) and (max-width:  ").concat(J.ZP.breakpoints[ei],"px) {").concat(G,"}"):er?J.ZP.breakpoints[er]>0?"@media(min-width: ".concat(J.ZP.breakpoints[er],"px) {").concat(G,";}"):"".concat(G,";"):ei?"@media(max-width: ".concat(J.ZP.breakpoints[ei],"px) {").concat(G,"}"):null}},94525:function(R,W,G){"use strict";G.d(W,{Z:function(){return functions_cssRulePerBreakpoint}});var J=G(21775),functions_cssRulePerBreakpoint=function(R,W){var G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(R){return R};if("string"==typeof W||"number"==typeof W)return"".concat(R,": ").concat(G(W));var et=Array.isArray(W)?{xs:W[0],sm:W[1],md:W[2],lg:W[3],xl:W[4],xxl:W[5]}:"object"==typeof W?W:null;return et?Object.keys(et).reduce(function(W,er){return et[er]||0===et[er]?"".concat(W," ").concat((0,J.Z)({css:"".concat(R,": ").concat(G(et[er])),min:er})):W},""):null}},37850:function(R,W,G){"use strict";G.d(W,{$Q:function(){return column},JB:function(){return fontSize},TE:function(){return distance},VF:function(){return push}});var J=G(94525),et=G(4129);function column(R){var W=R;return("string"==typeof R&&(W=et.ZP.columnConfigs[R]),W)?(0,J.Z)("width",W,function(R){return"".concat(100*R,"%")}):null}function push(R){var W=R;return("string"==typeof R&&(W=et.ZP.pushConfigs[R]),W)?(0,J.Z)("margin-left",W,function(R){return"".concat(100*R,"%")}):null}function fontSize(R){var W=R;return("string"==typeof R&&(W=et.ZP.fontConfigs[R]),W)?(0,J.Z)("font-size",W,function(R){return"".concat(R,"px")}):null}function distance(R,W){var G=arguments.length>2&&void 0!==arguments[2]&&arguments[2],er=W;return("string"==typeof W&&(er=et.ZP.distanceConfigs[W]),er)?(0,J.Z)(R,er,function(R){return"".concat(G?"-":"").concat(R,"px")}):null}},59409:function(R,W,G){"use strict";var J=G(4129);W.Z=function(R){switch(R){case J.wL.background:return J.wL.backgroundDark;case J.wL.secondary:return J.wL.secondaryDark;case J.wL.tertiary:return J.wL.tertiaryDark;case J.wL.primary:return J.wL.primaryDark;case J.wL.gray:return J.wL.grayDark;case J.wL.text:return J.wL.textDark;case J.wL.white:return J.wL.backgroundMiddle;default:return R}}},57908:function(R,W,G){"use strict";G.d(W,{Lm:function(){return isSmallMobile},bc:function(){return getCurrentBreakpoint},t9:function(){return hamburgerBreakpoint},tq:function(){return isMobile}});var J=G(4129),getCurrentBreakpoint=function(){for(var R=window.innerWidth,W=0,G=0;G<J.ZP.breakpointsArray.length;G+=1)if(R<J.ZP.breakpointsArray[G]){W=J.ZP.breakpointsArray[G-1];break}return R>=J.ZP.breakpointsArray[J.ZP.breakpointsArray.length-1]?"xxl":Object.keys(J.ZP.breakpoints).find(function(R){return J.ZP.breakpoints[R]===W})},isMobile=function(R){return"xs"===R||"sm"===R||"md"===R},isSmallMobile=function(R){return"xs"===R||"sm"===R},hamburgerBreakpoint=function(R){return["xs","sm","md"].includes(R)}},80369:function(R,W,G){"use strict";var J=G(70643),et=G(4129);W.Z=(0,J.iv)(["&:before{content:'';position:absolute;width:36px;height:0;bottom:0;left:0;border-bottom:"," solid 1px;}"],et.ZP.colors.grayDark)},6840:function(R,W,G){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return G(27393)}])},91479:function(){},85525:function(){},25124:function(){},5152:function(R,W,G){R.exports=G(95941)},9008:function(R,W,G){R.exports=G(62268)},41664:function(R,W,G){R.exports=G(13366)},11163:function(R,W,G){R.exports=G(27985)},75:function(R,W,G){var J=G(34155);(function(){var W,G,et,er;"undefined"!=typeof performance&&null!==performance&&performance.now?R.exports=function(){return performance.now()}:null!=J&&J.hrtime?(R.exports=function(){return(W()-er)/1e6},G=J.hrtime,er=(W=function(){var R;return 1e9*(R=G())[0]+R[1]})()-1e9*J.uptime()):Date.now?(R.exports=function(){return Date.now()-et},et=Date.now()):(R.exports=function(){return new Date().getTime()-et},et=new Date().getTime())}).call(this)},84967:function(R,W,G){"use strict";G.d(W,{_j:function(){return eg},m4:function(){return rgba}});var J,et=G(87462),er=G(97326),en=G(94578),ei=function(R){function PolishedError(W){var G;return G=R.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+W+" for more information.")||this,(0,er.Z)(G)}return(0,en.Z)(PolishedError,R),PolishedError}((0,G(35724).Z)(Error));function colorToInt(R){return Math.round(255*R)}function convertToInt(R,W,G){return colorToInt(R)+","+colorToInt(W)+","+colorToInt(G)}function hslToRgb(R,W,G,J){if(void 0===J&&(J=convertToInt),0===W)return J(G,G,G);var et=(R%360+360)%360/60,er=(1-Math.abs(2*G-1))*W,en=er*(1-Math.abs(et%2-1)),ei=0,eo=0,es=0;et>=0&&et<1?(ei=er,eo=en):et>=1&&et<2?(ei=en,eo=er):et>=2&&et<3?(eo=er,es=en):et>=3&&et<4?(eo=en,es=er):et>=4&&et<5?(ei=en,es=er):et>=5&&et<6&&(ei=er,es=en);var ec=G-er/2;return J(ei+ec,eo+ec,es+ec)}var eo={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",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",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"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",grey:"808080",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",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},es=/^#[a-fA-F0-9]{6}$/,ec=/^#[a-fA-F0-9]{8}$/,el=/^#[a-fA-F0-9]{3}$/,eu=/^#[a-fA-F0-9]{4}$/,ed=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,ep=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,ef=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,eh=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(R){if("string"!=typeof R)throw new ei(3);var W=function(R){if("string"!=typeof R)return R;var W=R.toLowerCase();return eo[W]?"#"+eo[W]:R}(R);if(W.match(es))return{red:parseInt(""+W[1]+W[2],16),green:parseInt(""+W[3]+W[4],16),blue:parseInt(""+W[5]+W[6],16)};if(W.match(ec)){var G=parseFloat((parseInt(""+W[7]+W[8],16)/255).toFixed(2));return{red:parseInt(""+W[1]+W[2],16),green:parseInt(""+W[3]+W[4],16),blue:parseInt(""+W[5]+W[6],16),alpha:G}}if(W.match(el))return{red:parseInt(""+W[1]+W[1],16),green:parseInt(""+W[2]+W[2],16),blue:parseInt(""+W[3]+W[3],16)};if(W.match(eu)){var J=parseFloat((parseInt(""+W[4]+W[4],16)/255).toFixed(2));return{red:parseInt(""+W[1]+W[1],16),green:parseInt(""+W[2]+W[2],16),blue:parseInt(""+W[3]+W[3],16),alpha:J}}var et=ed.exec(W);if(et)return{red:parseInt(""+et[1],10),green:parseInt(""+et[2],10),blue:parseInt(""+et[3],10)};var er=ep.exec(W.substring(0,50));if(er)return{red:parseInt(""+er[1],10),green:parseInt(""+er[2],10),blue:parseInt(""+er[3],10),alpha:parseFloat(""+er[4])>1?parseFloat(""+er[4])/100:parseFloat(""+er[4])};var en=ef.exec(W);if(en){var eg="rgb("+hslToRgb(parseInt(""+en[1],10),parseInt(""+en[2],10)/100,parseInt(""+en[3],10)/100)+")",em=ed.exec(eg);if(!em)throw new ei(4,W,eg);return{red:parseInt(""+em[1],10),green:parseInt(""+em[2],10),blue:parseInt(""+em[3],10)}}var ey=eh.exec(W.substring(0,50));if(ey){var ev="rgb("+hslToRgb(parseInt(""+ey[1],10),parseInt(""+ey[2],10)/100,parseInt(""+ey[3],10)/100)+")",eb=ed.exec(ev);if(!eb)throw new ei(4,W,ev);return{red:parseInt(""+eb[1],10),green:parseInt(""+eb[2],10),blue:parseInt(""+eb[3],10),alpha:parseFloat(""+ey[4])>1?parseFloat(""+ey[4])/100:parseFloat(""+ey[4])}}throw new ei(5)}var reduceHexValue$1=function(R){return 7===R.length&&R[1]===R[2]&&R[3]===R[4]&&R[5]===R[6]?"#"+R[1]+R[3]+R[5]:R};function numberToHex(R){var W=R.toString(16);return 1===W.length?"0"+W:W}function colorToHex(R){return numberToHex(Math.round(255*R))}function convertToHex(R,W,G){return reduceHexValue$1("#"+colorToHex(R)+colorToHex(W)+colorToHex(G))}function rgb(R,W,G){if("number"==typeof R&&"number"==typeof W&&"number"==typeof G)return reduceHexValue$1("#"+numberToHex(R)+numberToHex(W)+numberToHex(G));if("object"==typeof R&&void 0===W&&void 0===G)return reduceHexValue$1("#"+numberToHex(R.red)+numberToHex(R.green)+numberToHex(R.blue));throw new ei(6)}function rgba(R,W,G,J){if("string"==typeof R&&"number"==typeof W){var et=parseToRgb(R);return"rgba("+et.red+","+et.green+","+et.blue+","+W+")"}if("number"==typeof R&&"number"==typeof W&&"number"==typeof G&&"number"==typeof J)return J>=1?rgb(R,W,G):"rgba("+R+","+W+","+G+","+J+")";if("object"==typeof R&&void 0===W&&void 0===G&&void 0===J)return R.alpha>=1?rgb(R.red,R.green,R.blue):"rgba("+R.red+","+R.green+","+R.blue+","+R.alpha+")";throw new ei(7)}var eg=function curried(R,W,G){return function(){var J=G.concat(Array.prototype.slice.call(arguments));return J.length>=W?R.apply(this,J):curried(R,W,J)}}(J=function(R,W){if("transparent"===W)return W;var G=function(R){var W,G=R.red/255,J=R.green/255,et=R.blue/255,er=Math.max(G,J,et),en=Math.min(G,J,et),ei=(er+en)/2;if(er===en)return void 0!==R.alpha?{hue:0,saturation:0,lightness:ei,alpha:R.alpha}:{hue:0,saturation:0,lightness:ei};var eo=er-en,es=ei>.5?eo/(2-er-en):eo/(er+en);switch(er){case G:W=(J-et)/eo+(J<et?6:0);break;case J:W=(et-G)/eo+2;break;default:W=(G-J)/eo+4}return(W*=60,void 0!==R.alpha)?{hue:W,saturation:es,lightness:ei,alpha:R.alpha}:{hue:W,saturation:es,lightness:ei}}(parseToRgb(W));return function(R){if("object"!=typeof R)throw new ei(8);if("number"==typeof R.red&&"number"==typeof R.green&&"number"==typeof R.blue&&"number"==typeof R.alpha)return rgba(R);if("number"==typeof R.red&&"number"==typeof R.green&&"number"==typeof R.blue&&("number"!=typeof R.alpha||void 0===R.alpha))return rgb(R);if("number"==typeof R.hue&&"number"==typeof R.saturation&&"number"==typeof R.lightness&&"number"==typeof R.alpha)return function(R,W,G,J){if("number"==typeof R&&"number"==typeof W&&"number"==typeof G&&"number"==typeof J)return J>=1?hslToRgb(R,W,G,convertToHex):"rgba("+hslToRgb(R,W,G)+","+J+")";if("object"==typeof R&&void 0===W&&void 0===G&&void 0===J)return R.alpha>=1?hslToRgb(R.hue,R.saturation,R.lightness,convertToHex):"rgba("+hslToRgb(R.hue,R.saturation,R.lightness)+","+R.alpha+")";throw new ei(2)}(R);if("number"==typeof R.hue&&"number"==typeof R.saturation&&"number"==typeof R.lightness&&("number"!=typeof R.alpha||void 0===R.alpha))return function(R,W,G){if("number"==typeof R&&"number"==typeof W&&"number"==typeof G)return hslToRgb(R,W,G,convertToHex);if("object"==typeof R&&void 0===W&&void 0===G)return hslToRgb(R.hue,R.saturation,R.lightness,convertToHex);throw new ei(1)}(R);throw new ei(8)}((0,et.Z)({},G,{lightness:Math.max(0,Math.min(1,G.lightness-parseFloat(R)))}))},J.length,[])},34155:function(R){var W,G,J,et=R.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(R){if(W===setTimeout)return setTimeout(R,0);if((W===defaultSetTimout||!W)&&setTimeout)return W=setTimeout,setTimeout(R,0);try{return W(R,0)}catch(G){try{return W.call(null,R,0)}catch(G){return W.call(this,R,0)}}}!function(){try{W="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(R){W=defaultSetTimout}try{G="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(R){G=defaultClearTimeout}}();var er=[],en=!1,ei=-1;function cleanUpNextTick(){en&&J&&(en=!1,J.length?er=J.concat(er):ei=-1,er.length&&drainQueue())}function drainQueue(){if(!en){var R=runTimeout(cleanUpNextTick);en=!0;for(var W=er.length;W;){for(J=er,er=[];++ei<W;)J&&J[ei].run();ei=-1,W=er.length}J=null,en=!1,function(R){if(G===clearTimeout)return clearTimeout(R);if((G===defaultClearTimeout||!G)&&clearTimeout)return G=clearTimeout,clearTimeout(R);try{G(R)}catch(W){try{return G.call(null,R)}catch(W){return G.call(this,R)}}}(R)}}function Item(R,W){this.fun=R,this.array=W}function noop(){}et.nextTick=function(R){var W=Array(arguments.length-1);if(arguments.length>1)for(var G=1;G<arguments.length;G++)W[G-1]=arguments[G];er.push(new Item(R,W)),1!==er.length||en||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},et.title="browser",et.browser=!0,et.env={},et.argv=[],et.version="",et.versions={},et.on=noop,et.addListener=noop,et.once=noop,et.off=noop,et.removeListener=noop,et.removeAllListeners=noop,et.emit=noop,et.prependListener=noop,et.prependOnceListener=noop,et.listeners=function(R){return[]},et.binding=function(R){throw Error("process.binding is not supported")},et.cwd=function(){return"/"},et.chdir=function(R){throw Error("process.chdir is not supported")},et.umask=function(){return 0}},92703:function(R,W,G){"use strict";var J=G(50414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,R.exports=function(){function shim(R,W,G,et,er,en){if(en!==J){var ei=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw ei.name="Invariant Violation",ei}}function getShim(){return shim}shim.isRequired=shim;var R={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return R.PropTypes=R,R}},45697:function(R,W,G){R.exports=G(92703)()},50414:function(R){"use strict";R.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},54087:function(R,W,G){for(var J=G(75),et="undefined"==typeof window?G.g:window,er=["moz","webkit"],en="AnimationFrame",ei=et["request"+en],eo=et["cancel"+en]||et["cancelRequest"+en],es=0;!ei&&es<er.length;es++)ei=et[er[es]+"Request"+en],eo=et[er[es]+"Cancel"+en]||et[er[es]+"CancelRequest"+en];if(!ei||!eo){var ec=0,el=0,eu=[],ed=1e3/60;ei=function(R){if(0===eu.length){var W=J(),G=Math.max(0,ed-(W-ec));ec=G+W,setTimeout(function(){var R=eu.slice(0);eu.length=0;for(var W=0;W<R.length;W++)if(!R[W].cancelled)try{R[W].callback(ec)}catch(R){setTimeout(function(){throw R},0)}},Math.round(G))}return eu.push({handle:++el,callback:R,cancelled:!1}),el},eo=function(R){for(var W=0;W<eu.length;W++)eu[W].handle===R&&(eu[W].cancelled=!0)}}R.exports=function(R){return ei.call(et,R)},R.exports.cancel=function(){eo.apply(et,arguments)},R.exports.polyfill=function(R){R||(R=et),R.requestAnimationFrame=ei,R.cancelAnimationFrame=eo}},51517:function(R,W,G){"use strict";var J=Object.assign||function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R},et=function(){function defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,J.key,J)}}return function(R,W,G){return W&&defineProperties(R.prototype,W),G&&defineProperties(R,G),R}}(),er=G(67294),en=_interopRequireDefault(er),ei=_interopRequireDefault(G(45697)),eo=_interopRequireDefault(G(96774)),es=_interopRequireDefault(G(54087)),ec=_interopRequireDefault(G(23028)),el=_interopRequireDefault(G(74509));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function _objectWithoutProperties(R,W){var G={};for(var J in R)!(W.indexOf(J)>=0)&&Object.prototype.hasOwnProperty.call(R,J)&&(G[J]=R[J]);return G}var noop=function(){},eu=function(R){function Headroom(R){!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,Headroom);var W=function(R,W){if(!R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return W&&("object"==typeof W||"function"==typeof W)?W:R}(this,(Headroom.__proto__||Object.getPrototypeOf(Headroom)).call(this,R));return W.setRef=function(R){return W.inner=R},W.setHeightOffset=function(){W.setState({height:W.inner?W.inner.offsetHeight:""}),W.resizeTicking=!1},W.getScrollY=function(){return void 0!==W.props.parent().pageYOffset?W.props.parent().pageYOffset:void 0!==W.props.parent().scrollTop?W.props.parent().scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop},W.getViewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},W.getDocumentHeight=function(){var R=document.body,W=document.documentElement;return Math.max(R.scrollHeight,W.scrollHeight,R.offsetHeight,W.offsetHeight,R.clientHeight,W.clientHeight)},W.getElementPhysicalHeight=function(R){return Math.max(R.offsetHeight,R.clientHeight)},W.getElementHeight=function(R){return Math.max(R.scrollHeight,R.offsetHeight,R.clientHeight)},W.getScrollerPhysicalHeight=function(){var R=W.props.parent();return R===window||R===document.body?W.getViewportHeight():W.getElementPhysicalHeight(R)},W.getScrollerHeight=function(){var R=W.props.parent();return R===window||R===document.body?W.getDocumentHeight():W.getElementHeight(R)},W.isOutOfBound=function(R){var G=W.getScrollerPhysicalHeight(),J=W.getScrollerHeight();return R<0||R+G>J},W.handleScroll=function(){W.scrollTicking||(W.scrollTicking=!0,(0,es.default)(W.update))},W.handleResize=function(){W.resizeTicking||(W.resizeTicking=!0,(0,es.default)(W.setHeightOffset))},W.unpin=function(){W.props.onUnpin(),W.setState({translateY:"-100%",className:"headroom headroom--unpinned",animation:!0,state:"unpinned"})},W.unpinSnap=function(){W.props.onUnpin(),W.setState({translateY:"-100%",className:"headroom headroom--unpinned headroom-disable-animation",animation:!1,state:"unpinned"})},W.pin=function(){W.props.onPin(),W.setState({translateY:0,className:"headroom headroom--pinned",animation:!0,state:"pinned"})},W.unfix=function(){W.props.onUnfix(),W.setState({translateY:0,className:"headroom headroom--unfixed headroom-disable-animation",animation:!1},function(){setTimeout(function(){W.setState({state:"unfixed"})},0)})},W.update=function(){if(W.currentScrollY=W.getScrollY(),!W.isOutOfBound(W.currentScrollY)){var R=(0,ec.default)(W.lastKnownScrollY,W.currentScrollY,W.props,W.state).action;"pin"===R?W.pin():"unpin"===R?W.unpin():"unpin-snap"===R?W.unpinSnap():"unfix"===R&&W.unfix()}W.lastKnownScrollY=W.currentScrollY,W.scrollTicking=!1},W.currentScrollY=0,W.lastKnownScrollY=0,W.scrollTicking=!1,W.resizeTicking=!1,W.eventListenerOptions=!1,W.state={state:"unfixed",translateY:0,className:"headroom headroom--unfixed"},W}return!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function, not "+typeof W);R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(R,W):R.__proto__=W)}(Headroom,R),et(Headroom,null,[{key:"getDerivedStateFromProps",value:function(R,W){return R.disable&&"unfixed"!==W.state?{translateY:0,className:"headroom headroom--unfixed headroom-disable-animation",animation:!1,state:"unfixed"}:null}}]),et(Headroom,[{key:"componentDidMount",value:function(){this.setHeightOffset(),this.eventListenerOptions=!!(0,el.default)()&&{passive:!0,capture:!1},!this.props.disable&&(this.props.parent().addEventListener("scroll",this.handleScroll,this.eventListenerOptions),this.props.calcHeightOnResize&&this.props.parent().addEventListener("resize",this.handleResize,this.eventListenerOptions))}},{key:"shouldComponentUpdate",value:function(R,W){return!(0,eo.default)(this.props,R)||!(0,eo.default)(this.state,W)}},{key:"componentDidUpdate",value:function(R,W){R.children!==this.props.children&&this.setHeightOffset(),!R.disable&&this.props.disable?(this.props.parent().removeEventListener("scroll",this.handleScroll,this.eventListenerOptions),this.props.parent().removeEventListener("resize",this.handleResize,this.eventListenerOptions),"unfixed"!==W.state&&"unfixed"===this.state.state&&this.props.onUnfix()):R.disable&&!this.props.disable&&(this.props.parent().addEventListener("scroll",this.handleScroll,this.eventListenerOptions),this.props.calcHeightOnResize&&this.props.parent().addEventListener("resize",this.handleResize,this.eventListenerOptions)),R.pin!==this.props.pin&&this.handleScroll()}},{key:"componentWillUnmount",value:function(){this.props.parent()&&(this.props.parent().removeEventListener("scroll",this.handleScroll,this.eventListenerOptions),this.props.parent().removeEventListener("resize",this.handleResize,this.eventListenerOptions)),window.removeEventListener("scroll",this.handleScroll,this.eventListenerOptions)}},{key:"render",value:function(){var R=this.props,W=R.className,G=R.tag,et=_objectWithoutProperties(R,["className","tag"]);delete et.onUnpin,delete et.onPin,delete et.onUnfix,delete et.disableInlineStyles,delete et.disable,delete et.pin,delete et.parent,delete et.children,delete et.upTolerance,delete et.downTolerance,delete et.pinStart,delete et.calcHeightOnResize;var er=et.style,ei=et.wrapperStyle,eo=_objectWithoutProperties(et,["style","wrapperStyle"]),es={position:this.props.disable||"unfixed"===this.state.state?"relative":"fixed",top:0,left:0,right:0,zIndex:1,WebkitTransform:"translate3D(0, "+this.state.translateY+", 0)",MsTransform:"translate3D(0, "+this.state.translateY+", 0)",transform:"translate3D(0, "+this.state.translateY+", 0)"},ec=this.state.className;this.state.animation&&(es=J({},es,{WebkitTransition:"all .2s ease-in-out",MozTransition:"all .2s ease-in-out",OTransition:"all .2s ease-in-out",transition:"all .2s ease-in-out"}),ec+=" headroom--scrolled"),es=this.props.disableInlineStyles?er:J({},es,er);var el=J({},ei,{height:this.state.height?this.state.height:null});return en.default.createElement(G,{style:el,className:W?W+" headroom-wrapper":"headroom-wrapper"},en.default.createElement("div",J({ref:this.setRef},eo,{style:es,className:ec}),this.props.children))}}]),Headroom}(er.Component);eu.propTypes={className:ei.default.string,parent:ei.default.func,children:ei.default.any.isRequired,disableInlineStyles:ei.default.bool,disable:ei.default.bool,pin:ei.default.bool,upTolerance:ei.default.number,downTolerance:ei.default.number,onPin:ei.default.func,onUnpin:ei.default.func,onUnfix:ei.default.func,wrapperStyle:ei.default.object,pinStart:ei.default.number,style:ei.default.object,calcHeightOnResize:ei.default.bool,tag:ei.default.string},eu.defaultProps={parent:function(){return window},disableInlineStyles:!1,disable:!1,pin:!1,upTolerance:5,downTolerance:0,onPin:noop,onUnpin:noop,onUnfix:noop,wrapperStyle:{},pinStart:0,calcHeightOnResize:!0,tag:"div"},W.Z=eu},23028:function(R,W){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=function(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},J=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},et=W>=R?"down":"up",er=Math.abs(W-R);if(G.disable)return{action:"none",scrollDirection:et,distanceScrolled:er};if(G.pin)return{action:"pinned"!==J.state?"pin":"none",scrollDirection:et,distanceScrolled:er};if(W<=G.pinStart&&"unfixed"!==J.state)return{action:"unfix",scrollDirection:et,distanceScrolled:er};if(W<=J.height&&"down"===et&&"unfixed"===J.state)return{action:"none",scrollDirection:et,distanceScrolled:er};if(W>J.height+G.pinStart&&"down"===et&&"unfixed"===J.state)return{action:"unpin-snap",scrollDirection:et,distanceScrolled:er};if("down"===et&&["pinned","unfixed"].indexOf(J.state)>=0&&W>J.height+G.pinStart&&er>G.downTolerance)return{action:"unpin",scrollDirection:et,distanceScrolled:er};if("up"===et&&er>G.upTolerance&&0>["pinned","unfixed"].indexOf(J.state))return{action:"pin",scrollDirection:et,distanceScrolled:er};else if("up"===et&&W<=J.height&&0>["pinned","unfixed"].indexOf(J.state))return{action:"pin",scrollDirection:et,distanceScrolled:er};else return{action:"none",scrollDirection:et,distanceScrolled:er}}},74509:function(R,W){"use strict";Object.defineProperty(W,"__esModule",{value:!0}),W.default=function(){var R=!1;try{var W={get passive(){return R=!0,!1}};window.addEventListener("test",null,W),window.removeEventListener("test",null,W)}catch(W){R=!1}return R}},69921:function(R,W){"use strict";/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var G,J=Symbol.for("react.element"),et=Symbol.for("react.portal"),er=Symbol.for("react.fragment"),en=Symbol.for("react.strict_mode"),ei=Symbol.for("react.profiler"),eo=Symbol.for("react.provider"),es=Symbol.for("react.context"),ec=Symbol.for("react.server_context"),el=Symbol.for("react.forward_ref"),eu=Symbol.for("react.suspense"),ed=Symbol.for("react.suspense_list"),ep=Symbol.for("react.memo"),ef=Symbol.for("react.lazy"),eh=Symbol.for("react.offscreen");function v(R){if("object"==typeof R&&null!==R){var W=R.$$typeof;switch(W){case J:switch(R=R.type){case er:case ei:case en:case eu:case ed:return R;default:switch(R=R&&R.$$typeof){case ec:case es:case el:case ef:case ep:case eo:return R;default:return W}}case et:return W}}}G=Symbol.for("react.module.reference"),W.ContextConsumer=es,W.ContextProvider=eo,W.Element=J,W.ForwardRef=el,W.Fragment=er,W.Lazy=ef,W.Memo=ep,W.Portal=et,W.Profiler=ei,W.StrictMode=en,W.Suspense=eu,W.SuspenseList=ed,W.isAsyncMode=function(){return!1},W.isConcurrentMode=function(){return!1},W.isContextConsumer=function(R){return v(R)===es},W.isContextProvider=function(R){return v(R)===eo},W.isElement=function(R){return"object"==typeof R&&null!==R&&R.$$typeof===J},W.isForwardRef=function(R){return v(R)===el},W.isFragment=function(R){return v(R)===er},W.isLazy=function(R){return v(R)===ef},W.isMemo=function(R){return v(R)===ep},W.isPortal=function(R){return v(R)===et},W.isProfiler=function(R){return v(R)===ei},W.isStrictMode=function(R){return v(R)===en},W.isSuspense=function(R){return v(R)===eu},W.isSuspenseList=function(R){return v(R)===ed},W.isValidElementType=function(R){return"string"==typeof R||"function"==typeof R||R===er||R===ei||R===en||R===eu||R===ed||R===eh||"object"==typeof R&&null!==R&&(R.$$typeof===ef||R.$$typeof===ep||R.$$typeof===eo||R.$$typeof===es||R.$$typeof===el||R.$$typeof===G||void 0!==R.getModuleId)},W.typeOf=v},59864:function(R,W,G){"use strict";R.exports=G(69921)},46871:function(R,W,G){"use strict";function componentWillMount(){var R=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=R&&this.setState(R)}function componentWillReceiveProps(R){this.setState((function(W){var G=this.constructor.getDerivedStateFromProps(R,W);return null!=G?G:null}).bind(this))}function componentWillUpdate(R,W){try{var G=this.props,J=this.state;this.props=R,this.state=W,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(G,J)}finally{this.props=G,this.state=J}}function polyfill(R){var W=R.prototype;if(!W||!W.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof R.getDerivedStateFromProps&&"function"!=typeof W.getSnapshotBeforeUpdate)return R;var G=null,J=null,et=null;if("function"==typeof W.componentWillMount?G="componentWillMount":"function"==typeof W.UNSAFE_componentWillMount&&(G="UNSAFE_componentWillMount"),"function"==typeof W.componentWillReceiveProps?J="componentWillReceiveProps":"function"==typeof W.UNSAFE_componentWillReceiveProps&&(J="UNSAFE_componentWillReceiveProps"),"function"==typeof W.componentWillUpdate?et="componentWillUpdate":"function"==typeof W.UNSAFE_componentWillUpdate&&(et="UNSAFE_componentWillUpdate"),null!==G||null!==J||null!==et)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(R.displayName||R.name)+" uses "+("function"==typeof R.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==G?"\n  "+G:"")+(null!==J?"\n  "+J:"")+(null!==et?"\n  "+et:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof R.getDerivedStateFromProps&&(W.componentWillMount=componentWillMount,W.componentWillReceiveProps=componentWillReceiveProps),"function"==typeof W.getSnapshotBeforeUpdate){if("function"!=typeof W.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");W.componentWillUpdate=componentWillUpdate;var er=W.componentDidUpdate;W.componentDidUpdate=function(R,W,G){var J=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:G;er.call(this,R,W,J)}}return R}G.r(W),G.d(W,{polyfill:function(){return polyfill}}),componentWillMount.__suppressDeprecationWarning=!0,componentWillReceiveProps.__suppressDeprecationWarning=!0,componentWillUpdate.__suppressDeprecationWarning=!0},32686:function(R,W,G){var J=G(83888),et=G(3138),er=G(1855),en=er.MUST_USE_PROPERTY,ei=er.HAS_BOOLEAN_VALUE,eo=er.HAS_NUMERIC_VALUE,es=er.HAS_POSITIVE_NUMERIC_VALUE,ec=er.HAS_OVERLOADED_BOOLEAN_VALUE;function injectDOMPropertyConfig(R,W,G){var J,et,er,el=R.Properties,eu=R.DOMAttributeNames;for(et in el)J=eu[et]||(G?et:et.toLowerCase()),er=el[et],W[J]={attributeName:J,propertyName:et,mustUseProperty:(er&en)===en,hasBooleanValue:(er&ei)===ei,hasNumericValue:(er&eo)===eo,hasPositiveNumericValue:(er&es)===es,hasOverloadedBooleanValue:(er&ec)===ec}}var el={};injectDOMPropertyConfig(J,el);var eu={};injectDOMPropertyConfig(et,eu,!0);var ed={};injectDOMPropertyConfig(J,ed),injectDOMPropertyConfig(et,ed,!0),R.exports={html:el,svg:eu,properties:ed,isCustomAttribute:RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"))}},83888:function(R){R.exports={Properties:{autoFocus:4,accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:4,allowTransparency:0,alt:0,as:0,async:4,autoComplete:0,autoPlay:4,capture:4,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:5,cite:0,classID:0,className:0,cols:24,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:4,controlsList:0,coords:0,crossOrigin:0,data:0,dateTime:0,default:4,defer:4,dir:0,disabled:4,download:32,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:4,formTarget:0,frameBorder:0,headers:0,height:0,hidden:4,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:4,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:5,muted:5,name:0,nonce:0,noValidate:4,open:4,optimum:0,pattern:0,placeholder:0,playsInline:4,poster:0,preload:0,profile:0,radioGroup:0,readOnly:4,referrerPolicy:0,rel:0,required:4,reversed:4,role:0,rows:24,rowSpan:8,sandbox:0,scope:0,scoped:4,scrolling:0,seamless:4,selected:5,shape:0,size:24,sizes:0,span:24,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:8,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:4,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"}}},3138:function(R){R.exports={Properties:{accentHeight:0,accumulate:0,additive:0,alignmentBaseline:0,allowReorder:0,alphabetic:0,amplitude:0,arabicForm:0,ascent:0,attributeName:0,attributeType:0,autoReverse:0,azimuth:0,baseFrequency:0,baseProfile:0,baselineShift:0,bbox:0,begin:0,bias:0,by:0,calcMode:0,capHeight:0,clip:0,clipPath:0,clipRule:0,clipPathUnits:0,colorInterpolation:0,colorInterpolationFilters:0,colorProfile:0,colorRendering:0,contentScriptType:0,contentStyleType:0,cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:0,direction:0,display:0,divisor:0,dominantBaseline:0,dur:0,dx:0,dy:0,edgeMode:0,elevation:0,enableBackground:0,end:0,exponent:0,externalResourcesRequired:0,fill:0,fillOpacity:0,fillRule:0,filter:0,filterRes:0,filterUnits:0,floodColor:0,floodOpacity:0,focusable:0,fontFamily:0,fontSize:0,fontSizeAdjust:0,fontStretch:0,fontStyle:0,fontVariant:0,fontWeight:0,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:0,glyphOrientationHorizontal:0,glyphOrientationVertical:0,glyphRef:0,gradientTransform:0,gradientUnits:0,hanging:0,horizAdvX:0,horizOriginX:0,ideographic:0,imageRendering:0,in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:0,kernelUnitLength:0,kerning:0,keyPoints:0,keySplines:0,keyTimes:0,lengthAdjust:0,letterSpacing:0,lightingColor:0,limitingConeAngle:0,local:0,markerEnd:0,markerMid:0,markerStart:0,markerHeight:0,markerUnits:0,markerWidth:0,mask:0,maskContentUnits:0,maskUnits:0,mathematical:0,mode:0,numOctaves:0,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:0,overlineThickness:0,paintOrder:0,panose1:0,pathLength:0,patternContentUnits:0,patternTransform:0,patternUnits:0,pointerEvents:0,points:0,pointsAtX:0,pointsAtY:0,pointsAtZ:0,preserveAlpha:0,preserveAspectRatio:0,primitiveUnits:0,r:0,radius:0,refX:0,refY:0,renderingIntent:0,repeatCount:0,repeatDur:0,requiredExtensions:0,requiredFeatures:0,restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:0,slope:0,spacing:0,specularConstant:0,specularExponent:0,speed:0,spreadMethod:0,startOffset:0,stdDeviation:0,stemh:0,stemv:0,stitchTiles:0,stopColor:0,stopOpacity:0,strikethroughPosition:0,strikethroughThickness:0,string:0,stroke:0,strokeDasharray:0,strokeDashoffset:0,strokeLinecap:0,strokeLinejoin:0,strokeMiterlimit:0,strokeOpacity:0,strokeWidth:0,surfaceScale:0,systemLanguage:0,tableValues:0,targetX:0,targetY:0,textAnchor:0,textDecoration:0,textRendering:0,textLength:0,to:0,transform:0,u1:0,u2:0,underlinePosition:0,underlineThickness:0,unicode:0,unicodeBidi:0,unicodeRange:0,unitsPerEm:0,vAlphabetic:0,vHanging:0,vIdeographic:0,vMathematical:0,values:0,vectorEffect:0,version:0,vertAdvY:0,vertOriginX:0,vertOriginY:0,viewBox:0,viewTarget:0,visibility:0,widths:0,wordSpacing:0,writingMode:0,x:0,xHeight:0,x1:0,x2:0,xChannelSelector:0,xlinkActuate:0,xlinkArcrole:0,xlinkHref:0,xlinkRole:0,xlinkShow:0,xlinkTitle:0,xlinkType:0,xmlBase:0,xmlns:0,xmlnsXlink:0,xmlLang:0,xmlSpace:0,y:0,y1:0,y2:0,yChannelSelector:0,z:0,zoomAndPan:0},DOMAttributeNames:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space"}}},1855:function(R){R.exports={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32}},25617:function(R,W,G){"use strict";G.d(W,{zt:function(){return components_Provider},I0:function(){return eu},v9:function(){return ed}});var J,et,er,en,ei=G(67294),eo=ei.createContext(null),batch=function(R){R()},es={notify:function(){},get:function(){return[]}};function Subscription_createSubscription(R,W){var G,J=es;function handleChangeWrapper(){et.onStateChange&&et.onStateChange()}function trySubscribe(){if(!G){var et,er,en;G=W?W.addNestedSub(handleChangeWrapper):R.subscribe(handleChangeWrapper),et=batch,er=null,en=null,J={clear:function(){er=null,en=null},notify:function(){et(function(){for(var R=er;R;)R.callback(),R=R.next})},get:function(){for(var R=[],W=er;W;)R.push(W),W=W.next;return R},subscribe:function(R){var W=!0,G=en={callback:R,next:null,prev:en};return G.prev?G.prev.next=G:er=G,function(){W&&null!==er&&(W=!1,G.next?G.next.prev=G.prev:en=G.prev,G.prev?G.prev.next=G.next:er=G.next)}}}}}var et={addNestedSub:function(R){return trySubscribe(),J.subscribe(R)},notifyNestedSubs:function(){J.notify()},handleChangeWrapper:handleChangeWrapper,isSubscribed:function(){return!!G},trySubscribe:trySubscribe,tryUnsubscribe:function(){G&&(G(),G=void 0,J.clear(),J=es)},getListeners:function(){return J}};return et}var ec="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?ei.useLayoutEffect:ei.useEffect,components_Provider=function(R){var W=R.store,G=R.context,J=R.children,et=(0,ei.useMemo)(function(){var R=Subscription_createSubscription(W);return{store:W,subscription:R}},[W]),er=(0,ei.useMemo)(function(){return W.getState()},[W]);ec(function(){var R=et.subscription;return R.onStateChange=R.notifyNestedSubs,R.trySubscribe(),er!==W.getState()&&R.notifyNestedSubs(),function(){R.tryUnsubscribe(),R.onStateChange=null}},[et,er]);var en=G||eo;return ei.createElement(en.Provider,{value:et},J)};function useReduxContext_useReduxContext(){return(0,ei.useContext)(eo)}function createStoreHook(R){void 0===R&&(R=eo);var W=R===eo?useReduxContext_useReduxContext:function(){return(0,ei.useContext)(R)};return function(){return W().store}}G(8679),G(72973),G(87462);var el=createStoreHook(),eu=(void 0===J&&(J=eo),et=J===eo?el:createStoreHook(J),function(){return et().dispatch}),refEquality=function(R,W){return R===W},ed=(void 0===er&&(er=eo),en=er===eo?useReduxContext_useReduxContext:function(){return(0,ei.useContext)(er)},function(R,W){void 0===W&&(W=refEquality);var G=en(),J=function(R,W,G,J){var et,er=(0,ei.useReducer)(function(R){return R+1},0)[1],en=(0,ei.useMemo)(function(){return Subscription_createSubscription(G,J)},[G,J]),eo=(0,ei.useRef)(),es=(0,ei.useRef)(),el=(0,ei.useRef)(),eu=(0,ei.useRef)(),ed=G.getState();try{if(R!==es.current||ed!==el.current||eo.current){var ep=R(ed);et=void 0!==eu.current&&W(ep,eu.current)?eu.current:ep}else et=eu.current}catch(R){throw eo.current&&(R.message+="\nThe error may be correlated with this previous error:\n"+eo.current.stack+"\n\n"),R}return ec(function(){es.current=R,el.current=ed,eu.current=et,eo.current=void 0}),ec(function(){function checkForUpdates(){try{var R=G.getState();if(R===el.current)return;var J=es.current(R);if(W(J,eu.current))return;eu.current=J,el.current=R}catch(R){eo.current=R}er()}return en.onStateChange=checkForUpdates,en.trySubscribe(),checkForUpdates(),function(){return en.tryUnsubscribe()}},[G,en]),et}(R,W,G.store,G.subscription);return(0,ei.useDebugValue)(J),J});batch=G(73935).unstable_batchedUpdates},88359:function(R,W){"use strict";/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var G=60103,J=60106,et=60107,er=60108,en=60114,ei=60109,eo=60110,es=60112,ec=60113,el=60120,eu=60115,ed=60116;if("function"==typeof Symbol&&Symbol.for){var ep=Symbol.for;ep("react.element"),ep("react.portal"),ep("react.fragment"),ep("react.strict_mode"),ep("react.profiler"),ep("react.provider"),ep("react.context"),ep("react.forward_ref"),ep("react.suspense"),ep("react.suspense_list"),ep("react.memo"),ep("react.lazy"),ep("react.block"),ep("react.server.block"),ep("react.fundamental"),ep("react.debug_trace_mode"),ep("react.legacy_hidden")}},72973:function(R,W,G){"use strict";G(88359)},93801:function(R,W,G){"use strict";G.d(W,{ZP:function(){return eT},bO:function(){return translateStyle}});var J=G(67294),et=G(45697),er=G.n(et),en=Object.getOwnPropertyNames,ei=Object.getOwnPropertySymbols,eo=Object.prototype.hasOwnProperty;function combineComparators(R,W){return function(G,J,et){return R(G,J,et)&&W(G,J,et)}}function createIsCircular(R){return function(W,G,J){if(!W||!G||"object"!=typeof W||"object"!=typeof G)return R(W,G,J);var et=J.cache,er=et.get(W),en=et.get(G);if(er&&en)return er===G&&en===W;et.set(W,G),et.set(G,W);var ei=R(W,G,J);return et.delete(W),et.delete(G),ei}}function getStrictProperties(R){return en(R).concat(ei(R))}var es=Object.hasOwn||function(R,W){return eo.call(R,W)};function sameValueZeroEqual(R,W){return R||W?R===W:R===W||R!=R&&W!=W}var ec="_owner",el=Object.getOwnPropertyDescriptor,eu=Object.keys;function areArraysEqual(R,W,G){var J=R.length;if(W.length!==J)return!1;for(;J-- >0;)if(!G.equals(R[J],W[J],J,J,R,W,G))return!1;return!0}function areDatesEqual(R,W){return sameValueZeroEqual(R.getTime(),W.getTime())}function areMapsEqual(R,W,G){if(R.size!==W.size)return!1;for(var J,et,er={},en=R.entries(),ei=0;(J=en.next())&&!J.done;){for(var eo=W.entries(),es=!1,ec=0;(et=eo.next())&&!et.done;){var el=J.value,eu=el[0],ed=el[1],ep=et.value,ef=ep[0],eh=ep[1];!es&&!er[ec]&&(es=G.equals(eu,ef,ei,ec,R,W,G)&&G.equals(ed,eh,eu,ef,R,W,G))&&(er[ec]=!0),ec++}if(!es)return!1;ei++}return!0}function areObjectsEqual(R,W,G){var J,et=eu(R),er=et.length;if(eu(W).length!==er)return!1;for(;er-- >0;)if((J=et[er])===ec&&(R.$$typeof||W.$$typeof)&&R.$$typeof!==W.$$typeof||!es(W,J)||!G.equals(R[J],W[J],J,J,R,W,G))return!1;return!0}function areObjectsEqualStrict(R,W,G){var J,et,er,en=getStrictProperties(R),ei=en.length;if(getStrictProperties(W).length!==ei)return!1;for(;ei-- >0;)if((J=en[ei])===ec&&(R.$$typeof||W.$$typeof)&&R.$$typeof!==W.$$typeof||!es(W,J)||!G.equals(R[J],W[J],J,J,R,W,G)||(et=el(R,J),er=el(W,J),(et||er)&&(!et||!er||et.configurable!==er.configurable||et.enumerable!==er.enumerable||et.writable!==er.writable)))return!1;return!0}function arePrimitiveWrappersEqual(R,W){return sameValueZeroEqual(R.valueOf(),W.valueOf())}function areRegExpsEqual(R,W){return R.source===W.source&&R.flags===W.flags}function areSetsEqual(R,W,G){if(R.size!==W.size)return!1;for(var J,et,er={},en=R.values();(J=en.next())&&!J.done;){for(var ei=W.values(),eo=!1,es=0;(et=ei.next())&&!et.done;)!eo&&!er[es]&&(eo=G.equals(J.value,et.value,J.value,et.value,R,W,G))&&(er[es]=!0),es++;if(!eo)return!1}return!0}function areTypedArraysEqual(R,W){var G=R.length;if(W.length!==G)return!1;for(;G-- >0;)if(R[G]!==W[G])return!1;return!0}var ed=Array.isArray,ep="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,ef=Object.assign,eh=Object.prototype.toString.call.bind(Object.prototype.toString),eg=createCustomEqual();function createCustomEqual(R){void 0===R&&(R={});var W,G,J,et,er,en,ei,eo,es,ec=R.circular,el=R.createInternalComparator,eu=R.createState,eg=R.strict,em=(G=(W=function(R){var W=R.circular,G=R.createCustomConfig,J=R.strict,et={areArraysEqual:J?areObjectsEqualStrict:areArraysEqual,areDatesEqual:areDatesEqual,areMapsEqual:J?combineComparators(areMapsEqual,areObjectsEqualStrict):areMapsEqual,areObjectsEqual:J?areObjectsEqualStrict:areObjectsEqual,arePrimitiveWrappersEqual:arePrimitiveWrappersEqual,areRegExpsEqual:areRegExpsEqual,areSetsEqual:J?combineComparators(areSetsEqual,areObjectsEqualStrict):areSetsEqual,areTypedArraysEqual:J?areObjectsEqualStrict:areTypedArraysEqual};if(G&&(et=ef({},et,G(et))),W){var er=createIsCircular(et.areArraysEqual),en=createIsCircular(et.areMapsEqual),ei=createIsCircular(et.areObjectsEqual),eo=createIsCircular(et.areSetsEqual);et=ef({},et,{areArraysEqual:er,areMapsEqual:en,areObjectsEqual:ei,areSetsEqual:eo})}return et}(R)).areArraysEqual,J=W.areDatesEqual,et=W.areMapsEqual,er=W.areObjectsEqual,en=W.arePrimitiveWrappersEqual,ei=W.areRegExpsEqual,eo=W.areSetsEqual,es=W.areTypedArraysEqual,function(R,W,ec){if(R===W)return!0;if(null==R||null==W||"object"!=typeof R||"object"!=typeof W)return R!=R&&W!=W;var el=R.constructor;if(el!==W.constructor)return!1;if(el===Object)return er(R,W,ec);if(ed(R))return G(R,W,ec);if(null!=ep&&ep(R))return es(R,W,ec);if(el===Date)return J(R,W,ec);if(el===RegExp)return ei(R,W,ec);if(el===Map)return et(R,W,ec);if(el===Set)return eo(R,W,ec);var eu=eh(R);return"[object Date]"===eu?J(R,W,ec):"[object RegExp]"===eu?ei(R,W,ec):"[object Map]"===eu?et(R,W,ec):"[object Set]"===eu?eo(R,W,ec):"[object Object]"===eu?"function"!=typeof R.then&&"function"!=typeof W.then&&er(R,W,ec):"[object Arguments]"===eu?er(R,W,ec):("[object Boolean]"===eu||"[object Number]"===eu||"[object String]"===eu)&&en(R,W,ec)}),ey=el?el(em):function(R,W,G,J,et,er,en){return em(R,W,en)};return function(R){var W=R.circular,G=R.comparator,J=R.createState,et=R.equals,er=R.strict;if(J)return function(R,en){var ei=J(),eo=ei.cache;return G(R,en,{cache:void 0===eo?W?new WeakMap:void 0:eo,equals:et,meta:ei.meta,strict:er})};if(W)return function(R,W){return G(R,W,{cache:new WeakMap,equals:et,meta:void 0,strict:er})};var en={cache:void 0,equals:et,meta:void 0,strict:er};return function(R,W){return G(R,W,en)}}({circular:void 0!==ec&&ec,comparator:em,createState:eu,equals:ey,strict:void 0!==eg&&eg})}function setRafTimeout(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,G=-1;requestAnimationFrame(function shouldUpdate(J){if(G<0&&(G=J),J-G>W)R(J),G=-1;else{var et;et=shouldUpdate,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(et)}})}function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function util_typeof(R){return(util_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperty(R,W,G){var J;return(J=function(R,W){if("object"!==util_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==util_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(W,"string"),(W="symbol"===util_typeof(J)?J:String(J))in R)?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}createCustomEqual({strict:!0}),createCustomEqual({circular:!0}),createCustomEqual({circular:!0,strict:!0}),createCustomEqual({createInternalComparator:function(){return sameValueZeroEqual}}),createCustomEqual({strict:!0,createInternalComparator:function(){return sameValueZeroEqual}}),createCustomEqual({circular:!0,createInternalComparator:function(){return sameValueZeroEqual}}),createCustomEqual({circular:!0,createInternalComparator:function(){return sameValueZeroEqual},strict:!0});var em=["Webkit","Moz","O","ms"],ey=["-webkit-","-moz-","-o-","-ms-"],ev=["transform","transformOrigin","transition"],identity=function(R){return R},generatePrefixStyle=function(R,W){if(-1===ev.indexOf(R))return _defineProperty({},R,Number.isNaN(W)?0:W);var G="transition"===R,J=R.replace(/(\w)/,function(R){return R.toUpperCase()}),et=W;return em.reduce(function(R,er,en){return G&&(et=W.replace(/(transform|transform-origin)/gim,"".concat(ey[en],"$1"))),_objectSpread(_objectSpread({},R),{},_defineProperty({},er+J,et))},{})},mapObject=function(R,W){return Object.keys(W).reduce(function(G,J){return _objectSpread(_objectSpread({},G),{},_defineProperty({},J,R(J,W[J])))},{})},translateStyle=function(R){return Object.keys(R).reduce(function(R,W){return _objectSpread(_objectSpread({},R),generatePrefixStyle(W,R[W]))},R)},getTransitionVal=function(R,W,G){return R.map(function(R){return"".concat(R.replace(/([A-Z])/g,function(R){return"-".concat(R.toLowerCase())})," ").concat(W,"ms ").concat(G)}).join(",")},warn=function(R,W,G,J,et,er,en,ei){};function easing_unsupportedIterableToArray(R,W){if(R){if("string"==typeof R)return easing_arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return easing_arrayLikeToArray(R,W)}}function easing_arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}var cubicBezierFactor=function(R,W){return[0,3*R,3*W-6*R,3*R-3*W+1]},multyTime=function(R,W){return R.map(function(R,G){return R*Math.pow(W,G)}).reduce(function(R,W){return R+W})},cubicBezier=function(R,W){return function(G){return multyTime(cubicBezierFactor(R,W),G)}},configBezier=function(){for(var R,W,G=arguments.length,J=Array(G),et=0;et<G;et++)J[et]=arguments[et];var er=J[0],en=J[1],ei=J[2],eo=J[3];if(1===J.length)switch(J[0]){case"linear":er=0,en=0,ei=1,eo=1;break;case"ease":er=.25,en=.1,ei=.25,eo=1;break;case"ease-in":er=.42,en=0,ei=1,eo=1;break;case"ease-out":er=.42,en=0,ei=.58,eo=1;break;case"ease-in-out":er=0,en=0,ei=.58,eo=1;break;default:var es=J[0].split("(");if("cubic-bezier"===es[0]&&4===es[1].split(")")[0].split(",").length){var ec,el=function(R){if(Array.isArray(R))return R}(ec=es[1].split(")")[0].split(",").map(function(R){return parseFloat(R)}))||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(ec,4)||easing_unsupportedIterableToArray(ec,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();er=el[0],en=el[1],ei=el[2],eo=el[3]}else warn(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",J)}warn([er,ei,en,eo].every(function(R){return"number"==typeof R&&R>=0&&R<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",J);var eu=cubicBezier(er,ei),ed=cubicBezier(en,eo),ep=(R=er,W=ei,function(G){var J;return multyTime([].concat(function(R){if(Array.isArray(R))return easing_arrayLikeToArray(R)}(J=cubicBezierFactor(R,W).map(function(R,W){return R*W}).slice(1))||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(J)||easing_unsupportedIterableToArray(J)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),G)}),bezier=function(R){for(var W=R>1?1:R,G=W,J=0;J<8;++J){var et,er=eu(G)-W,en=ep(G);if(1e-4>Math.abs(er-W)||en<1e-4)break;G=(et=G-er/en)>1?1:et<0?0:et}return ed(G)};return bezier.isStepper=!1,bezier},configSpring=function(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},W=R.stiff,G=void 0===W?100:W,J=R.damping,et=void 0===J?8:J,er=R.dt,en=void 0===er?17:er,stepper=function(R,W,J){var er=J+(-(R-W)*G-J*et)*en/1e3,ei=J*en/1e3+R;return 1e-4>Math.abs(ei-W)&&1e-4>Math.abs(er)?[W,0]:[ei,er]};return stepper.isStepper=!0,stepper.dt=en,stepper},configEasing=function(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];var J=W[0];if("string"==typeof J)switch(J){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return configBezier(J);case"spring":return configSpring();default:if("cubic-bezier"===J.split("(")[0])return configBezier(J);warn(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead  received %s",W)}return"function"==typeof J?J:(warn(!1,"[configEasing]: first argument type should be function or string, instead received %s",W),null)};function configUpdate_typeof(R){return(configUpdate_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function configUpdate_toConsumableArray(R){return function(R){if(Array.isArray(R))return configUpdate_arrayLikeToArray(R)}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||configUpdate_unsupportedIterableToArray(R)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function configUpdate_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function configUpdate_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?configUpdate_ownKeys(Object(G),!0).forEach(function(W){configUpdate_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):configUpdate_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function configUpdate_defineProperty(R,W,G){var J;return(J=function(R,W){if("object"!==configUpdate_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==configUpdate_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(W,"string"),(W="symbol"===configUpdate_typeof(J)?J:String(J))in R)?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function configUpdate_unsupportedIterableToArray(R,W){if(R){if("string"==typeof R)return configUpdate_arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return configUpdate_arrayLikeToArray(R,W)}}function configUpdate_arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}var alpha=function(R,W,G){return R+(W-R)*G},needContinue=function(R){return R.from!==R.to},calStepperVals=function calStepperVals(R,W,G){var J=mapObject(function(W,G){if(needContinue(G)){var J,et=function(R){if(Array.isArray(R))return R}(J=R(G.from,G.to,G.velocity))||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(J,2)||configUpdate_unsupportedIterableToArray(J,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),er=et[0],en=et[1];return configUpdate_objectSpread(configUpdate_objectSpread({},G),{},{from:er,velocity:en})}return G},W);return G<1?mapObject(function(R,W){return needContinue(W)?configUpdate_objectSpread(configUpdate_objectSpread({},W),{},{velocity:alpha(W.velocity,J[R].velocity,G),from:alpha(W.from,J[R].from,G)}):W},W):calStepperVals(R,J,G-1)},configUpdate=function(R,W,G,J,et){var er,en,ei=[Object.keys(R),Object.keys(W)].reduce(function(R,W){return R.filter(function(R){return W.includes(R)})}),eo=ei.reduce(function(G,J){return configUpdate_objectSpread(configUpdate_objectSpread({},G),{},configUpdate_defineProperty({},J,[R[J],W[J]]))},{}),es=ei.reduce(function(G,J){return configUpdate_objectSpread(configUpdate_objectSpread({},G),{},configUpdate_defineProperty({},J,{from:R[J],velocity:0,to:W[J]}))},{}),ec=-1,update=function(){return null};return update=G.isStepper?function(J){er||(er=J);var en=(J-er)/G.dt;es=calStepperVals(G,es,en),et(configUpdate_objectSpread(configUpdate_objectSpread(configUpdate_objectSpread({},R),W),mapObject(function(R,W){return W.from},es))),er=J,Object.values(es).filter(needContinue).length&&(ec=requestAnimationFrame(update))}:function(er){en||(en=er);var ei=(er-en)/J,es=mapObject(function(R,W){return alpha.apply(void 0,configUpdate_toConsumableArray(W).concat([G(ei)]))},eo);if(et(configUpdate_objectSpread(configUpdate_objectSpread(configUpdate_objectSpread({},R),W),es)),ei<1)ec=requestAnimationFrame(update);else{var el=mapObject(function(R,W){return alpha.apply(void 0,configUpdate_toConsumableArray(W).concat([G(1)]))},eo);et(configUpdate_objectSpread(configUpdate_objectSpread(configUpdate_objectSpread({},R),W),el))}},function(){return requestAnimationFrame(update),function(){cancelAnimationFrame(ec)}}};function Animate_typeof(R){return(Animate_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var eb=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Animate_toConsumableArray(R){return function(R){if(Array.isArray(R))return Animate_arrayLikeToArray(R)}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||function(R,W){if(R){if("string"==typeof R)return Animate_arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return Animate_arrayLikeToArray(R,W)}}(R)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Animate_arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function Animate_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Animate_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Animate_ownKeys(Object(G),!0).forEach(function(W){Animate_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Animate_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function Animate_defineProperty(R,W,G){return(W=Animate_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,Animate_toPropertyKey(J.key),J)}}function Animate_toPropertyKey(R){var W=function(R,W){if("object"!==Animate_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==Animate_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===Animate_typeof(W)?W:String(W)}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _possibleConstructorReturn(R,W){if(W&&("object"===Animate_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(R)}function _assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}var e_=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(Animate,R);var W,G,et,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(Animate);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return _possibleConstructorReturn(this,R)});function Animate(R,W){!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,Animate);var G,J=(G=er.call(this,R,W)).props,et=J.isActive,en=J.attributeName,ei=J.from,eo=J.to,es=J.steps,ec=J.children,el=J.duration;if(G.handleStyleChange=G.handleStyleChange.bind(_assertThisInitialized(G)),G.changeStyle=G.changeStyle.bind(_assertThisInitialized(G)),!et||el<=0)return G.state={style:{}},"function"==typeof ec&&(G.state={style:eo}),_possibleConstructorReturn(G);if(es&&es.length)G.state={style:es[0].style};else if(ei){if("function"==typeof ec)return G.state={style:ei},_possibleConstructorReturn(G);G.state={style:en?Animate_defineProperty({},en,ei):ei}}else G.state={style:{}};return G}return G=[{key:"componentDidMount",value:function(){var R=this.props,W=R.isActive,G=R.canBegin;this.mounted=!0,W&&G&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(R){var W=this.props,G=W.isActive,J=W.canBegin,et=W.attributeName,er=W.shouldReAnimate,en=W.to,ei=W.from,eo=this.state.style;if(J){if(!G){var es={style:et?Animate_defineProperty({},et,en):en};this.state&&eo&&(et&&eo[et]!==en||!et&&eo!==en)&&this.setState(es);return}if(!eg(R.to,en)||!R.canBegin||!R.isActive){var ec=!R.canBegin||!R.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var el=ec||er?ei:R.to;if(this.state&&eo){var eu={style:et?Animate_defineProperty({},et,el):el};(et&&[et]!==el||!et&&eo!==el)&&this.setState(eu)}this.runAnimation(Animate_objectSpread(Animate_objectSpread({},this.props),{},{from:el,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var R=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),R&&R()}},{key:"handleStyleChange",value:function(R){this.changeStyle(R)}},{key:"changeStyle",value:function(R){this.mounted&&this.setState({style:R})}},{key:"runJSAnimation",value:function(R){var W=this,G=R.from,J=R.to,et=R.duration,er=R.easing,en=R.begin,ei=R.onAnimationEnd,eo=R.onAnimationStart,es=configUpdate(G,J,configEasing(er),et,this.changeStyle);this.manager.start([eo,en,function(){W.stopJSAnimation=es()},et,ei])}},{key:"runStepAnimation",value:function(R){var W=this,G=R.steps,J=R.begin,et=R.onAnimationStart,er=G[0],en=er.style,ei=er.duration;return this.manager.start([et].concat(Animate_toConsumableArray(G.reduce(function(R,J,et){if(0===et)return R;var er=J.duration,en=J.easing,ei=void 0===en?"ease":en,eo=J.style,es=J.properties,ec=J.onAnimationEnd,el=et>0?G[et-1]:J,eu=es||Object.keys(eo);if("function"==typeof ei||"spring"===ei)return[].concat(Animate_toConsumableArray(R),[W.runJSAnimation.bind(W,{from:el.style,to:eo,duration:er,easing:ei}),er]);var ed=getTransitionVal(eu,er,ei),ep=Animate_objectSpread(Animate_objectSpread(Animate_objectSpread({},el.style),eo),{},{transition:ed});return[].concat(Animate_toConsumableArray(R),[ep,er,ec]).filter(identity)},[en,Math.max(void 0===ei?0:ei,J)])),[R.onAnimationEnd]))}},{key:"runAnimation",value:function(R){if(!this.manager){var W,G,J;this.manager=(W=function(){return null},G=!1,J=function setStyle(R){if(!G){if(Array.isArray(R)){if(!R.length)return;var J=function(R){if(Array.isArray(R))return R}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(R)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),et=J[0],er=J.slice(1);if("number"==typeof et){setRafTimeout(setStyle.bind(null,er),et);return}setStyle(et),setRafTimeout(setStyle.bind(null,er));return}"object"===_typeof(R)&&W(R),"function"==typeof R&&R()}},{stop:function(){G=!0},start:function(R){G=!1,J(R)},subscribe:function(R){return W=R,function(){W=function(){return null}}}})}var et=R.begin,er=R.duration,en=R.attributeName,ei=R.to,eo=R.easing,es=R.onAnimationStart,ec=R.onAnimationEnd,el=R.steps,eu=R.children,ed=this.manager;if(this.unSubscribe=ed.subscribe(this.handleStyleChange),"function"==typeof eo||"function"==typeof eu||"spring"===eo){this.runJSAnimation(R);return}if(el.length>1){this.runStepAnimation(R);return}var ep=en?Animate_defineProperty({},en,ei):ei,ef=getTransitionVal(Object.keys(ep),er,eo);ed.start([es,et,Animate_objectSpread(Animate_objectSpread({},ep),{},{transition:ef}),er,ec])}},{key:"render",value:function(){var R=this.props,W=R.children,G=(R.begin,R.duration),et=(R.attributeName,R.easing,R.isActive),er=(R.steps,R.from,R.to,R.canBegin,R.onAnimationEnd,R.shouldReAnimate,R.onAnimationReStart,function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,eb)),en=J.Children.count(W),ei=translateStyle(this.state.style);if("function"==typeof W)return W(ei);if(!et||0===en||G<=0)return W;var cloneContainer=function(R){var W=R.props,G=W.style,et=void 0===G?{}:G,en=W.className;return(0,J.cloneElement)(R,Animate_objectSpread(Animate_objectSpread({},er),{},{style:Animate_objectSpread(Animate_objectSpread({},et),ei),className:en}))};return 1===en?cloneContainer(J.Children.only(W)):J.createElement("div",null,J.Children.map(W,function(R){return cloneContainer(R)}))}}],_defineProperties(Animate.prototype,G),et&&_defineProperties(Animate,et),Object.defineProperty(Animate,"prototype",{writable:!1}),Animate}(J.PureComponent);e_.displayName="Animate",e_.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},e_.propTypes={from:er().oneOfType([er().object,er().string]),to:er().oneOfType([er().object,er().string]),attributeName:er().string,duration:er().number,begin:er().number,easing:er().oneOfType([er().string,er().func]),steps:er().arrayOf(er().shape({duration:er().number.isRequired,style:er().object.isRequired,easing:er().oneOfType([er().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),er().func]),properties:er().arrayOf("string"),onAnimationEnd:er().func})),children:er().oneOfType([er().node,er().func]),isActive:er().bool,canBegin:er().bool,onAnimationEnd:er().func,shouldReAnimate:er().bool,onAnimationStart:er().func,onAnimationReStart:er().func};var ex=G(64317),ew=["children","appearOptions","enterOptions","leaveOptions"];function AnimateGroupChild_typeof(R){return(AnimateGroupChild_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function AnimateGroupChild_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function AnimateGroupChild_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?AnimateGroupChild_ownKeys(Object(G),!0).forEach(function(W){AnimateGroupChild_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):AnimateGroupChild_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function AnimateGroupChild_defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,AnimateGroupChild_toPropertyKey(J.key),J)}}function AnimateGroupChild_setPrototypeOf(R,W){return(AnimateGroupChild_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function AnimateGroupChild_assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function AnimateGroupChild_getPrototypeOf(R){return(AnimateGroupChild_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function AnimateGroupChild_defineProperty(R,W,G){return(W=AnimateGroupChild_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function AnimateGroupChild_toPropertyKey(R){var W=function(R,W){if("object"!==AnimateGroupChild_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==AnimateGroupChild_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===AnimateGroupChild_typeof(W)?W:String(W)}void 0===Number.isFinite&&(Number.isFinite=function(R){return"number"==typeof R&&isFinite(R)});var parseDurationOfSingleTransition=function(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},W=R.steps,G=R.duration;return W&&W.length?W.reduce(function(R,W){return R+(Number.isFinite(W.duration)&&W.duration>0?W.duration:0)},0):Number.isFinite(G)?G:0},eS=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&AnimateGroupChild_setPrototypeOf(R,W)}(AnimateGroupChild,R);var W,G,et,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=AnimateGroupChild_getPrototypeOf(AnimateGroupChild);if(W){var J=AnimateGroupChild_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===AnimateGroupChild_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return AnimateGroupChild_assertThisInitialized(R)}(this,R)});function AnimateGroupChild(){var R;return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,AnimateGroupChild),AnimateGroupChild_defineProperty(AnimateGroupChild_assertThisInitialized(R=er.call(this)),"handleEnter",function(W,G){var J=R.props,et=J.appearOptions,er=J.enterOptions;R.handleStyleActive(G?et:er)}),AnimateGroupChild_defineProperty(AnimateGroupChild_assertThisInitialized(R),"handleExit",function(){var W=R.props.leaveOptions;R.handleStyleActive(W)}),R.state={isActive:!1},R}return G=[{key:"handleStyleActive",value:function(R){if(R){var W=R.onAnimationEnd?function(){R.onAnimationEnd()}:null;this.setState(AnimateGroupChild_objectSpread(AnimateGroupChild_objectSpread({},R),{},{onAnimationEnd:W,isActive:!0}))}}},{key:"parseTimeout",value:function(){var R=this.props,W=R.appearOptions,G=R.enterOptions,J=R.leaveOptions;return parseDurationOfSingleTransition(W)+parseDurationOfSingleTransition(G)+parseDurationOfSingleTransition(J)}},{key:"render",value:function(){var R=this,W=this.props,G=W.children,et=(W.appearOptions,W.enterOptions,W.leaveOptions,function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(W,ew));return J.createElement(ex.Transition,_extends({},et,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return J.createElement(e_,R.state,J.Children.only(G))})}}],AnimateGroupChild_defineProperties(AnimateGroupChild.prototype,G),et&&AnimateGroupChild_defineProperties(AnimateGroupChild,et),Object.defineProperty(AnimateGroupChild,"prototype",{writable:!1}),AnimateGroupChild}(J.Component);function AnimateGroup(R){var W=R.component,G=R.children,et=R.appear,er=R.enter,en=R.leave;return J.createElement(ex.TransitionGroup,{component:W},J.Children.map(G,function(R,W){return J.createElement(eS,{appearOptions:et,enterOptions:er,leaveOptions:en,key:"child-".concat(W)},R)}))}eS.propTypes={appearOptions:er().object,enterOptions:er().object,leaveOptions:er().object,children:er().element},AnimateGroup.propTypes={appear:er().object,enter:er().object,leave:er().object,children:er().oneOfType([er().array,er().element]),component:er().any},AnimateGroup.defaultProps={component:"span"};var eT=e_},80129:function(R,W,G){"use strict";W.__esModule=!0,W.default=void 0,function(R){if(!R||!R.__esModule){var W={};if(null!=R){for(var G in R)if(Object.prototype.hasOwnProperty.call(R,G)){var J=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(R,G):{};J.get||J.set?Object.defineProperty(W,G,J):W[G]=R[G]}}W.default=R}}(G(45697));var J=_interopRequireDefault(G(98141)),et=_interopRequireDefault(G(10602)),er=_interopRequireDefault(G(67294)),en=_interopRequireDefault(G(60644));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function _extends(){return(_extends=Object.assign||function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}G(54726);var addClass=function(R,W){return R&&W&&W.split(" ").forEach(function(W){return(0,J.default)(R,W)})},removeClass=function(R,W){return R&&W&&W.split(" ").forEach(function(W){return(0,et.default)(R,W)})},ei=function(R){function CSSTransition(){for(var W,G=arguments.length,J=Array(G),et=0;et<G;et++)J[et]=arguments[et];return(W=R.call.apply(R,[this].concat(J))||this).onEnter=function(R,G){var J=W.getClassNames(G?"appear":"enter").className;W.removeClasses(R,"exit"),addClass(R,J),W.props.onEnter&&W.props.onEnter(R,G)},W.onEntering=function(R,G){var J=W.getClassNames(G?"appear":"enter").activeClassName;W.reflowAndAddClass(R,J),W.props.onEntering&&W.props.onEntering(R,G)},W.onEntered=function(R,G){var J=W.getClassNames("appear").doneClassName,et=W.getClassNames("enter").doneClassName,er=G?J+" "+et:et;W.removeClasses(R,G?"appear":"enter"),addClass(R,er),W.props.onEntered&&W.props.onEntered(R,G)},W.onExit=function(R){var G=W.getClassNames("exit").className;W.removeClasses(R,"appear"),W.removeClasses(R,"enter"),addClass(R,G),W.props.onExit&&W.props.onExit(R)},W.onExiting=function(R){var G=W.getClassNames("exit").activeClassName;W.reflowAndAddClass(R,G),W.props.onExiting&&W.props.onExiting(R)},W.onExited=function(R){var G=W.getClassNames("exit").doneClassName;W.removeClasses(R,"exit"),addClass(R,G),W.props.onExited&&W.props.onExited(R)},W.getClassNames=function(R){var G=W.props.classNames,J="string"==typeof G,et=J?(J&&G?G+"-":"")+R:G[R],er=J?et+"-active":G[R+"Active"],en=J?et+"-done":G[R+"Done"];return{className:et,activeClassName:er,doneClassName:en}},W}CSSTransition.prototype=Object.create(R.prototype),CSSTransition.prototype.constructor=CSSTransition,CSSTransition.__proto__=R;var W=CSSTransition.prototype;return W.removeClasses=function(R,W){var G=this.getClassNames(W),J=G.className,et=G.activeClassName,er=G.doneClassName;J&&removeClass(R,J),et&&removeClass(R,et),er&&removeClass(R,er)},W.reflowAndAddClass=function(R,W){W&&(R&&R.scrollTop,addClass(R,W))},W.render=function(){var R=_extends({},this.props);return delete R.classNames,er.default.createElement(en.default,_extends({},R,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},CSSTransition}(er.default.Component);ei.defaultProps={classNames:""},ei.propTypes={},W.default=ei,R.exports=W.default},26093:function(R,W,G){"use strict";W.__esModule=!0,W.default=void 0,_interopRequireDefault(G(45697));var J=_interopRequireDefault(G(67294)),et=G(73935),er=_interopRequireDefault(G(92381));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}var en=function(R){function ReplaceTransition(){for(var W,G=arguments.length,J=Array(G),et=0;et<G;et++)J[et]=arguments[et];return(W=R.call.apply(R,[this].concat(J))||this).handleEnter=function(){for(var R=arguments.length,G=Array(R),J=0;J<R;J++)G[J]=arguments[J];return W.handleLifecycle("onEnter",0,G)},W.handleEntering=function(){for(var R=arguments.length,G=Array(R),J=0;J<R;J++)G[J]=arguments[J];return W.handleLifecycle("onEntering",0,G)},W.handleEntered=function(){for(var R=arguments.length,G=Array(R),J=0;J<R;J++)G[J]=arguments[J];return W.handleLifecycle("onEntered",0,G)},W.handleExit=function(){for(var R=arguments.length,G=Array(R),J=0;J<R;J++)G[J]=arguments[J];return W.handleLifecycle("onExit",1,G)},W.handleExiting=function(){for(var R=arguments.length,G=Array(R),J=0;J<R;J++)G[J]=arguments[J];return W.handleLifecycle("onExiting",1,G)},W.handleExited=function(){for(var R=arguments.length,G=Array(R),J=0;J<R;J++)G[J]=arguments[J];return W.handleLifecycle("onExited",1,G)},W}ReplaceTransition.prototype=Object.create(R.prototype),ReplaceTransition.prototype.constructor=ReplaceTransition,ReplaceTransition.__proto__=R;var W=ReplaceTransition.prototype;return W.handleLifecycle=function(R,W,G){var er,en=this.props.children,ei=J.default.Children.toArray(en)[W];ei.props[R]&&(er=ei.props)[R].apply(er,G),this.props[R]&&this.props[R]((0,et.findDOMNode)(this))},W.render=function(){var R=this.props,W=R.children,G=R.in,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)W.indexOf(G=er[J])>=0||(et[G]=R[G]);return et}(R,["children","in"]),en=J.default.Children.toArray(W),ei=en[0],eo=en[1];return delete et.onEnter,delete et.onEntering,delete et.onEntered,delete et.onExit,delete et.onExiting,delete et.onExited,J.default.createElement(er.default,et,G?J.default.cloneElement(ei,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):J.default.cloneElement(eo,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},ReplaceTransition}(J.default.Component);en.propTypes={},W.default=en,R.exports=W.default},60644:function(R,W,G){"use strict";W.__esModule=!0,W.default=W.EXITING=W.ENTERED=W.ENTERING=W.EXITED=W.UNMOUNTED=void 0;var J=function(R){if(R&&R.__esModule)return R;var W={};if(null!=R){for(var G in R)if(Object.prototype.hasOwnProperty.call(R,G)){var J=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(R,G):{};J.get||J.set?Object.defineProperty(W,G,J):W[G]=R[G]}}return W.default=R,W}(G(45697)),et=_interopRequireDefault(G(67294)),er=_interopRequireDefault(G(73935)),en=G(46871);function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}G(54726);var ei="unmounted";W.UNMOUNTED=ei;var eo="exited";W.EXITED=eo;var es="entering";W.ENTERING=es;var ec="entered";W.ENTERED=ec;var el="exiting";W.EXITING=el;var eu=function(R){function Transition(W,G){J=R.call(this,W,G)||this;var J,et,er=G.transitionGroup,en=er&&!er.isMounting?W.enter:W.appear;return J.appearStatus=null,W.in?en?(et=eo,J.appearStatus=es):et=ec:et=W.unmountOnExit||W.mountOnEnter?ei:eo,J.state={status:et},J.nextCallback=null,J}Transition.prototype=Object.create(R.prototype),Transition.prototype.constructor=Transition,Transition.__proto__=R;var W=Transition.prototype;return W.getChildContext=function(){return{transitionGroup:null}},Transition.getDerivedStateFromProps=function(R,W){return R.in&&W.status===ei?{status:eo}:null},W.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},W.componentDidUpdate=function(R){var W=null;if(R!==this.props){var G=this.state.status;this.props.in?G!==es&&G!==ec&&(W=es):(G===es||G===ec)&&(W=el)}this.updateStatus(!1,W)},W.componentWillUnmount=function(){this.cancelNextCallback()},W.getTimeouts=function(){var R,W,G,J=this.props.timeout;return R=W=G=J,null!=J&&"number"!=typeof J&&(R=J.exit,W=J.enter,G=void 0!==J.appear?J.appear:W),{exit:R,enter:W,appear:G}},W.updateStatus=function(R,W){if(void 0===R&&(R=!1),null!==W){this.cancelNextCallback();var G=er.default.findDOMNode(this);W===es?this.performEnter(G,R):this.performExit(G)}else this.props.unmountOnExit&&this.state.status===eo&&this.setState({status:ei})},W.performEnter=function(R,W){var G=this,J=this.props.enter,et=this.context.transitionGroup?this.context.transitionGroup.isMounting:W,er=this.getTimeouts(),en=et?er.appear:er.enter;if(!W&&!J){this.safeSetState({status:ec},function(){G.props.onEntered(R)});return}this.props.onEnter(R,et),this.safeSetState({status:es},function(){G.props.onEntering(R,et),G.onTransitionEnd(R,en,function(){G.safeSetState({status:ec},function(){G.props.onEntered(R,et)})})})},W.performExit=function(R){var W=this,G=this.props.exit,J=this.getTimeouts();if(!G){this.safeSetState({status:eo},function(){W.props.onExited(R)});return}this.props.onExit(R),this.safeSetState({status:el},function(){W.props.onExiting(R),W.onTransitionEnd(R,J.exit,function(){W.safeSetState({status:eo},function(){W.props.onExited(R)})})})},W.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},W.safeSetState=function(R,W){W=this.setNextCallback(W),this.setState(R,W)},W.setNextCallback=function(R){var W=this,G=!0;return this.nextCallback=function(J){G&&(G=!1,W.nextCallback=null,R(J))},this.nextCallback.cancel=function(){G=!1},this.nextCallback},W.onTransitionEnd=function(R,W,G){this.setNextCallback(G);var J=null==W&&!this.props.addEndListener;if(!R||J){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(R,this.nextCallback),null!=W&&setTimeout(this.nextCallback,W)},W.render=function(){var R=this.state.status;if(R===ei)return null;var W=this.props,G=W.children,J=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)W.indexOf(G=er[J])>=0||(et[G]=R[G]);return et}(W,["children"]);if(delete J.in,delete J.mountOnEnter,delete J.unmountOnExit,delete J.appear,delete J.enter,delete J.exit,delete J.timeout,delete J.addEndListener,delete J.onEnter,delete J.onEntering,delete J.onEntered,delete J.onExit,delete J.onExiting,delete J.onExited,"function"==typeof G)return G(R,J);var er=et.default.Children.only(G);return et.default.cloneElement(er,J)},Transition}(et.default.Component);function noop(){}eu.contextTypes={transitionGroup:J.object},eu.childContextTypes={transitionGroup:function(){}},eu.propTypes={},eu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},eu.UNMOUNTED=0,eu.EXITED=1,eu.ENTERING=2,eu.ENTERED=3,eu.EXITING=4;var ed=(0,en.polyfill)(eu);W.default=ed},92381:function(R,W,G){"use strict";W.__esModule=!0,W.default=void 0;var J=_interopRequireDefault(G(45697)),et=_interopRequireDefault(G(67294)),er=G(46871),en=G(40537);function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}function _extends(){return(_extends=Object.assign||function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function _assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}var ei=Object.values||function(R){return Object.keys(R).map(function(W){return R[W]})},eo=function(R){function TransitionGroup(W,G){var J,et=(J=R.call(this,W,G)||this).handleExited.bind(_assertThisInitialized(_assertThisInitialized(J)));return J.state={handleExited:et,firstRender:!0},J}TransitionGroup.prototype=Object.create(R.prototype),TransitionGroup.prototype.constructor=TransitionGroup,TransitionGroup.__proto__=R;var W=TransitionGroup.prototype;return W.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},W.componentDidMount=function(){this.appeared=!0,this.mounted=!0},W.componentWillUnmount=function(){this.mounted=!1},TransitionGroup.getDerivedStateFromProps=function(R,W){var G=W.children,J=W.handleExited;return{children:W.firstRender?(0,en.getInitialChildMapping)(R,J):(0,en.getNextChildMapping)(R,G,J),firstRender:!1}},W.handleExited=function(R,W){var G=(0,en.getChildMapping)(this.props.children);R.key in G||(R.props.onExited&&R.props.onExited(W),this.mounted&&this.setState(function(W){var G=_extends({},W.children);return delete G[R.key],{children:G}}))},W.render=function(){var R=this.props,W=R.component,G=R.childFactory,J=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)W.indexOf(G=er[J])>=0||(et[G]=R[G]);return et}(R,["component","childFactory"]),er=ei(this.state.children).map(G);return(delete J.appear,delete J.enter,delete J.exit,null===W)?er:et.default.createElement(W,J,er)},TransitionGroup}(et.default.Component);eo.childContextTypes={transitionGroup:J.default.object.isRequired},eo.propTypes={},eo.defaultProps={component:"div",childFactory:function(R){return R}};var es=(0,er.polyfill)(eo);W.default=es,R.exports=W.default},64317:function(R,W,G){"use strict";var J=_interopRequireDefault(G(80129)),et=_interopRequireDefault(G(26093)),er=_interopRequireDefault(G(92381)),en=_interopRequireDefault(G(60644));function _interopRequireDefault(R){return R&&R.__esModule?R:{default:R}}R.exports={Transition:en.default,TransitionGroup:er.default,ReplaceTransition:et.default,CSSTransition:J.default}},40537:function(R,W,G){"use strict";W.__esModule=!0,W.getChildMapping=getChildMapping,W.mergeChildMappings=mergeChildMappings,W.getInitialChildMapping=function(R,W){return getChildMapping(R.children,function(G){return(0,J.cloneElement)(G,{onExited:W.bind(null,G),in:!0,appear:getProp(G,"appear",R),enter:getProp(G,"enter",R),exit:getProp(G,"exit",R)})})},W.getNextChildMapping=function(R,W,G){var et=getChildMapping(R.children),er=mergeChildMappings(W,et);return Object.keys(er).forEach(function(en){var ei=er[en];if((0,J.isValidElement)(ei)){var eo=en in W,es=en in et,ec=W[en],el=(0,J.isValidElement)(ec)&&!ec.props.in;es&&(!eo||el)?er[en]=(0,J.cloneElement)(ei,{onExited:G.bind(null,ei),in:!0,exit:getProp(ei,"exit",R),enter:getProp(ei,"enter",R)}):es||!eo||el?es&&eo&&(0,J.isValidElement)(ec)&&(er[en]=(0,J.cloneElement)(ei,{onExited:G.bind(null,ei),in:ec.props.in,exit:getProp(ei,"exit",R),enter:getProp(ei,"enter",R)})):er[en]=(0,J.cloneElement)(ei,{in:!1})}}),er};var J=G(67294);function getChildMapping(R,W){var G=Object.create(null);return R&&J.Children.map(R,function(R){return R}).forEach(function(R){G[R.key]=W&&(0,J.isValidElement)(R)?W(R):R}),G}function mergeChildMappings(R,W){function getValueForKey(G){return G in W?W[G]:R[G]}R=R||{},W=W||{};var G,J=Object.create(null),et=[];for(var er in R)er in W?et.length&&(J[er]=et,et=[]):et.push(er);var en={};for(var ei in W){if(J[ei])for(G=0;G<J[ei].length;G++){var eo=J[ei][G];en[J[ei][G]]=getValueForKey(eo)}en[ei]=getValueForKey(ei)}for(G=0;G<et.length;G++)en[et[G]]=getValueForKey(et[G]);return en}function getProp(R,W,G){return null!=G[W]?G[W]:R.props[W]}},54726:function(R,W,G){"use strict";var J;W.__esModule=!0,W.classNamesShape=W.timeoutsShape=void 0,(J=G(45697))&&J.__esModule,W.timeoutsShape=null,W.classNamesShape=null},86108:function(R,W,G){"use strict";G.d(W,{u:function(){return eS}});var J=G(67294),et=G(90512),er=G(93801),en=G(23560),ei=G.n(en),eo=G(6162),es=G.n(eo),ec=G(14293),el=G.n(ec),eu=G(7654),ed=G.n(eu),ep=G(18446),ef=G.n(ep),eh=G(66338),eg=G(93061),em=G(48710),ey=G(2763),ev=G(47523),eb=G(69055),e_=G(48722),ex=G(52017),ew=["layout","type","stroke","connectNulls","isRange","ref"];function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,_toPropertyKey(J.key),J)}}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function _defineProperty(R,W,G){return(W=_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function _toPropertyKey(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}var eS=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(Area,R);var W,G,en,eo=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(Area);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(R)}(this,R)});function Area(){var R;!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,Area);for(var W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];return _defineProperty(_assertThisInitialized(R=eo.call.apply(eo,[this].concat(G))),"state",{isAnimationFinished:!0}),_defineProperty(_assertThisInitialized(R),"id",(0,eb.EL)("recharts-area-")),_defineProperty(_assertThisInitialized(R),"handleAnimationEnd",function(){var W=R.props.onAnimationEnd;R.setState({isAnimationFinished:!0}),ei()(W)&&W()}),_defineProperty(_assertThisInitialized(R),"handleAnimationStart",function(){var W=R.props.onAnimationStart;R.setState({isAnimationFinished:!1}),ei()(W)&&W()}),R}return G=[{key:"renderDots",value:function(R,W,G){var et=this.props.isAnimationActive,er=this.state.isAnimationFinished;if(et&&!er)return null;var en=this.props,ei=en.dot,eo=en.points,es=en.dataKey,ec=(0,ex.L6)(this.props),el=(0,ex.L6)(ei,!0),eu=eo.map(function(R,W){var G=_objectSpread(_objectSpread(_objectSpread({key:"dot-".concat(W),r:3},ec),el),{},{dataKey:es,cx:R.x,cy:R.y,index:W,value:R.value,payload:R.payload});return Area.renderDotItem(ei,G)}),ed={clipPath:R?"url(#clipPath-".concat(W?"":"dots-").concat(G,")"):null};return J.createElement(em.m,_extends({className:"recharts-area-dots"},ed),eu)}},{key:"renderHorizontalRect",value:function(R){var W=this.props,G=W.baseLine,et=W.points,er=W.strokeWidth,en=et[0].x,ei=et[et.length-1].x,eo=R*Math.abs(en-ei),ec=es()(et.map(function(R){return R.y||0}));return((0,eb.hj)(G)&&"number"==typeof G?ec=Math.max(G,ec):G&&Array.isArray(G)&&G.length&&(ec=Math.max(es()(G.map(function(R){return R.y||0})),ec)),(0,eb.hj)(ec))?J.createElement("rect",{x:en<ei?en:en-eo,y:0,width:eo,height:Math.floor(ec+(er?parseInt("".concat(er),10):1))}):null}},{key:"renderVerticalRect",value:function(R){var W=this.props,G=W.baseLine,et=W.points,er=W.strokeWidth,en=et[0].y,ei=et[et.length-1].y,eo=R*Math.abs(en-ei),ec=es()(et.map(function(R){return R.x||0}));return((0,eb.hj)(G)&&"number"==typeof G?ec=Math.max(G,ec):G&&Array.isArray(G)&&G.length&&(ec=Math.max(es()(G.map(function(R){return R.x||0})),ec)),(0,eb.hj)(ec))?J.createElement("rect",{x:0,y:en<ei?en:en-eo,width:ec+(er?parseInt("".concat(er),10):1),height:Math.floor(eo)}):null}},{key:"renderClipRect",value:function(R){return"vertical"===this.props.layout?this.renderVerticalRect(R):this.renderHorizontalRect(R)}},{key:"renderAreaStatically",value:function(R,W,G,et){var er=this.props,en=er.layout,ei=er.type,eo=er.stroke,es=er.connectNulls,ec=er.isRange,el=(er.ref,function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(er,ew));return J.createElement(em.m,{clipPath:G?"url(#clipPath-".concat(et,")"):null},J.createElement(eh.H,_extends({},(0,ex.L6)(el,!0),{points:R,connectNulls:es,type:ei,baseLine:W,layout:en,stroke:"none",className:"recharts-area-area"})),"none"!==eo&&J.createElement(eh.H,_extends({},(0,ex.L6)(this.props),{className:"recharts-area-curve",layout:en,type:ei,connectNulls:es,fill:"none",points:R})),"none"!==eo&&ec&&J.createElement(eh.H,_extends({},(0,ex.L6)(this.props),{className:"recharts-area-curve",layout:en,type:ei,connectNulls:es,fill:"none",points:W})))}},{key:"renderAreaWithAnimation",value:function(R,W){var G=this,et=this.props,en=et.points,ei=et.baseLine,eo=et.isAnimationActive,es=et.animationBegin,ec=et.animationDuration,eu=et.animationEasing,ep=et.animationId,ef=this.state,eh=ef.prevPoints,eg=ef.prevBaseLine;return J.createElement(er.ZP,{begin:es,duration:ec,isActive:eo,easing:eu,from:{t:0},to:{t:1},key:"area-".concat(ep),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(et){var er=et.t;if(eh){var eo,es=eh.length/en.length,ec=en.map(function(R,W){var G=Math.floor(W*es);if(eh[G]){var J=eh[G],et=(0,eb.k4)(J.x,R.x),en=(0,eb.k4)(J.y,R.y);return _objectSpread(_objectSpread({},R),{},{x:et(er),y:en(er)})}return R});return eo=(0,eb.hj)(ei)&&"number"==typeof ei?(0,eb.k4)(eg,ei)(er):el()(ei)||ed()(ei)?(0,eb.k4)(eg,0)(er):ei.map(function(R,W){var G=Math.floor(W*es);if(eg[G]){var J=eg[G],et=(0,eb.k4)(J.x,R.x),en=(0,eb.k4)(J.y,R.y);return _objectSpread(_objectSpread({},R),{},{x:et(er),y:en(er)})}return R}),G.renderAreaStatically(ec,eo,R,W)}return J.createElement(em.m,null,J.createElement("defs",null,J.createElement("clipPath",{id:"animationClipPath-".concat(W)},G.renderClipRect(er))),J.createElement(em.m,{clipPath:"url(#animationClipPath-".concat(W,")")},G.renderAreaStatically(en,ei,R,W)))})}},{key:"renderArea",value:function(R,W){var G=this.props,J=G.points,et=G.baseLine,er=G.isAnimationActive,en=this.state,ei=en.prevPoints,eo=en.prevBaseLine,es=en.totalLength;return er&&J&&J.length&&(!ei&&es>0||!ef()(ei,J)||!ef()(eo,et))?this.renderAreaWithAnimation(R,W):this.renderAreaStatically(J,et,R,W)}},{key:"render",value:function(){var R,W=this.props,G=W.hide,er=W.dot,en=W.points,ei=W.className,eo=W.top,es=W.left,ec=W.xAxis,eu=W.yAxis,ed=W.width,ep=W.height,ef=W.isAnimationActive,eh=W.id;if(G||!en||!en.length)return null;var eg=this.state.isAnimationFinished,ev=1===en.length,eb=(0,et.Z)("recharts-area",ei),e_=ec&&ec.allowDataOverflow,ew=eu&&eu.allowDataOverflow,eS=e_||ew,eT=el()(eh)?this.id:eh,eO=null!==(R=(0,ex.L6)(er))&&void 0!==R?R:{r:3,strokeWidth:2},eP=eO.r,eC=eO.strokeWidth,ek=((0,ex.$k)(er)?er:{}).clipDot,eE=void 0===ek||ek,ej=2*(void 0===eP?3:eP)+(void 0===eC?2:eC);return J.createElement(em.m,{className:eb},e_||ew?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(eT)},J.createElement("rect",{x:e_?es:es-ed/2,y:ew?eo:eo-ep/2,width:e_?ed:2*ed,height:ew?ep:2*ep})),!eE&&J.createElement("clipPath",{id:"clipPath-dots-".concat(eT)},J.createElement("rect",{x:es-ej/2,y:eo-ej/2,width:ed+ej,height:ep+ej}))):null,ev?null:this.renderArea(eS,eT),(er||ev)&&this.renderDots(eS,eE,eT),(!ef||eg)&&ey.e.renderCallByParent(this.props,en))}}],en=[{key:"getDerivedStateFromProps",value:function(R,W){return R.animationId!==W.prevAnimationId?{prevAnimationId:R.animationId,curPoints:R.points,curBaseLine:R.baseLine,prevPoints:W.curPoints,prevBaseLine:W.curBaseLine}:R.points!==W.curPoints||R.baseLine!==W.curBaseLine?{curPoints:R.points,curBaseLine:R.baseLine}:null}}],G&&_defineProperties(Area.prototype,G),en&&_defineProperties(Area,en),Object.defineProperty(Area,"prototype",{writable:!1}),Area}(J.PureComponent);_defineProperty(eS,"displayName","Area"),_defineProperty(eS,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ev.x.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),_defineProperty(eS,"getBaseValue",function(R,W,G,J){var et=R.layout,er=R.baseValue,en=W.props.baseValue,ei=null!=en?en:er;if((0,eb.hj)(ei)&&"number"==typeof ei)return ei;var eo="horizontal"===et?J:G,es=eo.scale.domain();if("number"===eo.type){var ec=Math.max(es[0],es[1]),el=Math.min(es[0],es[1]);return"dataMin"===ei?el:"dataMax"===ei?ec:ec<0?ec:Math.max(Math.min(es[0],es[1]),0)}return"dataMin"===ei?es[0]:"dataMax"===ei?es[1]:es[0]}),_defineProperty(eS,"getComposedData",function(R){var W,G=R.props,J=R.item,et=R.xAxis,er=R.yAxis,en=R.xAxisTicks,ei=R.yAxisTicks,eo=R.bandSize,es=R.dataKey,ec=R.stackedData,el=R.dataStartIndex,eu=R.displayedData,ed=R.offset,ep=G.layout,ef=ec&&ec.length,eh=eS.getBaseValue(G,J,et,er),eg="horizontal"===ep,em=!1,ey=eu.map(function(R,W){ef?G=ec[el+W]:Array.isArray(G=(0,e_.F$)(R,es))?em=!0:G=[eh,G];var G,J=null==G[1]||ef&&null==(0,e_.F$)(R,es);return eg?{x:(0,e_.Hv)({axis:et,ticks:en,bandSize:eo,entry:R,index:W}),y:J?null:er.scale(G[1]),value:G,payload:R}:{x:J?null:et.scale(G[1]),y:(0,e_.Hv)({axis:er,ticks:ei,bandSize:eo,entry:R,index:W}),value:G,payload:R}});return W=ef||em?ey.map(function(R){var W=Array.isArray(R.value)?R.value[0]:null;return eg?{x:R.x,y:null!=W&&null!=R.y?er.scale(W):null}:{x:null!=W?et.scale(W):null,y:R.y}}):eg?er.scale(eh):et.scale(eh),_objectSpread({points:ey,baseLine:W,layout:ep,isRange:em},ed)}),_defineProperty(eS,"renderDotItem",function(R,W){return J.isValidElement(R)?J.cloneElement(R,W):ei()(R)?R(W):J.createElement(eg.o,_extends({},W,{className:"recharts-area-dot"}))})},18001:function(R,W,G){"use strict";G.d(W,{$:function(){return e_}});var J=G(67294),et=G(90512),er=G(93801),en=G(18446),ei=G.n(en),eo=G(14293),es=G.n(eo),ec=G(48710),el=G(86641),eu=G(43815),ed=G(2763),ep=G(69055),ef=G(52017),eh=G(47523),eg=G(48722),em=G(79896),ey=G(49465);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var ev=["x","y"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function typeguardBarRectangleProps(R,W){var G=R.x,J=R.y,et=function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,ev),er=parseInt("".concat(G),10),en=parseInt("".concat(J),10),ei=parseInt("".concat(W.height||et.height),10),eo=parseInt("".concat(W.width||et.width),10);return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},W),et),er?{x:er}:{}),en?{y:en}:{}),{},{height:ei,width:eo,name:W.name,radius:W.radius})}function BarRectangle(R){return J.createElement(ey.bn,_extends({shapeType:"rectangle",propTransformer:typeguardBarRectangleProps,activeClassName:"recharts-active-bar"},R))}var eb=["value","background"];function Bar_typeof(R){return(Bar_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function Bar_extends(){return(Bar_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function Bar_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Bar_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Bar_ownKeys(Object(G),!0).forEach(function(W){Bar_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Bar_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,Bar_toPropertyKey(J.key),J)}}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function Bar_defineProperty(R,W,G){return(W=Bar_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function Bar_toPropertyKey(R){var W=function(R,W){if("object"!==Bar_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==Bar_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===Bar_typeof(W)?W:String(W)}var e_=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(Bar,R);var W,G,en,eo=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(Bar);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===Bar_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(R)}(this,R)});function Bar(){var R;!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,Bar);for(var W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];return Bar_defineProperty(_assertThisInitialized(R=eo.call.apply(eo,[this].concat(G))),"state",{isAnimationFinished:!1}),Bar_defineProperty(_assertThisInitialized(R),"id",(0,ep.EL)("recharts-bar-")),Bar_defineProperty(_assertThisInitialized(R),"handleAnimationEnd",function(){var W=R.props.onAnimationEnd;R.setState({isAnimationFinished:!0}),W&&W()}),Bar_defineProperty(_assertThisInitialized(R),"handleAnimationStart",function(){var W=R.props.onAnimationStart;R.setState({isAnimationFinished:!1}),W&&W()}),R}return G=[{key:"renderRectanglesStatically",value:function(R){var W=this,G=this.props,et=G.shape,er=G.dataKey,en=G.activeIndex,ei=G.activeBar,eo=(0,ef.L6)(this.props);return R&&R.map(function(R,G){var es=G===en,el=es?ei:et,eu=Bar_objectSpread(Bar_objectSpread(Bar_objectSpread({},eo),R),{},{isActive:es,option:el,index:G,dataKey:er,onAnimationStart:W.handleAnimationStart,onAnimationEnd:W.handleAnimationEnd});return J.createElement(ec.m,Bar_extends({className:"recharts-bar-rectangle"},(0,em.bw)(W.props,R,G),{key:"rectangle-".concat(null==R?void 0:R.x,"-").concat(null==R?void 0:R.y,"-").concat(null==R?void 0:R.value)}),J.createElement(BarRectangle,eu))})}},{key:"renderRectanglesWithAnimation",value:function(){var R=this,W=this.props,G=W.data,et=W.layout,en=W.isAnimationActive,ei=W.animationBegin,eo=W.animationDuration,es=W.animationEasing,el=W.animationId,eu=this.state.prevData;return J.createElement(er.ZP,{begin:ei,duration:eo,isActive:en,easing:es,from:{t:0},to:{t:1},key:"bar-".concat(el),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(W){var er=W.t,en=G.map(function(R,W){var G=eu&&eu[W];if(G){var J=(0,ep.k4)(G.x,R.x),en=(0,ep.k4)(G.y,R.y),ei=(0,ep.k4)(G.width,R.width),eo=(0,ep.k4)(G.height,R.height);return Bar_objectSpread(Bar_objectSpread({},R),{},{x:J(er),y:en(er),width:ei(er),height:eo(er)})}if("horizontal"===et){var es=(0,ep.k4)(0,R.height)(er);return Bar_objectSpread(Bar_objectSpread({},R),{},{y:R.y+R.height-es,height:es})}var ec=(0,ep.k4)(0,R.width)(er);return Bar_objectSpread(Bar_objectSpread({},R),{},{width:ec})});return J.createElement(ec.m,null,R.renderRectanglesStatically(en))})}},{key:"renderRectangles",value:function(){var R=this.props,W=R.data,G=R.isAnimationActive,J=this.state.prevData;return G&&W&&W.length&&(!J||!ei()(J,W))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(W)}},{key:"renderBackground",value:function(){var R=this,W=this.props,G=W.data,et=W.dataKey,er=W.activeIndex,en=(0,ef.L6)(this.props.background);return G.map(function(W,G){W.value;var ei=W.background,eo=function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(W,eb);if(!ei)return null;var es=Bar_objectSpread(Bar_objectSpread(Bar_objectSpread(Bar_objectSpread(Bar_objectSpread({},eo),{},{fill:"#eee"},ei),en),(0,em.bw)(R.props,W,G)),{},{onAnimationStart:R.handleAnimationStart,onAnimationEnd:R.handleAnimationEnd,dataKey:et,index:G,key:"background-bar-".concat(G),className:"recharts-bar-background-rectangle"});return J.createElement(BarRectangle,Bar_extends({option:R.props.background,isActive:G===er},es))})}},{key:"renderErrorBar",value:function(R,W){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var G=this.props,et=G.data,er=G.xAxis,en=G.yAxis,ei=G.layout,eo=G.children,es=(0,ef.NN)(eo,el.W);if(!es)return null;var eu="vertical"===ei?et[0].height/2:et[0].width/2,dataPointFormatter=function(R,W){var G=Array.isArray(R.value)?R.value[1]:R.value;return{x:R.x,y:R.y,value:G,errorVal:(0,eg.F$)(R,W)}};return J.createElement(ec.m,{clipPath:R?"url(#clipPath-".concat(W,")"):null},es.map(function(R){return J.cloneElement(R,{key:"error-bar-".concat(W,"-").concat(R.props.dataKey),data:et,xAxis:er,yAxis:en,layout:ei,offset:eu,dataPointFormatter:dataPointFormatter})}))}},{key:"render",value:function(){var R=this.props,W=R.hide,G=R.data,er=R.className,en=R.xAxis,ei=R.yAxis,eo=R.left,el=R.top,eu=R.width,ep=R.height,ef=R.isAnimationActive,eh=R.background,eg=R.id;if(W||!G||!G.length)return null;var em=this.state.isAnimationFinished,ey=(0,et.Z)("recharts-bar",er),ev=en&&en.allowDataOverflow,eb=ei&&ei.allowDataOverflow,e_=ev||eb,ex=es()(eg)?this.id:eg;return J.createElement(ec.m,{className:ey},ev||eb?J.createElement("defs",null,J.createElement("clipPath",{id:"clipPath-".concat(ex)},J.createElement("rect",{x:ev?eo:eo-eu/2,y:eb?el:el-ep/2,width:ev?eu:2*eu,height:eb?ep:2*ep}))):null,J.createElement(ec.m,{className:"recharts-bar-rectangles",clipPath:e_?"url(#clipPath-".concat(ex,")"):null},eh?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(e_,ex),(!ef||em)&&ed.e.renderCallByParent(this.props,G))}}],en=[{key:"getDerivedStateFromProps",value:function(R,W){return R.animationId!==W.prevAnimationId?{prevAnimationId:R.animationId,curData:R.data,prevData:W.curData}:R.data!==W.curData?{curData:R.data}:null}}],G&&_defineProperties(Bar.prototype,G),en&&_defineProperties(Bar,en),Object.defineProperty(Bar,"prototype",{writable:!1}),Bar}(J.PureComponent);Bar_defineProperty(e_,"displayName","Bar"),Bar_defineProperty(e_,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!eh.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Bar_defineProperty(e_,"getComposedData",function(R){var W=R.props,G=R.item,J=R.barPosition,et=R.bandSize,er=R.xAxis,en=R.yAxis,ei=R.xAxisTicks,eo=R.yAxisTicks,es=R.stackedData,ec=R.dataStartIndex,el=R.displayedData,ed=R.offset,eh=(0,eg.Bu)(J,G);if(!eh)return null;var em=W.layout,ey=G.props,ev=ey.dataKey,eb=ey.children,e_=ey.minPointSize,ex="horizontal"===em?en:er,ew=es?ex.scale.domain():null,eS=(0,eg.Yj)({numericAxis:ex}),eT=(0,ef.NN)(eb,eu.b),eO=el.map(function(R,W){var J,el,eu,ed,ef,ey;if(es?J=(0,eg.Vv)(es[ec+W],ew):Array.isArray(J=(0,eg.F$)(R,ev))||(J=[eS,J]),"horizontal"===em){var eb,ex=[en.scale(J[0]),en.scale(J[1])],eO=ex[0],eP=ex[1];el=(0,eg.Fy)({axis:er,ticks:ei,bandSize:et,offset:eh.offset,entry:R,index:W}),eu=null!==(eb=null!=eP?eP:eO)&&void 0!==eb?eb:void 0,ed=eh.size;var eC=eO-eP;if(ef=Number.isNaN(eC)?0:eC,ey={x:el,y:en.y,width:ed,height:en.height},Math.abs(e_)>0&&Math.abs(ef)<Math.abs(e_)){var ek=(0,ep.uY)(ef||e_)*(Math.abs(e_)-Math.abs(ef));eu-=ek,ef+=ek}}else{var eE=[er.scale(J[0]),er.scale(J[1])],ej=eE[0],eA=eE[1];if(el=ej,eu=(0,eg.Fy)({axis:en,ticks:eo,bandSize:et,offset:eh.offset,entry:R,index:W}),ed=eA-ej,ef=eh.size,ey={x:er.x,y:eu,width:er.width,height:ef},Math.abs(e_)>0&&Math.abs(ed)<Math.abs(e_)){var eD=(0,ep.uY)(ed||e_)*(Math.abs(e_)-Math.abs(ed));ed+=eD}}return Bar_objectSpread(Bar_objectSpread(Bar_objectSpread({},R),{},{x:el,y:eu,width:ed,height:ef,value:es?J:J[1],payload:R,background:ey},eT&&eT[W]&&eT[W].props),{},{tooltipPayload:[(0,eg.Qo)(G,R)],tooltipPosition:{x:el+ed/2,y:eu+ef/2}})});return Bar_objectSpread({data:eO,layout:em},ed)})},14195:function(R,W,G){"use strict";G.d(W,{q:function(){return ec}});var J=G(67294),et=G(23560),er=G.n(et),en=G(69055),ei=G(52017),eo=["x1","y1","x2","y2","key"],es=["offset"];function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function _objectWithoutProperties(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,_toPropertyKey(J.key),J)}}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function _defineProperty(R,W,G){return(W=_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function _toPropertyKey(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}var ec=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(CartesianGrid,R);var W,G,et,ec=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(CartesianGrid);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return function(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(R)}(this,R)});function CartesianGrid(){return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,CartesianGrid),ec.apply(this,arguments)}return G=[{key:"renderHorizontal",value:function(R){var W=this,G=this.props,et=G.x,er=G.width,en=G.horizontal;if(!R||!R.length)return null;var ei=R.map(function(R,G){var J=_objectSpread(_objectSpread({},W.props),{},{x1:et,y1:R,x2:et+er,y2:R,key:"line-".concat(G),index:G});return CartesianGrid.renderLineItem(en,J)});return J.createElement("g",{className:"recharts-cartesian-grid-horizontal"},ei)}},{key:"renderVertical",value:function(R){var W=this,G=this.props,et=G.y,er=G.height,en=G.vertical;if(!R||!R.length)return null;var ei=R.map(function(R,G){var J=_objectSpread(_objectSpread({},W.props),{},{x1:R,y1:et,x2:R,y2:et+er,key:"line-".concat(G),index:G});return CartesianGrid.renderLineItem(en,J)});return J.createElement("g",{className:"recharts-cartesian-grid-vertical"},ei)}},{key:"renderVerticalStripes",value:function(R){var W=this.props.verticalFill;if(!W||!W.length)return null;var G=this.props,et=G.fillOpacity,er=G.x,en=G.y,ei=G.width,eo=G.height,es=R.map(function(R){return Math.round(R+er-er)}).sort(function(R,W){return R-W});er!==es[0]&&es.unshift(0);var ec=es.map(function(R,G){var ec=es[G+1]?es[G+1]-R:er+ei-R;if(ec<=0)return null;var el=G%W.length;return J.createElement("rect",{key:"react-".concat(G),x:R,y:en,width:ec,height:eo,stroke:"none",fill:W[el],fillOpacity:et,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},ec)}},{key:"renderHorizontalStripes",value:function(R){var W=this.props.horizontalFill;if(!W||!W.length)return null;var G=this.props,et=G.fillOpacity,er=G.x,en=G.y,ei=G.width,eo=G.height,es=R.map(function(R){return Math.round(R+en-en)}).sort(function(R,W){return R-W});en!==es[0]&&es.unshift(0);var ec=es.map(function(R,G){var ec=es[G+1]?es[G+1]-R:en+eo-R;if(ec<=0)return null;var el=G%W.length;return J.createElement("rect",{key:"react-".concat(G),y:R,x:er,height:ec,width:ei,stroke:"none",fill:W[el],fillOpacity:et,className:"recharts-cartesian-grid-bg"})});return J.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},ec)}},{key:"renderBackground",value:function(){var R=this.props.fill;if(!R||"none"===R)return null;var W=this.props,G=W.fillOpacity,et=W.x,er=W.y,en=W.width,ei=W.height;return J.createElement("rect",{x:et,y:er,width:en,height:ei,stroke:"none",fill:R,fillOpacity:G,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var R=this.props,W=R.x,G=R.y,et=R.width,ei=R.height,eo=R.horizontal,es=R.vertical,ec=R.horizontalCoordinatesGenerator,el=R.verticalCoordinatesGenerator,eu=R.xAxis,ed=R.yAxis,ep=R.offset,ef=R.chartWidth,eh=R.chartHeight,eg=R.syncWithTicks,em=R.horizontalValues,ey=R.verticalValues;if(!(0,en.hj)(et)||et<=0||!(0,en.hj)(ei)||ei<=0||!(0,en.hj)(W)||W!==+W||!(0,en.hj)(G)||G!==+G)return null;var ev=this.props,eb=ev.horizontalPoints,e_=ev.verticalPoints;if((!eb||!eb.length)&&er()(ec)){var ex=em&&em.length;eb=ec({yAxis:ed?_objectSpread(_objectSpread({},ed),{},{ticks:ex?em:ed.ticks}):void 0,width:ef,height:eh,offset:ep},!!ex||eg)}if((!e_||!e_.length)&&er()(el)){var ew=ey&&ey.length;e_=el({xAxis:eu?_objectSpread(_objectSpread({},eu),{},{ticks:ew?ey:eu.ticks}):void 0,width:ef,height:eh,offset:ep},!!ew||eg)}return J.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),eo&&this.renderHorizontal(eb),es&&this.renderVertical(e_),eo&&this.renderHorizontalStripes(eb),es&&this.renderVerticalStripes(e_))}}],et=[{key:"renderLineItem",value:function(R,W){var G;if(J.isValidElement(R))G=J.cloneElement(R,W);else if(er()(R))G=R(W);else{var et=W.x1,en=W.y1,ec=W.x2,el=W.y2,eu=W.key,ed=_objectWithoutProperties(W,eo),ep=(0,ei.L6)(ed),ef=(ep.offset,_objectWithoutProperties(ep,es));G=J.createElement("line",_extends({},ef,{x1:et,y1:en,x2:ec,y2:el,fill:"none",key:eu}))}return G}}],G&&_defineProperties(CartesianGrid.prototype,G),et&&_defineProperties(CartesianGrid,et),Object.defineProperty(CartesianGrid,"prototype",{writable:!1}),CartesianGrid}(J.PureComponent);_defineProperty(ec,"displayName","CartesianGrid"),_defineProperty(ec,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]})},86641:function(R,W,G){"use strict";G.d(W,{W:function(){return ErrorBar}});var J=G(67294),et=G(48710),er=G(52017),en=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function ErrorBar(R){var W=R.offset,G=R.layout,ei=R.width,eo=R.dataKey,es=R.data,ec=R.dataPointFormatter,el=R.xAxis,eu=R.yAxis,ed=function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,en),ep=(0,er.L6)(ed),ef=es.map(function(R){var er,en,es=ec(R,eo),ed=es.x,ef=es.y,eh=es.value,eg=es.errorVal;if(!eg)return null;var em=[];if(Array.isArray(eg)){var ey=function(R){if(Array.isArray(R))return R}(eg)||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(eg,2)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(eg,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();er=ey[0],en=ey[1]}else er=en=eg;if("vertical"===G){var ev=el.scale,eb=ef+W,e_=eb+ei,ex=eb-ei,ew=ev(eh-er),eS=ev(eh+en);em.push({x1:eS,y1:e_,x2:eS,y2:ex}),em.push({x1:ew,y1:eb,x2:eS,y2:eb}),em.push({x1:ew,y1:e_,x2:ew,y2:ex})}else if("horizontal"===G){var eT=eu.scale,eO=ed+W,eP=eO-ei,eC=eO+ei,ek=eT(eh-er),eE=eT(eh+en);em.push({x1:eP,y1:eE,x2:eC,y2:eE}),em.push({x1:eO,y1:ek,x2:eO,y2:eE}),em.push({x1:eP,y1:ek,x2:eC,y2:ek})}return J.createElement(et.m,_extends({className:"recharts-errorBar",key:"bar-".concat(em.map(function(R){return"".concat(R.x1,"-").concat(R.x2,"-").concat(R.y1,"-").concat(R.y2)}))},ep),em.map(function(R){return J.createElement("line",_extends({},R,{key:"line-".concat(R.x1,"-").concat(R.x2,"-").concat(R.y1,"-").concat(R.y2)}))}))});return J.createElement(et.m,{className:"recharts-errorBars"},ef)}ErrorBar.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},ErrorBar.displayName="ErrorBar"},3023:function(R,W,G){"use strict";G.d(W,{K:function(){return XAxis}});var XAxis=function(){return null};XAxis.displayName="XAxis",XAxis.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0}},75358:function(R,W,G){"use strict";G.d(W,{B:function(){return YAxis}});var YAxis=function(){return null};YAxis.displayName="YAxis",YAxis.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1}},46888:function(R,W,G){"use strict";G.d(W,{T:function(){return eo}});var J=G(9625),et=G(86108),er=G(3023),en=G(75358),ei=G(97187),eo=(0,J.z)({chartName:"AreaChart",GraphicalChild:et.u,axisComponents:[{axisType:"xAxis",AxisComp:er.K},{axisType:"yAxis",AxisComp:en.B}],formatAxisMap:ei.t9})},73604:function(R,W,G){"use strict";G.d(W,{u:function(){return eT}});var J=G(9625),et=G(67294),er=G(23560),en=G.n(er),ei=G(48710),eo=G(93061),es=G(90512),ec=G(52017),el=["points","className","baseLinePoints","connectNulls"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function _toConsumableArray(R){return function(R){if(Array.isArray(R))return _arrayLikeToArray(R)}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(R)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}var isValidatePoint=function(R){return R&&R.x===+R.x&&R.y===+R.y},getParsedPoints=function(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],W=[[]];return R.forEach(function(R){isValidatePoint(R)?W[W.length-1].push(R):W[W.length-1].length>0&&W.push([])}),isValidatePoint(R[0])&&W[W.length-1].push(R[0]),W[W.length-1].length<=0&&(W=W.slice(0,-1)),W},getSinglePolygonPath=function(R,W){var G=getParsedPoints(R);W&&(G=[G.reduce(function(R,W){return[].concat(_toConsumableArray(R),_toConsumableArray(W))},[])]);var J=G.map(function(R){return R.reduce(function(R,W,G){return"".concat(R).concat(0===G?"M":"L").concat(W.x,",").concat(W.y)},"")}).join("");return 1===G.length?"".concat(J,"Z"):J},getRanglePath=function(R,W,G){var J=getSinglePolygonPath(R,G);return"".concat("Z"===J.slice(-1)?J.slice(0,-1):J,"L").concat(getSinglePolygonPath(W.reverse(),G).slice(1))},Polygon=function(R){var W=R.points,G=R.className,J=R.baseLinePoints,er=R.connectNulls,en=function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,el);if(!W||!W.length)return null;var ei=(0,es.Z)("recharts-polygon",G);if(J&&J.length){var eo=en.stroke&&"none"!==en.stroke,eu=getRanglePath(W,J,er);return et.createElement("g",{className:ei},et.createElement("path",_extends({},(0,ec.L6)(en,!0),{fill:"Z"===eu.slice(-1)?en.fill:"none",stroke:"none",d:eu})),eo?et.createElement("path",_extends({},(0,ec.L6)(en,!0),{fill:"none",d:getSinglePolygonPath(W,er)})):null,eo?et.createElement("path",_extends({},(0,ec.L6)(en,!0),{fill:"none",d:getSinglePolygonPath(J,er)})):null)}var ed=getSinglePolygonPath(W,er);return et.createElement("path",_extends({},(0,ec.L6)(en,!0),{fill:"Z"===ed.slice(-1)?en.fill:"none",className:ei,d:ed}))},eu=G(84642),ed=G(79896),ep=G(40048);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function PolarAngleAxis_extends(){return(PolarAngleAxis_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,_toPropertyKey(J.key),J)}}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function _defineProperty(R,W,G){return(W=_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function _toPropertyKey(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}var ef=Math.PI/180,eh=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(PolarAngleAxis,R);var W,G,J,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(PolarAngleAxis);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return function(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(R)}(this,R)});function PolarAngleAxis(){return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,PolarAngleAxis),er.apply(this,arguments)}return G=[{key:"getTickLineCoord",value:function(R){var W=this.props,G=W.cx,J=W.cy,et=W.radius,er=W.orientation,en=W.tickSize||8,ei=(0,ep.op)(G,J,et,R.coordinate),eo=(0,ep.op)(G,J,et+("inner"===er?-1:1)*en,R.coordinate);return{x1:ei.x,y1:ei.y,x2:eo.x,y2:eo.y}}},{key:"getTickTextAnchor",value:function(R){var W=this.props.orientation,G=Math.cos(-R.coordinate*ef);return G>1e-5?"outer"===W?"start":"end":G<-.00001?"outer"===W?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var R=this.props,W=R.cx,G=R.cy,J=R.radius,er=R.axisLine,en=R.axisLineType,ei=_objectSpread(_objectSpread({},(0,ec.L6)(this.props)),{},{fill:"none"},(0,ec.L6)(er));if("circle"===en)return et.createElement(eo.o,PolarAngleAxis_extends({className:"recharts-polar-angle-axis-line"},ei,{cx:W,cy:G,r:J}));var es=this.props.ticks.map(function(R){return(0,ep.op)(W,G,J,R.coordinate)});return et.createElement(Polygon,PolarAngleAxis_extends({className:"recharts-polar-angle-axis-line"},ei,{points:es}))}},{key:"renderTicks",value:function(){var R=this,W=this.props,G=W.ticks,J=W.tick,er=W.tickLine,en=W.tickFormatter,eo=W.stroke,es=(0,ec.L6)(this.props),el=(0,ec.L6)(J),eu=_objectSpread(_objectSpread({},es),{},{fill:"none"},(0,ec.L6)(er)),ep=G.map(function(W,G){var ec=R.getTickLineCoord(W),ep=_objectSpread(_objectSpread(_objectSpread({textAnchor:R.getTickTextAnchor(W)},es),{},{stroke:"none",fill:eo},el),{},{index:G,payload:W,x:ec.x2,y:ec.y2});return et.createElement(ei.m,PolarAngleAxis_extends({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(W.coordinate)},(0,ed.bw)(R.props,W,G)),er&&et.createElement("line",PolarAngleAxis_extends({className:"recharts-polar-angle-axis-tick-line"},eu,ec)),J&&PolarAngleAxis.renderTickItem(J,ep,en?en(W.value,G):W.value))});return et.createElement(ei.m,{className:"recharts-polar-angle-axis-ticks"},ep)}},{key:"render",value:function(){var R=this.props,W=R.ticks,G=R.radius,J=R.axisLine;return!(G<=0)&&W&&W.length?et.createElement(ei.m,{className:"recharts-polar-angle-axis"},J&&this.renderAxisLine(),this.renderTicks()):null}}],J=[{key:"renderTickItem",value:function(R,W,G){return et.isValidElement(R)?et.cloneElement(R,W):en()(R)?R(W):et.createElement(eu.x,PolarAngleAxis_extends({},W,{className:"recharts-polar-angle-axis-tick-value"}),G)}}],G&&_defineProperties(PolarAngleAxis.prototype,G),J&&_defineProperties(PolarAngleAxis,J),Object.defineProperty(PolarAngleAxis,"prototype",{writable:!1}),PolarAngleAxis}(et.PureComponent);_defineProperty(eh,"displayName","PolarAngleAxis"),_defineProperty(eh,"axisType","angleAxis"),_defineProperty(eh,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var eg=G(84753),em=G.n(eg),ey=G(22762),ev=G.n(ey),eb=G(25048),e_=["cx","cy","angle","ticks","axisLine"],ex=["ticks","tick","angle","tickFormatter","stroke"];function PolarRadiusAxis_typeof(R){return(PolarRadiusAxis_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function PolarRadiusAxis_extends(){return(PolarRadiusAxis_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function PolarRadiusAxis_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function PolarRadiusAxis_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?PolarRadiusAxis_ownKeys(Object(G),!0).forEach(function(W){PolarRadiusAxis_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):PolarRadiusAxis_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function PolarRadiusAxis_objectWithoutProperties(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}function PolarRadiusAxis_defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,PolarRadiusAxis_toPropertyKey(J.key),J)}}function PolarRadiusAxis_setPrototypeOf(R,W){return(PolarRadiusAxis_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function PolarRadiusAxis_getPrototypeOf(R){return(PolarRadiusAxis_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function PolarRadiusAxis_defineProperty(R,W,G){return(W=PolarRadiusAxis_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function PolarRadiusAxis_toPropertyKey(R){var W=function(R,W){if("object"!==PolarRadiusAxis_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==PolarRadiusAxis_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===PolarRadiusAxis_typeof(W)?W:String(W)}var ew=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&PolarRadiusAxis_setPrototypeOf(R,W)}(PolarRadiusAxis,R);var W,G,J,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=PolarRadiusAxis_getPrototypeOf(PolarRadiusAxis);if(W){var J=PolarRadiusAxis_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===PolarRadiusAxis_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return function(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(R)}(this,R)});function PolarRadiusAxis(){return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,PolarRadiusAxis),er.apply(this,arguments)}return G=[{key:"getTickValueCoord",value:function(R){var W=R.coordinate,G=this.props,J=G.angle,et=G.cx,er=G.cy;return(0,ep.op)(et,er,W,J)}},{key:"getTickTextAnchor",value:function(){var R;switch(this.props.orientation){case"left":R="end";break;case"right":R="start";break;default:R="middle"}return R}},{key:"getViewBox",value:function(){var R=this.props,W=R.cx,G=R.cy,J=R.angle,et=R.ticks,er=em()(et,function(R){return R.coordinate||0});return{cx:W,cy:G,startAngle:J,endAngle:J,innerRadius:ev()(et,function(R){return R.coordinate||0}).coordinate||0,outerRadius:er.coordinate||0}}},{key:"renderAxisLine",value:function(){var R=this.props,W=R.cx,G=R.cy,J=R.angle,er=R.ticks,en=R.axisLine,ei=PolarRadiusAxis_objectWithoutProperties(R,e_),eo=er.reduce(function(R,W){return[Math.min(R[0],W.coordinate),Math.max(R[1],W.coordinate)]},[1/0,-1/0]),es=(0,ep.op)(W,G,eo[0],J),el=(0,ep.op)(W,G,eo[1],J),eu=PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread({},(0,ec.L6)(ei)),{},{fill:"none"},(0,ec.L6)(en)),{},{x1:es.x,y1:es.y,x2:el.x,y2:el.y});return et.createElement("line",PolarRadiusAxis_extends({className:"recharts-polar-radius-axis-line"},eu))}},{key:"renderTicks",value:function(){var R=this,W=this.props,G=W.ticks,J=W.tick,er=W.angle,en=W.tickFormatter,eo=W.stroke,es=PolarRadiusAxis_objectWithoutProperties(W,ex),el=this.getTickTextAnchor(),eu=(0,ec.L6)(es),ep=(0,ec.L6)(J),ef=G.map(function(W,G){var es=R.getTickValueCoord(W),ec=PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread({textAnchor:el,transform:"rotate(".concat(90-er,", ").concat(es.x,", ").concat(es.y,")")},eu),{},{stroke:"none",fill:eo},ep),{},{index:G},es),{},{payload:W});return et.createElement(ei.m,PolarRadiusAxis_extends({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(W.coordinate)},(0,ed.bw)(R.props,W,G)),PolarRadiusAxis.renderTickItem(J,ec,en?en(W.value,G):W.value))});return et.createElement(ei.m,{className:"recharts-polar-radius-axis-ticks"},ef)}},{key:"render",value:function(){var R=this.props,W=R.ticks,G=R.axisLine,J=R.tick;return W&&W.length?et.createElement(ei.m,{className:"recharts-polar-radius-axis"},G&&this.renderAxisLine(),J&&this.renderTicks(),eb._.renderCallByParent(this.props,this.getViewBox())):null}}],J=[{key:"renderTickItem",value:function(R,W,G){return et.isValidElement(R)?et.cloneElement(R,W):en()(R)?R(W):et.createElement(eu.x,PolarRadiusAxis_extends({},W,{className:"recharts-polar-radius-axis-tick-value"}),G)}}],G&&PolarRadiusAxis_defineProperties(PolarRadiusAxis.prototype,G),J&&PolarRadiusAxis_defineProperties(PolarRadiusAxis,J),Object.defineProperty(PolarRadiusAxis,"prototype",{writable:!1}),PolarRadiusAxis}(et.PureComponent);PolarRadiusAxis_defineProperty(ew,"displayName","PolarRadiusAxis"),PolarRadiusAxis_defineProperty(ew,"axisType","radiusAxis"),PolarRadiusAxis_defineProperty(ew,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var eS=G(46208),eT=(0,J.z)({chartName:"PieChart",GraphicalChild:eS.b,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:eh},{axisType:"radiusAxis",AxisComp:ew}],formatAxisMap:ep.t9,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}})},9625:function(R,W,G){"use strict";G.d(W,{z:function(){return generateCategoricalChart}});var J=G(67294),et=G(14293),er=G.n(et),en=G(23560),ei=G.n(en),eo=G(96026),es=G.n(eo),ec=G(27361),el=G.n(ec),eu=G(89734),ed=G.n(eu),ep=G(23493),ef=G.n(ep),eh=G(13311),eg=G.n(eh),em=G(711),ey=G.n(em),ev=G(90512),eb=G(40048);function getRadialCursorPoints(R){var W=R.cx,G=R.cy,J=R.radius,et=R.startAngle,er=R.endAngle;return{points:[(0,eb.op)(W,G,J,et),(0,eb.op)(W,G,J,er)],cx:W,cy:G,radius:J,startAngle:et,endAngle:er}}var e_=G(69055),ex=G(41209),ew=G(47523),eS=G(97187);function getEveryNthWithCondition(R,W,G){if(W<1)return[];if(1===W&&void 0===G)return R;for(var J=[],et=0;et<R.length;et+=W){if(void 0!==G&&!0!==G(R[et]))return;J.push(R[et])}return J}function isVisible(R,W,G,J,et){if(R*W<R*J||R*W>R*et)return!1;var er=G();return R*(W-R*er/2-J)>=0&&R*(W+R*er/2-et)<=0}function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function getTicks(R,W,G){var J,et,er,en,eo,es=R.tick,ec=R.ticks,el=R.viewBox,eu=R.minTickGap,ed=R.orientation,ep=R.interval,ef=R.tickFormatter,eh=R.unit,eg=R.angle;if(!ec||!ec.length||!es)return[];if((0,e_.hj)(ep)||ew.x.isSsr)return getEveryNthWithCondition(ec,("number"==typeof ep&&(0,e_.hj)(ep)?ep:0)+1);var em="top"===ed||"bottom"===ed?"width":"height",ey=eh&&"width"===em?(0,ex.xE)(eh,{fontSize:W,letterSpacing:G}):{width:0,height:0},getTickSize=function(R,J){var et,er,en=ei()(ef)?ef(R.value,J):R.value;return"width"===em?(er={width:(et=(0,ex.xE)(en,{fontSize:W,letterSpacing:G})).width+ey.width,height:et.height+ey.height},(0,eS.xE)(er,eg)):(0,ex.xE)(en,{fontSize:W,letterSpacing:G})[em]},ev=ec.length>=2?(0,e_.uY)(ec[1].coordinate-ec[0].coordinate):1,eb=(J="width"===em,et=el.x,er=el.y,en=el.width,eo=el.height,1===ev?{start:J?et:er,end:J?et+en:er+eo}:{start:J?et+en:er+eo,end:J?et:er});return"equidistantPreserveStart"===ep?function(R,W,G,J,et){for(var er,en=(J||[]).slice(),ei=W.start,eo=W.end,es=0,ec=1,el=ei;ec<=en.length;)if(er=function(){var W,er=null==J?void 0:J[es];if(void 0===er)return{v:getEveryNthWithCondition(J,ec)};var en=es,getSize=function(){return void 0===W&&(W=G(er,en)),W},eu=er.coordinate,ed=0===es||isVisible(R,eu,getSize,el,eo);ed||(es=0,el=ei,ec+=1),ed&&(el=eu+R*(getSize()/2+et),es+=ec)}())return er.v;return[]}(ev,eb,getTickSize,ec,eu):("preserveStart"===ep||"preserveStartEnd"===ep?function(R,W,G,J,et,er){var en=(J||[]).slice(),ei=en.length,eo=W.start,es=W.end;if(er){var ec=J[ei-1],el=G(ec,ei-1),eu=R*(ec.coordinate+R*el/2-es);en[ei-1]=ec=_objectSpread(_objectSpread({},ec),{},{tickCoord:eu>0?ec.coordinate-eu*R:ec.coordinate}),isVisible(R,ec.tickCoord,function(){return el},eo,es)&&(es=ec.tickCoord-R*(el/2+et),en[ei-1]=_objectSpread(_objectSpread({},ec),{},{isShow:!0}))}for(var ed=er?ei-1:ei,_loop2=function(W){var J,er=en[W],getSize=function(){return void 0===J&&(J=G(er,W)),J};if(0===W){var ei=R*(er.coordinate-R*getSize()/2-eo);en[W]=er=_objectSpread(_objectSpread({},er),{},{tickCoord:ei<0?er.coordinate-ei*R:er.coordinate})}else en[W]=er=_objectSpread(_objectSpread({},er),{},{tickCoord:er.coordinate});isVisible(R,er.tickCoord,getSize,eo,es)&&(eo=er.tickCoord+R*(getSize()/2+et),en[W]=_objectSpread(_objectSpread({},er),{},{isShow:!0}))},ep=0;ep<ed;ep++)_loop2(ep);return en}(ev,eb,getTickSize,ec,eu,"preserveStartEnd"===ep):function(R,W,G,J,et){for(var er=(J||[]).slice(),en=er.length,ei=W.start,eo=W.end,_loop=function(W){var J,es=er[W],getSize=function(){return void 0===J&&(J=G(es,W)),J};if(W===en-1){var ec=R*(es.coordinate+R*getSize()/2-eo);er[W]=es=_objectSpread(_objectSpread({},es),{},{tickCoord:ec>0?es.coordinate-ec*R:es.coordinate})}else er[W]=es=_objectSpread(_objectSpread({},es),{},{tickCoord:es.coordinate});isVisible(R,es.tickCoord,getSize,ei,eo)&&(eo=es.tickCoord-R*(getSize()/2+et),er[W]=_objectSpread(_objectSpread({},es),{},{isShow:!0}))},es=en-1;es>=0;es--)_loop(es);return er}(ev,eb,getTickSize,ec,eu)).filter(function(R){return R.isShow})}var eT=G(20514),eO=G(48710),eP=G(26050),eC=G(33558),ek=G(66338),eE=G(52017);function Cross_typeof(R){return(Cross_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var ej=["x","y","top","left","width","height","className"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function Cross_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}var Cross=function(R){var W=R.x,G=void 0===W?0:W,et=R.y,er=void 0===et?0:et,en=R.top,ei=void 0===en?0:en,eo=R.left,es=void 0===eo?0:eo,ec=R.width,el=void 0===ec?0:ec,eu=R.height,ed=void 0===eu?0:eu,ep=R.className,ef=function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Cross_ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==Cross_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==Cross_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===Cross_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Cross_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({x:G,y:er,top:ei,left:es,width:el,height:ed},function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,ej));return(0,e_.hj)(G)&&(0,e_.hj)(er)&&(0,e_.hj)(el)&&(0,e_.hj)(ed)&&(0,e_.hj)(ei)&&(0,e_.hj)(es)?J.createElement("path",_extends({},(0,eE.L6)(ef,!0),{className:(0,ev.Z)("recharts-cross",ep),d:"M".concat(G,",").concat(ei,"v").concat(ed,"M").concat(es,",").concat(er,"h").concat(el)})):null},eA=G(45108),eD=G(93061),eI=G(13481),eM=G(30791),eL=G(84642),eR=G(25048),eN=G(79896),eB=["viewBox"],eZ=["viewBox"],eU=["ticks"];function CartesianAxis_typeof(R){return(CartesianAxis_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function CartesianAxis_extends(){return(CartesianAxis_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function CartesianAxis_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function CartesianAxis_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?CartesianAxis_ownKeys(Object(G),!0).forEach(function(W){CartesianAxis_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):CartesianAxis_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function CartesianAxis_objectWithoutProperties(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,CartesianAxis_toPropertyKey(J.key),J)}}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function CartesianAxis_defineProperty(R,W,G){return(W=CartesianAxis_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function CartesianAxis_toPropertyKey(R){var W=function(R,W){if("object"!==CartesianAxis_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==CartesianAxis_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===CartesianAxis_typeof(W)?W:String(W)}var eF=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(CartesianAxis,R);var W,G,et,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(CartesianAxis);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===CartesianAxis_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return function(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(R)}(this,R)});function CartesianAxis(R){var W;return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,CartesianAxis),(W=er.call(this,R)).state={fontSize:"",letterSpacing:""},W}return G=[{key:"shouldComponentUpdate",value:function(R,W){var G=R.viewBox,J=CartesianAxis_objectWithoutProperties(R,eB),et=this.props,er=et.viewBox,en=CartesianAxis_objectWithoutProperties(et,eZ);return!(0,eM.w)(G,er)||!(0,eM.w)(J,en)||!(0,eM.w)(W,this.state)}},{key:"componentDidMount",value:function(){var R=this.layerReference;if(R){var W=R.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];W&&this.setState({fontSize:window.getComputedStyle(W).fontSize,letterSpacing:window.getComputedStyle(W).letterSpacing})}}},{key:"getTickLineCoord",value:function(R){var W,G,J,et,er,en,ei=this.props,eo=ei.x,es=ei.y,ec=ei.width,el=ei.height,eu=ei.orientation,ed=ei.tickSize,ep=ei.mirror,ef=ei.tickMargin,eh=ep?-1:1,eg=R.tickSize||ed,em=(0,e_.hj)(R.tickCoord)?R.tickCoord:R.coordinate;switch(eu){case"top":W=G=R.coordinate,en=(J=(et=es+ +!ep*el)-eh*eg)-eh*ef,er=em;break;case"left":J=et=R.coordinate,er=(W=(G=eo+ +!ep*ec)-eh*eg)-eh*ef,en=em;break;case"right":J=et=R.coordinate,er=(W=(G=eo+ +ep*ec)+eh*eg)+eh*ef,en=em;break;default:W=G=R.coordinate,en=(J=(et=es+ +ep*el)+eh*eg)+eh*ef,er=em}return{line:{x1:W,y1:J,x2:G,y2:et},tick:{x:er,y:en}}}},{key:"getTickTextAnchor",value:function(){var R,W=this.props,G=W.orientation,J=W.mirror;switch(G){case"left":R=J?"start":"end";break;case"right":R=J?"end":"start";break;default:R="middle"}return R}},{key:"getTickVerticalAnchor",value:function(){var R=this.props,W=R.orientation,G=R.mirror,J="end";switch(W){case"left":case"right":J="middle";break;case"top":J=G?"start":"end";break;default:J=G?"end":"start"}return J}},{key:"renderAxisLine",value:function(){var R=this.props,W=R.x,G=R.y,et=R.width,er=R.height,en=R.orientation,ei=R.mirror,eo=R.axisLine,es=CartesianAxis_objectSpread(CartesianAxis_objectSpread(CartesianAxis_objectSpread({},(0,eE.L6)(this.props)),(0,eE.L6)(eo)),{},{fill:"none"});if("top"===en||"bottom"===en){var ec=+("top"===en&&!ei||"bottom"===en&&ei);es=CartesianAxis_objectSpread(CartesianAxis_objectSpread({},es),{},{x1:W,y1:G+ec*er,x2:W+et,y2:G+ec*er})}else{var eu=+("left"===en&&!ei||"right"===en&&ei);es=CartesianAxis_objectSpread(CartesianAxis_objectSpread({},es),{},{x1:W+eu*et,y1:G,x2:W+eu*et,y2:G+er})}return J.createElement("line",CartesianAxis_extends({},es,{className:(0,ev.Z)("recharts-cartesian-axis-line",el()(eo,"className"))}))}},{key:"renderTicks",value:function(R,W,G){var et=this,er=this.props,en=er.tickLine,eo=er.stroke,es=er.tick,ec=er.tickFormatter,eu=er.unit,ed=getTicks(CartesianAxis_objectSpread(CartesianAxis_objectSpread({},this.props),{},{ticks:R}),W,G),ep=this.getTickTextAnchor(),ef=this.getTickVerticalAnchor(),eh=(0,eE.L6)(this.props),eg=(0,eE.L6)(es),em=CartesianAxis_objectSpread(CartesianAxis_objectSpread({},eh),{},{fill:"none"},(0,eE.L6)(en)),ey=ed.map(function(R,W){var G=et.getTickLineCoord(R),er=G.line,ey=G.tick,eb=CartesianAxis_objectSpread(CartesianAxis_objectSpread(CartesianAxis_objectSpread(CartesianAxis_objectSpread({textAnchor:ep,verticalAnchor:ef},eh),{},{stroke:"none",fill:eo},eg),ey),{},{index:W,payload:R,visibleTicksCount:ed.length,tickFormatter:ec});return J.createElement(eO.m,CartesianAxis_extends({className:"recharts-cartesian-axis-tick",key:"tick-".concat(R.value,"-").concat(R.coordinate,"-").concat(R.tickCoord)},(0,eN.bw)(et.props,R,W)),en&&J.createElement("line",CartesianAxis_extends({},em,er,{className:(0,ev.Z)("recharts-cartesian-axis-tick-line",el()(en,"className"))})),es&&CartesianAxis.renderTickItem(es,eb,"".concat(ei()(ec)?ec(R.value,W):R.value).concat(eu||"")))});return J.createElement("g",{className:"recharts-cartesian-axis-ticks"},ey)}},{key:"render",value:function(){var R=this,W=this.props,G=W.axisLine,et=W.width,er=W.height,en=W.ticksGenerator,eo=W.className;if(W.hide)return null;var es=this.props,ec=es.ticks,el=CartesianAxis_objectWithoutProperties(es,eU),eu=ec;return(ei()(en)&&(eu=en(ec&&ec.length>0?this.props:el)),et<=0||er<=0||!eu||!eu.length)?null:J.createElement(eO.m,{className:(0,ev.Z)("recharts-cartesian-axis",eo),ref:function(W){R.layerReference=W}},G&&this.renderAxisLine(),this.renderTicks(eu,this.state.fontSize,this.state.letterSpacing),eR._.renderCallByParent(this.props))}}],et=[{key:"renderTickItem",value:function(R,W,G){return J.isValidElement(R)?J.cloneElement(R,W):ei()(R)?R(W):J.createElement(eL.x,CartesianAxis_extends({},W,{className:"recharts-cartesian-axis-tick-value"}),G)}}],G&&_defineProperties(CartesianAxis.prototype,G),et&&_defineProperties(CartesianAxis,et),Object.defineProperty(CartesianAxis,"prototype",{writable:!1}),CartesianAxis}(J.Component);CartesianAxis_defineProperty(eF,"displayName","CartesianAxis"),CartesianAxis_defineProperty(eF,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var ez=G(1771),eH=G(48722);function CssPrefixUtils_typeof(R){return(CssPrefixUtils_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function CssPrefixUtils_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function CssPrefixUtils_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?CssPrefixUtils_ownKeys(Object(G),!0).forEach(function(W){CssPrefixUtils_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):CssPrefixUtils_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function CssPrefixUtils_defineProperty(R,W,G){var J;return(J=function(R,W){if("object"!==CssPrefixUtils_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==CssPrefixUtils_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(W,"string"),(W="symbol"===CssPrefixUtils_typeof(J)?J:String(J))in R)?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}var eq=["Webkit","Moz","O","ms"],generatePrefixStyle=function(R,W){if(!R)return null;var G=R.replace(/(\w)/,function(R){return R.toUpperCase()}),J=eq.reduce(function(R,J){return CssPrefixUtils_objectSpread(CssPrefixUtils_objectSpread({},R),{},CssPrefixUtils_defineProperty({},J+G,W))},{});return J[R]=W,J};function Brush_typeof(R){return(Brush_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function Brush_extends(){return(Brush_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function Brush_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Brush_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Brush_ownKeys(Object(G),!0).forEach(function(W){Brush_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Brush_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function Brush_defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,Brush_toPropertyKey(J.key),J)}}function Brush_setPrototypeOf(R,W){return(Brush_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function Brush_assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function Brush_getPrototypeOf(R){return(Brush_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function Brush_defineProperty(R,W,G){return(W=Brush_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function Brush_toPropertyKey(R){var W=function(R,W){if("object"!==Brush_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==Brush_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===Brush_typeof(W)?W:String(W)}var createScale=function(R){var W=R.data,G=R.startIndex,J=R.endIndex,et=R.x,er=R.width,en=R.travellerWidth;if(!W||!W.length)return{};var ei=W.length,eo=(0,ez.x)().domain(es()(0,ei)).range([et,et+er-en]),ec=eo.domain().map(function(R){return eo(R)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:eo(G),endX:eo(J),scale:eo,scaleValues:ec}},isTouch=function(R){return R.changedTouches&&!!R.changedTouches.length},eV=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&Brush_setPrototypeOf(R,W)}(Brush,R);var W,G,et,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=Brush_getPrototypeOf(Brush);if(W){var J=Brush_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===Brush_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return Brush_assertThisInitialized(R)}(this,R)});function Brush(R){var W;return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,Brush),Brush_defineProperty(Brush_assertThisInitialized(W=er.call(this,R)),"handleDrag",function(R){W.leaveTimer&&(clearTimeout(W.leaveTimer),W.leaveTimer=null),W.state.isTravellerMoving?W.handleTravellerMove(R):W.state.isSlideMoving&&W.handleSlideDrag(R)}),Brush_defineProperty(Brush_assertThisInitialized(W),"handleTouchMove",function(R){null!=R.changedTouches&&R.changedTouches.length>0&&W.handleDrag(R.changedTouches[0])}),Brush_defineProperty(Brush_assertThisInitialized(W),"handleDragEnd",function(){W.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var R=W.props,G=R.endIndex,J=R.onDragEnd,et=R.startIndex;null==J||J({endIndex:G,startIndex:et})}),W.detachDragEndListener()}),Brush_defineProperty(Brush_assertThisInitialized(W),"handleLeaveWrapper",function(){(W.state.isTravellerMoving||W.state.isSlideMoving)&&(W.leaveTimer=window.setTimeout(W.handleDragEnd,W.props.leaveTimeOut))}),Brush_defineProperty(Brush_assertThisInitialized(W),"handleEnterSlideOrTraveller",function(){W.setState({isTextActive:!0})}),Brush_defineProperty(Brush_assertThisInitialized(W),"handleLeaveSlideOrTraveller",function(){W.setState({isTextActive:!1})}),Brush_defineProperty(Brush_assertThisInitialized(W),"handleSlideDragStart",function(R){var G=isTouch(R)?R.changedTouches[0]:R;W.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:G.pageX}),W.attachDragEndListener()}),W.travellerDragStartHandlers={startX:W.handleTravellerDragStart.bind(Brush_assertThisInitialized(W),"startX"),endX:W.handleTravellerDragStart.bind(Brush_assertThisInitialized(W),"endX")},W.state={},W}return G=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(R){var W=R.startX,G=R.endX,J=this.state.scaleValues,et=this.props,er=et.gap,en=et.data.length-1,ei=Math.min(W,G),eo=Math.max(W,G),es=Brush.getIndexInRange(J,ei),ec=Brush.getIndexInRange(J,eo);return{startIndex:es-es%er,endIndex:ec===en?en:ec-ec%er}}},{key:"getTextOfTick",value:function(R){var W=this.props,G=W.data,J=W.tickFormatter,et=W.dataKey,er=(0,eH.F$)(G[R],et,R);return ei()(J)?J(er,R):er}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(R){var W=this.state,G=W.slideMoveStartX,J=W.startX,et=W.endX,er=this.props,en=er.x,ei=er.width,eo=er.travellerWidth,es=er.startIndex,ec=er.endIndex,el=er.onChange,eu=R.pageX-G;eu>0?eu=Math.min(eu,en+ei-eo-et,en+ei-eo-J):eu<0&&(eu=Math.max(eu,en-J,en-et));var ed=this.getIndex({startX:J+eu,endX:et+eu});(ed.startIndex!==es||ed.endIndex!==ec)&&el&&el(ed),this.setState({startX:J+eu,endX:et+eu,slideMoveStartX:R.pageX})}},{key:"handleTravellerDragStart",value:function(R,W){var G=isTouch(W)?W.changedTouches[0]:W;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:R,brushMoveStartX:G.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(R){var W,G=this.state,J=G.brushMoveStartX,et=G.movingTravellerId,er=G.endX,en=G.startX,ei=this.state[et],eo=this.props,es=eo.x,ec=eo.width,el=eo.travellerWidth,eu=eo.onChange,ed=eo.gap,ep=eo.data,ef={startX:this.state.startX,endX:this.state.endX},eh=R.pageX-J;eh>0?eh=Math.min(eh,es+ec-el-ei):eh<0&&(eh=Math.max(eh,es-ei)),ef[et]=ei+eh;var eg=this.getIndex(ef),em=eg.startIndex,ey=eg.endIndex,isFullGap=function(){var R=ep.length-1;return"startX"===et&&(er>en?em%ed==0:ey%ed==0)||er<en&&ey===R||"endX"===et&&(er>en?ey%ed==0:em%ed==0)||er>en&&ey===R};this.setState((Brush_defineProperty(W={},et,ei+eh),Brush_defineProperty(W,"brushMoveStartX",R.pageX),W),function(){eu&&isFullGap()&&eu(eg)})}},{key:"handleTravellerMoveKeyboard",value:function(R,W){var G=this,J=this.state,et=J.scaleValues,er=J.startX,en=J.endX,ei=this.state[W],eo=et.indexOf(ei);if(-1!==eo){var es=eo+R;if(-1!==es&&!(es>=et.length)){var ec=et[es];"startX"===W&&ec>=en||"endX"===W&&ec<=er||this.setState(Brush_defineProperty({},W,ec),function(){G.props.onChange(G.getIndex({startX:G.state.startX,endX:G.state.endX}))})}}}},{key:"renderBackground",value:function(){var R=this.props,W=R.x,G=R.y,et=R.width,er=R.height,en=R.fill,ei=R.stroke;return J.createElement("rect",{stroke:ei,fill:en,x:W,y:G,width:et,height:er})}},{key:"renderPanorama",value:function(){var R=this.props,W=R.x,G=R.y,et=R.width,er=R.height,en=R.data,ei=R.children,eo=R.padding,es=J.Children.only(ei);return es?J.cloneElement(es,{x:W,y:G,width:et,height:er,margin:eo,compact:!0,data:en}):null}},{key:"renderTravellerLayer",value:function(R,W){var G=this,et=this.props,er=et.y,en=et.travellerWidth,ei=et.height,eo=et.traveller,es=et.ariaLabel,ec=et.data,el=et.startIndex,eu=et.endIndex,ed=Math.max(R,this.props.x),ep=Brush_objectSpread(Brush_objectSpread({},(0,eE.L6)(this.props)),{},{x:ed,y:er,width:en,height:ei}),ef=es||"Min value: ".concat(ec[el].name,", Max value: ").concat(ec[eu].name);return J.createElement(eO.m,{tabIndex:0,role:"slider","aria-label":ef,"aria-valuenow":R,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[W],onTouchStart:this.travellerDragStartHandlers[W],onKeyDown:function(R){["ArrowLeft","ArrowRight"].includes(R.key)&&(R.preventDefault(),R.stopPropagation(),G.handleTravellerMoveKeyboard("ArrowRight"===R.key?1:-1,W))},onFocus:function(){G.setState({isTravellerFocused:!0})},onBlur:function(){G.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},Brush.renderTraveller(eo,ep))}},{key:"renderSlide",value:function(R,W){var G=this.props,et=G.y,er=G.height,en=G.stroke,ei=G.travellerWidth,eo=Math.min(R,W)+ei,es=Math.max(Math.abs(W-R)-ei,0);return J.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:en,fillOpacity:.2,x:eo,y:et,width:es,height:er})}},{key:"renderText",value:function(){var R=this.props,W=R.startIndex,G=R.endIndex,et=R.y,er=R.height,en=R.travellerWidth,ei=R.stroke,eo=this.state,es=eo.startX,ec=eo.endX,el={pointerEvents:"none",fill:ei};return J.createElement(eO.m,{className:"recharts-brush-texts"},J.createElement(eL.x,Brush_extends({textAnchor:"end",verticalAnchor:"middle",x:Math.min(es,ec)-5,y:et+er/2},el),this.getTextOfTick(W)),J.createElement(eL.x,Brush_extends({textAnchor:"start",verticalAnchor:"middle",x:Math.max(es,ec)+en+5,y:et+er/2},el),this.getTextOfTick(G)))}},{key:"render",value:function(){var R=this.props,W=R.data,G=R.className,et=R.children,er=R.x,en=R.y,ei=R.width,eo=R.height,es=R.alwaysShowText,ec=this.state,el=ec.startX,eu=ec.endX,ed=ec.isTextActive,ep=ec.isSlideMoving,ef=ec.isTravellerMoving,eh=ec.isTravellerFocused;if(!W||!W.length||!(0,e_.hj)(er)||!(0,e_.hj)(en)||!(0,e_.hj)(ei)||!(0,e_.hj)(eo)||ei<=0||eo<=0)return null;var eg=(0,ev.Z)("recharts-brush",G),em=1===J.Children.count(et),ey=generatePrefixStyle("userSelect","none");return J.createElement(eO.m,{className:eg,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:ey},this.renderBackground(),em&&this.renderPanorama(),this.renderSlide(el,eu),this.renderTravellerLayer(el,"startX"),this.renderTravellerLayer(eu,"endX"),(ed||ep||ef||eh||es)&&this.renderText())}}],et=[{key:"renderDefaultTraveller",value:function(R){var W=R.x,G=R.y,et=R.width,er=R.height,en=R.stroke,ei=Math.floor(G+er/2)-1;return J.createElement(J.Fragment,null,J.createElement("rect",{x:W,y:G,width:et,height:er,fill:en,stroke:"none"}),J.createElement("line",{x1:W+1,y1:ei,x2:W+et-1,y2:ei,fill:"none",stroke:"#fff"}),J.createElement("line",{x1:W+1,y1:ei+2,x2:W+et-1,y2:ei+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(R,W){return J.isValidElement(R)?J.cloneElement(R,W):ei()(R)?R(W):Brush.renderDefaultTraveller(W)}},{key:"getDerivedStateFromProps",value:function(R,W){var G=R.data,J=R.width,et=R.x,er=R.travellerWidth,en=R.updateId,ei=R.startIndex,eo=R.endIndex;if(G!==W.prevData||en!==W.prevUpdateId)return Brush_objectSpread({prevData:G,prevTravellerWidth:er,prevUpdateId:en,prevX:et,prevWidth:J},G&&G.length?createScale({data:G,width:J,x:et,travellerWidth:er,startIndex:ei,endIndex:eo}):{scale:null,scaleValues:null});if(W.scale&&(J!==W.prevWidth||et!==W.prevX||er!==W.prevTravellerWidth)){W.scale.range([et,et+J-er]);var es=W.scale.domain().map(function(R){return W.scale(R)});return{prevData:G,prevTravellerWidth:er,prevUpdateId:en,prevX:et,prevWidth:J,startX:W.scale(R.startIndex),endX:W.scale(R.endIndex),scaleValues:es}}return null}},{key:"getIndexInRange",value:function(R,W){for(var G=R.length,J=0,et=G-1;et-J>1;){var er=Math.floor((J+et)/2);R[er]>W?et=er:J=er}return W>=R[et]?et:J}}],G&&Brush_defineProperties(Brush.prototype,G),et&&Brush_defineProperties(Brush,et),Object.defineProperty(Brush,"prototype",{writable:!1}),Brush}(J.PureComponent);Brush_defineProperty(eV,"displayName","Brush"),Brush_defineProperty(eV,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var eW=G(20430),ifOverflowMatches=function(R,W){var G=R.alwaysShow,J=R.ifOverflow;return G&&(J="extendDomain"),J===W},eG=G(6213);function ReferenceDot_typeof(R){return(ReferenceDot_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ReferenceDot_extends(){return(ReferenceDot_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ReferenceDot_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function ReferenceDot_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ReferenceDot_ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==ReferenceDot_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==ReferenceDot_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===ReferenceDot_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ReferenceDot_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var getCoordinate=function(R){var W=R.x,G=R.y,J=R.xAxis,et=R.yAxis,er=(0,eS.Ky)({x:J.scale,y:et.scale}),en=er.apply({x:W,y:G},{bandAware:!0});return ifOverflowMatches(R,"discard")&&!er.isInRange(en)?null:en};function ReferenceDot(R){var W=R.x,G=R.y,et=R.r,er=R.alwaysShow,en=R.clipPathId,ei=(0,e_.P2)(W),eo=(0,e_.P2)(G);if((0,eG.Z)(void 0===er,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!ei||!eo)return null;var es=getCoordinate(R);if(!es)return null;var ec=es.x,el=es.y,eu=R.shape,ed=R.className,ep=ReferenceDot_objectSpread(ReferenceDot_objectSpread({clipPath:ifOverflowMatches(R,"hidden")?"url(#".concat(en,")"):void 0},(0,eE.L6)(R,!0)),{},{cx:ec,cy:el});return J.createElement(eO.m,{className:(0,ev.Z)("recharts-reference-dot",ed)},ReferenceDot.renderDot(eu,ep),eR._.renderCallByParent(R,{x:ec-et,y:el-et,width:2*et,height:2*et}))}ReferenceDot.displayName="ReferenceDot",ReferenceDot.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},ReferenceDot.renderDot=function(R,W){return J.isValidElement(R)?J.cloneElement(R,W):ei()(R)?R(W):J.createElement(eD.o,ReferenceDot_extends({},W,{cx:W.cx,cy:W.cy,className:"recharts-reference-dot-dot"}))};var e$=G(59704),eK=G.n(e$);function ReferenceLine_typeof(R){return(ReferenceLine_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ReferenceLine_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function ReferenceLine_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ReferenceLine_ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==ReferenceLine_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==ReferenceLine_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===ReferenceLine_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ReferenceLine_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function ReferenceLine_extends(){return(ReferenceLine_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}var getEndPoints=function(R,W,G,J,et){var er=et.viewBox,en=er.x,ei=er.y,eo=er.width,es=er.height,ec=et.position;if(G){var el=et.y,eu=et.yAxis.orientation,ed=R.y.apply(el,{position:ec});if(ifOverflowMatches(et,"discard")&&!R.y.isInRange(ed))return null;var ep=[{x:en+eo,y:ed},{x:en,y:ed}];return"left"===eu?ep.reverse():ep}if(W){var ef=et.x,eh=et.xAxis.orientation,eg=R.x.apply(ef,{position:ec});if(ifOverflowMatches(et,"discard")&&!R.x.isInRange(eg))return null;var em=[{x:eg,y:ei+es},{x:eg,y:ei}];return"top"===eh?em.reverse():em}if(J){var ey=et.segment.map(function(W){return R.apply(W,{position:ec})});return ifOverflowMatches(et,"discard")&&eK()(ey,function(W){return!R.isInRange(W)})?null:ey}return null};function ReferenceLine(R){var W,G,et=R.x,er=R.y,en=R.segment,eo=R.xAxis,es=R.yAxis,ec=R.shape,el=R.className,eu=R.alwaysShow,ed=R.clipPathId;(0,eG.Z)(void 0===eu,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var ep=getEndPoints((0,eS.Ky)({x:eo.scale,y:es.scale}),(0,e_.P2)(et),(0,e_.P2)(er),en&&2===en.length,R);if(!ep)return null;var ef=function(R){if(Array.isArray(R))return R}(ep)||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(ep,2)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(ep,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),eh=ef[0],eg=eh.x,em=eh.y,ey=ef[1],eb=ey.x,ex=ey.y,ew=ReferenceLine_objectSpread(ReferenceLine_objectSpread({clipPath:ifOverflowMatches(R,"hidden")?"url(#".concat(ed,")"):void 0},(0,eE.L6)(R,!0)),{},{x1:eg,y1:em,x2:eb,y2:ex});return J.createElement(eO.m,{className:(0,ev.Z)("recharts-reference-line",el)},(W=ec,G=ew,J.isValidElement(W)?J.cloneElement(W,G):ei()(W)?W(G):J.createElement("line",ReferenceLine_extends({},G,{className:"recharts-reference-line-line"}))),eR._.renderCallByParent(R,(0,eS._b)({x1:eg,y1:em,x2:eb,y2:ex})))}function ReferenceArea_typeof(R){return(ReferenceArea_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ReferenceArea_extends(){return(ReferenceArea_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ReferenceArea_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function ReferenceArea_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ReferenceArea_ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==ReferenceArea_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==ReferenceArea_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===ReferenceArea_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ReferenceArea_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}ReferenceLine.displayName="ReferenceLine",ReferenceLine.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var getRect=function(R,W,G,J,et){var er=et.x1,en=et.x2,ei=et.y1,eo=et.y2,es=et.xAxis,ec=et.yAxis;if(!es||!ec)return null;var el=(0,eS.Ky)({x:es.scale,y:ec.scale}),eu={x:R?el.x.apply(er,{position:"start"}):el.x.rangeMin,y:G?el.y.apply(ei,{position:"start"}):el.y.rangeMin},ed={x:W?el.x.apply(en,{position:"end"}):el.x.rangeMax,y:J?el.y.apply(eo,{position:"end"}):el.y.rangeMax};return!ifOverflowMatches(et,"discard")||el.isInRange(eu)&&el.isInRange(ed)?(0,eS.O1)(eu,ed):null};function ReferenceArea(R){var W=R.x1,G=R.x2,et=R.y1,er=R.y2,en=R.className,ei=R.alwaysShow,eo=R.clipPathId;(0,eG.Z)(void 0===ei,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var es=(0,e_.P2)(W),ec=(0,e_.P2)(G),el=(0,e_.P2)(et),eu=(0,e_.P2)(er),ed=R.shape;if(!es&&!ec&&!el&&!eu&&!ed)return null;var ep=getRect(es,ec,el,eu,R);if(!ep&&!ed)return null;var ef=ifOverflowMatches(R,"hidden")?"url(#".concat(eo,")"):void 0;return J.createElement(eO.m,{className:(0,ev.Z)("recharts-reference-area",en)},ReferenceArea.renderRect(ed,ReferenceArea_objectSpread(ReferenceArea_objectSpread({clipPath:ef},(0,eE.L6)(R,!0)),ep)),eR._.renderCallByParent(R,ep))}function _toConsumableArray(R){return function(R){if(Array.isArray(R))return DetectReferenceElementsDomain_arrayLikeToArray(R)}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||function(R,W){if(R){if("string"==typeof R)return DetectReferenceElementsDomain_arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return DetectReferenceElementsDomain_arrayLikeToArray(R,W)}}(R)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DetectReferenceElementsDomain_arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}ReferenceArea.displayName="ReferenceArea",ReferenceArea.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},ReferenceArea.renderRect=function(R,W){return J.isValidElement(R)?J.cloneElement(R,W):ei()(R)?R(W):J.createElement(eI.A,ReferenceArea_extends({},W,{className:"recharts-reference-area-rect"}))};var detectReferenceElementsDomain=function(R,W,G,J,et){var er=(0,eE.NN)(R,ReferenceLine),en=(0,eE.NN)(R,ReferenceDot),ei=[].concat(_toConsumableArray(er),_toConsumableArray(en)),eo=(0,eE.NN)(R,ReferenceArea),es="".concat(J,"Id"),ec=J[0],el=W;if(ei.length&&(el=ei.reduce(function(R,W){if(W.props[es]===G&&ifOverflowMatches(W.props,"extendDomain")&&(0,e_.hj)(W.props[ec])){var J=W.props[ec];return[Math.min(R[0],J),Math.max(R[1],J)]}return R},el)),eo.length){var eu="".concat(ec,"1"),ed="".concat(ec,"2");el=eo.reduce(function(R,W){if(W.props[es]===G&&ifOverflowMatches(W.props,"extendDomain")&&(0,e_.hj)(W.props[eu])&&(0,e_.hj)(W.props[ed])){var J=W.props[eu],et=W.props[ed];return[Math.min(R[0],J,et),Math.max(R[1],J,et)]}return R},el)}return et&&et.length&&(el=et.reduce(function(R,W){return(0,e_.hj)(W)?[Math.min(R[0],W),Math.max(R[1],W)]:R},el)),el},eY=G(26729),eX=new(G.n(eY)()),eQ="recharts.syncMouseEvents";function AccessibilityManager_typeof(R){return(AccessibilityManager_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function AccessibilityManager_defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,AccessibilityManager_toPropertyKey(J.key),J)}}function AccessibilityManager_defineProperty(R,W,G){return(W=AccessibilityManager_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function AccessibilityManager_toPropertyKey(R){var W=function(R,W){if("object"!==AccessibilityManager_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==AccessibilityManager_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===AccessibilityManager_typeof(W)?W:String(W)}var eJ=function(){var R,W;function AccessibilityManager(){!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,AccessibilityManager),AccessibilityManager_defineProperty(this,"activeIndex",0),AccessibilityManager_defineProperty(this,"coordinateList",[]),AccessibilityManager_defineProperty(this,"layout","horizontal")}return R=[{key:"setDetails",value:function(R){var W=R.coordinateList,G=void 0===W?[]:W,J=R.container,et=void 0===J?null:J,er=R.layout,en=void 0===er?null:er,ei=R.offset,eo=void 0===ei?null:ei,es=R.mouseHandlerCallback,ec=void 0===es?null:es;this.coordinateList=null!=G?G:this.coordinateList,this.container=null!=et?et:this.container,this.layout=null!=en?en:this.layout,this.offset=null!=eo?eo:this.offset,this.mouseHandlerCallback=null!=ec?ec:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(R){if(0!==this.coordinateList.length)switch(R.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var R,W,G=this.container.getBoundingClientRect(),J=G.x,et=G.y,er=G.height,en=this.coordinateList[this.activeIndex].coordinate,ei=(null===(R=window)||void 0===R?void 0:R.scrollX)||0,eo=(null===(W=window)||void 0===W?void 0:W.scrollY)||0,es=et+this.offset.top+er/2+eo;this.mouseHandlerCallback({pageX:J+en+ei,pageY:es})}}}],AccessibilityManager_defineProperties(AccessibilityManager.prototype,R),W&&AccessibilityManager_defineProperties(AccessibilityManager,W),Object.defineProperty(AccessibilityManager,"prototype",{writable:!1}),AccessibilityManager}(),e0=G(49465),e1=["item"],e2=["children","className","width","height","style","compact","title","desc"];function generateCategoricalChart_typeof(R){return(generateCategoricalChart_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function generateCategoricalChart_slicedToArray(R,W){return function(R){if(Array.isArray(R))return R}(R)||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(R,W)||generateCategoricalChart_unsupportedIterableToArray(R,W)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function generateCategoricalChart_extends(){return(generateCategoricalChart_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function generateCategoricalChart_objectWithoutProperties(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}function generateCategoricalChart_defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,generateCategoricalChart_toPropertyKey(J.key),J)}}function generateCategoricalChart_setPrototypeOf(R,W){return(generateCategoricalChart_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function generateCategoricalChart_assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function generateCategoricalChart_getPrototypeOf(R){return(generateCategoricalChart_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function generateCategoricalChart_toConsumableArray(R){return function(R){if(Array.isArray(R))return generateCategoricalChart_arrayLikeToArray(R)}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||generateCategoricalChart_unsupportedIterableToArray(R)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function generateCategoricalChart_unsupportedIterableToArray(R,W){if(R){if("string"==typeof R)return generateCategoricalChart_arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return generateCategoricalChart_arrayLikeToArray(R,W)}}function generateCategoricalChart_arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function generateCategoricalChart_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function generateCategoricalChart_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?generateCategoricalChart_ownKeys(Object(G),!0).forEach(function(W){generateCategoricalChart_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):generateCategoricalChart_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function generateCategoricalChart_defineProperty(R,W,G){return(W=generateCategoricalChart_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function generateCategoricalChart_toPropertyKey(R){var W=function(R,W){if("object"!==generateCategoricalChart_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==generateCategoricalChart_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===generateCategoricalChart_typeof(W)?W:String(W)}var e3={xAxis:["bottom","top"],yAxis:["left","right"]},e5={width:"100%",height:"100%"},e4={x:0,y:0},getActiveCoordinate=function(R,W,G,J){var et=W.find(function(R){return R&&R.index===G});if(et){if("horizontal"===R)return{x:et.coordinate,y:J.y};if("vertical"===R)return{x:J.x,y:et.coordinate};if("centric"===R){var er=et.coordinate,en=J.radius;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},J),(0,eb.op)(J.cx,J.cy,en,er)),{},{angle:er,radius:en})}var ei=et.coordinate,eo=J.angle;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},J),(0,eb.op)(J.cx,J.cy,ei,eo)),{},{angle:eo,radius:ei})}return e4},getDisplayedData=function(R,W){var G=W.graphicalItems,J=W.dataStartIndex,et=W.dataEndIndex,er=(null!=G?G:[]).reduce(function(R,W){var G=W.props.data;return G&&G.length?[].concat(generateCategoricalChart_toConsumableArray(R),generateCategoricalChart_toConsumableArray(G)):R},[]);return er.length>0?er:R&&R.length&&(0,e_.hj)(J)&&(0,e_.hj)(et)?R.slice(J,et+1):[]};function getDefaultDomainByAxisType(R){return"number"===R?[0,"auto"]:void 0}var getTooltipContent=function(R,W,G,J){var et=R.graphicalItems,er=R.tooltipAxis,en=getDisplayedData(W,R);return G<0||!et||!et.length||G>=en.length?null:et.reduce(function(et,ei){if(ei.props.hide)return et;var eo,es,ec=null!==(eo=ei.props.data)&&void 0!==eo?eo:W;if(ec&&R.dataStartIndex+R.dataEndIndex!==0&&(ec=ec.slice(R.dataStartIndex,R.dataEndIndex+1)),er.dataKey&&!er.allowDuplicatedCategory){var el=void 0===ec?en:ec;es=(0,e_.Ap)(el,er.dataKey,J)}else es=ec&&ec[G]||en[G];return es?[].concat(generateCategoricalChart_toConsumableArray(et),[(0,eH.Qo)(ei,es)]):et},[])},getTooltipData=function(R,W,G,J){var et=J||{x:R.chartX,y:R.chartY},er="horizontal"===G?et.x:"vertical"===G?et.y:"centric"===G?et.angle:et.radius,en=R.orderedTooltipTicks,ei=R.tooltipAxis,eo=R.tooltipTicks,es=(0,eH.VO)(er,en,eo,ei);if(es>=0&&eo){var ec=eo[es]&&eo[es].value,el=getTooltipContent(R,W,es,ec),eu=getActiveCoordinate(G,en,es,et);return{activeTooltipIndex:es,activeLabel:ec,activePayload:el,activeCoordinate:eu}}return null},getAxisMapByAxes=function(R,W){var G=W.axes,J=W.graphicalItems,et=W.axisType,en=W.axisIdKey,ei=W.stackGroups,eo=W.dataStartIndex,ec=W.dataEndIndex,el=R.layout,eu=R.children,ed=R.stackOffset,ep=(0,eH.NA)(el,et);return G.reduce(function(W,G){var ef=G.props,eh=ef.type,eg=ef.dataKey,em=ef.allowDataOverflow,ey=ef.allowDuplicatedCategory,ev=ef.scale,eb=ef.ticks,ex=ef.includeHidden,ew=G.props[en];if(W[ew])return W;var eS=getDisplayedData(R.data,{graphicalItems:J.filter(function(R){return R.props[en]===ew}),dataStartIndex:eo,dataEndIndex:ec}),eT=eS.length;(function(R,W,G){if("number"===G&&!0===W&&Array.isArray(R)){var J=null==R?void 0:R[0],et=null==R?void 0:R[1];if(J&&et&&(0,e_.hj)(J)&&(0,e_.hj)(et))return!0}return!1})(G.props.domain,em,eh)&&(eC=(0,eH.LG)(G.props.domain,null,em),ep&&("number"===eh||"auto"!==ev)&&(eE=(0,eH.gF)(eS,eg,"category")));var eO=getDefaultDomainByAxisType(eh);if(!eC||0===eC.length){var eP,eC,ek,eE,ej,eA=null!==(ej=G.props.domain)&&void 0!==ej?ej:eO;if(eg){if(eC=(0,eH.gF)(eS,eg,eh),"category"===eh&&ep){var eD=(0,e_.bv)(eC);ey&&eD?(ek=eC,eC=es()(0,eT)):ey||(eC=(0,eH.ko)(eA,eC,G).reduce(function(R,W){return R.indexOf(W)>=0?R:[].concat(generateCategoricalChart_toConsumableArray(R),[W])},[]))}else if("category"===eh)eC=ey?eC.filter(function(R){return""!==R&&!er()(R)}):(0,eH.ko)(eA,eC,G).reduce(function(R,W){return R.indexOf(W)>=0||""===W||er()(W)?R:[].concat(generateCategoricalChart_toConsumableArray(R),[W])},[]);else if("number"===eh){var eI=(0,eH.ZI)(eS,J.filter(function(R){return R.props[en]===ew&&(ex||!R.props.hide)}),eg,et,el);eI&&(eC=eI)}ep&&("number"===eh||"auto"!==ev)&&(eE=(0,eH.gF)(eS,eg,"category"))}else eC=ep?es()(0,eT):ei&&ei[ew]&&ei[ew].hasStack&&"number"===eh?"expand"===ed?[0,1]:(0,eH.EB)(ei[ew].stackGroups,eo,ec):(0,eH.s6)(eS,J.filter(function(R){return R.props[en]===ew&&(ex||!R.props.hide)}),eh,el,!0);"number"===eh?(eC=detectReferenceElementsDomain(eu,eC,ew,et,eb),eA&&(eC=(0,eH.LG)(eA,eC,em))):"category"===eh&&eA&&eC.every(function(R){return eA.indexOf(R)>=0})&&(eC=eA)}return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},W),{},generateCategoricalChart_defineProperty({},ew,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},G.props),{},{axisType:et,domain:eC,categoricalDomain:eE,duplicateDomain:ek,originalDomain:null!==(eP=G.props.domain)&&void 0!==eP?eP:eO,isCategorical:ep,layout:el})))},{})},getAxisMapByItems=function(R,W){var G=W.graphicalItems,J=W.Axis,et=W.axisType,er=W.axisIdKey,en=W.stackGroups,ei=W.dataStartIndex,eo=W.dataEndIndex,ec=R.layout,eu=R.children,ed=getDisplayedData(R.data,{graphicalItems:G,dataStartIndex:ei,dataEndIndex:eo}),ep=ed.length,ef=(0,eH.NA)(ec,et),eh=-1;return G.reduce(function(R,W){var eg,em=W.props[er],ey=getDefaultDomainByAxisType("number");return R[em]?R:(eh++,eg=ef?es()(0,ep):en&&en[em]&&en[em].hasStack?detectReferenceElementsDomain(eu,eg=(0,eH.EB)(en[em].stackGroups,ei,eo),em,et):detectReferenceElementsDomain(eu,eg=(0,eH.LG)(ey,(0,eH.s6)(ed,G.filter(function(R){return R.props[er]===em&&!R.props.hide}),"number",ec),J.defaultProps.allowDataOverflow),em,et),generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},generateCategoricalChart_defineProperty({},em,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({axisType:et},J.defaultProps),{},{hide:!0,orientation:el()(e3,"".concat(et,".").concat(eh%2),null),domain:eg,originalDomain:ey,isCategorical:ef,layout:ec}))))},{})},getAxisMap=function(R,W){var G=W.axisType,J=void 0===G?"xAxis":G,et=W.AxisComp,er=W.graphicalItems,en=W.stackGroups,ei=W.dataStartIndex,eo=W.dataEndIndex,es=R.children,ec="".concat(J,"Id"),el=(0,eE.NN)(es,et),eu={};return el&&el.length?eu=getAxisMapByAxes(R,{axes:el,graphicalItems:er,axisType:J,axisIdKey:ec,stackGroups:en,dataStartIndex:ei,dataEndIndex:eo}):er&&er.length&&(eu=getAxisMapByItems(R,{Axis:et,graphicalItems:er,axisType:J,axisIdKey:ec,stackGroups:en,dataStartIndex:ei,dataEndIndex:eo})),eu},tooltipTicksGenerator=function(R){var W=(0,e_.Kt)(R),G=(0,eH.uY)(W,!1,!0);return{tooltipTicks:G,orderedTooltipTicks:ed()(G,function(R){return R.coordinate}),tooltipAxis:W,tooltipAxisBandSize:(0,eH.zT)(W,G)}},createDefaultState=function(R){var W=R.children,G=R.defaultShowTooltip,J=(0,eE.sP)(W,eV),et=0,er=0;return R.data&&0!==R.data.length&&(er=R.data.length-1),J&&J.props&&(J.props.startIndex>=0&&(et=J.props.startIndex),J.props.endIndex>=0&&(er=J.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:et,dataEndIndex:er,activeTooltipIndex:-1,isTooltipActive:!!G}},getAxisNameByLayout=function(R){return"horizontal"===R?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===R?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===R?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},calculateOffset=function(R,W){var G=R.props,J=R.graphicalItems,et=R.xAxisMap,er=void 0===et?{}:et,en=R.yAxisMap,ei=void 0===en?{}:en,eo=G.width,es=G.height,ec=G.children,eu=G.margin||{},ed=(0,eE.sP)(ec,eV),ep=(0,eE.sP)(ec,eC.D),ef=Object.keys(ei).reduce(function(R,W){var G=ei[W],J=G.orientation;return G.mirror||G.hide?R:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},generateCategoricalChart_defineProperty({},J,R[J]+G.width))},{left:eu.left||0,right:eu.right||0}),eh=Object.keys(er).reduce(function(R,W){var G=er[W],J=G.orientation;return G.mirror||G.hide?R:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},generateCategoricalChart_defineProperty({},J,el()(R,"".concat(J))+G.height))},{top:eu.top||0,bottom:eu.bottom||0}),eg=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},eh),ef),em=eg.bottom;ed&&(eg.bottom+=ed.props.height||eV.defaultProps.height),ep&&W&&(eg=(0,eH.By)(eg,J,G,W));var ey=eo-eg.left-eg.right,ev=es-eg.top-eg.bottom;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({brushBottom:em},eg),{},{width:Math.max(ey,0),height:Math.max(ev,0)})},generateCategoricalChart=function(R){var W,G=R.chartName,et=R.GraphicalChild,en=R.defaultTooltipEventType,eo=void 0===en?"axis":en,es=R.validateTooltipEventTypes,ec=void 0===es?["axis"]:es,eu=R.axisComponents,ed=R.legendContent,ep=R.formatAxisMap,eh=R.defaultProps,getFormatItems=function(R,W){var G=W.graphicalItems,J=W.stackGroups,et=W.offset,en=W.updateId,ei=W.dataStartIndex,eo=W.dataEndIndex,es=R.barSize,ec=R.layout,el=R.barGap,ed=R.barCategoryGap,ep=R.maxBarSize,ef=getAxisNameByLayout(ec),eh=ef.numericAxisName,eg=ef.cateAxisName,em=!!G&&!!G.length&&G.some(function(R){var W=(0,eE.Gf)(R&&R.type);return W&&W.indexOf("Bar")>=0})&&(0,eH.pt)({barSize:es,stackGroups:J}),ey=[];return G.forEach(function(G,es){var ef,ev=getDisplayedData(R.data,{graphicalItems:[G],dataStartIndex:ei,dataEndIndex:eo}),eb=G.props,e_=eb.dataKey,ex=eb.maxBarSize,ew=G.props["".concat(eh,"Id")],eS=G.props["".concat(eg,"Id")],eT=eu.reduce(function(R,J){var et,er=W["".concat(J.axisType,"Map")],en=G.props["".concat(J.axisType,"Id")];er&&er[en]||"zAxis"===J.axisType||function(R,W){if(!R)throw Error("Invariant failed")}(!1);var ei=er[en];return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},(generateCategoricalChart_defineProperty(et={},J.axisType,ei),generateCategoricalChart_defineProperty(et,"".concat(J.axisType,"Ticks"),(0,eH.uY)(ei)),et))},{}),eO=eT[eg],eP=eT["".concat(eg,"Ticks")],eC=J&&J[ew]&&J[ew].hasStack&&(0,eH.O3)(G,J[ew].stackGroups),ek=(0,eE.Gf)(G.type).indexOf("Bar")>=0,ej=(0,eH.zT)(eO,eP),eA=[];if(ek){var eD,eI,eM=er()(ex)?ep:ex,eL=null!==(eD=null!==(eI=(0,eH.zT)(eO,eP,!0))&&void 0!==eI?eI:eM)&&void 0!==eD?eD:0;eA=(0,eH.qz)({barGap:el,barCategoryGap:ed,bandSize:eL!==ej?eL:ej,sizeList:em[eS],maxBarSize:eM}),eL!==ej&&(eA=eA.map(function(R){return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},{position:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R.position),{},{offset:R.position.offset-eL/2})})}))}var eR=G&&G.type&&G.type.getComposedData;eR&&ey.push({props:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},eR(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},eT),{},{displayedData:ev,props:R,dataKey:e_,item:G,bandSize:ej,barPosition:eA,offset:et,stackedData:eC,layout:ec,dataStartIndex:ei,dataEndIndex:eo}))),{},(generateCategoricalChart_defineProperty(ef={key:G.key||"item-".concat(es)},eh,eT[eh]),generateCategoricalChart_defineProperty(ef,eg,eT[eg]),generateCategoricalChart_defineProperty(ef,"animationId",en),ef)),childIndex:(0,eE.$R)(G,R.children),item:G})}),ey},updateStateOfAxisMapsOffsetAndStackGroups=function(R,W){var J=R.props,er=R.dataStartIndex,en=R.dataEndIndex,ei=R.updateId;if(!(0,eE.TT)({props:J}))return null;var eo=J.children,es=J.layout,ec=J.stackOffset,el=J.data,ed=J.reverseStackOrder,ef=getAxisNameByLayout(es),eh=ef.numericAxisName,eg=ef.cateAxisName,em=(0,eE.NN)(eo,et),ey=(0,eH.wh)(el,em,"".concat(eh,"Id"),"".concat(eg,"Id"),ec,ed),ev=eu.reduce(function(R,W){var G="".concat(W.axisType,"Map");return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},generateCategoricalChart_defineProperty({},G,getAxisMap(J,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},W),{},{graphicalItems:em,stackGroups:W.axisType===eh&&ey,dataStartIndex:er,dataEndIndex:en}))))},{}),eb=calculateOffset(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},ev),{},{props:J,graphicalItems:em}),null==W?void 0:W.legendBBox);Object.keys(ev).forEach(function(R){ev[R]=ep(J,ev[R],eb,R.replace("Map",""),G)});var e_=tooltipTicksGenerator(ev["".concat(eg,"Map")]),ex=getFormatItems(J,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},ev),{},{dataStartIndex:er,dataEndIndex:en,updateId:ei,graphicalItems:em,stackGroups:ey,offset:eb}));return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({formattedGraphicalItems:ex,graphicalItems:em,offset:eb,stackGroups:ey},e_),ev)};return W=function(R){(function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&generateCategoricalChart_setPrototypeOf(R,W)})(CategoricalChartWrapper,R);var W,et,en,es=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=generateCategoricalChart_getPrototypeOf(CategoricalChartWrapper);if(W){var J=generateCategoricalChart_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===generateCategoricalChart_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return generateCategoricalChart_assertThisInitialized(R)}(this,R)});function CategoricalChartWrapper(R){var W,et,en;return function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,CategoricalChartWrapper),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en=es.call(this,R)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"accessibilityManager",new eJ),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleLegendBBoxUpdate",function(R){if(R){var W=en.state,G=W.dataStartIndex,J=W.dataEndIndex,et=W.updateId;en.setState(generateCategoricalChart_objectSpread({legendBBox:R},updateStateOfAxisMapsOffsetAndStackGroups({props:en.props,dataStartIndex:G,dataEndIndex:J,updateId:et},generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},en.state),{},{legendBBox:R}))))}}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleReceiveSyncEvent",function(R,W,G){en.props.syncId===R&&(G!==en.eventEmitterSymbol||"function"==typeof en.props.syncMethod)&&en.applySyncEvent(W)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleBrushChange",function(R){var W=R.startIndex,G=R.endIndex;if(W!==en.state.dataStartIndex||G!==en.state.dataEndIndex){var J=en.state.updateId;en.setState(function(){return generateCategoricalChart_objectSpread({dataStartIndex:W,dataEndIndex:G},updateStateOfAxisMapsOffsetAndStackGroups({props:en.props,dataStartIndex:W,dataEndIndex:G,updateId:J},en.state))}),en.triggerSyncEvent({dataStartIndex:W,dataEndIndex:G})}}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleMouseEnter",function(R){var W=en.getMouseInfo(R);if(W){var G=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},W),{},{isTooltipActive:!0});en.setState(G),en.triggerSyncEvent(G);var J=en.props.onMouseEnter;ei()(J)&&J(G,R)}}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"triggeredAfterMouseMove",function(R){var W=en.getMouseInfo(R),G=W?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},W),{},{isTooltipActive:!0}):{isTooltipActive:!1};en.setState(G),en.triggerSyncEvent(G);var J=en.props.onMouseMove;ei()(J)&&J(G,R)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleItemMouseEnter",function(R){en.setState(function(){return{isTooltipActive:!0,activeItem:R,activePayload:R.tooltipPayload,activeCoordinate:R.tooltipPosition||{x:R.cx,y:R.cy}}})}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleItemMouseLeave",function(){en.setState(function(){return{isTooltipActive:!1}})}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleMouseMove",function(R){R.persist(),en.throttleTriggeredAfterMouseMove(R)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleMouseLeave",function(R){var W={isTooltipActive:!1};en.setState(W),en.triggerSyncEvent(W);var G=en.props.onMouseLeave;ei()(G)&&G(W,R)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleOuterEvent",function(R){var W,G=(0,eE.Bh)(R),J=el()(en.props,"".concat(G));G&&ei()(J)&&J(null!==(W=/.*touch.*/i.test(G)?en.getMouseInfo(R.changedTouches[0]):en.getMouseInfo(R))&&void 0!==W?W:{},R)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleClick",function(R){var W=en.getMouseInfo(R);if(W){var G=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},W),{},{isTooltipActive:!0});en.setState(G),en.triggerSyncEvent(G);var J=en.props.onClick;ei()(J)&&J(G,R)}}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleMouseDown",function(R){var W=en.props.onMouseDown;ei()(W)&&W(en.getMouseInfo(R),R)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleMouseUp",function(R){var W=en.props.onMouseUp;ei()(W)&&W(en.getMouseInfo(R),R)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleTouchMove",function(R){null!=R.changedTouches&&R.changedTouches.length>0&&en.throttleTriggeredAfterMouseMove(R.changedTouches[0])}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleTouchStart",function(R){null!=R.changedTouches&&R.changedTouches.length>0&&en.handleMouseDown(R.changedTouches[0])}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"handleTouchEnd",function(R){null!=R.changedTouches&&R.changedTouches.length>0&&en.handleMouseUp(R.changedTouches[0])}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"triggerSyncEvent",function(R){void 0!==en.props.syncId&&eX.emit(eQ,en.props.syncId,R,en.eventEmitterSymbol)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"applySyncEvent",function(R){var W=en.props,G=W.layout,J=W.syncMethod,et=en.state.updateId,er=R.dataStartIndex,ei=R.dataEndIndex;if(void 0!==R.dataStartIndex||void 0!==R.dataEndIndex)en.setState(generateCategoricalChart_objectSpread({dataStartIndex:er,dataEndIndex:ei},updateStateOfAxisMapsOffsetAndStackGroups({props:en.props,dataStartIndex:er,dataEndIndex:ei,updateId:et},en.state)));else if(void 0!==R.activeTooltipIndex){var eo=R.chartX,es=R.chartY,ec=R.activeTooltipIndex,el=en.state,eu=el.offset,ed=el.tooltipTicks;if(!eu)return;if("function"==typeof J)ec=J(ed,R);else if("value"===J){ec=-1;for(var ep=0;ep<ed.length;ep++)if(ed[ep].value===R.activeLabel){ec=ep;break}}var ef=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},eu),{},{x:eu.left,y:eu.top}),eh=Math.min(eo,ef.x+ef.width),eg=Math.min(es,ef.y+ef.height),em=ed[ec]&&ed[ec].value,ey=getTooltipContent(en.state,en.props.data,ec),ev=ed[ec]?{x:"horizontal"===G?ed[ec].coordinate:eh,y:"horizontal"===G?eg:ed[ec].coordinate}:e4;en.setState(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},{activeLabel:em,activeCoordinate:ev,activePayload:ey,activeTooltipIndex:ec}))}else en.setState(R)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"verticalCoordinatesGenerator",function(R,W){var G=R.xAxis,J=R.width,et=R.height,er=R.offset;return(0,eH.Rf)(getTicks(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},eF.defaultProps),G),{},{ticks:(0,eH.uY)(G,!0),viewBox:{x:0,y:0,width:J,height:et}})),er.left,er.left+er.width,W)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"horizontalCoordinatesGenerator",function(R,W){var G=R.yAxis,J=R.width,et=R.height,er=R.offset;return(0,eH.Rf)(getTicks(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},eF.defaultProps),G),{},{ticks:(0,eH.uY)(G,!0),viewBox:{x:0,y:0,width:J,height:et}})),er.top,er.top+er.height,W)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"axesTicksGenerator",function(R){return(0,eH.uY)(R,!0)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderCursor",function(R){var W,et,er,ei=en.state,eo=ei.isTooltipActive,es=ei.activeCoordinate,ec=ei.activePayload,el=ei.offset,eu=ei.activeTooltipIndex,ed=ei.tooltipAxisBandSize,ep=en.getTooltipEventType(),ef=null!==(et=R.props.active)&&void 0!==et?et:eo;if(!R||!R.props.cursor||!ef||!es||"ScatterChart"!==G&&"axis"!==ep)return null;var eh=en.props.layout,eg=ek.H;if("ScatterChart"===G)er=es,eg=Cross;else if("BarChart"===G)W=ed/2,er={stroke:"none",fill:"#ccc",x:"horizontal"===eh?es.x-W:el.left+.5,y:"horizontal"===eh?el.top+.5:es.y-W,width:"horizontal"===eh?ed:el.width-1,height:"horizontal"===eh?el.height-1:ed},eg=eI.A;else if("radial"===eh){var em=getRadialCursorPoints(es),ey=em.cx,ev=em.cy,e_=em.radius;er={cx:ey,cy:ev,startAngle:em.startAngle,endAngle:em.endAngle,innerRadius:e_,outerRadius:e_},eg=eA.L}else er={points:function(R,W,G){var J,et,er,en;if("horizontal"===R)er=J=W.x,et=G.top,en=G.top+G.height;else if("vertical"===R)en=et=W.y,J=G.left,er=G.left+G.width;else if(null!=W.cx&&null!=W.cy){if("centric"!==R)return getRadialCursorPoints(W);var ei=W.cx,eo=W.cy,es=W.innerRadius,ec=W.outerRadius,el=W.angle,eu=(0,eb.op)(ei,eo,es,el),ed=(0,eb.op)(ei,eo,ec,el);J=eu.x,et=eu.y,er=ed.x,en=ed.y}return[{x:J,y:et},{x:er,y:en}]}(eh,es,el)},eg=ek.H;var ex=R.key||"_recharts-cursor",ew=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({stroke:"#ccc",pointerEvents:"none"},el),er),(0,eE.L6)(R.props.cursor)),{},{payload:ec,payloadIndex:eu,key:ex,className:"recharts-tooltip-cursor"});return(0,J.isValidElement)(R.props.cursor)?(0,J.cloneElement)(R.props.cursor,ew):(0,J.createElement)(eg,ew)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderPolarAxis",function(R,W,G){var et=el()(R,"type.axisType"),er=el()(en.state,"".concat(et,"Map")),ei=er&&er[R.props["".concat(et,"Id")]];return(0,J.cloneElement)(R,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},ei),{},{className:et,key:R.key||"".concat(W,"-").concat(G),ticks:(0,eH.uY)(ei,!0)}))}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderXAxis",function(R,W,G){var J=en.state.xAxisMap[R.props.xAxisId];return en.renderAxis(J,R,W,G)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderYAxis",function(R,W,G){var J=en.state.yAxisMap[R.props.yAxisId];return en.renderAxis(J,R,W,G)}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderGrid",function(R){var W=en.state,G=W.xAxisMap,et=W.yAxisMap,er=W.offset,ei=en.props,eo=ei.width,es=ei.height,ec=(0,e_.Kt)(G),el=eg()(et,function(R){return ey()(R.domain,Number.isFinite)})||(0,e_.Kt)(et),eu=R.props||{};return(0,J.cloneElement)(R,{key:R.key||"grid",x:(0,e_.hj)(eu.x)?eu.x:er.left,y:(0,e_.hj)(eu.y)?eu.y:er.top,width:(0,e_.hj)(eu.width)?eu.width:er.width,height:(0,e_.hj)(eu.height)?eu.height:er.height,xAxis:ec,yAxis:el,offset:er,chartWidth:eo,chartHeight:es,verticalCoordinatesGenerator:eu.verticalCoordinatesGenerator||en.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:eu.horizontalCoordinatesGenerator||en.horizontalCoordinatesGenerator})}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderPolarGrid",function(R){var W=R.props,G=W.radialLines,et=W.polarAngles,er=W.polarRadius,ei=en.state,eo=ei.radiusAxisMap,es=ei.angleAxisMap,ec=(0,e_.Kt)(eo),el=(0,e_.Kt)(es),eu=el.cx,ed=el.cy,ep=el.innerRadius,ef=el.outerRadius;return(0,J.cloneElement)(R,{polarAngles:Array.isArray(et)?et:(0,eH.uY)(el,!0).map(function(R){return R.coordinate}),polarRadius:Array.isArray(er)?er:(0,eH.uY)(ec,!0).map(function(R){return R.coordinate}),cx:eu,cy:ed,innerRadius:ep,outerRadius:ef,key:R.key||"polar-grid",radialLines:G})}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderLegend",function(){var R=en.state.formattedGraphicalItems,W=en.props,G=W.children,et=W.width,er=W.height,ei=en.props.margin||{},eo=et-(ei.left||0)-(ei.right||0),es=(0,eW.z)({children:G,formattedGraphicalItems:R,legendWidth:eo,legendContent:ed});if(!es)return null;var ec=es.item,el=generateCategoricalChart_objectWithoutProperties(es,e1);return(0,J.cloneElement)(ec,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},el),{},{chartWidth:et,chartHeight:er,margin:ei,onBBoxUpdate:en.handleLegendBBoxUpdate}))}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderTooltip",function(){var R,W=en.props.children,G=(0,eE.sP)(W,eP.u);if(!G)return null;var et=en.state,er=et.isTooltipActive,ei=et.activeCoordinate,eo=et.activePayload,es=et.activeLabel,ec=et.offset,el=null!==(R=G.props.active)&&void 0!==R?R:er;return(0,J.cloneElement)(G,{viewBox:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},ec),{},{x:ec.left,y:ec.top}),active:el,label:es,payload:el?eo:[],coordinate:ei})}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderBrush",function(R){var W=en.props,G=W.margin,et=W.data,er=en.state,ei=er.offset,eo=er.dataStartIndex,es=er.dataEndIndex,ec=er.updateId;return(0,J.cloneElement)(R,{key:R.key||"_recharts-brush",onChange:(0,eH.DO)(en.handleBrushChange,R.props.onChange),data:et,x:(0,e_.hj)(R.props.x)?R.props.x:ei.left,y:(0,e_.hj)(R.props.y)?R.props.y:ei.top+ei.height+ei.brushBottom-(G.bottom||0),width:(0,e_.hj)(R.props.width)?R.props.width:ei.width,startIndex:eo,endIndex:es,updateId:"brush-".concat(ec)})}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderReferenceElement",function(R,W,G){if(!R)return null;var et=generateCategoricalChart_assertThisInitialized(en).clipPathId,er=en.state,ei=er.xAxisMap,eo=er.yAxisMap,es=er.offset,ec=R.props,el=ec.xAxisId,eu=ec.yAxisId;return(0,J.cloneElement)(R,{key:R.key||"".concat(W,"-").concat(G),xAxis:ei[el],yAxis:eo[eu],viewBox:{x:es.left,y:es.top,width:es.width,height:es.height},clipPathId:et})}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderActivePoints",function(R){var W=R.item,G=R.activePoint,J=R.basePoint,et=R.childIndex,er=R.isRange,en=[],ei=W.props.key,eo=W.item.props,es=eo.activeDot,ec=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({index:et,dataKey:eo.dataKey,cx:G.x,cy:G.y,r:4,fill:(0,eH.fk)(W.item),strokeWidth:2,stroke:"#fff",payload:G.payload,value:G.value,key:"".concat(ei,"-activePoint-").concat(et)},(0,eE.L6)(es)),(0,eN.Ym)(es));return en.push(CategoricalChartWrapper.renderActiveDot(es,ec)),J?en.push(CategoricalChartWrapper.renderActiveDot(es,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},ec),{},{cx:J.x,cy:J.y,key:"".concat(ei,"-basePoint-").concat(et)}))):er&&en.push(null),en}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderGraphicChild",function(R,W,G){var et=en.filterFormatItem(R,W,G);if(!et)return null;var ei=en.getTooltipEventType(),eo=en.state,es=eo.isTooltipActive,ec=eo.tooltipAxis,el=eo.activeTooltipIndex,eu=eo.activeLabel,ed=en.props.children,ep=(0,eE.sP)(ed,eP.u),ef=et.props,eh=ef.points,eg=ef.isRange,em=ef.baseLine,ey=et.item.props,ev=ey.activeDot,eb=ey.hide,ex=ey.activeBar,ew=ey.activeShape,eS={};"axis"!==ei&&ep&&"click"===ep.props.trigger?eS={onClick:(0,eH.DO)(en.handleItemMouseEnter,R.props.onClick)}:"axis"!==ei&&(eS={onMouseLeave:(0,eH.DO)(en.handleItemMouseLeave,R.props.onMouseLeave),onMouseEnter:(0,eH.DO)(en.handleItemMouseEnter,R.props.onMouseEnter)});var eT=(0,J.cloneElement)(R,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},et.props),eS));if(!eb&&es&&ep&&(ev||ex||ew)){if(el>=0){if(ec.dataKey&&!ec.allowDuplicatedCategory){var eO="function"==typeof ec.dataKey?function(R){return"function"==typeof ec.dataKey?ec.dataKey(R.payload):null}:"payload.".concat(ec.dataKey.toString());ek=(0,e_.Ap)(eh,eO,eu),ej=eg&&em&&(0,e_.Ap)(em,eO,eu)}else ek=null==eh?void 0:eh[el],ej=eg&&em&&em[el];if(ew||ex){var eC=void 0!==R.props.activeIndex?R.props.activeIndex:el;return[(0,J.cloneElement)(R,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},et.props),eS),{},{activeIndex:eC})),null,null]}if(!er()(ek))return[eT].concat(generateCategoricalChart_toConsumableArray(en.renderActivePoints({item:et,activePoint:ek,basePoint:ej,childIndex:el,isRange:eg})))}else{var ek,ej,eA,eD=(null!==(eA=en.getItemByXY(en.state.activeCoordinate))&&void 0!==eA?eA:{graphicalItem:eT}).graphicalItem,eI=eD.item,eM=void 0===eI?R:eI,eL=eD.childIndex,eR=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},et.props),eS),{},{activeIndex:eL});return[(0,J.cloneElement)(eM,eR),null,null]}}return eg?[eT,null,null]:[eT,null]}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderCustomized",function(R,W,G){return(0,J.cloneElement)(R,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({key:"recharts-customized-".concat(G)},en.props),en.state))}),generateCategoricalChart_defineProperty(generateCategoricalChart_assertThisInitialized(en),"renderMap",{CartesianGrid:{handler:en.renderGrid,once:!0},ReferenceArea:{handler:en.renderReferenceElement},ReferenceLine:{handler:en.renderReferenceElement},ReferenceDot:{handler:en.renderReferenceElement},XAxis:{handler:en.renderXAxis},YAxis:{handler:en.renderYAxis},Brush:{handler:en.renderBrush,once:!0},Bar:{handler:en.renderGraphicChild},Line:{handler:en.renderGraphicChild},Area:{handler:en.renderGraphicChild},Radar:{handler:en.renderGraphicChild},RadialBar:{handler:en.renderGraphicChild},Scatter:{handler:en.renderGraphicChild},Pie:{handler:en.renderGraphicChild},Funnel:{handler:en.renderGraphicChild},Tooltip:{handler:en.renderCursor,once:!0},PolarGrid:{handler:en.renderPolarGrid,once:!0},PolarAngleAxis:{handler:en.renderPolarAxis},PolarRadiusAxis:{handler:en.renderPolarAxis},Customized:{handler:en.renderCustomized}}),en.clipPathId="".concat(null!==(W=R.id)&&void 0!==W?W:(0,e_.EL)("recharts"),"-clip"),en.throttleTriggeredAfterMouseMove=ef()(en.triggeredAfterMouseMove,null!==(et=R.throttleDelay)&&void 0!==et?et:1e3/60),en.state={},en}return et=[{key:"componentDidMount",value:function(){var R,W;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(R=this.props.margin.left)&&void 0!==R?R:0,top:null!==(W=this.props.margin.top)&&void 0!==W?W:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(R,W){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==W.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==R.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==R.margin){var G,J;this.accessibilityManager.setDetails({offset:{left:null!==(G=this.props.margin.left)&&void 0!==G?G:0,top:null!==(J=this.props.margin.top)&&void 0!==J?J:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var R=(0,eE.sP)(this.props.children,eP.u);if(R&&"boolean"==typeof R.props.shared){var W=R.props.shared?"axis":"item";return ec.indexOf(W)>=0?W:eo}return eo}},{key:"getMouseInfo",value:function(R){if(!this.container)return null;var W=this.container,G=W.getBoundingClientRect(),J=(0,ex.os)(G),et={chartX:Math.round(R.pageX-J.left),chartY:Math.round(R.pageY-J.top)},er=G.width/W.offsetWidth||1,en=this.inRange(et.chartX,et.chartY,er);if(!en)return null;var ei=this.state,eo=ei.xAxisMap,es=ei.yAxisMap;if("axis"!==this.getTooltipEventType()&&eo&&es){var ec=(0,e_.Kt)(eo).scale,el=(0,e_.Kt)(es).scale,eu=ec&&ec.invert?ec.invert(et.chartX):null,ed=el&&el.invert?el.invert(et.chartY):null;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},et),{},{xValue:eu,yValue:ed})}var ep=getTooltipData(this.state,this.props.data,this.props.layout,en);return ep?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},et),ep):null}},{key:"inRange",value:function(R,W){var G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,J=this.props.layout,et=R/G,er=W/G;if("horizontal"===J||"vertical"===J){var en=this.state.offset;return et>=en.left&&et<=en.left+en.width&&er>=en.top&&er<=en.top+en.height?{x:et,y:er}:null}var ei=this.state,eo=ei.angleAxisMap,es=ei.radiusAxisMap;if(eo&&es){var ec=(0,e_.Kt)(eo);return(0,eb.z3)({x:et,y:er},ec)}return null}},{key:"parseEventsOfWrapper",value:function(){var R=this.props.children,W=this.getTooltipEventType(),G=(0,eE.sP)(R,eP.u),J={};return G&&"axis"===W&&(J="click"===G.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},(0,eN.Ym)(this.props,this.handleOuterEvent)),J)}},{key:"addListener",value:function(){eX.on(eQ,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){eX.removeListener(eQ,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(R,W,G){for(var J=this.state.formattedGraphicalItems,et=0,er=J.length;et<er;et++){var en=J[et];if(en.item===R||en.props.key===R.key||W===(0,eE.Gf)(en.item.type)&&G===en.childIndex)return en}return null}},{key:"renderAxis",value:function(R,W,G,et){var er=this.props,en=er.width,ei=er.height;return J.createElement(eF,generateCategoricalChart_extends({},R,{className:(0,ev.Z)("recharts-".concat(R.axisType," ").concat(R.axisType),R.className),key:W.key||"".concat(G,"-").concat(et),viewBox:{x:0,y:0,width:en,height:ei},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var R=this.clipPathId,W=this.state.offset,G=W.left,et=W.top,er=W.height,en=W.width;return J.createElement("defs",null,J.createElement("clipPath",{id:R},J.createElement("rect",{x:G,y:et,height:er,width:en})))}},{key:"getXScales",value:function(){var R=this.state.xAxisMap;return R?Object.entries(R).reduce(function(R,W){var G=generateCategoricalChart_slicedToArray(W,2),J=G[0],et=G[1];return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},generateCategoricalChart_defineProperty({},J,et.scale))},{}):null}},{key:"getYScales",value:function(){var R=this.state.yAxisMap;return R?Object.entries(R).reduce(function(R,W){var G=generateCategoricalChart_slicedToArray(W,2),J=G[0],et=G[1];return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},R),{},generateCategoricalChart_defineProperty({},J,et.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(R){var W;return null===(W=this.state.xAxisMap)||void 0===W||null===(W=W[R])||void 0===W?void 0:W.scale}},{key:"getYScaleByAxisId",value:function(R){var W;return null===(W=this.state.yAxisMap)||void 0===W||null===(W=W[R])||void 0===W?void 0:W.scale}},{key:"getItemByXY",value:function(R){var W=this.state,G=W.formattedGraphicalItems,J=W.activeItem;if(G&&G.length)for(var et=0,er=G.length;et<er;et++){var en=G[et],ei=en.props,eo=en.item,es=(0,eE.Gf)(eo.type);if("Bar"===es){var ec=(ei.data||[]).find(function(W){return(0,eI.X)(R,W)});if(ec)return{graphicalItem:en,payload:ec}}else if("RadialBar"===es){var el=(ei.data||[]).find(function(W){return(0,eb.z3)(R,W)});if(el)return{graphicalItem:en,payload:el}}else if((0,e0.lT)(en,J)||(0,e0.V$)(en,J)||(0,e0.w7)(en,J)){var eu=(0,e0.a3)({graphicalItem:en,activeTooltipItem:J,itemData:eo.props.data}),ed=void 0===eo.props.activeIndex?eu:eo.props.activeIndex;return{graphicalItem:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},en),{},{childIndex:ed}),payload:(0,e0.w7)(en,J)?eo.props.data[eu]:en.props.data[eu]}}}return null}},{key:"render",value:function(){var R,W,G=this;if(!(0,eE.TT)(this))return null;var et=this.props,er=et.children,en=et.className,ei=et.width,eo=et.height,es=et.style,ec=et.compact,el=et.title,eu=et.desc,ed=generateCategoricalChart_objectWithoutProperties(et,e2),ep=(0,eE.L6)(ed);if(ec)return J.createElement(eT.T,generateCategoricalChart_extends({},ep,{width:ei,height:eo,title:el,desc:eu}),this.renderClipPath(),(0,eE.eu)(er,this.renderMap));this.props.accessibilityLayer&&(ep.tabIndex=null!==(R=this.props.tabIndex)&&void 0!==R?R:0,ep.role=null!==(W=this.props.role)&&void 0!==W?W:"img",ep.onKeyDown=function(R){G.accessibilityManager.keyboardEvent(R)},ep.onFocus=function(){G.accessibilityManager.focus()});var ef=this.parseEventsOfWrapper();return J.createElement("div",generateCategoricalChart_extends({className:(0,ev.Z)("recharts-wrapper",en),style:generateCategoricalChart_objectSpread({position:"relative",cursor:"default",width:ei,height:eo},es)},ef,{ref:function(R){G.container=R},role:"region"}),J.createElement(eT.T,generateCategoricalChart_extends({},ep,{width:ei,height:eo,title:el,desc:eu,style:e5}),this.renderClipPath(),(0,eE.eu)(er,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],generateCategoricalChart_defineProperties(CategoricalChartWrapper.prototype,et),en&&generateCategoricalChart_defineProperties(CategoricalChartWrapper,en),Object.defineProperty(CategoricalChartWrapper,"prototype",{writable:!1}),CategoricalChartWrapper}(J.Component),generateCategoricalChart_defineProperty(W,"displayName",G),generateCategoricalChart_defineProperty(W,"defaultProps",generateCategoricalChart_objectSpread({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},eh)),generateCategoricalChart_defineProperty(W,"getDerivedStateFromProps",function(R,W){var G=R.dataKey,J=R.data,et=R.children,en=R.width,ei=R.height,eo=R.layout,es=R.stackOffset,ec=R.margin;if(void 0===W.updateId){var el=createDefaultState(R);return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},el),{},{updateId:0},updateStateOfAxisMapsOffsetAndStackGroups(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({props:R},el),{},{updateId:0}),W)),{},{prevDataKey:G,prevData:J,prevWidth:en,prevHeight:ei,prevLayout:eo,prevStackOffset:es,prevMargin:ec,prevChildren:et})}if(G!==W.prevDataKey||J!==W.prevData||en!==W.prevWidth||ei!==W.prevHeight||eo!==W.prevLayout||es!==W.prevStackOffset||!(0,eM.w)(ec,W.prevMargin)){var eu=createDefaultState(R),ed={chartX:W.chartX,chartY:W.chartY,isTooltipActive:W.isTooltipActive},ep=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},getTooltipData(W,J,eo)),{},{updateId:W.updateId+1}),ef=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},eu),ed),ep);return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},ef),updateStateOfAxisMapsOffsetAndStackGroups(generateCategoricalChart_objectSpread({props:R},ef),W)),{},{prevDataKey:G,prevData:J,prevWidth:en,prevHeight:ei,prevLayout:eo,prevStackOffset:es,prevMargin:ec,prevChildren:et})}if(!(0,eE.rL)(et,W.prevChildren)){var eh=er()(J)?W.updateId+1:W.updateId;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({updateId:eh},updateStateOfAxisMapsOffsetAndStackGroups(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({props:R},W),{},{updateId:eh}),W)),{},{prevChildren:et})}return null}),generateCategoricalChart_defineProperty(W,"renderActiveDot",function(R,W){var G;return G=(0,J.isValidElement)(R)?(0,J.cloneElement)(R,W):ei()(R)?R(W):J.createElement(eD.o,W),J.createElement(eO.m,{className:"recharts-active-dot",key:W.key},G)}),W}},43815:function(R,W,G){"use strict";G.d(W,{b:function(){return Cell}});var Cell=function(R){return null};Cell.displayName="Cell"},25048:function(R,W,G){"use strict";G.d(W,{_:function(){return Label}});var J=G(67294),et=G(14293),er=G.n(et),en=G(23560),ei=G.n(en),eo=G(13218),es=G.n(eo),ec=G(90512),el=G(84642),eu=G(52017),ed=G(69055),ep=G(40048);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var ef=["offset"];function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}var getLabel=function(R){var W=R.value,G=R.formatter,J=er()(R.children)?W:R.children;return ei()(G)?G(J):J},renderRadialLabel=function(R,W,G){var et,en,ei=R.position,eo=R.viewBox,es=R.offset,el=R.className,eu=eo.cx,ef=eo.cy,eh=eo.innerRadius,eg=eo.outerRadius,em=eo.startAngle,ey=eo.endAngle,ev=eo.clockWise,eb=(eh+eg)/2,e_=(0,ed.uY)(ey-em)*Math.min(Math.abs(ey-em),360),ex=e_>=0?1:-1;"insideStart"===ei?(et=em+ex*es,en=ev):"insideEnd"===ei?(et=ey-ex*es,en=!ev):"end"===ei&&(et=ey+ex*es,en=ev),en=e_<=0?en:!en;var ew=(0,ep.op)(eu,ef,eb,et),eS=(0,ep.op)(eu,ef,eb,et+(en?1:-1)*359),eT="M".concat(ew.x,",").concat(ew.y,"\n    A").concat(eb,",").concat(eb,",0,1,").concat(en?0:1,",\n    ").concat(eS.x,",").concat(eS.y),eO=er()(R.id)?(0,ed.EL)("recharts-radial-line-"):R.id;return J.createElement("text",_extends({},G,{dominantBaseline:"central",className:(0,ec.Z)("recharts-radial-bar-label",el)}),J.createElement("defs",null,J.createElement("path",{id:eO,d:eT})),J.createElement("textPath",{xlinkHref:"#".concat(eO)},W))},getAttrsOfPolarLabel=function(R){var W=R.viewBox,G=R.offset,J=R.position,et=W.cx,er=W.cy,en=W.innerRadius,ei=W.outerRadius,eo=(W.startAngle+W.endAngle)/2;if("outside"===J){var es=(0,ep.op)(et,er,ei+G,eo),ec=es.x;return{x:ec,y:es.y,textAnchor:ec>=et?"start":"end",verticalAnchor:"middle"}}if("center"===J)return{x:et,y:er,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===J)return{x:et,y:er,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===J)return{x:et,y:er,textAnchor:"middle",verticalAnchor:"end"};var el=(en+ei)/2,eu=(0,ep.op)(et,er,el,eo);return{x:eu.x,y:eu.y,textAnchor:"middle",verticalAnchor:"middle"}},getAttrsOfCartesianLabel=function(R){var W=R.viewBox,G=R.parentViewBox,J=R.offset,et=R.position,er=W.x,en=W.y,ei=W.width,eo=W.height,ec=eo>=0?1:-1,el=ec*J,eu=ec>0?"end":"start",ep=ec>0?"start":"end",ef=ei>=0?1:-1,eh=ef*J,eg=ef>0?"end":"start",em=ef>0?"start":"end";if("top"===et)return _objectSpread(_objectSpread({},{x:er+ei/2,y:en-ec*J,textAnchor:"middle",verticalAnchor:eu}),G?{height:Math.max(en-G.y,0),width:ei}:{});if("bottom"===et)return _objectSpread(_objectSpread({},{x:er+ei/2,y:en+eo+el,textAnchor:"middle",verticalAnchor:ep}),G?{height:Math.max(G.y+G.height-(en+eo),0),width:ei}:{});if("left"===et){var ey={x:er-eh,y:en+eo/2,textAnchor:eg,verticalAnchor:"middle"};return _objectSpread(_objectSpread({},ey),G?{width:Math.max(ey.x-G.x,0),height:eo}:{})}if("right"===et){var ev={x:er+ei+eh,y:en+eo/2,textAnchor:em,verticalAnchor:"middle"};return _objectSpread(_objectSpread({},ev),G?{width:Math.max(G.x+G.width-ev.x,0),height:eo}:{})}var eb=G?{width:ei,height:eo}:{};return"insideLeft"===et?_objectSpread({x:er+eh,y:en+eo/2,textAnchor:em,verticalAnchor:"middle"},eb):"insideRight"===et?_objectSpread({x:er+ei-eh,y:en+eo/2,textAnchor:eg,verticalAnchor:"middle"},eb):"insideTop"===et?_objectSpread({x:er+ei/2,y:en+el,textAnchor:"middle",verticalAnchor:ep},eb):"insideBottom"===et?_objectSpread({x:er+ei/2,y:en+eo-el,textAnchor:"middle",verticalAnchor:eu},eb):"insideTopLeft"===et?_objectSpread({x:er+eh,y:en+el,textAnchor:em,verticalAnchor:ep},eb):"insideTopRight"===et?_objectSpread({x:er+ei-eh,y:en+el,textAnchor:eg,verticalAnchor:ep},eb):"insideBottomLeft"===et?_objectSpread({x:er+eh,y:en+eo-el,textAnchor:em,verticalAnchor:eu},eb):"insideBottomRight"===et?_objectSpread({x:er+ei-eh,y:en+eo-el,textAnchor:eg,verticalAnchor:eu},eb):es()(et)&&((0,ed.hj)(et.x)||(0,ed.hU)(et.x))&&((0,ed.hj)(et.y)||(0,ed.hU)(et.y))?_objectSpread({x:er+(0,ed.h1)(et.x,ei),y:en+(0,ed.h1)(et.y,eo),textAnchor:"end",verticalAnchor:"end"},eb):_objectSpread({x:er+ei/2,y:en+eo/2,textAnchor:"middle",verticalAnchor:"middle"},eb)};function Label(R){var W,G=R.offset,et=_objectSpread({offset:void 0===G?5:G},function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,ef)),en=et.viewBox,eo=et.position,es=et.value,ep=et.children,eh=et.content,eg=et.className,em=void 0===eg?"":eg,ey=et.textBreakAll;if(!en||er()(es)&&er()(ep)&&!(0,J.isValidElement)(eh)&&!ei()(eh))return null;if((0,J.isValidElement)(eh))return(0,J.cloneElement)(eh,et);if(ei()(eh)){if(W=(0,J.createElement)(eh,et),(0,J.isValidElement)(W))return W}else W=getLabel(et);var ev="cx"in en&&(0,ed.hj)(en.cx),eb=(0,eu.L6)(et,!0);if(ev&&("insideStart"===eo||"insideEnd"===eo||"end"===eo))return renderRadialLabel(et,W,eb);var e_=ev?getAttrsOfPolarLabel(et):getAttrsOfCartesianLabel(et);return J.createElement(el.x,_extends({className:(0,ec.Z)("recharts-label",em)},eb,e_,{breakAll:ey}),W)}Label.displayName="Label";var parseViewBox=function(R){var W=R.cx,G=R.cy,J=R.angle,et=R.startAngle,er=R.endAngle,en=R.r,ei=R.radius,eo=R.innerRadius,es=R.outerRadius,ec=R.x,el=R.y,eu=R.top,ep=R.left,ef=R.width,eh=R.height,eg=R.clockWise,em=R.labelViewBox;if(em)return em;if((0,ed.hj)(ef)&&(0,ed.hj)(eh)){if((0,ed.hj)(ec)&&(0,ed.hj)(el))return{x:ec,y:el,width:ef,height:eh};if((0,ed.hj)(eu)&&(0,ed.hj)(ep))return{x:eu,y:ep,width:ef,height:eh}}return(0,ed.hj)(ec)&&(0,ed.hj)(el)?{x:ec,y:el,width:0,height:0}:(0,ed.hj)(W)&&(0,ed.hj)(G)?{cx:W,cy:G,startAngle:et||J||0,endAngle:er||J||0,innerRadius:eo||0,outerRadius:es||ei||en||0,clockWise:eg}:R.viewBox?R.viewBox:{}};Label.parseViewBox=parseViewBox,Label.renderCallByParent=function(R,W){var G,et,er=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!R||!R.children&&er&&!R.label)return null;var en=R.children,eo=parseViewBox(R),ec=(0,eu.NN)(en,Label).map(function(R,G){return(0,J.cloneElement)(R,{viewBox:W||eo,key:"label-".concat(G)})});return er?[(G=R.label,et=W||eo,G?!0===G?J.createElement(Label,{key:"label-implicit",viewBox:et}):(0,ed.P2)(G)?J.createElement(Label,{key:"label-implicit",viewBox:et,value:G}):(0,J.isValidElement)(G)?G.type===Label?(0,J.cloneElement)(G,{key:"label-implicit",viewBox:et}):J.createElement(Label,{key:"label-implicit",content:G,viewBox:et}):ei()(G)?J.createElement(Label,{key:"label-implicit",content:G,viewBox:et}):es()(G)?J.createElement(Label,_extends({viewBox:et},G,{key:"label-implicit"})):null:null)].concat(function(R){if(Array.isArray(R))return _arrayLikeToArray(R)}(ec)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(ec)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(ec)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):ec}},2763:function(R,W,G){"use strict";G.d(W,{e:function(){return LabelList}});var J=G(67294),et=G(14293),er=G.n(et),en=G(13218),ei=G.n(en),eo=G(23560),es=G.n(eo),ec=G(10928),el=G.n(ec),eu=G(25048),ed=G(48710),ep=G(52017),ef=G(48722);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var eh=["valueAccessor"],eg=["data","dataKey","clockWise","id","textBreakAll"];function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _objectWithoutProperties(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}var defaultAccessor=function(R){return Array.isArray(R.value)?el()(R.value):R.value};function LabelList(R){var W=R.valueAccessor,G=void 0===W?defaultAccessor:W,et=_objectWithoutProperties(R,eh),en=et.data,ei=et.dataKey,eo=et.clockWise,es=et.id,ec=et.textBreakAll,el=_objectWithoutProperties(et,eg);return en&&en.length?J.createElement(ed.m,{className:"recharts-label-list"},en.map(function(R,W){var et=er()(ei)?G(R,W):(0,ef.F$)(R&&R.payload,ei),en=er()(es)?{}:{id:"".concat(es,"-").concat(W)};return J.createElement(eu._,_extends({},(0,ep.L6)(R,!0),el,en,{parentViewBox:R.parentViewBox,value:et,textBreakAll:ec,viewBox:eu._.parseViewBox(er()(eo)?R:_objectSpread(_objectSpread({},R),{},{clockWise:eo})),key:"label-".concat(W),index:W}))})):null}LabelList.displayName="LabelList",LabelList.renderCallByParent=function(R,W){var G,et=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!R||!R.children&&et&&!R.label)return null;var er=R.children,en=(0,ep.NN)(er,LabelList).map(function(R,G){return(0,J.cloneElement)(R,{data:W,key:"labelList-".concat(G)})});return et?[(G=R.label)?!0===G?J.createElement(LabelList,{key:"labelList-implicit",data:W}):J.isValidElement(G)||es()(G)?J.createElement(LabelList,{key:"labelList-implicit",data:W,content:G}):ei()(G)?J.createElement(LabelList,_extends({data:W},G,{key:"labelList-implicit"})):null:null].concat(function(R){if(Array.isArray(R))return _arrayLikeToArray(R)}(en)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(en)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(en)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):en}},33558:function(R,W,G){"use strict";G.d(W,{D:function(){return ef}});var J=G(67294),et=G(23560),er=G.n(et),en=G(90512),ei=G(6213),eo=G(20514),es=G(21138),ec=G(79896);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,_toPropertyKey(J.key),J)}}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function _defineProperty(R,W,G){return(W=_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function _toPropertyKey(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}var el=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(DefaultLegendContent,R);var W,G,et,el=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(DefaultLegendContent);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return function(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(R)}(this,R)});function DefaultLegendContent(){return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,DefaultLegendContent),el.apply(this,arguments)}return G=[{key:"renderIcon",value:function(R){var W=this.props.inactiveColor,G=32/6,et=32/3,er=R.inactive?W:R.color;if("plainline"===R.type)return J.createElement("line",{strokeWidth:4,fill:"none",stroke:er,strokeDasharray:R.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===R.type)return J.createElement("path",{strokeWidth:4,fill:"none",stroke:er,d:"M0,".concat(16,"h").concat(et,"\n            A").concat(G,",").concat(G,",0,1,1,").concat(2*et,",").concat(16,"\n            H").concat(32,"M").concat(2*et,",").concat(16,"\n            A").concat(G,",").concat(G,",0,1,1,").concat(et,",").concat(16),className:"recharts-legend-icon"});if("rect"===R.type)return J.createElement("path",{stroke:"none",fill:er,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(J.isValidElement(R.legendIcon)){var en=function(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}({},R);return delete en.legendIcon,J.cloneElement(R.legendIcon,en)}return J.createElement(es.v,{fill:er,cx:16,cy:16,size:32,sizeType:"diameter",type:R.type})}},{key:"renderItems",value:function(){var R=this,W=this.props,G=W.payload,et=W.iconSize,es=W.layout,el=W.formatter,eu=W.inactiveColor,ed={x:0,y:0,width:32,height:32},ep={display:"horizontal"===es?"inline-block":"block",marginRight:10},ef={display:"inline-block",verticalAlign:"middle",marginRight:4};return G.map(function(W,G){var es,eh=W.formatter||el,eg=(0,en.Z)((_defineProperty(es={"recharts-legend-item":!0},"legend-item-".concat(G),!0),_defineProperty(es,"inactive",W.inactive),es));if("none"===W.type)return null;var em=er()(W.value)?null:W.value;(0,ei.Z)(!er()(W.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var ey=W.inactive?eu:W.color;return J.createElement("li",_extends({className:eg,style:ep,key:"legend-item-".concat(G)},(0,ec.bw)(R.props,W,G)),J.createElement(eo.T,{width:et,height:et,viewBox:ed,style:ef},R.renderIcon(W)),J.createElement("span",{className:"recharts-legend-item-text",style:{color:ey}},eh?eh(em,W,G):em))})}},{key:"render",value:function(){var R=this.props,W=R.payload,G=R.layout,et=R.align;return W&&W.length?J.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===G?et:"left"}},this.renderItems()):null}}],_defineProperties(DefaultLegendContent.prototype,G),et&&_defineProperties(DefaultLegendContent,et),Object.defineProperty(DefaultLegendContent,"prototype",{writable:!1}),DefaultLegendContent}(J.PureComponent);_defineProperty(el,"displayName","Legend"),_defineProperty(el,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var eu=G(69055),ed=G(78817);function Legend_typeof(R){return(Legend_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var ep=["ref"];function Legend_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Legend_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Legend_ownKeys(Object(G),!0).forEach(function(W){Legend_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Legend_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function Legend_defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,Legend_toPropertyKey(J.key),J)}}function Legend_setPrototypeOf(R,W){return(Legend_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function Legend_assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function Legend_getPrototypeOf(R){return(Legend_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function Legend_defineProperty(R,W,G){return(W=Legend_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function Legend_toPropertyKey(R){var W=function(R,W){if("object"!==Legend_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==Legend_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===Legend_typeof(W)?W:String(W)}function defaultUniqBy(R){return R.value}var ef=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&Legend_setPrototypeOf(R,W)}(Legend,R);var W,G,et,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=Legend_getPrototypeOf(Legend);if(W){var J=Legend_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===Legend_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return Legend_assertThisInitialized(R)}(this,R)});function Legend(){var R;!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,Legend);for(var W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];return Legend_defineProperty(Legend_assertThisInitialized(R=er.call.apply(er,[this].concat(G))),"lastBoundingBox",{width:-1,height:-1}),R}return G=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var R=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var W=this.wrapperNode.getBoundingClientRect();(Math.abs(W.width-this.lastBoundingBox.width)>1||Math.abs(W.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=W.width,this.lastBoundingBox.height=W.height,R&&R(W))}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,R&&R(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Legend_objectSpread({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(R){var W,G,J=this.props,et=J.layout,er=J.align,en=J.verticalAlign,ei=J.margin,eo=J.chartWidth,es=J.chartHeight;return R&&(void 0!==R.left&&null!==R.left||void 0!==R.right&&null!==R.right)||(W="center"===er&&"vertical"===et?{left:((eo||0)-this.getBBoxSnapshot().width)/2}:"right"===er?{right:ei&&ei.right||0}:{left:ei&&ei.left||0}),R&&(void 0!==R.top&&null!==R.top||void 0!==R.bottom&&null!==R.bottom)||(G="middle"===en?{top:((es||0)-this.getBBoxSnapshot().height)/2}:"bottom"===en?{bottom:ei&&ei.bottom||0}:{top:ei&&ei.top||0}),Legend_objectSpread(Legend_objectSpread({},W),G)}},{key:"render",value:function(){var R=this,W=this.props,G=W.content,et=W.width,er=W.height,en=W.wrapperStyle,ei=W.payloadUniqBy,eo=W.payload,es=Legend_objectSpread(Legend_objectSpread({position:"absolute",width:et||"auto",height:er||"auto"},this.getDefaultPosition(en)),en);return J.createElement("div",{className:"recharts-legend-wrapper",style:es,ref:function(W){R.wrapperNode=W}},function(R,W){if(J.isValidElement(R))return J.cloneElement(R,W);if("function"==typeof R)return J.createElement(R,W);W.ref;var G=function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(W,ep);return J.createElement(el,G)}(G,Legend_objectSpread(Legend_objectSpread({},this.props),{},{payload:(0,ed.z)(eo,ei,defaultUniqBy)})))}}],et=[{key:"getWithHeight",value:function(R,W){var G=R.props.layout;return"vertical"===G&&(0,eu.hj)(R.props.height)?{height:R.props.height}:"horizontal"===G?{width:R.props.width||W}:null}}],G&&Legend_defineProperties(Legend.prototype,G),et&&Legend_defineProperties(Legend,et),Object.defineProperty(Legend,"prototype",{writable:!1}),Legend}(J.PureComponent);Legend_defineProperty(ef,"displayName","Legend"),Legend_defineProperty(ef,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},29009:function(R,W,G){"use strict";G.d(W,{h:function(){return el}});var J=G(90512),et=G(67294),er=G(23493),en=G.n(er),ei=G(98508),eo=G(69055),es=G(6213),ec=G(52017);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}var el=(0,et.forwardRef)(function(R,W){var G,er=R.aspect,el=R.initialDimension,eu=void 0===el?{width:-1,height:-1}:el,ed=R.width,ep=void 0===ed?"100%":ed,ef=R.height,eh=void 0===ef?"100%":ef,eg=R.minWidth,em=void 0===eg?0:eg,ey=R.minHeight,ev=R.maxHeight,eb=R.children,e_=R.debounce,ex=void 0===e_?0:e_,ew=R.id,eS=R.className,eT=R.onResize,eO=R.style,eP=void 0===eO?{}:eO,eC=(0,et.useRef)(null),ek=(0,et.useRef)();ek.current=eT,(0,et.useImperativeHandle)(W,function(){return eC});var eE=function(R){if(Array.isArray(R))return R}(G=(0,et.useState)({containerWidth:eu.width,containerHeight:eu.height}))||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(G,2)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(G,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),ej=eE[0],eA=eE[1],eD=(0,et.useCallback)(function(R,W){eA(function(G){var J=Math.round(R),et=Math.round(W);return G.containerWidth===J&&G.containerHeight===et?G:{containerWidth:J,containerHeight:et}})},[]);(0,et.useEffect)(function(){var callback=function(R){var W,G=R[0].contentRect,J=G.width,et=G.height;eD(J,et),null===(W=ek.current)||void 0===W||W.call(ek,J,et)};ex>0&&(callback=en()(callback,ex,{trailing:!0,leading:!1}));var R=new ResizeObserver(callback),W=eC.current.getBoundingClientRect();return eD(W.width,W.height),R.observe(eC.current),function(){R.disconnect()}},[eD,ex]);var eI=(0,et.useMemo)(function(){var R=ej.containerWidth,W=ej.containerHeight;if(R<0||W<0)return null;(0,es.Z)((0,eo.hU)(ep)||(0,eo.hU)(eh),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",ep,eh),(0,es.Z)(!er||er>0,"The aspect(%s) must be greater than zero.",er);var G=(0,eo.hU)(ep)?R:ep,J=(0,eo.hU)(eh)?W:eh;er&&er>0&&(G?J=G/er:J&&(G=J*er),ev&&J>ev&&(J=ev)),(0,es.Z)(G>0||J>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",G,J,ep,eh,em,ey,er);var en=!Array.isArray(eb)&&(0,ei.isElement)(eb)&&(0,ec.Gf)(eb.type).endsWith("Chart");return et.Children.map(eb,function(R){return(0,ei.isElement)(R)?(0,et.cloneElement)(R,_objectSpread({width:G,height:J},en?{style:_objectSpread({height:"100%",width:"100%",maxHeight:J,maxWidth:G},R.props.style)}:{})):R})},[er,eb,eh,ev,ey,em,ej,ep]);return et.createElement("div",{id:ew?"".concat(ew):void 0,className:(0,J.Z)("recharts-responsive-container",eS),style:_objectSpread(_objectSpread({},eP),{},{width:ep,height:eh,minWidth:em,minHeight:ey,maxHeight:ev}),ref:eC},eI)})},84642:function(R,W,G){"use strict";G.d(W,{x:function(){return Text}});var J=G(67294),et=G(14293),er=G.n(et),en=G(90512),ei=G(69055),eo=G(47523),es=G(52017),ec=G(41209);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _slicedToArray(R,W){return function(R){if(Array.isArray(R))return R}(R)||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(R,W)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(R,W)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J.key),J)}}var el=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,eu=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ed=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ep=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ef={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},eh=Object.keys(ef),eg=function(){var R,W;function DecimalCSS(R,W){!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,DecimalCSS),this.num=R,this.unit=W,this.num=R,this.unit=W,Number.isNaN(R)&&(this.unit=""),""===W||ed.test(W)||(this.num=NaN,this.unit=""),eh.includes(W)&&(this.num=R*ef[W],this.unit="px")}return R=[{key:"add",value:function(R){return this.unit!==R.unit?new DecimalCSS(NaN,""):new DecimalCSS(this.num+R.num,this.unit)}},{key:"subtract",value:function(R){return this.unit!==R.unit?new DecimalCSS(NaN,""):new DecimalCSS(this.num-R.num,this.unit)}},{key:"multiply",value:function(R){return""!==this.unit&&""!==R.unit&&this.unit!==R.unit?new DecimalCSS(NaN,""):new DecimalCSS(this.num*R.num,this.unit||R.unit)}},{key:"divide",value:function(R){return""!==this.unit&&""!==R.unit&&this.unit!==R.unit?new DecimalCSS(NaN,""):new DecimalCSS(this.num/R.num,this.unit||R.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],W=[{key:"parse",value:function(R){var W,G=_slicedToArray(null!==(W=ep.exec(R))&&void 0!==W?W:[],3),J=G[1],et=G[2];return new DecimalCSS(parseFloat(J),null!=et?et:"")}}],R&&_defineProperties(DecimalCSS.prototype,R),W&&_defineProperties(DecimalCSS,W),Object.defineProperty(DecimalCSS,"prototype",{writable:!1}),DecimalCSS}();function calculateArithmetic(R){if(R.includes("NaN"))return"NaN";for(var W=R;W.includes("*")||W.includes("/");){var G,J=_slicedToArray(null!==(G=el.exec(W))&&void 0!==G?G:[],4),et=J[1],er=J[2],en=J[3],ei=eg.parse(null!=et?et:""),eo=eg.parse(null!=en?en:""),es="*"===er?ei.multiply(eo):ei.divide(eo);if(es.isNaN())return"NaN";W=W.replace(el,es.toString())}for(;W.includes("+")||/.-\d+(?:\.\d+)?/.test(W);){var ec,ed=_slicedToArray(null!==(ec=eu.exec(W))&&void 0!==ec?ec:[],4),ep=ed[1],ef=ed[2],eh=ed[3],em=eg.parse(null!=ep?ep:""),ey=eg.parse(null!=eh?eh:""),ev="+"===ef?em.add(ey):em.subtract(ey);if(ev.isNaN())return"NaN";W=W.replace(eu,ev.toString())}return W}var em=/\(([^()]*)\)/;function reduceCSSCalc(R){var W=function(R){try{var W;return W=R.replace(/\s+/g,""),W=function(R){for(var W=R;W.includes("(");){var G=_slicedToArray(em.exec(W),2)[1];W=W.replace(em,calculateArithmetic(G))}return W}(W),W=calculateArithmetic(W)}catch(R){return"NaN"}}(R.slice(5,-1));return"NaN"===W?"":W}var ey=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],ev=["dx","dy","angle","className","breakAll"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function _objectWithoutProperties(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}function Text_slicedToArray(R,W){return function(R){if(Array.isArray(R))return R}(R)||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(R,W)||function(R,W){if(R){if("string"==typeof R)return Text_arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return Text_arrayLikeToArray(R,W)}}(R,W)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Text_arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}var eb=/[ \f\n\r\t\v\u2028\u2029]+/,calculateWordWidths=function(R){var W=R.children,G=R.breakAll,J=R.style;try{var et=[];er()(W)||(et=G?W.toString().split(""):W.toString().split(eb));var en=et.map(function(R){return{word:R,width:(0,ec.xE)(R,J).width}}),ei=G?0:(0,ec.xE)("\xa0",J).width;return{wordsWithComputedWidth:en,spaceWidth:ei}}catch(R){return null}},calculateWordsByLines=function(R,W,G,J,et){var er,en=R.maxLines,eo=R.children,es=R.style,ec=R.breakAll,el=(0,ei.hj)(en),calculate=function(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return R.reduce(function(R,W){var er=W.word,en=W.width,ei=R[R.length-1];return ei&&(null==J||et||ei.width+en+G<Number(J))?(ei.words.push(er),ei.width+=en+G):R.push({words:[er],width:en}),R},[])},eu=calculate(W);if(!el)return eu;for(var checkOverflow=function(R){var W=calculate(calculateWordWidths({breakAll:ec,style:es,children:eo.slice(0,R)+"…"}).wordsWithComputedWidth);return[W.length>en||W.reduce(function(R,W){return R.width>W.width?R:W}).width>Number(J),W]},ed=0,ep=eo.length-1,ef=0;ed<=ep&&ef<=eo.length-1;){var eh=Math.floor((ed+ep)/2),eg=Text_slicedToArray(checkOverflow(eh-1),2),em=eg[0],ey=eg[1],ev=Text_slicedToArray(checkOverflow(eh),1)[0];if(em||ev||(ed=eh+1),em&&ev&&(ep=eh-1),!em&&ev){er=ey;break}ef++}return er||eu},getWordsWithoutCalculate=function(R){return[{words:er()(R)?[]:R.toString().split(eb)}]},getWordsByLines=function(R){var W=R.width,G=R.scaleToFit,J=R.children,et=R.style,er=R.breakAll,en=R.maxLines;if((W||G)&&!eo.x.isSsr){var ei=calculateWordWidths({breakAll:er,children:J,style:et});return ei?calculateWordsByLines({breakAll:er,children:J,maxLines:en,style:et},ei.wordsWithComputedWidth,ei.spaceWidth,W,G):getWordsWithoutCalculate(J)}return getWordsWithoutCalculate(J)},e_="#808080",Text=function(R){var W,G=R.x,et=void 0===G?0:G,er=R.y,eo=void 0===er?0:er,ec=R.lineHeight,el=void 0===ec?"1em":ec,eu=R.capHeight,ed=void 0===eu?"0.71em":eu,ep=R.scaleToFit,ef=void 0!==ep&&ep,eh=R.textAnchor,eg=R.verticalAnchor,em=R.fill,eb=void 0===em?e_:em,ex=_objectWithoutProperties(R,ey),ew=(0,J.useMemo)(function(){return getWordsByLines({breakAll:ex.breakAll,children:ex.children,maxLines:ex.maxLines,scaleToFit:ef,style:ex.style,width:ex.width})},[ex.breakAll,ex.children,ex.maxLines,ef,ex.style,ex.width]),eS=ex.dx,eT=ex.dy,eO=ex.angle,eP=ex.className,eC=ex.breakAll,ek=_objectWithoutProperties(ex,ev);if(!(0,ei.P2)(et)||!(0,ei.P2)(eo))return null;var eE=et+((0,ei.hj)(eS)?eS:0),ej=eo+((0,ei.hj)(eT)?eT:0);switch(void 0===eg?"end":eg){case"start":W=reduceCSSCalc("calc(".concat(ed,")"));break;case"middle":W=reduceCSSCalc("calc(".concat((ew.length-1)/2," * -").concat(el," + (").concat(ed," / 2))"));break;default:W=reduceCSSCalc("calc(".concat(ew.length-1," * -").concat(el,")"))}var eA=[];if(ef){var eD=ew[0].width,eI=ex.width;eA.push("scale(".concat(((0,ei.hj)(eI)?eI/eD:1)/eD,")"))}return eO&&eA.push("rotate(".concat(eO,", ").concat(eE,", ").concat(ej,")")),eA.length&&(ek.transform=eA.join(" ")),J.createElement("text",_extends({},(0,es.L6)(ek,!0),{x:eE,y:ej,className:(0,en.Z)("recharts-text",eP),textAnchor:void 0===eh?"start":eh,fill:eb.includes("url")?e_:eb}),ew.map(function(R,G){var et=R.words.join(eC?"":" ");return J.createElement("tspan",{x:eE,dy:0===G?W:el,key:et},et)}))}},26050:function(R,W,G){"use strict";G.d(W,{u:function(){return eh}});var J=G(67294),et=G(89734),er=G.n(et),en=G(14293),ei=G.n(en),eo=G(90512),es=G(69055);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function defaultFormatter(R){return Array.isArray(R)&&(0,es.P2)(R[0])&&(0,es.P2)(R[1])?R.join(" ~ "):R}var DefaultTooltipContent=function(R){var W=R.separator,G=void 0===W?" : ":W,et=R.contentStyle,en=R.itemStyle,ec=void 0===en?{}:en,el=R.labelStyle,eu=R.payload,ed=R.formatter,ep=R.itemSorter,ef=R.wrapperClassName,eh=R.labelClassName,eg=R.label,em=R.labelFormatter,ey=_objectSpread({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},void 0===et?{}:et),ev=_objectSpread({margin:0},void 0===el?{}:el),eb=!ei()(eg),e_=eb?eg:"",ex=(0,eo.Z)("recharts-default-tooltip",ef),ew=(0,eo.Z)("recharts-tooltip-label",eh);return eb&&em&&null!=eu&&(e_=em(eg,eu)),J.createElement("div",{className:ex,style:ey},J.createElement("p",{className:ew,style:ev},J.isValidElement(e_)?e_:"".concat(e_)),function(){if(eu&&eu.length){var R=(ep?er()(eu,ep):eu).map(function(R,W){if("none"===R.type)return null;var et=_objectSpread({display:"block",paddingTop:4,paddingBottom:4,color:R.color||"#000"},ec),er=R.formatter||ed||defaultFormatter,en=R.value,ei=R.name,eo=en,el=ei;if(er&&null!=eo&&null!=el){var ep=er(en,ei,R,W,eu);if(Array.isArray(ep)){var ef=function(R){if(Array.isArray(R))return R}(ep)||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(ep,2)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(ep,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();eo=ef[0],el=ef[1]}else eo=ep}return J.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(W),style:et},(0,es.P2)(el)?J.createElement("span",{className:"recharts-tooltip-item-name"},el):null,(0,es.P2)(el)?J.createElement("span",{className:"recharts-tooltip-item-separator"},G):null,J.createElement("span",{className:"recharts-tooltip-item-value"},eo),J.createElement("span",{className:"recharts-tooltip-item-unit"},R.unit||""))});return J.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},R)}return null}())},ec=G(93801);function translate_typeof(R){return(translate_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function translate_defineProperty(R,W,G){var J;return(J=function(R,W){if("object"!==translate_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==translate_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(W,"string"),(W="symbol"===translate_typeof(J)?J:String(J))in R)?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}var el="recharts-tooltip-wrapper",eu={visibility:"hidden"};function getTooltipTranslateXY(R){var W=R.allowEscapeViewBox,G=R.coordinate,J=R.key,et=R.offsetTopLeft,er=R.position,en=R.reverseDirection,ei=R.tooltipDimension,eo=R.viewBox,ec=R.viewBoxDimension;if(er&&(0,es.hj)(er[J]))return er[J];var el=G[J]-ei-et,eu=G[J]+et;return W[J]?en[J]?el:eu:en[J]?el<eo[J]?Math.max(eu,eo[J]):Math.max(el,eo[J]):eu+ei>eo[J]+ec?Math.max(el,eo[J]):Math.max(eu,eo[J])}function TooltipBoundingBox_typeof(R){return(TooltipBoundingBox_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function TooltipBoundingBox_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function TooltipBoundingBox_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?TooltipBoundingBox_ownKeys(Object(G),!0).forEach(function(W){TooltipBoundingBox_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):TooltipBoundingBox_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,TooltipBoundingBox_toPropertyKey(J.key),J)}}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function TooltipBoundingBox_defineProperty(R,W,G){return(W=TooltipBoundingBox_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function TooltipBoundingBox_toPropertyKey(R){var W=function(R,W){if("object"!==TooltipBoundingBox_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==TooltipBoundingBox_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===TooltipBoundingBox_typeof(W)?W:String(W)}var ed=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(TooltipBoundingBox,R);var W,G,et,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(TooltipBoundingBox);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===TooltipBoundingBox_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(R)}(this,R)});function TooltipBoundingBox(){var R;!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,TooltipBoundingBox);for(var W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];return TooltipBoundingBox_defineProperty(_assertThisInitialized(R=er.call.apply(er,[this].concat(G))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),TooltipBoundingBox_defineProperty(_assertThisInitialized(R),"lastBoundingBox",{width:-1,height:-1}),TooltipBoundingBox_defineProperty(_assertThisInitialized(R),"handleKeyDown",function(W){if("Escape"===W.key){var G,J,et,er;R.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(G=null===(J=R.props.coordinate)||void 0===J?void 0:J.x)&&void 0!==G?G:0,y:null!==(et=null===(er=R.props.coordinate)||void 0===er?void 0:er.y)&&void 0!==et?et:0}})}}),R}return G=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var R=this.wrapperNode.getBoundingClientRect();(Math.abs(R.width-this.lastBoundingBox.width)>1||Math.abs(R.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=R.width,this.lastBoundingBox.height=R.height)}else(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var R,W;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(R=this.props.coordinate)||void 0===R?void 0:R.x)!==this.state.dismissedAtCoordinate.x||(null===(W=this.props.coordinate)||void 0===W?void 0:W.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var R,W,G,et,er,en,ei,ed,ep,ef,eh,eg,em,ey,ev,eb,e_,ex,ew,eS,eT,eO=this,eP=this.props,eC=eP.active,ek=eP.allowEscapeViewBox,eE=eP.animationDuration,ej=eP.animationEasing,eA=eP.children,eD=eP.coordinate,eI=eP.hasPayload,eM=eP.isAnimationActive,eL=eP.offset,eR=eP.position,eN=eP.reverseDirection,eB=eP.useTranslate3d,eZ=eP.viewBox,eU=eP.wrapperStyle,eF=(ey=(R={allowEscapeViewBox:ek,coordinate:eD,offsetTopLeft:eL,position:eR,reverseDirection:eN,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:eB,viewBox:eZ}).allowEscapeViewBox,ev=R.coordinate,eb=R.offsetTopLeft,e_=R.position,ex=R.reverseDirection,ew=R.tooltipBox,eS=R.useTranslate3d,eT=R.viewBox,ew.height>0&&ew.width>0&&ev?(G=(W={translateX:eg=getTooltipTranslateXY({allowEscapeViewBox:ey,coordinate:ev,key:"x",offsetTopLeft:eb,position:e_,reverseDirection:ex,tooltipDimension:ew.width,viewBox:eT,viewBoxDimension:eT.width}),translateY:em=getTooltipTranslateXY({allowEscapeViewBox:ey,coordinate:ev,key:"y",offsetTopLeft:eb,position:e_,reverseDirection:ex,tooltipDimension:ew.height,viewBox:eT,viewBoxDimension:eT.height}),useTranslate3d:eS}).translateX,et=W.translateY,er=W.useTranslate3d,eh=(0,ec.bO)({transform:er?"translate3d(".concat(G,"px, ").concat(et,"px, 0)"):"translate(".concat(G,"px, ").concat(et,"px)")})):eh=eu,{cssProperties:eh,cssClasses:(ed=(en={translateX:eg,translateY:em,coordinate:ev}).coordinate,ep=en.translateX,ef=en.translateY,(0,eo.Z)(el,(translate_defineProperty(ei={},"".concat(el,"-right"),(0,es.hj)(ep)&&ed&&(0,es.hj)(ed.x)&&ep>=ed.x),translate_defineProperty(ei,"".concat(el,"-left"),(0,es.hj)(ep)&&ed&&(0,es.hj)(ed.x)&&ep<ed.x),translate_defineProperty(ei,"".concat(el,"-bottom"),(0,es.hj)(ef)&&ed&&(0,es.hj)(ed.y)&&ef>=ed.y),translate_defineProperty(ei,"".concat(el,"-top"),(0,es.hj)(ef)&&ed&&(0,es.hj)(ed.y)&&ef<ed.y),ei)))}),ez=eF.cssClasses,eH=eF.cssProperties,eq=TooltipBoundingBox_objectSpread(TooltipBoundingBox_objectSpread(TooltipBoundingBox_objectSpread({},eM&&eC&&(0,ec.bO)({transition:"transform ".concat(eE,"ms ").concat(ej)})),eH),{},{pointerEvents:"none",visibility:!this.state.dismissed&&eC&&eI?"visible":"hidden",position:"absolute",top:0,left:0},eU);return J.createElement("div",{tabIndex:-1,role:"dialog",className:ez,style:eq,ref:function(R){eO.wrapperNode=R}},eA)}}],_defineProperties(TooltipBoundingBox.prototype,G),et&&_defineProperties(TooltipBoundingBox,et),Object.defineProperty(TooltipBoundingBox,"prototype",{writable:!1}),TooltipBoundingBox}(J.PureComponent),ep=G(47523),ef=G(78817);function Tooltip_typeof(R){return(Tooltip_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function Tooltip_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function Tooltip_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?Tooltip_ownKeys(Object(G),!0).forEach(function(W){Tooltip_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):Tooltip_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function Tooltip_defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,Tooltip_toPropertyKey(J.key),J)}}function Tooltip_setPrototypeOf(R,W){return(Tooltip_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function Tooltip_getPrototypeOf(R){return(Tooltip_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function Tooltip_defineProperty(R,W,G){return(W=Tooltip_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function Tooltip_toPropertyKey(R){var W=function(R,W){if("object"!==Tooltip_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==Tooltip_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===Tooltip_typeof(W)?W:String(W)}function defaultUniqBy(R){return R.dataKey}var eh=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&Tooltip_setPrototypeOf(R,W)}(Tooltip,R);var W,G,et,er=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=Tooltip_getPrototypeOf(Tooltip);if(W){var J=Tooltip_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===Tooltip_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return function(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}(R)}(this,R)});function Tooltip(){return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,Tooltip),er.apply(this,arguments)}return G=[{key:"render",value:function(){var R,W=this.props,G=W.active,et=W.allowEscapeViewBox,er=W.animationDuration,en=W.animationEasing,ei=W.content,eo=W.coordinate,es=W.filterNull,ec=W.isAnimationActive,el=W.offset,eu=W.payload,ep=W.payloadUniqBy,eh=W.position,eg=W.reverseDirection,em=W.useTranslate3d,ey=W.viewBox,ev=W.wrapperStyle,eb=null!=eu?eu:[];es&&eb.length&&(eb=(0,ef.z)(eu.filter(function(R){return null!=R.value}),ep,defaultUniqBy));var e_=eb.length>0;return J.createElement(ed,{allowEscapeViewBox:et,animationDuration:er,animationEasing:en,isAnimationActive:ec,active:G,coordinate:eo,hasPayload:e_,offset:el,position:eh,reverseDirection:eg,useTranslate3d:em,viewBox:ey,wrapperStyle:ev},(R=Tooltip_objectSpread(Tooltip_objectSpread({},this.props),{},{payload:eb}),J.isValidElement(ei)?J.cloneElement(ei,R):"function"==typeof ei?J.createElement(ei,R):J.createElement(DefaultTooltipContent,R)))}}],Tooltip_defineProperties(Tooltip.prototype,G),et&&Tooltip_defineProperties(Tooltip,et),Object.defineProperty(Tooltip,"prototype",{writable:!1}),Tooltip}(J.PureComponent);Tooltip_defineProperty(eh,"displayName","Tooltip"),Tooltip_defineProperty(eh,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ep.x.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}})},48710:function(R,W,G){"use strict";G.d(W,{m:function(){return ei}});var J=G(67294),et=G(90512),er=G(52017),en=["children","className"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}var ei=J.forwardRef(function(R,W){var G=R.children,ei=R.className,eo=function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,en),es=(0,et.Z)("recharts-layer",ei);return J.createElement("g",_extends({className:es},(0,er.L6)(eo,!0),{ref:W}),G)})},20514:function(R,W,G){"use strict";G.d(W,{T:function(){return Surface}});var J=G(67294),et=G(90512),er=G(52017),en=["children","width","height","viewBox","className","style","title","desc"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function Surface(R){var W=R.children,G=R.width,ei=R.height,eo=R.viewBox,es=R.className,ec=R.style,el=R.title,eu=R.desc,ed=function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,en),ep=eo||{width:G,height:ei,x:0,y:0},ef=(0,et.Z)("recharts-surface",es);return J.createElement("svg",_extends({},(0,er.L6)(ed,!0,"svg"),{className:ef,width:G,height:ei,style:ec,viewBox:"".concat(ep.x," ").concat(ep.y," ").concat(ep.width," ").concat(ep.height)}),J.createElement("title",null,el),J.createElement("desc",null,eu),W)}},46208:function(R,W,G){"use strict";G.d(W,{b:function(){return eP}});var J=G(67294),et=G(93801),er=G(27361),en=G.n(er),ei=G(18446),eo=G.n(ei),es=G(14293),ec=G.n(es),el=G(23560),eu=G.n(el),ed=G(90512),ep=G(48710),ef=G(66338),eh=G(84642),eg=G(25048),em=G(2763),ey=G(43815),ev=G(52017),eb=G(47523),e_=G(40048),ex=G(69055),ew=G(48722),eS=G(6213),eT=G(79896),eO=G(49465);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,_toPropertyKey(J.key),J)}}function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}function _assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}function _defineProperty(R,W,G){return(W=_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function _toPropertyKey(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}var eP=function(R){!function(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&_setPrototypeOf(R,W)}(Pie,R);var W,G,er,ei=(W=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}(),function(){var R,G=_getPrototypeOf(Pie);if(W){var J=_getPrototypeOf(this).constructor;R=Reflect.construct(G,arguments,J)}else R=G.apply(this,arguments);return function(R,W){if(W&&("object"===_typeof(W)||"function"==typeof W))return W;if(void 0!==W)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(R)}(this,R)});function Pie(R){var W;return!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,Pie),_defineProperty(_assertThisInitialized(W=ei.call(this,R)),"pieRef",null),_defineProperty(_assertThisInitialized(W),"sectorRefs",[]),_defineProperty(_assertThisInitialized(W),"id",(0,ex.EL)("recharts-pie-")),_defineProperty(_assertThisInitialized(W),"handleAnimationEnd",function(){var R=W.props.onAnimationEnd;W.setState({isAnimationFinished:!0}),eu()(R)&&R()}),_defineProperty(_assertThisInitialized(W),"handleAnimationStart",function(){var R=W.props.onAnimationStart;W.setState({isAnimationFinished:!1}),eu()(R)&&R()}),W.state={isAnimationFinished:!R.isAnimationActive,prevIsAnimationActive:R.isAnimationActive,prevAnimationId:R.animationId,sectorToFocus:0},W}return G=[{key:"isActiveIndex",value:function(R){var W=this.props.activeIndex;return Array.isArray(W)?-1!==W.indexOf(R):R===W}},{key:"hasActiveIndex",value:function(){var R=this.props.activeIndex;return Array.isArray(R)?0!==R.length:R||0===R}},{key:"renderLabels",value:function(R){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var W=this.props,G=W.label,et=W.labelLine,er=W.dataKey,en=W.valueKey,ei=(0,ev.L6)(this.props),eo=(0,ev.L6)(G),es=(0,ev.L6)(et),el=G&&G.offsetRadius||20,eu=R.map(function(R,W){var eu=(R.startAngle+R.endAngle)/2,ed=(0,e_.op)(R.cx,R.cy,R.outerRadius+el,eu),ef=_objectSpread(_objectSpread(_objectSpread(_objectSpread({},ei),R),{},{stroke:"none"},eo),{},{index:W,textAnchor:Pie.getTextAnchor(ed.x,R.cx)},ed),eh=_objectSpread(_objectSpread(_objectSpread(_objectSpread({},ei),R),{},{fill:"none",stroke:R.fill},es),{},{index:W,points:[(0,e_.op)(R.cx,R.cy,R.outerRadius,eu),ed],key:"line"}),eg=er;return ec()(er)&&ec()(en)?eg="value":ec()(er)&&(eg=en),J.createElement(ep.m,{key:"label-".concat(R.startAngle,"-").concat(R.endAngle)},et&&Pie.renderLabelLineItem(et,eh),Pie.renderLabelItem(G,ef,(0,ew.F$)(R,eg)))});return J.createElement(ep.m,{className:"recharts-pie-labels"},eu)}},{key:"renderSectorsStatically",value:function(R){var W=this,G=this.props,et=G.activeShape,er=G.blendStroke,en=G.inactiveShape;return R.map(function(R,G){var ei=W.isActiveIndex(G),eo=en&&W.hasActiveIndex()?en:null,es=_objectSpread(_objectSpread({},R),{},{stroke:er?R.fill:R.stroke,tabIndex:-1});return J.createElement(ep.m,_extends({ref:function(R){R&&!W.sectorRefs.includes(R)&&W.sectorRefs.push(R)},tabIndex:-1,className:"recharts-pie-sector"},(0,eT.bw)(W.props,R,G),{key:"sector-".concat(G)}),J.createElement(eO.bn,_extends({option:ei?et:eo,isActive:ei,shapeType:"sector"},es)))})}},{key:"renderSectorsWithAnimation",value:function(){var R=this,W=this.props,G=W.sectors,er=W.isAnimationActive,ei=W.animationBegin,eo=W.animationDuration,es=W.animationEasing,ec=W.animationId,el=this.state,eu=el.prevSectors,ed=el.prevIsAnimationActive;return J.createElement(et.ZP,{begin:ei,duration:eo,isActive:er,easing:es,from:{t:0},to:{t:1},key:"pie-".concat(ec,"-").concat(ed),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(W){var et=W.t,er=[],ei=(G&&G[0]).startAngle;return G.forEach(function(R,W){var G=eu&&eu[W],J=W>0?en()(R,"paddingAngle",0):0;if(G){var eo=(0,ex.k4)(G.endAngle-G.startAngle,R.endAngle-R.startAngle),es=_objectSpread(_objectSpread({},R),{},{startAngle:ei+J,endAngle:ei+eo(et)+J});er.push(es),ei=es.endAngle}else{var ec=R.endAngle,el=R.startAngle,ed=(0,ex.k4)(0,ec-el)(et),ep=_objectSpread(_objectSpread({},R),{},{startAngle:ei+J,endAngle:ei+ed+J});er.push(ep),ei=ep.endAngle}}),J.createElement(ep.m,null,R.renderSectorsStatically(er))})}},{key:"attachKeyboardHandlers",value:function(R){var W=this;R.onkeydown=function(R){if(!R.altKey)switch(R.key){case"ArrowLeft":var G=++W.state.sectorToFocus%W.sectorRefs.length;W.sectorRefs[G].focus(),W.setState({sectorToFocus:G});break;case"ArrowRight":var J=--W.state.sectorToFocus<0?W.sectorRefs.length-1:W.state.sectorToFocus%W.sectorRefs.length;W.sectorRefs[J].focus(),W.setState({sectorToFocus:J});break;case"Escape":W.sectorRefs[W.state.sectorToFocus].blur(),W.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var R=this.props,W=R.sectors,G=R.isAnimationActive,J=this.state.prevSectors;return G&&W&&W.length&&(!J||!eo()(J,W))?this.renderSectorsWithAnimation():this.renderSectorsStatically(W)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var R=this,W=this.props,G=W.hide,et=W.sectors,er=W.className,en=W.label,ei=W.cx,eo=W.cy,es=W.innerRadius,ec=W.outerRadius,el=W.isAnimationActive,eu=this.state.isAnimationFinished;if(G||!et||!et.length||!(0,ex.hj)(ei)||!(0,ex.hj)(eo)||!(0,ex.hj)(es)||!(0,ex.hj)(ec))return null;var ef=(0,ed.Z)("recharts-pie",er);return J.createElement(ep.m,{tabIndex:this.props.rootTabIndex,className:ef,ref:function(W){R.pieRef=W}},this.renderSectors(),en&&this.renderLabels(et),eg._.renderCallByParent(this.props,null,!1),(!el||eu)&&em.e.renderCallByParent(this.props,et,!1))}}],er=[{key:"getDerivedStateFromProps",value:function(R,W){return W.prevIsAnimationActive!==R.isAnimationActive?{prevIsAnimationActive:R.isAnimationActive,prevAnimationId:R.animationId,curSectors:R.sectors,prevSectors:[],isAnimationFinished:!0}:R.isAnimationActive&&R.animationId!==W.prevAnimationId?{prevAnimationId:R.animationId,curSectors:R.sectors,prevSectors:W.curSectors,isAnimationFinished:!0}:R.sectors!==W.curSectors?{curSectors:R.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(R,W){return R>W?"start":R<W?"end":"middle"}},{key:"renderLabelLineItem",value:function(R,W){return J.isValidElement(R)?J.cloneElement(R,W):eu()(R)?R(W):J.createElement(ef.H,_extends({},W,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(R,W,G){if(J.isValidElement(R))return J.cloneElement(R,W);var et=G;return eu()(R)&&(et=R(W),J.isValidElement(et))?et:J.createElement(eh.x,_extends({},W,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),et)}}],G&&_defineProperties(Pie.prototype,G),er&&_defineProperties(Pie,er),Object.defineProperty(Pie,"prototype",{writable:!1}),Pie}(J.PureComponent);_defineProperty(eP,"displayName","Pie"),_defineProperty(eP,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!eb.x.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),_defineProperty(eP,"parseDeltaAngle",function(R,W){return(0,ex.uY)(W-R)*Math.min(Math.abs(W-R),360)}),_defineProperty(eP,"getRealPieData",function(R){var W=R.props,G=W.data,J=W.children,et=(0,ev.L6)(R.props),er=(0,ev.NN)(J,ey.b);return G&&G.length?G.map(function(R,W){return _objectSpread(_objectSpread(_objectSpread({payload:R},et),R),er&&er[W]&&er[W].props)}):er&&er.length?er.map(function(R){return _objectSpread(_objectSpread({},et),R.props)}):[]}),_defineProperty(eP,"parseCoordinateOfPie",function(R,W){var G=W.top,J=W.left,et=W.width,er=W.height,en=(0,e_.$4)(et,er);return{cx:J+(0,ex.h1)(R.props.cx,et,et/2),cy:G+(0,ex.h1)(R.props.cy,er,er/2),innerRadius:(0,ex.h1)(R.props.innerRadius,en,0),outerRadius:(0,ex.h1)(R.props.outerRadius,en,.8*en),maxRadius:R.props.maxRadius||Math.sqrt(et*et+er*er)/2}}),_defineProperty(eP,"getComposedData",function(R){var W,G,J=R.item,et=R.offset,er=eP.getRealPieData(J);if(!er||!er.length)return null;var en=J.props,ei=en.cornerRadius,eo=en.startAngle,es=en.endAngle,el=en.paddingAngle,eu=en.dataKey,ed=en.nameKey,ep=en.valueKey,ef=en.tooltipType,eh=Math.abs(J.props.minAngle),eg=eP.parseCoordinateOfPie(J,et),em=eP.parseDeltaAngle(eo,es),ey=Math.abs(em),ev=eu;ec()(eu)&&ec()(ep)?((0,eS.Z)(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),ev="value"):ec()(eu)&&((0,eS.Z)(!1,'Use "dataKey" to specify the value of pie,\n      the props "valueKey" will be deprecated in 1.1.0'),ev=ep);var eb=er.filter(function(R){return 0!==(0,ew.F$)(R,ev,0)}).length,eT=ey-eb*eh-(ey>=360?eb:eb-1)*el,eO=er.reduce(function(R,W){var G=(0,ew.F$)(W,ev,0);return R+((0,ex.hj)(G)?G:0)},0);return eO>0&&(W=er.map(function(R,W){var J,et=(0,ew.F$)(R,ev,0),er=(0,ew.F$)(R,ed,W),en=((0,ex.hj)(et)?et:0)/eO,es=(J=W?G.endAngle+(0,ex.uY)(em)*el*(0!==et?1:0):eo)+(0,ex.uY)(em)*((0!==et?eh:0)+en*eT),ec=(J+es)/2,eu=(eg.innerRadius+eg.outerRadius)/2,ep=[{name:er,value:et,payload:R,dataKey:ev,type:ef}],ey=(0,e_.op)(eg.cx,eg.cy,eu,ec);return G=_objectSpread(_objectSpread(_objectSpread({percent:en,cornerRadius:ei,name:er,tooltipPayload:ep,midAngle:ec,middleRadius:eu,tooltipPosition:ey},R),eg),{},{value:(0,ew.F$)(R,ev),startAngle:J,endAngle:es,payload:R,paddingAngle:(0,ex.uY)(em)*el})})),_objectSpread(_objectSpread({},eg),{},{sectors:W,data:er})})},66338:function(R,W,G){"use strict";G.d(W,{H:function(){return Curve}});var J=G(67294);function noop(){}function point(R,W,G){R._context.bezierCurveTo((2*R._x0+R._x1)/3,(2*R._y0+R._y1)/3,(R._x0+2*R._x1)/3,(R._y0+2*R._y1)/3,(R._x0+4*R._x1+W)/6,(R._y0+4*R._y1+G)/6)}function Basis(R){this._context=R}function BasisClosed(R){this._context=R}function BasisOpen(R){this._context=R}Basis.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:point(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(R,W){switch(R=+R,W=+W,this._point){case 0:this._point=1,this._line?this._context.lineTo(R,W):this._context.moveTo(R,W);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:point(this,R,W)}this._x0=this._x1,this._x1=R,this._y0=this._y1,this._y1=W}},BasisClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(R,W){switch(R=+R,W=+W,this._point){case 0:this._point=1,this._x2=R,this._y2=W;break;case 1:this._point=2,this._x3=R,this._y3=W;break;case 2:this._point=3,this._x4=R,this._y4=W,this._context.moveTo((this._x0+4*this._x1+R)/6,(this._y0+4*this._y1+W)/6);break;default:point(this,R,W)}this._x0=this._x1,this._x1=R,this._y0=this._y1,this._y1=W}},BasisOpen.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(R,W){switch(R=+R,W=+W,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var G=(this._x0+4*this._x1+R)/6,J=(this._y0+4*this._y1+W)/6;this._line?this._context.lineTo(G,J):this._context.moveTo(G,J);break;case 3:this._point=4;default:point(this,R,W)}this._x0=this._x1,this._x1=R,this._y0=this._y1,this._y1=W}};let Bump=class Bump{constructor(R,W){this._context=R,this._x=W}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(R,W){switch(R=+R,W=+W,this._point){case 0:this._point=1,this._line?this._context.lineTo(R,W):this._context.moveTo(R,W);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+R)/2,this._y0,this._x0,W,R,W):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+W)/2,R,this._y0,R,W)}this._x0=R,this._y0=W}};function LinearClosed(R){this._context=R}function Linear(R){this._context=R}function linear(R){return new Linear(R)}function slope3(R,W,G){var J=R._x1-R._x0,et=W-R._x1,er=(R._y1-R._y0)/(J||et<0&&-0),en=(G-R._y1)/(et||J<0&&-0);return((er<0?-1:1)+(en<0?-1:1))*Math.min(Math.abs(er),Math.abs(en),.5*Math.abs((er*et+en*J)/(J+et)))||0}function slope2(R,W){var G=R._x1-R._x0;return G?(3*(R._y1-R._y0)/G-W)/2:W}function monotone_point(R,W,G){var J=R._x0,et=R._y0,er=R._x1,en=R._y1,ei=(er-J)/3;R._context.bezierCurveTo(J+ei,et+ei*W,er-ei,en-ei*G,er,en)}function MonotoneX(R){this._context=R}function MonotoneY(R){this._context=new ReflectContext(R)}function ReflectContext(R){this._context=R}function Natural(R){this._context=R}function controlPoints(R){var W,G,J=R.length-1,et=Array(J),er=Array(J),en=Array(J);for(et[0]=0,er[0]=2,en[0]=R[0]+2*R[1],W=1;W<J-1;++W)et[W]=1,er[W]=4,en[W]=4*R[W]+2*R[W+1];for(et[J-1]=2,er[J-1]=7,en[J-1]=8*R[J-1]+R[J],W=1;W<J;++W)G=et[W]/er[W-1],er[W]-=G,en[W]-=G*en[W-1];for(et[J-1]=en[J-1]/er[J-1],W=J-2;W>=0;--W)et[W]=(en[W]-et[W+1])/er[W];for(W=0,er[J-1]=(R[J]+et[J-1])/2;W<J-1;++W)er[W]=2*R[W+1]-et[W+1];return[et,er]}function Step(R,W){this._context=R,this._t=W}LinearClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(R,W){R=+R,W=+W,this._point?this._context.lineTo(R,W):(this._point=1,this._context.moveTo(R,W))}},Linear.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(R,W){switch(R=+R,W=+W,this._point){case 0:this._point=1,this._line?this._context.lineTo(R,W):this._context.moveTo(R,W);break;case 1:this._point=2;default:this._context.lineTo(R,W)}}},MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:monotone_point(this,this._t0,slope2(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(R,W){var G=NaN;if(W=+W,(R=+R)!==this._x1||W!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(R,W):this._context.moveTo(R,W);break;case 1:this._point=2;break;case 2:this._point=3,monotone_point(this,slope2(this,G=slope3(this,R,W)),G);break;default:monotone_point(this,this._t0,G=slope3(this,R,W))}this._x0=this._x1,this._x1=R,this._y0=this._y1,this._y1=W,this._t0=G}}},(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(R,W){MonotoneX.prototype.point.call(this,W,R)},ReflectContext.prototype={moveTo:function(R,W){this._context.moveTo(W,R)},closePath:function(){this._context.closePath()},lineTo:function(R,W){this._context.lineTo(W,R)},bezierCurveTo:function(R,W,G,J,et,er){this._context.bezierCurveTo(W,R,J,G,er,et)}},Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var R=this._x,W=this._y,G=R.length;if(G){if(this._line?this._context.lineTo(R[0],W[0]):this._context.moveTo(R[0],W[0]),2===G)this._context.lineTo(R[1],W[1]);else for(var J=controlPoints(R),et=controlPoints(W),er=0,en=1;en<G;++er,++en)this._context.bezierCurveTo(J[0][er],et[0][er],J[1][er],et[1][er],R[en],W[en])}(this._line||0!==this._line&&1===G)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(R,W){this._x.push(+R),this._y.push(+W)}},Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(R,W){switch(R=+R,W=+W,this._point){case 0:this._point=1,this._line?this._context.lineTo(R,W):this._context.moveTo(R,W);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,W),this._context.lineTo(R,W);else{var G=this._x*(1-this._t)+R*this._t;this._context.lineTo(G,this._y),this._context.lineTo(G,W)}}this._x=R,this._y=W}};var et=G(94788),er=G(20309),en=G(52882);function point_x(R){return R[0]}function point_y(R){return R[1]}function line(R,W){var G=(0,er.Z)(!0),J=null,ei=linear,eo=null,es=(0,en.d)(line);function line(er){var en,ec,el,eu=(er=(0,et.Z)(er)).length,ed=!1;for(null==J&&(eo=ei(el=es())),en=0;en<=eu;++en)!(en<eu&&G(ec=er[en],en,er))===ed&&((ed=!ed)?eo.lineStart():eo.lineEnd()),ed&&eo.point(+R(ec,en,er),+W(ec,en,er));if(el)return eo=null,el+""||null}return R="function"==typeof R?R:void 0===R?point_x:(0,er.Z)(R),W="function"==typeof W?W:void 0===W?point_y:(0,er.Z)(W),line.x=function(W){return arguments.length?(R="function"==typeof W?W:(0,er.Z)(+W),line):R},line.y=function(R){return arguments.length?(W="function"==typeof R?R:(0,er.Z)(+R),line):W},line.defined=function(R){return arguments.length?(G="function"==typeof R?R:(0,er.Z)(!!R),line):G},line.curve=function(R){return arguments.length?(ei=R,null!=J&&(eo=ei(J)),line):ei},line.context=function(R){return arguments.length?(null==R?J=eo=null:eo=ei(J=R),line):J},line}function src_area(R,W,G){var J=null,ei=(0,er.Z)(!0),eo=null,es=linear,ec=null,el=(0,en.d)(area);function area(er){var en,eu,ed,ep,ef,eh=(er=(0,et.Z)(er)).length,eg=!1,em=Array(eh),ey=Array(eh);for(null==eo&&(ec=es(ef=el())),en=0;en<=eh;++en){if(!(en<eh&&ei(ep=er[en],en,er))===eg){if(eg=!eg)eu=en,ec.areaStart(),ec.lineStart();else{for(ec.lineEnd(),ec.lineStart(),ed=en-1;ed>=eu;--ed)ec.point(em[ed],ey[ed]);ec.lineEnd(),ec.areaEnd()}}eg&&(em[en]=+R(ep,en,er),ey[en]=+W(ep,en,er),ec.point(J?+J(ep,en,er):em[en],G?+G(ep,en,er):ey[en]))}if(ef)return ec=null,ef+""||null}function arealine(){return line().defined(ei).curve(es).context(eo)}return R="function"==typeof R?R:void 0===R?point_x:(0,er.Z)(+R),W="function"==typeof W?W:void 0===W?(0,er.Z)(0):(0,er.Z)(+W),G="function"==typeof G?G:void 0===G?point_y:(0,er.Z)(+G),area.x=function(W){return arguments.length?(R="function"==typeof W?W:(0,er.Z)(+W),J=null,area):R},area.x0=function(W){return arguments.length?(R="function"==typeof W?W:(0,er.Z)(+W),area):R},area.x1=function(R){return arguments.length?(J=null==R?null:"function"==typeof R?R:(0,er.Z)(+R),area):J},area.y=function(R){return arguments.length?(W="function"==typeof R?R:(0,er.Z)(+R),G=null,area):W},area.y0=function(R){return arguments.length?(W="function"==typeof R?R:(0,er.Z)(+R),area):W},area.y1=function(R){return arguments.length?(G=null==R?null:"function"==typeof R?R:(0,er.Z)(+R),area):G},area.lineX0=area.lineY0=function(){return arealine().x(R).y(W)},area.lineY1=function(){return arealine().x(R).y(G)},area.lineX1=function(){return arealine().x(J).y(W)},area.defined=function(R){return arguments.length?(ei="function"==typeof R?R:(0,er.Z)(!!R),area):ei},area.curve=function(R){return arguments.length?(es=R,null!=eo&&(ec=es(eo)),area):es},area.context=function(R){return arguments.length?(null==R?eo=ec=null:ec=es(eo=R),area):eo},area}var ei=G(11700),eo=G.n(ei),es=G(23560),ec=G.n(es),el=G(90512),eu=G(79896),ed=G(52017),ep=G(69055);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var ef={curveBasisClosed:function(R){return new BasisClosed(R)},curveBasisOpen:function(R){return new BasisOpen(R)},curveBasis:function(R){return new Basis(R)},curveBumpX:function(R){return new Bump(R,!0)},curveBumpY:function(R){return new Bump(R,!1)},curveLinearClosed:function(R){return new LinearClosed(R)},curveLinear:linear,curveMonotoneX:function(R){return new MonotoneX(R)},curveMonotoneY:function(R){return new MonotoneY(R)},curveNatural:function(R){return new Natural(R)},curveStep:function(R){return new Step(R,.5)},curveStepAfter:function(R){return new Step(R,1)},curveStepBefore:function(R){return new Step(R,0)}},defined=function(R){return R.x===+R.x&&R.y===+R.y},getX=function(R){return R.x},getY=function(R){return R.y},getCurveFactory=function(R,W){if(ec()(R))return R;var G="curve".concat(eo()(R));return("curveMonotone"===G||"curveBump"===G)&&W?ef["".concat(G).concat("vertical"===W?"Y":"X")]:ef[G]||linear},getPath=function(R){var W,G=R.type,J=R.points,et=void 0===J?[]:J,er=R.baseLine,en=R.layout,ei=R.connectNulls,eo=void 0!==ei&&ei,es=getCurveFactory(void 0===G?"linear":G,en),ec=eo?et.filter(function(R){return defined(R)}):et;if(Array.isArray(er)){var el=eo?er.filter(function(R){return defined(R)}):er,eu=ec.map(function(R,W){return _objectSpread(_objectSpread({},R),{},{base:el[W]})});return(W="vertical"===en?src_area().y(getY).x1(getX).x0(function(R){return R.base.x}):src_area().x(getX).y1(getY).y0(function(R){return R.base.y})).defined(defined).curve(es),W(eu)}return(W="vertical"===en&&(0,ep.hj)(er)?src_area().y(getY).x1(getX).x0(er):(0,ep.hj)(er)?src_area().x(getX).y1(getY).y0(er):line().x(getX).y(getY)).defined(defined).curve(es),W(ec)},Curve=function(R){var W=R.className,G=R.points,et=R.path,er=R.pathRef;if((!G||!G.length)&&!et)return null;var en=G&&G.length?getPath(R):et;return J.createElement("path",_extends({},(0,ed.L6)(R),(0,eu.Ym)(R),{className:(0,el.Z)("recharts-curve",W),d:en,ref:er}))}},93061:function(R,W,G){"use strict";G.d(W,{o:function(){return Dot}});var J=G(67294),et=G(90512),er=G(79896),en=G(52017);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}var Dot=function(R){var W=R.cx,G=R.cy,ei=R.r,eo=R.className,es=(0,et.Z)("recharts-dot",eo);return W===+W&&G===+G&&ei===+ei?J.createElement("circle",_extends({},(0,en.L6)(R),(0,er.Ym)(R),{className:es,cx:W,cy:G,r:ei})):null}},13481:function(R,W,G){"use strict";G.d(W,{A:function(){return Rectangle},X:function(){return isInRectangle}});var J=G(67294),et=G(90512),er=G(93801),en=G(52017);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var getRectanglePath=function(R,W,G,J,et){var er,en=Math.min(Math.abs(G)/2,Math.abs(J)/2),ei=J>=0?1:-1,eo=G>=0?1:-1,es=J>=0&&G>=0||J<0&&G<0?1:0;if(en>0&&et instanceof Array){for(var ec=[0,0,0,0],el=0;el<4;el++)ec[el]=et[el]>en?en:et[el];er="M".concat(R,",").concat(W+ei*ec[0]),ec[0]>0&&(er+="A ".concat(ec[0],",").concat(ec[0],",0,0,").concat(es,",").concat(R+eo*ec[0],",").concat(W)),er+="L ".concat(R+G-eo*ec[1],",").concat(W),ec[1]>0&&(er+="A ".concat(ec[1],",").concat(ec[1],",0,0,").concat(es,",\n        ").concat(R+G,",").concat(W+ei*ec[1])),er+="L ".concat(R+G,",").concat(W+J-ei*ec[2]),ec[2]>0&&(er+="A ".concat(ec[2],",").concat(ec[2],",0,0,").concat(es,",\n        ").concat(R+G-eo*ec[2],",").concat(W+J)),er+="L ".concat(R+eo*ec[3],",").concat(W+J),ec[3]>0&&(er+="A ".concat(ec[3],",").concat(ec[3],",0,0,").concat(es,",\n        ").concat(R,",").concat(W+J-ei*ec[3])),er+="Z"}else if(en>0&&et===+et&&et>0){var eu=Math.min(en,et);er="M ".concat(R,",").concat(W+ei*eu,"\n            A ").concat(eu,",").concat(eu,",0,0,").concat(es,",").concat(R+eo*eu,",").concat(W,"\n            L ").concat(R+G-eo*eu,",").concat(W,"\n            A ").concat(eu,",").concat(eu,",0,0,").concat(es,",").concat(R+G,",").concat(W+ei*eu,"\n            L ").concat(R+G,",").concat(W+J-ei*eu,"\n            A ").concat(eu,",").concat(eu,",0,0,").concat(es,",").concat(R+G-eo*eu,",").concat(W+J,"\n            L ").concat(R+eo*eu,",").concat(W+J,"\n            A ").concat(eu,",").concat(eu,",0,0,").concat(es,",").concat(R,",").concat(W+J-ei*eu," Z")}else er="M ".concat(R,",").concat(W," h ").concat(G," v ").concat(J," h ").concat(-G," Z");return er},isInRectangle=function(R,W){if(!R||!W)return!1;var G=R.x,J=R.y,et=W.x,er=W.y,en=W.width,ei=W.height;if(Math.abs(en)>0&&Math.abs(ei)>0){var eo=Math.min(et,et+en),es=Math.max(et,et+en),ec=Math.min(er,er+ei),el=Math.max(er,er+ei);return G>=eo&&G<=es&&J>=ec&&J<=el}return!1},ei={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rectangle=function(R){var W,G=_objectSpread(_objectSpread({},ei),R),eo=(0,J.useRef)(),es=function(R){if(Array.isArray(R))return R}(W=(0,J.useState)(-1))||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(W,2)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(W,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),ec=es[0],el=es[1];(0,J.useEffect)(function(){if(eo.current&&eo.current.getTotalLength)try{var R=eo.current.getTotalLength();R&&el(R)}catch(R){}},[]);var eu=G.x,ed=G.y,ep=G.width,ef=G.height,eh=G.radius,eg=G.className,em=G.animationEasing,ey=G.animationDuration,ev=G.animationBegin,eb=G.isAnimationActive,e_=G.isUpdateAnimationActive;if(eu!==+eu||ed!==+ed||ep!==+ep||ef!==+ef||0===ep||0===ef)return null;var ex=(0,et.Z)("recharts-rectangle",eg);return e_?J.createElement(er.ZP,{canBegin:ec>0,from:{width:ep,height:ef,x:eu,y:ed},to:{width:ep,height:ef,x:eu,y:ed},duration:ey,animationEasing:em,isActive:e_},function(R){var W=R.width,et=R.height,ei=R.x,es=R.y;return J.createElement(er.ZP,{canBegin:ec>0,from:"0px ".concat(-1===ec?1:ec,"px"),to:"".concat(ec,"px 0px"),attributeName:"strokeDasharray",begin:ev,duration:ey,isActive:eb,easing:em},J.createElement("path",_extends({},(0,en.L6)(G,!0),{className:ex,d:getRectanglePath(ei,es,W,et,eh),ref:eo})))}):J.createElement("path",_extends({},(0,en.L6)(G,!0),{className:ex,d:getRectanglePath(eu,ed,ep,ef,eh)}))}},45108:function(R,W,G){"use strict";G.d(W,{L:function(){return Sector}});var J=G(67294),et=G(90512),er=G(52017),en=G(40048),ei=G(69055);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var getTangentCircle=function(R){var W=R.cx,G=R.cy,J=R.radius,et=R.angle,er=R.sign,ei=R.isExternal,eo=R.cornerRadius,es=R.cornerIsExternal,ec=eo*(ei?1:-1)+J,el=Math.asin(eo/ec)/en.Wk,eu=es?et:et+er*el,ed=(0,en.op)(W,G,ec,eu),ep=(0,en.op)(W,G,J,eu),ef=es?et-er*el:et;return{center:ed,circleTangency:ep,lineTangency:(0,en.op)(W,G,ec*Math.cos(el*en.Wk),ef),theta:el}},getSectorPath=function(R){var W=R.cx,G=R.cy,J=R.innerRadius,et=R.outerRadius,er=R.startAngle,eo=R.endAngle,es=(0,ei.uY)(eo-er)*Math.min(Math.abs(eo-er),359.999),ec=er+es,el=(0,en.op)(W,G,et,er),eu=(0,en.op)(W,G,et,ec),ed="M ".concat(el.x,",").concat(el.y,"\n    A ").concat(et,",").concat(et,",0,\n    ").concat(+(Math.abs(es)>180),",").concat(+(er>ec),",\n    ").concat(eu.x,",").concat(eu.y,"\n  ");if(J>0){var ep=(0,en.op)(W,G,J,er),ef=(0,en.op)(W,G,J,ec);ed+="L ".concat(ef.x,",").concat(ef.y,"\n            A ").concat(J,",").concat(J,",0,\n            ").concat(+(Math.abs(es)>180),",").concat(+(er<=ec),",\n            ").concat(ep.x,",").concat(ep.y," Z")}else ed+="L ".concat(W,",").concat(G," Z");return ed},getSectorWithCorner=function(R){var W=R.cx,G=R.cy,J=R.innerRadius,et=R.outerRadius,er=R.cornerRadius,en=R.forceCornerRadius,eo=R.cornerIsExternal,es=R.startAngle,ec=R.endAngle,el=(0,ei.uY)(ec-es),eu=getTangentCircle({cx:W,cy:G,radius:et,angle:es,sign:el,cornerRadius:er,cornerIsExternal:eo}),ed=eu.circleTangency,ep=eu.lineTangency,ef=eu.theta,eh=getTangentCircle({cx:W,cy:G,radius:et,angle:ec,sign:-el,cornerRadius:er,cornerIsExternal:eo}),eg=eh.circleTangency,em=eh.lineTangency,ey=eh.theta,ev=eo?Math.abs(es-ec):Math.abs(es-ec)-ef-ey;if(ev<0)return en?"M ".concat(ep.x,",").concat(ep.y,"\n        a").concat(er,",").concat(er,",0,0,1,").concat(2*er,",0\n        a").concat(er,",").concat(er,",0,0,1,").concat(-(2*er),",0\n      "):getSectorPath({cx:W,cy:G,innerRadius:J,outerRadius:et,startAngle:es,endAngle:ec});var eb="M ".concat(ep.x,",").concat(ep.y,"\n    A").concat(er,",").concat(er,",0,0,").concat(+(el<0),",").concat(ed.x,",").concat(ed.y,"\n    A").concat(et,",").concat(et,",0,").concat(+(ev>180),",").concat(+(el<0),",").concat(eg.x,",").concat(eg.y,"\n    A").concat(er,",").concat(er,",0,0,").concat(+(el<0),",").concat(em.x,",").concat(em.y,"\n  ");if(J>0){var e_=getTangentCircle({cx:W,cy:G,radius:J,angle:es,sign:el,isExternal:!0,cornerRadius:er,cornerIsExternal:eo}),ex=e_.circleTangency,ew=e_.lineTangency,eS=e_.theta,eT=getTangentCircle({cx:W,cy:G,radius:J,angle:ec,sign:-el,isExternal:!0,cornerRadius:er,cornerIsExternal:eo}),eO=eT.circleTangency,eP=eT.lineTangency,eC=eT.theta,ek=eo?Math.abs(es-ec):Math.abs(es-ec)-eS-eC;if(ek<0&&0===er)return"".concat(eb,"L").concat(W,",").concat(G,"Z");eb+="L".concat(eP.x,",").concat(eP.y,"\n      A").concat(er,",").concat(er,",0,0,").concat(+(el<0),",").concat(eO.x,",").concat(eO.y,"\n      A").concat(J,",").concat(J,",0,").concat(+(ek>180),",").concat(+(el>0),",").concat(ex.x,",").concat(ex.y,"\n      A").concat(er,",").concat(er,",0,0,").concat(+(el<0),",").concat(ew.x,",").concat(ew.y,"Z")}else eb+="L".concat(W,",").concat(G,"Z");return eb},eo={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Sector=function(R){var W,G=_objectSpread(_objectSpread({},eo),R),en=G.cx,es=G.cy,ec=G.innerRadius,el=G.outerRadius,eu=G.cornerRadius,ed=G.forceCornerRadius,ep=G.cornerIsExternal,ef=G.startAngle,eh=G.endAngle,eg=G.className;if(el<ec||ef===eh)return null;var em=(0,et.Z)("recharts-sector",eg),ey=el-ec,ev=(0,ei.h1)(eu,ey,0,!0);return W=ev>0&&360>Math.abs(ef-eh)?getSectorWithCorner({cx:en,cy:es,innerRadius:ec,outerRadius:el,cornerRadius:Math.min(ev,ey/2),forceCornerRadius:ed,cornerIsExternal:ep,startAngle:ef,endAngle:eh}):getSectorPath({cx:en,cy:es,innerRadius:ec,outerRadius:el,startAngle:ef,endAngle:eh}),J.createElement("path",_extends({},(0,er.L6)(G,!0),{className:em,d:W,role:"img"}))}},21138:function(R,W,G){"use strict";G.d(W,{v:function(){return Symbols}});var J=G(67294),et=G(11700),er=G.n(et);let en=Math.cos,ei=Math.sin,eo=Math.sqrt,es=Math.PI,ec=2*es;var el={draw(R,W){let G=eo(W/es);R.moveTo(G,0),R.arc(0,0,G,0,ec)}};let eu=eo(1/3),ed=2*eu,ep=ei(es/10)/ei(7*es/10),ef=ei(ec/10)*ep,eh=-en(ec/10)*ep,eg=eo(3),em=eo(3)/2,ey=1/eo(12),ev=(ey/2+1)*3;var eb=G(20309),e_=G(52882);eo(3),eo(3);var ex=G(90512),ew=G(52017);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var eS=["type","size","sizeType"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var eT={symbolCircle:el,symbolCross:{draw(R,W){let G=eo(W/5)/2;R.moveTo(-3*G,-G),R.lineTo(-G,-G),R.lineTo(-G,-3*G),R.lineTo(G,-3*G),R.lineTo(G,-G),R.lineTo(3*G,-G),R.lineTo(3*G,G),R.lineTo(G,G),R.lineTo(G,3*G),R.lineTo(-G,3*G),R.lineTo(-G,G),R.lineTo(-3*G,G),R.closePath()}},symbolDiamond:{draw(R,W){let G=eo(W/ed),J=G*eu;R.moveTo(0,-G),R.lineTo(J,0),R.lineTo(0,G),R.lineTo(-J,0),R.closePath()}},symbolSquare:{draw(R,W){let G=eo(W),J=-G/2;R.rect(J,J,G,G)}},symbolStar:{draw(R,W){let G=eo(.8908130915292852*W),J=ef*G,et=eh*G;R.moveTo(0,-G),R.lineTo(J,et);for(let W=1;W<5;++W){let er=ec*W/5,eo=en(er),es=ei(er);R.lineTo(es*G,-eo*G),R.lineTo(eo*J-es*et,es*J+eo*et)}R.closePath()}},symbolTriangle:{draw(R,W){let G=-eo(W/(3*eg));R.moveTo(0,2*G),R.lineTo(-eg*G,-G),R.lineTo(eg*G,-G),R.closePath()}},symbolWye:{draw(R,W){let G=eo(W/ev),J=G/2,et=G*ey,er=G*ey+G,en=-J;R.moveTo(J,et),R.lineTo(J,er),R.lineTo(en,er),R.lineTo(-.5*J-em*et,em*J+-.5*et),R.lineTo(-.5*J-em*er,em*J+-.5*er),R.lineTo(-.5*en-em*er,em*en+-.5*er),R.lineTo(-.5*J+em*et,-.5*et-em*J),R.lineTo(-.5*J+em*er,-.5*er-em*J),R.lineTo(-.5*en+em*er,-.5*er-em*en),R.closePath()}}},eO=Math.PI/180,calculateAreaSize=function(R,W,G){if("area"===W)return R;switch(G){case"cross":return 5*R*R/9;case"diamond":return .5*R*R/Math.sqrt(3);case"square":return R*R;case"star":var J=18*eO;return 1.25*R*R*(Math.tan(J)-Math.tan(2*J)*Math.pow(Math.tan(J),2));case"triangle":return Math.sqrt(3)*R*R/4;case"wye":return(21-10*Math.sqrt(3))*R*R/8;default:return Math.PI*R*R/4}},Symbols=function(R){var W,G=R.type,et=void 0===G?"circle":G,en=R.size,ei=void 0===en?64:en,eo=R.sizeType,es=void 0===eo?"area":eo,ec=_objectSpread(_objectSpread({},function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,eS)),{},{type:et,size:ei,sizeType:es}),eu=ec.className,ed=ec.cx,ep=ec.cy,ef=(0,ew.L6)(ec,!0);return ed===+ed&&ep===+ep&&ei===+ei?J.createElement("path",_extends({},ef,{className:(0,ex.Z)("recharts-symbols",eu),transform:"translate(".concat(ed,", ").concat(ep,")"),d:(W=eT["symbol".concat(er()(et))]||el,(function(R,W){let G=null,J=(0,e_.d)(symbol);function symbol(){let et;if(G||(G=et=J()),R.apply(this,arguments).draw(G,+W.apply(this,arguments)),et)return G=null,et+""||null}return R="function"==typeof R?R:(0,eb.Z)(R||el),W="function"==typeof W?W:(0,eb.Z)(void 0===W?64:+W),symbol.type=function(W){return arguments.length?(R="function"==typeof W?W:(0,eb.Z)(W),symbol):R},symbol.size=function(R){return arguments.length?(W="function"==typeof R?R:(0,eb.Z)(+R),symbol):W},symbol.context=function(R){return arguments.length?(G=null==R?null:R,symbol):G},symbol})().type(W).size(calculateAreaSize(ei,es,et))())})):null};Symbols.registerSymbol=function(R,W){eT["symbol".concat(er()(R))]=W}},49465:function(R,W,G){"use strict";G.d(W,{bn:function(){return Shape},a3:function(){return getActiveShapeIndexForTooltip},lT:function(){return isFunnel},V$:function(){return isPie},w7:function(){return isScatter}});var J=G(67294),et=G(23560),er=G.n(et),en=G(68630),ei=G.n(en),eo=G(51584),es=G.n(eo),ec=G(18446),el=G.n(ec),eu=G(13481),ed=G(90512),ep=G(93801),ef=G(52017);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var getTrapezoidPath=function(R,W,G,J,et){var er=G-J;return"M ".concat(R,",").concat(W)+"L ".concat(R+G,",").concat(W)+"L ".concat(R+G-er/2,",").concat(W+et)+"L ".concat(R+G-er/2-J,",").concat(W+et)+"L ".concat(R,",").concat(W," Z")},eh={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Trapezoid=function(R){var W,G=_objectSpread(_objectSpread({},eh),R),et=(0,J.useRef)(),er=function(R){if(Array.isArray(R))return R}(W=(0,J.useState)(-1))||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(W,2)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(W,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),en=er[0],ei=er[1];(0,J.useEffect)(function(){if(et.current&&et.current.getTotalLength)try{var R=et.current.getTotalLength();R&&ei(R)}catch(R){}},[]);var eo=G.x,es=G.y,ec=G.upperWidth,el=G.lowerWidth,eu=G.height,eg=G.className,em=G.animationEasing,ey=G.animationDuration,ev=G.animationBegin,eb=G.isUpdateAnimationActive;if(eo!==+eo||es!==+es||ec!==+ec||el!==+el||eu!==+eu||0===ec&&0===el||0===eu)return null;var e_=(0,ed.Z)("recharts-trapezoid",eg);return eb?J.createElement(ep.ZP,{canBegin:en>0,from:{upperWidth:0,lowerWidth:0,height:eu,x:eo,y:es},to:{upperWidth:ec,lowerWidth:el,height:eu,x:eo,y:es},duration:ey,animationEasing:em,isActive:eb},function(R){var W=R.upperWidth,er=R.lowerWidth,ei=R.height,eo=R.x,es=R.y;return J.createElement(ep.ZP,{canBegin:en>0,from:"0px ".concat(-1===en?1:en,"px"),to:"".concat(en,"px 0px"),attributeName:"strokeDasharray",begin:ev,duration:ey,easing:em},J.createElement("path",_extends({},(0,ef.L6)(G,!0),{className:e_,d:getTrapezoidPath(eo,es,W,er,ei),ref:et})))}):J.createElement("g",null,J.createElement("path",_extends({},(0,ef.L6)(G,!0),{className:e_,d:getTrapezoidPath(eo,es,ec,el,eu)})))},eg=G(45108),em=G(48710),ey=G(21138),ev=["option","shapeType","propTransformer","activeClassName","isActive"];function ActiveShapeUtils_typeof(R){return(ActiveShapeUtils_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ActiveShapeUtils_ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function ActiveShapeUtils_objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ActiveShapeUtils_ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==ActiveShapeUtils_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==ActiveShapeUtils_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===ActiveShapeUtils_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ActiveShapeUtils_ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function ShapeSelector(R){var W=R.shapeType,G=R.elementProps;switch(W){case"rectangle":return J.createElement(eu.A,G);case"trapezoid":return J.createElement(Trapezoid,G);case"sector":return J.createElement(eg.L,G);case"symbols":if("symbols"===W)return J.createElement(ey.v,G);break;default:return null}}function Shape(R){var W,G=R.option,et=R.shapeType,en=R.propTransformer,eo=R.activeClassName,ec=R.isActive,el=function(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}(R,ev);if((0,J.isValidElement)(G))W=(0,J.cloneElement)(G,ActiveShapeUtils_objectSpread(ActiveShapeUtils_objectSpread({},el),(0,J.isValidElement)(G)?G.props:G));else if(er()(G))W=G(el);else if(ei()(G)&&!es()(G)){var eu=(void 0===en?function(R,W){return ActiveShapeUtils_objectSpread(ActiveShapeUtils_objectSpread({},W),R)}:en)(G,el);W=J.createElement(ShapeSelector,{shapeType:et,elementProps:eu})}else W=J.createElement(ShapeSelector,{shapeType:et,elementProps:el});return ec?J.createElement(em.m,{className:void 0===eo?"recharts-active-shape":eo},W):W}function isFunnel(R,W){return null!=W&&"trapezoids"in R.props}function isPie(R,W){return null!=W&&"sectors"in R.props}function isScatter(R,W){return null!=W&&"points"in R.props}function compareFunnel(R,W){var G,J,et=R.x===(null==W||null===(G=W.labelViewBox)||void 0===G?void 0:G.x)||R.x===W.x,er=R.y===(null==W||null===(J=W.labelViewBox)||void 0===J?void 0:J.y)||R.y===W.y;return et&&er}function comparePie(R,W){var G=R.endAngle===W.endAngle,J=R.startAngle===W.startAngle;return G&&J}function compareScatter(R,W){var G=R.x===W.x,J=R.y===W.y,et=R.z===W.z;return G&&J&&et}function getActiveShapeIndexForTooltip(R){var W,G,J,et=R.activeTooltipItem,er=R.graphicalItem,en=R.itemData,ei=(isFunnel(er,et)?W="trapezoids":isPie(er,et)?W="sectors":isScatter(er,et)&&(W="points"),W),eo=isFunnel(er,et)?null===(G=et.tooltipPayload)||void 0===G||null===(G=G[0])||void 0===G||null===(G=G.payload)||void 0===G?void 0:G.payload:isPie(er,et)?null===(J=et.tooltipPayload)||void 0===J||null===(J=J[0])||void 0===J||null===(J=J.payload)||void 0===J?void 0:J.payload:isScatter(er,et)?et.payload:{},es=en.filter(function(R,W){var G=el()(eo,R),J=er.props[ei].filter(function(R){var W;return(isFunnel(er,et)?W=compareFunnel:isPie(er,et)?W=comparePie:isScatter(er,et)&&(W=compareScatter),W)(R,et)}),en=er.props[ei].indexOf(J[J.length-1]);return G&&W===en});return en.indexOf(es[es.length-1])}},97187:function(R,W,G){"use strict";G.d(W,{Ky:function(){return createLabeledScales},O1:function(){return rectWithPoints},_b:function(){return rectWithCoords},t9:function(){return formatAxisMap},xE:function(){return getAngledRectangleWidth}});var J=G(66604),et=G.n(J),er=G(711),en=G.n(er),ei=G(48722),eo=G(52017),es=G(69055),ec=G(18001);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,_toPropertyKey(J.key),J)}}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperty(R,W,G){return(W=_toPropertyKey(W))in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function _toPropertyKey(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}var formatAxisMap=function(R,W,G,J,et){var er=R.width,en=R.height,el=R.layout,eu=R.children,ed=Object.keys(W),ep={left:G.left,leftMirror:G.left,right:er-G.right,rightMirror:er-G.right,top:G.top,topMirror:G.top,bottom:en-G.bottom,bottomMirror:en-G.bottom},ef=!!(0,eo.sP)(eu,ec.$);return ed.reduce(function(er,en){var eo,ec,eu,ed,eh,eg=W[en],em=eg.orientation,ey=eg.domain,ev=eg.padding,eb=void 0===ev?{}:ev,e_=eg.mirror,ex=eg.reversed,ew="".concat(em).concat(e_?"Mirror":"");if("number"===eg.type&&("gap"===eg.padding||"no-gap"===eg.padding)){var eS=ey[1]-ey[0],eT=1/0,eO=eg.categoricalDomain.sort();eO.forEach(function(R,W){W>0&&(eT=Math.min((R||0)-(eO[W-1]||0),eT))});var eP=eT/eS,eC="vertical"===eg.layout?G.height:G.width;if("gap"===eg.padding&&(eo=eP*eC/2),"no-gap"===eg.padding){var ek=(0,es.h1)(R.barCategoryGap,eP*eC),eE=eP*eC/2;eo=eE-ek-(eE-ek)/eC*ek}}ec="xAxis"===J?[G.left+(eb.left||0)+(eo||0),G.left+G.width-(eb.right||0)-(eo||0)]:"yAxis"===J?"horizontal"===el?[G.top+G.height-(eb.bottom||0),G.top+(eb.top||0)]:[G.top+(eb.top||0)+(eo||0),G.top+G.height-(eb.bottom||0)-(eo||0)]:eg.range,ex&&(ec=[ec[1],ec[0]]);var ej=(0,ei.Hq)(eg,et,ef),eA=ej.scale,eD=ej.realScaleType;eA.domain(ey).range(ec),(0,ei.zF)(eA);var eI=(0,ei.g$)(eA,_objectSpread(_objectSpread({},eg),{},{realScaleType:eD}));"xAxis"===J?(eh="top"===em&&!e_||"bottom"===em&&e_,eu=G.left,ed=ep[ew]-eh*eg.height):"yAxis"===J&&(eh="left"===em&&!e_||"right"===em&&e_,eu=ep[ew]-eh*eg.width,ed=G.top);var eM=_objectSpread(_objectSpread(_objectSpread({},eg),eI),{},{realScaleType:eD,x:eu,y:ed,scale:eA,width:"xAxis"===J?G.width:eg.width,height:"yAxis"===J?G.height:eg.height});return eM.bandSize=(0,ei.zT)(eM,eI),eg.hide||"xAxis"!==J?eg.hide||(ep[ew]+=(eh?-1:1)*eM.width):ep[ew]+=(eh?-1:1)*eM.height,_objectSpread(_objectSpread({},er),{},_defineProperty({},en,eM))},{})},rectWithPoints=function(R,W){var G=R.x,J=R.y,et=W.x,er=W.y;return{x:Math.min(G,et),y:Math.min(J,er),width:Math.abs(et-G),height:Math.abs(er-J)}},rectWithCoords=function(R){return rectWithPoints({x:R.x1,y:R.y1},{x:R.x2,y:R.y2})},el=function(){var R,W;function ScaleHelper(R){!function(R,W){if(!(R instanceof W))throw TypeError("Cannot call a class as a function")}(this,ScaleHelper),this.scale=R}return R=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(R){var W=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},G=W.bandAware,J=W.position;if(void 0!==R){if(J)switch(J){case"start":default:return this.scale(R);case"middle":var et=this.bandwidth?this.bandwidth()/2:0;return this.scale(R)+et;case"end":var er=this.bandwidth?this.bandwidth():0;return this.scale(R)+er}if(G){var en=this.bandwidth?this.bandwidth()/2:0;return this.scale(R)+en}return this.scale(R)}}},{key:"isInRange",value:function(R){var W=this.range(),G=W[0],J=W[W.length-1];return G<=J?R>=G&&R<=J:R>=J&&R<=G}}],W=[{key:"create",value:function(R){return new ScaleHelper(R)}}],R&&_defineProperties(ScaleHelper.prototype,R),W&&_defineProperties(ScaleHelper,W),Object.defineProperty(ScaleHelper,"prototype",{writable:!1}),ScaleHelper}();_defineProperty(el,"EPS",1e-4);var createLabeledScales=function(R){var W=Object.keys(R).reduce(function(W,G){return _objectSpread(_objectSpread({},W),{},_defineProperty({},G,el.create(R[G])))},{});return _objectSpread(_objectSpread({},W),{},{apply:function(R){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},J=G.bandAware,er=G.position;return et()(R,function(R,G){return W[G].apply(R,{bandAware:J,position:er})})},isInRange:function(R){return en()(R,function(R,G){return W[G].isInRange(R)})}})},getAngledRectangleWidth=function(R){var W=R.width,G=R.height,J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,et=(J%180+180)%180*Math.PI/180,er=Math.atan(G/W);return Math.abs(et>er&&et<Math.PI-er?G/Math.sin(et):W/Math.cos(et))}},48722:function(R,W,G){"use strict";G.d(W,{By:function(){return appendOffsetOfLegend},VO:function(){return calculateActiveTickIndex},zF:function(){return checkDomainOfScale},DO:function(){return combineEventHandlers},Bu:function(){return findPositionOfBar},zT:function(){return getBandSizeOfAxis},qz:function(){return getBarPosition},pt:function(){return getBarSizeList},Yj:function(){return getBaseValueOfBar},Fy:function(){return getCateCoordinateOfBar},Hv:function(){return getCateCoordinateOfLine},Rf:function(){return getCoordinatesOfGrid},gF:function(){return getDomainOfDataByKey},s6:function(){return getDomainOfItemsWithSameAxis},EB:function(){return getDomainOfStackGroups},fk:function(){return getMainColorOfGraphicItem},wh:function(){return getStackGroupsByAxisId},O3:function(){return getStackedDataOfItem},uY:function(){return getTicksOfAxis},g$:function(){return getTicksOfScale},Qo:function(){return getTooltipItem},F$:function(){return getValueByDataKey},NA:function(){return isCategoricalAxis},ko:function(){return parseDomainOfCategoryAxis},ZI:function(){return parseErrorBarsOfAxis},Hq:function(){return parseScale},LG:function(){return parseSpecifiedDomain},Vv:function(){return truncateByDomain}});var J,et,er,en,ei,eo,es,ec={};G.r(ec),G.d(ec,{scaleBand:function(){return el.Z},scaleDiverging:function(){return function diverging(){var R=linearish(diverging_transformer()(identity));return R.copy=function(){return sequential_copy(R,diverging())},ej.O.apply(R,arguments)}},scaleDivergingLog:function(){return function divergingLog(){var R=loggish(diverging_transformer()).domain([.1,1,10]);return R.copy=function(){return sequential_copy(R,divergingLog()).base(R.base())},ej.O.apply(R,arguments)}},scaleDivergingPow:function(){return divergingPow},scaleDivergingSqrt:function(){return divergingSqrt},scaleDivergingSymlog:function(){return function divergingSymlog(){var R=symlogish(diverging_transformer());return R.copy=function(){return sequential_copy(R,divergingSymlog()).constant(R.constant())},ej.O.apply(R,arguments)}},scaleIdentity:function(){return function identity_identity(R){var W;function scale(R){return null==R||isNaN(R=+R)?W:R}return scale.invert=scale,scale.domain=scale.range=function(W){return arguments.length?(R=Array.from(W,src_number_number),scale):R.slice()},scale.unknown=function(R){return arguments.length?(W=R,scale):W},scale.copy=function(){return identity_identity(R).unknown(W)},R=arguments.length?Array.from(R,src_number_number):[0,1],linearish(scale)}},scaleImplicit:function(){return eL.O},scaleLinear:function(){return linear_linear},scaleLog:function(){return function log(){let R=loggish(transformer()).domain([1,10]);return R.copy=()=>copy(R,log()).base(R.base()),ej.o.apply(R,arguments),R}},scaleOrdinal:function(){return eL.Z},scalePoint:function(){return el.x},scalePow:function(){return pow},scaleQuantile:function(){return function quantile_quantile(){var R,W=[],G=[],J=[];function rescale(){var R=0,et=Math.max(1,G.length);for(J=Array(et-1);++R<et;)J[R-1]=function(R,W,G=number_number){if(!(!(J=R.length)||isNaN(W=+W))){if(W<=0||J<2)return+G(R[0],0,R);if(W>=1)return+G(R[J-1],J-1,R);var J,et=(J-1)*W,er=Math.floor(et),en=+G(R[er],er,R);return en+(+G(R[er+1],er+1,R)-en)*(et-er)}}(W,R/et);return scale}function scale(W){return null==W||isNaN(W=+W)?R:G[eh(J,W)]}return scale.invertExtent=function(R){var et=G.indexOf(R);return et<0?[NaN,NaN]:[et>0?J[et-1]:W[0],et<J.length?J[et]:W[W.length-1]]},scale.domain=function(R){if(!arguments.length)return W.slice();for(let G of(W=[],R))null==G||isNaN(G=+G)||W.push(G);return W.sort(ascending),rescale()},scale.range=function(R){return arguments.length?(G=Array.from(R),rescale()):G.slice()},scale.unknown=function(W){return arguments.length?(R=W,scale):R},scale.quantiles=function(){return J.slice()},scale.copy=function(){return quantile_quantile().domain(W).range(G).unknown(R)},ej.o.apply(scale,arguments)}},scaleQuantize:function(){return function quantize(){var R,W=0,G=1,J=1,et=[.5],er=[0,1];function scale(W){return null!=W&&W<=W?er[eh(et,W,0,J)]:R}function rescale(){var R=-1;for(et=Array(J);++R<J;)et[R]=((R+1)*G-(R-J)*W)/(J+1);return scale}return scale.domain=function(R){return arguments.length?([W,G]=R,W=+W,G=+G,rescale()):[W,G]},scale.range=function(R){return arguments.length?(J=(er=Array.from(R)).length-1,rescale()):er.slice()},scale.invertExtent=function(R){var en=er.indexOf(R);return en<0?[NaN,NaN]:en<1?[W,et[0]]:en>=J?[et[J-1],G]:[et[en-1],et[en]]},scale.unknown=function(W){return arguments.length&&(R=W),scale},scale.thresholds=function(){return et.slice()},scale.copy=function(){return quantize().domain([W,G]).range(er).unknown(R)},ej.o.apply(linearish(scale),arguments)}},scaleRadial:function(){return function radial(){var R,W=continuous(),G=[0,1],J=!1;function scale(G){var et,er=Math.sign(et=W(G))*Math.sqrt(Math.abs(et));return isNaN(er)?R:J?Math.round(er):er}return scale.invert=function(R){return W.invert(square(R))},scale.domain=function(R){return arguments.length?(W.domain(R),scale):W.domain()},scale.range=function(R){return arguments.length?(W.range((G=Array.from(R,src_number_number)).map(square)),scale):G.slice()},scale.rangeRound=function(R){return scale.range(R).round(!0)},scale.round=function(R){return arguments.length?(J=!!R,scale):J},scale.clamp=function(R){return arguments.length?(W.clamp(R),scale):W.clamp()},scale.unknown=function(W){return arguments.length?(R=W,scale):R},scale.copy=function(){return radial(W.domain(),G).round(J).clamp(W.clamp()).unknown(R)},ej.o.apply(scale,arguments),linearish(scale)}},scaleSequential:function(){return function sequential(){var R=linearish(sequential_transformer()(identity));return R.copy=function(){return sequential_copy(R,sequential())},ej.O.apply(R,arguments)}},scaleSequentialLog:function(){return function sequentialLog(){var R=loggish(sequential_transformer()).domain([1,10]);return R.copy=function(){return sequential_copy(R,sequentialLog()).base(R.base())},ej.O.apply(R,arguments)}},scaleSequentialPow:function(){return sequentialPow},scaleSequentialQuantile:function(){return function sequentialQuantile(){var R=[],W=identity;function scale(G){if(null!=G&&!isNaN(G=+G))return W((eh(R,G,1)-1)/(R.length-1))}return scale.domain=function(W){if(!arguments.length)return R.slice();for(let G of(R=[],W))null==G||isNaN(G=+G)||R.push(G);return R.sort(ascending),scale},scale.interpolator=function(R){return arguments.length?(W=R,scale):W},scale.range=function(){return R.map((G,J)=>W(J/(R.length-1)))},scale.quantiles=function(W){return Array.from({length:W+1},(G,J)=>(function(R,W,G){if(!(!(J=(R=Float64Array.from(function*(R,W){if(void 0===W)for(let W of R)null!=W&&(W=+W)>=W&&(yield W);else{let G=-1;for(let J of R)null!=(J=W(J,++G,R))&&(J=+J)>=J&&(yield J)}}(R,void 0))).length)||isNaN(W=+W))){if(W<=0||J<2)return min(R);if(W>=1)return max(R);var J,et=(J-1)*W,er=Math.floor(et),en=max((function quickselect_quickselect(R,W,G=0,J=1/0,et){if(W=Math.floor(W),G=Math.floor(Math.max(0,G)),J=Math.floor(Math.min(R.length-1,J)),!(G<=W&&W<=J))return R;for(et=void 0===et?sort_ascendingDefined:function(R=ascending){if(R===ascending)return sort_ascendingDefined;if("function"!=typeof R)throw TypeError("compare is not a function");return(W,G)=>{let J=R(W,G);return J||0===J?J:(0===R(G,G))-(0===R(W,W))}}(et);J>G;){if(J-G>600){let er=J-G+1,en=W-G+1,ei=Math.log(er),eo=.5*Math.exp(2*ei/3),es=.5*Math.sqrt(ei*eo*(er-eo)/er)*(en-er/2<0?-1:1),ec=Math.max(G,Math.floor(W-en*eo/er+es)),el=Math.min(J,Math.floor(W+(er-en)*eo/er+es));quickselect_quickselect(R,W,ec,el,et)}let er=R[W],en=G,ei=J;for(swap(R,G,W),et(R[J],er)>0&&swap(R,G,J);en<ei;){for(swap(R,en,ei),++en,--ei;0>et(R[en],er);)++en;for(;et(R[ei],er)>0;)--ei}0===et(R[G],er)?swap(R,G,ei):swap(R,++ei,J),ei<=W&&(G=ei+1),W<=ei&&(J=ei-1)}return R})(R,er).subarray(0,er+1));return en+(min(R.subarray(er+1))-en)*(et-er)}})(R,J/W))},scale.copy=function(){return sequentialQuantile(W).domain(R)},ej.O.apply(scale,arguments)}},scaleSequentialSqrt:function(){return sequentialSqrt},scaleSequentialSymlog:function(){return function sequentialSymlog(){var R=symlogish(sequential_transformer());return R.copy=function(){return sequential_copy(R,sequentialSymlog()).constant(R.constant())},ej.O.apply(R,arguments)}},scaleSqrt:function(){return sqrt},scaleSymlog:function(){return function symlog(){var R=symlogish(transformer());return R.copy=function(){return copy(R,symlog()).constant(R.constant())},ej.o.apply(R,arguments)}},scaleThreshold:function(){return function threshold(){var R,W=[.5],G=[0,1],J=1;function scale(et){return null!=et&&et<=et?G[eh(W,et,0,J)]:R}return scale.domain=function(R){return arguments.length?(J=Math.min((W=Array.from(R)).length,G.length-1),scale):W.slice()},scale.range=function(R){return arguments.length?(G=Array.from(R),J=Math.min(W.length,G.length-1),scale):G.slice()},scale.invertExtent=function(R){var J=G.indexOf(R);return[W[J-1],W[J]]},scale.unknown=function(W){return arguments.length?(R=W,scale):R},scale.copy=function(){return threshold().domain(W).range(G).unknown(R)},ej.o.apply(scale,arguments)}},scaleTime:function(){return time},scaleUtc:function(){return utcTime},tickFormat:function(){return tickFormat}});var el=G(1771);let eu=Math.sqrt(50),ed=Math.sqrt(10),ep=Math.sqrt(2);function tickSpec(R,W,G){let J,et,er;let en=(W-R)/Math.max(0,G),ei=Math.floor(Math.log10(en)),eo=en/Math.pow(10,ei),es=eo>=eu?10:eo>=ed?5:eo>=ep?2:1;return(ei<0?(J=Math.round(R*(er=Math.pow(10,-ei)/es)),et=Math.round(W*er),J/er<R&&++J,et/er>W&&--et,er=-er):(J=Math.round(R/(er=Math.pow(10,ei)*es)),et=Math.round(W/er),J*er<R&&++J,et*er>W&&--et),et<J&&.5<=G&&G<2)?tickSpec(R,W,2*G):[J,et,er]}function ticks(R,W,G){if(W=+W,R=+R,!((G=+G)>0))return[];if(R===W)return[R];let J=W<R,[et,er,en]=J?tickSpec(W,R,G):tickSpec(R,W,G);if(!(er>=et))return[];let ei=er-et+1,eo=Array(ei);if(J){if(en<0)for(let R=0;R<ei;++R)eo[R]=-((er-R)/en);else for(let R=0;R<ei;++R)eo[R]=(er-R)*en}else if(en<0)for(let R=0;R<ei;++R)eo[R]=-((et+R)/en);else for(let R=0;R<ei;++R)eo[R]=(et+R)*en;return eo}function tickIncrement(R,W,G){return tickSpec(R=+R,W=+W,G=+G)[2]}function ascending(R,W){return null==R||null==W?NaN:R<W?-1:R>W?1:R>=W?0:NaN}function descending(R,W){return null==R||null==W?NaN:W<R?-1:W>R?1:W>=R?0:NaN}function bisector(R){let W,G,J;function left(R,J,et=0,er=R.length){if(et<er){if(0!==W(J,J))return er;do{let W=et+er>>>1;0>G(R[W],J)?et=W+1:er=W}while(et<er)}return et}return 2!==R.length?(W=ascending,G=(W,G)=>ascending(R(W),G),J=(W,G)=>R(W)-G):(W=R===ascending||R===descending?R:zero,G=R,J=R),{left,center:function(R,W,G=0,et=R.length){let er=left(R,W,G,et-1);return er>G&&J(R[er-1],W)>-J(R[er],W)?er-1:er},right:function(R,J,et=0,er=R.length){if(et<er){if(0!==W(J,J))return er;do{let W=et+er>>>1;0>=G(R[W],J)?et=W+1:er=W}while(et<er)}return et}}}function zero(){return 0}function number_number(R){return null===R?NaN:+R}let ef=bisector(ascending),eh=ef.right;function src_define(R,W,G){R.prototype=W.prototype=G,G.constructor=R}function extend(R,W){var G=Object.create(R.prototype);for(var J in W)G[J]=W[J];return G}function Color(){}ef.left,bisector(number_number).center;var eg="\\s*([+-]?\\d+)\\s*",em="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ey="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ev=/^#([0-9a-f]{3,8})$/,eb=RegExp(`^rgb\\(${eg},${eg},${eg}\\)$`),e_=RegExp(`^rgb\\(${ey},${ey},${ey}\\)$`),ex=RegExp(`^rgba\\(${eg},${eg},${eg},${em}\\)$`),ew=RegExp(`^rgba\\(${ey},${ey},${ey},${em}\\)$`),eS=RegExp(`^hsl\\(${em},${ey},${ey}\\)$`),eT=RegExp(`^hsla\\(${em},${ey},${ey},${em}\\)$`),eO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color(R){var W,G;return R=(R+"").trim().toLowerCase(),(W=ev.exec(R))?(G=W[1].length,W=parseInt(W[1],16),6===G?rgbn(W):3===G?new Rgb(W>>8&15|W>>4&240,W>>4&15|240&W,(15&W)<<4|15&W,1):8===G?rgba(W>>24&255,W>>16&255,W>>8&255,(255&W)/255):4===G?rgba(W>>12&15|W>>8&240,W>>8&15|W>>4&240,W>>4&15|240&W,((15&W)<<4|15&W)/255):null):(W=eb.exec(R))?new Rgb(W[1],W[2],W[3],1):(W=e_.exec(R))?new Rgb(255*W[1]/100,255*W[2]/100,255*W[3]/100,1):(W=ex.exec(R))?rgba(W[1],W[2],W[3],W[4]):(W=ew.exec(R))?rgba(255*W[1]/100,255*W[2]/100,255*W[3]/100,W[4]):(W=eS.exec(R))?hsla(W[1],W[2]/100,W[3]/100,1):(W=eT.exec(R))?hsla(W[1],W[2]/100,W[3]/100,W[4]):eO.hasOwnProperty(R)?rgbn(eO[R]):"transparent"===R?new Rgb(NaN,NaN,NaN,0):null}function rgbn(R){return new Rgb(R>>16&255,R>>8&255,255&R,1)}function rgba(R,W,G,J){return J<=0&&(R=W=G=NaN),new Rgb(R,W,G,J)}function color_rgb(R,W,G,J){var et;return 1==arguments.length?((et=R)instanceof Color||(et=color(et)),et)?(et=et.rgb(),new Rgb(et.r,et.g,et.b,et.opacity)):new Rgb:new Rgb(R,W,G,null==J?1:J)}function Rgb(R,W,G,J){this.r=+R,this.g=+W,this.b=+G,this.opacity=+J}function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatRgb(){let R=clampa(this.opacity);return`${1===R?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1===R?")":`, ${R})`}`}function clampa(R){return isNaN(R)?1:Math.max(0,Math.min(1,R))}function clampi(R){return Math.max(0,Math.min(255,Math.round(R)||0))}function hex(R){return((R=clampi(R))<16?"0":"")+R.toString(16)}function hsla(R,W,G,J){return J<=0?R=W=G=NaN:G<=0||G>=1?R=W=NaN:W<=0&&(R=NaN),new Hsl(R,W,G,J)}function hslConvert(R){if(R instanceof Hsl)return new Hsl(R.h,R.s,R.l,R.opacity);if(R instanceof Color||(R=color(R)),!R)return new Hsl;if(R instanceof Hsl)return R;var W=(R=R.rgb()).r/255,G=R.g/255,J=R.b/255,et=Math.min(W,G,J),er=Math.max(W,G,J),en=NaN,ei=er-et,eo=(er+et)/2;return ei?(en=W===er?(G-J)/ei+(G<J)*6:G===er?(J-W)/ei+2:(W-G)/ei+4,ei/=eo<.5?er+et:2-er-et,en*=60):ei=eo>0&&eo<1?0:en,new Hsl(en,ei,eo,R.opacity)}function Hsl(R,W,G,J){this.h=+R,this.s=+W,this.l=+G,this.opacity=+J}function clamph(R){return(R=(R||0)%360)<0?R+360:R}function clampt(R){return Math.max(0,Math.min(1,R||0))}function hsl2rgb(R,W,G){return(R<60?W+(G-W)*R/60:R<180?G:R<240?W+(G-W)*(240-R)/60:W)*255}function basis(R,W,G,J,et){var er=R*R,en=er*R;return((1-3*R+3*er-en)*W+(4-6*er+3*en)*G+(1+3*R+3*er-3*en)*J+en*et)/6}src_define(Color,color,{copy(R){return Object.assign(new this.constructor,this,R)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),src_define(Rgb,color_rgb,extend(Color,{brighter(R){return R=null==R?1.4285714285714286:Math.pow(1.4285714285714286,R),new Rgb(this.r*R,this.g*R,this.b*R,this.opacity)},darker(R){return R=null==R?.7:Math.pow(.7,R),new Rgb(this.r*R,this.g*R,this.b*R,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:function(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),src_define(Hsl,function(R,W,G,J){return 1==arguments.length?hslConvert(R):new Hsl(R,W,G,null==J?1:J)},extend(Color,{brighter(R){return R=null==R?1.4285714285714286:Math.pow(1.4285714285714286,R),new Hsl(this.h,this.s,this.l*R,this.opacity)},darker(R){return R=null==R?.7:Math.pow(.7,R),new Hsl(this.h,this.s,this.l*R,this.opacity)},rgb(){var R=this.h%360+(this.h<0)*360,W=isNaN(R)||isNaN(this.s)?0:this.s,G=this.l,J=G+(G<.5?G:1-G)*W,et=2*G-J;return new Rgb(hsl2rgb(R>=240?R-240:R+120,et,J),hsl2rgb(R,et,J),hsl2rgb(R<120?R+240:R-120,et,J),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let R=clampa(this.opacity);return`${1===R?"hsl(":"hsla("}${clamph(this.h)}, ${100*clampt(this.s)}%, ${100*clampt(this.l)}%${1===R?")":`, ${R})`}`}}));var src_constant=R=>()=>R;function nogamma(R,W){var G=W-R;return G?function(W){return R+W*G}:src_constant(isNaN(R)?W:R)}var eP=function rgbGamma(R){var W,G=1==(W=+(W=R))?nogamma:function(R,G){var J,et,er;return G-R?(J=R,et=G,J=Math.pow(J,er=W),et=Math.pow(et,er)-J,er=1/er,function(R){return Math.pow(J+R*et,er)}):src_constant(isNaN(R)?G:R)};function rgb(R,W){var J=G((R=color_rgb(R)).r,(W=color_rgb(W)).r),et=G(R.g,W.g),er=G(R.b,W.b),en=nogamma(R.opacity,W.opacity);return function(W){return R.r=J(W),R.g=et(W),R.b=er(W),R.opacity=en(W),R+""}}return rgb.gamma=rgbGamma,rgb}(1);function rgbSpline(R){return function(W){var G,J,et=W.length,er=Array(et),en=Array(et),ei=Array(et);for(G=0;G<et;++G)J=color_rgb(W[G]),er[G]=J.r||0,en[G]=J.g||0,ei[G]=J.b||0;return er=R(er),en=R(en),ei=R(ei),J.opacity=1,function(R){return J.r=er(R),J.g=en(R),J.b=ei(R),J+""}}}function src_number(R,W){return R=+R,W=+W,function(G){return R*(1-G)+W*G}}rgbSpline(function(R){var W=R.length-1;return function(G){var J=G<=0?G=0:G>=1?(G=1,W-1):Math.floor(G*W),et=R[J],er=R[J+1],en=J>0?R[J-1]:2*et-er,ei=J<W-1?R[J+2]:2*er-et;return basis((G-J/W)*W,en,et,er,ei)}}),rgbSpline(function(R){var W=R.length;return function(G){var J=Math.floor(((G%=1)<0?++G:G)*W),et=R[(J+W-1)%W],er=R[J%W],en=R[(J+1)%W],ei=R[(J+2)%W];return basis((G-J/W)*W,et,er,en,ei)}});var eC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ek=RegExp(eC.source,"g");function value(R,W){var G,J,et=typeof W;return null==W||"boolean"===et?src_constant(W):("number"===et?src_number:"string"===et?(J=color(W))?(W=J,eP):function(R,W){var G,J,et,er,en,ei=eC.lastIndex=ek.lastIndex=0,eo=-1,es=[],ec=[];for(R+="",W+="";(et=eC.exec(R))&&(er=ek.exec(W));)(en=er.index)>ei&&(en=W.slice(ei,en),es[eo]?es[eo]+=en:es[++eo]=en),(et=et[0])===(er=er[0])?es[eo]?es[eo]+=er:es[++eo]=er:(es[++eo]=null,ec.push({i:eo,x:src_number(et,er)})),ei=ek.lastIndex;return ei<W.length&&(en=W.slice(ei),es[eo]?es[eo]+=en:es[++eo]=en),es.length<2?ec[0]?(G=ec[0].x,function(R){return G(R)+""}):(J=W,function(){return J}):(W=ec.length,function(R){for(var G,J=0;J<W;++J)es[(G=ec[J]).i]=G.x(R);return es.join("")})}:W instanceof color?eP:W instanceof Date?function(R,W){var G=new Date;return R=+R,W=+W,function(J){return G.setTime(R*(1-J)+W*J),G}}:(G=W,!ArrayBuffer.isView(G)||G instanceof DataView)?Array.isArray(W)?function(R,W){var G,J=W?W.length:0,et=R?Math.min(J,R.length):0,er=Array(et),en=Array(J);for(G=0;G<et;++G)er[G]=value(R[G],W[G]);for(;G<J;++G)en[G]=W[G];return function(R){for(G=0;G<et;++G)en[G]=er[G](R);return en}}:"function"!=typeof W.valueOf&&"function"!=typeof W.toString||isNaN(W)?function(R,W){var G,J={},et={};for(G in(null===R||"object"!=typeof R)&&(R={}),(null===W||"object"!=typeof W)&&(W={}),W)G in R?J[G]=value(R[G],W[G]):et[G]=W[G];return function(R){for(G in J)et[G]=J[G](R);return et}}:src_number:function(R,W){W||(W=[]);var G,J=R?Math.min(W.length,R.length):0,et=W.slice();return function(er){for(G=0;G<J;++G)et[G]=R[G]*(1-er)+W[G]*er;return et}})(R,W)}function round(R,W){return R=+R,W=+W,function(G){return Math.round(R*(1-G)+W*G)}}function src_number_number(R){return+R}var eE=[0,1];function identity(R){return R}function normalize(R,W){var G;return(W-=R=+R)?function(G){return(G-R)/W}:(G=isNaN(W)?NaN:.5,function(){return G})}function bimap(R,W,G){var J=R[0],et=R[1],er=W[0],en=W[1];return et<J?(J=normalize(et,J),er=G(en,er)):(J=normalize(J,et),er=G(er,en)),function(R){return er(J(R))}}function polymap(R,W,G){var J=Math.min(R.length,W.length)-1,et=Array(J),er=Array(J),en=-1;for(R[J]<R[0]&&(R=R.slice().reverse(),W=W.slice().reverse());++en<J;)et[en]=normalize(R[en],R[en+1]),er[en]=G(W[en],W[en+1]);return function(W){var G=eh(R,W,1,J)-1;return er[G](et[G](W))}}function copy(R,W){return W.domain(R.domain()).range(R.range()).interpolate(R.interpolate()).clamp(R.clamp()).unknown(R.unknown())}function transformer(){var R,W,G,J,et,er,en=eE,ei=eE,eo=value,es=identity;function rescale(){var R,W,G,eo=Math.min(en.length,ei.length);return es!==identity&&(R=en[0],W=en[eo-1],R>W&&(G=R,R=W,W=G),es=function(G){return Math.max(R,Math.min(W,G))}),J=eo>2?polymap:bimap,et=er=null,scale}function scale(W){return null==W||isNaN(W=+W)?G:(et||(et=J(en.map(R),ei,eo)))(R(es(W)))}return scale.invert=function(G){return es(W((er||(er=J(ei,en.map(R),src_number)))(G)))},scale.domain=function(R){return arguments.length?(en=Array.from(R,src_number_number),rescale()):en.slice()},scale.range=function(R){return arguments.length?(ei=Array.from(R),rescale()):ei.slice()},scale.rangeRound=function(R){return ei=Array.from(R),eo=round,rescale()},scale.clamp=function(R){return arguments.length?(es=!!R||identity,rescale()):es!==identity},scale.interpolate=function(R){return arguments.length?(eo=R,rescale()):eo},scale.unknown=function(R){return arguments.length?(G=R,scale):G},function(G,J){return R=G,W=J,rescale()}}function continuous(){return transformer()(identity,identity)}var ej=G(94182),eA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(R){var W;if(!(W=eA.exec(R)))throw Error("invalid format: "+R);return new FormatSpecifier({fill:W[1],align:W[2],sign:W[3],symbol:W[4],zero:W[5],width:W[6],comma:W[7],precision:W[8]&&W[8].slice(1),trim:W[9],type:W[10]})}function FormatSpecifier(R){this.fill=void 0===R.fill?" ":R.fill+"",this.align=void 0===R.align?">":R.align+"",this.sign=void 0===R.sign?"-":R.sign+"",this.symbol=void 0===R.symbol?"":R.symbol+"",this.zero=!!R.zero,this.width=void 0===R.width?void 0:+R.width,this.comma=!!R.comma,this.precision=void 0===R.precision?void 0:+R.precision,this.trim=!!R.trim,this.type=void 0===R.type?"":R.type+""}function formatDecimalParts(R,W){if((G=(R=W?R.toExponential(W-1):R.toExponential()).indexOf("e"))<0)return null;var G,J=R.slice(0,G);return[J.length>1?J[0]+J.slice(2):J,+R.slice(G+1)]}function exponent(R){return(R=formatDecimalParts(Math.abs(R)))?R[1]:NaN}function formatRounded(R,W){var G=formatDecimalParts(R,W);if(!G)return R+"";var J=G[0],et=G[1];return et<0?"0."+Array(-et).join("0")+J:J.length>et+1?J.slice(0,et+1)+"."+J.slice(et+1):J+Array(et-J.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var eD={"%":(R,W)=>(100*R).toFixed(W),b:R=>Math.round(R).toString(2),c:R=>R+"",d:function(R){return Math.abs(R=Math.round(R))>=1e21?R.toLocaleString("en").replace(/,/g,""):R.toString(10)},e:(R,W)=>R.toExponential(W),f:(R,W)=>R.toFixed(W),g:(R,W)=>R.toPrecision(W),o:R=>Math.round(R).toString(8),p:(R,W)=>formatRounded(100*R,W),r:formatRounded,s:function(R,W){var G=formatDecimalParts(R,W);if(!G)return R+"";var et=G[0],er=G[1],en=er-(J=3*Math.max(-8,Math.min(8,Math.floor(er/3))))+1,ei=et.length;return en===ei?et:en>ei?et+Array(en-ei+1).join("0"):en>0?et.slice(0,en)+"."+et.slice(en):"0."+Array(1-en).join("0")+formatDecimalParts(R,Math.max(0,W+en-1))[0]},X:R=>Math.round(R).toString(16).toUpperCase(),x:R=>Math.round(R).toString(16)};function src_identity(R){return R}var eI=Array.prototype.map,eM=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tickFormat(R,W,G,J){var et,ei,eo=function(R,W,G){W=+W,R=+R,G=+G;let J=W<R,et=J?tickIncrement(W,R,G):tickIncrement(R,W,G);return(J?-1:1)*(et<0?-(1/et):et)}(R,W,G);switch((J=formatSpecifier(null==J?",f":J)).type){case"s":var es=Math.max(Math.abs(R),Math.abs(W));return null!=J.precision||isNaN(ei=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(exponent(es)/3)))-exponent(Math.abs(eo))))||(J.precision=ei),en(J,es);case"":case"e":case"g":case"p":case"r":null!=J.precision||isNaN(ei=Math.max(0,exponent(Math.abs(Math.max(Math.abs(R),Math.abs(W)))-(et=Math.abs(et=eo)))-exponent(et))+1)||(J.precision=ei-("e"===J.type));break;case"f":case"%":null!=J.precision||isNaN(ei=Math.max(0,-exponent(Math.abs(eo))))||(J.precision=ei-("%"===J.type)*2)}return er(J)}function linearish(R){var W=R.domain;return R.ticks=function(R){var G=W();return ticks(G[0],G[G.length-1],null==R?10:R)},R.tickFormat=function(R,G){var J=W();return tickFormat(J[0],J[J.length-1],null==R?10:R,G)},R.nice=function(G){null==G&&(G=10);var J,et,er=W(),en=0,ei=er.length-1,eo=er[en],es=er[ei],ec=10;for(es<eo&&(et=eo,eo=es,es=et,et=en,en=ei,ei=et);ec-- >0;){if((et=tickIncrement(eo,es,G))===J)return er[en]=eo,er[ei]=es,W(er);if(et>0)eo=Math.floor(eo/et)*et,es=Math.ceil(es/et)*et;else if(et<0)eo=Math.ceil(eo*et)/et,es=Math.floor(es*et)/et;else break;J=et}return R},R}function linear_linear(){var R=continuous();return R.copy=function(){return copy(R,linear_linear())},ej.o.apply(R,arguments),linearish(R)}function nice(R,W){R=R.slice();var G,J=0,et=R.length-1,er=R[J],en=R[et];return en<er&&(G=J,J=et,et=G,G=er,er=en,en=G),R[J]=W.floor(er),R[et]=W.ceil(en),R}function transformLog(R){return Math.log(R)}function transformExp(R){return Math.exp(R)}function transformLogn(R){return-Math.log(-R)}function transformExpn(R){return-Math.exp(-R)}function pow10(R){return isFinite(R)?+("1e"+R):R<0?0:R}function reflect(R){return(W,G)=>-R(-W,G)}function loggish(R){let W,G;let J=R(transformLog,transformExp),et=J.domain,en=10;function rescale(){var er,ei;return W=(er=en)===Math.E?Math.log:10===er&&Math.log10||2===er&&Math.log2||(er=Math.log(er),R=>Math.log(R)/er),G=10===(ei=en)?pow10:ei===Math.E?Math.exp:R=>Math.pow(ei,R),et()[0]<0?(W=reflect(W),G=reflect(G),R(transformLogn,transformExpn)):R(transformLog,transformExp),J}return J.base=function(R){return arguments.length?(en=+R,rescale()):en},J.domain=function(R){return arguments.length?(et(R),rescale()):et()},J.ticks=R=>{let J,er;let ei=et(),eo=ei[0],es=ei[ei.length-1],ec=es<eo;ec&&([eo,es]=[es,eo]);let el=W(eo),eu=W(es),ed=null==R?10:+R,ep=[];if(!(en%1)&&eu-el<ed){if(el=Math.floor(el),eu=Math.ceil(eu),eo>0){for(;el<=eu;++el)for(J=1;J<en;++J)if(!((er=el<0?J/G(-el):J*G(el))<eo)){if(er>es)break;ep.push(er)}}else for(;el<=eu;++el)for(J=en-1;J>=1;--J)if(!((er=el>0?J/G(-el):J*G(el))<eo)){if(er>es)break;ep.push(er)}2*ep.length<ed&&(ep=ticks(eo,es,ed))}else ep=ticks(el,eu,Math.min(eu-el,ed)).map(G);return ec?ep.reverse():ep},J.tickFormat=(R,et)=>{if(null==R&&(R=10),null==et&&(et=10===en?"s":","),"function"!=typeof et&&(en%1||null!=(et=formatSpecifier(et)).precision||(et.trim=!0),et=er(et)),R===1/0)return et;let ei=Math.max(1,en*R/J.ticks().length);return R=>{let J=R/G(Math.round(W(R)));return J*en<en-.5&&(J*=en),J<=ei?et(R):""}},J.nice=()=>et(nice(et(),{floor:R=>G(Math.floor(W(R))),ceil:R=>G(Math.ceil(W(R)))})),J}function transformSymlog(R){return function(W){return Math.sign(W)*Math.log1p(Math.abs(W/R))}}function transformSymexp(R){return function(W){return Math.sign(W)*Math.expm1(Math.abs(W))*R}}function symlogish(R){var W=1,G=R(transformSymlog(1),transformSymexp(W));return G.constant=function(G){return arguments.length?R(transformSymlog(W=+G),transformSymexp(W)):W},linearish(G)}er=(et=function(R){var W,G,et,er=void 0===R.grouping||void 0===R.thousands?src_identity:(W=eI.call(R.grouping,Number),G=R.thousands+"",function(R,J){for(var et=R.length,er=[],en=0,ei=W[0],eo=0;et>0&&ei>0&&(eo+ei+1>J&&(ei=Math.max(1,J-eo)),er.push(R.substring(et-=ei,et+ei)),!((eo+=ei+1)>J));)ei=W[en=(en+1)%W.length];return er.reverse().join(G)}),en=void 0===R.currency?"":R.currency[0]+"",ei=void 0===R.currency?"":R.currency[1]+"",eo=void 0===R.decimal?".":R.decimal+"",es=void 0===R.numerals?src_identity:(et=eI.call(R.numerals,String),function(R){return R.replace(/[0-9]/g,function(R){return et[+R]})}),ec=void 0===R.percent?"%":R.percent+"",el=void 0===R.minus?"−":R.minus+"",eu=void 0===R.nan?"NaN":R.nan+"";function newFormat(R){var W=(R=formatSpecifier(R)).fill,G=R.align,et=R.sign,ed=R.symbol,ep=R.zero,ef=R.width,eh=R.comma,eg=R.precision,em=R.trim,ey=R.type;"n"===ey?(eh=!0,ey="g"):eD[ey]||(void 0===eg&&(eg=12),em=!0,ey="g"),(ep||"0"===W&&"="===G)&&(ep=!0,W="0",G="=");var ev="$"===ed?en:"#"===ed&&/[boxX]/.test(ey)?"0"+ey.toLowerCase():"",eb="$"===ed?ei:/[%p]/.test(ey)?ec:"",e_=eD[ey],ex=/[defgprs%]/.test(ey);function format(R){var en,ei,ec,ed=ev,ew=eb;if("c"===ey)ew=e_(R)+ew,R="";else{var eS=(R=+R)<0||1/R<0;if(R=isNaN(R)?eu:e_(Math.abs(R),eg),em&&(R=function(R){r:for(var W,G=R.length,J=1,et=-1;J<G;++J)switch(R[J]){case".":et=W=J;break;case"0":0===et&&(et=J),W=J;break;default:if(!+R[J])break r;et>0&&(et=0)}return et>0?R.slice(0,et)+R.slice(W+1):R}(R)),eS&&0==+R&&"+"!==et&&(eS=!1),ed=(eS?"("===et?et:el:"-"===et||"("===et?"":et)+ed,ew=("s"===ey?eM[8+J/3]:"")+ew+(eS&&"("===et?")":""),ex){for(en=-1,ei=R.length;++en<ei;)if(48>(ec=R.charCodeAt(en))||ec>57){ew=(46===ec?eo+R.slice(en+1):R.slice(en))+ew,R=R.slice(0,en);break}}}eh&&!ep&&(R=er(R,1/0));var eT=ed.length+R.length+ew.length,eO=eT<ef?Array(ef-eT+1).join(W):"";switch(eh&&ep&&(R=er(eO+R,eO.length?ef-ew.length:1/0),eO=""),G){case"<":R=ed+R+ew+eO;break;case"=":R=ed+eO+R+ew;break;case"^":R=eO.slice(0,eT=eO.length>>1)+ed+R+ew+eO.slice(eT);break;default:R=eO+ed+R+ew}return es(R)}return eg=void 0===eg?6:/[gprs]/.test(ey)?Math.max(1,Math.min(21,eg)):Math.max(0,Math.min(20,eg)),format.toString=function(){return R+""},format}return{format:newFormat,formatPrefix:function(R,W){var G=newFormat(((R=formatSpecifier(R)).type="f",R)),J=3*Math.max(-8,Math.min(8,Math.floor(exponent(W)/3))),et=Math.pow(10,-J),er=eM[8+J/3];return function(R){return G(et*R)+er}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,en=et.formatPrefix;var eL=G(46244);function transformPow(R){return function(W){return W<0?-Math.pow(-W,R):Math.pow(W,R)}}function transformSqrt(R){return R<0?-Math.sqrt(-R):Math.sqrt(R)}function transformSquare(R){return R<0?-R*R:R*R}function powish(R){var W=R(identity,identity),G=1;return W.exponent=function(W){return arguments.length?1==(G=+W)?R(identity,identity):.5===G?R(transformSqrt,transformSquare):R(transformPow(G),transformPow(1/G)):G},linearish(W)}function pow(){var R=powish(transformer());return R.copy=function(){return copy(R,pow()).exponent(R.exponent())},ej.o.apply(R,arguments),R}function sqrt(){return pow.apply(null,arguments).exponent(.5)}function square(R){return Math.sign(R)*R*R}function max(R,W){let G;if(void 0===W)for(let W of R)null!=W&&(G<W||void 0===G&&W>=W)&&(G=W);else{let J=-1;for(let et of R)null!=(et=W(et,++J,R))&&(G<et||void 0===G&&et>=et)&&(G=et)}return G}function min(R,W){let G;if(void 0===W)for(let W of R)null!=W&&(G>W||void 0===G&&W>=W)&&(G=W);else{let J=-1;for(let et of R)null!=(et=W(et,++J,R))&&(G>et||void 0===G&&et>=et)&&(G=et)}return G}function sort_ascendingDefined(R,W){return(null==R||!(R>=R))-(null==W||!(W>=W))||(R<W?-1:R>W?1:0)}function swap(R,W,G){let J=R[W];R[W]=R[G],R[G]=J}function ascending_ascending(R,W){return null==R||null==W?NaN:R<W?-1:R>W?1:R>=W?0:NaN}function descending_descending(R,W){return null==R||null==W?NaN:W<R?-1:W>R?1:W>=R?0:NaN}function bisector_zero(){return 0}let eR=Math.sqrt(50),eN=Math.sqrt(10),eB=Math.sqrt(2);function ticks_tickIncrement(R,W,G){return function ticks_tickSpec(R,W,G){let J,et,er;let en=(W-R)/Math.max(0,G),ei=Math.floor(Math.log10(en)),eo=en/Math.pow(10,ei),es=eo>=eR?10:eo>=eN?5:eo>=eB?2:1;return(ei<0?(J=Math.round(R*(er=Math.pow(10,-ei)/es)),et=Math.round(W*er),J/er<R&&++J,et/er>W&&--et,er=-er):(J=Math.round(R/(er=Math.pow(10,ei)*es)),et=Math.round(W/er),J*er<R&&++J,et*er>W&&--et),et<J&&.5<=G&&G<2)?ticks_tickSpec(R,W,2*G):[J,et,er]}(R=+R,W=+W,G=+G)[2]}function ticks_tickStep(R,W,G){W=+W,R=+R,G=+G;let J=W<R,et=J?ticks_tickIncrement(W,R,G):ticks_tickIncrement(R,W,G);return(J?-1:1)*(et<0?-(1/et):et)}let eZ=864e5,eU=7*eZ,eF=30*eZ,ez=365*eZ,eH=new Date,eq=new Date;function timeInterval(R,W,G,J){function interval(W){return R(W=0==arguments.length?new Date:new Date(+W)),W}return interval.floor=W=>(R(W=new Date(+W)),W),interval.ceil=G=>(R(G=new Date(G-1)),W(G,1),R(G),G),interval.round=R=>{let W=interval(R),G=interval.ceil(R);return R-W<G-R?W:G},interval.offset=(R,G)=>(W(R=new Date(+R),null==G?1:Math.floor(G)),R),interval.range=(G,J,et)=>{let er;let en=[];if(G=interval.ceil(G),et=null==et?1:Math.floor(et),!(G<J)||!(et>0))return en;do en.push(er=new Date(+G)),W(G,et),R(G);while(er<G&&G<J);return en},interval.filter=G=>timeInterval(W=>{if(W>=W)for(;R(W),!G(W);)W.setTime(W-1)},(R,J)=>{if(R>=R){if(J<0)for(;++J<=0;)for(;W(R,-1),!G(R););else for(;--J>=0;)for(;W(R,1),!G(R););}}),G&&(interval.count=(W,J)=>(eH.setTime(+W),eq.setTime(+J),R(eH),R(eq),Math.floor(G(eH,eq))),interval.every=R=>isFinite(R=Math.floor(R))&&R>0?R>1?interval.filter(J?W=>J(W)%R==0:W=>interval.count(0,W)%R==0):interval:null),interval}let eV=timeInterval(()=>{},(R,W)=>{R.setTime(+R+W)},(R,W)=>W-R);eV.every=R=>isFinite(R=Math.floor(R))&&R>0?R>1?timeInterval(W=>{W.setTime(Math.floor(W/R)*R)},(W,G)=>{W.setTime(+W+G*R)},(W,G)=>(G-W)/R):eV:null,eV.range;let eW=timeInterval(R=>{R.setTime(R-R.getMilliseconds())},(R,W)=>{R.setTime(+R+1e3*W)},(R,W)=>(W-R)/1e3,R=>R.getUTCSeconds());eW.range;let eG=timeInterval(R=>{R.setTime(R-R.getMilliseconds()-1e3*R.getSeconds())},(R,W)=>{R.setTime(+R+6e4*W)},(R,W)=>(W-R)/6e4,R=>R.getMinutes());eG.range;let e$=timeInterval(R=>{R.setUTCSeconds(0,0)},(R,W)=>{R.setTime(+R+6e4*W)},(R,W)=>(W-R)/6e4,R=>R.getUTCMinutes());e$.range;let eK=timeInterval(R=>{R.setTime(R-R.getMilliseconds()-1e3*R.getSeconds()-6e4*R.getMinutes())},(R,W)=>{R.setTime(+R+36e5*W)},(R,W)=>(W-R)/36e5,R=>R.getHours());eK.range;let eY=timeInterval(R=>{R.setUTCMinutes(0,0,0)},(R,W)=>{R.setTime(+R+36e5*W)},(R,W)=>(W-R)/36e5,R=>R.getUTCHours());eY.range;let eX=timeInterval(R=>R.setHours(0,0,0,0),(R,W)=>R.setDate(R.getDate()+W),(R,W)=>(W-R-(W.getTimezoneOffset()-R.getTimezoneOffset())*6e4)/eZ,R=>R.getDate()-1);eX.range;let eQ=timeInterval(R=>{R.setUTCHours(0,0,0,0)},(R,W)=>{R.setUTCDate(R.getUTCDate()+W)},(R,W)=>(W-R)/eZ,R=>R.getUTCDate()-1);eQ.range;let eJ=timeInterval(R=>{R.setUTCHours(0,0,0,0)},(R,W)=>{R.setUTCDate(R.getUTCDate()+W)},(R,W)=>(W-R)/eZ,R=>Math.floor(R/eZ));function timeWeekday(R){return timeInterval(W=>{W.setDate(W.getDate()-(W.getDay()+7-R)%7),W.setHours(0,0,0,0)},(R,W)=>{R.setDate(R.getDate()+7*W)},(R,W)=>(W-R-(W.getTimezoneOffset()-R.getTimezoneOffset())*6e4)/eU)}eJ.range;let e0=timeWeekday(0),e1=timeWeekday(1),e2=timeWeekday(2),e3=timeWeekday(3),e5=timeWeekday(4),e4=timeWeekday(5),e8=timeWeekday(6);function utcWeekday(R){return timeInterval(W=>{W.setUTCDate(W.getUTCDate()-(W.getUTCDay()+7-R)%7),W.setUTCHours(0,0,0,0)},(R,W)=>{R.setUTCDate(R.getUTCDate()+7*W)},(R,W)=>(W-R)/eU)}e0.range,e1.range,e2.range,e3.range,e5.range,e4.range,e8.range;let e6=utcWeekday(0),e7=utcWeekday(1),e9=utcWeekday(2),tt=utcWeekday(3),tr=utcWeekday(4),tn=utcWeekday(5),ti=utcWeekday(6);e6.range,e7.range,e9.range,tt.range,tr.range,tn.range,ti.range;let to=timeInterval(R=>{R.setDate(1),R.setHours(0,0,0,0)},(R,W)=>{R.setMonth(R.getMonth()+W)},(R,W)=>W.getMonth()-R.getMonth()+(W.getFullYear()-R.getFullYear())*12,R=>R.getMonth());to.range;let ta=timeInterval(R=>{R.setUTCDate(1),R.setUTCHours(0,0,0,0)},(R,W)=>{R.setUTCMonth(R.getUTCMonth()+W)},(R,W)=>W.getUTCMonth()-R.getUTCMonth()+(W.getUTCFullYear()-R.getUTCFullYear())*12,R=>R.getUTCMonth());ta.range;let ts=timeInterval(R=>{R.setMonth(0,1),R.setHours(0,0,0,0)},(R,W)=>{R.setFullYear(R.getFullYear()+W)},(R,W)=>W.getFullYear()-R.getFullYear(),R=>R.getFullYear());ts.every=R=>isFinite(R=Math.floor(R))&&R>0?timeInterval(W=>{W.setFullYear(Math.floor(W.getFullYear()/R)*R),W.setMonth(0,1),W.setHours(0,0,0,0)},(W,G)=>{W.setFullYear(W.getFullYear()+G*R)}):null,ts.range;let tc=timeInterval(R=>{R.setUTCMonth(0,1),R.setUTCHours(0,0,0,0)},(R,W)=>{R.setUTCFullYear(R.getUTCFullYear()+W)},(R,W)=>W.getUTCFullYear()-R.getUTCFullYear(),R=>R.getUTCFullYear());function ticker(R,W,G,J,et,er){let en=[[eW,1,1e3],[eW,5,5e3],[eW,15,15e3],[eW,30,3e4],[er,1,6e4],[er,5,3e5],[er,15,9e5],[er,30,18e5],[et,1,36e5],[et,3,108e5],[et,6,216e5],[et,12,432e5],[J,1,eZ],[J,2,2*eZ],[G,1,eU],[W,1,eF],[W,3,3*eF],[R,1,ez]];function tickInterval(W,G,J){let et=Math.abs(G-W)/J,er=(function(R){let W,G,J;function left(R,J,et=0,er=R.length){if(et<er){if(0!==W(J,J))return er;do{let W=et+er>>>1;0>G(R[W],J)?et=W+1:er=W}while(et<er)}return et}return 2!==R.length?(W=ascending_ascending,G=(W,G)=>ascending_ascending(R(W),G),J=(W,G)=>R(W)-G):(W=R===ascending_ascending||R===descending_descending?R:bisector_zero,G=R,J=R),{left,center:function(R,W,G=0,et=R.length){let er=left(R,W,G,et-1);return er>G&&J(R[er-1],W)>-J(R[er],W)?er-1:er},right:function(R,J,et=0,er=R.length){if(et<er){if(0!==W(J,J))return er;do{let W=et+er>>>1;0>=G(R[W],J)?et=W+1:er=W}while(et<er)}return et}}})(([,,R])=>R).right(en,et);if(er===en.length)return R.every(ticks_tickStep(W/ez,G/ez,J));if(0===er)return eV.every(Math.max(ticks_tickStep(W,G,J),1));let[ei,eo]=en[et/en[er-1][2]<en[er][2]/et?er-1:er];return ei.every(eo)}return[function(R,W,G){let J=W<R;J&&([R,W]=[W,R]);let et=G&&"function"==typeof G.range?G:tickInterval(R,W,G),er=et?et.range(R,+W+1):[];return J?er.reverse():er},tickInterval]}tc.every=R=>isFinite(R=Math.floor(R))&&R>0?timeInterval(W=>{W.setUTCFullYear(Math.floor(W.getUTCFullYear()/R)*R),W.setUTCMonth(0,1),W.setUTCHours(0,0,0,0)},(W,G)=>{W.setUTCFullYear(W.getUTCFullYear()+G*R)}):null,tc.range;let[tl,tu]=ticker(tc,ta,e6,eJ,eY,e$),[td,tp]=ticker(ts,to,e0,eX,eK,eG);function localDate(R){if(0<=R.y&&R.y<100){var W=new Date(-1,R.m,R.d,R.H,R.M,R.S,R.L);return W.setFullYear(R.y),W}return new Date(R.y,R.m,R.d,R.H,R.M,R.S,R.L)}function utcDate(R){if(0<=R.y&&R.y<100){var W=new Date(Date.UTC(-1,R.m,R.d,R.H,R.M,R.S,R.L));return W.setUTCFullYear(R.y),W}return new Date(Date.UTC(R.y,R.m,R.d,R.H,R.M,R.S,R.L))}function newDate(R,W,G){return{y:R,m:W,d:G,H:0,M:0,S:0,L:0}}var tf={"-":"",_:" ",0:"0"},th=/^\s*\d+/,tg=/^%/,tm=/[\\^$*+?|[\]().{}]/g;function pad(R,W,G){var J=R<0?"-":"",et=(J?-R:R)+"",er=et.length;return J+(er<G?Array(G-er+1).join(W)+et:et)}function requote(R){return R.replace(tm,"\\$&")}function formatRe(R){return RegExp("^(?:"+R.map(requote).join("|")+")","i")}function formatLookup(R){return new Map(R.map((R,W)=>[R.toLowerCase(),W]))}function parseWeekdayNumberSunday(R,W,G){var J=th.exec(W.slice(G,G+1));return J?(R.w=+J[0],G+J[0].length):-1}function parseWeekdayNumberMonday(R,W,G){var J=th.exec(W.slice(G,G+1));return J?(R.u=+J[0],G+J[0].length):-1}function parseWeekNumberSunday(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.U=+J[0],G+J[0].length):-1}function parseWeekNumberISO(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.V=+J[0],G+J[0].length):-1}function parseWeekNumberMonday(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.W=+J[0],G+J[0].length):-1}function parseFullYear(R,W,G){var J=th.exec(W.slice(G,G+4));return J?(R.y=+J[0],G+J[0].length):-1}function parseYear(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.y=+J[0]+(+J[0]>68?1900:2e3),G+J[0].length):-1}function parseZone(R,W,G){var J=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(W.slice(G,G+6));return J?(R.Z=J[1]?0:-(J[2]+(J[3]||"00")),G+J[0].length):-1}function parseQuarter(R,W,G){var J=th.exec(W.slice(G,G+1));return J?(R.q=3*J[0]-3,G+J[0].length):-1}function parseMonthNumber(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.m=J[0]-1,G+J[0].length):-1}function parseDayOfMonth(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.d=+J[0],G+J[0].length):-1}function parseDayOfYear(R,W,G){var J=th.exec(W.slice(G,G+3));return J?(R.m=0,R.d=+J[0],G+J[0].length):-1}function parseHour24(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.H=+J[0],G+J[0].length):-1}function parseMinutes(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.M=+J[0],G+J[0].length):-1}function parseSeconds(R,W,G){var J=th.exec(W.slice(G,G+2));return J?(R.S=+J[0],G+J[0].length):-1}function parseMilliseconds(R,W,G){var J=th.exec(W.slice(G,G+3));return J?(R.L=+J[0],G+J[0].length):-1}function parseMicroseconds(R,W,G){var J=th.exec(W.slice(G,G+6));return J?(R.L=Math.floor(J[0]/1e3),G+J[0].length):-1}function parseLiteralPercent(R,W,G){var J=tg.exec(W.slice(G,G+1));return J?G+J[0].length:-1}function parseUnixTimestamp(R,W,G){var J=th.exec(W.slice(G));return J?(R.Q=+J[0],G+J[0].length):-1}function parseUnixTimestampSeconds(R,W,G){var J=th.exec(W.slice(G));return J?(R.s=+J[0],G+J[0].length):-1}function formatDayOfMonth(R,W){return pad(R.getDate(),W,2)}function formatHour24(R,W){return pad(R.getHours(),W,2)}function formatHour12(R,W){return pad(R.getHours()%12||12,W,2)}function formatDayOfYear(R,W){return pad(1+eX.count(ts(R),R),W,3)}function formatMilliseconds(R,W){return pad(R.getMilliseconds(),W,3)}function formatMicroseconds(R,W){return formatMilliseconds(R,W)+"000"}function formatMonthNumber(R,W){return pad(R.getMonth()+1,W,2)}function formatMinutes(R,W){return pad(R.getMinutes(),W,2)}function formatSeconds(R,W){return pad(R.getSeconds(),W,2)}function formatWeekdayNumberMonday(R){var W=R.getDay();return 0===W?7:W}function formatWeekNumberSunday(R,W){return pad(e0.count(ts(R)-1,R),W,2)}function dISO(R){var W=R.getDay();return W>=4||0===W?e5(R):e5.ceil(R)}function formatWeekNumberISO(R,W){return R=dISO(R),pad(e5.count(ts(R),R)+(4===ts(R).getDay()),W,2)}function formatWeekdayNumberSunday(R){return R.getDay()}function formatWeekNumberMonday(R,W){return pad(e1.count(ts(R)-1,R),W,2)}function formatYear(R,W){return pad(R.getFullYear()%100,W,2)}function formatYearISO(R,W){return pad((R=dISO(R)).getFullYear()%100,W,2)}function formatFullYear(R,W){return pad(R.getFullYear()%1e4,W,4)}function formatFullYearISO(R,W){var G=R.getDay();return pad((R=G>=4||0===G?e5(R):e5.ceil(R)).getFullYear()%1e4,W,4)}function formatZone(R){var W=R.getTimezoneOffset();return(W>0?"-":(W*=-1,"+"))+pad(W/60|0,"0",2)+pad(W%60,"0",2)}function formatUTCDayOfMonth(R,W){return pad(R.getUTCDate(),W,2)}function formatUTCHour24(R,W){return pad(R.getUTCHours(),W,2)}function formatUTCHour12(R,W){return pad(R.getUTCHours()%12||12,W,2)}function formatUTCDayOfYear(R,W){return pad(1+eQ.count(tc(R),R),W,3)}function formatUTCMilliseconds(R,W){return pad(R.getUTCMilliseconds(),W,3)}function formatUTCMicroseconds(R,W){return formatUTCMilliseconds(R,W)+"000"}function formatUTCMonthNumber(R,W){return pad(R.getUTCMonth()+1,W,2)}function formatUTCMinutes(R,W){return pad(R.getUTCMinutes(),W,2)}function formatUTCSeconds(R,W){return pad(R.getUTCSeconds(),W,2)}function formatUTCWeekdayNumberMonday(R){var W=R.getUTCDay();return 0===W?7:W}function formatUTCWeekNumberSunday(R,W){return pad(e6.count(tc(R)-1,R),W,2)}function UTCdISO(R){var W=R.getUTCDay();return W>=4||0===W?tr(R):tr.ceil(R)}function formatUTCWeekNumberISO(R,W){return R=UTCdISO(R),pad(tr.count(tc(R),R)+(4===tc(R).getUTCDay()),W,2)}function formatUTCWeekdayNumberSunday(R){return R.getUTCDay()}function formatUTCWeekNumberMonday(R,W){return pad(e7.count(tc(R)-1,R),W,2)}function formatUTCYear(R,W){return pad(R.getUTCFullYear()%100,W,2)}function formatUTCYearISO(R,W){return pad((R=UTCdISO(R)).getUTCFullYear()%100,W,2)}function formatUTCFullYear(R,W){return pad(R.getUTCFullYear()%1e4,W,4)}function formatUTCFullYearISO(R,W){var G=R.getUTCDay();return pad((R=G>=4||0===G?tr(R):tr.ceil(R)).getUTCFullYear()%1e4,W,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(R){return+R}function formatUnixTimestampSeconds(R){return Math.floor(+R/1e3)}function time_date(R){return new Date(R)}function time_number(R){return R instanceof Date?+R:+new Date(+R)}function calendar(R,W,G,J,et,er,en,ei,eo,es){var ec=continuous(),el=ec.invert,eu=ec.domain,ed=es(".%L"),ep=es(":%S"),ef=es("%I:%M"),eh=es("%I %p"),eg=es("%a %d"),em=es("%b %d"),ey=es("%B"),ev=es("%Y");function tickFormat(R){return(eo(R)<R?ed:ei(R)<R?ep:en(R)<R?ef:er(R)<R?eh:J(R)<R?et(R)<R?eg:em:G(R)<R?ey:ev)(R)}return ec.invert=function(R){return new Date(el(R))},ec.domain=function(R){return arguments.length?eu(Array.from(R,time_number)):eu().map(time_date)},ec.ticks=function(W){var G=eu();return R(G[0],G[G.length-1],null==W?10:W)},ec.tickFormat=function(R,W){return null==W?tickFormat:es(W)},ec.nice=function(R){var G=eu();return R&&"function"==typeof R.range||(R=W(G[0],G[G.length-1],null==R?10:R)),R?eu(nice(G,R)):ec},ec.copy=function(){return copy(ec,calendar(R,W,G,J,et,er,en,ei,eo,es))},ec}function time(){return ej.o.apply(calendar(td,tp,ts,to,e0,eX,eK,eG,eW,eo).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function utcTime(){return ej.o.apply(calendar(tl,tu,tc,ta,e6,eQ,eY,e$,eW,es).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function sequential_transformer(){var R,W,G,J,et,er=0,en=1,ei=identity,eo=!1;function scale(W){return null==W||isNaN(W=+W)?et:ei(0===G?.5:(W=(J(W)-R)*G,eo?Math.max(0,Math.min(1,W)):W))}function range(R){return function(W){var G,J;return arguments.length?([G,J]=W,ei=R(G,J),scale):[ei(0),ei(1)]}}return scale.domain=function(et){return arguments.length?([er,en]=et,R=J(er=+er),W=J(en=+en),G=R===W?0:1/(W-R),scale):[er,en]},scale.clamp=function(R){return arguments.length?(eo=!!R,scale):eo},scale.interpolator=function(R){return arguments.length?(ei=R,scale):ei},scale.range=range(value),scale.rangeRound=range(round),scale.unknown=function(R){return arguments.length?(et=R,scale):et},function(et){return J=et,R=et(er),W=et(en),G=R===W?0:1/(W-R),scale}}function sequential_copy(R,W){return W.domain(R.domain()).interpolator(R.interpolator()).clamp(R.clamp()).unknown(R.unknown())}function sequentialPow(){var R=powish(sequential_transformer());return R.copy=function(){return sequential_copy(R,sequentialPow()).exponent(R.exponent())},ej.O.apply(R,arguments)}function sequentialSqrt(){return sequentialPow.apply(null,arguments).exponent(.5)}function diverging_transformer(){var R,W,G,J,et,er,en,ei=0,eo=.5,es=1,ec=1,el=identity,eu=!1;function scale(R){return isNaN(R=+R)?en:(R=.5+((R=+er(R))-W)*(ec*R<ec*W?J:et),el(eu?Math.max(0,Math.min(1,R)):R))}function range(R){return function(W){var G,J,et;return arguments.length?([G,J,et]=W,el=function(R,W){void 0===W&&(W=R,R=value);for(var G=0,J=W.length-1,et=W[0],er=Array(J<0?0:J);G<J;)er[G]=R(et,et=W[++G]);return function(R){var W=Math.max(0,Math.min(J-1,Math.floor(R*=J)));return er[W](R-W)}}(R,[G,J,et]),scale):[el(0),el(.5),el(1)]}}return scale.domain=function(en){return arguments.length?([ei,eo,es]=en,R=er(ei=+ei),W=er(eo=+eo),G=er(es=+es),J=R===W?0:.5/(W-R),et=W===G?0:.5/(G-W),ec=W<R?-1:1,scale):[ei,eo,es]},scale.clamp=function(R){return arguments.length?(eu=!!R,scale):eu},scale.interpolator=function(R){return arguments.length?(el=R,scale):el},scale.range=range(value),scale.rangeRound=range(round),scale.unknown=function(R){return arguments.length?(en=R,scale):en},function(en){return er=en,R=en(ei),W=en(eo),G=en(es),J=R===W?0:.5/(W-R),et=W===G?0:.5/(G-W),ec=W<R?-1:1,scale}}function divergingPow(){var R=powish(diverging_transformer());return R.copy=function(){return sequential_copy(R,divergingPow()).exponent(R.exponent())},ej.O.apply(R,arguments)}function divergingSqrt(){return divergingPow.apply(null,arguments).exponent(.5)}function none(R,W){if((et=R.length)>1)for(var G,J,et,er=1,en=R[W[0]],ei=en.length;er<et;++er)for(J=en,en=R[W[er]],G=0;G<ei;++G)en[G][1]+=en[G][0]=isNaN(J[G][1])?J[G][0]:J[G][1]}eo=(ei=function(R){var W=R.dateTime,G=R.date,J=R.time,et=R.periods,er=R.days,en=R.shortDays,ei=R.months,eo=R.shortMonths,es=formatRe(et),ec=formatLookup(et),el=formatRe(er),eu=formatLookup(er),ed=formatRe(en),ep=formatLookup(en),ef=formatRe(ei),eh=formatLookup(ei),eg=formatRe(eo),em=formatLookup(eo),ey={a:function(R){return en[R.getDay()]},A:function(R){return er[R.getDay()]},b:function(R){return eo[R.getMonth()]},B:function(R){return ei[R.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(R){return et[+(R.getHours()>=12)]},q:function(R){return 1+~~(R.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},ev={a:function(R){return en[R.getUTCDay()]},A:function(R){return er[R.getUTCDay()]},b:function(R){return eo[R.getUTCMonth()]},B:function(R){return ei[R.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(R){return et[+(R.getUTCHours()>=12)]},q:function(R){return 1+~~(R.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},eb={a:function(R,W,G){var J=ed.exec(W.slice(G));return J?(R.w=ep.get(J[0].toLowerCase()),G+J[0].length):-1},A:function(R,W,G){var J=el.exec(W.slice(G));return J?(R.w=eu.get(J[0].toLowerCase()),G+J[0].length):-1},b:function(R,W,G){var J=eg.exec(W.slice(G));return J?(R.m=em.get(J[0].toLowerCase()),G+J[0].length):-1},B:function(R,W,G){var J=ef.exec(W.slice(G));return J?(R.m=eh.get(J[0].toLowerCase()),G+J[0].length):-1},c:function(R,G,J){return parseSpecifier(R,W,G,J)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(R,W,G){var J=es.exec(W.slice(G));return J?(R.p=ec.get(J[0].toLowerCase()),G+J[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(R,W,J){return parseSpecifier(R,G,W,J)},X:function(R,W,G){return parseSpecifier(R,J,W,G)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function newFormat(R,W){return function(G){var J,et,er,en=[],ei=-1,eo=0,es=R.length;for(G instanceof Date||(G=new Date(+G));++ei<es;)37===R.charCodeAt(ei)&&(en.push(R.slice(eo,ei)),null!=(et=tf[J=R.charAt(++ei)])?J=R.charAt(++ei):et="e"===J?" ":"0",(er=W[J])&&(J=er(G,et)),en.push(J),eo=ei+1);return en.push(R.slice(eo,ei)),en.join("")}}function newParse(R,W){return function(G){var J,et,er=newDate(1900,void 0,1);if(parseSpecifier(er,R,G+="",0)!=G.length)return null;if("Q"in er)return new Date(er.Q);if("s"in er)return new Date(1e3*er.s+("L"in er?er.L:0));if(!W||"Z"in er||(er.Z=0),"p"in er&&(er.H=er.H%12+12*er.p),void 0===er.m&&(er.m="q"in er?er.q:0),"V"in er){if(er.V<1||er.V>53)return null;"w"in er||(er.w=1),"Z"in er?(J=(et=(J=utcDate(newDate(er.y,0,1))).getUTCDay())>4||0===et?e7.ceil(J):e7(J),J=eQ.offset(J,(er.V-1)*7),er.y=J.getUTCFullYear(),er.m=J.getUTCMonth(),er.d=J.getUTCDate()+(er.w+6)%7):(J=(et=(J=localDate(newDate(er.y,0,1))).getDay())>4||0===et?e1.ceil(J):e1(J),J=eX.offset(J,(er.V-1)*7),er.y=J.getFullYear(),er.m=J.getMonth(),er.d=J.getDate()+(er.w+6)%7)}else("W"in er||"U"in er)&&("w"in er||(er.w="u"in er?er.u%7:"W"in er?1:0),et="Z"in er?utcDate(newDate(er.y,0,1)).getUTCDay():localDate(newDate(er.y,0,1)).getDay(),er.m=0,er.d="W"in er?(er.w+6)%7+7*er.W-(et+5)%7:er.w+7*er.U-(et+6)%7);return"Z"in er?(er.H+=er.Z/100|0,er.M+=er.Z%100,utcDate(er)):localDate(er)}}function parseSpecifier(R,W,G,J){for(var et,er,en=0,ei=W.length,eo=G.length;en<ei;){if(J>=eo)return -1;if(37===(et=W.charCodeAt(en++))){if(!(er=eb[(et=W.charAt(en++))in tf?W.charAt(en++):et])||(J=er(R,G,J))<0)return -1}else if(et!=G.charCodeAt(J++))return -1}return J}return ey.x=newFormat(G,ey),ey.X=newFormat(J,ey),ey.c=newFormat(W,ey),ev.x=newFormat(G,ev),ev.X=newFormat(J,ev),ev.c=newFormat(W,ev),{format:function(R){var W=newFormat(R+="",ey);return W.toString=function(){return R},W},parse:function(R){var W=newParse(R+="",!1);return W.toString=function(){return R},W},utcFormat:function(R){var W=newFormat(R+="",ev);return W.toString=function(){return R},W},utcParse:function(R){var W=newParse(R+="",!0);return W.toString=function(){return R},W}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,ei.parse,es=ei.utcFormat,ei.utcParse;var ty=G(94788),tv=G(20309);function order_none(R){for(var W=R.length,G=Array(W);--W>=0;)G[W]=W;return G}function stackValue(R,W){return R[W]}function stackSeries(R){let W=[];return W.key=R,W}var tb=G(6162),t_=G.n(tb),tx=G(53632),tw=G.n(tx),tS=G(14293),tT=G.n(tS),tO=G(23560),tP=G.n(tO),tC=G(47037),tk=G.n(tC),tE=G(27361),tj=G.n(tE),tA=G(94654),tD=G.n(tA),tI=G(7654),tM=G.n(tI),tL=G(11700),tR=G.n(tL),tN=G(18446),tB=G.n(tN),tZ=G(89734),tU=G.n(tZ),tF=G(29887),tz=G.n(tF);function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}var utils_identity=function(R){return R},tH={},isPlaceHolder=function(R){return R===tH},curry0=function(R){return function _curried(){return 0==arguments.length||1==arguments.length&&isPlaceHolder(arguments.length<=0?void 0:arguments[0])?_curried:R.apply(void 0,arguments)}},curry=function(R){return function curryN(R,W){return 1===R?W:curry0(function(){for(var G=arguments.length,J=Array(G),et=0;et<G;et++)J[et]=arguments[et];var er=J.filter(function(R){return R!==tH}).length;return er>=R?W.apply(void 0,J):curryN(R-er,curry0(function(){for(var R=arguments.length,G=Array(R),et=0;et<R;et++)G[et]=arguments[et];var er=J.map(function(R){return isPlaceHolder(R)?G.shift():R});return W.apply(void 0,((function(R){if(Array.isArray(R))return _arrayLikeToArray(R)})(er)||function(R){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(R))return Array.from(R)}(er)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(er)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(G))}))})}(R.length,R)},range=function(R,W){for(var G=[],J=R;J<W;++J)G[J-R]=J;return G},tq=curry(function(R,W){return Array.isArray(W)?W.map(R):Object.keys(W).map(function(R){return W[R]}).map(R)}),compose=function(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];if(!W.length)return utils_identity;var J=W.reverse(),et=J[0],er=J.slice(1);return function(){return er.reduce(function(R,W){return W(R)},et.apply(void 0,arguments))}},reverse=function(R){return Array.isArray(R)?R.reverse():R.split("").reverse.join("")},memoize=function(R){var W=null,G=null;return function(){for(var J=arguments.length,et=Array(J),er=0;er<J;er++)et[er]=arguments[er];return W&&et.every(function(R,G){return R===W[G]})?G:(W=et,G=R.apply(void 0,et))}},tV={rangeStep:function(R,W,G){for(var J=new(tz())(R),et=0,er=[];J.lt(W)&&et<1e5;)er.push(J.toNumber()),J=J.add(G),et++;return er},getDigitCount:function(R){return 0===R?1:Math.floor(new(tz())(R).abs().log(10).toNumber())+1},interpolateNumber:curry(function(R,W,G){var J=+R;return J+G*(+W-J)}),uninterpolateNumber:curry(function(R,W,G){var J=W-+R;return(G-R)/(J=J||1/0)}),uninterpolateTruncation:curry(function(R,W,G){var J=W-+R;return Math.max(0,Math.min(1,(G-R)/(J=J||1/0)))})};function getNiceTickValues_toConsumableArray(R){return function(R){if(Array.isArray(R))return getNiceTickValues_arrayLikeToArray(R)}(R)||function(R){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(R))return Array.from(R)}(R)||getNiceTickValues_unsupportedIterableToArray(R)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _slicedToArray(R,W){return function(R){if(Array.isArray(R))return R}(R)||function(R,W){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(R)){var G=[],J=!0,et=!1,er=void 0;try{for(var en,ei=R[Symbol.iterator]();!(J=(en=ei.next()).done)&&(G.push(en.value),!W||G.length!==W);J=!0);}catch(R){et=!0,er=R}finally{try{J||null==ei.return||ei.return()}finally{if(et)throw er}}return G}}(R,W)||getNiceTickValues_unsupportedIterableToArray(R,W)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function getNiceTickValues_unsupportedIterableToArray(R,W){if(R){if("string"==typeof R)return getNiceTickValues_arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return getNiceTickValues_arrayLikeToArray(R,W)}}function getNiceTickValues_arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function getValidInterval(R){var W=_slicedToArray(R,2),G=W[0],J=W[1],et=G,er=J;return G>J&&(et=J,er=G),[et,er]}function getFormatStep(R,W,G){if(R.lte(0))return new(tz())(0);var J=tV.getDigitCount(R.toNumber()),et=new(tz())(10).pow(J),er=R.div(et),en=1!==J?.05:.1,ei=new(tz())(Math.ceil(er.div(en).toNumber())).add(G).mul(en).mul(et);return W?ei:new(tz())(Math.ceil(ei))}function getTickOfSingleValue(R,W,G){var J=1,et=new(tz())(R);if(!et.isint()&&G){var er=Math.abs(R);er<1?(J=new(tz())(10).pow(tV.getDigitCount(R)-1),et=new(tz())(Math.floor(et.div(J).toNumber())).mul(J)):er>1&&(et=new(tz())(Math.floor(R)))}else 0===R?et=new(tz())(Math.floor((W-1)/2)):G||(et=new(tz())(Math.floor(R)));var en=Math.floor((W-1)/2);return compose(tq(function(R){return et.add(new(tz())(R-en).mul(J)).toNumber()}),range)(0,W)}var tW=memoize(function(R){var W=_slicedToArray(R,2),G=W[0],J=W[1],et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,er=!(arguments.length>2)||void 0===arguments[2]||arguments[2],en=Math.max(et,2),ei=_slicedToArray(getValidInterval([G,J]),2),eo=ei[0],es=ei[1];if(eo===-1/0||es===1/0){var ec=es===1/0?[eo].concat(getNiceTickValues_toConsumableArray(range(0,et-1).map(function(){return 1/0}))):[].concat(getNiceTickValues_toConsumableArray(range(0,et-1).map(function(){return-1/0})),[es]);return G>J?reverse(ec):ec}if(eo===es)return getTickOfSingleValue(eo,et,er);var el=function calculateStep(R,W,G,J){var et,er=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((W-R)/(G-1)))return{step:new(tz())(0),tickMin:new(tz())(0),tickMax:new(tz())(0)};var en=getFormatStep(new(tz())(W).sub(R).div(G-1),J,er),ei=Math.ceil((et=R<=0&&W>=0?new(tz())(0):(et=new(tz())(R).add(W).div(2)).sub(new(tz())(et).mod(en))).sub(R).div(en).toNumber()),eo=Math.ceil(new(tz())(W).sub(et).div(en).toNumber()),es=ei+eo+1;return es>G?calculateStep(R,W,G,J,er+1):(es<G&&(eo=W>0?eo+(G-es):eo,ei=W>0?ei:ei+(G-es)),{step:en,tickMin:et.sub(new(tz())(ei).mul(en)),tickMax:et.add(new(tz())(eo).mul(en))})}(eo,es,en,er),eu=el.step,ed=el.tickMin,ep=el.tickMax,ef=tV.rangeStep(ed,ep.add(new(tz())(.1).mul(eu)),eu);return G>J?reverse(ef):ef});memoize(function(R){var W=_slicedToArray(R,2),G=W[0],J=W[1],et=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,er=!(arguments.length>2)||void 0===arguments[2]||arguments[2],en=Math.max(et,2),ei=_slicedToArray(getValidInterval([G,J]),2),eo=ei[0],es=ei[1];if(eo===-1/0||es===1/0)return[G,J];if(eo===es)return getTickOfSingleValue(eo,et,er);var ec=getFormatStep(new(tz())(es).sub(eo).div(en-1),er,0),el=compose(tq(function(R){return new(tz())(eo).add(new(tz())(R).mul(ec)).toNumber()}),range)(0,en).filter(function(R){return R>=eo&&R<=es});return G>J?reverse(el):el});var tG=memoize(function(R,W){var G=_slicedToArray(R,2),J=G[0],et=G[1],er=!(arguments.length>2)||void 0===arguments[2]||arguments[2],en=_slicedToArray(getValidInterval([J,et]),2),ei=en[0],eo=en[1];if(ei===-1/0||eo===1/0)return[J,et];if(ei===eo)return[ei];var es=Math.max(W,2),ec=getFormatStep(new(tz())(eo).sub(ei).div(es-1),er,0),el=[].concat(getNiceTickValues_toConsumableArray(tV.rangeStep(new(tz())(ei),new(tz())(eo).sub(new(tz())(.99).mul(ec)),ec)),[eo]);return J>et?reverse(el):el}),t$=G(86641),tK=G(69055),tY=G(52017),tX=G(20430);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperty(R,W,G){var J;return(J=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(W,"string"),(W="symbol"===_typeof(J)?J:String(J))in R)?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function ChartUtils_toConsumableArray(R){return function(R){if(Array.isArray(R))return ChartUtils_arrayLikeToArray(R)}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||function(R,W){if(R){if("string"==typeof R)return ChartUtils_arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return ChartUtils_arrayLikeToArray(R,W)}}(R)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ChartUtils_arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function getValueByDataKey(R,W,G){return tT()(R)||tT()(W)?G:(0,tK.P2)(W)?tj()(R,W,G):tP()(W)?W(R):G}function getDomainOfDataByKey(R,W,G,J){var et=tD()(R,function(R){return getValueByDataKey(R,W)});if("number"===G){var er=et.filter(function(R){return(0,tK.hj)(R)||parseFloat(R)});return er.length?[tw()(er),t_()(er)]:[1/0,-1/0]}return(J?et.filter(function(R){return!tT()(R)}):et).map(function(R){return(0,tK.P2)(R)||R instanceof Date?R:""})}var calculateActiveTickIndex=function(R){var W,G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],J=arguments.length>2?arguments[2]:void 0,et=arguments.length>3?arguments[3]:void 0,er=-1,en=null!==(W=null==G?void 0:G.length)&&void 0!==W?W:0;if(en<=1)return 0;if(et&&"angleAxis"===et.axisType&&1e-6>=Math.abs(Math.abs(et.range[1]-et.range[0])-360))for(var ei=et.range,eo=0;eo<en;eo++){var es=eo>0?J[eo-1].coordinate:J[en-1].coordinate,ec=J[eo].coordinate,el=eo>=en-1?J[0].coordinate:J[eo+1].coordinate,eu=void 0;if((0,tK.uY)(ec-es)!==(0,tK.uY)(el-ec)){var ed=[];if((0,tK.uY)(el-ec)===(0,tK.uY)(ei[1]-ei[0])){eu=el;var ep=ec+ei[1]-ei[0];ed[0]=Math.min(ep,(ep+es)/2),ed[1]=Math.max(ep,(ep+es)/2)}else{eu=es;var ef=el+ei[1]-ei[0];ed[0]=Math.min(ec,(ef+ec)/2),ed[1]=Math.max(ec,(ef+ec)/2)}var eh=[Math.min(ec,(eu+ec)/2),Math.max(ec,(eu+ec)/2)];if(R>eh[0]&&R<=eh[1]||R>=ed[0]&&R<=ed[1]){er=J[eo].index;break}}else{var eg=Math.min(es,el),em=Math.max(es,el);if(R>(eg+ec)/2&&R<=(em+ec)/2){er=J[eo].index;break}}}else for(var ey=0;ey<en;ey++)if(0===ey&&R<=(G[ey].coordinate+G[ey+1].coordinate)/2||ey>0&&ey<en-1&&R>(G[ey].coordinate+G[ey-1].coordinate)/2&&R<=(G[ey].coordinate+G[ey+1].coordinate)/2||ey===en-1&&R>(G[ey].coordinate+G[ey-1].coordinate)/2){er=G[ey].index;break}return er},getMainColorOfGraphicItem=function(R){var W,G=R.type.displayName,J=R.props,et=J.stroke,er=J.fill;switch(G){case"Line":W=et;break;case"Area":case"Radar":W=et&&"none"!==et?et:er;break;default:W=er}return W},getBarSizeList=function(R){var W=R.barSize,G=R.stackGroups,J=void 0===G?{}:G;if(!J)return{};for(var et={},er=Object.keys(J),en=0,ei=er.length;en<ei;en++)for(var eo=J[er[en]].stackGroups,es=Object.keys(eo),ec=0,el=es.length;ec<el;ec++){var eu=eo[es[ec]],ed=eu.items,ep=eu.cateAxisId,ef=ed.filter(function(R){return(0,tY.Gf)(R.type).indexOf("Bar")>=0});if(ef&&ef.length){var eh=ef[0].props.barSize,eg=ef[0].props[ep];et[eg]||(et[eg]=[]),et[eg].push({item:ef[0],stackList:ef.slice(1),barSize:tT()(eh)?W:eh})}}return et},getBarPosition=function(R){var W,G=R.barGap,J=R.barCategoryGap,et=R.bandSize,er=R.sizeList,en=void 0===er?[]:er,ei=R.maxBarSize,eo=en.length;if(eo<1)return null;var es=(0,tK.h1)(G,et,0,!0),ec=[];if(en[0].barSize===+en[0].barSize){var el=!1,eu=et/eo,ed=en.reduce(function(R,W){return R+W.barSize||0},0);(ed+=(eo-1)*es)>=et&&(ed-=(eo-1)*es,es=0),ed>=et&&eu>0&&(el=!0,eu*=.9,ed=eo*eu);var ep={offset:((et-ed)/2>>0)-es,size:0};W=en.reduce(function(R,W){var G={item:W.item,position:{offset:ep.offset+ep.size+es,size:el?eu:W.barSize}},J=[].concat(ChartUtils_toConsumableArray(R),[G]);return ep=J[J.length-1].position,W.stackList&&W.stackList.length&&W.stackList.forEach(function(R){J.push({item:R,position:ep})}),J},ec)}else{var ef=(0,tK.h1)(J,et,0,!0);et-2*ef-(eo-1)*es<=0&&(es=0);var eh=(et-2*ef-(eo-1)*es)/eo;eh>1&&(eh>>=0);var eg=ei===+ei?Math.min(eh,ei):eh;W=en.reduce(function(R,W,G){var J=[].concat(ChartUtils_toConsumableArray(R),[{item:W.item,position:{offset:ef+(eh+es)*G+(eh-eg)/2,size:eg}}]);return W.stackList&&W.stackList.length&&W.stackList.forEach(function(R){J.push({item:R,position:J[J.length-1].position})}),J},ec)}return W},appendOffsetOfLegend=function(R,W,G,J){var et=G.children,er=G.width,en=G.margin,ei=er-(en.left||0)-(en.right||0),eo=(0,tX.z)({children:et,legendWidth:ei});if(eo){var es=J||{},ec=es.width,el=es.height,eu=eo.align,ed=eo.verticalAlign,ep=eo.layout;if(("vertical"===ep||"horizontal"===ep&&"middle"===ed)&&"center"!==eu&&(0,tK.hj)(R[eu]))return _objectSpread(_objectSpread({},R),{},_defineProperty({},eu,R[eu]+(ec||0)));if(("horizontal"===ep||"vertical"===ep&&"center"===eu)&&"middle"!==ed&&(0,tK.hj)(R[ed]))return _objectSpread(_objectSpread({},R),{},_defineProperty({},ed,R[ed]+(el||0)))}return R},getDomainOfErrorBars=function(R,W,G,J,et){var er=W.props.children,en=(0,tY.NN)(er,t$.W).filter(function(R){var W;return W=R.props.direction,!!tT()(et)||("horizontal"===J?"yAxis"===et:"vertical"===J||"x"===W?"xAxis"===et:"y"!==W||"yAxis"===et)});if(en&&en.length){var ei=en.map(function(R){return R.props.dataKey});return R.reduce(function(R,W){var J=getValueByDataKey(W,G,0),et=Array.isArray(J)?[tw()(J),t_()(J)]:[J,J],er=ei.reduce(function(R,G){var J=getValueByDataKey(W,G,0),er=et[0]-Math.abs(Array.isArray(J)?J[0]:J),en=et[1]+Math.abs(Array.isArray(J)?J[1]:J);return[Math.min(er,R[0]),Math.max(en,R[1])]},[1/0,-1/0]);return[Math.min(er[0],R[0]),Math.max(er[1],R[1])]},[1/0,-1/0])}return null},parseErrorBarsOfAxis=function(R,W,G,J,et){var er=W.map(function(W){return getDomainOfErrorBars(R,W,G,et,J)}).filter(function(R){return!tT()(R)});return er&&er.length?er.reduce(function(R,W){return[Math.min(R[0],W[0]),Math.max(R[1],W[1])]},[1/0,-1/0]):null},getDomainOfItemsWithSameAxis=function(R,W,G,J,et){var er=W.map(function(W){var er=W.props.dataKey;return"number"===G&&er&&getDomainOfErrorBars(R,W,er,J)||getDomainOfDataByKey(R,er,G,et)});if("number"===G)return er.reduce(function(R,W){return[Math.min(R[0],W[0]),Math.max(R[1],W[1])]},[1/0,-1/0]);var en={};return er.reduce(function(R,W){for(var G=0,J=W.length;G<J;G++)en[W[G]]||(en[W[G]]=!0,R.push(W[G]));return R},[])},isCategoricalAxis=function(R,W){return"horizontal"===R&&"xAxis"===W||"vertical"===R&&"yAxis"===W||"centric"===R&&"angleAxis"===W||"radial"===R&&"radiusAxis"===W},getCoordinatesOfGrid=function(R,W,G,J){if(J)return R.map(function(R){return R.coordinate});var et,er,en=R.map(function(R){return R.coordinate===W&&(et=!0),R.coordinate===G&&(er=!0),R.coordinate});return et||en.push(W),er||en.push(G),en},getTicksOfAxis=function(R,W,G){if(!R)return null;var J=R.scale,et=R.duplicateDomain,er=R.type,en=R.range,ei="scaleBand"===R.realScaleType?J.bandwidth()/2:2,eo=(W||G)&&"category"===er&&J.bandwidth?J.bandwidth()/ei:0;return(eo="angleAxis"===R.axisType&&(null==en?void 0:en.length)>=2?2*(0,tK.uY)(en[0]-en[1])*eo:eo,W&&(R.ticks||R.niceTicks))?(R.ticks||R.niceTicks).map(function(R){return{coordinate:J(et?et.indexOf(R):R)+eo,value:R,offset:eo}}).filter(function(R){return!tM()(R.coordinate)}):R.isCategorical&&R.categoricalDomain?R.categoricalDomain.map(function(R,W){return{coordinate:J(R)+eo,value:R,index:W,offset:eo}}):J.ticks&&!G?J.ticks(R.tickCount).map(function(R){return{coordinate:J(R)+eo,value:R,offset:eo}}):J.domain().map(function(R,W){return{coordinate:J(R)+eo,value:et?et[R]:R,index:W,offset:eo}})},tQ=new WeakMap,combineEventHandlers=function(R,W){if("function"!=typeof W)return R;tQ.has(R)||tQ.set(R,new WeakMap);var G=tQ.get(R);if(G.has(W))return G.get(W);var combineHandler=function(){R.apply(void 0,arguments),W.apply(void 0,arguments)};return G.set(W,combineHandler),combineHandler},parseScale=function(R,W,G){var J=R.scale,et=R.type,er=R.layout,en=R.axisType;if("auto"===J)return"radial"===er&&"radiusAxis"===en?{scale:el.Z(),realScaleType:"band"}:"radial"===er&&"angleAxis"===en?{scale:linear_linear(),realScaleType:"linear"}:"category"===et&&W&&(W.indexOf("LineChart")>=0||W.indexOf("AreaChart")>=0||W.indexOf("ComposedChart")>=0&&!G)?{scale:el.x(),realScaleType:"point"}:"category"===et?{scale:el.Z(),realScaleType:"band"}:{scale:linear_linear(),realScaleType:"linear"};if(tk()(J)){var ei="scale".concat(tR()(J));return{scale:(ec[ei]||el.x)(),realScaleType:ec[ei]?ei:"point"}}return tP()(J)?{scale:J}:{scale:el.x(),realScaleType:"point"}},checkDomainOfScale=function(R){var W=R.domain();if(W&&!(W.length<=2)){var G=W.length,J=R.range(),et=Math.min(J[0],J[1])-1e-4,er=Math.max(J[0],J[1])+1e-4,en=R(W[0]),ei=R(W[G-1]);(en<et||en>er||ei<et||ei>er)&&R.domain([W[0],W[G-1]])}},findPositionOfBar=function(R,W){if(!R)return null;for(var G=0,J=R.length;G<J;G++)if(R[G].item===W)return R[G].position;return null},truncateByDomain=function(R,W){if(!W||2!==W.length||!(0,tK.hj)(W[0])||!(0,tK.hj)(W[1]))return R;var G=Math.min(W[0],W[1]),J=Math.max(W[0],W[1]),et=[R[0],R[1]];return(!(0,tK.hj)(R[0])||R[0]<G)&&(et[0]=G),(!(0,tK.hj)(R[1])||R[1]>J)&&(et[1]=J),et[0]>J&&(et[0]=J),et[1]<G&&(et[1]=G),et},tJ={sign:function(R){var W=R.length;if(!(W<=0))for(var G=0,J=R[0].length;G<J;++G)for(var et=0,er=0,en=0;en<W;++en){var ei=tM()(R[en][G][1])?R[en][G][0]:R[en][G][1];ei>=0?(R[en][G][0]=et,R[en][G][1]=et+ei,et=R[en][G][1]):(R[en][G][0]=er,R[en][G][1]=er+ei,er=R[en][G][1])}},expand:function(R,W){if((J=R.length)>0){for(var G,J,et,er=0,en=R[0].length;er<en;++er){for(et=G=0;G<J;++G)et+=R[G][er][1]||0;if(et)for(G=0;G<J;++G)R[G][er][1]/=et}none(R,W)}},none:none,silhouette:function(R,W){if((G=R.length)>0){for(var G,J=0,et=R[W[0]],er=et.length;J<er;++J){for(var en=0,ei=0;en<G;++en)ei+=R[en][J][1]||0;et[J][1]+=et[J][0]=-ei/2}none(R,W)}},wiggle:function(R,W){if((et=R.length)>0&&(J=(G=R[W[0]]).length)>0){for(var G,J,et,er=0,en=1;en<J;++en){for(var ei=0,eo=0,es=0;ei<et;++ei){for(var ec=R[W[ei]],el=ec[en][1]||0,eu=(el-(ec[en-1][1]||0))/2,ed=0;ed<ei;++ed){var ep=R[W[ed]];eu+=(ep[en][1]||0)-(ep[en-1][1]||0)}eo+=el,es+=eu*el}G[en-1][1]+=G[en-1][0]=er,eo&&(er-=es/eo)}G[en-1][1]+=G[en-1][0]=er,none(R,W)}},positive:function(R){var W=R.length;if(!(W<=0))for(var G=0,J=R[0].length;G<J;++G)for(var et=0,er=0;er<W;++er){var en=tM()(R[er][G][1])?R[er][G][0]:R[er][G][1];en>=0?(R[er][G][0]=et,R[er][G][1]=et+en,et=R[er][G][1]):(R[er][G][0]=0,R[er][G][1]=0)}}},getStackedData=function(R,W,G){var J=W.map(function(R){return R.props.dataKey}),et=tJ[G];return(function(){var R=(0,tv.Z)([]),W=order_none,G=none,J=stackValue;function stack(et){var er,en,ei=Array.from(R.apply(this,arguments),stackSeries),eo=ei.length,es=-1;for(let R of et)for(er=0,++es;er<eo;++er)(ei[er][es]=[0,+J(R,ei[er].key,es,et)]).data=R;for(er=0,en=(0,ty.Z)(W(ei));er<eo;++er)ei[en[er]].index=er;return G(ei,en),ei}return stack.keys=function(W){return arguments.length?(R="function"==typeof W?W:(0,tv.Z)(Array.from(W)),stack):R},stack.value=function(R){return arguments.length?(J="function"==typeof R?R:(0,tv.Z)(+R),stack):J},stack.order=function(R){return arguments.length?(W=null==R?order_none:"function"==typeof R?R:(0,tv.Z)(Array.from(R)),stack):W},stack.offset=function(R){return arguments.length?(G=null==R?none:R,stack):G},stack})().keys(J).value(function(R,W){return+getValueByDataKey(R,W,0)}).order(order_none).offset(et)(R)},getStackGroupsByAxisId=function(R,W,G,J,et,er){if(!R)return null;var en=(er?W.reverse():W).reduce(function(R,W){var et=W.props,er=et.stackId;if(et.hide)return R;var en=W.props[G],ei=R[en]||{hasStack:!1,stackGroups:{}};if((0,tK.P2)(er)){var eo=ei.stackGroups[er]||{numericAxisId:G,cateAxisId:J,items:[]};eo.items.push(W),ei.hasStack=!0,ei.stackGroups[er]=eo}else ei.stackGroups[(0,tK.EL)("_stackId_")]={numericAxisId:G,cateAxisId:J,items:[W]};return _objectSpread(_objectSpread({},R),{},_defineProperty({},en,ei))},{});return Object.keys(en).reduce(function(W,er){var ei=en[er];return ei.hasStack&&(ei.stackGroups=Object.keys(ei.stackGroups).reduce(function(W,er){var en=ei.stackGroups[er];return _objectSpread(_objectSpread({},W),{},_defineProperty({},er,{numericAxisId:G,cateAxisId:J,items:en.items,stackedData:getStackedData(R,en.items,et)}))},{})),_objectSpread(_objectSpread({},W),{},_defineProperty({},er,ei))},{})},getTicksOfScale=function(R,W){var G=W.realScaleType,J=W.type,et=W.tickCount,er=W.originalDomain,en=W.allowDecimals,ei=G||W.scale;if("auto"!==ei&&"linear"!==ei)return null;if(et&&"number"===J&&er&&("auto"===er[0]||"auto"===er[1])){var eo=R.domain();if(!eo.length)return null;var es=tW(eo,et,en);return R.domain([tw()(es),t_()(es)]),{niceTicks:es}}return et&&"number"===J?{niceTicks:tG(R.domain(),et,en)}:null},getCateCoordinateOfLine=function(R){var W=R.axis,G=R.ticks,J=R.bandSize,et=R.entry,er=R.index,en=R.dataKey;if("category"===W.type){if(!W.allowDuplicatedCategory&&W.dataKey&&!tT()(et[W.dataKey])){var ei=(0,tK.Ap)(G,"value",et[W.dataKey]);if(ei)return ei.coordinate+J/2}return G[er]?G[er].coordinate+J/2:null}var eo=getValueByDataKey(et,tT()(en)?W.dataKey:en);return tT()(eo)?null:W.scale(eo)},getCateCoordinateOfBar=function(R){var W=R.axis,G=R.ticks,J=R.offset,et=R.bandSize,er=R.entry,en=R.index;if("category"===W.type)return G[en]?G[en].coordinate+J:null;var ei=getValueByDataKey(er,W.dataKey,W.domain[en]);return tT()(ei)?null:W.scale(ei)-et/2+J},getBaseValueOfBar=function(R){var W=R.numericAxis,G=W.scale.domain();if("number"===W.type){var J=Math.min(G[0],G[1]),et=Math.max(G[0],G[1]);return J<=0&&et>=0?0:et<0?et:J}return G[0]},getStackedDataOfItem=function(R,W){var G=R.props.stackId;if((0,tK.P2)(G)){var J=W[G];if(J){var et=J.items.indexOf(R);return et>=0?J.stackedData[et]:null}}return null},getDomainOfStackGroups=function(R,W,G){return Object.keys(R).reduce(function(J,et){var er=R[et].stackedData.reduce(function(R,J){var et=J.slice(W,G+1).reduce(function(R,W){return[tw()(W.concat([R[0]]).filter(tK.hj)),t_()(W.concat([R[1]]).filter(tK.hj))]},[1/0,-1/0]);return[Math.min(R[0],et[0]),Math.max(R[1],et[1])]},[1/0,-1/0]);return[Math.min(er[0],J[0]),Math.max(er[1],J[1])]},[1/0,-1/0]).map(function(R){return R===1/0||R===-1/0?0:R})},t0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,t1=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,parseSpecifiedDomain=function(R,W,G){if(tP()(R))return R(W,G);if(!Array.isArray(R))return W;var J=[];if((0,tK.hj)(R[0]))J[0]=G?R[0]:Math.min(R[0],W[0]);else if(t0.test(R[0])){var et=+t0.exec(R[0])[1];J[0]=W[0]-et}else tP()(R[0])?J[0]=R[0](W[0]):J[0]=W[0];if((0,tK.hj)(R[1]))J[1]=G?R[1]:Math.max(R[1],W[1]);else if(t1.test(R[1])){var er=+t1.exec(R[1])[1];J[1]=W[1]+er}else tP()(R[1])?J[1]=R[1](W[1]):J[1]=W[1];return J},getBandSizeOfAxis=function(R,W,G){if(R&&R.scale&&R.scale.bandwidth){var J=R.scale.bandwidth();if(!G||J>0)return J}if(R&&W&&W.length>=2){for(var et=tU()(W,function(R){return R.coordinate}),er=1/0,en=1,ei=et.length;en<ei;en++){var eo=et[en],es=et[en-1];er=Math.min((eo.coordinate||0)-(es.coordinate||0),er)}return er===1/0?0:er}return G?void 0:0},parseDomainOfCategoryAxis=function(R,W,G){return!R||!R.length||tB()(R,tj()(G,"type.defaultProps.domain"))?W:R},getTooltipItem=function(R,W){var G=R.props,J=G.dataKey,et=G.name,er=G.unit,en=G.formatter,ei=G.tooltipType,eo=G.chartType;return _objectSpread(_objectSpread({},(0,tY.L6)(R)),{},{dataKey:J,unit:er,formatter:en,name:et||J,color:getMainColorOfGraphicItem(R),value:getValueByDataKey(W,J),type:ei,payload:W,chartType:eo})}},41209:function(R,W,G){"use strict";G.d(W,{os:function(){return getOffset},xE:function(){return getStringSize}});var J=G(47523);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var et={widthCache:{},cacheCount:0},er={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},en="recharts_measurement_span",getStringSize=function(R){var W,G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==R||J.x.isSsr)return{width:0,height:0};var ei=(Object.keys(W=_objectSpread({},G)).forEach(function(R){W[R]||delete W[R]}),W),eo=JSON.stringify({text:R,copyStyle:ei});if(et.widthCache[eo])return et.widthCache[eo];try{var es=document.getElementById(en);es||((es=document.createElement("span")).setAttribute("id",en),es.setAttribute("aria-hidden","true"),document.body.appendChild(es));var ec=_objectSpread(_objectSpread({},er),ei);Object.assign(es.style,ec),es.textContent="".concat(R);var el=es.getBoundingClientRect(),eu={width:el.width,height:el.height};return et.widthCache[eo]=eu,++et.cacheCount>2e3&&(et.cacheCount=0,et.widthCache={}),eu}catch(R){return{width:0,height:0}}},getOffset=function(R){return{top:R.top+window.scrollY-document.documentElement.clientTop,left:R.left+window.scrollX-document.documentElement.clientLeft}}},69055:function(R,W,G){"use strict";G.d(W,{Ap:function(){return findEntryInArray},EL:function(){return uniqueId},Kt:function(){return getAnyElementOfObject},P2:function(){return isNumOrStr},bv:function(){return hasDuplicate},h1:function(){return getPercentValue},hU:function(){return isPercent},hj:function(){return isNumber},k4:function(){return interpolateNumber},uY:function(){return mathSign}});var J=G(47037),et=G.n(J),er=G(7654),en=G.n(er),ei=G(27361),eo=G.n(ei),es=G(81763),ec=G.n(es),mathSign=function(R){return 0===R?0:R>0?1:-1},isPercent=function(R){return et()(R)&&R.indexOf("%")===R.length-1},isNumber=function(R){return ec()(R)&&!en()(R)},isNumOrStr=function(R){return isNumber(R)||et()(R)},el=0,uniqueId=function(R){var W=++el;return"".concat(R||"").concat(W)},getPercentValue=function(R,W){var G,J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,er=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!isNumber(R)&&!et()(R))return J;if(isPercent(R)){var ei=R.indexOf("%");G=W*parseFloat(R.slice(0,ei))/100}else G=+R;return en()(G)&&(G=J),er&&G>W&&(G=W),G},getAnyElementOfObject=function(R){if(!R)return null;var W=Object.keys(R);return W&&W.length?R[W[0]]:null},hasDuplicate=function(R){if(!Array.isArray(R))return!1;for(var W=R.length,G={},J=0;J<W;J++){if(G[R[J]])return!0;G[R[J]]=!0}return!1},interpolateNumber=function(R,W){return isNumber(R)&&isNumber(W)?function(G){return R+G*(W-R)}:function(){return W}};function findEntryInArray(R,W,G){return R&&R.length?R.find(function(R){return R&&("function"==typeof W?W(R):eo()(R,W))===G}):null}},47523:function(R,W,G){"use strict";G.d(W,{x:function(){return J}});var J={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(R){return J[R]},set:function(R,W){if("string"==typeof R)J[R]=W;else{var G=Object.keys(R);G&&G.length&&G.forEach(function(W){J[W]=R[W]})}}}},6213:function(R,W,G){"use strict";G.d(W,{Z:function(){return warn}});var warn=function(R,W){for(var G=arguments.length,J=Array(G>2?G-2:0),et=2;et<G;et++)J[et-2]=arguments[et]}},40048:function(R,W,G){"use strict";G.d(W,{$4:function(){return getMaxRadius},Wk:function(){return ei},op:function(){return polarToCartesian},t9:function(){return formatAxisMap},z3:function(){return inRangeOfSector}});var J=G(14293),et=G.n(J),er=G(69055),en=G(48722);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){_defineProperty(R,W,G[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}function _defineProperty(R,W,G){var J;return(J=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(W,"string"),(W="symbol"===_typeof(J)?J:String(J))in R)?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}var ei=Math.PI/180,polarToCartesian=function(R,W,G,J){return{x:R+Math.cos(-ei*J)*G,y:W+Math.sin(-ei*J)*G}},getMaxRadius=function(R,W){var G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(R-(G.left||0)-(G.right||0)),Math.abs(W-(G.top||0)-(G.bottom||0)))/2},formatAxisMap=function(R,W,G,J,ei){var eo=R.width,es=R.height,ec=R.startAngle,el=R.endAngle,eu=(0,er.h1)(R.cx,eo,eo/2),ed=(0,er.h1)(R.cy,es,es/2),ep=getMaxRadius(eo,es,G),ef=(0,er.h1)(R.innerRadius,ep,0),eh=(0,er.h1)(R.outerRadius,ep,.8*ep);return Object.keys(W).reduce(function(R,G){var er,eo=W[G],es=eo.domain,ep=eo.reversed;if(et()(eo.range))"angleAxis"===J?er=[ec,el]:"radiusAxis"===J&&(er=[ef,eh]),ep&&(er=[er[1],er[0]]);else{var eg,em=function(R){if(Array.isArray(R))return R}(eg=er=eo.range)||function(R,W){var G=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=G){var J,et,er,en,ei=[],eo=!0,es=!1;try{if(er=(G=G.call(R)).next,0===W){if(Object(G)!==G)return;eo=!1}else for(;!(eo=(J=er.call(G)).done)&&(ei.push(J.value),ei.length!==W);eo=!0);}catch(R){es=!0,et=R}finally{try{if(!eo&&null!=G.return&&(en=G.return(),Object(en)!==en))return}finally{if(es)throw et}}return ei}}(eg,2)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(eg,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();ec=em[0],el=em[1]}var ey=(0,en.Hq)(eo,ei),ev=ey.realScaleType,eb=ey.scale;eb.domain(es).range(er),(0,en.zF)(eb);var e_=(0,en.g$)(eb,_objectSpread(_objectSpread({},eo),{},{realScaleType:ev})),ex=_objectSpread(_objectSpread(_objectSpread({},eo),e_),{},{range:er,radius:eh,realScaleType:ev,scale:eb,cx:eu,cy:ed,innerRadius:ef,outerRadius:eh,startAngle:ec,endAngle:el});return _objectSpread(_objectSpread({},R),{},_defineProperty({},G,ex))},{})},distanceBetweenPoints=function(R,W){var G=R.x,J=R.y;return Math.sqrt(Math.pow(G-W.x,2)+Math.pow(J-W.y,2))},getAngleOfPoint=function(R,W){var G=R.x,J=R.y,et=W.cx,er=W.cy,en=distanceBetweenPoints({x:G,y:J},{x:et,y:er});if(en<=0)return{radius:en};var ei=Math.acos((G-et)/en);return J>er&&(ei=2*Math.PI-ei),{radius:en,angle:180*ei/Math.PI,angleInRadian:ei}},formatAngleOfSector=function(R){var W=R.startAngle,G=R.endAngle,J=Math.min(Math.floor(W/360),Math.floor(G/360));return{startAngle:W-360*J,endAngle:G-360*J}},inRangeOfSector=function(R,W){var G,J=getAngleOfPoint({x:R.x,y:R.y},W),et=J.radius,er=J.angle,en=W.innerRadius,ei=W.outerRadius;if(et<en||et>ei)return!1;if(0===et)return!0;var eo=formatAngleOfSector(W),es=eo.startAngle,ec=eo.endAngle,el=er;if(es<=ec){for(;el>ec;)el-=360;for(;el<es;)el+=360;G=el>=es&&el<=ec}else{for(;el>es;)el-=360;for(;el<ec;)el+=360;G=el>=ec&&el<=es}return G?_objectSpread(_objectSpread({},W),{},{radius:et,angle:el+360*Math.min(Math.floor(W.startAngle/360),Math.floor(W.endAngle/360))}):null}},52017:function(R,W,G){"use strict";G.d(W,{$R:function(){return parseChildIndex},$k:function(){return isDotProps},Bh:function(){return getReactEventByType},Gf:function(){return getDisplayName},L6:function(){return filterProps},NN:function(){return findAllByType},TT:function(){return validateWidthHeight},eu:function(){return renderByOrder},rL:function(){return isChildrenEqual},sP:function(){return findChildByType}});var J=G(27361),et=G.n(J),er=G(14293),en=G.n(er),ei=G(47037),eo=G.n(ei),es=G(23560),ec=G.n(es),el=G(13218),eu=G.n(el),ed=G(67294),ep=G(98508),ef=G(69055),eh=G(30791),eg=G(79896),em=["children"],ey=["children"];function _objectWithoutProperties(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var ev={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},getDisplayName=function(R){return"string"==typeof R?R:R?R.displayName||R.name||"Component":""},eb=null,e_=null,toArray=function toArray(R){if(R===eb&&Array.isArray(e_))return e_;var W=[];return ed.Children.forEach(R,function(R){en()(R)||((0,ep.isFragment)(R)?W=W.concat(toArray(R.props.children)):W.push(R))}),e_=W,eb=R,W};function findAllByType(R,W){var G=[],J=[];return J=Array.isArray(W)?W.map(function(R){return getDisplayName(R)}):[getDisplayName(W)],toArray(R).forEach(function(R){var W=et()(R,"type.displayName")||et()(R,"type.name");-1!==J.indexOf(W)&&G.push(R)}),G}function findChildByType(R,W){var G=findAllByType(R,W);return G&&G[0]}var validateWidthHeight=function(R){if(!R||!R.props)return!1;var W=R.props,G=W.width,J=W.height;return!!(0,ef.hj)(G)&&!(G<=0)&&!!(0,ef.hj)(J)&&!(J<=0)},ex=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],isDotProps=function(R){return R&&"object"===_typeof(R)&&"cx"in R&&"cy"in R&&"r"in R},isValidSpreadableProp=function(R,W,G,J){var et,er=null!==(et=null===eg.ry||void 0===eg.ry?void 0:eg.ry[J])&&void 0!==et?et:[];return!ec()(R)&&(J&&er.includes(W)||eg.Yh.includes(W))||G&&eg.nv.includes(W)},filterProps=function(R,W,G){if(!R||"function"==typeof R||"boolean"==typeof R)return null;var J=R;if((0,ed.isValidElement)(R)&&(J=R.props),!eu()(J))return null;var et={};return Object.keys(J).forEach(function(R){var er;isValidSpreadableProp(null===(er=J)||void 0===er?void 0:er[R],R,W,G)&&(et[R]=J[R])}),et},isChildrenEqual=function isChildrenEqual(R,W){if(R===W)return!0;var G=ed.Children.count(R);if(G!==ed.Children.count(W))return!1;if(0===G)return!0;if(1===G)return isSingleChildEqual(Array.isArray(R)?R[0]:R,Array.isArray(W)?W[0]:W);for(var J=0;J<G;J++){var et=R[J],er=W[J];if(Array.isArray(et)||Array.isArray(er)){if(!isChildrenEqual(et,er))return!1}else if(!isSingleChildEqual(et,er))return!1}return!0},isSingleChildEqual=function(R,W){if(en()(R)&&en()(W))return!0;if(!en()(R)&&!en()(W)){var G=R.props||{},J=G.children,et=_objectWithoutProperties(G,em),er=W.props||{},ei=er.children,eo=_objectWithoutProperties(er,ey);if(J&&ei)return(0,eh.w)(et,eo)&&isChildrenEqual(J,ei);if(!J&&!ei)return(0,eh.w)(et,eo)}return!1},renderByOrder=function(R,W){var G=[],J={};return toArray(R).forEach(function(R,et){if(R&&R.type&&eo()(R.type)&&ex.indexOf(R.type)>=0)G.push(R);else if(R){var er=getDisplayName(R.type),en=W[er]||{},ei=en.handler,es=en.once;if(ei&&(!es||!J[er])){var ec=ei(R,er,et);G.push(ec),J[er]=!0}}}),G},getReactEventByType=function(R){var W=R&&R.type;return W&&ev[W]?ev[W]:null},parseChildIndex=function(R,W){return toArray(W).indexOf(R)}},30791:function(R,W,G){"use strict";function shallowEqual(R,W){for(var G in R)if(({}).hasOwnProperty.call(R,G)&&(!({}).hasOwnProperty.call(W,G)||R[G]!==W[G]))return!1;for(var J in W)if(({}).hasOwnProperty.call(W,J)&&!({}).hasOwnProperty.call(R,J))return!1;return!0}G.d(W,{w:function(){return shallowEqual}})},20430:function(R,W,G){"use strict";G.d(W,{z:function(){return getLegendProps}});var J=G(33558),et=G(48722),er=G(52017);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}function ownKeys(R,W){var G=Object.keys(R);if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(R);W&&(J=J.filter(function(W){return Object.getOwnPropertyDescriptor(R,W).enumerable})),G.push.apply(G,J)}return G}function _objectSpread(R){for(var W=1;W<arguments.length;W++){var G=null!=arguments[W]?arguments[W]:{};W%2?ownKeys(Object(G),!0).forEach(function(W){var J,et;J=W,et=G[W],(J=function(R){var W=function(R,W){if("object"!==_typeof(R)||null===R)return R;var G=R[Symbol.toPrimitive];if(void 0!==G){var J=G.call(R,W||"default");if("object"!==_typeof(J))return J;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===W?String:Number)(R)}(R,"string");return"symbol"===_typeof(W)?W:String(W)}(J))in R?Object.defineProperty(R,J,{value:et,enumerable:!0,configurable:!0,writable:!0}):R[J]=et}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(G)):ownKeys(Object(G)).forEach(function(W){Object.defineProperty(R,W,Object.getOwnPropertyDescriptor(G,W))})}return R}var getLegendProps=function(R){var W,G=R.children,en=R.formattedGraphicalItems,ei=R.legendWidth,eo=R.legendContent,es=(0,er.sP)(G,J.D);return es?(W=es.props&&es.props.payload?es.props&&es.props.payload:"children"===eo?(en||[]).reduce(function(R,W){var G=W.item,J=W.props,et=J.sectors||J.data||[];return R.concat(et.map(function(R){return{type:es.props.iconType||G.props.legendType,value:R.name,color:R.fill,payload:R}}))},[]):(en||[]).map(function(R){var W=R.item,G=W.props,J=G.dataKey,er=G.name,en=G.legendType;return{inactive:G.hide,dataKey:J,type:es.props.iconType||en||"square",color:(0,et.fk)(W),value:er||J,payload:W.props}}),_objectSpread(_objectSpread(_objectSpread({},es.props),J.D.getWithHeight(es,ei)),{},{payload:W,item:es})):null}},78817:function(R,W,G){"use strict";G.d(W,{z:function(){return getUniqPayload}});var J=G(45578),et=G.n(J),er=G(23560),en=G.n(er);function getUniqPayload(R,W,G){return!0===W?et()(R,G):en()(W)?et()(R,W):R}},79896:function(R,W,G){"use strict";G.d(W,{Yh:function(){return en},Ym:function(){return adaptEventHandlers},bw:function(){return adaptEventsOfChild},nv:function(){return es},ry:function(){return eo}});var J=G(67294),et=G(13218),er=G.n(et);function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var en=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],ei=["points","pathLength"],eo={svg:["viewBox","children"],polygon:ei,polyline:ei},es=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],adaptEventHandlers=function(R,W){if(!R||"function"==typeof R||"boolean"==typeof R)return null;var G=R;if((0,J.isValidElement)(R)&&(G=R.props),!er()(G))return null;var et={};return Object.keys(G).forEach(function(R){es.includes(R)&&(et[R]=W||function(W){return G[R](G,W)})}),et},adaptEventsOfChild=function(R,W,G){if(!er()(R)||"object"!==_typeof(R))return null;var J=null;return Object.keys(R).forEach(function(et){var er=R[et];es.includes(et)&&"function"==typeof er&&(J||(J={}),J[et]=function(R){return er(W,G,R),null})}),J}},42894:function(R,W){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var G="function"==typeof Symbol&&Symbol.for,J=G?Symbol.for("react.element"):60103,et=G?Symbol.for("react.portal"):60106,er=G?Symbol.for("react.fragment"):60107,en=G?Symbol.for("react.strict_mode"):60108,ei=G?Symbol.for("react.profiler"):60114,eo=G?Symbol.for("react.provider"):60109,es=G?Symbol.for("react.context"):60110,ec=G?Symbol.for("react.async_mode"):60111,el=G?Symbol.for("react.concurrent_mode"):60111,eu=G?Symbol.for("react.forward_ref"):60112,ed=G?Symbol.for("react.suspense"):60113,ep=(G&&Symbol.for("react.suspense_list"),G?Symbol.for("react.memo"):60115),ef=G?Symbol.for("react.lazy"):60116;G&&Symbol.for("react.block"),G&&Symbol.for("react.fundamental"),G&&Symbol.for("react.responder"),G&&Symbol.for("react.scope"),W.isElement=function(R){return"object"==typeof R&&null!==R&&R.$$typeof===J},W.isFragment=function(R){return function(R){if("object"==typeof R&&null!==R){var W=R.$$typeof;switch(W){case J:switch(R=R.type){case ec:case el:case er:case ei:case en:case ed:return R;default:switch(R=R&&R.$$typeof){case es:case eu:case ef:case ep:case eo:return R;default:return W}}case et:return W}}}(R)===er}},98508:function(R,W,G){"use strict";R.exports=G(42894)},28500:function(R,W,G){"use strict";var J=G(14890).qC;W.Uo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?J:J.apply(null,arguments)},"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__},14890:function(R,W,G){"use strict";function formatProdErrorMessage(R){return"Minified Redux error #"+R+"; visit https://redux.js.org/Errors?code="+R+" for the full message or use the non-minified dev environment for full errors. "}G.d(W,{MT:function(){return createStore},UY:function(){return combineReducers},qC:function(){return compose}});var J="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},et={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};function createStore(R,W,G){if("function"==typeof W&&"function"==typeof G||"function"==typeof G&&"function"==typeof arguments[3])throw Error(formatProdErrorMessage(0));if("function"==typeof W&&void 0===G&&(G=W,W=void 0),void 0!==G){if("function"!=typeof G)throw Error(formatProdErrorMessage(1));return G(createStore)(R,W)}if("function"!=typeof R)throw Error(formatProdErrorMessage(2));var er,en=R,ei=W,eo=[],es=eo,ec=!1;function ensureCanMutateNextListeners(){es===eo&&(es=eo.slice())}function getState(){if(ec)throw Error(formatProdErrorMessage(3));return ei}function subscribe(R){if("function"!=typeof R)throw Error(formatProdErrorMessage(4));if(ec)throw Error(formatProdErrorMessage(5));var W=!0;return ensureCanMutateNextListeners(),es.push(R),function(){if(W){if(ec)throw Error(formatProdErrorMessage(6));W=!1,ensureCanMutateNextListeners();var G=es.indexOf(R);es.splice(G,1),eo=null}}}function dispatch(R){if(!function(R){if("object"!=typeof R||null===R)return!1;for(var W=R;null!==Object.getPrototypeOf(W);)W=Object.getPrototypeOf(W);return Object.getPrototypeOf(R)===W}(R))throw Error(formatProdErrorMessage(7));if(void 0===R.type)throw Error(formatProdErrorMessage(8));if(ec)throw Error(formatProdErrorMessage(9));try{ec=!0,ei=en(ei,R)}finally{ec=!1}for(var W=eo=es,G=0;G<W.length;G++)(0,W[G])();return R}return dispatch({type:et.INIT}),(er={dispatch:dispatch,subscribe:subscribe,getState:getState,replaceReducer:function(R){if("function"!=typeof R)throw Error(formatProdErrorMessage(10));en=R,dispatch({type:et.REPLACE})}})[J]=function(){var R;return(R={subscribe:function(R){if("object"!=typeof R||null===R)throw Error(formatProdErrorMessage(11));function observeState(){R.next&&R.next(getState())}return observeState(),{unsubscribe:subscribe(observeState)}}})[J]=function(){return this},R},er}function combineReducers(R){for(var W,G=Object.keys(R),J={},er=0;er<G.length;er++){var en=G[er];"function"==typeof R[en]&&(J[en]=R[en])}var ei=Object.keys(J);try{!function(R){Object.keys(R).forEach(function(W){var G=R[W];if(void 0===G(void 0,{type:et.INIT}))throw Error(formatProdErrorMessage(12));if(void 0===G(void 0,{type:et.PROBE_UNKNOWN_ACTION()}))throw Error(formatProdErrorMessage(13))})}(J)}catch(R){W=R}return function(R,G){if(void 0===R&&(R={}),W)throw W;for(var et=!1,er={},en=0;en<ei.length;en++){var eo=ei[en],es=J[eo],ec=R[eo],el=es(ec,G);if(void 0===el)throw G&&G.type,Error(formatProdErrorMessage(14));er[eo]=el,et=et||el!==ec}return(et=et||ei.length!==Object.keys(R).length)?er:R}}function compose(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];return 0===W.length?function(R){return R}:1===W.length?W[0]:W.reduce(function(R,W){return function(){return R(W.apply(void 0,arguments))}})}},80230:function(R,W,G){"use strict";G.d(W,{y:function(){return ec}});var J=G(65044),et=G(4222),er=G(46766),en=G(92749),ei=G(53912),eo=G(58474),es=G(48545),ec=function(){function Observable(R){R&&(this._subscribe=R)}return Observable.prototype.lift=function(R){var W=new Observable;return W.source=this,W.operator=R,W},Observable.prototype.subscribe=function(R,W,G){var er,en=this,ei=(er=R)&&er instanceof J.Lv||er&&(0,eo.m)(er.next)&&(0,eo.m)(er.error)&&(0,eo.m)(er.complete)&&(0,et.Nn)(er)?R:new J.Hp(R,W,G);return(0,es.x)(function(){var R=en.operator,W=en.source;ei.add(R?R.call(ei,W):W?en._subscribe(ei):en._trySubscribe(ei))}),ei},Observable.prototype._trySubscribe=function(R){try{return this._subscribe(R)}catch(W){R.error(W)}},Observable.prototype.forEach=function(R,W){var G=this;return new(W=getPromiseCtor(W))(function(W,et){var er=new J.Hp({next:function(W){try{R(W)}catch(R){et(R),er.unsubscribe()}},error:et,complete:W});G.subscribe(er)})},Observable.prototype._subscribe=function(R){var W;return null===(W=this.source)||void 0===W?void 0:W.subscribe(R)},Observable.prototype[er.L]=function(){return this},Observable.prototype.pipe=function(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];return(0,en.U)(R)(this)},Observable.prototype.toPromise=function(R){var W=this;return new(R=getPromiseCtor(R))(function(R,G){var J;W.subscribe(function(R){return J=R},function(R){return G(R)},function(){return R(J)})})},Observable.create=function(R){return new Observable(R)},Observable}();function getPromiseCtor(R){var W;return null!==(W=null!=R?R:ei.v.Promise)&&void 0!==W?W:Promise}},65044:function(R,W,G){"use strict";G.d(W,{Hp:function(){return ef},Lv:function(){return eu}});var J=G(97582),et=G(58474),er=G(4222),en=G(53912),ei=G(40005),eo=G(22967),es=createNotification("C",void 0,void 0);function createNotification(R,W,G){return{kind:R,value:W,error:G}}var ec=G(68380),el=G(48545),eu=function(R){function Subscriber(W){var G=R.call(this)||this;return G.isStopped=!1,W?(G.destination=W,(0,er.Nn)(W)&&W.add(G)):G.destination=eh,G}return(0,J.ZT)(Subscriber,R),Subscriber.create=function(R,W,G){return new ef(R,W,G)},Subscriber.prototype.next=function(R){this.isStopped?handleStoppedNotification(createNotification("N",R,void 0),this):this._next(R)},Subscriber.prototype.error=function(R){this.isStopped?handleStoppedNotification(createNotification("E",void 0,R),this):(this.isStopped=!0,this._error(R))},Subscriber.prototype.complete=function(){this.isStopped?handleStoppedNotification(es,this):(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,R.prototype.unsubscribe.call(this),this.destination=null)},Subscriber.prototype._next=function(R){this.destination.next(R)},Subscriber.prototype._error=function(R){try{this.destination.error(R)}finally{this.unsubscribe()}},Subscriber.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Subscriber}(er.w0),ed=Function.prototype.bind;function bind(R,W){return ed.call(R,W)}var ep=function(){function ConsumerObserver(R){this.partialObserver=R}return ConsumerObserver.prototype.next=function(R){var W=this.partialObserver;if(W.next)try{W.next(R)}catch(R){handleUnhandledError(R)}},ConsumerObserver.prototype.error=function(R){var W=this.partialObserver;if(W.error)try{W.error(R)}catch(R){handleUnhandledError(R)}else handleUnhandledError(R)},ConsumerObserver.prototype.complete=function(){var R=this.partialObserver;if(R.complete)try{R.complete()}catch(R){handleUnhandledError(R)}},ConsumerObserver}(),ef=function(R){function SafeSubscriber(W,G,J){var er,ei,eo=R.call(this)||this;return(0,et.m)(W)||!W?er={next:null!=W?W:void 0,error:null!=G?G:void 0,complete:null!=J?J:void 0}:eo&&en.v.useDeprecatedNextContext?((ei=Object.create(W)).unsubscribe=function(){return eo.unsubscribe()},er={next:W.next&&bind(W.next,ei),error:W.error&&bind(W.error,ei),complete:W.complete&&bind(W.complete,ei)}):er=W,eo.destination=new ep(er),eo}return(0,J.ZT)(SafeSubscriber,R),SafeSubscriber}(eu);function handleUnhandledError(R){en.v.useDeprecatedSynchronousErrorHandling?(0,el.O)(R):(0,ei.h)(R)}function handleStoppedNotification(R,W){var G=en.v.onStoppedNotification;G&&ec.z.setTimeout(function(){return G(R,W)})}var eh={closed:!0,next:eo.Z,error:function(R){throw R},complete:eo.Z}},4222:function(R,W,G){"use strict";G.d(W,{Lc:function(){return eo},w0:function(){return ei},Nn:function(){return isSubscription}});var J=G(97582),et=G(58474),er=(0,G(1819).d)(function(R){return function(W){R(this),this.message=W?W.length+" errors occurred during unsubscription:\n"+W.map(function(R,W){return W+1+") "+R.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=W}}),en=G(3699),ei=function(){var R;function Subscription(R){this.initialTeardown=R,this.closed=!1,this._parentage=null,this._finalizers=null}return Subscription.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var R,W,G,en,ei,eo=this._parentage;if(eo){if(this._parentage=null,Array.isArray(eo))try{for(var es=(0,J.XA)(eo),ec=es.next();!ec.done;ec=es.next())ec.value.remove(this)}catch(W){R={error:W}}finally{try{ec&&!ec.done&&(W=es.return)&&W.call(es)}finally{if(R)throw R.error}}else eo.remove(this)}var el=this.initialTeardown;if((0,et.m)(el))try{el()}catch(R){ei=R instanceof er?R.errors:[R]}var eu=this._finalizers;if(eu){this._finalizers=null;try{for(var ed=(0,J.XA)(eu),ep=ed.next();!ep.done;ep=ed.next()){var ef=ep.value;try{execFinalizer(ef)}catch(R){ei=null!=ei?ei:[],R instanceof er?ei=(0,J.ev)((0,J.ev)([],(0,J.CR)(ei)),(0,J.CR)(R.errors)):ei.push(R)}}}catch(R){G={error:R}}finally{try{ep&&!ep.done&&(en=ed.return)&&en.call(ed)}finally{if(G)throw G.error}}}if(ei)throw new er(ei)}},Subscription.prototype.add=function(R){var W;if(R&&R!==this){if(this.closed)execFinalizer(R);else{if(R instanceof Subscription){if(R.closed||R._hasParent(this))return;R._addParent(this)}(this._finalizers=null!==(W=this._finalizers)&&void 0!==W?W:[]).push(R)}}},Subscription.prototype._hasParent=function(R){var W=this._parentage;return W===R||Array.isArray(W)&&W.includes(R)},Subscription.prototype._addParent=function(R){var W=this._parentage;this._parentage=Array.isArray(W)?(W.push(R),W):W?[W,R]:R},Subscription.prototype._removeParent=function(R){var W=this._parentage;W===R?this._parentage=null:Array.isArray(W)&&(0,en.P)(W,R)},Subscription.prototype.remove=function(R){var W=this._finalizers;W&&(0,en.P)(W,R),R instanceof Subscription&&R._removeParent(this)},Subscription.EMPTY=((R=new Subscription).closed=!0,R),Subscription}(),eo=ei.EMPTY;function isSubscription(R){return R instanceof ei||R&&"closed"in R&&(0,et.m)(R.remove)&&(0,et.m)(R.add)&&(0,et.m)(R.unsubscribe)}function execFinalizer(R){(0,et.m)(R)?R():R.unsubscribe()}},53912:function(R,W,G){"use strict";G.d(W,{v:function(){return J}});var J={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},36861:function(R,W,G){"use strict";G.d(W,{n:function(){return lastValueFrom}});var J=G(18084);function lastValueFrom(R,W){var G="object"==typeof W;return new Promise(function(et,er){var en,ei=!1;R.subscribe({next:function(R){en=R,ei=!0},error:er,complete:function(){ei?et(en):G?et(W.defaultValue):er(new J.K)}})})}},40564:function(R,W,G){"use strict";G.d(W,{a:function(){return combineLatest},l:function(){return combineLatestInit}});var J=G(80230),et=G(9061),er=G(40052),en=G(90278),ei=G(53211),eo=G(22457),es=G(55210),ec=G(2566),el=G(47845);function combineLatest(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];var G=(0,eo.yG)(R),ec=(0,eo.jO)(R),el=(0,et.D)(R),eu=el.args,ed=el.keys;if(0===eu.length)return(0,er.D)([],G);var ep=new J.y(combineLatestInit(eu,G,ed?function(R){return(0,es.n)(ed,R)}:en.y));return ec?ep.pipe((0,ei.Z)(ec)):ep}function combineLatestInit(R,W,G){return void 0===G&&(G=en.y),function(J){maybeSchedule(W,function(){for(var et=R.length,en=Array(et),ei=et,eo=et,_loop_1=function(et){maybeSchedule(W,function(){var es=(0,er.D)(R[et],W),el=!1;es.subscribe((0,ec.x)(J,function(R){en[et]=R,!el&&(el=!0,eo--),eo||J.next(G(en.slice()))},function(){--ei||J.complete()}))},J)},es=0;es<et;es++)_loop_1(es)},J)}}function maybeSchedule(R,W,G){R?(0,el.f)(G,R,W):W()}},40052:function(R,W,G){"use strict";G.d(W,{D:function(){return from}});var J=G(71477),et=G(87878);function from(R,W){return W?(0,J.x)(R,W):(0,et.Xf)(R)}},87878:function(R,W,G){"use strict";G.d(W,{Xf:function(){return innerFrom}});var J=G(97582),et=G(45685),er=G(53841),en=G(80230),ei=G(71764),eo=G(58430),es=G(88729),ec=G(1837),el=G(48671),eu=G(58474),ed=G(40005),ep=G(46766);function innerFrom(R){if(R instanceof en.y)return R;if(null!=R){if((0,ei.c)(R))return new en.y(function(W){var G=R[ep.L]();if((0,eu.m)(G.subscribe))return G.subscribe(W);throw TypeError("Provided object does not correctly implement Symbol.observable")});if((0,et.z)(R))return new en.y(function(W){for(var G=0;G<R.length&&!W.closed;G++)W.next(R[G]);W.complete()});if((0,er.t)(R))return new en.y(function(W){R.then(function(R){W.closed||(W.next(R),W.complete())},function(R){return W.error(R)}).then(null,ed.h)});if((0,eo.D)(R))return fromAsyncIterable(R);if((0,ec.T)(R))return new en.y(function(W){var G,et;try{for(var er=(0,J.XA)(R),en=er.next();!en.done;en=er.next()){var ei=en.value;if(W.next(ei),W.closed)return}}catch(R){G={error:R}}finally{try{en&&!en.done&&(et=er.return)&&et.call(er)}finally{if(G)throw G.error}}W.complete()});if((0,el.L)(R))return fromAsyncIterable((0,el.Q)(R))}throw(0,es.z)(R)}function fromAsyncIterable(R){return new en.y(function(W){(function(R,W){var G,et,er,en;return(0,J.mG)(this,void 0,void 0,function(){var ei;return(0,J.Jh)(this,function(eo){switch(eo.label){case 0:eo.trys.push([0,5,6,11]),G=(0,J.KL)(R),eo.label=1;case 1:return[4,G.next()];case 2:if((et=eo.sent()).done)return[3,4];if(ei=et.value,W.next(ei),W.closed)return[2];eo.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return er={error:eo.sent()},[3,11];case 6:if(eo.trys.push([6,,9,10]),!(et&&!et.done&&(en=G.return)))return[3,8];return[4,en.call(G)];case 7:eo.sent(),eo.label=8;case 8:return[3,10];case 9:if(er)throw er.error;return[7];case 10:return[7];case 11:return W.complete(),[2]}})})})(R,W).catch(function(R){return W.error(R)})})}},2566:function(R,W,G){"use strict";G.d(W,{Q:function(){return et},x:function(){return createOperatorSubscriber}});var J=G(97582);function createOperatorSubscriber(R,W,G,J,er){return new et(R,W,G,J,er)}var et=function(R){function OperatorSubscriber(W,G,J,et,er,en){var ei=R.call(this,W)||this;return ei.onFinalize=er,ei.shouldUnsubscribe=en,ei._next=G?function(R){try{G(R)}catch(R){W.error(R)}}:R.prototype._next,ei._error=et?function(R){try{et(R)}catch(R){W.error(R)}finally{this.unsubscribe()}}:R.prototype._error,ei._complete=J?function(){try{J()}catch(R){W.error(R)}finally{this.unsubscribe()}}:R.prototype._complete,ei}return(0,J.ZT)(OperatorSubscriber,R),OperatorSubscriber.prototype.unsubscribe=function(){var W;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var G=this.closed;R.prototype.unsubscribe.call(this),G||null===(W=this.onFinalize)||void 0===W||W.call(this)}},OperatorSubscriber}(G(65044).Lv)},94975:function(R,W,G){"use strict";G.d(W,{h:function(){return filter}});var J=G(96798),et=G(2566);function filter(R,W){return(0,J.e)(function(G,J){var er=0;G.subscribe((0,et.x)(J,function(G){return R.call(W,G,er++)&&J.next(G)}))})}},29127:function(R,W,G){"use strict";G.d(W,{U:function(){return map}});var J=G(96798),et=G(2566);function map(R,W){return(0,J.e)(function(G,J){var er=0;G.subscribe((0,et.x)(J,function(G){J.next(R.call(W,G,er++))}))})}},71477:function(R,W,G){"use strict";G.d(W,{x:function(){return scheduled}});var J=G(87878),et=G(47845),er=G(96798),en=G(2566);function observeOn(R,W){return void 0===W&&(W=0),(0,er.e)(function(G,J){G.subscribe((0,en.x)(J,function(G){return(0,et.f)(J,R,function(){return J.next(G)},W)},function(){return(0,et.f)(J,R,function(){return J.complete()},W)},function(G){return(0,et.f)(J,R,function(){return J.error(G)},W)}))})}function subscribeOn(R,W){return void 0===W&&(W=0),(0,er.e)(function(G,J){J.add(R.schedule(function(){return G.subscribe(J)},W))})}var ei=G(80230),eo=G(39768),es=G(58474);function scheduleAsyncIterable(R,W){if(!R)throw Error("Iterable cannot be null");return new ei.y(function(G){(0,et.f)(G,W,function(){var J=R[Symbol.asyncIterator]();(0,et.f)(G,W,function(){J.next().then(function(R){R.done?G.complete():G.next(R.value)})},0,!0)})})}var ec=G(71764),el=G(53841),eu=G(45685),ed=G(1837),ep=G(58430),ef=G(88729),eh=G(48671);function scheduled(R,W){if(null!=R){if((0,ec.c)(R))return(0,J.Xf)(R).pipe(subscribeOn(W),observeOn(W));if((0,eu.z)(R))return new ei.y(function(G){var J=0;return W.schedule(function(){J===R.length?G.complete():(G.next(R[J++]),G.closed||this.schedule())})});if((0,el.t)(R))return(0,J.Xf)(R).pipe(subscribeOn(W),observeOn(W));if((0,ep.D)(R))return scheduleAsyncIterable(R,W);if((0,ed.T)(R))return new ei.y(function(G){var J;return(0,et.f)(G,W,function(){J=R[eo.h](),(0,et.f)(G,W,function(){var R,W,et;try{W=(R=J.next()).value,et=R.done}catch(R){G.error(R);return}et?G.complete():G.next(W)},0,!0)}),function(){return(0,es.m)(null==J?void 0:J.return)&&J.return()}});if((0,eh.L)(R))return scheduleAsyncIterable((0,eh.Q)(R),W)}throw(0,ef.z)(R)}},68380:function(R,W,G){"use strict";G.d(W,{z:function(){return et}});var J=G(97582),et={setTimeout:function(R,W){for(var G=[],er=2;er<arguments.length;er++)G[er-2]=arguments[er];var en=et.delegate;return(null==en?void 0:en.setTimeout)?en.setTimeout.apply(en,(0,J.ev)([R,W],(0,J.CR)(G))):setTimeout.apply(void 0,(0,J.ev)([R,W],(0,J.CR)(G)))},clearTimeout:function(R){var W=et.delegate;return((null==W?void 0:W.clearTimeout)||clearTimeout)(R)},delegate:void 0}},39768:function(R,W,G){"use strict";G.d(W,{h:function(){return J}});var J="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},46766:function(R,W,G){"use strict";G.d(W,{L:function(){return J}});var J="function"==typeof Symbol&&Symbol.observable||"@@observable"},18084:function(R,W,G){"use strict";G.d(W,{K:function(){return J}});var J=(0,G(1819).d)(function(R){return function(){R(this),this.name="EmptyError",this.message="no elements in sequence"}})},22457:function(R,W,G){"use strict";G.d(W,{_6:function(){return popNumber},jO:function(){return popResultSelector},yG:function(){return popScheduler}});var J=G(58474),et=G(64865);function last(R){return R[R.length-1]}function popResultSelector(R){return(0,J.m)(last(R))?R.pop():void 0}function popScheduler(R){return(0,et.K)(last(R))?R.pop():void 0}function popNumber(R,W){return"number"==typeof last(R)?R.pop():W}},9061:function(R,W,G){"use strict";G.d(W,{D:function(){return argsArgArrayOrObject}});var J=Array.isArray,et=Object.getPrototypeOf,er=Object.prototype,en=Object.keys;function argsArgArrayOrObject(R){if(1===R.length){var W=R[0];if(J(W))return{args:W,keys:null};if(W&&"object"==typeof W&&et(W)===er){var G=en(W);return{args:G.map(function(R){return W[R]}),keys:G}}}return{args:R,keys:null}}},68936:function(R,W,G){"use strict";G.d(W,{k:function(){return argsOrArgArray}});var J=Array.isArray;function argsOrArgArray(R){return 1===R.length&&J(R[0])?R[0]:R}},3699:function(R,W,G){"use strict";function arrRemove(R,W){if(R){var G=R.indexOf(W);0<=G&&R.splice(G,1)}}G.d(W,{P:function(){return arrRemove}})},1819:function(R,W,G){"use strict";function createErrorClass(R){var W=R(function(R){Error.call(R),R.stack=Error().stack});return W.prototype=Object.create(Error.prototype),W.prototype.constructor=W,W}G.d(W,{d:function(){return createErrorClass}})},55210:function(R,W,G){"use strict";function createObject(R,W){return R.reduce(function(R,G,J){return R[G]=W[J],R},{})}G.d(W,{n:function(){return createObject}})},48545:function(R,W,G){"use strict";G.d(W,{O:function(){return captureError},x:function(){return errorContext}});var J=G(53912),et=null;function errorContext(R){if(J.v.useDeprecatedSynchronousErrorHandling){var W=!et;if(W&&(et={errorThrown:!1,error:null}),R(),W){var G=et,er=G.errorThrown,en=G.error;if(et=null,er)throw en}}else R()}function captureError(R){J.v.useDeprecatedSynchronousErrorHandling&&et&&(et.errorThrown=!0,et.error=R)}},47845:function(R,W,G){"use strict";function executeSchedule(R,W,G,J,et){void 0===J&&(J=0),void 0===et&&(et=!1);var er=W.schedule(function(){G(),et?R.add(this.schedule(null,J)):this.unsubscribe()},J);if(R.add(er),!et)return er}G.d(W,{f:function(){return executeSchedule}})},90278:function(R,W,G){"use strict";function identity(R){return R}G.d(W,{y:function(){return identity}})},45685:function(R,W,G){"use strict";G.d(W,{z:function(){return isArrayLike}});var isArrayLike=function(R){return R&&"number"==typeof R.length&&"function"!=typeof R}},58430:function(R,W,G){"use strict";G.d(W,{D:function(){return isAsyncIterable}});var J=G(58474);function isAsyncIterable(R){return Symbol.asyncIterator&&(0,J.m)(null==R?void 0:R[Symbol.asyncIterator])}},58474:function(R,W,G){"use strict";function isFunction(R){return"function"==typeof R}G.d(W,{m:function(){return isFunction}})},71764:function(R,W,G){"use strict";G.d(W,{c:function(){return isInteropObservable}});var J=G(46766),et=G(58474);function isInteropObservable(R){return(0,et.m)(R[J.L])}},1837:function(R,W,G){"use strict";G.d(W,{T:function(){return isIterable}});var J=G(39768),et=G(58474);function isIterable(R){return(0,et.m)(null==R?void 0:R[J.h])}},53841:function(R,W,G){"use strict";G.d(W,{t:function(){return isPromise}});var J=G(58474);function isPromise(R){return(0,J.m)(null==R?void 0:R.then)}},48671:function(R,W,G){"use strict";G.d(W,{L:function(){return isReadableStreamLike},Q:function(){return readableStreamLikeToAsyncGenerator}});var J=G(97582),et=G(58474);function readableStreamLikeToAsyncGenerator(R){return(0,J.FC)(this,arguments,function(){var W,G,et;return(0,J.Jh)(this,function(er){switch(er.label){case 0:W=R.getReader(),er.label=1;case 1:er.trys.push([1,,9,10]),er.label=2;case 2:return[4,(0,J.qq)(W.read())];case 3:if(et=(G=er.sent()).value,!G.done)return[3,5];return[4,(0,J.qq)(void 0)];case 4:return[2,er.sent()];case 5:return[4,(0,J.qq)(et)];case 6:return[4,er.sent()];case 7:return er.sent(),[3,2];case 8:return[3,10];case 9:return W.releaseLock(),[7];case 10:return[2]}})})}function isReadableStreamLike(R){return(0,et.m)(null==R?void 0:R.getReader)}},64865:function(R,W,G){"use strict";G.d(W,{K:function(){return isScheduler}});var J=G(58474);function isScheduler(R){return R&&(0,J.m)(R.schedule)}},96798:function(R,W,G){"use strict";G.d(W,{A:function(){return hasLift},e:function(){return operate}});var J=G(58474);function hasLift(R){return(0,J.m)(null==R?void 0:R.lift)}function operate(R){return function(W){if(hasLift(W))return W.lift(function(W){try{return R(W,this)}catch(R){this.error(R)}});throw TypeError("Unable to lift unknown Observable type")}}},53211:function(R,W,G){"use strict";G.d(W,{Z:function(){return mapOneOrManyArgs}});var J=G(97582),et=G(29127),er=Array.isArray;function mapOneOrManyArgs(R){return(0,et.U)(function(W){return er(W)?R.apply(void 0,(0,J.ev)([],(0,J.CR)(W))):R(W)})}},22967:function(R,W,G){"use strict";function noop(){}G.d(W,{Z:function(){return noop}})},92749:function(R,W,G){"use strict";G.d(W,{U:function(){return pipeFromArray},z:function(){return pipe}});var J=G(90278);function pipe(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];return pipeFromArray(R)}function pipeFromArray(R){return 0===R.length?J.y:1===R.length?R[0]:function(W){return R.reduce(function(R,W){return W(R)},W)}}},40005:function(R,W,G){"use strict";G.d(W,{h:function(){return reportUnhandledError}});var J=G(53912),et=G(68380);function reportUnhandledError(R){et.z.setTimeout(function(){var W=J.v.onUnhandledError;if(W)W(R);else throw R})}},88729:function(R,W,G){"use strict";function createInvalidObservableTypeError(R){return TypeError("You provided "+(null!==R&&"object"==typeof R?"an invalid object":"'"+R+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}G.d(W,{z:function(){return createInvalidObservableTypeError}})},75974:function(R){R.exports=function(R,W){var G,J=null;try{G=JSON.parse(R,W)}catch(R){J=R}return[J,G]}},96774:function(R){R.exports=function(R,W,G,J){var et=G?G.call(J,R,W):void 0;if(void 0!==et)return!!et;if(R===W)return!0;if("object"!=typeof R||!R||"object"!=typeof W||!W)return!1;var er=Object.keys(R),en=Object.keys(W);if(er.length!==en.length)return!1;for(var ei=Object.prototype.hasOwnProperty.bind(W),eo=0;eo<er.length;eo++){var es=er[eo];if(!ei(es))return!1;var ec=R[es],el=W[es];if(!1===(et=G?G.call(J,ec,el,es):void 0)||void 0===et&&ec!==el)return!1}return!0}},70643:function(R,W,G){"use strict";G.d(W,{f6:function(){return Le},vJ:function(){return $e},iv:function(){return Ae},ZP:function(){return eY},F4:function(){return We},Fg:function(){return Xe}});var J,et,er=G(59864),en=G(67294),ei=G(96774),eo=G.n(ei),es=G(48285),ec=G(40351),el=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,eu=(et=Object.create(null),function(R){return void 0===et[R]&&(et[R]=el.test(R)||111===R.charCodeAt(0)&&110===R.charCodeAt(1)&&91>R.charCodeAt(2)),et[R]}),ed=G(8679),ep=G.n(ed),ef=G(34155);function y(){return(y=Object.assign||function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}var v=function(R,W){for(var G=[R[0]],J=0,et=W.length;J<et;J+=1)G.push(W[J],R[J+1]);return G},g=function(R){return null!==R&&"object"==typeof R&&"[object Object]"===(R.toString?R.toString():Object.prototype.toString.call(R))&&!(0,er.typeOf)(R)},eh=Object.freeze([]),eg=Object.freeze({});function E(R){return"function"==typeof R}function b(R){return R.displayName||R.name||"Component"}function _(R){return R&&"string"==typeof R.styledComponentId}var em=void 0!==ef&&void 0!==ef.env&&(ef.env.REACT_APP_SC_ATTR||ef.env.SC_ATTR)||"data-styled",ey="undefined"!=typeof window&&"HTMLElement"in window,ev=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==ef&&void 0!==ef.env&&(void 0!==ef.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==ef.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==ef.env.REACT_APP_SC_DISABLE_SPEEDY&&ef.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==ef.env.SC_DISABLE_SPEEDY&&""!==ef.env.SC_DISABLE_SPEEDY&&"false"!==ef.env.SC_DISABLE_SPEEDY&&ef.env.SC_DISABLE_SPEEDY)),eb={};function D(R){for(var W=arguments.length,G=Array(W>1?W-1:0),J=1;J<W;J++)G[J-1]=arguments[J];throw Error("An error occurred. See https://git.io/JUIaE#"+R+" for more information."+(G.length>0?" Args: "+G.join(", "):""))}var e_=function(){function e(R){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=R}var R=e.prototype;return R.indexOfGroup=function(R){for(var W=0,G=0;G<R;G++)W+=this.groupSizes[G];return W},R.insertRules=function(R,W){if(R>=this.groupSizes.length){for(var G=this.groupSizes,J=G.length,et=J;R>=et;)(et<<=1)<0&&D(16,""+R);this.groupSizes=new Uint32Array(et),this.groupSizes.set(G),this.length=et;for(var er=J;er<et;er++)this.groupSizes[er]=0}for(var en=this.indexOfGroup(R+1),ei=0,eo=W.length;ei<eo;ei++)this.tag.insertRule(en,W[ei])&&(this.groupSizes[R]++,en++)},R.clearGroup=function(R){if(R<this.length){var W=this.groupSizes[R],G=this.indexOfGroup(R),J=G+W;this.groupSizes[R]=0;for(var et=G;et<J;et++)this.tag.deleteRule(G)}},R.getGroup=function(R){var W="";if(R>=this.length||0===this.groupSizes[R])return W;for(var G=this.groupSizes[R],J=this.indexOfGroup(R),et=J+G,er=J;er<et;er++)W+=this.tag.getRule(er)+"/*!sc*/\n";return W},e}(),ex=new Map,ew=new Map,eS=1,V=function(R){if(ex.has(R))return ex.get(R);for(;ew.has(eS);)eS++;var W=eS++;return ex.set(R,W),ew.set(W,R),W},z=function(R,W){W>=eS&&(eS=W+1),ex.set(R,W),ew.set(W,R)},eT="style["+em+'][data-styled-version="5.3.11"]',eO=RegExp("^"+em+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(R,W,G){for(var J,et=G.split(","),er=0,en=et.length;er<en;er++)(J=et[er])&&R.registerName(W,J)},F=function(R,W){for(var G=(W.textContent||"").split("/*!sc*/\n"),J=[],et=0,er=G.length;et<er;et++){var en=G[et].trim();if(en){var ei=en.match(eO);if(ei){var eo=0|parseInt(ei[1],10),es=ei[2];0!==eo&&(z(es,eo),L(R,es,ei[3]),R.getTag().insertRules(eo,J)),J.length=0}else J.push(en)}}},Y=function(){return G.nc},q=function(R){var W=document.head,G=R||W,J=document.createElement("style"),et=function(R){for(var W=R.childNodes,G=W.length;G>=0;G--){var J=W[G];if(J&&1===J.nodeType&&J.hasAttribute(em))return J}}(G),er=void 0!==et?et.nextSibling:null;J.setAttribute(em,"active"),J.setAttribute("data-styled-version","5.3.11");var en=Y();return en&&J.setAttribute("nonce",en),G.insertBefore(J,er),J},eP=function(){function e(R){var W=this.element=q(R);W.appendChild(document.createTextNode("")),this.sheet=function(R){if(R.sheet)return R.sheet;for(var W=document.styleSheets,G=0,J=W.length;G<J;G++){var et=W[G];if(et.ownerNode===R)return et}D(17)}(W),this.length=0}var R=e.prototype;return R.insertRule=function(R,W){try{return this.sheet.insertRule(W,R),this.length++,!0}catch(R){return!1}},R.deleteRule=function(R){this.sheet.deleteRule(R),this.length--},R.getRule=function(R){var W=this.sheet.cssRules[R];return void 0!==W&&"string"==typeof W.cssText?W.cssText:""},e}(),eC=function(){function e(R){var W=this.element=q(R);this.nodes=W.childNodes,this.length=0}var R=e.prototype;return R.insertRule=function(R,W){if(R<=this.length&&R>=0){var G=document.createTextNode(W),J=this.nodes[R];return this.element.insertBefore(G,J||null),this.length++,!0}return!1},R.deleteRule=function(R){this.element.removeChild(this.nodes[R]),this.length--},R.getRule=function(R){return R<this.length?this.nodes[R].textContent:""},e}(),ek=function(){function e(R){this.rules=[],this.length=0}var R=e.prototype;return R.insertRule=function(R,W){return R<=this.length&&(this.rules.splice(R,0,W),this.length++,!0)},R.deleteRule=function(R){this.rules.splice(R,1),this.length--},R.getRule=function(R){return R<this.length?this.rules[R]:""},e}(),eE=ey,ej={isServer:!ey,useCSSOMInjection:!ev},eA=function(){function e(R,W,G){void 0===R&&(R=eg),void 0===W&&(W={}),this.options=y({},ej,{},R),this.gs=W,this.names=new Map(G),this.server=!!R.isServer,!this.server&&ey&&eE&&(eE=!1,function(R){for(var W=document.querySelectorAll(eT),G=0,J=W.length;G<J;G++){var et=W[G];et&&"active"!==et.getAttribute(em)&&(F(R,et),et.parentNode&&et.parentNode.removeChild(et))}}(this))}e.registerId=function(R){return V(R)};var R=e.prototype;return R.reconstructWithOptions=function(R,W){return void 0===W&&(W=!0),new e(y({},this.options,{},R),this.gs,W&&this.names||void 0)},R.allocateGSInstance=function(R){return this.gs[R]=(this.gs[R]||0)+1},R.getTag=function(){var R,W,G,J,et;return this.tag||(this.tag=(G=(W=this.options).isServer,J=W.useCSSOMInjection,et=W.target,R=G?new ek(et):J?new eP(et):new eC(et),new e_(R)))},R.hasNameForId=function(R,W){return this.names.has(R)&&this.names.get(R).has(W)},R.registerName=function(R,W){if(V(R),this.names.has(R))this.names.get(R).add(W);else{var G=new Set;G.add(W),this.names.set(R,G)}},R.insertRules=function(R,W,G){this.registerName(R,W),this.getTag().insertRules(V(R),G)},R.clearNames=function(R){this.names.has(R)&&this.names.get(R).clear()},R.clearRules=function(R){this.getTag().clearGroup(V(R)),this.clearNames(R)},R.clearTag=function(){this.tag=void 0},R.toString=function(){return function(R){for(var W=R.getTag(),G=W.length,J="",et=0;et<G;et++){var er,en=(er=et,ew.get(er));if(void 0!==en){var ei=R.names.get(en),eo=W.getGroup(et);if(ei&&eo&&ei.size){var es=em+".g"+et+'[id="'+en+'"]',ec="";void 0!==ei&&ei.forEach(function(R){R.length>0&&(ec+=R+",")}),J+=""+eo+es+'{content:"'+ec+'"}/*!sc*/\n'}}}return J}(this)},e}(),eD=/(a)(d)/gi,K=function(R){return String.fromCharCode(R+(R>25?39:97))};function Q(R){var W,G="";for(W=Math.abs(R);W>52;W=W/52|0)G=K(W%52)+G;return(K(W%52)+G).replace(eD,"$1-$2")}var ee=function(R,W){for(var G=W.length;G;)R=33*R^W.charCodeAt(--G);return R},te=function(R){return ee(5381,R)};function ne(R){for(var W=0;W<R.length;W+=1){var G=R[W];if(E(G)&&!_(G))return!1}return!0}var eI=te("5.3.11"),eM=function(){function e(R,W,G){this.rules=R,this.staticRulesId="",this.isStatic=(void 0===G||G.isStatic)&&ne(R),this.componentId=W,this.baseHash=ee(eI,W),this.baseStyle=G,eA.registerId(W)}return e.prototype.generateAndInjectStyles=function(R,W,G){var J=this.componentId,et=[];if(this.baseStyle&&et.push(this.baseStyle.generateAndInjectStyles(R,W,G)),this.isStatic&&!G.hash){if(this.staticRulesId&&W.hasNameForId(J,this.staticRulesId))et.push(this.staticRulesId);else{var er=_e(this.rules,R,W,G).join(""),en=Q(ee(this.baseHash,er)>>>0);if(!W.hasNameForId(J,en)){var ei=G(er,"."+en,void 0,J);W.insertRules(J,en,ei)}et.push(en),this.staticRulesId=en}}else{for(var eo=this.rules.length,es=ee(this.baseHash,G.hash),ec="",el=0;el<eo;el++){var eu=this.rules[el];if("string"==typeof eu)ec+=eu;else if(eu){var ed=_e(eu,R,W,G),ep=Array.isArray(ed)?ed.join(""):ed;es=ee(es,ep+el),ec+=ep}}if(ec){var ef=Q(es>>>0);if(!W.hasNameForId(J,ef)){var eh=G(ec,"."+ef,void 0,J);W.insertRules(J,ef,eh)}et.push(ef)}}return et.join(" ")},e}(),eL=/^\s*\/\/.*$/gm,eR=[":","[",".","#"];function ae(R){var W,G,J,et,er=void 0===R?eg:R,en=er.options,ei=void 0===en?eg:en,eo=er.plugins,ec=void 0===eo?eh:eo,el=new es.Z(ei),eu=[],ed=function(R){function t(W){if(W)try{R(W+"}")}catch(R){}}return function(W,G,J,et,er,en,ei,eo,es,ec){switch(W){case 1:if(0===es&&64===G.charCodeAt(0))return R(G+";"),"";break;case 2:if(0===eo)return G+"/*|*/";break;case 3:switch(eo){case 102:case 112:return R(J[0]+G),"";default:return G+(0===ec?"/*|*/":"")}case -2:G.split("/*|*/}").forEach(t)}}}(function(R){eu.push(R)}),f=function(R,J,er){return 0===J&&-1!==eR.indexOf(er[G.length])||er.match(et)?R:"."+W};function m(R,er,en,ei){void 0===ei&&(ei="&");var eo=R.replace(eL,""),es=er&&en?en+" "+er+" { "+eo+" }":eo;return W=ei,J=RegExp("\\"+(G=er)+"\\b","g"),et=RegExp("(\\"+G+"\\b){2,}"),el(en||!er?"":er,es)}return el.use([].concat(ec,[function(R,W,et){2===R&&et.length&&et[0].lastIndexOf(G)>0&&(et[0]=et[0].replace(J,f))},ed,function(R){if(-2===R){var W=eu;return eu=[],W}}])),m.hash=ec.length?ec.reduce(function(R,W){return W.name||D(15),ee(R,W.name)},5381).toString():"",m}var eN=en.createContext(),eB=(eN.Consumer,en.createContext()),eZ=(eB.Consumer,new eA),eU=ae();function pe(){return(0,en.useContext)(eN)||eZ}function fe(){return(0,en.useContext)(eB)||eU}function me(R){var W=(0,en.useState)(R.stylisPlugins),G=W[0],J=W[1],et=pe(),er=(0,en.useMemo)(function(){var W=et;return R.sheet?W=R.sheet:R.target&&(W=W.reconstructWithOptions({target:R.target},!1)),R.disableCSSOMInjection&&(W=W.reconstructWithOptions({useCSSOMInjection:!1})),W},[R.disableCSSOMInjection,R.sheet,R.target]),ei=(0,en.useMemo)(function(){return ae({options:{prefix:!R.disableVendorPrefixes},plugins:G})},[R.disableVendorPrefixes,G]);return(0,en.useEffect)(function(){eo()(G,R.stylisPlugins)||J(R.stylisPlugins)},[R.stylisPlugins]),en.createElement(eN.Provider,{value:er},en.createElement(eB.Provider,{value:ei},R.children))}var eF=function(){function e(R,W){var G=this;this.inject=function(R,W){void 0===W&&(W=eU);var J=G.name+W.hash;R.hasNameForId(G.id,J)||R.insertRules(G.id,J,W(G.rules,J,"@keyframes"))},this.toString=function(){return D(12,String(G.name))},this.name=R,this.id="sc-keyframes-"+R,this.rules=W}return e.prototype.getName=function(R){return void 0===R&&(R=eU),this.name+R.hash},e}(),ez=/([A-Z])/,eH=/([A-Z])/g,eq=/^ms-/,we=function(R){return"-"+R.toLowerCase()};function Ee(R){return ez.test(R)?R.replace(eH,we).replace(eq,"-ms-"):R}var be=function(R){return null==R||!1===R||""===R};function _e(R,W,G,J){if(Array.isArray(R)){for(var et,er=[],en=0,ei=R.length;en<ei;en+=1)""!==(et=_e(R[en],W,G,J))&&(Array.isArray(et)?er.push.apply(er,et):er.push(et));return er}return be(R)?"":_(R)?"."+R.styledComponentId:E(R)?"function"!=typeof R||R.prototype&&R.prototype.isReactComponent||!W?R:_e(R(W),W,G,J):R instanceof eF?G?(R.inject(G,J),R.getName(J)):R:g(R)?function e(R,W){var G,J=[];for(var et in R)R.hasOwnProperty(et)&&!be(R[et])&&(Array.isArray(R[et])&&R[et].isCss||E(R[et])?J.push(Ee(et)+":",R[et],";"):g(R[et])?J.push.apply(J,e(R[et],et)):J.push(Ee(et)+": "+(null==(G=R[et])||"boolean"==typeof G||""===G?"":"number"!=typeof G||0===G||et in ec.Z||et.startsWith("--")?String(G).trim():G+"px")+";"));return W?[W+" {"].concat(J,["}"]):J}(R):R.toString()}var Ne=function(R){return Array.isArray(R)&&(R.isCss=!0),R};function Ae(R){for(var W=arguments.length,G=Array(W>1?W-1:0),J=1;J<W;J++)G[J-1]=arguments[J];return E(R)||g(R)?Ne(_e(v(eh,[R].concat(G)))):0===G.length&&1===R.length&&"string"==typeof R[0]?R:Ne(_e(v(R,G)))}var Oe=function(R,W,G){return void 0===G&&(G=eg),R.theme!==G.theme&&R.theme||W||G.theme},eV=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eW=/(^-|-$)/g;function je(R){return R.replace(eV,"-").replace(eW,"")}var Te=function(R){return Q(te(R)>>>0)};function xe(R){return"string"==typeof R}var ke=function(R){return"function"==typeof R||"object"==typeof R&&null!==R&&!Array.isArray(R)},eG=en.createContext();function Le(R){var W=(0,en.useContext)(eG),G=(0,en.useMemo)(function(){var G;return(G=R.theme)?E(G)?G(W):Array.isArray(G)||"object"!=typeof G?D(8):W?y({},W,{},G):G:D(14)},[R.theme,W]);return R.children?en.createElement(eG.Provider,{value:G},R.children):null}eG.Consumer;var e$={},qe=function(R){return function e(R,W,G){if(void 0===G&&(G=eg),!(0,er.isValidElementType)(W))return D(1,String(W));var s=function(){return R(W,G,Ae.apply(void 0,arguments))};return s.withConfig=function(J){return e(R,W,y({},G,{},J))},s.attrs=function(J){return e(R,W,y({},G,{attrs:Array.prototype.concat(G.attrs,J).filter(Boolean)}))},s}(function Ye(R,W,G){var J=_(R),et=!xe(R),er=W.attrs,ei=void 0===er?eh:er,eo=W.componentId,es=void 0===eo?(ey=W.displayName,ev=W.parentComponentId,e$[eb="string"!=typeof ey?"sc":je(ey)]=(e$[eb]||0)+1,e_=eb+"-"+Te("5.3.11"+eb+e$[eb]),ev?ev+"-"+e_:e_):eo,ec=W.displayName,el=void 0===ec?xe(R)?"styled."+R:"Styled("+b(R)+")":ec,ed=W.displayName&&W.componentId?je(W.displayName)+"-"+W.componentId:W.componentId||es,ef=J&&R.attrs?Array.prototype.concat(R.attrs,ei).filter(Boolean):ei,em=W.shouldForwardProp;J&&R.shouldForwardProp&&(em=W.shouldForwardProp?function(G,J,et){return R.shouldForwardProp(G,J,et)&&W.shouldForwardProp(G,J,et)}:R.shouldForwardProp);var ey,ev,eb,e_,ex,ew=new eM(G,ed,J?R.componentStyle:void 0),eS=ew.isStatic&&0===ei.length,P=function(R,W){return function(R,W,G,J){var et,er,ei,eo,es,ec=R.attrs,el=R.componentStyle,ed=R.defaultProps,ep=R.foldedComponentIds,ef=R.shouldForwardProp,eh=R.styledComponentId,em=R.target,ey=(void 0===(et=Oe(W,(0,en.useContext)(eG),ed)||eg)&&(et=eg),er=y({},W,{theme:et}),ei={},ec.forEach(function(R){var W,G,J,et=R;for(W in E(et)&&(et=et(er)),et)er[W]=ei[W]="className"===W?(G=ei[W],J=et[W],G&&J?G+" "+J:G||J):et[W]}),[er,ei]),ev=ey[0],eb=ey[1],e_=(eo=pe(),es=fe(),J?el.generateAndInjectStyles(eg,eo,es):el.generateAndInjectStyles(ev,eo,es)),ex=eb.$as||W.$as||eb.as||W.as||em,ew=xe(ex),eS=eb!==W?y({},W,{},eb):W,eT={};for(var eO in eS)"$"!==eO[0]&&"as"!==eO&&("forwardedAs"===eO?eT.as=eS[eO]:(ef?ef(eO,eu,ex):!ew||eu(eO))&&(eT[eO]=eS[eO]));return W.style&&eb.style!==W.style&&(eT.style=y({},W.style,{},eb.style)),eT.className=Array.prototype.concat(ep,eh,e_!==eh?e_:null,W.className,eb.className).filter(Boolean).join(" "),eT.ref=G,(0,en.createElement)(ex,eT)}(ex,R,W,eS)};return P.displayName=el,(ex=en.forwardRef(P)).attrs=ef,ex.componentStyle=ew,ex.displayName=el,ex.shouldForwardProp=em,ex.foldedComponentIds=J?Array.prototype.concat(R.foldedComponentIds,R.styledComponentId):eh,ex.styledComponentId=ed,ex.target=J?R.target:R,ex.withComponent=function(R){var J=W.componentId,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)W.indexOf(G=er[J])>=0||(et[G]=R[G]);return et}(W,["componentId"]),er=J&&J+"-"+(xe(R)?R:je(b(R)));return Ye(R,y({},et,{attrs:ef,componentId:er}),G)},Object.defineProperty(ex,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(W){this._foldedDefaultProps=J?function ze(R){for(var W=arguments.length,G=Array(W>1?W-1:0),J=1;J<W;J++)G[J-1]=arguments[J];for(var et=0;et<G.length;et++){var er=G[et];if(ke(er))for(var en in er)"__proto__"!==en&&"constructor"!==en&&"prototype"!==en&&function(R,W,G){var J=R[G];ke(W)&&ke(J)?ze(J,W):R[G]=W}(R,er[en],en)}return R}({},R.defaultProps,W):W}}),Object.defineProperty(ex,"toString",{value:function(){return"."+ex.styledComponentId}}),et&&ep()(ex,R,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),ex},R)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(R){qe[R]=qe(R)});var eK=function(){function e(R,W){this.rules=R,this.componentId=W,this.isStatic=ne(R),eA.registerId(this.componentId+1)}var R=e.prototype;return R.createStyles=function(R,W,G,J){var et=J(_e(this.rules,W,G,J).join(""),""),er=this.componentId+R;G.insertRules(er,er,et)},R.removeStyles=function(R,W){W.clearRules(this.componentId+R)},R.renderStyles=function(R,W,G,J){R>2&&eA.registerId(this.componentId+R),this.removeStyles(R,G),this.createStyles(R,W,G,J)},e}();function $e(R){for(var W=arguments.length,G=Array(W>1?W-1:0),J=1;J<W;J++)G[J-1]=arguments[J];var et=Ae.apply(void 0,[R].concat(G)),er="sc-global-"+Te(JSON.stringify(et)),ei=new eK(et,er);function d(R){var W=pe(),G=fe(),J=(0,en.useContext)(eG),et=(0,en.useRef)(W.allocateGSInstance(er)).current;return W.server&&h(et,R,W,J,G),(0,en.useLayoutEffect)(function(){if(!W.server)return h(et,R,W,J,G),function(){return ei.removeStyles(et,W)}},[et,R,W,J,G]),null}function h(R,W,G,J,et){if(ei.isStatic)ei.renderStyles(R,eb,G,et);else{var er=y({},W,{theme:Oe(W,J,d.defaultProps)});ei.renderStyles(R,er,G,et)}}return en.memo(d)}function We(R){for(var W=arguments.length,G=Array(W>1?W-1:0),J=1;J<W;J++)G[J-1]=arguments[J];var et=Ae.apply(void 0,[R].concat(G)).join(""),er=Te(et);return new eF(er,et)}(J=(function(){var R=this;this._emitSheetCSS=function(){var W=R.instance.toString();if(!W)return"";var G=Y();return"<style "+[G&&'nonce="'+G+'"',em+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+W+"</style>"},this.getStyleTags=function(){return R.sealed?D(2):R._emitSheetCSS()},this.getStyleElement=function(){if(R.sealed)return D(2);var W,G=((W={})[em]="",W["data-styled-version"]="5.3.11",W.dangerouslySetInnerHTML={__html:R.instance.toString()},W),J=Y();return J&&(G.nonce=J),[en.createElement("style",y({},G,{key:"sc-0-0"}))]},this.seal=function(){R.sealed=!0},this.instance=new eA({isServer:!0}),this.sealed=!1}).prototype).collectStyles=function(R){return this.sealed?D(2):en.createElement(me,{sheet:this.instance},R)},J.interleaveWithNodeStream=function(R){return D(3)};var Xe=function(){return(0,en.useContext)(eG)},eY=qe},92659:function(R,W,G){var J=R.exports=G(22044);G(624)(J.prototype)},22044:function(R,W,G){var J=G(80569),et=G(15792),er=Object.keys(J.Request.prototype);function Context(R){if(!(this instanceof Context))return new Context(R);this.request=R||J,this.stack=[]}R.exports=Context;var en=Context.prototype={};function each(R,W){for(var G=0;G<R.length;++G)W(R[G],G)}each(er,function(R){~["end"].indexOf(R)||(en[R]=function(){return this.stack.push({method:R,args:arguments}),this})}),en.applyStack=function(R){this.stack.forEach(function(W){R[W.method].apply(R,W.args)})},each(et,function(R){var W="delete"==R?"del":R,G=R.toUpperCase();en[R]=function(R,J){var et=this.request,er=et instanceof Function?et(G,R):et[W](R);return this.applyStack(er),this.emit("request",er),J&&er.end(J),er}}),en.del=en.delete},15792:function(R){R.exports=["get","post","put","head","delete","options","trace","copy","lock","mkcol","move","purge","propfind","proppatch","unlock","report","mkactivity","checkout","merge","m-search","notify","subscribe","unsubscribe","patch","search","connect"]},37903:function(R){"use strict";function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}function Agent(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(R){Agent.prototype[R]=function(){for(var W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];return this._defaults.push({fn:R,args:G}),this}}),Agent.prototype._setDefaults=function(R){this._defaults.forEach(function(W){var G;R[W.fn].apply(R,function(R){if(Array.isArray(R))return _arrayLikeToArray(R)}(G=W.args)||function(R){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(R))return Array.from(R)}(G)||function(R,W){if(R){if("string"==typeof R)return _arrayLikeToArray(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return _arrayLikeToArray(R,W)}}(G)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})},R.exports=Agent},80569:function(R,W,G){"use strict";function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}"undefined"!=typeof window?J=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),J=void 0):J=self;var J,et=G(98767),er=G(4445),en=G(28899),ei=G(54960),eo=G(81097),es=G(37903);function noop(){}R.exports=function(R,G){return"function"==typeof G?new W.Request("GET",R).end(G):1==arguments.length?new W.Request("GET",R):new W.Request(R,G)};var ec=W=R.exports;W.Request=Request,ec.getXHR=function(){if(J.XMLHttpRequest&&(!J.location||"file:"!==J.location.protocol||!J.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(R){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(R){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(R){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(R){}throw Error("Browser-only version of superagent could not find XHR")};var el="".trim?function(R){return R.trim()}:function(R){return R.replace(/(^\s*|\s*$)/g,"")};function serialize(R){if(!ei(R))return R;var W=[];for(var G in R)Object.prototype.hasOwnProperty.call(R,G)&&function pushEncodedKeyValuePair(R,W,G){if(void 0!==G){if(null===G){R.push(encodeURI(W));return}if(Array.isArray(G))G.forEach(function(G){pushEncodedKeyValuePair(R,W,G)});else if(ei(G))for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&pushEncodedKeyValuePair(R,"".concat(W,"[").concat(J,"]"),G[J]);else R.push(encodeURI(W)+"="+encodeURIComponent(G))}}(W,G,R[G]);return W.join("&")}function parseString(R){for(var W,G,J={},et=R.split("&"),er=0,en=et.length;er<en;++er)-1===(G=(W=et[er]).indexOf("="))?J[decodeURIComponent(W)]="":J[decodeURIComponent(W.slice(0,G))]=decodeURIComponent(W.slice(G+1));return J}function isJSON(R){return/[/+]json($|[^-\w])/.test(R)}function Response(R){this.req=R,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var W=this.xhr.status;1223===W&&(W=204),this._setStatusProperties(W),this.headers=function(R){for(var W,G,J,et,er=R.split(/\r?\n/),en={},ei=0,eo=er.length;ei<eo;++ei)-1!==(W=(G=er[ei]).indexOf(":"))&&(J=G.slice(0,W).toLowerCase(),et=el(G.slice(W+1)),en[J]=et);return en}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&R._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function Request(R,W){var G=this;this._query=this._query||[],this.method=R,this.url=W,this.header={},this._header={},this.on("end",function(){var R,W=null,J=null;try{J=new Response(G)}catch(R){return(W=Error("Parser is unable to parse the response")).parse=!0,W.original=R,G.xhr?(W.rawResponse=void 0===G.xhr.responseType?G.xhr.responseText:G.xhr.response,W.status=G.xhr.status?G.xhr.status:null,W.statusCode=W.status):(W.rawResponse=null,W.status=null),G.callback(W)}G.emit("response",J);try{G._isResponseOK(J)||(R=Error(J.statusText||J.text||"Unsuccessful HTTP response"))}catch(W){R=W}R?(R.original=W,R.response=J,R.status=J.status,G.callback(R,J)):G.callback(null,J)})}function del(R,W,G){var J=ec("DELETE",R);return"function"==typeof W&&(G=W,W=null),W&&J.send(W),G&&J.end(G),J}ec.serializeObject=serialize,ec.parseString=parseString,ec.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},ec.serialize={"application/x-www-form-urlencoded":serialize,"application/json":er},ec.parse={"application/x-www-form-urlencoded":parseString,"application/json":JSON.parse},eo(Response.prototype),Response.prototype._parseBody=function(R){var W=ec.parse[this.type];return this.req._parser?this.req._parser(this,R):(!W&&isJSON(this.type)&&(W=ec.parse["application/json"]),W&&R&&(R.length>0||R instanceof Object)?W(R):null)},Response.prototype.toError=function(){var R=this.req,W=R.method,G=R.url,J=Error("cannot ".concat(W," ").concat(G," (").concat(this.status,")"));return J.status=this.status,J.method=W,J.url=G,J},ec.Response=Response,et(Request.prototype),en(Request.prototype),Request.prototype.type=function(R){return this.set("Content-Type",ec.types[R]||R),this},Request.prototype.accept=function(R){return this.set("Accept",ec.types[R]||R),this},Request.prototype.auth=function(R,W,G){return 1==arguments.length&&(W=""),"object"===_typeof(W)&&null!==W&&(G=W,W=""),G||(G={type:"function"==typeof btoa?"basic":"auto"}),this._auth(R,W,G,function(R){if("function"==typeof btoa)return btoa(R);throw Error("Cannot use basic auth, btoa is not a function")})},Request.prototype.query=function(R){return"string"!=typeof R&&(R=serialize(R)),R&&this._query.push(R),this},Request.prototype.attach=function(R,W,G){if(W){if(this._data)throw Error("superagent can't mix .send() and .attach()");this._getFormData().append(R,W,G||W.name)}return this},Request.prototype._getFormData=function(){return this._formData||(this._formData=new J.FormData),this._formData},Request.prototype.callback=function(R,W){if(this._shouldRetry(R,W))return this._retry();var G=this._callback;this.clearTimeout(),R&&(this._maxRetries&&(R.retries=this._retries-1),this.emit("error",R)),G(R,W)},Request.prototype.crossDomainError=function(){var R=Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");R.crossDomain=!0,R.status=this.status,R.method=this.method,R.url=this.url,this.callback(R)},Request.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},Request.prototype.ca=Request.prototype.agent,Request.prototype.buffer=Request.prototype.ca,Request.prototype.write=function(){throw Error("Streaming is not supported in browser version of superagent")},Request.prototype.pipe=Request.prototype.write,Request.prototype._isHost=function(R){return R&&"object"===_typeof(R)&&!Array.isArray(R)&&"[object Object]"!==Object.prototype.toString.call(R)},Request.prototype.end=function(R){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=R||noop,this._finalizeQueryString(),this._end()},Request.prototype._setUploadTimeout=function(){var R=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){R._timeoutError("Upload timeout of ",R._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},Request.prototype._end=function(){if(this._aborted)return this.callback(Error("The request has been aborted even before .end() was called"));var R=this;this.xhr=ec.getXHR();var W=this.xhr,G=this._formData||this._data;this._setTimeouts(),W.onreadystatechange=function(){var G,J=W.readyState;if(J>=2&&R._responseTimeoutTimer&&clearTimeout(R._responseTimeoutTimer),4===J){try{G=W.status}catch(R){G=0}if(!G){if(R.timedout||R._aborted)return;return R.crossDomainError()}R.emit("end")}};var handleProgress=function(W,G){G.total>0&&(G.percent=G.loaded/G.total*100,100===G.percent&&clearTimeout(R._uploadTimeoutTimer)),G.direction=W,R.emit("progress",G)};if(this.hasListeners("progress"))try{W.addEventListener("progress",handleProgress.bind(null,"download")),W.upload&&W.upload.addEventListener("progress",handleProgress.bind(null,"upload"))}catch(R){}W.upload&&this._setUploadTimeout();try{this.username&&this.password?W.open(this.method,this.url,!0,this.username,this.password):W.open(this.method,this.url,!0)}catch(R){return this.callback(R)}if(this._withCredentials&&(W.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof G&&!this._isHost(G)){var J=this._header["content-type"],et=this._serializer||ec.serialize[J?J.split(";")[0]:""];!et&&isJSON(J)&&(et=ec.serialize["application/json"]),et&&(G=et(G))}for(var er in this.header)null!==this.header[er]&&Object.prototype.hasOwnProperty.call(this.header,er)&&W.setRequestHeader(er,this.header[er]);this._responseType&&(W.responseType=this._responseType),this.emit("request",this),W.send(void 0===G?null:G)},ec.agent=function(){return new es},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(R){es.prototype[R.toLowerCase()]=function(W,G){var J=new ec.Request(R,W);return this._setDefaults(J),G&&J.end(G),J}}),es.prototype.del=es.prototype.delete,ec.get=function(R,W,G){var J=ec("GET",R);return"function"==typeof W&&(G=W,W=null),W&&J.query(W),G&&J.end(G),J},ec.head=function(R,W,G){var J=ec("HEAD",R);return"function"==typeof W&&(G=W,W=null),W&&J.query(W),G&&J.end(G),J},ec.options=function(R,W,G){var J=ec("OPTIONS",R);return"function"==typeof W&&(G=W,W=null),W&&J.send(W),G&&J.end(G),J},ec.del=del,ec.delete=del,ec.patch=function(R,W,G){var J=ec("PATCH",R);return"function"==typeof W&&(G=W,W=null),W&&J.send(W),G&&J.end(G),J},ec.post=function(R,W,G){var J=ec("POST",R);return"function"==typeof W&&(G=W,W=null),W&&J.send(W),G&&J.end(G),J},ec.put=function(R,W,G){var J=ec("PUT",R);return"function"==typeof W&&(G=W,W=null),W&&J.send(W),G&&J.end(G),J}},54960:function(R){"use strict";function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}R.exports=function(R){return null!==R&&"object"===_typeof(R)}},28899:function(R,W,G){"use strict";function _typeof(R){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(R)}var J=G(54960);function RequestBase(R){if(R)return function(R){for(var W in RequestBase.prototype)Object.prototype.hasOwnProperty.call(RequestBase.prototype,W)&&(R[W]=RequestBase.prototype[W]);return R}(R)}R.exports=RequestBase,RequestBase.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},RequestBase.prototype.parse=function(R){return this._parser=R,this},RequestBase.prototype.responseType=function(R){return this._responseType=R,this},RequestBase.prototype.serialize=function(R){return this._serializer=R,this},RequestBase.prototype.timeout=function(R){if(!R||"object"!==_typeof(R))return this._timeout=R,this._responseTimeout=0,this._uploadTimeout=0,this;for(var W in R)if(Object.prototype.hasOwnProperty.call(R,W))switch(W){case"deadline":this._timeout=R.deadline;break;case"response":this._responseTimeout=R.response;break;case"upload":this._uploadTimeout=R.upload;break;default:console.warn("Unknown timeout option",W)}return this},RequestBase.prototype.retry=function(R,W){return(0==arguments.length||!0===R)&&(R=1),R<=0&&(R=0),this._maxRetries=R,this._retries=0,this._retryCallback=W,this};var et=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];RequestBase.prototype._shouldRetry=function(R,W){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var G=this._retryCallback(R,W);if(!0===G)return!0;if(!1===G)return!1}catch(R){console.error(R)}return!!(W&&W.status&&W.status>=500&&501!==W.status||R&&(R.code&&et.includes(R.code)||R.timeout&&"ECONNABORTED"===R.code||R.crossDomain))},RequestBase.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},RequestBase.prototype.then=function(R,W){var G=this;if(!this._fullfilledPromise){var J=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(R,W){J.on("abort",function(){if(!G._maxRetries||!(G._maxRetries>G._retries)){if(G.timedout&&G.timedoutError){W(G.timedoutError);return}var R=Error("Aborted");R.code="ABORTED",R.status=G.status,R.method=G.method,R.url=G.url,W(R)}}),J.end(function(G,J){G?W(G):R(J)})})}return this._fullfilledPromise.then(R,W)},RequestBase.prototype.catch=function(R){return this.then(void 0,R)},RequestBase.prototype.use=function(R){return R(this),this},RequestBase.prototype.ok=function(R){if("function"!=typeof R)throw Error("Callback required");return this._okCallback=R,this},RequestBase.prototype._isResponseOK=function(R){return!!R&&(this._okCallback?this._okCallback(R):R.status>=200&&R.status<300)},RequestBase.prototype.get=function(R){return this._header[R.toLowerCase()]},RequestBase.prototype.getHeader=RequestBase.prototype.get,RequestBase.prototype.set=function(R,W){if(J(R)){for(var G in R)Object.prototype.hasOwnProperty.call(R,G)&&this.set(G,R[G]);return this}return this._header[R.toLowerCase()]=W,this.header[R]=W,this},RequestBase.prototype.unset=function(R){return delete this._header[R.toLowerCase()],delete this.header[R],this},RequestBase.prototype.field=function(R,W){if(null==R)throw Error(".field(name, val) name can not be empty");if(this._data)throw Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(J(R)){for(var G in R)Object.prototype.hasOwnProperty.call(R,G)&&this.field(G,R[G]);return this}if(Array.isArray(W)){for(var et in W)Object.prototype.hasOwnProperty.call(W,et)&&this.field(R,W[et]);return this}if(null==W)throw Error(".field(name, val) val can not be empty");return"boolean"==typeof W&&(W=String(W)),this._getFormData().append(R,W),this},RequestBase.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},RequestBase.prototype._auth=function(R,W,G,J){switch(G.type){case"basic":this.set("Authorization","Basic ".concat(J("".concat(R,":").concat(W))));break;case"auto":this.username=R,this.password=W;break;case"bearer":this.set("Authorization","Bearer ".concat(R))}return this},RequestBase.prototype.withCredentials=function(R){return void 0===R&&(R=!0),this._withCredentials=R,this},RequestBase.prototype.redirects=function(R){return this._maxRedirects=R,this},RequestBase.prototype.maxResponseSize=function(R){if("number"!=typeof R)throw TypeError("Invalid argument");return this._maxResponseSize=R,this},RequestBase.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},RequestBase.prototype.send=function(R){var W=J(R),G=this._header["content-type"];if(this._formData)throw Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(W&&!this._data)Array.isArray(R)?this._data=[]:this._isHost(R)||(this._data={});else if(R&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(W&&J(this._data))for(var et in R)Object.prototype.hasOwnProperty.call(R,et)&&(this._data[et]=R[et]);else"string"==typeof R?(G||this.type("form"),"application/x-www-form-urlencoded"===(G=this._header["content-type"])?this._data=this._data?"".concat(this._data,"&").concat(R):R:this._data=(this._data||"")+R):this._data=R;return!W||this._isHost(R)||G||this.type("json"),this},RequestBase.prototype.sortQuery=function(R){return this._sort=void 0===R||R,this},RequestBase.prototype._finalizeQueryString=function(){var R=this._query.join("&");if(R&&(this.url+=(this.url.includes("?")?"&":"?")+R),this._query.length=0,this._sort){var W=this.url.indexOf("?");if(W>=0){var G=this.url.slice(W+1).split("&");"function"==typeof this._sort?G.sort(this._sort):G.sort(),this.url=this.url.slice(0,W)+"?"+G.join("&")}}},RequestBase.prototype._appendQueryString=function(){console.warn("Unsupported")},RequestBase.prototype._timeoutError=function(R,W,G){if(!this._aborted){var J=Error("".concat(R+W,"ms exceeded"));J.timeout=W,J.code="ECONNABORTED",J.errno=G,this.timedout=!0,this.timedoutError=J,this.abort(),this.callback(J)}},RequestBase.prototype._setTimeouts=function(){var R=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){R._timeoutError("Timeout of ",R._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){R._timeoutError("Response timeout of ",R._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},81097:function(R,W,G){"use strict";var J=G(64506);function ResponseBase(R){if(R)return function(R){for(var W in ResponseBase.prototype)Object.prototype.hasOwnProperty.call(ResponseBase.prototype,W)&&(R[W]=ResponseBase.prototype[W]);return R}(R)}R.exports=ResponseBase,ResponseBase.prototype.get=function(R){return this.header[R.toLowerCase()]},ResponseBase.prototype._setHeaderProperties=function(R){var W=R["content-type"]||"";this.type=J.type(W);var G=J.params(W);for(var et in G)Object.prototype.hasOwnProperty.call(G,et)&&(this[et]=G[et]);this.links={};try{R.link&&(this.links=J.parseLinks(R.link))}catch(R){}},ResponseBase.prototype._setStatusProperties=function(R){var W=R/100|0;this.statusCode=R,this.status=this.statusCode,this.statusType=W,this.info=1===W,this.ok=2===W,this.redirect=3===W,this.clientError=4===W,this.serverError=5===W,this.error=(4===W||5===W)&&this.toError(),this.created=201===R,this.accepted=202===R,this.noContent=204===R,this.badRequest=400===R,this.unauthorized=401===R,this.notAcceptable=406===R,this.forbidden=403===R,this.notFound=404===R,this.unprocessableEntity=422===R}},64506:function(R,W){"use strict";W.type=function(R){return R.split(/ *; */).shift()},W.params=function(R){return R.split(/ *; */).reduce(function(R,W){var G=W.split(/ *= */),J=G.shift(),et=G.shift();return J&&et&&(R[J]=et),R},{})},W.parseLinks=function(R){return R.split(/ *, */).reduce(function(R,W){var G=W.split(/ *; */),J=G[0].slice(1,-1);return R[G[1].split(/ *= */)[1].slice(1,-1)]=J,R},{})},W.cleanHeader=function(R,W){return delete R["content-type"],delete R["content-length"],delete R["transfer-encoding"],delete R.host,W&&(delete R.authorization,delete R.cookie),R}},49945:function(R){var W,G,J,et,er;W=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,G=/^(?=([^\/?#]*))\1([^]*)$/,J=/(?:\/|^)\.(?=\/)/g,et=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,er={buildAbsoluteURL:function(R,W,J){if(J=J||{},R=R.trim(),!(W=W.trim())){if(!J.alwaysNormalize)return R;var et=er.parseURL(R);if(!et)throw Error("Error trying to parse base URL.");return et.path=er.normalizePath(et.path),er.buildURLFromParts(et)}var en=er.parseURL(W);if(!en)throw Error("Error trying to parse relative URL.");if(en.scheme)return J.alwaysNormalize?(en.path=er.normalizePath(en.path),er.buildURLFromParts(en)):W;var ei=er.parseURL(R);if(!ei)throw Error("Error trying to parse base URL.");if(!ei.netLoc&&ei.path&&"/"!==ei.path[0]){var eo=G.exec(ei.path);ei.netLoc=eo[1],ei.path=eo[2]}ei.netLoc&&!ei.path&&(ei.path="/");var es={scheme:ei.scheme,netLoc:en.netLoc,path:null,params:en.params,query:en.query,fragment:en.fragment};if(!en.netLoc&&(es.netLoc=ei.netLoc,"/"!==en.path[0])){if(en.path){var ec=ei.path,el=ec.substring(0,ec.lastIndexOf("/")+1)+en.path;es.path=er.normalizePath(el)}else es.path=ei.path,en.params||(es.params=ei.params,en.query||(es.query=ei.query))}return null===es.path&&(es.path=J.alwaysNormalize?er.normalizePath(en.path):en.path),er.buildURLFromParts(es)},parseURL:function(R){var G=W.exec(R);return G?{scheme:G[1]||"",netLoc:G[2]||"",path:G[3]||"",params:G[4]||"",query:G[5]||"",fragment:G[6]||""}:null},normalizePath:function(R){for(R=R.split("").reverse().join("").replace(J,"");R.length!==(R=R.replace(et,"")).length;);return R.split("").reverse().join("")},buildURLFromParts:function(R){return R.scheme+R.netLoc+R.path+R.params+R.query+R.fragment}},R.exports=er},59200:function(R,W,G){"use strict";G.d(W,{Z:function(){return iR}});var J,et,er,en,ei,eo,es,ec,el,eu,ed,ep,ef,eh,eg=G(58908),em=G.n(eg),ey=G(89144),ev=G.n(ey),eb=G(87462),e_=G(27537),ex=G.n(e_),ew=G(97326),eS=G(94578),eT=G(75974),eO=G.n(eT),eP=G(9603),eC=G.n(eP),ek=G(13407),eE=G.n(ek),ej=G(5647),eA=G(60136),eD=G(49945),eI=G.n(eD),eM="http://example.com",resolve_url=function(R,W){if(/^[a-z]+:/i.test(W))return W;/^data:/.test(R)&&(R=em().location&&em().location.href||"");var G="function"==typeof em().URL,J=/^\/\//.test(R),et=!em().location&&!/\/\//i.test(R);if(G?R=new(em()).URL(R,em().location||eM):/\/\//i.test(R)||(R=eI().buildAbsoluteURL(em().location&&em().location.href||"",R)),G){var er=new URL(W,R);return et?er.href.slice(eM.length):J?er.href.slice(er.protocol.length):er.href}return eI().buildAbsoluteURL(R,W)},eL=function(){function Stream(){this.listeners={}}var R=Stream.prototype;return R.on=function(R,W){this.listeners[R]||(this.listeners[R]=[]),this.listeners[R].push(W)},R.off=function(R,W){if(!this.listeners[R])return!1;var G=this.listeners[R].indexOf(W);return this.listeners[R]=this.listeners[R].slice(0),this.listeners[R].splice(G,1),G>-1},R.trigger=function(R){var W=this.listeners[R];if(W){if(2==arguments.length)for(var G=W.length,J=0;J<G;++J)W[J].call(this,arguments[1]);else for(var et=Array.prototype.slice.call(arguments,1),er=W.length,en=0;en<er;++en)W[en].apply(this,et)}},R.dispose=function(){this.listeners={}},R.pipe=function(R){this.on("data",function(W){R.push(W)})},Stream}(),eR=G(48764).lW;function decodeB64ToUint8Array(R){for(var W=em().atob?em().atob(R):eR.from(R,"base64").toString("binary"),G=new Uint8Array(W.length),J=0;J<W.length;J++)G[J]=W.charCodeAt(J);return G}/*! @name m3u8-parser @version 4.8.0 @license Apache-2.0 */var eN=function(R){function LineStream(){var W;return(W=R.call(this)||this).buffer="",W}return(0,eS.Z)(LineStream,R),LineStream.prototype.push=function(R){var W;for(this.buffer+=R,W=this.buffer.indexOf("\n");W>-1;W=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,W)),this.buffer=this.buffer.substring(W+1)},LineStream}(eL),parseByterange=function(R){var W=/([0-9.]*)?@?([0-9.]*)?/.exec(R||""),G={};return W[1]&&(G.length=parseInt(W[1],10)),W[2]&&(G.offset=parseInt(W[2],10)),G},parseAttributes=function(R){for(var W,G=R.split(RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),J={},et=G.length;et--;)""!==G[et]&&((W=/([^=]*)=(.*)/.exec(G[et]).slice(1))[0]=W[0].replace(/^\s+|\s+$/g,""),W[1]=W[1].replace(/^\s+|\s+$/g,""),W[1]=W[1].replace(/^['"](.*)['"]$/g,"$1"),J[W[0]]=W[1]);return J},eB=function(R){function ParseStream(){var W;return(W=R.call(this)||this).customParsers=[],W.tagMappers=[],W}(0,eS.Z)(ParseStream,R);var W=ParseStream.prototype;return W.push=function(R){var W,G,J=this;if(0!==(R=R.trim()).length){if("#"!==R[0]){this.trigger("data",{type:"uri",uri:R});return}this.tagMappers.reduce(function(W,G){var J=G(R);return J===R?W:W.concat([J])},[R]).forEach(function(R){for(var et=0;et<J.customParsers.length;et++)if(J.customParsers[et].call(J,R))return;if(0!==R.indexOf("#EXT")){J.trigger("data",{type:"comment",text:R.slice(1)});return}if(R=R.replace("\r",""),W=/^#EXTM3U/.exec(R)){J.trigger("data",{type:"tag",tagType:"m3u"});return}if(W=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(R)){G={type:"tag",tagType:"inf"},W[1]&&(G.duration=parseFloat(W[1])),W[2]&&(G.title=W[2]),J.trigger("data",G);return}if(W=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(R)){G={type:"tag",tagType:"targetduration"},W[1]&&(G.duration=parseInt(W[1],10)),J.trigger("data",G);return}if(W=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(R)){G={type:"tag",tagType:"version"},W[1]&&(G.version=parseInt(W[1],10)),J.trigger("data",G);return}if(W=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(R)){G={type:"tag",tagType:"media-sequence"},W[1]&&(G.number=parseInt(W[1],10)),J.trigger("data",G);return}if(W=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(R)){G={type:"tag",tagType:"discontinuity-sequence"},W[1]&&(G.number=parseInt(W[1],10)),J.trigger("data",G);return}if(W=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(R)){G={type:"tag",tagType:"playlist-type"},W[1]&&(G.playlistType=W[1]),J.trigger("data",G);return}if(W=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(R)){G=(0,eb.Z)(parseByterange(W[1]),{type:"tag",tagType:"byterange"}),J.trigger("data",G);return}if(W=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(R)){G={type:"tag",tagType:"allow-cache"},W[1]&&(G.allowed=!/NO/.test(W[1])),J.trigger("data",G);return}if(W=/^#EXT-X-MAP:?(.*)$/.exec(R)){if(G={type:"tag",tagType:"map"},W[1]){var er=parseAttributes(W[1]);er.URI&&(G.uri=er.URI),er.BYTERANGE&&(G.byterange=parseByterange(er.BYTERANGE))}J.trigger("data",G);return}if(W=/^#EXT-X-STREAM-INF:?(.*)$/.exec(R)){if(G={type:"tag",tagType:"stream-inf"},W[1]){if(G.attributes=parseAttributes(W[1]),G.attributes.RESOLUTION){var en=G.attributes.RESOLUTION.split("x"),ei={};en[0]&&(ei.width=parseInt(en[0],10)),en[1]&&(ei.height=parseInt(en[1],10)),G.attributes.RESOLUTION=ei}G.attributes.BANDWIDTH&&(G.attributes.BANDWIDTH=parseInt(G.attributes.BANDWIDTH,10)),G.attributes["FRAME-RATE"]&&(G.attributes["FRAME-RATE"]=parseFloat(G.attributes["FRAME-RATE"])),G.attributes["PROGRAM-ID"]&&(G.attributes["PROGRAM-ID"]=parseInt(G.attributes["PROGRAM-ID"],10))}J.trigger("data",G);return}if(W=/^#EXT-X-MEDIA:?(.*)$/.exec(R)){G={type:"tag",tagType:"media"},W[1]&&(G.attributes=parseAttributes(W[1])),J.trigger("data",G);return}if(W=/^#EXT-X-ENDLIST/.exec(R)){J.trigger("data",{type:"tag",tagType:"endlist"});return}if(W=/^#EXT-X-DISCONTINUITY/.exec(R)){J.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(W=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(R)){G={type:"tag",tagType:"program-date-time"},W[1]&&(G.dateTimeString=W[1],G.dateTimeObject=new Date(W[1])),J.trigger("data",G);return}if(W=/^#EXT-X-KEY:?(.*)$/.exec(R)){G={type:"tag",tagType:"key"},W[1]&&(G.attributes=parseAttributes(W[1]),G.attributes.IV&&("0x"===G.attributes.IV.substring(0,2).toLowerCase()&&(G.attributes.IV=G.attributes.IV.substring(2)),G.attributes.IV=G.attributes.IV.match(/.{8}/g),G.attributes.IV[0]=parseInt(G.attributes.IV[0],16),G.attributes.IV[1]=parseInt(G.attributes.IV[1],16),G.attributes.IV[2]=parseInt(G.attributes.IV[2],16),G.attributes.IV[3]=parseInt(G.attributes.IV[3],16),G.attributes.IV=new Uint32Array(G.attributes.IV))),J.trigger("data",G);return}if(W=/^#EXT-X-START:?(.*)$/.exec(R)){G={type:"tag",tagType:"start"},W[1]&&(G.attributes=parseAttributes(W[1]),G.attributes["TIME-OFFSET"]=parseFloat(G.attributes["TIME-OFFSET"]),G.attributes.PRECISE=/YES/.test(G.attributes.PRECISE)),J.trigger("data",G);return}if(W=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(R)){G={type:"tag",tagType:"cue-out-cont"},W[1]?G.data=W[1]:G.data="",J.trigger("data",G);return}if(W=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(R)){G={type:"tag",tagType:"cue-out"},W[1]?G.data=W[1]:G.data="",J.trigger("data",G);return}if(W=/^#EXT-X-CUE-IN:?(.*)?$/.exec(R)){G={type:"tag",tagType:"cue-in"},W[1]?G.data=W[1]:G.data="",J.trigger("data",G);return}if((W=/^#EXT-X-SKIP:(.*)$/.exec(R))&&W[1]){(G={type:"tag",tagType:"skip"}).attributes=parseAttributes(W[1]),G.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(G.attributes["SKIPPED-SEGMENTS"]=parseInt(G.attributes["SKIPPED-SEGMENTS"],10)),G.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(G.attributes["RECENTLY-REMOVED-DATERANGES"]=G.attributes["RECENTLY-REMOVED-DATERANGES"].split("	")),J.trigger("data",G);return}if((W=/^#EXT-X-PART:(.*)$/.exec(R))&&W[1]){(G={type:"tag",tagType:"part"}).attributes=parseAttributes(W[1]),["DURATION"].forEach(function(R){G.attributes.hasOwnProperty(R)&&(G.attributes[R]=parseFloat(G.attributes[R]))}),["INDEPENDENT","GAP"].forEach(function(R){G.attributes.hasOwnProperty(R)&&(G.attributes[R]=/YES/.test(G.attributes[R]))}),G.attributes.hasOwnProperty("BYTERANGE")&&(G.attributes.byterange=parseByterange(G.attributes.BYTERANGE)),J.trigger("data",G);return}if((W=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(R))&&W[1]){(G={type:"tag",tagType:"server-control"}).attributes=parseAttributes(W[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(R){G.attributes.hasOwnProperty(R)&&(G.attributes[R]=parseFloat(G.attributes[R]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(R){G.attributes.hasOwnProperty(R)&&(G.attributes[R]=/YES/.test(G.attributes[R]))}),J.trigger("data",G);return}if((W=/^#EXT-X-PART-INF:(.*)$/.exec(R))&&W[1]){(G={type:"tag",tagType:"part-inf"}).attributes=parseAttributes(W[1]),["PART-TARGET"].forEach(function(R){G.attributes.hasOwnProperty(R)&&(G.attributes[R]=parseFloat(G.attributes[R]))}),J.trigger("data",G);return}if((W=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(R))&&W[1]){(G={type:"tag",tagType:"preload-hint"}).attributes=parseAttributes(W[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(R){if(G.attributes.hasOwnProperty(R)){G.attributes[R]=parseInt(G.attributes[R],10);var W="BYTERANGE-LENGTH"===R?"length":"offset";G.attributes.byterange=G.attributes.byterange||{},G.attributes.byterange[W]=G.attributes[R],delete G.attributes[R]}}),J.trigger("data",G);return}if((W=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(R))&&W[1]){(G={type:"tag",tagType:"rendition-report"}).attributes=parseAttributes(W[1]),["LAST-MSN","LAST-PART"].forEach(function(R){G.attributes.hasOwnProperty(R)&&(G.attributes[R]=parseInt(G.attributes[R],10))}),J.trigger("data",G);return}J.trigger("data",{type:"tag",data:R.slice(4)})})}},W.addParser=function(R){var W=this,G=R.expression,J=R.customType,et=R.dataParser,er=R.segment;"function"!=typeof et&&(et=function(R){return R}),this.customParsers.push(function(R){if(G.exec(R))return W.trigger("data",{type:"custom",data:et(R),customType:J,segment:er}),!0})},W.addTagMapper=function(R){var W=R.expression,G=R.map;this.tagMappers.push(function(R){return W.test(R)?G(R):R})},ParseStream}(eL),camelCaseKeys=function(R){var W={};return Object.keys(R).forEach(function(G){W[G.toLowerCase().replace(/-(\w)/g,function(R){return R[1].toUpperCase()})]=R[G]}),W},setHoldBack=function(R){var W=R.serverControl,G=R.targetDuration,J=R.partTargetDuration;if(W){var et="#EXT-X-SERVER-CONTROL",er="holdBack",en="partHoldBack",ei=G&&3*G,eo=J&&2*J;G&&!W.hasOwnProperty(er)&&(W[er]=ei,this.trigger("info",{message:et+" defaulting HOLD-BACK to targetDuration * 3 ("+ei+")."})),ei&&W[er]<ei&&(this.trigger("warn",{message:et+" clamping HOLD-BACK ("+W[er]+") to targetDuration * 3 ("+ei+")"}),W[er]=ei),J&&!W.hasOwnProperty(en)&&(W[en]=3*J,this.trigger("info",{message:et+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+W[en]+")."})),J&&W[en]<eo&&(this.trigger("warn",{message:et+" clamping PART-HOLD-BACK ("+W[en]+") to partTargetDuration * 2 ("+eo+")."}),W[en]=eo)}},eZ=function(R){function Parser(){(W=R.call(this)||this).lineStream=new eN,W.parseStream=new eB,W.lineStream.pipe(W.parseStream);var W,G,J,et=(0,ew.Z)(W),er=[],en={},ei=!1,noop=function(){},eo={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},es=0;W.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var ec=0,el=0;return W.on("end",function(){!en.uri&&(en.parts||en.preloadHints)&&(!en.map&&G&&(en.map=G),!en.key&&J&&(en.key=J),en.timeline||"number"!=typeof es||(en.timeline=es),W.manifest.preloadSegment=en)}),W.parseStream.on("data",function(R){var W,eu;({tag:function(){(({version:function(){R.version&&(this.manifest.version=R.version)},"allow-cache":function(){this.manifest.allowCache=R.allowed,"allowed"in R||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var W={};"length"in R&&(en.byterange=W,W.length=R.length,"offset"in R||(R.offset=ec)),"offset"in R&&(en.byterange=W,W.offset=R.offset),ec=W.offset+W.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),R.duration>0&&(en.duration=R.duration),0===R.duration&&(en.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=er},key:function(){if(!R.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if("NONE"===R.attributes.METHOD){J=null;return}if(!R.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if("com.apple.streamingkeydelivery"===R.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:R.attributes};return}if("com.microsoft.playready"===R.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:R.attributes.URI};return}if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===R.attributes.KEYFORMAT){if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(R.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if("SAMPLE-AES-CENC"===R.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==R.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(R.attributes.KEYID&&"0x"===R.attributes.KEYID.substring(0,2))){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:R.attributes.KEYFORMAT,keyId:R.attributes.KEYID.substring(2)},pssh:decodeB64ToUint8Array(R.attributes.URI.split(",")[1])};return}R.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),J={method:R.attributes.METHOD||"AES-128",uri:R.attributes.URI},void 0!==R.attributes.IV&&(J.iv=R.attributes.IV)},"media-sequence":function(){if(!isFinite(R.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+R.number});return}this.manifest.mediaSequence=R.number},"discontinuity-sequence":function(){if(!isFinite(R.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+R.number});return}this.manifest.discontinuitySequence=R.number,es=R.number},"playlist-type":function(){if(!/VOD|EVENT/.test(R.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+R.playlist});return}this.manifest.playlistType=R.playlistType},map:function(){G={},R.uri&&(G.uri=R.uri),R.byterange&&(G.byterange=R.byterange),J&&(G.key=J)},"stream-inf":function(){if(this.manifest.playlists=er,this.manifest.mediaGroups=this.manifest.mediaGroups||eo,!R.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}en.attributes||(en.attributes={}),(0,eb.Z)(en.attributes,R.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||eo,!(R.attributes&&R.attributes.TYPE&&R.attributes["GROUP-ID"]&&R.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var G=this.manifest.mediaGroups[R.attributes.TYPE];G[R.attributes["GROUP-ID"]]=G[R.attributes["GROUP-ID"]]||{},W=G[R.attributes["GROUP-ID"]],(eu={default:/yes/i.test(R.attributes.DEFAULT)}).default?eu.autoselect=!0:eu.autoselect=/yes/i.test(R.attributes.AUTOSELECT),R.attributes.LANGUAGE&&(eu.language=R.attributes.LANGUAGE),R.attributes.URI&&(eu.uri=R.attributes.URI),R.attributes["INSTREAM-ID"]&&(eu.instreamId=R.attributes["INSTREAM-ID"]),R.attributes.CHARACTERISTICS&&(eu.characteristics=R.attributes.CHARACTERISTICS),R.attributes.FORCED&&(eu.forced=/yes/i.test(R.attributes.FORCED)),W[R.attributes.NAME]=eu},discontinuity:function(){es+=1,en.discontinuity=!0,this.manifest.discontinuityStarts.push(er.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=R.dateTimeString,this.manifest.dateTimeObject=R.dateTimeObject),en.dateTimeString=R.dateTimeString,en.dateTimeObject=R.dateTimeObject},targetduration:function(){if(!isFinite(R.duration)||R.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+R.duration});return}this.manifest.targetDuration=R.duration,setHoldBack.call(this,this.manifest)},start:function(){if(!R.attributes||isNaN(R.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:R.attributes["TIME-OFFSET"],precise:R.attributes.PRECISE}},"cue-out":function(){en.cueOut=R.data},"cue-out-cont":function(){en.cueOutCont=R.data},"cue-in":function(){en.cueIn=R.data},skip:function(){this.manifest.skip=camelCaseKeys(R.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",R.attributes,["SKIPPED-SEGMENTS"])},part:function(){var W=this;ei=!0;var G=this.manifest.segments.length,J=camelCaseKeys(R.attributes);en.parts=en.parts||[],en.parts.push(J),J.byterange&&(J.byterange.hasOwnProperty("offset")||(J.byterange.offset=el),el=J.byterange.offset+J.byterange.length);var et=en.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+et+" for segment #"+G,R.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(R,G){R.hasOwnProperty("lastPart")||W.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+G+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var W=this.manifest.serverControl=camelCaseKeys(R.attributes);W.hasOwnProperty("canBlockReload")||(W.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),setHoldBack.call(this,this.manifest),W.canSkipDateranges&&!W.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var W=this.manifest.segments.length,G=camelCaseKeys(R.attributes),J=G.type&&"PART"===G.type;en.preloadHints=en.preloadHints||[],en.preloadHints.push(G),G.byterange&&!G.byterange.hasOwnProperty("offset")&&(G.byterange.offset=J?el:0,J&&(el=G.byterange.offset+G.byterange.length));var et=en.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+et+" for segment #"+W,R.attributes,["TYPE","URI"]),G.type)for(var er=0;er<en.preloadHints.length-1;er++){var ei=en.preloadHints[er];ei.type&&ei.type===G.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+et+" for segment #"+W+" has the same TYPE "+G.type+" as preload hint #"+er})}},"rendition-report":function(){var W=camelCaseKeys(R.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(W);var G=this.manifest.renditionReports.length-1,J=["LAST-MSN","URI"];ei&&J.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+G,R.attributes,J)},"part-inf":function(){this.manifest.partInf=camelCaseKeys(R.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",R.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),setHoldBack.call(this,this.manifest)}})[R.tagType]||noop).call(et)},uri:function(){en.uri=R.uri,er.push(en),!this.manifest.targetDuration||"duration"in en||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),en.duration=this.manifest.targetDuration),J&&(en.key=J),en.timeline=es,G&&(en.map=G),el=0,en={}},comment:function(){},custom:function(){R.segment?(en.custom=en.custom||{},en.custom[R.customType]=R.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[R.customType]=R.data)}})[R.type].call(et)}),W}(0,eS.Z)(Parser,R);var W=Parser.prototype;return W.warnOnMissingAttributes_=function(R,W,G){var J=[];G.forEach(function(R){W.hasOwnProperty(R)||J.push(R)}),J.length&&this.trigger("warn",{message:R+" lacks required attribute(s): "+J.join(", ")})},W.push=function(R){this.lineStream.push(R)},W.end=function(){this.lineStream.push("\n"),this.trigger("end")},W.addParser=function(R){this.parseStream.addParser(R)},W.addTagMapper=function(R){this.parseStream.addTagMapper(R)},Parser}(eL),eU={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},eF=["video","audio","text"],ez=["Video","Audio","Text"],translateLegacyCodec=function(R){return R?R.replace(/avc1\.(\d+)\.(\d+)/i,function(R,W,G){return"avc1."+("00"+Number(W).toString(16)).slice(-2)+"00"+("00"+Number(G).toString(16)).slice(-2)}):R},parseCodecs=function(R){void 0===R&&(R="");var W=R.split(","),G=[];return W.forEach(function(R){var W;R=R.trim(),eF.forEach(function(J){var et=eU[J].exec(R.toLowerCase());if(et&&!(et.length<=1)){W=J;var er=R.substring(0,et[1].length),en=R.replace(er,"");G.push({type:er,details:en,mediaType:J})}}),W||G.push({type:R,details:"",mediaType:"unknown"})}),G},codecsFromDefault=function(R,W){if(!R.mediaGroups.AUDIO||!W)return null;var G=R.mediaGroups.AUDIO[W];if(!G)return null;for(var J in G){var et=G[J];if(et.default&&et.playlists)return parseCodecs(et.playlists[0].attributes.CODECS)}return null},isAudioCodec=function(R){return void 0===R&&(R=""),eU.audio.test(R.trim().toLowerCase())},getMimeForCodec=function(R){if(R&&"string"==typeof R){var W,G=R.toLowerCase().split(",").map(function(R){return translateLegacyCodec(R.trim())}),J="video";1===G.length&&isAudioCodec(G[0])?J="audio":1===G.length&&(void 0===(W=G[0])&&(W=""),eU.text.test(W.trim().toLowerCase()))&&(J="application");var et="mp4";return G.every(function(R){return eU.mp4.test(R)})?et="mp4":G.every(function(R){return eU.webm.test(R)})?et="webm":G.every(function(R){return eU.ogg.test(R)})&&(et="ogg"),J+"/"+et+';codecs="'+R+'"'}},browserSupportsCodec=function(R){return void 0===R&&(R=""),em().MediaSource&&em().MediaSource.isTypeSupported&&em().MediaSource.isTypeSupported(getMimeForCodec(R))||!1},muxerSupportsCodec=function(R){return void 0===R&&(R=""),R.toLowerCase().split(",").every(function(R){R=R.trim();for(var W=0;W<ez.length;W++)if(eU["muxer"+ez[W]].test(R))return!0;return!1})},eH="mp4a.40.2",eq=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,eV=/^application\/dash\+xml/i,simpleTypeFromSourceType=function(R){return eq.test(R)?"hls":eV.test(R)?"dash":"application/vnd.videojs.vhs+json"===R?"vhs-json":null},isArrayBufferView=function(R){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(R):R&&R.buffer instanceof ArrayBuffer},byte_helpers_toUint8=function(R){return R instanceof Uint8Array?R:(Array.isArray(R)||isArrayBufferView(R)||R instanceof ArrayBuffer||(R="number"!=typeof R||"number"==typeof R&&R!=R?0:[R]),new Uint8Array(R&&R.buffer||R,R&&R.byteOffset||0,R&&R.byteLength||0))},eW=em().BigInt||Number,eG=[eW("0x1"),eW("0x100"),eW("0x10000"),eW("0x1000000"),eW("0x100000000"),eW("0x10000000000"),eW("0x1000000000000"),eW("0x100000000000000"),eW("0x10000000000000000")];J=new Uint16Array([65484]),255===(et=new Uint8Array(J.buffer,J.byteOffset,J.byteLength))[0]||et[0];var byte_helpers_bytesToNumber=function(R,W){var G=void 0===W?{}:W,J=G.signed,et=G.le,er=void 0!==et&&et;R=byte_helpers_toUint8(R);var en=er?"reduce":"reduceRight",ei=(R[en]?R[en]:Array.prototype[en]).call(R,function(W,G,J){var et=er?J:Math.abs(J+1-R.length);return W+eW(G)*eG[et]},eW(0));if(void 0!==J&&J){var eo=eG[R.length]/eW(2)-eW(1);(ei=eW(ei))>eo&&(ei-=eo,ei-=eo,ei-=eW(2))}return Number(ei)},numberToBytes=function(R,W){var G=(void 0===W?{}:W).le,J=void 0!==G&&G;("bigint"!=typeof R&&"number"!=typeof R||"number"==typeof R&&R!=R)&&(R=0);for(var et=Math.ceil((R=eW(R)).toString(2).length/8),er=new Uint8Array(new ArrayBuffer(et)),en=0;en<et;en++){var ei=J?en:Math.abs(en+1-er.length);er[ei]=Number(R/eG[en]&eW(255)),R<0&&(er[ei]=Math.abs(~er[ei]),er[ei]-=0===en?1:2)}return er},byte_helpers_bytesToString=function(R){if(!R)return"";R=Array.prototype.slice.call(R);var W=String.fromCharCode.apply(null,byte_helpers_toUint8(R));try{return decodeURIComponent(escape(W))}catch(R){}return W},stringToBytes=function(R,W){if("string"!=typeof R&&R&&"function"==typeof R.toString&&(R=R.toString()),"string"!=typeof R)return new Uint8Array;W||(R=unescape(encodeURIComponent(R)));for(var G=new Uint8Array(R.length),J=0;J<R.length;J++)G[J]=R.charCodeAt(J);return G},concatTypedArrays=function(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];if((W=W.filter(function(R){return R&&(R.byteLength||R.length)&&"string"!=typeof R})).length<=1)return byte_helpers_toUint8(W[0]);var J=W.reduce(function(R,W,G){return R+(W.byteLength||W.length)},0),et=new Uint8Array(J),er=0;return W.forEach(function(R){R=byte_helpers_toUint8(R),et.set(R,er),er+=R.byteLength}),et},byte_helpers_bytesMatch=function(R,W,G){var J=void 0===G?{}:G,et=J.offset,er=void 0===et?0:et,en=J.mask,ei=void 0===en?[]:en;R=byte_helpers_toUint8(R);var eo=(W=byte_helpers_toUint8(W)).every?W.every:Array.prototype.every;return W.length&&R.length-er>=W.length&&eo.call(W,function(W,G){return W===(ei[G]?ei[G]&R[er+G]:R[er+G])})},forEachMediaGroup=function(R,W,G){W.forEach(function(W){for(var J in R.mediaGroups[W])for(var et in R.mediaGroups[W][J])G(R.mediaGroups[W][J][et],W,J,et)})},e$=G(3969),isObject=function(R){return!!R&&"object"==typeof R},merge=function merge(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];return W.reduce(function(R,W){return"object"!=typeof W||Object.keys(W).forEach(function(G){Array.isArray(R[G])&&Array.isArray(W[G])?R[G]=R[G].concat(W[G]):isObject(R[G])&&isObject(W[G])?R[G]=merge(R[G],W[G]):R[G]=W[G]}),R},{})},values=function(R){return Object.keys(R).map(function(W){return R[W]})},range=function(R,W){for(var G=[],J=R;J<W;J++)G.push(J);return G},flatten=function(R){return R.reduce(function(R,W){return R.concat(W)},[])},from=function(R){if(!R.length)return[];for(var W=[],G=0;G<R.length;G++)W.push(R[G]);return W},findIndex=function(R,W){for(var G=0;G<R.length;G++)if(W(R[G]))return G;return -1},eK={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},urlTypeToSegment=function(R){var W=R.baseUrl,G=R.source,J=void 0===G?"":G,et=R.range,er=void 0===et?"":et,en=R.indexRange,ei=void 0===en?"":en,eo={uri:J,resolvedUri:resolve_url((void 0===W?"":W)||"",J)};if(er||ei){var es,ec=(er||ei).split("-"),el=em().BigInt?em().BigInt(ec[0]):parseInt(ec[0],10),eu=em().BigInt?em().BigInt(ec[1]):parseInt(ec[1],10);el<Number.MAX_SAFE_INTEGER&&"bigint"==typeof el&&(el=Number(el)),eu<Number.MAX_SAFE_INTEGER&&"bigint"==typeof eu&&(eu=Number(eu)),"bigint"==typeof(es="bigint"==typeof eu||"bigint"==typeof el?em().BigInt(eu)-em().BigInt(el)+em().BigInt(1):eu-el+1)&&es<Number.MAX_SAFE_INTEGER&&(es=Number(es)),eo.byterange={length:es,offset:el}}return eo},byteRangeToString=function(R){var W;return W="bigint"==typeof R.offset||"bigint"==typeof R.length?em().BigInt(R.offset)+em().BigInt(R.length)-em().BigInt(1):R.offset+R.length-1,R.offset+"-"+W},parseEndNumber=function(R){return(R&&"number"!=typeof R&&(R=parseInt(R,10)),isNaN(R))?null:R},eY={static:function(R){var W=R.duration,G=R.timescale,J=R.sourceDuration,et=R.periodDuration,er=parseEndNumber(R.endNumber),en=W/(void 0===G?1:G);return"number"==typeof er?{start:0,end:er}:"number"==typeof et?{start:0,end:et/en}:{start:0,end:J/en}},dynamic:function(R){var W=R.NOW,G=R.clientOffset,J=R.availabilityStartTime,et=R.timescale,er=void 0===et?1:et,en=R.duration,ei=R.periodStart,eo=R.minimumUpdatePeriod,es=R.timeShiftBufferDepth,ec=parseEndNumber(R.endNumber),el=(W+G)/1e3,eu=J+(void 0===ei?0:ei),ed=Math.ceil((el+(void 0===eo?0:eo)-eu)*er/en),ep=Math.floor((el-eu-(void 0===es?1/0:es))*er/en),ef=Math.floor((el-eu)*er/en);return{start:Math.max(0,ep),end:"number"==typeof ec?ec:Math.min(ed,ef)}}},parseByDuration=function(R){var W=R.type,G=R.duration,J=R.timescale,et=R.periodDuration,er=R.sourceDuration,en=eY[W](R),ei=range(en.start,en.end).map(function(W){var G=R.duration,J=R.timescale,et=R.periodStart,er=R.startNumber;return{number:(void 0===er?1:er)+W,duration:G/(void 0===J?1:J),timeline:et,time:W*G}});if("static"===W){var eo=ei.length-1;ei[eo].duration=("number"==typeof et?et:er)-G/(void 0===J?1:J)*eo}return ei},segmentsFromBase=function(R){var W=R.baseUrl,G=R.initialization,J=void 0===G?{}:G,et=R.sourceDuration,er=R.indexRange,en=R.periodStart,ei=R.presentationTime,eo=R.number,es=R.duration;if(!W)throw Error(eK.NO_BASE_URL);var ec=urlTypeToSegment({baseUrl:W,source:J.sourceURL,range:J.range}),el=urlTypeToSegment({baseUrl:W,source:W,indexRange:void 0===er?"":er});if(el.map=ec,es){var eu=parseByDuration(R);eu.length&&(el.duration=eu[0].duration,el.timeline=eu[0].timeline)}else et&&(el.duration=et,el.timeline=en);return el.presentationTime=ei||en,el.number=void 0===eo?0:eo,[el]},addSidxSegmentsToPlaylist$1=function(R,W,G){var J,et=R.sidx.map?R.sidx.map:null,er=R.sidx.duration,en=R.timeline||0,ei=R.sidx.byterange,eo=ei.offset+ei.length,es=W.timescale,ec=W.references.filter(function(R){return 1!==R.referenceType}),el=[],eu=R.endList?"static":"dynamic",ed=R.sidx.timeline,ep=ed,ef=R.mediaSequence||0;J="bigint"==typeof W.firstOffset?em().BigInt(eo)+W.firstOffset:eo+W.firstOffset;for(var eh=0;eh<ec.length;eh++){var eg=W.references[eh],ey=eg.referencedSize,ev=eg.subsegmentDuration,eb=void 0;eb="bigint"==typeof J?J+em().BigInt(ey)-em().BigInt(1):J+ey-1;var e_=segmentsFromBase({baseUrl:G,timescale:es,timeline:en,periodStart:ed,presentationTime:ep,number:ef,duration:ev,sourceDuration:er,indexRange:J+"-"+eb,type:eu})[0];et&&(e_.map=et),el.push(e_),"bigint"==typeof J?J+=em().BigInt(ey):J+=ey,ep+=ev/es,ef++}return R.segments=el,R},eX=["AUDIO","SUBTITLES"],eQ=1/60,getUniqueTimelineStarts=function(R){return values(R.reduce(function(R,W){return W.forEach(function(W){R[W.timeline]=W}),R},{})).sort(function(R,W){return R.timeline>W.timeline?1:-1})},findPlaylistWithName=function(R,W){for(var G=0;G<R.length;G++)if(R[G].attributes.NAME===W)return R[G];return null},getMediaGroupPlaylists=function(R){var W=[];return forEachMediaGroup(R,eX,function(R,G,J,et){W=W.concat(R.playlists||[])}),W},updateMediaSequenceForPlaylist=function(R){var W=R.playlist,G=R.mediaSequence;W.mediaSequence=G,W.segments.forEach(function(R,G){R.number=W.mediaSequence+G})},updateSequenceNumbers=function(R){var W=R.oldPlaylists,G=R.newPlaylists,J=R.timelineStarts;G.forEach(function(R){R.discontinuitySequence=findIndex(J,function(W){return W.timeline===R.timeline});var G=findPlaylistWithName(W,R.attributes.NAME);if(G&&!R.sidx){var et=R.segments[0],er=findIndex(G.segments,function(R){return Math.abs(R.presentationTime-et.presentationTime)<eQ});if(-1===er){updateMediaSequenceForPlaylist({playlist:R,mediaSequence:G.mediaSequence+G.segments.length}),R.segments[0].discontinuity=!0,R.discontinuityStarts.unshift(0),(!G.segments.length&&R.timeline>G.timeline||G.segments.length&&R.timeline>G.segments[G.segments.length-1].timeline)&&R.discontinuitySequence--;return}G.segments[er].discontinuity&&!et.discontinuity&&(et.discontinuity=!0,R.discontinuityStarts.unshift(0),R.discontinuitySequence--),updateMediaSequenceForPlaylist({playlist:R,mediaSequence:G.segments[er].number})}})},positionManifestOnTimeline=function(R){var W=R.oldManifest,G=R.newManifest,J=W.playlists.concat(getMediaGroupPlaylists(W)),et=G.playlists.concat(getMediaGroupPlaylists(G));return G.timelineStarts=getUniqueTimelineStarts([W.timelineStarts,G.timelineStarts]),updateSequenceNumbers({oldPlaylists:J,newPlaylists:et,timelineStarts:G.timelineStarts}),G},generateSidxKey=function(R){return R&&R.uri+"-"+byteRangeToString(R.byterange)},mergeDiscontiguousPlaylists=function(R){return values(R.reduce(function(R,W){var G,J=W.attributes.id+(W.attributes.lang||"");return R[J]?(W.segments&&(W.segments[0]&&(W.segments[0].discontinuity=!0),(G=R[J].segments).push.apply(G,W.segments)),W.attributes.contentProtection&&(R[J].attributes.contentProtection=W.attributes.contentProtection)):(R[J]=W,R[J].attributes.timelineStarts=[]),R[J].attributes.timelineStarts.push({start:W.attributes.periodStart,timeline:W.attributes.periodStart}),R},{})).map(function(R){return R.discontinuityStarts=(R.segments||[]).reduce(function(R,W,G){return W.discontinuity&&R.push(G),R},[]),R})},addSidxSegmentsToPlaylist=function(R,W){var G=generateSidxKey(R.sidx),J=G&&W[G]&&W[G].sidx;return J&&addSidxSegmentsToPlaylist$1(R,J,R.sidx.resolvedUri),R},addSidxSegmentsToPlaylists=function(R,W){if(void 0===W&&(W={}),!Object.keys(W).length)return R;for(var G in R)R[G]=addSidxSegmentsToPlaylist(R[G],W);return R},formatAudioPlaylist=function(R,W){var G,J=R.attributes,et=R.segments,er=R.sidx,en=R.mediaSequence,ei=R.discontinuitySequence,eo=R.discontinuityStarts,es={attributes:((G={NAME:J.id,BANDWIDTH:J.bandwidth,CODECS:J.codecs})["PROGRAM-ID"]=1,G),uri:"",endList:"static"===J.type,timeline:J.periodStart,resolvedUri:"",targetDuration:J.duration,discontinuitySequence:ei,discontinuityStarts:eo,timelineStarts:J.timelineStarts,mediaSequence:en,segments:et};return J.contentProtection&&(es.contentProtection=J.contentProtection),er&&(es.sidx=er),W&&(es.attributes.AUDIO="audio",es.attributes.SUBTITLES="subs"),es},formatVttPlaylist=function(R){var W,G=R.attributes,J=R.segments,et=R.mediaSequence,er=R.discontinuityStarts,en=R.discontinuitySequence;void 0===J&&(J=[{uri:G.baseUrl,timeline:G.periodStart,resolvedUri:G.baseUrl||"",duration:G.sourceDuration,number:0}],G.duration=G.sourceDuration);var ei=((W={NAME:G.id,BANDWIDTH:G.bandwidth})["PROGRAM-ID"]=1,W);return G.codecs&&(ei.CODECS=G.codecs),{attributes:ei,uri:"",endList:"static"===G.type,timeline:G.periodStart,resolvedUri:G.baseUrl||"",targetDuration:G.duration,timelineStarts:G.timelineStarts,discontinuityStarts:er,discontinuitySequence:en,mediaSequence:et,segments:J}},organizeAudioPlaylists=function(R,W,G){void 0===W&&(W={}),void 0===G&&(G=!1);var J,et=R.reduce(function(R,et){var er=et.attributes.role&&et.attributes.role.value||"",en=et.attributes.lang||"",ei=et.attributes.label||"main";en&&!et.attributes.label&&(ei=""+et.attributes.lang+(er?" ("+er+")":"")),R[ei]||(R[ei]={language:en,autoselect:!0,default:"main"===er,playlists:[],uri:""});var eo=addSidxSegmentsToPlaylist(formatAudioPlaylist(et,G),W);return R[ei].playlists.push(eo),void 0===J&&"main"===er&&((J=et).default=!0),R},{});if(!J){var er=Object.keys(et)[0];et[er].default=!0}return et},formatVideoPlaylist=function(R){var W,G=R.attributes,J=R.segments,et=R.sidx,er=R.discontinuityStarts,en={attributes:((W={NAME:G.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:G.width,height:G.height},CODECS:G.codecs,BANDWIDTH:G.bandwidth})["PROGRAM-ID"]=1,W),uri:"",endList:"static"===G.type,timeline:G.periodStart,resolvedUri:"",targetDuration:G.duration,discontinuityStarts:er,timelineStarts:G.timelineStarts,segments:J};return G.frameRate&&(en.attributes["FRAME-RATE"]=G.frameRate),G.contentProtection&&(en.contentProtection=G.contentProtection),et&&(en.sidx=et),en},videoOnly=function(R){var W=R.attributes;return"video/mp4"===W.mimeType||"video/webm"===W.mimeType||"video"===W.contentType},audioOnly=function(R){var W=R.attributes;return"audio/mp4"===W.mimeType||"audio/webm"===W.mimeType||"audio"===W.contentType},vttOnly=function(R){var W=R.attributes;return"text/vtt"===W.mimeType||"text"===W.contentType},addMediaSequenceValues=function(R,W){R.forEach(function(R){R.mediaSequence=0,R.discontinuitySequence=findIndex(W,function(W){return W.timeline===R.timeline}),R.segments&&R.segments.forEach(function(R,W){R.number=W})})},flattenMediaGroupPlaylists=function(R){return R?Object.keys(R).reduce(function(W,G){var J=R[G];return W.concat(J.playlists)},[]):[]},toM3u8=function(R){var W,G,J=R.dashPlaylists,et=R.locations,er=R.sidxMapping,en=void 0===er?{}:er,ei=R.previousManifest;if(!J.length)return{};var eo=J[0].attributes,es=eo.sourceDuration,ec=eo.type,el=eo.suggestedPresentationDelay,eu=eo.minimumUpdatePeriod,ed=mergeDiscontiguousPlaylists(J.filter(videoOnly)).map(formatVideoPlaylist),ep=mergeDiscontiguousPlaylists(J.filter(audioOnly)),ef=mergeDiscontiguousPlaylists(J.filter(vttOnly)),eh=J.map(function(R){return R.attributes.captionServices}).filter(Boolean),eg={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((G={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},G.SUBTITLES={},G),uri:"",duration:es,playlists:addSidxSegmentsToPlaylists(ed,en)};eu>=0&&(eg.minimumUpdatePeriod=1e3*eu),et&&(eg.locations=et),"dynamic"===ec&&(eg.suggestedPresentationDelay=el);var em=0===eg.playlists.length,ey=ep.length?organizeAudioPlaylists(ep,en,em):null,ev=ef.length?(void 0===(W=en)&&(W={}),ef.reduce(function(R,G){var J=G.attributes.lang||"text";return R[J]||(R[J]={language:J,default:!1,autoselect:!1,playlists:[],uri:""}),R[J].playlists.push(addSidxSegmentsToPlaylist(formatVttPlaylist(G),W)),R},{})):null,eb=ed.concat(flattenMediaGroupPlaylists(ey),flattenMediaGroupPlaylists(ev)),e_=eb.map(function(R){return R.timelineStarts});return eg.timelineStarts=getUniqueTimelineStarts(e_),addMediaSequenceValues(eb,eg.timelineStarts),ey&&(eg.mediaGroups.AUDIO.audio=ey),ev&&(eg.mediaGroups.SUBTITLES.subs=ev),eh.length&&(eg.mediaGroups["CLOSED-CAPTIONS"].cc=eh.reduce(function(R,W){return W&&W.forEach(function(W){var G=W.channel,J=W.language;R[J]={autoselect:!1,default:!1,instreamId:G,language:J},W.hasOwnProperty("aspectRatio")&&(R[J].aspectRatio=W.aspectRatio),W.hasOwnProperty("easyReader")&&(R[J].easyReader=W.easyReader),W.hasOwnProperty("3D")&&(R[J]["3D"]=W["3D"])}),R},{})),ei?positionManifestOnTimeline({oldManifest:ei,newManifest:eg}):eg},getLiveRValue=function(R,W,G){var J=R.NOW,et=R.clientOffset,er=R.availabilityStartTime,en=R.timescale,ei=R.periodStart,eo=R.minimumUpdatePeriod;return Math.ceil((((J+et)/1e3+(void 0===eo?0:eo)-(er+(void 0===ei?0:ei)))*(void 0===en?1:en)-W)/G)},parseByTimeline=function(R,W){for(var G=R.type,J=R.minimumUpdatePeriod,et=void 0===J?0:J,er=R.media,en=void 0===er?"":er,ei=R.sourceDuration,eo=R.timescale,es=void 0===eo?1:eo,ec=R.startNumber,el=void 0===ec?1:ec,eu=R.periodStart,ed=[],ep=-1,ef=0;ef<W.length;ef++){var eh=W[ef],eg=eh.d,em=eh.r||0,ey=eh.t||0;ep<0&&(ep=ey),ey&&ey>ep&&(ep=ey);var ev=void 0;if(em<0){var eb=ef+1;ev=eb===W.length?"dynamic"===G&&et>0&&en.indexOf("$Number$")>0?getLiveRValue(R,ep,eg):(ei*es-ep)/eg:(W[eb].t-ep)/eg}else ev=em+1;for(var e_=el+ed.length+ev,ex=el+ed.length;ex<e_;)ed.push({number:ex,duration:eg/es,time:ep,timeline:eu}),ep+=eg,ex++}return ed},eJ=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,constructTemplateUrl=function(R,W){return R.replace(eJ,function(R,G,J,et){if("$$"===R)return"$";if(void 0===W[G])return R;var er=""+W[G];return"RepresentationID"===G?er:(et=J?parseInt(et,10):1,er.length>=et)?er:""+Array(et-er.length+1).join("0")+er})},segmentsFromTemplate=function(R,W){var G={RepresentationID:R.id,Bandwidth:R.bandwidth||0},J=R.initialization,et=void 0===J?{sourceURL:"",range:""}:J,er=urlTypeToSegment({baseUrl:R.baseUrl,source:constructTemplateUrl(et.sourceURL,G),range:et.range});return(R.duration||W?R.duration?parseByDuration(R):parseByTimeline(R,W):[{number:R.startNumber||1,duration:R.sourceDuration,time:0,timeline:R.periodStart}]).map(function(W){G.Number=W.number,G.Time=W.time;var J=constructTemplateUrl(R.media||"",G),et=R.timescale||1,en=R.presentationTimeOffset||0,ei=R.periodStart+(W.time-en)/et;return{uri:J,timeline:W.timeline,duration:W.duration,resolvedUri:resolve_url(R.baseUrl||"",J),map:er,number:W.number,presentationTime:ei}})},SegmentURLToSegmentObject=function(R,W){var G=R.baseUrl,J=R.initialization,et=void 0===J?{}:J,er=urlTypeToSegment({baseUrl:G,source:et.sourceURL,range:et.range}),en=urlTypeToSegment({baseUrl:G,source:W.media,range:W.mediaRange});return en.map=er,en},segmentsFromList=function(R,W){var G,J=R.duration,et=R.segmentUrls,er=R.periodStart;if(!J&&!W||J&&W)throw Error(eK.SEGMENT_TIME_UNSPECIFIED);var en=(void 0===et?[]:et).map(function(W){return SegmentURLToSegmentObject(R,W)});return J&&(G=parseByDuration(R)),W&&(G=parseByTimeline(R,W)),G.map(function(W,G){if(en[G]){var J=en[G],et=R.timescale||1,ei=R.presentationTimeOffset||0;return J.timeline=W.timeline,J.duration=W.duration,J.number=W.number,J.presentationTime=er+(W.time-ei)/et,J}}).filter(function(R){return R})},generateSegments=function(R){var W,G,J=R.attributes,et=R.segmentInfo;et.template?(G=segmentsFromTemplate,W=merge(J,et.template)):et.base?(G=segmentsFromBase,W=merge(J,et.base)):et.list&&(G=segmentsFromList,W=merge(J,et.list));var er={attributes:J};if(!G)return er;var en=G(W,et.segmentTimeline);if(W.duration){var ei=W,eo=ei.duration,es=ei.timescale;W.duration=eo/(void 0===es?1:es)}else en.length?W.duration=en.reduce(function(R,W){return Math.max(R,Math.ceil(W.duration))},0):W.duration=0;return er.attributes=W,er.segments=en,et.base&&W.indexRange&&(er.sidx=en[0],er.segments=[]),er},findChildren=function(R,W){return from(R.childNodes).filter(function(R){return R.tagName===W})},getContent=function(R){return R.textContent.trim()},parseDuration=function(R){var W=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(R);if(!W)return 0;var G=W.slice(1),J=G[0],et=G[1],er=G[2],en=G[3],ei=G[4],eo=G[5];return 31536e3*parseFloat(J||0)+2592e3*parseFloat(et||0)+86400*parseFloat(er||0)+3600*parseFloat(en||0)+60*parseFloat(ei||0)+parseFloat(eo||0)},e0={mediaPresentationDuration:function(R){return parseDuration(R)},availabilityStartTime:function(R){var W;return W=R,/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(W)&&(W+="Z"),Date.parse(W)/1e3},minimumUpdatePeriod:function(R){return parseDuration(R)},suggestedPresentationDelay:function(R){return parseDuration(R)},type:function(R){return R},timeShiftBufferDepth:function(R){return parseDuration(R)},start:function(R){return parseDuration(R)},width:function(R){return parseInt(R,10)},height:function(R){return parseInt(R,10)},bandwidth:function(R){return parseInt(R,10)},frameRate:function(R){return parseFloat(R.split("/").reduce(function(R,W){return R/W}))},startNumber:function(R){return parseInt(R,10)},timescale:function(R){return parseInt(R,10)},presentationTimeOffset:function(R){return parseInt(R,10)},duration:function(R){var W=parseInt(R,10);return isNaN(W)?parseDuration(R):W},d:function(R){return parseInt(R,10)},t:function(R){return parseInt(R,10)},r:function(R){return parseInt(R,10)},DEFAULT:function(R){return R}},mpd_parser_es_parseAttributes=function(R){return R&&R.attributes?from(R.attributes).reduce(function(R,W){var G=e0[W.name]||e0.DEFAULT;return R[W.name]=G(W.value),R},{}):{}},e1={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},buildBaseUrls=function(R,W){return W.length?flatten(R.map(function(R){return W.map(function(W){return resolve_url(R,getContent(W))})})):R},getSegmentInformation=function(R){var W=findChildren(R,"SegmentTemplate")[0],G=findChildren(R,"SegmentList")[0],J=G&&findChildren(G,"SegmentURL").map(function(R){return merge({tag:"SegmentURL"},mpd_parser_es_parseAttributes(R))}),et=findChildren(R,"SegmentBase")[0],er=G||W,en=er&&findChildren(er,"SegmentTimeline")[0],ei=G||et||W,eo=ei&&findChildren(ei,"Initialization")[0],es=W&&mpd_parser_es_parseAttributes(W);es&&eo?es.initialization=eo&&mpd_parser_es_parseAttributes(eo):es&&es.initialization&&(es.initialization={sourceURL:es.initialization});var ec={template:es,segmentTimeline:en&&findChildren(en,"S").map(function(R){return mpd_parser_es_parseAttributes(R)}),list:G&&merge(mpd_parser_es_parseAttributes(G),{segmentUrls:J,initialization:mpd_parser_es_parseAttributes(eo)}),base:et&&merge(mpd_parser_es_parseAttributes(et),{initialization:mpd_parser_es_parseAttributes(eo)})};return Object.keys(ec).forEach(function(R){ec[R]||delete ec[R]}),ec},getPeriodStart=function(R){var W=R.attributes,G=R.priorPeriodAttributes,J=R.mpdType;return"number"==typeof W.start?W.start:G&&"number"==typeof G.start&&"number"==typeof G.duration?G.start+G.duration:G||"static"!==J?null:0},inheritAttributes=function(R,W){void 0===W&&(W={});var G=W,J=G.manifestUri,et=void 0===J?"":J,er=G.NOW,en=void 0===er?Date.now():er,ei=G.clientOffset,eo=findChildren(R,"Period");if(!eo.length)throw Error(eK.INVALID_NUMBER_OF_PERIOD);var es=findChildren(R,"Location"),ec=mpd_parser_es_parseAttributes(R),el=buildBaseUrls([et],findChildren(R,"BaseURL"));ec.type=ec.type||"static",ec.sourceDuration=ec.mediaPresentationDuration||0,ec.NOW=en,ec.clientOffset=void 0===ei?0:ei,es.length&&(ec.locations=es.map(getContent));var eu=[];return eo.forEach(function(R,W){var G=mpd_parser_es_parseAttributes(R),J=eu[W-1];G.start=getPeriodStart({attributes:G,priorPeriodAttributes:J?J.attributes:null,mpdType:ec.type}),eu.push({node:R,attributes:G})}),{locations:ec.locations,representationInfo:flatten(eu.map(function(R,W){var G=buildBaseUrls(el,findChildren(R.node,"BaseURL")),J=merge(ec,{periodStart:R.attributes.start});"number"==typeof R.attributes.duration&&(J.periodDuration=R.attributes.duration);var et=findChildren(R.node,"AdaptationSet"),er=getSegmentInformation(R.node);return flatten(et.map(function(R){var W,et,en=mpd_parser_es_parseAttributes(R),ei=buildBaseUrls(G,findChildren(R,"BaseURL")),eo=merge(J,en,{role:mpd_parser_es_parseAttributes(findChildren(R,"Role")[0])}),es="urn:scte:dash:cc:cea-608:2015"===(W=mpd_parser_es_parseAttributes(findChildren(R,"Accessibility")[0])).schemeIdUri?("string"!=typeof W.value?[]:W.value.split(";")).map(function(R){if(G=R,/^CC\d=/.test(R)){var W,G,J=R.split("=");W=J[0],G=J[1]}else/^CC\d$/.test(R)&&(W=R);return{channel:W,language:G}}):"urn:scte:dash:cc:cea-708:2015"===W.schemeIdUri?("string"!=typeof W.value?[]:W.value.split(";")).map(function(R){var W={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(R)){var G=R.split("="),J=G[0],et=G[1];W.channel=J,W.language=R,(void 0===et?"":et).split(",").forEach(function(R){var G=R.split(":"),J=G[0],et=G[1];"lang"===J?W.language=et:"er"===J?W.easyReader=Number(et):"war"===J?W.aspectRatio=Number(et):"3D"===J&&(W["3D"]=Number(et))})}else W.language=R;return W.channel&&(W.channel="SERVICE"+W.channel),W}):void 0;es&&(eo=merge(eo,{captionServices:es}));var ec=findChildren(R,"Label")[0];ec&&ec.childNodes.length&&(eo=merge(eo,{label:ec.childNodes[0].nodeValue.trim()}));var el=findChildren(R,"ContentProtection").reduce(function(R,W){var G=mpd_parser_es_parseAttributes(W);G.schemeIdUri&&(G.schemeIdUri=G.schemeIdUri.toLowerCase());var J=e1[G.schemeIdUri];if(J){R[J]={attributes:G};var et=findChildren(W,"cenc:pssh")[0];if(et){var er=getContent(et);R[J].pssh=er&&decodeB64ToUint8Array(er)}}return R},{});Object.keys(el).length&&(eo=merge(eo,{contentProtection:el}));var eu=getSegmentInformation(R),ed=findChildren(R,"Representation"),ep=merge(er,eu);return flatten(ed.map((et=eo,function(R){var W=buildBaseUrls(ei,findChildren(R,"BaseURL")),G=merge(et,mpd_parser_es_parseAttributes(R)),J=getSegmentInformation(R);return W.map(function(R){return{segmentInfo:merge(ep,J),attributes:merge(G,{baseUrl:R})}})})))}))}))}},stringToMpdXml=function(R){if(""===R)throw Error(eK.DASH_EMPTY_MANIFEST);var W,G,J=new e$.DOMParser;try{G=(W=J.parseFromString(R,"application/xml"))&&"MPD"===W.documentElement.tagName?W.documentElement:null}catch(R){}if(!G||G&&G.getElementsByTagName("parsererror").length>0)throw Error(eK.DASH_INVALID_XML);return G},parseUTCTimingScheme=function(R){var W=findChildren(R,"UTCTiming")[0];if(!W)return null;var G=mpd_parser_es_parseAttributes(W);switch(G.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":G.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":G.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":G.method="DIRECT",G.value=Date.parse(G.value);break;default:throw Error(eK.UNSUPPORTED_UTC_TIMING_SCHEME)}return G},parse=function(R,W){void 0===W&&(W={});var G=inheritAttributes(stringToMpdXml(R),W);return toM3u8({dashPlaylists:G.representationInfo.map(generateSegments),locations:G.locations,sidxMapping:W.sidxMapping,previousManifest:W.previousManifest})},e2=G(84221),e3=G.n(e2),e5=byte_helpers_toUint8([73,68,51]),getId3Size=function(R,W){void 0===W&&(W=0);var G=(R=byte_helpers_toUint8(R))[W+5],J=R[W+6]<<21|R[W+7]<<14|R[W+8]<<7|R[W+9];return(16&G)>>4?J+20:J+10},getId3Offset=function getId3Offset(R,W){return(void 0===W&&(W=0),(R=byte_helpers_toUint8(R)).length-W<10||!byte_helpers_bytesMatch(R,e5,{offset:W}))?W:(W+=getId3Size(R,W),getId3Offset(R,W))};new Uint8Array([79,112,117,115,72,101,97,100]);var normalizePath=function(R){return"string"==typeof R?stringToBytes(R):R},parseDescriptors=function(R){R=byte_helpers_toUint8(R);for(var W=[],G=0;R.length>G;){var J=R[G],et=0,er=0,en=R[++er];for(er++;128&en;)et=(127&en)<<7,en=R[er],er++;et+=127&en;for(var ei=0;ei<es.length;ei++){var eo=es[ei],ec=eo.id,el=eo.parser;if(J===ec){W.push(el(R.subarray(er,er+et)));break}}G+=et+er}return W};es=[{id:3,parser:function(R){var W={tag:3,id:R[0]<<8|R[1],flags:R[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&W.flags&&(W.dependsOnEsId=R[W.size]<<8|R[W.size+1],W.size+=2),64&W.flags){var G=R[W.size];W.url=byte_helpers_bytesToString(R.subarray(W.size+1,W.size+1+G)),W.size+=G}return 32&W.flags&&(W.ocrEsId=R[W.size]<<8|R[W.size+1],W.size+=2),W.descriptors=parseDescriptors(R.subarray(W.size))||[],W}},{id:4,parser:function(R){return{tag:4,oti:R[0],streamType:R[1],bufferSize:R[2]<<16|R[3]<<8|R[4],maxBitrate:R[5]<<24|R[6]<<16|R[7]<<8|R[8],avgBitrate:R[9]<<24|R[10]<<16|R[11]<<8|R[12],descriptors:parseDescriptors(R.subarray(13))}}},{id:5,parser:function(R){return{tag:5,bytes:R}}},{id:6,parser:function(R){return{tag:6,bytes:R}}}];var findBox=function findBox(R,W,G){void 0===G&&(G=!1),W=Array.isArray(J=W)?J.map(function(R){return normalizePath(R)}):[normalizePath(J)],R=byte_helpers_toUint8(R);var J,et=[];if(!W.length)return et;for(var er=0;er<R.length;){var en=(R[er]<<24|R[er+1]<<16|R[er+2]<<8|R[er+3])>>>0,ei=R.subarray(er+4,er+8);if(0===en)break;var eo=er+en;if(eo>R.length){if(G)break;eo=R.length}var es=R.subarray(er+8,eo);byte_helpers_bytesMatch(ei,W[0])&&(1===W.length?et.push(es):et.push.apply(et,findBox(es,W.slice(1),G))),er=eo}return et},e4={EBML:byte_helpers_toUint8([26,69,223,163]),DocType:byte_helpers_toUint8([66,130]),Segment:byte_helpers_toUint8([24,83,128,103]),SegmentInfo:byte_helpers_toUint8([21,73,169,102]),Tracks:byte_helpers_toUint8([22,84,174,107]),Track:byte_helpers_toUint8([174]),TrackNumber:byte_helpers_toUint8([215]),DefaultDuration:byte_helpers_toUint8([35,227,131]),TrackEntry:byte_helpers_toUint8([174]),TrackType:byte_helpers_toUint8([131]),FlagDefault:byte_helpers_toUint8([136]),CodecID:byte_helpers_toUint8([134]),CodecPrivate:byte_helpers_toUint8([99,162]),VideoTrack:byte_helpers_toUint8([224]),AudioTrack:byte_helpers_toUint8([225]),Cluster:byte_helpers_toUint8([31,67,182,117]),Timestamp:byte_helpers_toUint8([231]),TimestampScale:byte_helpers_toUint8([42,215,177]),BlockGroup:byte_helpers_toUint8([160]),BlockDuration:byte_helpers_toUint8([155]),Block:byte_helpers_toUint8([161]),SimpleBlock:byte_helpers_toUint8([163])},e8=[128,64,32,16,8,4,2,1],getLength=function(R){for(var W=1,G=0;G<e8.length&&!(R&e8[G]);G++)W++;return W},getvint=function(R,W,G,J){void 0===G&&(G=!0),void 0===J&&(J=!1);var et=getLength(R[W]),er=R.subarray(W,W+et);return G&&(er=Array.prototype.slice.call(R,W,W+et),er[0]^=e8[et-1]),{length:et,value:byte_helpers_bytesToNumber(er,{signed:J}),bytes:er}},ebml_helpers_normalizePath=function normalizePath(R){return"string"==typeof R?R.match(/.{1,2}/g).map(function(R){return normalizePath(R)}):"number"==typeof R?numberToBytes(R):R},getInfinityDataSize=function getInfinityDataSize(R,W,G){if(G>=W.length)return W.length;var J=getvint(W,G,!1);if(byte_helpers_bytesMatch(R.bytes,J.bytes))return G;var et=getvint(W,G+J.length);return getInfinityDataSize(R,W,G+et.length+et.value+J.length)},findEbml=function findEbml(R,W){W=Array.isArray(G=W)?G.map(function(R){return ebml_helpers_normalizePath(R)}):[ebml_helpers_normalizePath(G)],R=byte_helpers_toUint8(R);var G,J=[];if(!W.length)return J;for(var et=0;et<R.length;){var er=getvint(R,et,!1),en=getvint(R,et+er.length),ei=et+er.length+en.length;127===en.value&&(en.value=getInfinityDataSize(er,R,ei),en.value!==R.length&&(en.value-=ei));var eo=ei+en.value>R.length?R.length:ei+en.value,es=R.subarray(ei,eo);byte_helpers_bytesMatch(W[0],er.bytes)&&(1===W.length?J.push(es):J=J.concat(findEbml(es,W.slice(1)))),et+=er.length+en.length+es.length}return J},e6=byte_helpers_toUint8([0,0,0,1]),e7=byte_helpers_toUint8([0,0,1]),e9=byte_helpers_toUint8([0,0,3]),discardEmulationPreventionBytes=function(R){for(var W=[],G=1;G<R.length-2;)byte_helpers_bytesMatch(R.subarray(G,G+3),e9)&&(W.push(G+2),G++),G++;if(0===W.length)return R;var J=R.length-W.length,et=new Uint8Array(J),er=0;for(G=0;G<J;er++,G++)er===W[0]&&(er++,W.shift()),et[G]=R[er];return et},findNal=function(R,W,G,J){void 0===J&&(J=1/0),R=byte_helpers_toUint8(R),G=[].concat(G);for(var et,er=0,en=0;er<R.length&&(en<J||et);){var ei=void 0;if(byte_helpers_bytesMatch(R.subarray(er),e6)?ei=4:byte_helpers_bytesMatch(R.subarray(er),e7)&&(ei=3),!ei){er++;continue}if(en++,et)return discardEmulationPreventionBytes(R.subarray(et,er));var eo=void 0;"h264"===W?eo=31&R[er+ei]:"h265"===W&&(eo=R[er+ei]>>1&63),-1!==G.indexOf(eo)&&(et=er+ei),er+=ei+("h264"===W?1:2)}return R.subarray(0,0)},tt={webm:byte_helpers_toUint8([119,101,98,109]),matroska:byte_helpers_toUint8([109,97,116,114,111,115,107,97]),flac:byte_helpers_toUint8([102,76,97,67]),ogg:byte_helpers_toUint8([79,103,103,83]),ac3:byte_helpers_toUint8([11,119]),riff:byte_helpers_toUint8([82,73,70,70]),avi:byte_helpers_toUint8([65,86,73]),wav:byte_helpers_toUint8([87,65,86,69]),"3gp":byte_helpers_toUint8([102,116,121,112,51,103]),mp4:byte_helpers_toUint8([102,116,121,112]),fmp4:byte_helpers_toUint8([115,116,121,112]),mov:byte_helpers_toUint8([102,116,121,112,113,116]),moov:byte_helpers_toUint8([109,111,111,118]),moof:byte_helpers_toUint8([109,111,111,102])},tr={aac:function(R){var W=getId3Offset(R);return byte_helpers_bytesMatch(R,[255,16],{offset:W,mask:[255,22]})},mp3:function(R){var W=getId3Offset(R);return byte_helpers_bytesMatch(R,[255,2],{offset:W,mask:[255,6]})},webm:function(R){return byte_helpers_bytesMatch(findEbml(R,[e4.EBML,e4.DocType])[0],tt.webm)},mkv:function(R){return byte_helpers_bytesMatch(findEbml(R,[e4.EBML,e4.DocType])[0],tt.matroska)},mp4:function(R){return!(tr["3gp"](R)||tr.mov(R))&&(!!(byte_helpers_bytesMatch(R,tt.mp4,{offset:4})||byte_helpers_bytesMatch(R,tt.fmp4,{offset:4})||byte_helpers_bytesMatch(R,tt.moof,{offset:4})||byte_helpers_bytesMatch(R,tt.moov,{offset:4}))||void 0)},mov:function(R){return byte_helpers_bytesMatch(R,tt.mov,{offset:4})},"3gp":function(R){return byte_helpers_bytesMatch(R,tt["3gp"],{offset:4})},ac3:function(R){var W=getId3Offset(R);return byte_helpers_bytesMatch(R,tt.ac3,{offset:W})},ts:function(R){if(R.length<189&&R.length>=1)return 71===R[0];for(var W=0;W+188<R.length&&W<188;){if(71===R[W]&&71===R[W+188])return!0;W+=1}return!1},flac:function(R){var W=getId3Offset(R);return byte_helpers_bytesMatch(R,tt.flac,{offset:W})},ogg:function(R){return byte_helpers_bytesMatch(R,tt.ogg)},avi:function(R){return byte_helpers_bytesMatch(R,tt.riff)&&byte_helpers_bytesMatch(R,tt.avi,{offset:8})},wav:function(R){return byte_helpers_bytesMatch(R,tt.riff)&&byte_helpers_bytesMatch(R,tt.wav,{offset:8})},h264:function(R){return findNal(R,"h264",7,3).length},h265:function(R){return findNal(R,"h265",[32,33],3).length}},tn=Object.keys(tr).filter(function(R){return"ts"!==R&&"h264"!==R&&"h265"!==R}).concat(["ts","h264","h265"]);tn.forEach(function(R){var W=tr[R];tr[R]=function(R){return W(byte_helpers_toUint8(R))}});for(var detectContainerForBytes=function(R){R=byte_helpers_toUint8(R);for(var W=0;W<tn.length;W++){var G=tn[W];if(tr[G](R))return G}return""},ti=G(51489),to=G(35724),ta="7.21.5",ts={},hooks=function(R,W){return ts[R]=ts[R]||[],W&&(ts[R]=ts[R].concat(W)),ts[R]},removeHook=function(R,W){var G=hooks(R).indexOf(W);return!(G<=-1)&&(ts[R]=ts[R].slice(),ts[R].splice(G,1),!0)},tc={prefixed:!0},tl=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],tu=tl[0],td=0;td<tl.length;td++)if(tl[td][1]in ev()){ec=tl[td];break}if(ec){for(var tp=0;tp<ec.length;tp++)tc[tu[tp]]=ec[tp];tc.prefixed=ec[0]!==tu[0]}var tf=[],th=function createLogger$1(R){var W,G="info",log=function(){for(var R=arguments.length,J=Array(R),et=0;et<R;et++)J[et]=arguments[et];W("log",G,J)};return W=function(W,G,J){var et=log.levels[G],er=RegExp("^("+et+")$");if("log"!==W&&J.unshift(W.toUpperCase()+":"),J.unshift(R+":"),tf){tf.push([].concat(J));var en=tf.length-1e3;tf.splice(0,en>0?en:0)}if(em().console){var ei=em().console[W];ei||"debug"!==W||(ei=em().console.info||em().console.log),ei&&et&&er.test(W)&&ei[Array.isArray(J)?"apply":"call"](em().console,J)}},log.createLogger=function(W){return createLogger$1(R+": "+W)},log.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:G},log.level=function(R){if("string"==typeof R){if(!log.levels.hasOwnProperty(R))throw Error('"'+R+'" in not a valid log level');G=R}return G},log.history=function(){return tf?[].concat(tf):[]},log.history.filter=function(R){return(tf||[]).filter(function(W){return RegExp(".*"+R+".*").test(W[0])})},log.history.clear=function(){tf&&(tf.length=0)},log.history.disable=function(){null!==tf&&(tf.length=0,tf=null)},log.history.enable=function(){null===tf&&(tf=[])},log.error=function(){for(var R=arguments.length,J=Array(R),et=0;et<R;et++)J[et]=arguments[et];return W("error",G,J)},log.warn=function(){for(var R=arguments.length,J=Array(R),et=0;et<R;et++)J[et]=arguments[et];return W("warn",G,J)},log.debug=function(){for(var R=arguments.length,J=Array(R),et=0;et<R;et++)J[et]=arguments[et];return W("debug",G,J)},log}("VIDEOJS"),tg=th.createLogger,tm=Object.prototype.toString,keys=function(R){return video_es_isObject(R)?Object.keys(R):[]};function each(R,W){keys(R).forEach(function(G){return W(R[G],G)})}function video_es_assign(R){for(var W=arguments.length,G=Array(W>1?W-1:0),J=1;J<W;J++)G[J-1]=arguments[J];return Object.assign?eb.Z.apply(void 0,[R].concat(G)):(G.forEach(function(W){W&&each(W,function(W,G){R[G]=W})}),R)}function video_es_isObject(R){return!!R&&"object"==typeof R}function isPlain(R){return video_es_isObject(R)&&"[object Object]"===tm.call(R)&&R.constructor===Object}function computedStyle(R,W){if(!R||!W)return"";if("function"==typeof em().getComputedStyle){var G;try{G=em().getComputedStyle(R)}catch(R){return""}return G?G.getPropertyValue(W)||G[W]:""}return""}var ty=em().navigator&&em().navigator.userAgent||"",tv=/AppleWebKit\/([\d.]+)/i.exec(ty),tb=tv?parseFloat(tv.pop()):null,t_=/iPod/i.test(ty),tx=(er=ty.match(/OS (\d+)_/i))&&er[1]?er[1]:null,tw=/Android/i.test(ty),tS=function(){var R=ty.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!R)return null;var W=R[1]&&parseFloat(R[1]),G=R[2]&&parseFloat(R[2]);return W&&G?parseFloat(R[1]+"."+R[2]):W||null}(),tT=tw&&tS<5&&tb<537,tO=/Firefox/i.test(ty),tP=/Edg/i.test(ty),tC=!tP&&(/Chrome/i.test(ty)||/CriOS/i.test(ty)),tk=(en=ty.match(/(Chrome|CriOS)\/(\d+)/))&&en[2]?parseFloat(en[2]):null,tE=(!(eo=(ei=/MSIE\s(\d+)\.\d/.exec(ty))&&parseFloat(ei[1]))&&/Trident\/7.0/i.test(ty)&&/rv:11.0/.test(ty)&&(eo=11),eo),tj=/Safari/i.test(ty)&&!tC&&!tw&&!tP,tA=/Windows/i.test(ty),tD=!!(isReal()&&("ontouchstart"in em()||em().navigator.maxTouchPoints||em().DocumentTouch&&em().document instanceof em().DocumentTouch)),tI=/iPad/i.test(ty)||tj&&tD&&!/iPhone/i.test(ty),tM=/iPhone/i.test(ty)&&!tI,tL=tM||tI||t_,tR=(tj||tL)&&!tC,tN=Object.freeze({__proto__:null,IS_IPOD:t_,IOS_VERSION:tx,IS_ANDROID:tw,ANDROID_VERSION:tS,IS_NATIVE_ANDROID:tT,IS_FIREFOX:tO,IS_EDGE:tP,IS_CHROME:tC,CHROME_VERSION:tk,IE_VERSION:tE,IS_SAFARI:tj,IS_WINDOWS:tA,TOUCH_ENABLED:tD,IS_IPAD:tI,IS_IPHONE:tM,IS_IOS:tL,IS_ANY_SAFARI:tR});function isNonBlankString(R){return"string"==typeof R&&!!R.trim()}function throwIfWhitespace(R){if(R.indexOf(" ")>=0)throw Error("class has illegal whitespace characters")}function isReal(){return ev()===em().document}function isEl(R){return video_es_isObject(R)&&1===R.nodeType}function isInFrame(){try{return em().parent!==em().self}catch(R){return!0}}function createQuerier(R){return function(W,G){if(!isNonBlankString(W))return ev()[R](null);isNonBlankString(G)&&(G=ev().querySelector(G));var J=isEl(G)?G:ev();return J[R]&&J[R](W)}}function createEl(R,W,G,J){void 0===R&&(R="div"),void 0===W&&(W={}),void 0===G&&(G={});var et=ev().createElement(R);return Object.getOwnPropertyNames(W).forEach(function(R){var G=W[R];-1!==R.indexOf("aria-")||"role"===R||"type"===R?(th.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+R+" to "+G+"."),et.setAttribute(R,G)):"textContent"===R?textContent(et,G):(et[R]!==G||"tabIndex"===R)&&(et[R]=G)}),Object.getOwnPropertyNames(G).forEach(function(R){et.setAttribute(R,G[R])}),J&&appendContent(et,J),et}function textContent(R,W){return void 0===R.textContent?R.innerText=W:R.textContent=W,R}function prependTo(R,W){W.firstChild?W.insertBefore(R,W.firstChild):W.appendChild(R)}function hasClass(R,W){return(throwIfWhitespace(W),R.classList)?R.classList.contains(W):RegExp("(^|\\s)"+W+"($|\\s)").test(R.className)}function addClass(R,W){return R.classList?R.classList.add(W):hasClass(R,W)||(R.className=(R.className+" "+W).trim()),R}function removeClass(R,W){return R?(R.classList?R.classList.remove(W):(throwIfWhitespace(W),R.className=R.className.split(/\s+/).filter(function(R){return R!==W}).join(" ")),R):(th.warn("removeClass was called with an element that doesn't exist"),null)}function toggleClass(R,W,G){var J=hasClass(R,W);if("function"==typeof G&&(G=G(R,W)),"boolean"!=typeof G&&(G=!J),G!==J)return G?addClass(R,W):removeClass(R,W),R}function setAttributes(R,W){Object.getOwnPropertyNames(W).forEach(function(G){var J=W[G];null==J||!1===J?R.removeAttribute(G):R.setAttribute(G,!0===J?"":J)})}function getAttributes(R){var W={};if(R&&R.attributes&&R.attributes.length>0)for(var G=R.attributes,J=G.length-1;J>=0;J--){var et=G[J].name,er=G[J].value;("boolean"==typeof R[et]||-1!==",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+et+","))&&(er=null!==er),W[et]=er}return W}function getAttribute(R,W){return R.getAttribute(W)}function setAttribute(R,W,G){R.setAttribute(W,G)}function removeAttribute(R,W){R.removeAttribute(W)}function blockTextSelection(){ev().body.focus(),ev().onselectstart=function(){return!1}}function unblockTextSelection(){ev().onselectstart=function(){return!0}}function getBoundingClientRect(R){if(R&&R.getBoundingClientRect&&R.parentNode){var W=R.getBoundingClientRect(),G={};return["bottom","height","left","right","top","width"].forEach(function(R){void 0!==W[R]&&(G[R]=W[R])}),G.height||(G.height=parseFloat(computedStyle(R,"height"))),G.width||(G.width=parseFloat(computedStyle(R,"width"))),G}}function findPosition(R){if(!R||R&&!R.offsetParent)return{left:0,top:0,width:0,height:0};for(var W=R.offsetWidth,G=R.offsetHeight,J=0,et=0;R.offsetParent&&R!==ev()[tc.fullscreenElement];)J+=R.offsetLeft,et+=R.offsetTop,R=R.offsetParent;return{left:J,top:et,width:W,height:G}}function getPointerPosition(R,W){var G={x:0,y:0};if(tL)for(var J=R;J&&"html"!==J.nodeName.toLowerCase();){var et=computedStyle(J,"transform");if(/^matrix/.test(et)){var er=et.slice(7,-1).split(/,\s/).map(Number);G.x+=er[4],G.y+=er[5]}else if(/^matrix3d/.test(et)){var en=et.slice(9,-1).split(/,\s/).map(Number);G.x+=en[12],G.y+=en[13]}J=J.parentNode}var ei={},eo=findPosition(W.target),es=findPosition(R),ec=es.width,el=es.height,eu=W.offsetY-(es.top-eo.top),ed=W.offsetX-(es.left-eo.left);return W.changedTouches&&(ed=W.changedTouches[0].pageX-es.left,eu=W.changedTouches[0].pageY+es.top,tL&&(ed-=G.x,eu-=G.y)),ei.y=1-Math.max(0,Math.min(1,eu/el)),ei.x=Math.max(0,Math.min(1,ed/ec)),ei}function isTextNode(R){return video_es_isObject(R)&&3===R.nodeType}function emptyEl(R){for(;R.firstChild;)R.removeChild(R.firstChild);return R}function normalizeContent(R){return"function"==typeof R&&(R=R()),(Array.isArray(R)?R:[R]).map(function(R){return("function"==typeof R&&(R=R()),isEl(R)||isTextNode(R))?R:"string"==typeof R&&/\S/.test(R)?ev().createTextNode(R):void 0}).filter(function(R){return R})}function appendContent(R,W){return normalizeContent(W).forEach(function(W){return R.appendChild(W)}),R}function insertContent(R,W){return appendContent(emptyEl(R),W)}function isSingleLeftClick(R){return void 0===R.button&&void 0===R.buttons||0===R.button&&void 0===R.buttons||"mouseup"===R.type&&0===R.button&&0===R.buttons||0===R.button&&1===R.buttons}var tB=createQuerier("querySelector"),tZ=createQuerier("querySelectorAll"),tU=Object.freeze({__proto__:null,isReal:isReal,isEl:isEl,isInFrame:isInFrame,createEl:createEl,textContent:textContent,prependTo:prependTo,hasClass:hasClass,addClass:addClass,removeClass:removeClass,toggleClass:toggleClass,setAttributes:setAttributes,getAttributes:getAttributes,getAttribute:getAttribute,setAttribute:setAttribute,removeAttribute:removeAttribute,blockTextSelection:blockTextSelection,unblockTextSelection:unblockTextSelection,getBoundingClientRect:getBoundingClientRect,findPosition:findPosition,getPointerPosition:getPointerPosition,isTextNode:isTextNode,emptyEl:emptyEl,normalizeContent:normalizeContent,appendContent:appendContent,insertContent:insertContent,isSingleLeftClick:isSingleLeftClick,$:tB,$$:tZ}),tF=!1,autoSetup=function(){if(!1!==el.options.autoSetup){var R=Array.prototype.slice.call(ev().getElementsByTagName("video")),W=Array.prototype.slice.call(ev().getElementsByTagName("audio")),G=Array.prototype.slice.call(ev().getElementsByTagName("video-js")),J=R.concat(W,G);if(J&&J.length>0)for(var et=0,er=J.length;et<er;et++){var en=J[et];if(en&&en.getAttribute)void 0===en.player&&null!==en.getAttribute("data-setup")&&el(en);else{autoSetupTimeout(1);break}}else tF||autoSetupTimeout(1)}};function autoSetupTimeout(R,W){isReal()&&(W&&(el=W),em().setTimeout(autoSetup,R))}function setWindowLoaded(){tF=!0,em().removeEventListener("load",setWindowLoaded)}isReal()&&("complete"===ev().readyState?setWindowLoaded():em().addEventListener("load",setWindowLoaded));var createStyleElement=function(R){var W=ev().createElement("style");return W.className=R,W},setTextContent=function(R,W){R.styleSheet?R.styleSheet.cssText=W:R.textContent=W},tz=3;em().WeakMap||(eu=function(){function FakeWeakMap(){this.vdata="vdata"+Math.floor(em().performance&&em().performance.now()||Date.now()),this.data={}}var R=FakeWeakMap.prototype;return R.set=function(R,W){var G=R[this.vdata]||tz++;return R[this.vdata]||(R[this.vdata]=G),this.data[G]=W,this},R.get=function(R){var W=R[this.vdata];if(W)return this.data[W];th("We have no data for this element",R)},R.has=function(R){return R[this.vdata]in this.data},R.delete=function(R){var W=R[this.vdata];W&&(delete this.data[W],delete R[this.vdata])},FakeWeakMap}());var tH=em().WeakMap?new WeakMap:new eu;function _cleanUpEvents(R,W){if(tH.has(R)){var G=tH.get(R);0===G.handlers[W].length&&(delete G.handlers[W],R.removeEventListener?R.removeEventListener(W,G.dispatcher,!1):R.detachEvent&&R.detachEvent("on"+W,G.dispatcher)),Object.getOwnPropertyNames(G.handlers).length<=0&&(delete G.handlers,delete G.dispatcher,delete G.disabled),0===Object.getOwnPropertyNames(G).length&&tH.delete(R)}}function _handleMultipleEvents(R,W,G,J){G.forEach(function(G){R(W,G,J)})}function fixEvent(R){if(R.fixed_)return R;function returnTrue(){return!0}function returnFalse(){return!1}if(!R||!R.isPropagationStopped||!R.isImmediatePropagationStopped){var W=R||em().event;for(var G in R={},W)"layerX"===G||"layerY"===G||"keyLocation"===G||"webkitMovementX"===G||"webkitMovementY"===G||"path"===G||"returnValue"===G&&W.preventDefault||(R[G]=W[G]);if(R.target||(R.target=R.srcElement||ev()),R.relatedTarget||(R.relatedTarget=R.fromElement===R.target?R.toElement:R.fromElement),R.preventDefault=function(){W.preventDefault&&W.preventDefault(),R.returnValue=!1,W.returnValue=!1,R.defaultPrevented=!0},R.defaultPrevented=!1,R.stopPropagation=function(){W.stopPropagation&&W.stopPropagation(),R.cancelBubble=!0,W.cancelBubble=!0,R.isPropagationStopped=returnTrue},R.isPropagationStopped=returnFalse,R.stopImmediatePropagation=function(){W.stopImmediatePropagation&&W.stopImmediatePropagation(),R.isImmediatePropagationStopped=returnTrue,R.stopPropagation()},R.isImmediatePropagationStopped=returnFalse,null!==R.clientX&&void 0!==R.clientX){var J=ev().documentElement,et=ev().body;R.pageX=R.clientX+(J&&J.scrollLeft||et&&et.scrollLeft||0)-(J&&J.clientLeft||et&&et.clientLeft||0),R.pageY=R.clientY+(J&&J.scrollTop||et&&et.scrollTop||0)-(J&&J.clientTop||et&&et.clientTop||0)}R.which=R.charCode||R.keyCode,null!==R.button&&void 0!==R.button&&(R.button=1&R.button?0:4&R.button?1:2&R.button?2:0)}return R.fixed_=!0,R}var supportsPassive=function(){if("boolean"!=typeof ed){ed=!1;try{var R=Object.defineProperty({},"passive",{get:function(){ed=!0}});em().addEventListener("test",null,R),em().removeEventListener("test",null,R)}catch(R){}}return ed},tq=["touchstart","touchmove"];function on(R,W,G){if(Array.isArray(W))return _handleMultipleEvents(on,R,W,G);tH.has(R)||tH.set(R,{});var J=tH.get(R);if(J.handlers||(J.handlers={}),J.handlers[W]||(J.handlers[W]=[]),G.guid||(G.guid=tz++),J.handlers[W].push(G),J.dispatcher||(J.disabled=!1,J.dispatcher=function(W,G){if(!J.disabled){W=fixEvent(W);var et=J.handlers[W.type];if(et)for(var er=et.slice(0),en=0,ei=er.length;en<ei&&!W.isImmediatePropagationStopped();en++)try{er[en].call(R,W,G)}catch(R){th.error(R)}}}),1===J.handlers[W].length){if(R.addEventListener){var et=!1;supportsPassive()&&tq.indexOf(W)>-1&&(et={passive:!0}),R.addEventListener(W,J.dispatcher,et)}else R.attachEvent&&R.attachEvent("on"+W,J.dispatcher)}}function off(R,W,G){if(tH.has(R)){var J=tH.get(R);if(J.handlers){if(Array.isArray(W))return _handleMultipleEvents(off,R,W,G);var removeType=function(R,W){J.handlers[W]=[],_cleanUpEvents(R,W)};if(void 0===W){for(var et in J.handlers)Object.prototype.hasOwnProperty.call(J.handlers||{},et)&&removeType(R,et);return}var er=J.handlers[W];if(er){if(!G){removeType(R,W);return}if(G.guid)for(var en=0;en<er.length;en++)er[en].guid===G.guid&&er.splice(en--,1);_cleanUpEvents(R,W)}}}}function trigger(R,W,G){var J=tH.has(R)?tH.get(R):{},et=R.parentNode||R.ownerDocument;if("string"==typeof W?W={type:W,target:R}:W.target||(W.target=R),W=fixEvent(W),J.dispatcher&&J.dispatcher.call(R,W,G),et&&!W.isPropagationStopped()&&!0===W.bubbles)trigger.call(null,et,W,G);else if(!et&&!W.defaultPrevented&&W.target&&W.target[W.type]){tH.has(W.target)||tH.set(W.target,{});var er=tH.get(W.target);W.target[W.type]&&(er.disabled=!0,"function"==typeof W.target[W.type]&&W.target[W.type](),er.disabled=!1)}return!W.defaultPrevented}function one(R,W,G){if(Array.isArray(W))return _handleMultipleEvents(one,R,W,G);var func=function func(){off(R,W,func),G.apply(this,arguments)};func.guid=G.guid=G.guid||tz++,on(R,W,func)}function any(R,W,G){var func=function func(){off(R,W,func),G.apply(this,arguments)};func.guid=G.guid=G.guid||tz++,on(R,W,func)}var tV=Object.freeze({__proto__:null,fixEvent:fixEvent,on:on,off:off,trigger:trigger,one:one,any:any}),bind=function(R,W,G){W.guid||(W.guid=tz++);var J=W.bind(R);return J.guid=G?G+"_"+W.guid:W.guid,J},throttle=function(R,W){var G=em().performance.now();return function(){var J=em().performance.now();J-G>=W&&(R.apply(void 0,arguments),G=J)}},debounce=function(R,W,G,J){void 0===J&&(J=em());var et,debounced=function(){var er=this,en=arguments,_later=function(){et=null,_later=null,G||R.apply(er,en)};!et&&G&&R.apply(er,en),J.clearTimeout(et),et=J.setTimeout(_later,W)};return debounced.cancel=function(){J.clearTimeout(et),et=null},debounced},EventTarget$2=function(){};EventTarget$2.prototype.allowedEvents_={},EventTarget$2.prototype.on=function(R,W){var G=this.addEventListener;this.addEventListener=function(){},on(this,R,W),this.addEventListener=G},EventTarget$2.prototype.addEventListener=EventTarget$2.prototype.on,EventTarget$2.prototype.off=function(R,W){off(this,R,W)},EventTarget$2.prototype.removeEventListener=EventTarget$2.prototype.off,EventTarget$2.prototype.one=function(R,W){var G=this.addEventListener;this.addEventListener=function(){},one(this,R,W),this.addEventListener=G},EventTarget$2.prototype.any=function(R,W){var G=this.addEventListener;this.addEventListener=function(){},any(this,R,W),this.addEventListener=G},EventTarget$2.prototype.trigger=function(R){var W=R.type||R;"string"==typeof R&&(R={type:W}),R=fixEvent(R),this.allowedEvents_[W]&&this["on"+W]&&this["on"+W](R),trigger(this,R)},EventTarget$2.prototype.dispatchEvent=EventTarget$2.prototype.trigger,EventTarget$2.prototype.queueTrigger=function(R){var W=this;ep||(ep=new Map);var G=R.type||R,J=ep.get(this);J||(J=new Map,ep.set(this,J));var et=J.get(G);J.delete(G),em().clearTimeout(et);var er=em().setTimeout(function(){J.delete(G),0===J.size&&(J=null,ep.delete(W)),W.trigger(R)},0);J.set(G,er)};var objName=function(R){return"function"==typeof R.name?R.name():"string"==typeof R.name?R.name:R.name_?R.name_:R.constructor&&R.constructor.name?R.constructor.name:typeof R},isEvented=function(R){return R instanceof EventTarget$2||!!R.eventBusEl_&&["on","one","off","trigger"].every(function(W){return"function"==typeof R[W]})},addEventedCallback=function(R,W){isEvented(R)?W():(R.eventedCallbacks||(R.eventedCallbacks=[]),R.eventedCallbacks.push(W))},isValidEventType=function(R){return"string"==typeof R&&/\S/.test(R)||Array.isArray(R)&&!!R.length},validateTarget=function(R,W,G){if(!R||!R.nodeName&&!isEvented(R))throw Error("Invalid target for "+objName(W)+"#"+G+"; must be a DOM node or evented object.")},validateEventType=function(R,W,G){if(!isValidEventType(R))throw Error("Invalid event type for "+objName(W)+"#"+G+"; must be a non-empty string or array.")},validateListener=function(R,W,G){if("function"!=typeof R)throw Error("Invalid listener for "+objName(W)+"#"+G+"; must be a function.")},normalizeListenArgs=function(R,W,G){var J,et,er,en=W.length<3||W[0]===R||W[0]===R.eventBusEl_;return en?(J=R.eventBusEl_,W.length>=3&&W.shift(),et=W[0],er=W[1]):(J=W[0],et=W[1],er=W[2]),validateTarget(J,R,G),validateEventType(et,R,G),validateListener(er,R,G),{isTargetingSelf:en,target:J,type:et,listener:er=bind(R,er)}},listen=function(R,W,G,J){validateTarget(R,R,W),R.nodeName?tV[W](R,G,J):R[W](G,J)},tW={on:function(){for(var R=this,W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];var et=normalizeListenArgs(this,G,"on"),er=et.isTargetingSelf,en=et.target,ei=et.type,eo=et.listener;if(listen(en,"on",ei,eo),!er){var removeListenerOnDispose=function(){return R.off(en,ei,eo)};removeListenerOnDispose.guid=eo.guid;var removeRemoverOnTargetDispose=function(){return R.off("dispose",removeListenerOnDispose)};removeRemoverOnTargetDispose.guid=eo.guid,listen(this,"on","dispose",removeListenerOnDispose),listen(en,"on","dispose",removeRemoverOnTargetDispose)}},one:function(){for(var R=this,W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];var et=normalizeListenArgs(this,G,"one"),er=et.isTargetingSelf,en=et.target,ei=et.type,eo=et.listener;if(er)listen(en,"one",ei,eo);else{var wrapper=function wrapper(){R.off(en,ei,wrapper);for(var W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];eo.apply(null,G)};wrapper.guid=eo.guid,listen(en,"one",ei,wrapper)}},any:function(){for(var R=this,W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];var et=normalizeListenArgs(this,G,"any"),er=et.isTargetingSelf,en=et.target,ei=et.type,eo=et.listener;if(er)listen(en,"any",ei,eo);else{var wrapper=function wrapper(){R.off(en,ei,wrapper);for(var W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];eo.apply(null,G)};wrapper.guid=eo.guid,listen(en,"any",ei,wrapper)}},off:function(R,W,G){!R||isValidEventType(R)?off(this.eventBusEl_,R,W):(validateTarget(R,this,"off"),validateEventType(W,this,"off"),validateListener(G,this,"off"),G=bind(this,G),this.off("dispose",G),R.nodeName?(off(R,W,G),off(R,"dispose",G)):isEvented(R)&&(R.off(W,G),R.off("dispose",G)))},trigger:function(R,W){if(validateTarget(this.eventBusEl_,this,"trigger"),!isValidEventType(R&&"string"!=typeof R?R.type:R)){var G="Invalid event type for "+objName(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(R)(this.log||th).error(G);else throw Error(G)}return trigger(this.eventBusEl_,R,W)}};function evented(R,W){void 0===W&&(W={});var G=W.eventBusKey;if(G){if(!R[G].nodeName)throw Error('The eventBusKey "'+G+'" does not refer to an element.');R.eventBusEl_=R[G]}else R.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return video_es_assign(R,tW),R.eventedCallbacks&&R.eventedCallbacks.forEach(function(R){R()}),R.on("dispose",function(){R.off(),[R,R.el_,R.eventBusEl_].forEach(function(R){R&&tH.has(R)&&tH.delete(R)}),em().setTimeout(function(){R.eventBusEl_=null},0)}),R}var tG={state:{},setState:function(R){var W,G=this;return"function"==typeof R&&(R=R()),each(R,function(R,J){G.state[J]!==R&&((W=W||{})[J]={from:G.state[J],to:R}),G.state[J]=R}),W&&isEvented(this)&&this.trigger({changes:W,type:"statechanged"}),W}};function stateful(R,W){return video_es_assign(R,tG),R.state=video_es_assign({},R.state,W),"function"==typeof R.handleStateChanged&&isEvented(R)&&R.on("statechanged",R.handleStateChanged),R}var toLowerCase=function(R){return"string"!=typeof R?R:R.replace(/./,function(R){return R.toLowerCase()})},toTitleCase$1=function(R){return"string"!=typeof R?R:R.replace(/./,function(R){return R.toUpperCase()})};function mergeOptions$3(){for(var R={},W=arguments.length,G=Array(W),J=0;J<W;J++)G[J]=arguments[J];return G.forEach(function(W){W&&each(W,function(W,G){if(!isPlain(W)){R[G]=W;return}isPlain(R[G])||(R[G]={}),R[G]=mergeOptions$3(R[G],W)})}),R}var t$=function(){function MapSham(){this.map_={}}var R=MapSham.prototype;return R.has=function(R){return R in this.map_},R.delete=function(R){var W=this.has(R);return delete this.map_[R],W},R.set=function(R,W){return this.map_[R]=W,this},R.forEach=function(R,W){for(var G in this.map_)R.call(W,this.map_[G],G,this)},MapSham}(),tK=em().Map?em().Map:t$,tY=function(){function SetSham(){this.set_={}}var R=SetSham.prototype;return R.has=function(R){return R in this.set_},R.delete=function(R){var W=this.has(R);return delete this.set_[R],W},R.add=function(R){return this.set_[R]=1,this},R.forEach=function(R,W){for(var G in this.set_)R.call(W,G,G,this)},SetSham}(),tX=em().Set?em().Set:tY,tQ=function(){function Component(R,W,G){var J=this;if(!R&&this.play?this.player_=R=this:this.player_=R,this.isDisposed_=!1,this.parentComponent_=null,this.options_=mergeOptions$3({},this.options_),W=this.options_=mergeOptions$3(this.options_,W),this.id_=W.id||W.el&&W.el.id,!this.id_){var et=R&&R.id&&R.id()||"no_player";this.id_=et+"_component_"+tz++}this.name_=W.name||null,W.el?this.el_=W.el:!1!==W.createEl&&(this.el_=this.createEl()),W.className&&this.el_&&W.className.split(" ").forEach(function(R){return J.addClass(R)}),!1!==W.evented&&(evented(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),stateful(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new tX,this.setIntervalIds_=new tX,this.rafIds_=new tX,this.namedRafs_=new tK,this.clearingTimersOnDispose_=!1,!1!==W.initChildren&&this.initChildren(),this.ready(G),!1!==W.reportTouchActivity&&this.enableTouchActivity()}var R=Component.prototype;return R.dispose=function(R){if(void 0===R&&(R={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var W=this.children_.length-1;W>=0;W--)this.children_[W].dispose&&this.children_[W].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(R.restoreEl?this.el_.parentNode.replaceChild(R.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},R.isDisposed=function(){return!!this.isDisposed_},R.player=function(){return this.player_},R.options=function(R){return R&&(this.options_=mergeOptions$3(this.options_,R)),this.options_},R.el=function(){return this.el_},R.createEl=function(R,W,G){return createEl(R,W,G)},R.localize=function(R,W,G){void 0===G&&(G=R);var J=this.player_.language&&this.player_.language(),et=this.player_.languages&&this.player_.languages(),er=et&&et[J],en=J&&J.split("-")[0],ei=et&&et[en],eo=G;return er&&er[R]?eo=er[R]:ei&&ei[R]&&(eo=ei[R]),W&&(eo=eo.replace(/\{(\d+)\}/g,function(R,G){var J=W[G-1],et=J;return void 0===J&&(et=R),et})),eo},R.handleLanguagechange=function(){},R.contentEl=function(){return this.contentEl_||this.el_},R.id=function(){return this.id_},R.name=function(){return this.name_},R.children=function(){return this.children_},R.getChildById=function(R){return this.childIndex_[R]},R.getChild=function(R){if(R)return this.childNameIndex_[R]},R.getDescendant=function(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];W=W.reduce(function(R,W){return R.concat(W)},[]);for(var J=this,et=0;et<W.length;et++)if(!(J=J.getChild(W[et]))||!J.getChild)return;return J},R.addChild=function(R,W,G){if(void 0===W&&(W={}),void 0===G&&(G=this.children_.length),"string"==typeof R){et=toTitleCase$1(R);var J,et,er=W.componentClass||et;W.name=et;var en=Component.getComponent(er);if(!en)throw Error("Component "+er+" does not exist");if("function"!=typeof en)return null;J=new en(this.player_||this,W)}else J=R;if(J.parentComponent_&&J.parentComponent_.removeChild(J),this.children_.splice(G,0,J),J.parentComponent_=this,"function"==typeof J.id&&(this.childIndex_[J.id()]=J),(et=et||J.name&&toTitleCase$1(J.name()))&&(this.childNameIndex_[et]=J,this.childNameIndex_[toLowerCase(et)]=J),"function"==typeof J.el&&J.el()){var ei=null;this.children_[G+1]&&(this.children_[G+1].el_?ei=this.children_[G+1].el_:isEl(this.children_[G+1])&&(ei=this.children_[G+1])),this.contentEl().insertBefore(J.el(),ei)}return J},R.removeChild=function(R){if("string"==typeof R&&(R=this.getChild(R)),R&&this.children_){for(var W=!1,G=this.children_.length-1;G>=0;G--)if(this.children_[G]===R){W=!0,this.children_.splice(G,1);break}if(W){R.parentComponent_=null,this.childIndex_[R.id()]=null,this.childNameIndex_[toTitleCase$1(R.name())]=null,this.childNameIndex_[toLowerCase(R.name())]=null;var J=R.el();J&&J.parentNode===this.contentEl()&&this.contentEl().removeChild(R.el())}}},R.initChildren=function(){var R=this,W=this.options_.children;if(W){var G,J=this.options_,et=Component.getComponent("Tech");(G=Array.isArray(W)?W:Object.keys(W)).concat(Object.keys(this.options_).filter(function(R){return!G.some(function(W){return"string"==typeof W?R===W:R===W.name})})).map(function(G){var J,et;return"string"==typeof G?et=W[J=G]||R.options_[J]||{}:(J=G.name,et=G),{name:J,opts:et}}).filter(function(R){var W=Component.getComponent(R.opts.componentClass||toTitleCase$1(R.name));return W&&!et.isTech(W)}).forEach(function(W){var G=W.name,et=W.opts;if(void 0!==J[G]&&(et=J[G]),!1!==et){!0===et&&(et={}),et.playerOptions=R.options_.playerOptions;var er=R.addChild(G,et);er&&(R[G]=er)}})}},R.buildCSSClass=function(){return""},R.ready=function(R,W){if(void 0===W&&(W=!1),R){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(R);return}W?R.call(this):this.setTimeout(R,1)}},R.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var R=this.readyQueue_;this.readyQueue_=[],R&&R.length>0&&R.forEach(function(R){R.call(this)},this),this.trigger("ready")},1)},R.$=function(R,W){return tB(R,W||this.contentEl())},R.$$=function(R,W){return tZ(R,W||this.contentEl())},R.hasClass=function(R){return hasClass(this.el_,R)},R.addClass=function(R){addClass(this.el_,R)},R.removeClass=function(R){removeClass(this.el_,R)},R.toggleClass=function(R,W){toggleClass(this.el_,R,W)},R.show=function(){this.removeClass("vjs-hidden")},R.hide=function(){this.addClass("vjs-hidden")},R.lockShowing=function(){this.addClass("vjs-lock-showing")},R.unlockShowing=function(){this.removeClass("vjs-lock-showing")},R.getAttribute=function(R){return getAttribute(this.el_,R)},R.setAttribute=function(R,W){setAttribute(this.el_,R,W)},R.removeAttribute=function(R){removeAttribute(this.el_,R)},R.width=function(R,W){return this.dimension("width",R,W)},R.height=function(R,W){return this.dimension("height",R,W)},R.dimensions=function(R,W){this.width(R,!0),this.height(W)},R.dimension=function(R,W,G){if(void 0!==W){(null===W||W!=W)&&(W=0),-1!==(""+W).indexOf("%")||-1!==(""+W).indexOf("px")?this.el_.style[R]=W:"auto"===W?this.el_.style[R]="":this.el_.style[R]=W+"px",G||this.trigger("componentresize");return}if(!this.el_)return 0;var J=this.el_.style[R],et=J.indexOf("px");return -1!==et?parseInt(J.slice(0,et),10):parseInt(this.el_["offset"+toTitleCase$1(R)],10)},R.currentDimension=function(R){var W=0;if("width"!==R&&"height"!==R)throw Error("currentDimension only accepts width or height value");if(0===(W=parseFloat(W=computedStyle(this.el_,R)))||isNaN(W)){var G="offset"+toTitleCase$1(R);W=this.el_[G]}return W},R.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},R.currentWidth=function(){return this.currentDimension("width")},R.currentHeight=function(){return this.currentDimension("height")},R.focus=function(){this.el_.focus()},R.blur=function(){this.el_.blur()},R.handleKeyDown=function(R){this.player_&&(ex().isEventKey(R,"Tab")||R.stopPropagation(),this.player_.handleKeyDown(R))},R.handleKeyPress=function(R){this.handleKeyDown(R)},R.emitTapEvents=function(){var R,W=0,G=null;this.on("touchstart",function(J){1===J.touches.length&&(G={pageX:J.touches[0].pageX,pageY:J.touches[0].pageY},W=em().performance.now(),R=!0)}),this.on("touchmove",function(W){if(W.touches.length>1)R=!1;else if(G){var J=W.touches[0].pageX-G.pageX,et=W.touches[0].pageY-G.pageY;Math.sqrt(J*J+et*et)>10&&(R=!1)}});var noTap=function(){R=!1};this.on("touchleave",noTap),this.on("touchcancel",noTap),this.on("touchend",function(J){G=null,!0===R&&em().performance.now()-W<200&&(J.preventDefault(),this.trigger("tap"))})},R.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var R,W=bind(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){W(),this.clearInterval(R),R=this.setInterval(W,250)});var touchEnd=function(G){W(),this.clearInterval(R)};this.on("touchmove",W),this.on("touchend",touchEnd),this.on("touchcancel",touchEnd)}},R.setTimeout=function(R,W){var G,J=this;return R=bind(this,R),this.clearTimersOnDispose_(),G=em().setTimeout(function(){J.setTimeoutIds_.has(G)&&J.setTimeoutIds_.delete(G),R()},W),this.setTimeoutIds_.add(G),G},R.clearTimeout=function(R){return this.setTimeoutIds_.has(R)&&(this.setTimeoutIds_.delete(R),em().clearTimeout(R)),R},R.setInterval=function(R,W){R=bind(this,R),this.clearTimersOnDispose_();var G=em().setInterval(R,W);return this.setIntervalIds_.add(G),G},R.clearInterval=function(R){return this.setIntervalIds_.has(R)&&(this.setIntervalIds_.delete(R),em().clearInterval(R)),R},R.requestAnimationFrame=function(R){var W,G=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),R=bind(this,R),W=em().requestAnimationFrame(function(){G.rafIds_.has(W)&&G.rafIds_.delete(W),R()}),this.rafIds_.add(W),W):this.setTimeout(R,1e3/60)},R.requestNamedAnimationFrame=function(R,W){var G=this;if(!this.namedRafs_.has(R)){this.clearTimersOnDispose_(),W=bind(this,W);var J=this.requestAnimationFrame(function(){W(),G.namedRafs_.has(R)&&G.namedRafs_.delete(R)});return this.namedRafs_.set(R,J),R}},R.cancelNamedAnimationFrame=function(R){this.namedRafs_.has(R)&&(this.cancelAnimationFrame(this.namedRafs_.get(R)),this.namedRafs_.delete(R))},R.cancelAnimationFrame=function(R){return this.supportsRaf_?(this.rafIds_.has(R)&&(this.rafIds_.delete(R),em().cancelAnimationFrame(R)),R):this.clearTimeout(R)},R.clearTimersOnDispose_=function(){var R=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(W){var G=W[0],J=W[1];R[G].forEach(function(W,G){return R[J](G)})}),R.clearingTimersOnDispose_=!1}))},Component.registerComponent=function(R,W){if("string"!=typeof R||!R)throw Error('Illegal component name, "'+R+'"; must be a non-empty string.');var G=Component.getComponent("Tech"),J=G&&G.isTech(W),et=Component===W||Component.prototype.isPrototypeOf(W.prototype);if(J||!et)throw Error('Illegal component, "'+R+'"; '+(J?"techs must be registered using Tech.registerTech()":"must be a Component subclass")+".");R=toTitleCase$1(R),Component.components_||(Component.components_={});var er=Component.getComponent("Player");if("Player"===R&&er&&er.players){var en=er.players,ei=Object.keys(en);if(en&&ei.length>0&&ei.map(function(R){return en[R]}).every(Boolean))throw Error("Can not register Player component after player has been created.")}return Component.components_[R]=W,Component.components_[toLowerCase(R)]=W,W},Component.getComponent=function(R){if(R&&Component.components_)return Component.components_[R]},Component}();function getRange(R,W,G,J){return!function(R,W,G){if("number"!=typeof W||W<0||W>G)throw Error("Failed to execute '"+R+"' on 'TimeRanges': The index provided ("+W+") is non-numeric or out of bounds (0-"+G+").")}(R,J,G.length-1),G[J][W]}function createTimeRangesObj(R){var W;return W=void 0===R||0===R.length?{length:0,start:function(){throw Error("This TimeRanges object is empty")},end:function(){throw Error("This TimeRanges object is empty")}}:{length:R.length,start:getRange.bind(null,"start",0,R),end:getRange.bind(null,"end",1,R)},em().Symbol&&em().Symbol.iterator&&(W[em().Symbol.iterator]=function(){return(R||[]).values()}),W}function createTimeRanges(R,W){return Array.isArray(R)?createTimeRangesObj(R):void 0===R||void 0===W?createTimeRangesObj():createTimeRangesObj([[R,W]])}function bufferedPercent(R,W){var G,J,et=0;if(!W)return 0;R&&R.length||(R=createTimeRanges(0,0));for(var er=0;er<R.length;er++)G=R.start(er),(J=R.end(er))>W&&(J=W),et+=J-G;return et/W}function MediaError(R){if(R instanceof MediaError)return R;"number"==typeof R?this.code=R:"string"==typeof R?this.message=R:video_es_isObject(R)&&("number"==typeof R.code&&(this.code=R.code),video_es_assign(this,R)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}tQ.prototype.supportsRaf_="function"==typeof em().requestAnimationFrame&&"function"==typeof em().cancelAnimationFrame,tQ.registerComponent("Component",tQ),MediaError.prototype.code=0,MediaError.prototype.message="",MediaError.prototype.status=null,MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],MediaError.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var tJ=0;tJ<MediaError.errorTypes.length;tJ++)MediaError[MediaError.errorTypes[tJ]]=tJ,MediaError.prototype[MediaError.errorTypes[tJ]]=tJ;function isPromise(R){return null!=R&&"function"==typeof R.then}function silencePromise(R){isPromise(R)&&R.then(null,function(R){})}var trackToJson_=function(R){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(W,G,J){return R[G]&&(W[G]=R[G]),W},{cues:R.cues&&Array.prototype.map.call(R.cues,function(R){return{startTime:R.startTime,endTime:R.endTime,text:R.text,id:R.id}})})},t0={textTracksToJson:function(R){var W=R.$$("track"),G=Array.prototype.map.call(W,function(R){return R.track});return Array.prototype.map.call(W,function(R){var W=trackToJson_(R.track);return R.src&&(W.src=R.src),W}).concat(Array.prototype.filter.call(R.textTracks(),function(R){return -1===G.indexOf(R)}).map(trackToJson_))},jsonToTextTracks:function(R,W){return R.forEach(function(R){var G=W.addRemoteTextTrack(R).track;!R.src&&R.cues&&R.cues.forEach(function(R){return G.addCue(R)})}),W.textTracks()},trackToJson_:trackToJson_},t1="vjs-modal-dialog",t2=function(R){function ModalDialog(W,G){var J;return(J=R.call(this,W,G)||this).handleKeyDown_=function(R){return J.handleKeyDown(R)},J.close_=function(R){return J.close(R)},J.opened_=J.hasBeenOpened_=J.hasBeenFilled_=!1,J.closeable(!J.options_.uncloseable),J.content(J.options_.content),J.contentEl_=createEl("div",{className:t1+"-content"},{role:"document"}),J.descEl_=createEl("p",{className:t1+"-description vjs-control-text",id:J.el().getAttribute("aria-describedby")}),textContent(J.descEl_,J.description()),J.el_.appendChild(J.descEl_),J.el_.appendChild(J.contentEl_),J}(0,eS.Z)(ModalDialog,R);var W=ModalDialog.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},W.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,R.prototype.dispose.call(this)},W.buildCSSClass=function(){return t1+" vjs-hidden "+R.prototype.buildCSSClass.call(this)},W.label=function(){return this.localize(this.options_.label||"Modal Window")},W.description=function(){var R=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(R+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),R},W.open=function(){if(!this.opened_){var R=this.player();this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!R.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&R.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=R.controls(),R.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},W.opened=function(R){return"boolean"==typeof R&&this[R?"open":"close"](),this.opened_},W.close=function(){if(this.opened_){var R=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&R.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&R.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},W.closeable=function(R){if("boolean"==typeof R){var W=this.closeable_=!!R,G=this.getChild("closeButton");if(W&&!G){var J=this.contentEl_;this.contentEl_=this.el_,G=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=J,this.on(G,"close",this.close_)}!W&&G&&(this.off(G,"close",this.close_),this.removeChild(G),G.dispose())}return this.closeable_},W.fill=function(){this.fillWith(this.content())},W.fillWith=function(R){var W=this.contentEl(),G=W.parentNode,J=W.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,G.removeChild(W),this.empty(),insertContent(W,R),this.trigger("modalfill"),J?G.insertBefore(W,J):G.appendChild(W);var et=this.getChild("closeButton");et&&G.appendChild(et.el_)},W.empty=function(){this.trigger("beforemodalempty"),emptyEl(this.contentEl()),this.trigger("modalempty")},W.content=function(R){return void 0!==R&&(this.content_=R),this.content_},W.conditionalFocus_=function(){var R=ev().activeElement,W=this.player_.el_;this.previouslyActiveEl_=null,(W.contains(R)||W===R)&&(this.previouslyActiveEl_=R,this.focus())},W.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},W.handleKeyDown=function(R){if(R.stopPropagation(),ex().isEventKey(R,"Escape")&&this.closeable()){R.preventDefault(),this.close();return}if(ex().isEventKey(R,"Tab")){for(var W,G=this.focusableEls_(),J=this.el_.querySelector(":focus"),et=0;et<G.length;et++)if(J===G[et]){W=et;break}ev().activeElement===this.el_&&(W=0),R.shiftKey&&0===W?(G[G.length-1].focus(),R.preventDefault()):R.shiftKey||W!==G.length-1||(G[0].focus(),R.preventDefault())}},W.focusableEls_=function(){var R=this.el_.querySelectorAll("*");return Array.prototype.filter.call(R,function(R){return(R instanceof em().HTMLAnchorElement||R instanceof em().HTMLAreaElement)&&R.hasAttribute("href")||(R instanceof em().HTMLInputElement||R instanceof em().HTMLSelectElement||R instanceof em().HTMLTextAreaElement||R instanceof em().HTMLButtonElement)&&!R.hasAttribute("disabled")||R instanceof em().HTMLIFrameElement||R instanceof em().HTMLObjectElement||R instanceof em().HTMLEmbedElement||R.hasAttribute("tabindex")&&-1!==R.getAttribute("tabindex")||R.hasAttribute("contenteditable")})},ModalDialog}(tQ);t2.prototype.options_={pauseOnOpen:!0,temporary:!0},tQ.registerComponent("ModalDialog",t2);var t3=function(R){function TrackList(W){var G;void 0===W&&(W=[]),(G=R.call(this)||this).tracks_=[],Object.defineProperty((0,ew.Z)(G),"length",{get:function(){return this.tracks_.length}});for(var J=0;J<W.length;J++)G.addTrack(W[J]);return G}(0,eS.Z)(TrackList,R);var W=TrackList.prototype;return W.addTrack=function(R){var W=this,G=this.tracks_.length;""+G in this||Object.defineProperty(this,G,{get:function(){return this.tracks_[G]}}),-1===this.tracks_.indexOf(R)&&(this.tracks_.push(R),this.trigger({track:R,type:"addtrack",target:this})),R.labelchange_=function(){W.trigger({track:R,type:"labelchange",target:W})},isEvented(R)&&R.addEventListener("labelchange",R.labelchange_)},W.removeTrack=function(R){for(var W,G=0,J=this.length;G<J;G++)if(this[G]===R){(W=this[G]).off&&W.off(),this.tracks_.splice(G,1);break}W&&this.trigger({track:W,type:"removetrack",target:this})},W.getTrackById=function(R){for(var W=null,G=0,J=this.length;G<J;G++){var et=this[G];if(et.id===R){W=et;break}}return W},TrackList}(EventTarget$2);for(var t5 in t3.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},t3.prototype.allowedEvents_)t3.prototype["on"+t5]=null;var disableOthers$1=function(R,W){for(var G=0;G<R.length;G++)Object.keys(R[G]).length&&W.id!==R[G].id&&(R[G].enabled=!1)},t4=function(R){function AudioTrackList(W){var G;void 0===W&&(W=[]);for(var J=W.length-1;J>=0;J--)if(W[J].enabled){disableOthers$1(W,W[J]);break}return(G=R.call(this,W)||this).changing_=!1,G}(0,eS.Z)(AudioTrackList,R);var W=AudioTrackList.prototype;return W.addTrack=function(W){var G=this;W.enabled&&disableOthers$1(this,W),R.prototype.addTrack.call(this,W),W.addEventListener&&(W.enabledChange_=function(){G.changing_||(G.changing_=!0,disableOthers$1(G,W),G.changing_=!1,G.trigger("change"))},W.addEventListener("enabledchange",W.enabledChange_))},W.removeTrack=function(W){R.prototype.removeTrack.call(this,W),W.removeEventListener&&W.enabledChange_&&(W.removeEventListener("enabledchange",W.enabledChange_),W.enabledChange_=null)},AudioTrackList}(t3),disableOthers=function(R,W){for(var G=0;G<R.length;G++)Object.keys(R[G]).length&&W.id!==R[G].id&&(R[G].selected=!1)},t8=function(R){function VideoTrackList(W){var G;void 0===W&&(W=[]);for(var J=W.length-1;J>=0;J--)if(W[J].selected){disableOthers(W,W[J]);break}return(G=R.call(this,W)||this).changing_=!1,Object.defineProperty((0,ew.Z)(G),"selectedIndex",{get:function(){for(var R=0;R<this.length;R++)if(this[R].selected)return R;return -1},set:function(){}}),G}(0,eS.Z)(VideoTrackList,R);var W=VideoTrackList.prototype;return W.addTrack=function(W){var G=this;W.selected&&disableOthers(this,W),R.prototype.addTrack.call(this,W),W.addEventListener&&(W.selectedChange_=function(){G.changing_||(G.changing_=!0,disableOthers(G,W),G.changing_=!1,G.trigger("change"))},W.addEventListener("selectedchange",W.selectedChange_))},W.removeTrack=function(W){R.prototype.removeTrack.call(this,W),W.removeEventListener&&W.selectedChange_&&(W.removeEventListener("selectedchange",W.selectedChange_),W.selectedChange_=null)},VideoTrackList}(t3),t6=function(R){function TextTrackList(){return R.apply(this,arguments)||this}(0,eS.Z)(TextTrackList,R);var W=TextTrackList.prototype;return W.addTrack=function(W){var G=this;R.prototype.addTrack.call(this,W),this.queueChange_||(this.queueChange_=function(){return G.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return G.trigger("selectedlanguagechange")}),W.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(W.kind)&&W.addEventListener("modechange",this.triggerSelectedlanguagechange_)},W.removeTrack=function(W){R.prototype.removeTrack.call(this,W),W.removeEventListener&&(this.queueChange_&&W.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&W.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},TextTrackList}(t3),t7=function(){function HtmlTrackElementList(R){void 0===R&&(R=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var W=0,G=R.length;W<G;W++)this.addTrackElement_(R[W])}var R=HtmlTrackElementList.prototype;return R.addTrackElement_=function(R){var W=this.trackElements_.length;""+W in this||Object.defineProperty(this,W,{get:function(){return this.trackElements_[W]}}),-1===this.trackElements_.indexOf(R)&&this.trackElements_.push(R)},R.getTrackElementByTrack_=function(R){for(var W,G=0,J=this.trackElements_.length;G<J;G++)if(R===this.trackElements_[G].track){W=this.trackElements_[G];break}return W},R.removeTrackElement_=function(R){for(var W=0,G=this.trackElements_.length;W<G;W++)if(R===this.trackElements_[W]){this.trackElements_[W].track&&"function"==typeof this.trackElements_[W].track.off&&this.trackElements_[W].track.off(),"function"==typeof this.trackElements_[W].off&&this.trackElements_[W].off(),this.trackElements_.splice(W,1);break}},HtmlTrackElementList}(),t9=function(){function TextTrackCueList(R){TextTrackCueList.prototype.setCues_.call(this,R),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var R=TextTrackCueList.prototype;return R.setCues_=function(R){var W=this.length||0,G=0,J=R.length;this.cues_=R,this.length_=R.length;var defineProp=function(R){""+R in this||Object.defineProperty(this,""+R,{get:function(){return this.cues_[R]}})};if(W<J)for(G=W;G<J;G++)defineProp.call(this,G)},R.getCueById=function(R){for(var W=null,G=0,J=this.length;G<J;G++){var et=this[G];if(et.id===R){W=et;break}}return W},TextTrackCueList}(),re={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},rt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},rr={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},rn={disabled:"disabled",hidden:"hidden",showing:"showing"},ri=function(R){function Track(W){void 0===W&&(W={}),G=R.call(this)||this;var G,J={id:W.id||"vjs_track_"+tz++,kind:W.kind||"",language:W.language||""},et=W.label||"",_loop=function(R){Object.defineProperty((0,ew.Z)(G),R,{get:function(){return J[R]},set:function(){}})};for(var er in J)_loop(er);return Object.defineProperty((0,ew.Z)(G),"label",{get:function(){return et},set:function(R){R!==et&&(et=R,this.trigger("labelchange"))}}),G}return(0,eS.Z)(Track,R),Track}(EventTarget$2),parseUrl=function(R){var W=["protocol","hostname","port","pathname","search","hash","host"],G=ev().createElement("a");G.href=R;for(var J={},et=0;et<W.length;et++)J[W[et]]=G[W[et]];return"http:"===J.protocol&&(J.host=J.host.replace(/:80$/,"")),"https:"===J.protocol&&(J.host=J.host.replace(/:443$/,"")),J.protocol||(J.protocol=em().location.protocol),J.host||(J.host=em().location.host),J},getAbsoluteURL=function(R){if(!R.match(/^https?:\/\//)){var W=ev().createElement("a");W.href=R,R=W.href}return R},getFileExtension=function(R){if("string"==typeof R){var W=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(R);if(W)return W.pop().toLowerCase()}return""},isCrossOrigin=function(R,W){void 0===W&&(W=em().location);var G=parseUrl(R);return(":"===G.protocol?W.protocol:G.protocol)+G.host!==W.protocol+W.host},ro=Object.freeze({__proto__:null,parseUrl:parseUrl,getAbsoluteURL:getAbsoluteURL,getFileExtension:getFileExtension,isCrossOrigin:isCrossOrigin}),parseCues=function(R,W){var G=new(em()).WebVTT.Parser(em(),em().vttjs,em().WebVTT.StringDecoder()),J=[];G.oncue=function(R){W.addCue(R)},G.onparsingerror=function(R){J.push(R)},G.onflush=function(){W.trigger({type:"loadeddata",target:W})},G.parse(R),J.length>0&&(em().console&&em().console.groupCollapsed&&em().console.groupCollapsed("Text Track parsing errors for "+W.src),J.forEach(function(R){return th.error(R)}),em().console&&em().console.groupEnd&&em().console.groupEnd()),G.flush()},loadTrack=function(R,W){var G={uri:R},J=isCrossOrigin(R);J&&(G.cors=J);var et="use-credentials"===W.tech_.crossOrigin();et&&(G.withCredentials=et),eC()(G,bind(this,function(R,G,J){if(R)return th.error(R,G);W.loaded_=!0,"function"!=typeof em().WebVTT?W.tech_&&W.tech_.any(["vttjsloaded","vttjserror"],function(R){if("vttjserror"===R.type){th.error("vttjs failed to load, stopping trying to process "+W.src);return}return parseCues(J,W)}):parseCues(J,W)}))},ra=function(R){function TextTrack(W){if(void 0===W&&(W={}),!W.tech)throw Error("A tech was not provided.");var G,J=mergeOptions$3(W,{kind:rr[W.kind]||"subtitles",language:W.language||W.srclang||""}),et=rn[J.mode]||"disabled",er=J.default;("metadata"===J.kind||"chapters"===J.kind)&&(et="hidden"),(G=R.call(this,J)||this).tech_=J.tech,G.cues_=[],G.activeCues_=[],G.preload_=!1!==G.tech_.preloadTextTracks;var en=new t9(G.cues_),ei=new t9(G.activeCues_),eo=!1;return G.timeupdateHandler=bind((0,ew.Z)(G),function(R){if(void 0===R&&(R={}),!this.tech_.isDisposed()){if(!this.tech_.isReady_){"timeupdate"!==R.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,eo&&(this.trigger("cuechange"),eo=!1),"timeupdate"!==R.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}),G.tech_.one("dispose",function(){G.stopTracking()}),"disabled"!==et&&G.startTracking(),Object.defineProperties((0,ew.Z)(G),{default:{get:function(){return er},set:function(){}},mode:{get:function(){return et},set:function(R){rn[R]&&et!==R&&(et=R,this.preload_||"disabled"===et||0!==this.cues.length||loadTrack(this.src,this),this.stopTracking(),"disabled"!==et&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?en:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return ei;for(var R=this.tech_.currentTime(),W=[],G=0,J=this.cues.length;G<J;G++){var et=this.cues[G];et.startTime<=R&&et.endTime>=R?W.push(et):et.startTime===et.endTime&&et.startTime<=R&&et.startTime+.5>=R&&W.push(et)}if(eo=!1,W.length!==this.activeCues_.length)eo=!0;else for(var er=0;er<W.length;er++)-1===this.activeCues_.indexOf(W[er])&&(eo=!0);return this.activeCues_=W,ei.setCues_(this.activeCues_),ei},set:function(){}}}),J.src?(G.src=J.src,G.preload_||(G.loaded_=!0),(G.preload_||"subtitles"!==J.kind&&"captions"!==J.kind)&&loadTrack(G.src,(0,ew.Z)(G))):G.loaded_=!0,G}(0,eS.Z)(TextTrack,R);var W=TextTrack.prototype;return W.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},W.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},W.addCue=function(R){var W=R;if(W.constructor&&"VTTCue"!==W.constructor.name){for(var G in W=new(em()).vttjs.VTTCue(R.startTime,R.endTime,R.text),R)G in W||(W[G]=R[G]);W.id=R.id,W.originalCue_=R}for(var J=this.tech_.textTracks(),et=0;et<J.length;et++)J[et]!==this&&J[et].removeCue(W);this.cues_.push(W),this.cues.setCues_(this.cues_)},W.removeCue=function(R){for(var W=this.cues_.length;W--;){var G=this.cues_[W];if(G===R||G.originalCue_&&G.originalCue_===R){this.cues_.splice(W,1),this.cues.setCues_(this.cues_);break}}},TextTrack}(ri);ra.prototype.allowedEvents_={cuechange:"cuechange"};var rs=function(R){function AudioTrack(W){void 0===W&&(W={});var G,J=mergeOptions$3(W,{kind:rt[W.kind]||""});G=R.call(this,J)||this;var et=!1;return Object.defineProperty((0,ew.Z)(G),"enabled",{get:function(){return et},set:function(R){"boolean"==typeof R&&R!==et&&(et=R,this.trigger("enabledchange"))}}),J.enabled&&(G.enabled=J.enabled),G.loaded_=!0,G}return(0,eS.Z)(AudioTrack,R),AudioTrack}(ri),rc=function(R){function VideoTrack(W){void 0===W&&(W={});var G,J=mergeOptions$3(W,{kind:re[W.kind]||""});G=R.call(this,J)||this;var et=!1;return Object.defineProperty((0,ew.Z)(G),"selected",{get:function(){return et},set:function(R){"boolean"==typeof R&&R!==et&&(et=R,this.trigger("selectedchange"))}}),J.selected&&(G.selected=J.selected),G}return(0,eS.Z)(VideoTrack,R),VideoTrack}(ri),rl=function(R){function HTMLTrackElement(W){void 0===W&&(W={}),G=R.call(this)||this;var G,J,et=new ra(W);return G.kind=et.kind,G.src=et.src,G.srclang=et.language,G.label=et.label,G.default=et.default,Object.defineProperties((0,ew.Z)(G),{readyState:{get:function(){return J}},track:{get:function(){return et}}}),J=0,et.addEventListener("loadeddata",function(){J=2,G.trigger({type:"load",target:(0,ew.Z)(G)})}),G}return(0,eS.Z)(HTMLTrackElement,R),HTMLTrackElement}(EventTarget$2);rl.prototype.allowedEvents_={load:"load"},rl.NONE=0,rl.LOADING=1,rl.LOADED=2,rl.ERROR=3;var ru={audio:{ListClass:t4,TrackClass:rs,capitalName:"Audio"},video:{ListClass:t8,TrackClass:rc,capitalName:"Video"},text:{ListClass:t6,TrackClass:ra,capitalName:"Text"}};Object.keys(ru).forEach(function(R){ru[R].getterName=R+"Tracks",ru[R].privateName=R+"Tracks_"});var rd={remoteText:{ListClass:t6,TrackClass:ra,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:t7,TrackClass:rl,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},rp=(0,eb.Z)({},ru,rd);rd.names=Object.keys(rd),ru.names=Object.keys(ru),rp.names=[].concat(rd.names).concat(ru.names);var rf=function(R){function Tech(W,G){var J;return void 0===W&&(W={}),void 0===G&&(G=function(){}),W.reportTouchActivity=!1,(J=R.call(this,null,W,G)||this).onDurationChange_=function(R){return J.onDurationChange(R)},J.trackProgress_=function(R){return J.trackProgress(R)},J.trackCurrentTime_=function(R){return J.trackCurrentTime(R)},J.stopTrackingCurrentTime_=function(R){return J.stopTrackingCurrentTime(R)},J.disposeSourceHandler_=function(R){return J.disposeSourceHandler(R)},J.queuedHanders_=new Set,J.hasStarted_=!1,J.on("playing",function(){this.hasStarted_=!0}),J.on("loadstart",function(){this.hasStarted_=!1}),rp.names.forEach(function(R){var G=rp[R];W&&W[G.getterName]&&(J[G.privateName]=W[G.getterName])}),J.featuresProgressEvents||J.manualProgressOn(),J.featuresTimeupdateEvents||J.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(R){!1===W["native"+R+"Tracks"]&&(J["featuresNative"+R+"Tracks"]=!1)}),!1===W.nativeCaptions||!1===W.nativeTextTracks?J.featuresNativeTextTracks=!1:(!0===W.nativeCaptions||!0===W.nativeTextTracks)&&(J.featuresNativeTextTracks=!0),J.featuresNativeTextTracks||J.emulateTextTracks(),J.preloadTextTracks=!1!==W.preloadTextTracks,J.autoRemoteTextTracks_=new rp.text.ListClass,J.initTrackListeners(),W.nativeControlsForTouch||J.emitTapEvents(),J.constructor&&(J.name_=J.constructor.name||"Unknown Tech"),J}(0,eS.Z)(Tech,R);var W=Tech.prototype;return W.triggerSourceset=function(R){var W=this;this.isReady_||this.one("ready",function(){return W.setTimeout(function(){return W.triggerSourceset(R)},1)}),this.trigger({src:R,type:"sourceset"})},W.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},W.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},W.trackProgress=function(R){this.stopTrackingProgress(),this.progressInterval=this.setInterval(bind(this,function(){var R=this.bufferedPercent();this.bufferedPercent_!==R&&this.trigger("progress"),this.bufferedPercent_=R,1===R&&this.stopTrackingProgress()}),500)},W.onDurationChange=function(R){this.duration_=this.duration()},W.buffered=function(){return createTimeRanges(0,0)},W.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration_)},W.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},W.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},W.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},W.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},W.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},W.dispose=function(){this.clearTracks(ru.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),R.prototype.dispose.call(this)},W.clearTracks=function(R){var W=this;(R=[].concat(R)).forEach(function(R){for(var G=W[R+"Tracks"]()||[],J=G.length;J--;){var et=G[J];"text"===R&&W.removeRemoteTextTrack(et),G.removeTrack(et)}})},W.cleanupAutoTextTracks=function(){for(var R=this.autoRemoteTextTracks_||[],W=R.length;W--;){var G=R[W];this.removeRemoteTextTrack(G)}},W.reset=function(){},W.crossOrigin=function(){},W.setCrossOrigin=function(){},W.error=function(R){return void 0!==R&&(this.error_=new MediaError(R),this.trigger("error")),this.error_},W.played=function(){return this.hasStarted_?createTimeRanges(0,0):createTimeRanges()},W.play=function(){},W.setScrubbing=function(){},W.scrubbing=function(){},W.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},W.initTrackListeners=function(){var R=this;ru.names.forEach(function(W){var G=ru[W],trackListChanges=function(){R.trigger(W+"trackchange")},J=R[G.getterName]();J.addEventListener("removetrack",trackListChanges),J.addEventListener("addtrack",trackListChanges),R.on("dispose",function(){J.removeEventListener("removetrack",trackListChanges),J.removeEventListener("addtrack",trackListChanges)})})},W.addWebVttScript_=function(){var R=this;if(!em().WebVTT){if(ev().body.contains(this.el())){if(!this.options_["vtt.js"]&&isPlain(eE())&&Object.keys(eE()).length>0){this.trigger("vttjsloaded");return}var W=ev().createElement("script");W.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",W.onload=function(){R.trigger("vttjsloaded")},W.onerror=function(){R.trigger("vttjserror")},this.on("dispose",function(){W.onload=null,W.onerror=null}),em().WebVTT=!0,this.el().parentNode.appendChild(W)}else this.ready(this.addWebVttScript_)}},W.emulateTextTracks=function(){var R=this,W=this.textTracks(),G=this.remoteTextTracks(),handleAddTrack=function(R){return W.addTrack(R.track)},handleRemoveTrack=function(R){return W.removeTrack(R.track)};G.on("addtrack",handleAddTrack),G.on("removetrack",handleRemoveTrack),this.addWebVttScript_();var updateDisplay=function(){return R.trigger("texttrackchange")},textTracksChanges=function(){updateDisplay();for(var R=0;R<W.length;R++){var G=W[R];G.removeEventListener("cuechange",updateDisplay),"showing"===G.mode&&G.addEventListener("cuechange",updateDisplay)}};textTracksChanges(),W.addEventListener("change",textTracksChanges),W.addEventListener("addtrack",textTracksChanges),W.addEventListener("removetrack",textTracksChanges),this.on("dispose",function(){G.off("addtrack",handleAddTrack),G.off("removetrack",handleRemoveTrack),W.removeEventListener("change",textTracksChanges),W.removeEventListener("addtrack",textTracksChanges),W.removeEventListener("removetrack",textTracksChanges);for(var R=0;R<W.length;R++)W[R].removeEventListener("cuechange",updateDisplay)})},W.addTextTrack=function(R,W,G){var J,et,er;if(!R)throw Error("TextTrack kind is required but was not provided");return void 0===J&&(J={}),et=this.textTracks(),J.kind=R,W&&(J.label=W),G&&(J.language=G),J.tech=this,er=new rp.text.TrackClass(J),et.addTrack(er),er},W.createRemoteTextTrack=function(R){var W=mergeOptions$3(R,{tech:this});return new rd.remoteTextEl.TrackClass(W)},W.addRemoteTextTrack=function(R,W){var G=this;void 0===R&&(R={});var J=this.createRemoteTextTrack(R);return!0!==W&&!1!==W&&(th.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),W=!0),this.remoteTextTrackEls().addTrackElement_(J),this.remoteTextTracks().addTrack(J.track),!0!==W&&this.ready(function(){return G.autoRemoteTextTracks_.addTrack(J.track)}),J},W.removeRemoteTextTrack=function(R){var W=this.remoteTextTrackEls().getTrackElementByTrack_(R);this.remoteTextTrackEls().removeTrackElement_(W),this.remoteTextTracks().removeTrack(R),this.autoRemoteTextTracks_.removeTrack(R)},W.getVideoPlaybackQuality=function(){return{}},W.requestPictureInPicture=function(){var R=this.options_.Promise||em().Promise;if(R)return R.reject()},W.disablePictureInPicture=function(){return!0},W.setDisablePictureInPicture=function(){},W.requestVideoFrameCallback=function(R){var W=this,G=tz++;return!this.isReady_||this.paused()?(this.queuedHanders_.add(G),this.one("playing",function(){W.queuedHanders_.has(G)&&(W.queuedHanders_.delete(G),R())})):this.requestNamedAnimationFrame(G,R),G},W.cancelVideoFrameCallback=function(R){this.queuedHanders_.has(R)?this.queuedHanders_.delete(R):this.cancelNamedAnimationFrame(R)},W.setPoster=function(){},W.playsinline=function(){},W.setPlaysinline=function(){},W.overrideNativeAudioTracks=function(){},W.overrideNativeVideoTracks=function(){},W.canPlayType=function(){return""},Tech.canPlayType=function(){return""},Tech.canPlaySource=function(R,W){return Tech.canPlayType(R.type)},Tech.isTech=function(R){return R.prototype instanceof Tech||R instanceof Tech||R===Tech},Tech.registerTech=function(R,W){if(Tech.techs_||(Tech.techs_={}),!Tech.isTech(W))throw Error("Tech "+R+" must be a Tech");if(!Tech.canPlayType)throw Error("Techs must have a static canPlayType method on them");if(!Tech.canPlaySource)throw Error("Techs must have a static canPlaySource method on them");return R=toTitleCase$1(R),Tech.techs_[R]=W,Tech.techs_[toLowerCase(R)]=W,"Tech"!==R&&Tech.defaultTechOrder_.push(R),W},Tech.getTech=function(R){return R?Tech.techs_&&Tech.techs_[R]?Tech.techs_[R]:(R=toTitleCase$1(R),em()&&em().videojs&&em().videojs[R])?(th.warn("The "+R+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),em().videojs[R]):void 0:void 0},Tech}(tQ);rp.names.forEach(function(R){var W=rp[R];rf.prototype[W.getterName]=function(){return this[W.privateName]=this[W.privateName]||new W.ListClass,this[W.privateName]}}),rf.prototype.featuresVolumeControl=!0,rf.prototype.featuresMuteControl=!0,rf.prototype.featuresFullscreenResize=!1,rf.prototype.featuresPlaybackRate=!1,rf.prototype.featuresProgressEvents=!1,rf.prototype.featuresSourceset=!1,rf.prototype.featuresTimeupdateEvents=!1,rf.prototype.featuresNativeTextTracks=!1,rf.prototype.featuresVideoFrameCallback=!1,rf.withSourceHandlers=function(R){R.registerSourceHandler=function(W,G){var J=R.sourceHandlers;J||(J=R.sourceHandlers=[]),void 0===G&&(G=J.length),J.splice(G,0,W)},R.canPlayType=function(W){for(var G,J=R.sourceHandlers||[],et=0;et<J.length;et++)if(G=J[et].canPlayType(W))return G;return""},R.selectSourceHandler=function(W,G){for(var J=R.sourceHandlers||[],et=0;et<J.length;et++)if(J[et].canHandleSource(W,G))return J[et];return null},R.canPlaySource=function(W,G){var J=R.selectSourceHandler(W,G);return J?J.canHandleSource(W,G):""},["seekable","seeking","duration"].forEach(function(R){var W=this[R];"function"==typeof W&&(this[R]=function(){return this.sourceHandler_&&this.sourceHandler_[R]?this.sourceHandler_[R].apply(this.sourceHandler_,arguments):W.apply(this,arguments)})},R.prototype),R.prototype.setSource=function(W){var G=R.selectSourceHandler(W,this.options_);G||(R.nativeSourceHandler?G=R.nativeSourceHandler:th.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),G!==R.nativeSourceHandler&&(this.currentSource_=W),this.sourceHandler_=G.handleSource(W,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},R.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},tQ.registerComponent("Tech",rf),rf.registerTech("Tech",rf),rf.defaultTechOrder_=[];var rh={},rg={},rm={};function mediate(R,W,G,J){void 0===J&&(J=null);var et="call"+toTitleCase$1(G),er=R.reduce(middlewareIterator(et),J),en=er===rm,ei=en?null:W[G](er);return function(R,W,G,J){for(var et=R.length-1;et>=0;et--){var er=R[et];er[W]&&er[W](J,G)}}(R,G,ei,en),ei}var ry={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},rv={setCurrentTime:1,setMuted:1,setVolume:1},rb={play:1,pause:1};function middlewareIterator(R){return function(W,G){return W===rm?rm:G[R]?G[R](W):W}}var r_={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},getMimetype=function(R){return void 0===R&&(R=""),r_[getFileExtension(R).toLowerCase()]||""},findMimetype=function(R,W){if(!W)return"";if(R.cache_.source.src===W&&R.cache_.source.type)return R.cache_.source.type;var G=R.cache_.sources.filter(function(R){return R.src===W});if(G.length)return G[0].type;for(var J=R.$$("source"),et=0;et<J.length;et++){var er=J[et];if(er.type&&er.src&&er.src===W)return er.type}return getMimetype(W)},filterSource=function filterSource(R){if(Array.isArray(R)){var W=[];R.forEach(function(R){Array.isArray(R=filterSource(R))?W=W.concat(R):video_es_isObject(R)&&W.push(R)}),R=W}else R="string"==typeof R&&R.trim()?[fixSource({src:R})]:video_es_isObject(R)&&"string"==typeof R.src&&R.src&&R.src.trim()?[fixSource(R)]:[];return R};function fixSource(R){if(!R.type){var W=getMimetype(R.src);W&&(R.type=W)}return R}var rx=function(R){function MediaLoader(W,G,J){var et,er=mergeOptions$3({createEl:!1},G);if(et=R.call(this,W,er,J)||this,G.playerOptions.sources&&0!==G.playerOptions.sources.length)W.src(G.playerOptions.sources);else for(var en=0,ei=G.playerOptions.techOrder;en<ei.length;en++){var eo=toTitleCase$1(ei[en]),es=rf.getTech(eo);if(eo||(es=tQ.getComponent(eo)),es&&es.isSupported()){W.loadTech_(eo);break}}return et}return(0,eS.Z)(MediaLoader,R),MediaLoader}(tQ);tQ.registerComponent("MediaLoader",rx);var rw=function(R){function ClickableComponent(W,G){var J;return(J=R.call(this,W,G)||this).options_.controlText&&J.controlText(J.options_.controlText),J.handleMouseOver_=function(R){return J.handleMouseOver(R)},J.handleMouseOut_=function(R){return J.handleMouseOut(R)},J.handleClick_=function(R){return J.handleClick(R)},J.handleKeyDown_=function(R){return J.handleKeyDown(R)},J.emitTapEvents(),J.enable(),J}(0,eS.Z)(ClickableComponent,R);var W=ClickableComponent.prototype;return W.createEl=function(R,W,G){void 0===R&&(R="div"),void 0===W&&(W={}),void 0===G&&(G={}),W=video_es_assign({className:this.buildCSSClass(),tabIndex:0},W),"button"===R&&th.error("Creating a ClickableComponent with an HTML element of "+R+" is not supported; use a Button instead."),G=video_es_assign({role:"button"},G),this.tabIndex_=W.tabIndex;var J=createEl(R,W,G);return J.appendChild(createEl("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(J),J},W.dispose=function(){this.controlTextEl_=null,R.prototype.dispose.call(this)},W.createControlTextEl=function(R){return this.controlTextEl_=createEl("span",{className:"vjs-control-text"},{"aria-live":"polite"}),R&&R.appendChild(this.controlTextEl_),this.controlText(this.controlText_,R),this.controlTextEl_},W.controlText=function(R,W){if(void 0===W&&(W=this.el()),void 0===R)return this.controlText_||"Need Text";var G=this.localize(R);this.controlText_=R,textContent(this.controlTextEl_,G),this.nonIconControl||this.player_.options_.noUITitleAttributes||W.setAttribute("title",G)},W.buildCSSClass=function(){return"vjs-control vjs-button "+R.prototype.buildCSSClass.call(this)},W.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},W.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},W.handleLanguagechange=function(){this.controlText(this.controlText_)},W.handleClick=function(R){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},W.handleKeyDown=function(W){ex().isEventKey(W,"Space")||ex().isEventKey(W,"Enter")?(W.preventDefault(),W.stopPropagation(),this.trigger("click")):R.prototype.handleKeyDown.call(this,W)},ClickableComponent}(tQ);tQ.registerComponent("ClickableComponent",rw);var rS=function(R){function PosterImage(W,G){var J;return(J=R.call(this,W,G)||this).update(),J.update_=function(R){return J.update(R)},W.on("posterchange",J.update_),J}(0,eS.Z)(PosterImage,R);var W=PosterImage.prototype;return W.dispose=function(){this.player().off("posterchange",this.update_),R.prototype.dispose.call(this)},W.createEl=function(){return createEl("div",{className:"vjs-poster",tabIndex:-1})},W.update=function(R){var W=this.player().poster();this.setSrc(W),W?this.show():this.hide()},W.setSrc=function(R){var W="";R&&(W='url("'+R+'")'),this.el_.style.backgroundImage=W},W.handleClick=function(R){if(this.player_.controls()){var W=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;this.player_.tech(!0)&&!((tE||tP)&&W)&&this.player_.tech(!0).focus(),this.player_.paused()?silencePromise(this.player_.play()):this.player_.pause()}},PosterImage}(rw);tQ.registerComponent("PosterImage",rS);var rT="#222",rO="#ccc",rP={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function constructColor(R,W){var G;if(4===R.length)G=R[1]+R[1]+R[2]+R[2]+R[3]+R[3];else if(7===R.length)G=R.slice(1);else throw Error("Invalid color code provided, "+R+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(G.slice(0,2),16)+","+parseInt(G.slice(2,4),16)+","+parseInt(G.slice(4,6),16)+","+W+")"}function tryUpdateStyle(R,W,G){try{R.style[W]=G}catch(R){return}}var rC=function(R){function TextTrackDisplay(W,G,J){et=R.call(this,W,G,J)||this;var et,updateDisplayHandler=function(R){return et.updateDisplay(R)};return W.on("loadstart",function(R){return et.toggleDisplay(R)}),W.on("texttrackchange",updateDisplayHandler),W.on("loadedmetadata",function(R){return et.preselectTrack(R)}),W.ready(bind((0,ew.Z)(et),function(){if(W.tech_&&W.tech_.featuresNativeTextTracks){this.hide();return}W.on("fullscreenchange",updateDisplayHandler),W.on("playerresize",updateDisplayHandler),em().addEventListener("orientationchange",updateDisplayHandler),W.on("dispose",function(){return em().removeEventListener("orientationchange",updateDisplayHandler)});for(var R=this.options_.playerOptions.tracks||[],G=0;G<R.length;G++)this.player_.addRemoteTextTrack(R[G],!0);this.preselectTrack()})),et}(0,eS.Z)(TextTrackDisplay,R);var W=TextTrackDisplay.prototype;return W.preselectTrack=function(){for(var R,W,G,J={captions:1,subtitles:1},et=this.player_.textTracks(),er=this.player_.cache_.selectedLanguage,en=0;en<et.length;en++){var ei=et[en];er&&er.enabled&&er.language&&er.language===ei.language&&ei.kind in J?ei.kind===er.kind?G=ei:G||(G=ei):er&&!er.enabled?(G=null,R=null,W=null):ei.default&&("descriptions"!==ei.kind||R?ei.kind in J&&!W&&(W=ei):R=ei)}G?G.mode="showing":W?W.mode="showing":R&&(R.mode="showing")},W.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},W.clearDisplay=function(){"function"==typeof em().WebVTT&&em().WebVTT.processCues(em(),[],this.el_)},W.updateDisplay=function(){var R=this.player_.textTracks(),W=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),W){for(var G=[],J=0;J<R.length;++J){var et=R[J];"showing"===et.mode&&G.push(et)}this.updateForTrack(G);return}for(var er=null,en=null,ei=R.length;ei--;){var eo=R[ei];"showing"===eo.mode&&("descriptions"===eo.kind?er=eo:en=eo)}en?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(en)):er&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(er))},W.updateDisplayState=function(R){for(var W=this.player_.textTrackSettings.getValues(),G=R.activeCues,J=G.length;J--;){var et=G[J];if(et){var er=et.displayState;if(W.color&&(er.firstChild.style.color=W.color),W.textOpacity&&tryUpdateStyle(er.firstChild,"color",constructColor(W.color||"#fff",W.textOpacity)),W.backgroundColor&&(er.firstChild.style.backgroundColor=W.backgroundColor),W.backgroundOpacity&&tryUpdateStyle(er.firstChild,"backgroundColor",constructColor(W.backgroundColor||"#000",W.backgroundOpacity)),W.windowColor&&(W.windowOpacity?tryUpdateStyle(er,"backgroundColor",constructColor(W.windowColor,W.windowOpacity)):er.style.backgroundColor=W.windowColor),W.edgeStyle&&("dropshadow"===W.edgeStyle?er.firstChild.style.textShadow="2px 2px 3px "+rT+", 2px 2px 4px "+rT+", 2px 2px 5px "+rT:"raised"===W.edgeStyle?er.firstChild.style.textShadow="1px 1px "+rT+", 2px 2px "+rT+", 3px 3px "+rT:"depressed"===W.edgeStyle?er.firstChild.style.textShadow="1px 1px "+rO+", 0 1px "+rO+", -1px -1px "+rT+", 0 -1px "+rT:"uniform"===W.edgeStyle&&(er.firstChild.style.textShadow="0 0 4px "+rT+", 0 0 4px "+rT+", 0 0 4px "+rT+", 0 0 4px "+rT)),W.fontPercent&&1!==W.fontPercent){var en=em().parseFloat(er.style.fontSize);er.style.fontSize=en*W.fontPercent+"px",er.style.height="auto",er.style.top="auto"}W.fontFamily&&"default"!==W.fontFamily&&("small-caps"===W.fontFamily?er.firstChild.style.fontVariant="small-caps":er.firstChild.style.fontFamily=rP[W.fontFamily])}}},W.updateForTrack=function(R){if(Array.isArray(R)||(R=[R]),!("function"!=typeof em().WebVTT||R.every(function(R){return!R.activeCues}))){for(var W=[],G=0;G<R.length;++G)for(var J=R[G],et=0;et<J.activeCues.length;++et)W.push(J.activeCues[et]);em().WebVTT.processCues(em(),W,this.el_);for(var er=0;er<R.length;++er){for(var en=R[er],ei=0;ei<en.activeCues.length;++ei){var eo=en.activeCues[ei].displayState;addClass(eo,"vjs-text-track-cue"),addClass(eo,"vjs-text-track-cue-"+(en.language?en.language:er)),en.language&&setAttribute(eo,"lang",en.language)}this.player_.textTrackSettings&&this.updateDisplayState(en)}}},TextTrackDisplay}(tQ);tQ.registerComponent("TextTrackDisplay",rC);var rk=function(R){function LoadingSpinner(){return R.apply(this,arguments)||this}return(0,eS.Z)(LoadingSpinner,R),LoadingSpinner.prototype.createEl=function(){var W=this.player_.isAudio(),G=this.localize(W?"Audio Player":"Video Player"),J=createEl("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[G])}),et=R.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return et.appendChild(J),et},LoadingSpinner}(tQ);tQ.registerComponent("LoadingSpinner",rk);var rE=function(R){function Button(){return R.apply(this,arguments)||this}(0,eS.Z)(Button,R);var W=Button.prototype;return W.createEl=function(R,W,G){void 0===W&&(W={}),void 0===G&&(G={});var J=createEl(R="button",W=video_es_assign({className:this.buildCSSClass()},W),G=video_es_assign({type:"button"},G));return J.appendChild(createEl("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(J),J},W.addChild=function(R,W){void 0===W&&(W={});var G=this.constructor.name;return th.warn("Adding an actionable (user controllable) child to a Button ("+G+") is not supported; use a ClickableComponent instead."),tQ.prototype.addChild.call(this,R,W)},W.enable=function(){R.prototype.enable.call(this),this.el_.removeAttribute("disabled")},W.disable=function(){R.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},W.handleKeyDown=function(W){if(ex().isEventKey(W,"Space")||ex().isEventKey(W,"Enter")){W.stopPropagation();return}R.prototype.handleKeyDown.call(this,W)},Button}(rw);tQ.registerComponent("Button",rE);var rj=function(R){function BigPlayButton(W,G){var J;return(J=R.call(this,W,G)||this).mouseused_=!1,J.on("mousedown",function(R){return J.handleMouseDown(R)}),J}(0,eS.Z)(BigPlayButton,R);var W=BigPlayButton.prototype;return W.buildCSSClass=function(){return"vjs-big-play-button"},W.handleClick=function(R){var W=this.player_.play();if(this.mouseused_&&R.clientX&&R.clientY){var G=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;silencePromise(W),this.player_.tech(!0)&&!((tE||tP)&&G)&&this.player_.tech(!0).focus();return}var J=this.player_.getChild("controlBar"),et=J&&J.getChild("playToggle");if(!et){this.player_.tech(!0).focus();return}var playFocus=function(){return et.focus()};isPromise(W)?W.then(playFocus,function(){}):this.setTimeout(playFocus,1)},W.handleKeyDown=function(W){this.mouseused_=!1,R.prototype.handleKeyDown.call(this,W)},W.handleMouseDown=function(R){this.mouseused_=!0},BigPlayButton}(rE);rj.prototype.controlText_="Play Video",tQ.registerComponent("BigPlayButton",rj);var rA=function(R){function CloseButton(W,G){var J;return(J=R.call(this,W,G)||this).controlText(G&&G.controlText||J.localize("Close")),J}(0,eS.Z)(CloseButton,R);var W=CloseButton.prototype;return W.buildCSSClass=function(){return"vjs-close-button "+R.prototype.buildCSSClass.call(this)},W.handleClick=function(R){this.trigger({type:"close",bubbles:!1})},W.handleKeyDown=function(W){ex().isEventKey(W,"Esc")?(W.preventDefault(),W.stopPropagation(),this.trigger("click")):R.prototype.handleKeyDown.call(this,W)},CloseButton}(rE);tQ.registerComponent("CloseButton",rA);var rD=function(R){function PlayToggle(W,G){var J;return void 0===G&&(G={}),J=R.call(this,W,G)||this,G.replay=void 0===G.replay||G.replay,J.on(W,"play",function(R){return J.handlePlay(R)}),J.on(W,"pause",function(R){return J.handlePause(R)}),G.replay&&J.on(W,"ended",function(R){return J.handleEnded(R)}),J}(0,eS.Z)(PlayToggle,R);var W=PlayToggle.prototype;return W.buildCSSClass=function(){return"vjs-play-control "+R.prototype.buildCSSClass.call(this)},W.handleClick=function(R){this.player_.paused()?silencePromise(this.player_.play()):this.player_.pause()},W.handleSeeked=function(R){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(R):this.handlePlay(R)},W.handlePlay=function(R){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},W.handlePause=function(R){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},W.handleEnded=function(R){var W=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(R){return W.handleSeeked(R)})},PlayToggle}(rE);rD.prototype.controlText_="Play",tQ.registerComponent("PlayToggle",rD);var defaultImplementation=function(R,W){var G=Math.floor((R=R<0?0:R)%60),J=Math.floor(R/60%60),et=Math.floor(R/3600),er=Math.floor(W/60%60),en=Math.floor(W/3600);return(isNaN(R)||R===1/0)&&(et=J=G="-"),J=(((et=et>0||en>0?et+":":"")||er>=10)&&J<10?"0"+J:J)+":",et+J+(G=G<10?"0"+G:G)},rI=defaultImplementation;function formatTime(R,W){return void 0===W&&(W=R),rI(R,W)}var rM=function(R){function TimeDisplay(W,G){var J;return(J=R.call(this,W,G)||this).on(W,["timeupdate","ended"],function(R){return J.updateContent(R)}),J.updateTextNode_(),J}(0,eS.Z)(TimeDisplay,R);var W=TimeDisplay.prototype;return W.createEl=function(){var W=this.buildCSSClass(),G=R.prototype.createEl.call(this,"div",{className:W+" vjs-time-control vjs-control"}),J=createEl("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"\xa0"},{role:"presentation"});return G.appendChild(J),this.contentEl_=createEl("span",{className:W+"-display"},{"aria-live":"off",role:"presentation"}),G.appendChild(this.contentEl_),G},W.dispose=function(){this.contentEl_=null,this.textNode_=null,R.prototype.dispose.call(this)},W.updateTextNode_=function(R){var W=this;void 0===R&&(R=0),R=formatTime(R),this.formattedTime_!==R&&(this.formattedTime_=R,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(W.contentEl_){var R=W.textNode_;R&&W.contentEl_.firstChild!==R&&(R=null,th.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),W.textNode_=ev().createTextNode(W.formattedTime_),W.textNode_&&(R?W.contentEl_.replaceChild(W.textNode_,R):W.contentEl_.appendChild(W.textNode_))}}))},W.updateContent=function(R){},TimeDisplay}(tQ);rM.prototype.labelText_="Time",rM.prototype.controlText_="Time",tQ.registerComponent("TimeDisplay",rM);var rL=function(R){function CurrentTimeDisplay(){return R.apply(this,arguments)||this}(0,eS.Z)(CurrentTimeDisplay,R);var W=CurrentTimeDisplay.prototype;return W.buildCSSClass=function(){return"vjs-current-time"},W.updateContent=function(R){var W;W=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(W)},CurrentTimeDisplay}(rM);rL.prototype.labelText_="Current Time",rL.prototype.controlText_="Current Time",tQ.registerComponent("CurrentTimeDisplay",rL);var rR=function(R){function DurationDisplay(W,G){J=R.call(this,W,G)||this;var J,updateContent=function(R){return J.updateContent(R)};return J.on(W,"durationchange",updateContent),J.on(W,"loadstart",updateContent),J.on(W,"loadedmetadata",updateContent),J}(0,eS.Z)(DurationDisplay,R);var W=DurationDisplay.prototype;return W.buildCSSClass=function(){return"vjs-duration"},W.updateContent=function(R){var W=this.player_.duration();this.updateTextNode_(W)},DurationDisplay}(rM);rR.prototype.labelText_="Duration",rR.prototype.controlText_="Duration",tQ.registerComponent("DurationDisplay",rR);var rN=function(R){function TimeDivider(){return R.apply(this,arguments)||this}return(0,eS.Z)(TimeDivider,R),TimeDivider.prototype.createEl=function(){var W=R.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),G=R.prototype.createEl.call(this,"div"),J=R.prototype.createEl.call(this,"span",{textContent:"/"});return G.appendChild(J),W.appendChild(G),W},TimeDivider}(tQ);tQ.registerComponent("TimeDivider",rN);var rB=function(R){function RemainingTimeDisplay(W,G){var J;return(J=R.call(this,W,G)||this).on(W,"durationchange",function(R){return J.updateContent(R)}),J}(0,eS.Z)(RemainingTimeDisplay,R);var W=RemainingTimeDisplay.prototype;return W.buildCSSClass=function(){return"vjs-remaining-time"},W.createEl=function(){var W=R.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&W.insertBefore(createEl("span",{},{"aria-hidden":!0},"-"),this.contentEl_),W},W.updateContent=function(R){var W;"number"==typeof this.player_.duration()&&(W=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(W))},RemainingTimeDisplay}(rM);rB.prototype.labelText_="Remaining Time",rB.prototype.controlText_="Remaining Time",tQ.registerComponent("RemainingTimeDisplay",rB);var rZ=function(R){function LiveDisplay(W,G){var J;return(J=R.call(this,W,G)||this).updateShowing(),J.on(J.player(),"durationchange",function(R){return J.updateShowing(R)}),J}(0,eS.Z)(LiveDisplay,R);var W=LiveDisplay.prototype;return W.createEl=function(){var W=R.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=createEl("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(createEl("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"\xa0"})),this.contentEl_.appendChild(ev().createTextNode(this.localize("LIVE"))),W.appendChild(this.contentEl_),W},W.dispose=function(){this.contentEl_=null,R.prototype.dispose.call(this)},W.updateShowing=function(R){this.player().duration()===1/0?this.show():this.hide()},LiveDisplay}(tQ);tQ.registerComponent("LiveDisplay",rZ);var rU=function(R){function SeekToLive(W,G){var J;return(J=R.call(this,W,G)||this).updateLiveEdgeStatus(),J.player_.liveTracker&&(J.updateLiveEdgeStatusHandler_=function(R){return J.updateLiveEdgeStatus(R)},J.on(J.player_.liveTracker,"liveedgechange",J.updateLiveEdgeStatusHandler_)),J}(0,eS.Z)(SeekToLive,R);var W=SeekToLive.prototype;return W.createEl=function(){var W=R.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=createEl("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),W.appendChild(this.textEl_),W},W.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},W.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},W.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,R.prototype.dispose.call(this)},SeekToLive}(rE);rU.prototype.controlText_="Seek to live, currently playing live",tQ.registerComponent("SeekToLive",rU);var clamp=function(R,W,G){return Math.min(G,Math.max(W,isNaN(R=Number(R))?W:R))},rF=function(R){function Slider(W,G){var J;return(J=R.call(this,W,G)||this).handleMouseDown_=function(R){return J.handleMouseDown(R)},J.handleMouseUp_=function(R){return J.handleMouseUp(R)},J.handleKeyDown_=function(R){return J.handleKeyDown(R)},J.handleClick_=function(R){return J.handleClick(R)},J.handleMouseMove_=function(R){return J.handleMouseMove(R)},J.update_=function(R){return J.update(R)},J.bar=J.getChild(J.options_.barName),J.vertical(!!J.options_.vertical),J.enable(),J}(0,eS.Z)(Slider,R);var W=Slider.prototype;return W.enabled=function(){return this.enabled_},W.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},W.disable=function(){if(this.enabled()){var R=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(R,"mousemove",this.handleMouseMove_),this.off(R,"mouseup",this.handleMouseUp_),this.off(R,"touchmove",this.handleMouseMove_),this.off(R,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},W.createEl=function(W,G,J){return void 0===G&&(G={}),void 0===J&&(J={}),G.className=G.className+" vjs-slider",G=video_es_assign({tabIndex:0},G),J=video_es_assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},J),R.prototype.createEl.call(this,W,G,J)},W.handleMouseDown=function(R){var W=this.bar.el_.ownerDocument;"mousedown"===R.type&&R.preventDefault(),"touchstart"!==R.type||tC||R.preventDefault(),blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(W,"mousemove",this.handleMouseMove_),this.on(W,"mouseup",this.handleMouseUp_),this.on(W,"touchmove",this.handleMouseMove_),this.on(W,"touchend",this.handleMouseUp_),this.handleMouseMove(R,!0)},W.handleMouseMove=function(R){},W.handleMouseUp=function(){var R=this.bar.el_.ownerDocument;unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(R,"mousemove",this.handleMouseMove_),this.off(R,"mouseup",this.handleMouseUp_),this.off(R,"touchmove",this.handleMouseMove_),this.off(R,"touchend",this.handleMouseUp_),this.update()},W.update=function(){var R=this;if(this.el_&&this.bar){var W=this.getProgress();return W===this.progress_||(this.progress_=W,this.requestNamedAnimationFrame("Slider#update",function(){var G=R.vertical()?"height":"width";R.bar.el().style[G]=(100*W).toFixed(2)+"%"})),W}},W.getProgress=function(){return Number(clamp(this.getPercent(),0,1).toFixed(4))},W.calculateDistance=function(R){var W=getPointerPosition(this.el_,R);return this.vertical()?W.y:W.x},W.handleKeyDown=function(W){ex().isEventKey(W,"Left")||ex().isEventKey(W,"Down")?(W.preventDefault(),W.stopPropagation(),this.stepBack()):ex().isEventKey(W,"Right")||ex().isEventKey(W,"Up")?(W.preventDefault(),W.stopPropagation(),this.stepForward()):R.prototype.handleKeyDown.call(this,W)},W.handleClick=function(R){R.stopPropagation(),R.preventDefault()},W.vertical=function(R){if(void 0===R)return this.vertical_||!1;this.vertical_=!!R,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},Slider}(tQ);tQ.registerComponent("Slider",rF);var percentify=function(R,W){return clamp(R/W*100,0,100).toFixed(2)+"%"},rz=function(R){function LoadProgressBar(W,G){var J;return(J=R.call(this,W,G)||this).partEls_=[],J.on(W,"progress",function(R){return J.update(R)}),J}(0,eS.Z)(LoadProgressBar,R);var W=LoadProgressBar.prototype;return W.createEl=function(){var W=R.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),G=createEl("span",{className:"vjs-control-text"}),J=createEl("span",{textContent:this.localize("Loaded")}),et=ev().createTextNode(": ");return this.percentageEl_=createEl("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),W.appendChild(G),G.appendChild(J),G.appendChild(et),G.appendChild(this.percentageEl_),W},W.dispose=function(){this.partEls_=null,this.percentageEl_=null,R.prototype.dispose.call(this)},W.update=function(R){var W=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var R=W.player_.liveTracker,G=W.player_.buffered(),J=R&&R.isLive()?R.seekableEnd():W.player_.duration(),et=W.player_.bufferedEnd(),er=W.partEls_,en=percentify(et,J);W.percent_!==en&&(W.el_.style.width=en,textContent(W.percentageEl_,en),W.percent_=en);for(var ei=0;ei<G.length;ei++){var eo=G.start(ei),es=G.end(ei),ec=er[ei];ec||(ec=W.el_.appendChild(createEl()),er[ei]=ec),(ec.dataset.start!==eo||ec.dataset.end!==es)&&(ec.dataset.start=eo,ec.dataset.end=es,ec.style.left=percentify(eo,et),ec.style.width=percentify(es-eo,et))}for(var el=er.length;el>G.length;el--)W.el_.removeChild(er[el-1]);er.length=G.length})},LoadProgressBar}(tQ);tQ.registerComponent("LoadProgressBar",rz);var rH=function(R){function TimeTooltip(W,G){var J;return(J=R.call(this,W,G)||this).update=throttle(bind((0,ew.Z)(J),J.update),30),J}(0,eS.Z)(TimeTooltip,R);var W=TimeTooltip.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},W.update=function(R,W,G){var J=findPosition(this.el_),et=getBoundingClientRect(this.player_.el()),er=R.width*W;if(et&&J){var en=R.left-et.left+er,ei=R.width-er+(et.right-R.right),eo=J.width/2;en<eo?eo+=eo-en:ei<eo&&(eo=ei),eo<0?eo=0:eo>J.width&&(eo=J.width),eo=Math.round(eo),this.el_.style.right="-"+eo+"px",this.write(G)}},W.write=function(R){textContent(this.el_,R)},W.updateTime=function(R,W,G,J){var et=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var er,en=et.player_.duration();if(et.player_.liveTracker&&et.player_.liveTracker.isLive()){var ei=et.player_.liveTracker.liveWindow(),eo=ei-W*ei;er=(eo<1?"":"-")+formatTime(eo,ei)}else er=formatTime(G,en);et.update(R,W,er),J&&J()})},TimeTooltip}(tQ);tQ.registerComponent("TimeTooltip",rH);var rq=function(R){function PlayProgressBar(W,G){var J;return(J=R.call(this,W,G)||this).update=throttle(bind((0,ew.Z)(J),J.update),30),J}(0,eS.Z)(PlayProgressBar,R);var W=PlayProgressBar.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},W.update=function(R,W){var G=this.getChild("timeTooltip");if(G){var J=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();G.updateTime(R,W,J)}},PlayProgressBar}(tQ);rq.prototype.options_={children:[]},tL||tw||rq.prototype.options_.children.push("timeTooltip"),tQ.registerComponent("PlayProgressBar",rq);var rV=function(R){function MouseTimeDisplay(W,G){var J;return(J=R.call(this,W,G)||this).update=throttle(bind((0,ew.Z)(J),J.update),30),J}(0,eS.Z)(MouseTimeDisplay,R);var W=MouseTimeDisplay.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},W.update=function(R,W){var G=this,J=W*this.player_.duration();this.getChild("timeTooltip").updateTime(R,W,J,function(){G.el_.style.left=R.width*W+"px"})},MouseTimeDisplay}(tQ);rV.prototype.options_={children:["timeTooltip"]},tQ.registerComponent("MouseTimeDisplay",rV);var rW=function(R){function SeekBar(W,G){var J;return(J=R.call(this,W,G)||this).setEventHandlers_(),J}(0,eS.Z)(SeekBar,R);var W=SeekBar.prototype;return W.setEventHandlers_=function(){var R=this;this.update_=bind(this,this.update),this.update=throttle(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(W){return R.enableInterval_(W)},this.disableIntervalHandler_=function(W){return R.disableInterval_(W)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in ev()&&"visibilityState"in ev()&&this.on(ev(),"visibilitychange",this.toggleVisibility_)},W.toggleVisibility_=function(R){"hidden"===ev().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(R)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},W.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},W.disableInterval_=function(R){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&R&&"ended"!==R.type||!this.updateInterval||(this.clearInterval(this.updateInterval),this.updateInterval=null)},W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},W.update=function(W){var G=this;if("hidden"!==ev().visibilityState){var J=R.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var R=G.player_.ended()?G.player_.duration():G.getCurrentTime_(),W=G.player_.liveTracker,et=G.player_.duration();W&&W.isLive()&&(et=G.player_.liveTracker.liveCurrentTime()),G.percent_!==J&&(G.el_.setAttribute("aria-valuenow",(100*J).toFixed(2)),G.percent_=J),(G.currentTime_!==R||G.duration_!==et)&&(G.el_.setAttribute("aria-valuetext",G.localize("progress bar timing: currentTime={1} duration={2}",[formatTime(R,et),formatTime(et,et)],"{1} of {2}")),G.currentTime_=R,G.duration_=et),G.bar&&G.bar.update(getBoundingClientRect(G.el()),G.getProgress())}),J}},W.userSeek_=function(R){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(R)},W.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},W.getPercent=function(){var R,W=this.getCurrentTime_(),G=this.player_.liveTracker;return G&&G.isLive()?(R=(W-G.seekableStart())/G.liveWindow(),G.atLiveEdge()&&(R=1)):R=W/this.player_.duration(),R},W.handleMouseDown=function(W){isSingleLeftClick(W)&&(W.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),R.prototype.handleMouseDown.call(this,W))},W.handleMouseMove=function(R,W){if(void 0===W&&(W=!1),isSingleLeftClick(R)){W||this.player_.scrubbing()||this.player_.scrubbing(!0);var G,J=this.calculateDistance(R),et=this.player_.liveTracker;if(et&&et.isLive()){if(J>=.99){et.seekToLiveEdge();return}var er=et.seekableStart(),en=et.liveCurrentTime();if((G=er+J*et.liveWindow())>=en&&(G=en),G<=er&&(G=er+.1),G===1/0)return}else(G=J*this.player_.duration())===this.player_.duration()&&(G-=.1);this.userSeek_(G)}},W.enable=function(){R.prototype.enable.call(this);var W=this.getChild("mouseTimeDisplay");W&&W.show()},W.disable=function(){R.prototype.disable.call(this);var W=this.getChild("mouseTimeDisplay");W&&W.hide()},W.handleMouseUp=function(W){R.prototype.handleMouseUp.call(this,W),W&&W.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?silencePromise(this.player_.play()):this.update_()},W.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},W.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},W.handleAction=function(R){this.player_.paused()?this.player_.play():this.player_.pause()},W.handleKeyDown=function(W){var G=this.player_.liveTracker;if(ex().isEventKey(W,"Space")||ex().isEventKey(W,"Enter"))W.preventDefault(),W.stopPropagation(),this.handleAction(W);else if(ex().isEventKey(W,"Home"))W.preventDefault(),W.stopPropagation(),this.userSeek_(0);else if(ex().isEventKey(W,"End"))W.preventDefault(),W.stopPropagation(),G&&G.isLive()?this.userSeek_(G.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(ex()(W))){W.preventDefault(),W.stopPropagation();var J=(ex().codes[ex()(W)]-ex().codes["0"])*10/100;G&&G.isLive()?this.userSeek_(G.seekableStart()+G.liveWindow()*J):this.userSeek_(this.player_.duration()*J)}else ex().isEventKey(W,"PgDn")?(W.preventDefault(),W.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):ex().isEventKey(W,"PgUp")?(W.preventDefault(),W.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):R.prototype.handleKeyDown.call(this,W)},W.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in ev()&&"visibilityState"in ev()&&this.off(ev(),"visibilitychange",this.toggleVisibility_),R.prototype.dispose.call(this)},SeekBar}(rF);rW.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},tL||tw||rW.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),tQ.registerComponent("SeekBar",rW);var rG=function(R){function ProgressControl(W,G){var J;return(J=R.call(this,W,G)||this).handleMouseMove=throttle(bind((0,ew.Z)(J),J.handleMouseMove),30),J.throttledHandleMouseSeek=throttle(bind((0,ew.Z)(J),J.handleMouseSeek),30),J.handleMouseUpHandler_=function(R){return J.handleMouseUp(R)},J.handleMouseDownHandler_=function(R){return J.handleMouseDown(R)},J.enable(),J}(0,eS.Z)(ProgressControl,R);var W=ProgressControl.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},W.handleMouseMove=function(R){var W=this.getChild("seekBar");if(W){var G=W.getChild("playProgressBar"),J=W.getChild("mouseTimeDisplay");if(G||J){var et=W.el(),er=findPosition(et),en=getPointerPosition(et,R).x;en=clamp(en,0,1),J&&J.update(er,en),G&&G.update(er,W.getProgress())}}},W.handleMouseSeek=function(R){var W=this.getChild("seekBar");W&&W.handleMouseMove(R)},W.enabled=function(){return this.enabled_},W.disable=function(){if(this.children().forEach(function(R){return R.disable&&R.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var R=this.getChild("seekBar");this.player_.scrubbing(!1),R.videoWasPlaying&&silencePromise(this.player_.play())}},W.enable=function(){this.children().forEach(function(R){return R.enable&&R.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},W.removeListenersAddedOnMousedownAndTouchstart=function(){var R=this.el_.ownerDocument;this.off(R,"mousemove",this.throttledHandleMouseSeek),this.off(R,"touchmove",this.throttledHandleMouseSeek),this.off(R,"mouseup",this.handleMouseUpHandler_),this.off(R,"touchend",this.handleMouseUpHandler_)},W.handleMouseDown=function(R){var W=this.el_.ownerDocument,G=this.getChild("seekBar");G&&G.handleMouseDown(R),this.on(W,"mousemove",this.throttledHandleMouseSeek),this.on(W,"touchmove",this.throttledHandleMouseSeek),this.on(W,"mouseup",this.handleMouseUpHandler_),this.on(W,"touchend",this.handleMouseUpHandler_)},W.handleMouseUp=function(R){var W=this.getChild("seekBar");W&&W.handleMouseUp(R),this.removeListenersAddedOnMousedownAndTouchstart()},ProgressControl}(tQ);rG.prototype.options_={children:["seekBar"]},tQ.registerComponent("ProgressControl",rG);var r$=function(R){function PictureInPictureToggle(W,G){var J;return(J=R.call(this,W,G)||this).on(W,["enterpictureinpicture","leavepictureinpicture"],function(R){return J.handlePictureInPictureChange(R)}),J.on(W,["disablepictureinpicturechanged","loadedmetadata"],function(R){return J.handlePictureInPictureEnabledChange(R)}),J.on(W,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){"audio"===W.currentType().substring(0,5)||W.audioPosterMode()||W.audioOnlyMode()?(W.isInPictureInPicture()&&W.exitPictureInPicture(),J.hide()):J.show()}),J.disable(),J}(0,eS.Z)(PictureInPictureToggle,R);var W=PictureInPictureToggle.prototype;return W.buildCSSClass=function(){return"vjs-picture-in-picture-control "+R.prototype.buildCSSClass.call(this)},W.handlePictureInPictureEnabledChange=function(){ev().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},W.handlePictureInPictureChange=function(R){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},W.handleClick=function(R){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},PictureInPictureToggle}(rE);r$.prototype.controlText_="Picture-in-Picture",tQ.registerComponent("PictureInPictureToggle",r$);var rK=function(R){function FullscreenToggle(W,G){var J;return(J=R.call(this,W,G)||this).on(W,"fullscreenchange",function(R){return J.handleFullscreenChange(R)}),!1===ev()[W.fsApi_.fullscreenEnabled]&&J.disable(),J}(0,eS.Z)(FullscreenToggle,R);var W=FullscreenToggle.prototype;return W.buildCSSClass=function(){return"vjs-fullscreen-control "+R.prototype.buildCSSClass.call(this)},W.handleFullscreenChange=function(R){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},W.handleClick=function(R){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},FullscreenToggle}(rE);rK.prototype.controlText_="Fullscreen",tQ.registerComponent("FullscreenToggle",rK);var checkVolumeSupport=function(R,W){W.tech_&&!W.tech_.featuresVolumeControl&&R.addClass("vjs-hidden"),R.on(W,"loadstart",function(){W.tech_.featuresVolumeControl?R.removeClass("vjs-hidden"):R.addClass("vjs-hidden")})},rY=function(R){function VolumeLevel(){return R.apply(this,arguments)||this}return(0,eS.Z)(VolumeLevel,R),VolumeLevel.prototype.createEl=function(){var W=R.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return W.appendChild(R.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),W},VolumeLevel}(tQ);tQ.registerComponent("VolumeLevel",rY);var rX=function(R){function VolumeLevelTooltip(W,G){var J;return(J=R.call(this,W,G)||this).update=throttle(bind((0,ew.Z)(J),J.update),30),J}(0,eS.Z)(VolumeLevelTooltip,R);var W=VolumeLevelTooltip.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},W.update=function(R,W,G,J){if(!G){var et=getBoundingClientRect(this.el_),er=getBoundingClientRect(this.player_.el()),en=R.width*W;if(!er||!et)return;var ei=R.left-er.left+en,eo=R.width-en+(er.right-R.right),es=et.width/2;ei<es?es+=es-ei:eo<es&&(es=eo),es<0?es=0:es>et.width&&(es=et.width),this.el_.style.right="-"+es+"px"}this.write(J+"%")},W.write=function(R){textContent(this.el_,R)},W.updateVolume=function(R,W,G,J,et){var er=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){er.update(R,W,G,J.toFixed(0)),et&&et()})},VolumeLevelTooltip}(tQ);tQ.registerComponent("VolumeLevelTooltip",rX);var rQ=function(R){function MouseVolumeLevelDisplay(W,G){var J;return(J=R.call(this,W,G)||this).update=throttle(bind((0,ew.Z)(J),J.update),30),J}(0,eS.Z)(MouseVolumeLevelDisplay,R);var W=MouseVolumeLevelDisplay.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},W.update=function(R,W,G){var J=this,et=100*W;this.getChild("volumeLevelTooltip").updateVolume(R,W,G,et,function(){G?J.el_.style.bottom=R.height*W+"px":J.el_.style.left=R.width*W+"px"})},MouseVolumeLevelDisplay}(tQ);rQ.prototype.options_={children:["volumeLevelTooltip"]},tQ.registerComponent("MouseVolumeLevelDisplay",rQ);var rJ=function(R){function VolumeBar(W,G){var J;return(J=R.call(this,W,G)||this).on("slideractive",function(R){return J.updateLastVolume_(R)}),J.on(W,"volumechange",function(R){return J.updateARIAAttributes(R)}),W.ready(function(){return J.updateARIAAttributes()}),J}(0,eS.Z)(VolumeBar,R);var W=VolumeBar.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},W.handleMouseDown=function(W){isSingleLeftClick(W)&&R.prototype.handleMouseDown.call(this,W)},W.handleMouseMove=function(R){var W=this.getChild("mouseVolumeLevelDisplay");if(W){var G=this.el(),J=getBoundingClientRect(G),et=this.vertical(),er=getPointerPosition(G,R);er=clamp(er=et?er.y:er.x,0,1),W.update(J,er,et)}isSingleLeftClick(R)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(R)))},W.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},W.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},W.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},W.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},W.updateARIAAttributes=function(R){var W=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",W),this.el_.setAttribute("aria-valuetext",W+"%")},W.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},W.updateLastVolume_=function(){var R=this,W=this.player_.volume();this.one("sliderinactive",function(){0===R.player_.volume()&&R.player_.lastVolume_(W)})},VolumeBar}(rF);rJ.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},tL||tw||rJ.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),rJ.prototype.playerEvent="volumechange",tQ.registerComponent("VolumeBar",rJ);var r0=function(R){function VolumeControl(W,G){var J;return void 0===G&&(G={}),G.vertical=G.vertical||!1,(void 0===G.volumeBar||isPlain(G.volumeBar))&&(G.volumeBar=G.volumeBar||{},G.volumeBar.vertical=G.vertical),J=R.call(this,W,G)||this,checkVolumeSupport((0,ew.Z)(J),W),J.throttledHandleMouseMove=throttle(bind((0,ew.Z)(J),J.handleMouseMove),30),J.handleMouseUpHandler_=function(R){return J.handleMouseUp(R)},J.on("mousedown",function(R){return J.handleMouseDown(R)}),J.on("touchstart",function(R){return J.handleMouseDown(R)}),J.on("mousemove",function(R){return J.handleMouseMove(R)}),J.on(J.volumeBar,["focus","slideractive"],function(){J.volumeBar.addClass("vjs-slider-active"),J.addClass("vjs-slider-active"),J.trigger("slideractive")}),J.on(J.volumeBar,["blur","sliderinactive"],function(){J.volumeBar.removeClass("vjs-slider-active"),J.removeClass("vjs-slider-active"),J.trigger("sliderinactive")}),J}(0,eS.Z)(VolumeControl,R);var W=VolumeControl.prototype;return W.createEl=function(){var W="vjs-volume-horizontal";return this.options_.vertical&&(W="vjs-volume-vertical"),R.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+W})},W.handleMouseDown=function(R){var W=this.el_.ownerDocument;this.on(W,"mousemove",this.throttledHandleMouseMove),this.on(W,"touchmove",this.throttledHandleMouseMove),this.on(W,"mouseup",this.handleMouseUpHandler_),this.on(W,"touchend",this.handleMouseUpHandler_)},W.handleMouseUp=function(R){var W=this.el_.ownerDocument;this.off(W,"mousemove",this.throttledHandleMouseMove),this.off(W,"touchmove",this.throttledHandleMouseMove),this.off(W,"mouseup",this.handleMouseUpHandler_),this.off(W,"touchend",this.handleMouseUpHandler_)},W.handleMouseMove=function(R){this.volumeBar.handleMouseMove(R)},VolumeControl}(tQ);r0.prototype.options_={children:["volumeBar"]},tQ.registerComponent("VolumeControl",r0);var checkMuteSupport=function(R,W){W.tech_&&!W.tech_.featuresMuteControl&&R.addClass("vjs-hidden"),R.on(W,"loadstart",function(){W.tech_.featuresMuteControl?R.removeClass("vjs-hidden"):R.addClass("vjs-hidden")})},r1=function(R){function MuteToggle(W,G){var J;return J=R.call(this,W,G)||this,checkMuteSupport((0,ew.Z)(J),W),J.on(W,["loadstart","volumechange"],function(R){return J.update(R)}),J}(0,eS.Z)(MuteToggle,R);var W=MuteToggle.prototype;return W.buildCSSClass=function(){return"vjs-mute-control "+R.prototype.buildCSSClass.call(this)},W.handleClick=function(R){var W=this.player_.volume(),G=this.player_.lastVolume_();if(0===W){var J=G<.1?.1:G;this.player_.volume(J),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},W.update=function(R){this.updateIcon_(),this.updateControlText_()},W.updateIcon_=function(){var R=this.player_.volume(),W=3;tL&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===R||this.player_.muted()?W=0:R<.33?W=1:R<.67&&(W=2);for(var G=0;G<4;G++)removeClass(this.el_,"vjs-vol-"+G);addClass(this.el_,"vjs-vol-"+W)},W.updateControlText_=function(){var R=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==R&&this.controlText(R)},MuteToggle}(rE);r1.prototype.controlText_="Mute",tQ.registerComponent("MuteToggle",r1);var r2=function(R){function VolumePanel(W,G){var J;return void 0===G&&(G={}),void 0!==G.inline?G.inline=G.inline:G.inline=!0,(void 0===G.volumeControl||isPlain(G.volumeControl))&&(G.volumeControl=G.volumeControl||{},G.volumeControl.vertical=!G.inline),(J=R.call(this,W,G)||this).handleKeyPressHandler_=function(R){return J.handleKeyPress(R)},J.on(W,["loadstart"],function(R){return J.volumePanelState_(R)}),J.on(J.muteToggle,"keyup",function(R){return J.handleKeyPress(R)}),J.on(J.volumeControl,"keyup",function(R){return J.handleVolumeControlKeyUp(R)}),J.on("keydown",function(R){return J.handleKeyPress(R)}),J.on("mouseover",function(R){return J.handleMouseOver(R)}),J.on("mouseout",function(R){return J.handleMouseOut(R)}),J.on(J.volumeControl,["slideractive"],J.sliderActive_),J.on(J.volumeControl,["sliderinactive"],J.sliderInactive_),J}(0,eS.Z)(VolumePanel,R);var W=VolumePanel.prototype;return W.sliderActive_=function(){this.addClass("vjs-slider-active")},W.sliderInactive_=function(){this.removeClass("vjs-slider-active")},W.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},W.createEl=function(){var W="vjs-volume-panel-horizontal";return this.options_.inline||(W="vjs-volume-panel-vertical"),R.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+W})},W.dispose=function(){this.handleMouseOut(),R.prototype.dispose.call(this)},W.handleVolumeControlKeyUp=function(R){ex().isEventKey(R,"Esc")&&this.muteToggle.focus()},W.handleMouseOver=function(R){this.addClass("vjs-hover"),on(ev(),"keyup",this.handleKeyPressHandler_)},W.handleMouseOut=function(R){this.removeClass("vjs-hover"),off(ev(),"keyup",this.handleKeyPressHandler_)},W.handleKeyPress=function(R){ex().isEventKey(R,"Esc")&&this.handleMouseOut()},VolumePanel}(tQ);r2.prototype.options_={children:["muteToggle","volumeControl"]},tQ.registerComponent("VolumePanel",r2);var r3=function(R){function Menu(W,G){var J;return J=R.call(this,W,G)||this,G&&(J.menuButton_=G.menuButton),J.focusedChild_=-1,J.on("keydown",function(R){return J.handleKeyDown(R)}),J.boundHandleBlur_=function(R){return J.handleBlur(R)},J.boundHandleTapClick_=function(R){return J.handleTapClick(R)},J}(0,eS.Z)(Menu,R);var W=Menu.prototype;return W.addEventListenerForItem=function(R){R instanceof tQ&&(this.on(R,"blur",this.boundHandleBlur_),this.on(R,["tap","click"],this.boundHandleTapClick_))},W.removeEventListenerForItem=function(R){R instanceof tQ&&(this.off(R,"blur",this.boundHandleBlur_),this.off(R,["tap","click"],this.boundHandleTapClick_))},W.removeChild=function(W){"string"==typeof W&&(W=this.getChild(W)),this.removeEventListenerForItem(W),R.prototype.removeChild.call(this,W)},W.addItem=function(R){var W=this.addChild(R);W&&this.addEventListenerForItem(W)},W.createEl=function(){var W=this.options_.contentElType||"ul";this.contentEl_=createEl(W,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var G=R.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return G.appendChild(this.contentEl_),on(G,"click",function(R){R.preventDefault(),R.stopImmediatePropagation()}),G},W.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,R.prototype.dispose.call(this)},W.handleBlur=function(R){var W=R.relatedTarget||ev().activeElement;if(!this.children().some(function(R){return R.el()===W})){var G=this.menuButton_;G&&G.buttonPressed_&&W!==G.el().firstChild&&G.unpressButton()}},W.handleTapClick=function(R){if(this.menuButton_){this.menuButton_.unpressButton();var W=this.children();if(Array.isArray(W)){var G=W.filter(function(W){return W.el()===R.target})[0];G&&"CaptionSettingsMenuItem"!==G.name()&&this.menuButton_.focus()}}},W.handleKeyDown=function(R){ex().isEventKey(R,"Left")||ex().isEventKey(R,"Down")?(R.preventDefault(),R.stopPropagation(),this.stepForward()):(ex().isEventKey(R,"Right")||ex().isEventKey(R,"Up"))&&(R.preventDefault(),R.stopPropagation(),this.stepBack())},W.stepForward=function(){var R=0;void 0!==this.focusedChild_&&(R=this.focusedChild_+1),this.focus(R)},W.stepBack=function(){var R=0;void 0!==this.focusedChild_&&(R=this.focusedChild_-1),this.focus(R)},W.focus=function(R){void 0===R&&(R=0);var W=this.children().slice();W.length&&W[0].hasClass("vjs-menu-title")&&W.shift(),W.length>0&&(R<0?R=0:R>=W.length&&(R=W.length-1),this.focusedChild_=R,W[R].el_.focus())},Menu}(tQ);tQ.registerComponent("Menu",r3);var r5=function(R){function MenuButton(W,G){void 0===G&&(G={}),(J=R.call(this,W,G)||this).menuButton_=new rE(W,G),J.menuButton_.controlText(J.controlText_),J.menuButton_.el_.setAttribute("aria-haspopup","true");var J,et=rE.prototype.buildCSSClass();J.menuButton_.el_.className=J.buildCSSClass()+" "+et,J.menuButton_.removeClass("vjs-control"),J.addChild(J.menuButton_),J.update(),J.enabled_=!0;var handleClick=function(R){return J.handleClick(R)};return J.handleMenuKeyUp_=function(R){return J.handleMenuKeyUp(R)},J.on(J.menuButton_,"tap",handleClick),J.on(J.menuButton_,"click",handleClick),J.on(J.menuButton_,"keydown",function(R){return J.handleKeyDown(R)}),J.on(J.menuButton_,"mouseenter",function(){J.addClass("vjs-hover"),J.menu.show(),on(ev(),"keyup",J.handleMenuKeyUp_)}),J.on("mouseleave",function(R){return J.handleMouseLeave(R)}),J.on("keydown",function(R){return J.handleSubmenuKeyDown(R)}),J}(0,eS.Z)(MenuButton,R);var W=MenuButton.prototype;return W.update=function(){var R=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=R,this.addChild(R),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},W.createMenu=function(){var R=new r3(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var W=createEl("li",{className:"vjs-menu-title",textContent:toTitleCase$1(this.options_.title),tabIndex:-1}),G=new tQ(this.player_,{el:W});R.addItem(G)}if(this.items=this.createItems(),this.items)for(var J=0;J<this.items.length;J++)R.addItem(this.items[J]);return R},W.createItems=function(){},W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},W.buildWrapperCSSClass=function(){var W="vjs-menu-button";return!0===this.options_.inline?W+="-inline":W+="-popup","vjs-menu-button "+W+" "+rE.prototype.buildCSSClass()+" "+R.prototype.buildCSSClass.call(this)},W.buildCSSClass=function(){var W="vjs-menu-button";return!0===this.options_.inline?W+="-inline":W+="-popup","vjs-menu-button "+W+" "+R.prototype.buildCSSClass.call(this)},W.controlText=function(R,W){return void 0===W&&(W=this.menuButton_.el()),this.menuButton_.controlText(R,W)},W.dispose=function(){this.handleMouseLeave(),R.prototype.dispose.call(this)},W.handleClick=function(R){this.buttonPressed_?this.unpressButton():this.pressButton()},W.handleMouseLeave=function(R){this.removeClass("vjs-hover"),off(ev(),"keyup",this.handleMenuKeyUp_)},W.focus=function(){this.menuButton_.focus()},W.blur=function(){this.menuButton_.blur()},W.handleKeyDown=function(R){ex().isEventKey(R,"Esc")||ex().isEventKey(R,"Tab")?(this.buttonPressed_&&this.unpressButton(),ex().isEventKey(R,"Tab")||(R.preventDefault(),this.menuButton_.focus())):(ex().isEventKey(R,"Up")||ex().isEventKey(R,"Down"))&&!this.buttonPressed_&&(R.preventDefault(),this.pressButton())},W.handleMenuKeyUp=function(R){(ex().isEventKey(R,"Esc")||ex().isEventKey(R,"Tab"))&&this.removeClass("vjs-hover")},W.handleSubmenuKeyPress=function(R){this.handleSubmenuKeyDown(R)},W.handleSubmenuKeyDown=function(R){(ex().isEventKey(R,"Esc")||ex().isEventKey(R,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),ex().isEventKey(R,"Tab")||(R.preventDefault(),this.menuButton_.focus()))},W.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),tL&&isInFrame()||this.menu.focus())},W.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},W.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},W.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},MenuButton}(tQ);tQ.registerComponent("MenuButton",r5);var r4=function(R){function TrackButton(W,G){var J,et=G.tracks;if((J=R.call(this,W,G)||this).items.length<=1&&J.hide(),!et)return(0,ew.Z)(J);var er=bind((0,ew.Z)(J),J.update);return et.addEventListener("removetrack",er),et.addEventListener("addtrack",er),et.addEventListener("labelchange",er),J.player_.on("ready",er),J.player_.on("dispose",function(){et.removeEventListener("removetrack",er),et.removeEventListener("addtrack",er),et.removeEventListener("labelchange",er)}),J}return(0,eS.Z)(TrackButton,R),TrackButton}(r5);tQ.registerComponent("TrackButton",r4);var r8=["Tab","Esc","Up","Down","Right","Left"],r6=function(R){function MenuItem(W,G){var J;return(J=R.call(this,W,G)||this).selectable=G.selectable,J.isSelected_=G.selected||!1,J.multiSelectable=G.multiSelectable,J.selected(J.isSelected_),J.selectable?J.multiSelectable?J.el_.setAttribute("role","menuitemcheckbox"):J.el_.setAttribute("role","menuitemradio"):J.el_.setAttribute("role","menuitem"),J}(0,eS.Z)(MenuItem,R);var W=MenuItem.prototype;return W.createEl=function(W,G,J){this.nonIconControl=!0;var et=R.prototype.createEl.call(this,"li",video_es_assign({className:"vjs-menu-item",tabIndex:-1},G),J);return et.replaceChild(createEl("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),et.querySelector(".vjs-icon-placeholder")),et},W.handleKeyDown=function(W){r8.some(function(R){return ex().isEventKey(W,R)})||R.prototype.handleKeyDown.call(this,W)},W.handleClick=function(R){this.selected(!0)},W.selected=function(R){this.selectable&&(R?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},MenuItem}(rw);tQ.registerComponent("MenuItem",r6);var r7=function(R){function TextTrackMenuItem(W,G){var J,et,er=G.track,en=W.textTracks();G.label=er.label||er.language||"Unknown",G.selected="showing"===er.mode,(J=R.call(this,W,G)||this).track=er,J.kinds=(G.kinds||[G.kind||J.track.kind]).filter(Boolean);var changeHandler=function(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];J.handleTracksChange.apply((0,ew.Z)(J),W)},selectedLanguageChangeHandler=function(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];J.handleSelectedLanguageChange.apply((0,ew.Z)(J),W)};return W.on(["loadstart","texttrackchange"],changeHandler),en.addEventListener("change",changeHandler),en.addEventListener("selectedlanguagechange",selectedLanguageChangeHandler),J.on("dispose",function(){W.off(["loadstart","texttrackchange"],changeHandler),en.removeEventListener("change",changeHandler),en.removeEventListener("selectedlanguagechange",selectedLanguageChangeHandler)}),void 0===en.onchange&&J.on(["tap","click"],function(){if("object"!=typeof em().Event)try{et=new(em()).Event("change")}catch(R){}et||(et=ev().createEvent("Event")).initEvent("change",!0,!0),en.dispatchEvent(et)}),J.handleTracksChange(),J}(0,eS.Z)(TextTrackMenuItem,R);var W=TextTrackMenuItem.prototype;return W.handleClick=function(W){var G=this.track,J=this.player_.textTracks();if(R.prototype.handleClick.call(this,W),J)for(var et=0;et<J.length;et++){var er=J[et];-1!==this.kinds.indexOf(er.kind)&&(er===G?"showing"!==er.mode&&(er.mode="showing"):"disabled"!==er.mode&&(er.mode="disabled"))}},W.handleTracksChange=function(R){var W="showing"===this.track.mode;W!==this.isSelected_&&this.selected(W)},W.handleSelectedLanguageChange=function(R){if("showing"===this.track.mode){var W=this.player_.cache_.selectedLanguage;W&&W.enabled&&W.language===this.track.language&&W.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind})}},W.dispose=function(){this.track=null,R.prototype.dispose.call(this)},TextTrackMenuItem}(r6);tQ.registerComponent("TextTrackMenuItem",r7);var r9=function(R){function OffTextTrackMenuItem(W,G){return G.track={player:W,kind:G.kind,kinds:G.kinds,default:!1,mode:"disabled"},G.kinds||(G.kinds=[G.kind]),G.label?G.track.label=G.label:G.track.label=G.kinds.join(" and ")+" off",G.selectable=!0,G.multiSelectable=!1,R.call(this,W,G)||this}(0,eS.Z)(OffTextTrackMenuItem,R);var W=OffTextTrackMenuItem.prototype;return W.handleTracksChange=function(R){for(var W=this.player().textTracks(),G=!0,J=0,et=W.length;J<et;J++){var er=W[J];if(this.options_.kinds.indexOf(er.kind)>-1&&"showing"===er.mode){G=!1;break}}G!==this.isSelected_&&this.selected(G)},W.handleSelectedLanguageChange=function(R){for(var W=this.player().textTracks(),G=!0,J=0,et=W.length;J<et;J++){var er=W[J];if(["captions","descriptions","subtitles"].indexOf(er.kind)>-1&&"showing"===er.mode){G=!1;break}}G&&(this.player_.cache_.selectedLanguage={enabled:!1})},OffTextTrackMenuItem}(r7);tQ.registerComponent("OffTextTrackMenuItem",r9);var nt=function(R){function TextTrackButton(W,G){return void 0===G&&(G={}),G.tracks=W.textTracks(),R.call(this,W,G)||this}return(0,eS.Z)(TextTrackButton,R),TextTrackButton.prototype.createItems=function(R,W){void 0===R&&(R=[]),void 0===W&&(W=r7),this.label_&&(G=this.label_+" off"),R.push(new r9(this.player_,{kinds:this.kinds_,kind:this.kind_,label:G})),this.hideThreshold_+=1;var G,J=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var et=0;et<J.length;et++){var er=J[et];if(this.kinds_.indexOf(er.kind)>-1){var en=new W(this.player_,{track:er,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});en.addClass("vjs-"+er.kind+"-menu-item"),R.push(en)}}return R},TextTrackButton}(r4);tQ.registerComponent("TextTrackButton",nt);var nr=function(R){function ChaptersTrackMenuItem(W,G){var J,et=G.track,er=G.cue,en=W.currentTime();return G.selectable=!0,G.multiSelectable=!1,G.label=er.text,G.selected=er.startTime<=en&&en<er.endTime,(J=R.call(this,W,G)||this).track=et,J.cue=er,J}return(0,eS.Z)(ChaptersTrackMenuItem,R),ChaptersTrackMenuItem.prototype.handleClick=function(W){R.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},ChaptersTrackMenuItem}(r6);tQ.registerComponent("ChaptersTrackMenuItem",nr);var nn=function(R){function ChaptersButton(W,G,J){var et;return(et=R.call(this,W,G,J)||this).selectCurrentItem_=function(){et.items.forEach(function(R){R.selected(et.track_.activeCues[0]===R.cue)})},et}(0,eS.Z)(ChaptersButton,R);var W=ChaptersButton.prototype;return W.buildCSSClass=function(){return"vjs-chapters-button "+R.prototype.buildCSSClass.call(this)},W.buildWrapperCSSClass=function(){return"vjs-chapters-button "+R.prototype.buildWrapperCSSClass.call(this)},W.update=function(W){if(!W||!W.track||"chapters"===W.track.kind){var G=this.findChaptersTrack();G!==this.track_?(this.setTrack(G),R.prototype.update.call(this)):(!this.items||G&&G.cues&&G.cues.length!==this.items.length)&&R.prototype.update.call(this)}},W.setTrack=function(R){if(this.track_!==R){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var W=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);W&&W.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=R,this.track_){this.track_.mode="hidden";var G=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);G&&G.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},W.findChaptersTrack=function(){for(var R=this.player_.textTracks()||[],W=R.length-1;W>=0;W--){var G=R[W];if(G.kind===this.kind_)return G}},W.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(toTitleCase$1(this.kind_))},W.createMenu=function(){return this.options_.title=this.getMenuCaption(),R.prototype.createMenu.call(this)},W.createItems=function(){var R=[];if(!this.track_)return R;var W=this.track_.cues;if(!W)return R;for(var G=0,J=W.length;G<J;G++){var et=W[G],er=new nr(this.player_,{track:this.track_,cue:et});R.push(er)}return R},ChaptersButton}(nt);nn.prototype.kind_="chapters",nn.prototype.controlText_="Chapters",tQ.registerComponent("ChaptersButton",nn);var ni=function(R){function DescriptionsButton(W,G,J){et=R.call(this,W,G,J)||this;var et,er=W.textTracks(),en=bind((0,ew.Z)(et),et.handleTracksChange);return er.addEventListener("change",en),et.on("dispose",function(){er.removeEventListener("change",en)}),et}(0,eS.Z)(DescriptionsButton,R);var W=DescriptionsButton.prototype;return W.handleTracksChange=function(R){for(var W=this.player().textTracks(),G=!1,J=0,et=W.length;J<et;J++){var er=W[J];if(er.kind!==this.kind_&&"showing"===er.mode){G=!0;break}}G?this.disable():this.enable()},W.buildCSSClass=function(){return"vjs-descriptions-button "+R.prototype.buildCSSClass.call(this)},W.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+R.prototype.buildWrapperCSSClass.call(this)},DescriptionsButton}(nt);ni.prototype.kind_="descriptions",ni.prototype.controlText_="Descriptions",tQ.registerComponent("DescriptionsButton",ni);var no=function(R){function SubtitlesButton(W,G,J){return R.call(this,W,G,J)||this}(0,eS.Z)(SubtitlesButton,R);var W=SubtitlesButton.prototype;return W.buildCSSClass=function(){return"vjs-subtitles-button "+R.prototype.buildCSSClass.call(this)},W.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+R.prototype.buildWrapperCSSClass.call(this)},SubtitlesButton}(nt);no.prototype.kind_="subtitles",no.prototype.controlText_="Subtitles",tQ.registerComponent("SubtitlesButton",no);var na=function(R){function CaptionSettingsMenuItem(W,G){var J;return G.track={player:W,kind:G.kind,label:G.kind+" settings",selectable:!1,default:!1,mode:"disabled"},G.selectable=!1,G.name="CaptionSettingsMenuItem",(J=R.call(this,W,G)||this).addClass("vjs-texttrack-settings"),J.controlText(", opens "+G.kind+" settings dialog"),J}return(0,eS.Z)(CaptionSettingsMenuItem,R),CaptionSettingsMenuItem.prototype.handleClick=function(R){this.player().getChild("textTrackSettings").open()},CaptionSettingsMenuItem}(r7);tQ.registerComponent("CaptionSettingsMenuItem",na);var ns=function(R){function CaptionsButton(W,G,J){return R.call(this,W,G,J)||this}(0,eS.Z)(CaptionsButton,R);var W=CaptionsButton.prototype;return W.buildCSSClass=function(){return"vjs-captions-button "+R.prototype.buildCSSClass.call(this)},W.buildWrapperCSSClass=function(){return"vjs-captions-button "+R.prototype.buildWrapperCSSClass.call(this)},W.createItems=function(){var W=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(W.push(new na(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),R.prototype.createItems.call(this,W)},CaptionsButton}(nt);ns.prototype.kind_="captions",ns.prototype.controlText_="Captions",tQ.registerComponent("CaptionsButton",ns);var nc=function(R){function SubsCapsMenuItem(){return R.apply(this,arguments)||this}return(0,eS.Z)(SubsCapsMenuItem,R),SubsCapsMenuItem.prototype.createEl=function(W,G,J){var et=R.prototype.createEl.call(this,W,G,J),er=et.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(er.appendChild(createEl("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),er.appendChild(createEl("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),et},SubsCapsMenuItem}(r7);tQ.registerComponent("SubsCapsMenuItem",nc);var nl=function(R){function SubsCapsButton(W,G){var J;return void 0===G&&(G={}),(J=R.call(this,W,G)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(J.player_.language_)>-1&&(J.label_="captions"),J.menuButton_.controlText(toTitleCase$1(J.label_)),J}(0,eS.Z)(SubsCapsButton,R);var W=SubsCapsButton.prototype;return W.buildCSSClass=function(){return"vjs-subs-caps-button "+R.prototype.buildCSSClass.call(this)},W.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+R.prototype.buildWrapperCSSClass.call(this)},W.createItems=function(){var W=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(W.push(new na(this.player_,{kind:this.label_})),this.hideThreshold_+=1),W=R.prototype.createItems.call(this,W,nc)},SubsCapsButton}(nt);nl.prototype.kinds_=["captions","subtitles"],nl.prototype.controlText_="Subtitles",tQ.registerComponent("SubsCapsButton",nl);var nu=function(R){function AudioTrackMenuItem(W,G){var J,et=G.track,er=W.audioTracks();G.label=et.label||et.language||"Unknown",G.selected=et.enabled,(J=R.call(this,W,G)||this).track=et,J.addClass("vjs-"+et.kind+"-menu-item");var changeHandler=function(){for(var R=arguments.length,W=Array(R),G=0;G<R;G++)W[G]=arguments[G];J.handleTracksChange.apply((0,ew.Z)(J),W)};return er.addEventListener("change",changeHandler),J.on("dispose",function(){er.removeEventListener("change",changeHandler)}),J}(0,eS.Z)(AudioTrackMenuItem,R);var W=AudioTrackMenuItem.prototype;return W.createEl=function(W,G,J){var et=R.prototype.createEl.call(this,W,G,J),er=et.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(er.appendChild(createEl("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),er.appendChild(createEl("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),et},W.handleClick=function(W){if(R.prototype.handleClick.call(this,W),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var G=this.player_.audioTracks(),J=0;J<G.length;J++){var et=G[J];et!==this.track&&(et.enabled=et===this.track)}},W.handleTracksChange=function(R){this.selected(this.track.enabled)},AudioTrackMenuItem}(r6);tQ.registerComponent("AudioTrackMenuItem",nu);var nd=function(R){function AudioTrackButton(W,G){return void 0===G&&(G={}),G.tracks=W.audioTracks(),R.call(this,W,G)||this}(0,eS.Z)(AudioTrackButton,R);var W=AudioTrackButton.prototype;return W.buildCSSClass=function(){return"vjs-audio-button "+R.prototype.buildCSSClass.call(this)},W.buildWrapperCSSClass=function(){return"vjs-audio-button "+R.prototype.buildWrapperCSSClass.call(this)},W.createItems=function(R){void 0===R&&(R=[]),this.hideThreshold_=1;for(var W=this.player_.audioTracks(),G=0;G<W.length;G++){var J=W[G];R.push(new nu(this.player_,{track:J,selectable:!0,multiSelectable:!1}))}return R},AudioTrackButton}(r4);nd.prototype.controlText_="Audio Track",tQ.registerComponent("AudioTrackButton",nd);var np=function(R){function PlaybackRateMenuItem(W,G){var J,et=G.rate,er=parseFloat(et,10);return G.label=et,G.selected=er===W.playbackRate(),G.selectable=!0,G.multiSelectable=!1,(J=R.call(this,W,G)||this).label=et,J.rate=er,J.on(W,"ratechange",function(R){return J.update(R)}),J}(0,eS.Z)(PlaybackRateMenuItem,R);var W=PlaybackRateMenuItem.prototype;return W.handleClick=function(W){R.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},W.update=function(R){this.selected(this.player().playbackRate()===this.rate)},PlaybackRateMenuItem}(r6);np.prototype.contentElType="button",tQ.registerComponent("PlaybackRateMenuItem",np);var nf=function(R){function PlaybackRateMenuButton(W,G){var J;return(J=R.call(this,W,G)||this).menuButton_.el_.setAttribute("aria-describedby",J.labelElId_),J.updateVisibility(),J.updateLabel(),J.on(W,"loadstart",function(R){return J.updateVisibility(R)}),J.on(W,"ratechange",function(R){return J.updateLabel(R)}),J.on(W,"playbackrateschange",function(R){return J.handlePlaybackRateschange(R)}),J}(0,eS.Z)(PlaybackRateMenuButton,R);var W=PlaybackRateMenuButton.prototype;return W.createEl=function(){var W=R.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=createEl("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),W.appendChild(this.labelEl_),W},W.dispose=function(){this.labelEl_=null,R.prototype.dispose.call(this)},W.buildCSSClass=function(){return"vjs-playback-rate "+R.prototype.buildCSSClass.call(this)},W.buildWrapperCSSClass=function(){return"vjs-playback-rate "+R.prototype.buildWrapperCSSClass.call(this)},W.createItems=function(){for(var R=this.playbackRates(),W=[],G=R.length-1;G>=0;G--)W.push(new np(this.player(),{rate:R[G]+"x"}));return W},W.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},W.handleClick=function(R){var W=this.player().playbackRate(),G=this.playbackRates(),J=(G.indexOf(W)+1)%G.length;this.player().playbackRate(G[J])},W.handlePlaybackRateschange=function(R){this.update()},W.playbackRates=function(){var R=this.player();return R.playbackRates&&R.playbackRates()||[]},W.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},W.updateVisibility=function(R){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},W.updateLabel=function(R){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},PlaybackRateMenuButton}(r5);nf.prototype.controlText_="Playback Rate",tQ.registerComponent("PlaybackRateMenuButton",nf);var nh=function(R){function Spacer(){return R.apply(this,arguments)||this}(0,eS.Z)(Spacer,R);var W=Spacer.prototype;return W.buildCSSClass=function(){return"vjs-spacer "+R.prototype.buildCSSClass.call(this)},W.createEl=function(W,G,J){return void 0===W&&(W="div"),void 0===G&&(G={}),void 0===J&&(J={}),G.className||(G.className=this.buildCSSClass()),R.prototype.createEl.call(this,W,G,J)},Spacer}(tQ);tQ.registerComponent("Spacer",nh);var ng=function(R){function CustomControlSpacer(){return R.apply(this,arguments)||this}(0,eS.Z)(CustomControlSpacer,R);var W=CustomControlSpacer.prototype;return W.buildCSSClass=function(){return"vjs-custom-control-spacer "+R.prototype.buildCSSClass.call(this)},W.createEl=function(){return R.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"\xa0"})},CustomControlSpacer}(nh);tQ.registerComponent("CustomControlSpacer",ng);var nm=function(R){function ControlBar(){return R.apply(this,arguments)||this}return(0,eS.Z)(ControlBar,R),ControlBar.prototype.createEl=function(){return R.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},ControlBar}(tQ);nm.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in ev()&&nm.prototype.options_.children.splice(nm.prototype.options_.children.length-1,0,"pictureInPictureToggle"),tQ.registerComponent("ControlBar",nm);var ny=function(R){function ErrorDisplay(W,G){var J;return(J=R.call(this,W,G)||this).on(W,"error",function(R){return J.open(R)}),J}(0,eS.Z)(ErrorDisplay,R);var W=ErrorDisplay.prototype;return W.buildCSSClass=function(){return"vjs-error-display "+R.prototype.buildCSSClass.call(this)},W.content=function(){var R=this.player().error();return R?this.localize(R.message):""},ErrorDisplay}(t2);ny.prototype.options_=(0,eb.Z)({},t2.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),tQ.registerComponent("ErrorDisplay",ny);var nv="vjs-text-track-settings",nb=["#000","Black"],n_=["#00F","Blue"],nx=["#0FF","Cyan"],nw=["#0F0","Green"],nS=["#F0F","Magenta"],nT=["#F00","Red"],nO=["#FFF","White"],nP=["#FF0","Yellow"],nC=["1","Opaque"],nk=["0.5","Semi-Transparent"],nE=["0","Transparent"],nj={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[nb,nO,nT,nw,n_,nP,nS,nx]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[nC,nk,nE]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[nO,nb,nT,nw,n_,nP,nS,nx]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(R){return"1.00"===R?null:Number(R)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[nC,nk]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[nE,nk,nC]}};function parseOptionValue(R,W){if(W&&(R=W(R)),R&&"none"!==R)return R}nj.windowColor.options=nj.backgroundColor.options;var nA=function(R){function TextTrackSettings(W,G){var J;return G.temporary=!1,(J=R.call(this,W,G)||this).updateDisplay=J.updateDisplay.bind((0,ew.Z)(J)),J.fill(),J.hasBeenOpened_=J.hasBeenFilled_=!0,J.endDialog=createEl("p",{className:"vjs-control-text",textContent:J.localize("End of dialog window.")}),J.el().appendChild(J.endDialog),J.setDefaults(),void 0===G.persistTextTrackSettings&&(J.options_.persistTextTrackSettings=J.options_.playerOptions.persistTextTrackSettings),J.on(J.$(".vjs-done-button"),"click",function(){J.saveSettings(),J.close()}),J.on(J.$(".vjs-default-button"),"click",function(){J.setDefaults(),J.updateDisplay()}),each(nj,function(R){J.on(J.$(R.selector),"change",J.updateDisplay)}),J.options_.persistTextTrackSettings&&J.restoreSettings(),J}(0,eS.Z)(TextTrackSettings,R);var W=TextTrackSettings.prototype;return W.dispose=function(){this.endDialog=null,R.prototype.dispose.call(this)},W.createElSelect_=function(R,W,G){var J=this;void 0===W&&(W=""),void 0===G&&(G="label");var et=nj[R],er=et.id.replace("%s",this.id_),en=[W,er].join(" ").trim();return["<"+G+' id="'+er+'" class="'+("label"===G?"vjs-label":"")+'">',this.localize(et.label),"</"+G+">",'<select aria-labelledby="'+en+'">'].concat(et.options.map(function(R){var W=er+"-"+R[1].replace(/\W+/g,"");return['<option id="'+W+'" value="'+R[0]+'" ','aria-labelledby="'+en+" "+W+'">',J.localize(R[1]),"</option>"].join("")})).concat("</select>").join("")},W.createElFgColor_=function(){var R="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+R+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",R),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",R),"</span>","</fieldset>"].join("")},W.createElBgColor_=function(){var R="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+R+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",R),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",R),"</span>","</fieldset>"].join("")},W.createElWinColor_=function(){var R="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+R+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",R),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",R),"</span>","</fieldset>"].join("")},W.createElColors_=function(){return createEl("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},W.createElFont_=function(){return createEl("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},W.createElControls_=function(){var R=this.localize("restore all settings to the default values");return createEl("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+R+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+R+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},W.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},W.label=function(){return this.localize("Caption Settings Dialog")},W.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},W.buildCSSClass=function(){return R.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},W.getValues=function(){var R,W=this;return R=function(R,G,J){var et,er,en=(et=W.$(G.selector),er=G.parser,parseOptionValue(et.options[et.options.selectedIndex].value,er));return void 0!==en&&(R[J]=en),R},keys(nj).reduce(function(W,G){return R(W,nj[G],G)},{})},W.setValues=function(R){var W=this;each(nj,function(G,J){!function(R,W,G){if(W){for(var J=0;J<R.options.length;J++)if(parseOptionValue(R.options[J].value,G)===W){R.selectedIndex=J;break}}}(W.$(G.selector),R[J],G.parser)})},W.setDefaults=function(){var R=this;each(nj,function(W){var G=W.hasOwnProperty("default")?W.default:0;R.$(W.selector).selectedIndex=G})},W.restoreSettings=function(){var R;try{R=JSON.parse(em().localStorage.getItem(nv))}catch(R){th.warn(R)}R&&this.setValues(R)},W.saveSettings=function(){if(this.options_.persistTextTrackSettings){var R=this.getValues();try{Object.keys(R).length?em().localStorage.setItem(nv,JSON.stringify(R)):em().localStorage.removeItem(nv)}catch(R){th.warn(R)}}},W.updateDisplay=function(){var R=this.player_.getChild("textTrackDisplay");R&&R.updateDisplay()},W.conditionalBlur_=function(){this.previouslyActiveEl_=null;var R=this.player_.controlBar,W=R&&R.subsCapsButton,G=R&&R.captionsButton;W?W.focus():G&&G.focus()},TextTrackSettings}(t2);tQ.registerComponent("TextTrackSettings",nA);var nD=function(R){function ResizeManager(W,G){var J,et=G.ResizeObserver||em().ResizeObserver;null===G.ResizeObserver&&(et=!1);var er=mergeOptions$3({createEl:!et,reportTouchActivity:!1},G);return(J=R.call(this,W,er)||this).ResizeObserver=G.ResizeObserver||em().ResizeObserver,J.loadListener_=null,J.resizeObserver_=null,J.debouncedHandler_=debounce(function(){J.resizeHandler()},100,!1,(0,ew.Z)(J)),et?(J.resizeObserver_=new J.ResizeObserver(J.debouncedHandler_),J.resizeObserver_.observe(W.el())):(J.loadListener_=function(){if(J.el_&&J.el_.contentWindow){var R=J.debouncedHandler_,W=J.unloadListener_=function(){off(this,"resize",R),off(this,"unload",W),W=null};on(J.el_.contentWindow,"unload",W),on(J.el_.contentWindow,"resize",R)}},J.one("load",J.loadListener_)),J}(0,eS.Z)(ResizeManager,R);var W=ResizeManager.prototype;return W.createEl=function(){return R.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},W.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},W.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,R.prototype.dispose.call(this)},ResizeManager}(tQ);tQ.registerComponent("ResizeManager",nD);var nI={trackingThreshold:20,liveTolerance:15},nM=function(R){function LiveTracker(W,G){var J,et=mergeOptions$3(nI,G,{createEl:!1});return(J=R.call(this,W,et)||this).handleVisibilityChange_=function(R){return J.handleVisibilityChange(R)},J.trackLiveHandler_=function(){return J.trackLive_()},J.handlePlay_=function(R){return J.handlePlay(R)},J.handleFirstTimeupdate_=function(R){return J.handleFirstTimeupdate(R)},J.handleSeeked_=function(R){return J.handleSeeked(R)},J.seekToLiveEdge_=function(R){return J.seekToLiveEdge(R)},J.reset_(),J.on(J.player_,"durationchange",function(R){return J.handleDurationchange(R)}),J.on(J.player_,"canplay",function(){return J.toggleTracking()}),tE&&"hidden"in ev()&&"visibilityState"in ev()&&J.on(ev(),"visibilitychange",J.handleVisibilityChange_),J}(0,eS.Z)(LiveTracker,R);var W=LiveTracker.prototype;return W.handleVisibilityChange=function(){this.player_.duration()===1/0&&(ev().hidden?this.stopTracking():this.startTracking())},W.trackLive_=function(){var R=this.player_.seekable();if(R&&R.length){var W=Number(em().performance.now().toFixed(4)),G=-1===this.lastTime_?0:(W-this.lastTime_)/1e3;this.lastTime_=W,this.pastSeekEnd_=this.pastSeekEnd()+G;var J=this.liveCurrentTime(),et=this.player_.currentTime(),er=this.player_.paused()||this.seekedBehindLive_||Math.abs(J-et)>this.options_.liveTolerance;this.timeupdateSeen_&&J!==1/0||(er=!1),er!==this.behindLiveEdge_&&(this.behindLiveEdge_=er,this.trigger("liveedgechange"))}},W.handleDurationchange=function(){this.toggleTracking()},W.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},W.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},W.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},W.handleSeeked=function(){var R=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&R>2,this.nextSeekedFromUser_=!1,this.trackLive_()},W.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},W.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},W.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},W.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},W.seekableEnd=function(){for(var R=this.player_.seekable(),W=[],G=R?R.length:0;G--;)W.push(R.end(G));return W.length?W.sort()[W.length-1]:1/0},W.seekableStart=function(){for(var R=this.player_.seekable(),W=[],G=R?R.length:0;G--;)W.push(R.start(G));return W.length?W.sort()[0]:0},W.liveWindow=function(){var R=this.liveCurrentTime();return R===1/0?0:R-this.seekableStart()},W.isLive=function(){return this.isTracking()},W.atLiveEdge=function(){return!this.behindLiveEdge()},W.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},W.pastSeekEnd=function(){var R=this.seekableEnd();return -1!==this.lastSeekEnd_&&R!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=R,this.pastSeekEnd_},W.behindLiveEdge=function(){return this.behindLiveEdge_},W.isTracking=function(){return"number"==typeof this.trackingInterval_},W.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},W.dispose=function(){this.off(ev(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),R.prototype.dispose.call(this)},LiveTracker}(tQ);tQ.registerComponent("LiveTracker",nM);var sourcesetLoad=function(R){var W=R.el();if(W.hasAttribute("src"))return R.triggerSourceset(W.src),!0;var G=R.$$("source"),J=[],et="";if(!G.length)return!1;for(var er=0;er<G.length;er++){var en=G[er].src;en&&-1===J.indexOf(en)&&J.push(en)}return!!J.length&&(1===J.length&&(et=J[0]),R.triggerSourceset(et),!0)},nL=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(R){var W=ev().createElement(this.nodeName.toLowerCase());W.innerHTML=R;for(var G=ev().createDocumentFragment();W.childNodes.length;)G.appendChild(W.childNodes[0]);return this.innerText="",em().Element.prototype.appendChild.call(this,G),this.innerHTML}}),getDescriptor=function(R,W){for(var G={},J=0;J<R.length&&(!(G=Object.getOwnPropertyDescriptor(R[J],W))||!G.set||!G.get);J++);return G.enumerable=!0,G.configurable=!0,G},firstSourceWatch=function(R){var W=R.el();if(!W.resetSourceWatch_){var G={},J=getDescriptor([R.el(),em().HTMLMediaElement.prototype,em().Element.prototype,nL],"innerHTML"),appendWrapper=function(G){return function(){for(var J=arguments.length,et=Array(J),er=0;er<J;er++)et[er]=arguments[er];var en=G.apply(W,et);return sourcesetLoad(R),en}};["append","appendChild","insertAdjacentHTML"].forEach(function(R){W[R]&&(G[R]=W[R],W[R]=appendWrapper(G[R]))}),Object.defineProperty(W,"innerHTML",mergeOptions$3(J,{set:appendWrapper(J.set)})),W.resetSourceWatch_=function(){W.resetSourceWatch_=null,Object.keys(G).forEach(function(R){W[R]=G[R]}),Object.defineProperty(W,"innerHTML",J)},R.one("sourceset",W.resetSourceWatch_)}},nR=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?getAbsoluteURL(em().Element.prototype.getAttribute.call(this,"src")):""},set:function(R){return em().Element.prototype.setAttribute.call(this,"src",R),R}}),setupSourceset=function(R){if(R.featuresSourceset){var W=R.el();if(!W.resetSourceset_){var G=getDescriptor([R.el(),em().HTMLMediaElement.prototype,nR],"src"),J=W.setAttribute,et=W.load;Object.defineProperty(W,"src",mergeOptions$3(G,{set:function(J){var et=G.set.call(W,J);return R.triggerSourceset(W.src),et}})),W.setAttribute=function(G,et){var er=J.call(W,G,et);return/src/i.test(G)&&R.triggerSourceset(W.src),er},W.load=function(){var G=et.call(W);return sourcesetLoad(R)||(R.triggerSourceset(""),firstSourceWatch(R)),G},W.currentSrc?R.triggerSourceset(W.currentSrc):sourcesetLoad(R)||firstSourceWatch(R),W.resetSourceset_=function(){W.resetSourceset_=null,W.load=et,W.setAttribute=J,Object.defineProperty(W,"src",G),W.resetSourceWatch_&&W.resetSourceWatch_()}}}},defineLazyProperty=function(R,W,G,J){void 0===J&&(J=!0);var set=function(G){return Object.defineProperty(R,W,{value:G,enumerable:!0,writable:!0})},et={configurable:!0,enumerable:!0,get:function(){var R=G();return set(R),R}};return J&&(et.set=set),Object.defineProperty(R,W,et)},nN=function(R){function Html5(W,G){J=R.call(this,W,G)||this;var J,et=W.source,er=!1;if(J.featuresVideoFrameCallback=J.featuresVideoFrameCallback&&"VIDEO"===J.el_.tagName,et&&(J.el_.currentSrc!==et.src||W.tag&&3===W.tag.initNetworkState_)?J.setSource(et):J.handleLateInit_(J.el_),W.enableSourceset&&J.setupSourcesetHandling_(),J.isScrubbing_=!1,J.el_.hasChildNodes()){for(var en=J.el_.childNodes,ei=en.length,eo=[];ei--;){var es=en[ei];"track"===es.nodeName.toLowerCase()&&(J.featuresNativeTextTracks?(J.remoteTextTrackEls().addTrackElement_(es),J.remoteTextTracks().addTrack(es.track),J.textTracks().addTrack(es.track),!er&&!J.el_.hasAttribute("crossorigin")&&isCrossOrigin(es.src)&&(er=!0)):eo.push(es))}for(var ec=0;ec<eo.length;ec++)J.el_.removeChild(eo[ec])}return J.proxyNativeTracks_(),J.featuresNativeTextTracks&&er&&th.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),J.restoreMetadataTracksInIOSNativePlayer_(),(tD||tM||tT)&&!0===W.nativeControlsForTouch&&J.setControls(!0),J.proxyWebkitFullscreen_(),J.triggerReady(),J}(0,eS.Z)(Html5,R);var W=Html5.prototype;return W.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),Html5.disposeMediaElement(this.el_),this.options_=null,R.prototype.dispose.call(this)},W.setupSourcesetHandling_=function(){setupSourceset(this)},W.restoreMetadataTracksInIOSNativePlayer_=function(){var R,W=this.textTracks(),takeMetadataTrackSnapshot=function(){R=[];for(var G=0;G<W.length;G++){var J=W[G];"metadata"===J.kind&&R.push({track:J,storedMode:J.mode})}};takeMetadataTrackSnapshot(),W.addEventListener("change",takeMetadataTrackSnapshot),this.on("dispose",function(){return W.removeEventListener("change",takeMetadataTrackSnapshot)});var restoreTrackMode=function restoreTrackMode(){for(var G=0;G<R.length;G++){var J=R[G];"disabled"===J.track.mode&&J.track.mode!==J.storedMode&&(J.track.mode=J.storedMode)}W.removeEventListener("change",restoreTrackMode)};this.on("webkitbeginfullscreen",function(){W.removeEventListener("change",takeMetadataTrackSnapshot),W.removeEventListener("change",restoreTrackMode),W.addEventListener("change",restoreTrackMode)}),this.on("webkitendfullscreen",function(){W.removeEventListener("change",takeMetadataTrackSnapshot),W.addEventListener("change",takeMetadataTrackSnapshot),W.removeEventListener("change",restoreTrackMode)})},W.overrideNative_=function(R,W){var G=this;if(W===this["featuresNative"+R+"Tracks"]){var J=R.toLowerCase();this[J+"TracksListeners_"]&&Object.keys(this[J+"TracksListeners_"]).forEach(function(R){G.el()[J+"Tracks"].removeEventListener(R,G[J+"TracksListeners_"][R])}),this["featuresNative"+R+"Tracks"]=!W,this[J+"TracksListeners_"]=null,this.proxyNativeTracksForType_(J)}},W.overrideNativeAudioTracks=function(R){this.overrideNative_("Audio",R)},W.overrideNativeVideoTracks=function(R){this.overrideNative_("Video",R)},W.proxyNativeTracksForType_=function(R){var W=this,G=ru[R],J=this.el()[G.getterName],et=this[G.getterName]();if(this["featuresNative"+G.capitalName+"Tracks"]&&J&&J.addEventListener){var er={change:function(G){var J={type:"change",target:et,currentTarget:et,srcElement:et};et.trigger(J),"text"===R&&W[rd.remoteText.getterName]().trigger(J)},addtrack:function(R){et.addTrack(R.track)},removetrack:function(R){et.removeTrack(R.track)}},removeOldTracks=function(){for(var R=[],W=0;W<et.length;W++){for(var G=!1,er=0;er<J.length;er++)if(J[er]===et[W]){G=!0;break}G||R.push(et[W])}for(;R.length;)et.removeTrack(R.shift())};this[G.getterName+"Listeners_"]=er,Object.keys(er).forEach(function(R){var G=er[R];J.addEventListener(R,G),W.on("dispose",function(W){return J.removeEventListener(R,G)})}),this.on("loadstart",removeOldTracks),this.on("dispose",function(R){return W.off("loadstart",removeOldTracks)})}},W.proxyNativeTracks_=function(){var R=this;ru.names.forEach(function(W){R.proxyNativeTracksForType_(W)})},W.createEl=function(){var R=this.options_.tag;if(!R||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(R){var W=R.cloneNode(!0);R.parentNode&&R.parentNode.insertBefore(W,R),Html5.disposeMediaElement(R),R=W}else{R=ev().createElement("video");var G=mergeOptions$3({},this.options_.tag&&getAttributes(this.options_.tag));tD&&!0===this.options_.nativeControlsForTouch||delete G.controls,setAttributes(R,video_es_assign(G,{id:this.options_.techId,class:"vjs-tech"}))}R.playerId=this.options_.playerId}void 0!==this.options_.preload&&setAttribute(R,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(R.disablePictureInPicture=this.options_.disablePictureInPicture);for(var J=["loop","muted","playsinline","autoplay"],et=0;et<J.length;et++){var er=J[et],en=this.options_[er];void 0!==en&&(en?setAttribute(R,er,er):removeAttribute(R,er),R[er]=en)}return R},W.handleLateInit_=function(R){if(0!==R.networkState&&3!==R.networkState){if(0===R.readyState){var W=!1,setLoadstartFired=function(){W=!0};this.on("loadstart",setLoadstartFired);var triggerLoadstart=function(){W||this.trigger("loadstart")};this.on("loadedmetadata",triggerLoadstart),this.ready(function(){this.off("loadstart",setLoadstartFired),this.off("loadedmetadata",triggerLoadstart),W||this.trigger("loadstart")});return}var G=["loadstart"];G.push("loadedmetadata"),R.readyState>=2&&G.push("loadeddata"),R.readyState>=3&&G.push("canplay"),R.readyState>=4&&G.push("canplaythrough"),this.ready(function(){G.forEach(function(R){this.trigger(R)},this)})}},W.setScrubbing=function(R){this.isScrubbing_=R},W.scrubbing=function(){return this.isScrubbing_},W.setCurrentTime=function(R){try{this.isScrubbing_&&this.el_.fastSeek&&tR?this.el_.fastSeek(R):this.el_.currentTime=R}catch(R){th(R,"Video is not ready. (Video.js)")}},W.duration=function(){var R=this;return this.el_.duration===1/0&&tw&&tC&&0===this.el_.currentTime?(this.on("timeupdate",function checkProgress(){R.el_.currentTime>0&&(R.el_.duration===1/0&&R.trigger("durationchange"),R.off("timeupdate",checkProgress))}),NaN):this.el_.duration||NaN},W.width=function(){return this.el_.offsetWidth},W.height=function(){return this.el_.offsetHeight},W.proxyWebkitFullscreen_=function(){var R=this;if("webkitDisplayingFullscreen"in this.el_){var endFn=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},beginFn=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",endFn),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",beginFn),this.on("dispose",function(){R.off("webkitbeginfullscreen",beginFn),R.off("webkitendfullscreen",endFn)})}},W.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var R=em().navigator&&em().navigator.userAgent||"";if(/Android/.test(R)||!/Chrome|Mac OS X 10.5/.test(R))return!0}return!1},W.enterFullScreen=function(){var R=this.el_;if(R.paused&&R.networkState<=R.HAVE_METADATA)silencePromise(this.el_.play()),this.setTimeout(function(){R.pause();try{R.webkitEnterFullScreen()}catch(R){this.trigger("fullscreenerror",R)}},0);else try{R.webkitEnterFullScreen()}catch(R){this.trigger("fullscreenerror",R)}},W.exitFullScreen=function(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()},W.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},W.requestVideoFrameCallback=function(W){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(W):R.prototype.requestVideoFrameCallback.call(this,W)},W.cancelVideoFrameCallback=function(W){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(W):R.prototype.cancelVideoFrameCallback.call(this,W)},W.src=function(R){if(void 0===R)return this.el_.src;this.setSrc(R)},W.reset=function(){Html5.resetMediaElement(this.el_)},W.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},W.setControls=function(R){this.el_.controls=!!R},W.addTextTrack=function(W,G,J){return this.featuresNativeTextTracks?this.el_.addTextTrack(W,G,J):R.prototype.addTextTrack.call(this,W,G,J)},W.createRemoteTextTrack=function(W){if(!this.featuresNativeTextTracks)return R.prototype.createRemoteTextTrack.call(this,W);var G=ev().createElement("track");return W.kind&&(G.kind=W.kind),W.label&&(G.label=W.label),(W.language||W.srclang)&&(G.srclang=W.language||W.srclang),W.default&&(G.default=W.default),W.id&&(G.id=W.id),W.src&&(G.src=W.src),G},W.addRemoteTextTrack=function(W,G){var J=R.prototype.addRemoteTextTrack.call(this,W,G);return this.featuresNativeTextTracks&&this.el().appendChild(J),J},W.removeRemoteTextTrack=function(W){if(R.prototype.removeRemoteTextTrack.call(this,W),this.featuresNativeTextTracks)for(var G=this.$$("track"),J=G.length;J--;)(W===G[J]||W===G[J].track)&&this.el().removeChild(G[J])},W.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var R={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(R.droppedVideoFrames=this.el().webkitDroppedFrameCount,R.totalVideoFrames=this.el().webkitDecodedFrameCount),em().performance&&"function"==typeof em().performance.now?R.creationTime=em().performance.now():em().performance&&em().performance.timing&&"number"==typeof em().performance.timing.navigationStart&&(R.creationTime=em().Date.now()-em().performance.timing.navigationStart),R},Html5}(rf);defineLazyProperty(nN,"TEST_VID",function(){if(isReal()){var R=ev().createElement("video"),W=ev().createElement("track");return W.kind="captions",W.srclang="en",W.label="English",R.appendChild(W),R}}),nN.isSupported=function(){try{nN.TEST_VID.volume=.5}catch(R){return!1}return!!(nN.TEST_VID&&nN.TEST_VID.canPlayType)},nN.canPlayType=function(R){return nN.TEST_VID.canPlayType(R)},nN.canPlaySource=function(R,W){return nN.canPlayType(R.type)},nN.canControlVolume=function(){try{var R=nN.TEST_VID.volume;nN.TEST_VID.volume=R/2+.1;var W=R!==nN.TEST_VID.volume;if(W&&tL)return em().setTimeout(function(){nN&&nN.prototype&&(nN.prototype.featuresVolumeControl=R!==nN.TEST_VID.volume)}),!1;return W}catch(R){return!1}},nN.canMuteVolume=function(){try{var R=nN.TEST_VID.muted;return nN.TEST_VID.muted=!R,nN.TEST_VID.muted?setAttribute(nN.TEST_VID,"muted","muted"):removeAttribute(nN.TEST_VID,"muted","muted"),R!==nN.TEST_VID.muted}catch(R){return!1}},nN.canControlPlaybackRate=function(){if(tw&&tC&&tk<58)return!1;try{var R=nN.TEST_VID.playbackRate;return nN.TEST_VID.playbackRate=R/2+.1,R!==nN.TEST_VID.playbackRate}catch(R){return!1}},nN.canOverrideAttributes=function(){try{var noop=function(){};Object.defineProperty(ev().createElement("video"),"src",{get:noop,set:noop}),Object.defineProperty(ev().createElement("audio"),"src",{get:noop,set:noop}),Object.defineProperty(ev().createElement("video"),"innerHTML",{get:noop,set:noop}),Object.defineProperty(ev().createElement("audio"),"innerHTML",{get:noop,set:noop})}catch(R){return!1}return!0},nN.supportsNativeTextTracks=function(){return tR||tL&&tC},nN.supportsNativeVideoTracks=function(){return!!(nN.TEST_VID&&nN.TEST_VID.videoTracks)},nN.supportsNativeAudioTracks=function(){return!!(nN.TEST_VID&&nN.TEST_VID.audioTracks)},nN.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(R){var W=R[0],G=R[1];defineLazyProperty(nN.prototype,W,function(){return nN[G]()},!0)}),nN.prototype.featuresVolumeControl=nN.canControlVolume(),nN.prototype.movingMediaElementInDOM=!tL,nN.prototype.featuresFullscreenResize=!0,nN.prototype.featuresProgressEvents=!0,nN.prototype.featuresTimeupdateEvents=!0,nN.prototype.featuresVideoFrameCallback=!!(nN.TEST_VID&&nN.TEST_VID.requestVideoFrameCallback),nN.patchCanPlayType=function(){!(tS>=4)||tO||tC||(ef=nN.TEST_VID&&nN.TEST_VID.constructor.prototype.canPlayType,nN.TEST_VID.constructor.prototype.canPlayType=function(R){return R&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(R)?"maybe":ef.call(this,R)})},nN.unpatchCanPlayType=function(){var R=nN.TEST_VID.constructor.prototype.canPlayType;return ef&&(nN.TEST_VID.constructor.prototype.canPlayType=ef),R},nN.patchCanPlayType(),nN.disposeMediaElement=function(R){if(R){for(R.parentNode&&R.parentNode.removeChild(R);R.hasChildNodes();)R.removeChild(R.firstChild);R.removeAttribute("src"),"function"==typeof R.load&&function(){try{R.load()}catch(R){}}()}},nN.resetMediaElement=function(R){if(R){for(var W=R.querySelectorAll("source"),G=W.length;G--;)R.removeChild(W[G]);R.removeAttribute("src"),"function"==typeof R.load&&function(){try{R.load()}catch(R){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(R){nN.prototype[R]=function(){return this.el_[R]||this.el_.hasAttribute(R)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(R){nN.prototype["set"+toTitleCase$1(R)]=function(W){this.el_[R]=W,W?this.el_.setAttribute(R,R):this.el_.removeAttribute(R)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(R){nN.prototype[R]=function(){return this.el_[R]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(R){nN.prototype["set"+toTitleCase$1(R)]=function(W){this.el_[R]=W}}),["pause","load","play"].forEach(function(R){nN.prototype[R]=function(){return this.el_[R]()}}),rf.withSourceHandlers(nN),nN.nativeSourceHandler={},nN.nativeSourceHandler.canPlayType=function(R){try{return nN.TEST_VID.canPlayType(R)}catch(R){return""}},nN.nativeSourceHandler.canHandleSource=function(R,W){if(R.type)return nN.nativeSourceHandler.canPlayType(R.type);if(R.src){var G=getFileExtension(R.src);return nN.nativeSourceHandler.canPlayType("video/"+G)}return""},nN.nativeSourceHandler.handleSource=function(R,W,G){W.setSrc(R.src)},nN.nativeSourceHandler.dispose=function(){},nN.registerSourceHandler(nN.nativeSourceHandler),rf.registerTech("Html5",nN);var nB=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],nZ={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},nU=["tiny","xsmall","small","medium","large","xlarge","huge"],nF={};nU.forEach(function(R){var W="x"===R.charAt(0)?"x-"+R.substring(1):R;nF[R]="vjs-layout-"+W});var nz={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},nH=function(R){function Player(W,G,J){if(W.id=W.id||G.id||"vjs_video_"+tz++,(G=video_es_assign(Player.getTagSettings(W),G)).initChildren=!1,G.createEl=!1,G.evented=!1,G.reportTouchActivity=!1,!G.language){if("function"==typeof W.closest){var et,er=W.closest("[lang]");er&&er.getAttribute&&(G.language=er.getAttribute("lang"))}else for(var en=W;en&&1===en.nodeType;){if(getAttributes(en).hasOwnProperty("lang")){G.language=en.getAttribute("lang");break}en=en.parentNode}}if((et=R.call(this,null,G,J)||this).boundDocumentFullscreenChange_=function(R){return et.documentFullscreenChange_(R)},et.boundFullWindowOnEscKey_=function(R){return et.fullWindowOnEscKey(R)},et.boundUpdateStyleEl_=function(R){return et.updateStyleEl_(R)},et.boundApplyInitTime_=function(R){return et.applyInitTime_(R)},et.boundUpdateCurrentBreakpoint_=function(R){return et.updateCurrentBreakpoint_(R)},et.boundHandleTechClick_=function(R){return et.handleTechClick_(R)},et.boundHandleTechDoubleClick_=function(R){return et.handleTechDoubleClick_(R)},et.boundHandleTechTouchStart_=function(R){return et.handleTechTouchStart_(R)},et.boundHandleTechTouchMove_=function(R){return et.handleTechTouchMove_(R)},et.boundHandleTechTouchEnd_=function(R){return et.handleTechTouchEnd_(R)},et.boundHandleTechTap_=function(R){return et.handleTechTap_(R)},et.isFullscreen_=!1,et.log=tg(et.id_),et.fsApi_=tc,et.isPosterFromTech_=!1,et.queuedCallbacks_=[],et.isReady_=!1,et.hasStarted_=!1,et.userActive_=!1,et.debugEnabled_=!1,et.audioOnlyMode_=!1,et.audioPosterMode_=!1,et.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!et.options_||!et.options_.techOrder||!et.options_.techOrder.length)throw Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(et.tag=W,et.tagAttributes=W&&getAttributes(W),et.language(et.options_.language),G.languages){var ei={};Object.getOwnPropertyNames(G.languages).forEach(function(R){ei[R.toLowerCase()]=G.languages[R]}),et.languages_=ei}else et.languages_=Player.prototype.options_.languages;et.resetCache_(),et.poster_=G.poster||"",et.controls_=!!G.controls,W.controls=!1,W.removeAttribute("controls"),et.changingSrc_=!1,et.playCallbacks_=[],et.playTerminatedQueue_=[],W.hasAttribute("autoplay")?et.autoplay(!0):et.autoplay(et.options_.autoplay),G.plugins&&Object.keys(G.plugins).forEach(function(R){if("function"!=typeof et[R])throw Error('plugin "'+R+'" does not exist')}),et.scrubbing_=!1,et.el_=et.createEl(),evented((0,ew.Z)(et),{eventBusKey:"el_"}),et.fsApi_.requestFullscreen&&(on(ev(),et.fsApi_.fullscreenchange,et.boundDocumentFullscreenChange_),et.on(et.fsApi_.fullscreenchange,et.boundDocumentFullscreenChange_)),et.fluid_&&et.on(["playerreset","resize"],et.boundUpdateStyleEl_);var eo=mergeOptions$3(et.options_);G.plugins&&Object.keys(G.plugins).forEach(function(R){et[R](G.plugins[R])}),G.debug&&et.debug(!0),et.options_.playerOptions=eo,et.middleware_=[],et.playbackRates(G.playbackRates),et.initChildren(),et.isAudio("audio"===W.nodeName.toLowerCase()),et.controls()?et.addClass("vjs-controls-enabled"):et.addClass("vjs-controls-disabled"),et.el_.setAttribute("role","region"),et.isAudio()?et.el_.setAttribute("aria-label",et.localize("Audio Player")):et.el_.setAttribute("aria-label",et.localize("Video Player")),et.isAudio()&&et.addClass("vjs-audio"),et.flexNotSupported_()&&et.addClass("vjs-no-flex"),tD&&et.addClass("vjs-touch-enabled"),tL||et.addClass("vjs-workinghover"),Player.players[et.id_]=(0,ew.Z)(et);var es=ta.split(".")[0];return et.addClass("vjs-v"+es),et.userActive(!0),et.reportUserActivity(),et.one("play",function(R){return et.listenForUserActivity_(R)}),et.on("stageclick",function(R){return et.handleStageClick_(R)}),et.on("keydown",function(R){return et.handleKeyDown(R)}),et.on("languagechange",function(R){return et.handleLanguagechange(R)}),et.breakpoints(et.options_.breakpoints),et.responsive(et.options_.responsive),et.on("ready",function(){et.audioPosterMode(et.options_.audioPosterMode),et.audioOnlyMode(et.options_.audioOnlyMode)}),et}(0,eS.Z)(Player,R);var W=Player.prototype;return W.dispose=function(){var W=this;this.trigger("dispose"),this.off("dispose"),off(ev(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),off(ev(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),Player.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),rg[this.id()]=null,rp.names.forEach(function(R){var G=W[rp[R].getterName]();G&&G.off&&G.off()}),R.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},W.createEl=function(){var W,G=this.tag,J=this.playerElIngest_=G.parentNode&&G.parentNode.hasAttribute&&G.parentNode.hasAttribute("data-vjs-player"),et="video-js"===this.tag.tagName.toLowerCase();J?W=this.el_=G.parentNode:et||(W=this.el_=R.prototype.createEl.call(this,"div"));var er=getAttributes(G);if(et){for(W=this.el_=G,G=this.tag=ev().createElement("video");W.children.length;)G.appendChild(W.firstChild);hasClass(W,"video-js")||addClass(W,"video-js"),W.appendChild(G),J=this.playerElIngest_=W,Object.keys(W).forEach(function(R){try{G[R]=W[R]}catch(R){}})}if(G.setAttribute("tabindex","-1"),er.tabindex="-1",(tE||tC&&tA)&&(G.setAttribute("role","application"),er.role="application"),G.removeAttribute("width"),G.removeAttribute("height"),"width"in er&&delete er.width,"height"in er&&delete er.height,Object.getOwnPropertyNames(er).forEach(function(R){et&&"class"===R||W.setAttribute(R,er[R]),et&&G.setAttribute(R,er[R])}),G.playerId=G.id,G.id+="_html5_api",G.className="vjs-tech",G.player=W.player=this,this.addClass("vjs-paused"),!0!==em().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=createStyleElement("vjs-styles-dimensions");var en=tB(".vjs-styles-defaults"),ei=tB("head");ei.insertBefore(this.styleEl_,en?en.nextSibling:ei.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var eo=G.getElementsByTagName("a"),es=0;es<eo.length;es++){var ec=eo.item(es);addClass(ec,"vjs-hidden"),ec.setAttribute("hidden","hidden")}return G.initNetworkState_=G.networkState,G.parentNode&&!J&&G.parentNode.insertBefore(W,G),prependTo(G,W),this.children_.unshift(G),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=W,W},W.crossOrigin=function(R){if(!R)return this.techGet_("crossOrigin");if("anonymous"!==R&&"use-credentials"!==R){th.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+R+'"');return}this.techCall_("setCrossOrigin",R)},W.width=function(R){return this.dimension("width",R)},W.height=function(R){return this.dimension("height",R)},W.dimension=function(R,W){var G=R+"_";if(void 0===W)return this[G]||0;if(""===W||"auto"===W){this[G]=void 0,this.updateStyleEl_();return}var J=parseFloat(W);if(isNaN(J)){th.error('Improper value "'+W+'" supplied for for '+R);return}this[G]=J,this.updateStyleEl_()},W.fluid=function(R){var W=this;if(void 0===R)return!!this.fluid_;this.fluid_=!!R,isEvented(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),R?(this.addClass("vjs-fluid"),this.fill(!1),addEventedCallback(this,function(){W.on(["playerreset","resize"],W.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()},W.fill=function(R){if(void 0===R)return!!this.fill_;this.fill_=!!R,R?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},W.aspectRatio=function(R){if(void 0===R)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(R))throw Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=R,this.fluid(!0),this.updateStyleEl_()},W.updateStyleEl_=function(){if(!0===em().VIDEOJS_NO_DYNAMIC_STYLE){var R,W,G,J="number"==typeof this.width_?this.width_:this.options_.width,et="number"==typeof this.height_?this.height_:this.options_.height,er=this.tech_&&this.tech_.el();er&&(J>=0&&(er.width=J),et>=0&&(er.height=et));return}var en=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),ei=en[1]/en[0];R=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/ei:this.videoWidth()||300,W=void 0!==this.height_?this.height_:R*ei,G=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(G),setTextContent(this.styleEl_,"\n      ."+G+" {\n        width: "+R+"px;\n        height: "+W+"px;\n      }\n\n      ."+G+".vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: "+100*ei+"%;\n      }\n    ")},W.loadTech_=function(R,W){var G=this;this.tech_&&this.unloadTech_();var J=toTitleCase$1(R),et=R.charAt(0).toLowerCase()+R.slice(1);"Html5"!==J&&this.tag&&(rf.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=J,this.isReady_=!1;var er=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(er=!1);var en={source:W,autoplay:er,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+et+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};rp.names.forEach(function(R){var W=rp[R];en[W.getterName]=G[W.privateName]}),video_es_assign(en,this.options_[J]),video_es_assign(en,this.options_[et]),video_es_assign(en,this.options_[R.toLowerCase()]),this.tag&&(en.tag=this.tag),W&&W.src===this.cache_.src&&this.cache_.currentTime>0&&(en.startTime=this.cache_.currentTime);var ei=rf.getTech(R);if(!ei)throw Error("No Tech named '"+J+"' exists! '"+J+"' should be registered using videojs.registerTech()'");this.tech_=new ei(en),this.tech_.ready(bind(this,this.handleTechReady_),!0),t0.jsonToTextTracks(this.textTracksJson_||[],this.tech_),nB.forEach(function(R){G.on(G.tech_,R,function(W){return G["handleTech"+toTitleCase$1(R)+"_"](W)})}),Object.keys(nZ).forEach(function(R){G.on(G.tech_,R,function(W){if(0===G.tech_.playbackRate()&&G.tech_.seeking()){G.queuedCallbacks_.push({callback:G["handleTech"+nZ[R]+"_"].bind(G),event:W});return}G["handleTech"+nZ[R]+"_"](W)})}),this.on(this.tech_,"loadstart",function(R){return G.handleTechLoadStart_(R)}),this.on(this.tech_,"sourceset",function(R){return G.handleTechSourceset_(R)}),this.on(this.tech_,"waiting",function(R){return G.handleTechWaiting_(R)}),this.on(this.tech_,"ended",function(R){return G.handleTechEnded_(R)}),this.on(this.tech_,"seeking",function(R){return G.handleTechSeeking_(R)}),this.on(this.tech_,"play",function(R){return G.handleTechPlay_(R)}),this.on(this.tech_,"firstplay",function(R){return G.handleTechFirstPlay_(R)}),this.on(this.tech_,"pause",function(R){return G.handleTechPause_(R)}),this.on(this.tech_,"durationchange",function(R){return G.handleTechDurationChange_(R)}),this.on(this.tech_,"fullscreenchange",function(R,W){return G.handleTechFullscreenChange_(R,W)}),this.on(this.tech_,"fullscreenerror",function(R,W){return G.handleTechFullscreenError_(R,W)}),this.on(this.tech_,"enterpictureinpicture",function(R){return G.handleTechEnterPictureInPicture_(R)}),this.on(this.tech_,"leavepictureinpicture",function(R){return G.handleTechLeavePictureInPicture_(R)}),this.on(this.tech_,"error",function(R){return G.handleTechError_(R)}),this.on(this.tech_,"posterchange",function(R){return G.handleTechPosterChange_(R)}),this.on(this.tech_,"textdata",function(R){return G.handleTechTextData_(R)}),this.on(this.tech_,"ratechange",function(R){return G.handleTechRateChange_(R)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===J&&this.tag||prependTo(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},W.unloadTech_=function(){var R=this;rp.names.forEach(function(W){var G=rp[W];R[G.privateName]=R[G.getterName]()}),this.textTracksJson_=t0.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},W.tech=function(R){return void 0===R&&th.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},W.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},W.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},W.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},W.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},W.manualAutoplay_=function(R){var W,G=this;if(this.tech_&&"string"==typeof R){var resolveMuted=function(){var R=G.muted();G.muted(!0);var restoreMuted=function(){G.muted(R)};G.playTerminatedQueue_.push(restoreMuted);var W=G.play();if(isPromise(W))return W.catch(function(R){throw restoreMuted(),Error("Rejection at manualAutoplay. Restoring muted value. "+(R||""))})};if("any"!==R||this.muted()?W="muted"!==R||this.muted()?this.play():resolveMuted():isPromise(W=this.play())&&(W=W.catch(resolveMuted)),isPromise(W))return W.then(function(){G.trigger({type:"autoplay-success",autoplay:R})}).catch(function(){G.trigger({type:"autoplay-failure",autoplay:R})})}},W.updateSourceCaches_=function(R){void 0===R&&(R="");var W=R,G="";"string"!=typeof W&&(W=R.src,G=R.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],W&&!G&&(G=findMimetype(this,W)),this.cache_.source=mergeOptions$3({},R,{src:W,type:G});for(var J=this.cache_.sources.filter(function(R){return R.src&&R.src===W}),et=[],er=this.$$("source"),en=[],ei=0;ei<er.length;ei++){var eo=getAttributes(er[ei]);et.push(eo),eo.src&&eo.src===W&&en.push(eo.src)}en.length&&!J.length?this.cache_.sources=et:J.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=W},W.handleTechSourceset_=function(R){var W=this;if(!this.changingSrc_){var updateSourceCaches=function(R){return W.updateSourceCaches_(R)},G=this.currentSource().src,J=R.src;G&&!/^blob:/.test(G)&&/^blob:/.test(J)&&(!this.lastSource_||this.lastSource_.tech!==J&&this.lastSource_.player!==G)&&(updateSourceCaches=function(){}),updateSourceCaches(J),R.src||this.tech_.any(["sourceset","loadstart"],function(R){if("sourceset"!==R.type){var G=W.techGet("currentSrc");W.lastSource_.tech=G,W.updateSourceCaches_(G)}})}this.lastSource_={player:this.currentSource().src,tech:R.src},this.trigger({src:R.src,type:"sourceset"})},W.hasStarted=function(R){if(void 0===R)return this.hasStarted_;R!==this.hasStarted_&&(this.hasStarted_=R,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},W.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},W.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(R){return R.callback(R.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},W.handleTechWaiting_=function(){var R=this;this.addClass("vjs-waiting"),this.trigger("waiting");var W=this.currentTime();this.on("timeupdate",function timeUpdateListener(){W!==R.currentTime()&&(R.removeClass("vjs-waiting"),R.off("timeupdate",timeUpdateListener))})},W.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},W.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},W.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},W.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},W.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},W.handleTechFirstPlay_=function(){this.options_.starttime&&(th.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},W.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},W.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},W.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},W.handleTechClick_=function(R){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,R):this.paused()?silencePromise(this.play()):this.pause())},W.handleTechDoubleClick_=function(R){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(W){return W.contains(R.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,R):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},W.handleTechTap_=function(){this.userActive(!this.userActive())},W.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},W.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},W.handleTechTouchEnd_=function(R){R.cancelable&&R.preventDefault()},W.handleStageClick_=function(){this.reportUserActivity()},W.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},W.documentFullscreenChange_=function(R){var W=R.target.player;if(!W||W===this){var G=this.el(),J=ev()[this.fsApi_.fullscreenElement]===G;!J&&G.matches?J=G.matches(":"+this.fsApi_.fullscreen):!J&&G.msMatchesSelector&&(J=G.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(J)}},W.handleTechFullscreenChange_=function(R,W){var G=this;W&&(W.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){G.removeClass("vjs-ios-native-fs")})),this.isFullscreen(W.isFullscreen))},W.handleTechFullscreenError_=function(R,W){this.trigger("fullscreenerror",W)},W.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},W.handleTechEnterPictureInPicture_=function(R){this.isInPictureInPicture(!0)},W.handleTechLeavePictureInPicture_=function(R){this.isInPictureInPicture(!1)},W.handleTechError_=function(){var R=this.tech_.error();this.error(R)},W.handleTechTextData_=function(){var R=null;arguments.length>1&&(R=arguments[1]),this.trigger("textdata",R)},W.getCache=function(){return this.cache_},W.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},W.techCall_=function(R,W){this.ready(function(){if(R in rv){var G;return G=this.middleware_,this.tech_[R](G.reduce(middlewareIterator(R),W))}if(R in rb)return mediate(this.middleware_,this.tech_,R,W);try{this.tech_&&this.tech_[R](W)}catch(R){throw th(R),R}},!0)},W.techGet_=function(R){if(this.tech_&&this.tech_.isReady_){if(R in ry){var W,G;return W=this.middleware_,G=this.tech_,W.reduceRight(middlewareIterator(R),G[R]())}if(R in rb)return mediate(this.middleware_,this.tech_,R);try{return this.tech_[R]()}catch(W){if(void 0===this.tech_[R])throw th("Video.js: "+R+" method not defined for "+this.techName_+" playback technology.",W),W;if("TypeError"===W.name)throw th("Video.js: "+R+" unavailable on "+this.techName_+" playback technology element.",W),this.tech_.isReady_=!1,W;throw th(W),W}}},W.play=function(){var R=this,W=this.options_.Promise||em().Promise;return W?new W(function(W){R.play_(W)}):this.play_()},W.play_=function(R){var W=this;void 0===R&&(R=silencePromise),this.playCallbacks_.push(R);var G=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),J=!!(tR||tL);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!G){this.waitToPlay_=function(R){W.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!G&&J&&this.load();return}var et=this.techGet_("play");J&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===et?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(et)},W.runPlayTerminatedQueue_=function(){var R=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],R.forEach(function(R){R()})},W.runPlayCallbacks_=function(R){var W=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],W.forEach(function(W){W(R)})},W.pause=function(){this.techCall_("pause")},W.paused=function(){return!1!==this.techGet_("paused")},W.played=function(){return this.techGet_("played")||createTimeRanges(0,0)},W.scrubbing=function(R){if(void 0===R)return this.scrubbing_;this.scrubbing_=!!R,this.techCall_("setScrubbing",this.scrubbing_),R?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},W.currentTime=function(R){if(void 0!==R){if(R<0&&(R=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=R,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",R),this.cache_.initTime=0;return}return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime},W.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},W.duration=function(R){if(void 0===R)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(R=parseFloat(R))<0&&(R=1/0),R===this.cache_.duration||(this.cache_.duration=R,R===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(R)||this.trigger("durationchange"))},W.remainingTime=function(){return this.duration()-this.currentTime()},W.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},W.buffered=function(){var R=this.techGet_("buffered");return R&&R.length||(R=createTimeRanges(0,0)),R},W.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration())},W.bufferedEnd=function(){var R=this.buffered(),W=this.duration(),G=R.end(R.length-1);return G>W&&(G=W),G},W.volume=function(R){var W;if(void 0!==R){W=Math.max(0,Math.min(1,parseFloat(R))),this.cache_.volume=W,this.techCall_("setVolume",W),W>0&&this.lastVolume_(W);return}return isNaN(W=parseFloat(this.techGet_("volume")))?1:W},W.muted=function(R){if(void 0!==R){this.techCall_("setMuted",R);return}return this.techGet_("muted")||!1},W.defaultMuted=function(R){return void 0!==R?this.techCall_("setDefaultMuted",R):this.techGet_("defaultMuted")||!1},W.lastVolume_=function(R){if(void 0!==R&&0!==R){this.cache_.lastVolume=R;return}return this.cache_.lastVolume},W.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},W.isFullscreen=function(R){if(void 0!==R){var W=this.isFullscreen_;this.isFullscreen_=!!R,this.isFullscreen_!==W&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_},W.requestFullscreen=function(R){var W=this.options_.Promise||em().Promise;if(W){var G=this;return new W(function(W,J){function offHandler(){G.off("fullscreenerror",errorHandler),G.off("fullscreenchange",changeHandler)}function changeHandler(){offHandler(),W()}function errorHandler(R,W){offHandler(),J(W)}G.one("fullscreenchange",changeHandler),G.one("fullscreenerror",errorHandler);var et=G.requestFullscreenHelper_(R);et&&(et.then(offHandler,offHandler),et.then(W,J))})}return this.requestFullscreenHelper_()},W.requestFullscreenHelper_=function(R){var W,G=this;if(this.fsApi_.prefixed||(W=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0===R||(W=R)),this.fsApi_.requestFullscreen){var J=this.el_[this.fsApi_.requestFullscreen](W);return J&&J.then(function(){return G.isFullscreen(!0)},function(){return G.isFullscreen(!1)}),J}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},W.exitFullscreen=function(){var R=this.options_.Promise||em().Promise;if(R){var W=this;return new R(function(R,G){function offHandler(){W.off("fullscreenerror",errorHandler),W.off("fullscreenchange",changeHandler)}function changeHandler(){offHandler(),R()}function errorHandler(R,W){offHandler(),G(W)}W.one("fullscreenchange",changeHandler),W.one("fullscreenerror",errorHandler);var J=W.exitFullscreenHelper_();J&&(J.then(offHandler,offHandler),J.then(R,G))})}return this.exitFullscreenHelper_()},W.exitFullscreenHelper_=function(){var R=this;if(this.fsApi_.requestFullscreen){var W=ev()[this.fsApi_.exitFullscreen]();return W&&silencePromise(W.then(function(){return R.isFullscreen(!1)})),W}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},W.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=ev().documentElement.style.overflow,on(ev(),"keydown",this.boundFullWindowOnEscKey_),ev().documentElement.style.overflow="hidden",addClass(ev().body,"vjs-full-window"),this.trigger("enterFullWindow")},W.fullWindowOnEscKey=function(R){ex().isEventKey(R,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},W.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,off(ev(),"keydown",this.boundFullWindowOnEscKey_),ev().documentElement.style.overflow=this.docOrigOverflow,removeClass(ev().body,"vjs-full-window"),this.trigger("exitFullWindow")},W.disablePictureInPicture=function(R){if(void 0===R)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",R),this.options_.disablePictureInPicture=R,this.trigger("disablepictureinpicturechanged")},W.isInPictureInPicture=function(R){if(void 0!==R){this.isInPictureInPicture_=!!R,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_},W.requestPictureInPicture=function(){if("pictureInPictureEnabled"in ev()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},W.exitPictureInPicture=function(){if("pictureInPictureEnabled"in ev())return ev().exitPictureInPicture()},W.handleKeyDown=function(R){var W,G,J=this.options_.userActions;J&&J.hotkeys&&(G=(W=this.el_.ownerDocument.activeElement).tagName.toLowerCase(),W.isContentEditable||("input"===G?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(W.type):-1!==["textarea"].indexOf(G))||("function"==typeof J.hotkeys?J.hotkeys.call(this,R):this.handleHotkeys(R)))},W.handleHotkeys=function(R){var W=this.options_.userActions?this.options_.userActions.hotkeys:{},G=W.fullscreenKey,J=void 0===G?function(R){return ex().isEventKey(R,"f")}:G,et=W.muteKey,er=void 0===et?function(R){return ex().isEventKey(R,"m")}:et,en=W.playPauseKey,ei=void 0===en?function(R){return ex().isEventKey(R,"k")||ex().isEventKey(R,"Space")}:en;if(J.call(this,R)){R.preventDefault(),R.stopPropagation();var eo=tQ.getComponent("FullscreenToggle");!1!==ev()[this.fsApi_.fullscreenEnabled]&&eo.prototype.handleClick.call(this,R)}else er.call(this,R)?(R.preventDefault(),R.stopPropagation(),tQ.getComponent("MuteToggle").prototype.handleClick.call(this,R)):ei.call(this,R)&&(R.preventDefault(),R.stopPropagation(),tQ.getComponent("PlayToggle").prototype.handleClick.call(this,R))},W.canPlayType=function(R){for(var W,G=0,J=this.options_.techOrder;G<J.length;G++){var et=J[G],er=rf.getTech(et);if(er||(er=tQ.getComponent(et)),!er){th.error('The "'+et+'" tech is undefined. Skipped browser support check for that tech.');continue}if(er.isSupported()&&(W=er.canPlayType(R)))return W}return""},W.selectSource=function(R){var W,G=this,J=this.options_.techOrder.map(function(R){return[R,rf.getTech(R)]}).filter(function(R){var W=R[0],G=R[1];return G?G.isSupported():(th.error('The "'+W+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),findFirstPassingTechSourcePair=function(R,W,G){var J;return R.some(function(R){return W.some(function(W){if(J=G(R,W))return!0})}),J},finder=function(R,W){var J=R[0];if(R[1].canPlaySource(W,G.options_[J.toLowerCase()]))return{source:W,tech:J}};return(this.options_.sourceOrder?findFirstPassingTechSourcePair(R,J,function(R,W){return finder(W,R)}):findFirstPassingTechSourcePair(J,R,finder))||!1},W.handleSrc_=function(R,W){var G=this;if(void 0===R)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var J=filterSource(R);if(!J.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,W||(this.cache_.sources=J),this.updateSourceCaches_(J[0]),function(R,W,G){R.setTimeout(function(){return function setSourceHelper(R,W,G,J,et,er){void 0===R&&(R={}),void 0===W&&(W=[]),void 0===et&&(et=[]),void 0===er&&(er=!1);var en=W,ei=en[0],eo=en.slice(1);if("string"==typeof ei)setSourceHelper(R,rh[ei],G,J,et,er);else if(ei){var es=function(R,W){var G=rg[R.id()],J=null;if(null==G)return J=W(R),rg[R.id()]=[[W,J]],J;for(var et=0;et<G.length;et++){var er=G[et],en=er[0],ei=er[1];en===W&&(J=ei)}return null===J&&(J=W(R),G.push([W,J])),J}(J,ei);if(!es.setSource)return et.push(es),setSourceHelper(R,eo,G,J,et,er);es.setSource(video_es_assign({},R),function(W,en){if(W)return setSourceHelper(R,eo,G,J,et,er);et.push(es),setSourceHelper(en,R.type===en.type?eo:rh[en.type],G,J,et,er)})}else eo.length?setSourceHelper(R,eo,G,J,et,er):er?G(R,et):setSourceHelper(R,rh["*"],G,J,et,!0)}(W,rh[W.type],G,R)},1)}(this,J[0],function(R,et){if(G.middleware_=et,W||(G.cache_.sources=J),G.updateSourceCaches_(R),G.src_(R))return J.length>1?G.handleSrc_(J.slice(1)):(G.changingSrc_=!1,G.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void G.triggerReady());!function(R,W){R.forEach(function(R){return R.setTech&&R.setTech(W)})}(et,G.tech_)}),this.options_.retryOnError&&J.length>1){var retry=function(){G.error(null),G.handleSrc_(J.slice(1),!0)},stopListeningForErrors=function(){G.off("error",retry)};this.one("error",retry),this.one("playing",stopListeningForErrors),this.resetRetryOnError_=function(){G.off("error",retry),G.off("playing",stopListeningForErrors)}}},W.src=function(R){return this.handleSrc_(R,!1)},W.src_=function(R){var W,G,J=this,et=this.selectSource([R]);return!et||((W=et.tech,G=this.techName_,toTitleCase$1(W)!==toTitleCase$1(G))?(this.changingSrc_=!0,this.loadTech_(et.tech,et.source),this.tech_.ready(function(){J.changingSrc_=!1})):this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",R):this.techCall_("src",R.src),this.changingSrc_=!1},!0),!1)},W.load=function(){this.techCall_("load")},W.reset=function(){var R=this,W=this.options_.Promise||em().Promise;this.paused()||!W?this.doReset_():silencePromise(this.play().then(function(){return R.doReset_()}))},W.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),isEvented(this)&&this.trigger("playerreset")},W.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},W.resetProgressBar_=function(){this.currentTime(0);var R=this.controlBar||{},W=R.durationDisplay,G=R.remainingTimeDisplay;W&&W.updateContent(),G&&G.updateContent()},W.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},W.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},W.currentSources=function(){var R=this.currentSource(),W=[];return 0!==Object.keys(R).length&&W.push(R),this.cache_.sources||W},W.currentSource=function(){return this.cache_.source||{}},W.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},W.currentType=function(){return this.currentSource()&&this.currentSource().type||""},W.preload=function(R){if(void 0!==R){this.techCall_("setPreload",R),this.options_.preload=R;return}return this.techGet_("preload")},W.autoplay=function(R){var W;if(void 0===R)return this.options_.autoplay||!1;"string"==typeof R&&/(any|play|muted)/.test(R)||!0===R&&this.options_.normalizeAutoplay?(this.options_.autoplay=R,this.manualAutoplay_("string"==typeof R?R:"play"),W=!1):R?this.options_.autoplay=!0:this.options_.autoplay=!1,W=void 0===W?this.options_.autoplay:W,this.tech_&&this.techCall_("setAutoplay",W)},W.playsinline=function(R){return void 0!==R?(this.techCall_("setPlaysinline",R),this.options_.playsinline=R,this):this.techGet_("playsinline")},W.loop=function(R){if(void 0!==R){this.techCall_("setLoop",R),this.options_.loop=R;return}return this.techGet_("loop")},W.poster=function(R){if(void 0===R)return this.poster_;R||(R=""),R!==this.poster_&&(this.poster_=R,this.techCall_("setPoster",R),this.isPosterFromTech_=!1,this.trigger("posterchange"))},W.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var R=this.tech_.poster()||"";R!==this.poster_&&(this.poster_=R,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},W.controls=function(R){if(void 0===R)return!!this.controls_;R=!!R,this.controls_!==R&&(this.controls_=R,this.usingNativeControls()&&this.techCall_("setControls",R),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},W.usingNativeControls=function(R){if(void 0===R)return!!this.usingNativeControls_;R=!!R,this.usingNativeControls_!==R&&(this.usingNativeControls_=R,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},W.error=function(R){var W=this;if(void 0===R)return this.error_||null;if(hooks("beforeerror").forEach(function(G){var J=G(W,R);if(!(video_es_isObject(J)&&!Array.isArray(J)||"string"==typeof J||"number"==typeof J||null===J)){W.log.error("please return a value that MediaError expects in beforeerror hooks");return}R=J}),this.options_.suppressNotSupportedError&&R&&4===R.code){var triggerSuppressedError=function(){this.error(R)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],triggerSuppressedError),this.one("loadstart",function(){this.off(["click","touchstart"],triggerSuppressedError)});return}if(null===R){this.error_=R,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new MediaError(R),this.addClass("vjs-error"),th.error("(CODE:"+this.error_.code+" "+MediaError.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),hooks("error").forEach(function(R){return R(W,W.error_)})},W.reportUserActivity=function(R){this.userActivity_=!0},W.userActive=function(R){if(void 0===R)return this.userActive_;if((R=!!R)!==this.userActive_){if(this.userActive_=R,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(R){R.stopPropagation(),R.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},W.listenForUserActivity_=function(){var R,W,G,J,et=bind(this,this.reportUserActivity),handleMouseUpAndMouseLeave=function(W){et(),this.clearInterval(R)};this.on("mousedown",function(){et(),this.clearInterval(R),R=this.setInterval(et,250)}),this.on("mousemove",function(R){(R.screenX!==W||R.screenY!==G)&&(W=R.screenX,G=R.screenY,et())}),this.on("mouseup",handleMouseUpAndMouseLeave),this.on("mouseleave",handleMouseUpAndMouseLeave);var er=this.getChild("controlBar");!er||tL||tw||(er.on("mouseenter",function(R){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),er.on("mouseleave",function(R){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",et),this.on("keyup",et),this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(J);var R=this.options_.inactivityTimeout;R<=0||(J=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},R))}},250)},W.playbackRate=function(R){if(void 0!==R){this.techCall_("setPlaybackRate",R);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1},W.defaultPlaybackRate=function(R){return void 0!==R?this.techCall_("setDefaultPlaybackRate",R):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},W.isAudio=function(R){if(void 0!==R){this.isAudio_=!!R;return}return!!this.isAudio_},W.enableAudioOnlyUI_=function(){var R=this;this.addClass("vjs-audio-only-mode");var W=this.children(),G=this.getChild("ControlBar"),J=G&&G.currentHeight();W.forEach(function(W){W!==G&&W.el_&&!W.hasClass("vjs-hidden")&&(W.hide(),R.audioOnlyCache_.hiddenChildren.push(W))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(J),this.trigger("audioonlymodechange")},W.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(R){return R.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},W.audioOnlyMode=function(R){var W=this;if("boolean"!=typeof R||R===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=R;var G=this.options_.Promise||em().Promise;if(G){if(R){var J=[];return this.isInPictureInPicture()&&J.push(this.exitPictureInPicture()),this.isFullscreen()&&J.push(this.exitFullscreen()),this.audioPosterMode()&&J.push(this.audioPosterMode(!1)),G.all(J).then(function(){return W.enableAudioOnlyUI_()})}return G.resolve().then(function(){return W.disableAudioOnlyUI_()})}R?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},W.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},W.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},W.audioPosterMode=function(R){var W=this;if("boolean"!=typeof R||R===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=R;var G=this.options_.Promise||em().Promise;if(G)return R?this.audioOnlyMode()?this.audioOnlyMode(!1).then(function(){W.enablePosterModeUI_()}):G.resolve().then(function(){W.enablePosterModeUI_()}):G.resolve().then(function(){W.disablePosterModeUI_()});if(R){this.audioOnlyMode()&&this.audioOnlyMode(!1),this.enablePosterModeUI_();return}this.disablePosterModeUI_()},W.addTextTrack=function(R,W,G){if(this.tech_)return this.tech_.addTextTrack(R,W,G)},W.addRemoteTextTrack=function(R,W){if(this.tech_)return this.tech_.addRemoteTextTrack(R,W)},W.removeRemoteTextTrack=function(R){void 0===R&&(R={});var W=R.track;if(W||(W=R),this.tech_)return this.tech_.removeRemoteTextTrack(W)},W.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},W.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},W.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},W.language=function(R){if(void 0===R)return this.language_;this.language_!==String(R).toLowerCase()&&(this.language_=String(R).toLowerCase(),isEvented(this)&&this.trigger("languagechange"))},W.languages=function(){return mergeOptions$3(Player.prototype.options_.languages,this.languages_)},W.toJSON=function(){var R=mergeOptions$3(this.options_),W=R.tracks;R.tracks=[];for(var G=0;G<W.length;G++){var J=W[G];(J=mergeOptions$3(J)).player=void 0,R.tracks[G]=J}return R},W.createModal=function(R,W){var G=this;(W=W||{}).content=R||"";var J=new t2(this,W);return this.addChild(J),J.on("dispose",function(){G.removeChild(J)}),J.open(),J},W.updateCurrentBreakpoint_=function(){if(this.responsive())for(var R=this.currentBreakpoint(),W=this.currentWidth(),G=0;G<nU.length;G++){var J=nU[G];if(W<=this.breakpoints_[J]){if(R===J)return;R&&this.removeClass(nF[R]),this.addClass(nF[J]),this.breakpoint_=J;break}}},W.removeCurrentBreakpoint_=function(){var R=this.currentBreakpointClass();this.breakpoint_="",R&&this.removeClass(R)},W.breakpoints=function(R){return void 0===R||(this.breakpoint_="",this.breakpoints_=video_es_assign({},nz,R),this.updateCurrentBreakpoint_()),video_es_assign(this.breakpoints_)},W.responsive=function(R){return void 0===R?this.responsive_:(R=!!R)!==this.responsive_?(this.responsive_=R,R?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),R):void 0},W.currentBreakpoint=function(){return this.breakpoint_},W.currentBreakpointClass=function(){return nF[this.breakpoint_]||""},W.loadMedia=function(R,W){var G=this;if(R&&"object"==typeof R){this.reset(),this.cache_.media=mergeOptions$3(R);var J=this.cache_.media,et=J.artwork,er=J.poster,en=J.src,ei=J.textTracks;!et&&er&&(this.cache_.media.artwork=[{src:er,type:getMimetype(er)}]),en&&this.src(en),er&&this.poster(er),Array.isArray(ei)&&ei.forEach(function(R){return G.addRemoteTextTrack(R,!1)}),this.ready(W)}},W.getMedia=function(){if(!this.cache_.media){var R=this.poster(),W={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(R){return{kind:R.kind,label:R.label,language:R.language,src:R.src}})};return R&&(W.poster=R,W.artwork=[{src:W.poster,type:getMimetype(W.poster)}]),W}return mergeOptions$3(this.cache_.media)},Player.getTagSettings=function(R){var W={sources:[],tracks:[]},G=getAttributes(R),J=G["data-setup"];if(hasClass(R,"vjs-fill")&&(G.fill=!0),hasClass(R,"vjs-fluid")&&(G.fluid=!0),null!==J){var et=eO()(J||"{}"),er=et[0],en=et[1];er&&th.error(er),video_es_assign(G,en)}if(video_es_assign(W,G),R.hasChildNodes())for(var ei=R.childNodes,eo=0,es=ei.length;eo<es;eo++){var ec=ei[eo],el=ec.nodeName.toLowerCase();"source"===el?W.sources.push(getAttributes(ec)):"track"===el&&W.tracks.push(getAttributes(ec))}return W},W.flexNotSupported_=function(){var R=ev().createElement("i");return!("flexBasis"in R.style||"webkitFlexBasis"in R.style||"mozFlexBasis"in R.style||"msFlexBasis"in R.style||"msFlexOrder"in R.style)},W.debug=function(R){if(void 0===R)return this.debugEnabled_;R?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},W.playbackRates=function(R){if(void 0===R)return this.cache_.playbackRates;Array.isArray(R)&&R.every(function(R){return"number"==typeof R})&&(this.cache_.playbackRates=R,this.trigger("playbackrateschange"))},Player}(tQ);rp.names.forEach(function(R){var W=rp[R];nH.prototype[W.getterName]=function(){return this.tech_?this.tech_[W.getterName]():(this[W.privateName]=this[W.privateName]||new W.ListClass,this[W.privateName])}}),nH.prototype.crossorigin=nH.prototype.crossOrigin,nH.players={};var nq=em().navigator;nH.prototype.options_={techOrder:rf.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:nq&&(nq.languages&&nq.languages[0]||nq.userLanguage||nq.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(R){nH.prototype[R]=function(){return this.techGet_(R)}}),nB.forEach(function(R){nH.prototype["handleTech"+toTitleCase$1(R)+"_"]=function(){return this.trigger(R)}}),tQ.registerComponent("Player",nH);var nV="plugin",nW="activePlugins_",nG={},pluginExists=function(R){return nG.hasOwnProperty(R)},getPlugin=function(R){return pluginExists(R)?nG[R]:void 0},markPluginAsActive=function(R,W){R[nW]=R[nW]||{},R[nW][W]=!0},triggerSetupEvent=function(R,W,G){var J=(G?"before":"")+"pluginsetup";R.trigger(J,W),R.trigger(J+":"+W.name,W)},createBasicPlugin=function(R,W){var basicPluginWrapper=function(){triggerSetupEvent(this,{name:R,plugin:W,instance:null},!0);var G=W.apply(this,arguments);return markPluginAsActive(this,R),triggerSetupEvent(this,{name:R,plugin:W,instance:G}),G};return Object.keys(W).forEach(function(R){basicPluginWrapper[R]=W[R]}),basicPluginWrapper},createPluginFactory=function(R,W){return W.prototype.name=R,function(){triggerSetupEvent(this,{name:R,plugin:W,instance:null},!0);for(var G=arguments.length,J=Array(G),et=0;et<G;et++)J[et]=arguments[et];var er=(0,ej.Z)(W,[this].concat(J));return this[R]=function(){return er},triggerSetupEvent(this,er.getEventHash()),er}},n$=function(){function Plugin(R){if(this.constructor===Plugin)throw Error("Plugin must be sub-classed; not directly instantiated.");this.player=R,this.log||(this.log=this.player.log.createLogger(this.name)),evented(this),delete this.trigger,stateful(this,this.constructor.defaultState),markPluginAsActive(R,this.name),this.dispose=this.dispose.bind(this),R.on("dispose",this.dispose)}var R=Plugin.prototype;return R.version=function(){return this.constructor.VERSION},R.getEventHash=function(R){return void 0===R&&(R={}),R.name=this.name,R.plugin=this.constructor,R.instance=this,R},R.trigger=function(R,W){return void 0===W&&(W={}),trigger(this.eventBusEl_,R,this.getEventHash(W))},R.handleStateChanged=function(R){},R.dispose=function(){var R=this.name,W=this.player;this.trigger("dispose"),this.off(),W.off("dispose",this.dispose),W[nW][R]=!1,this.player=this.state=null,W[R]=createPluginFactory(R,nG[R])},Plugin.isBasic=function(R){var W="string"==typeof R?getPlugin(R):R;return"function"==typeof W&&!Plugin.prototype.isPrototypeOf(W.prototype)},Plugin.registerPlugin=function(R,W){if("string"!=typeof R)throw Error('Illegal plugin name, "'+R+'", must be a string, was '+typeof R+".");if(pluginExists(R))th.warn('A plugin named "'+R+'" already exists. You may want to avoid re-registering plugins!');else if(nH.prototype.hasOwnProperty(R))throw Error('Illegal plugin name, "'+R+'", cannot share a name with an existing player method!');if("function"!=typeof W)throw Error('Illegal plugin for "'+R+'", must be a function, was '+typeof W+".");return nG[R]=W,R!==nV&&(Plugin.isBasic(W)?nH.prototype[R]=createBasicPlugin(R,W):nH.prototype[R]=createPluginFactory(R,W)),W},Plugin.deregisterPlugin=function(R){if(R===nV)throw Error("Cannot de-register base plugin.");pluginExists(R)&&(delete nG[R],delete nH.prototype[R])},Plugin.getPlugins=function(R){var W;return void 0===R&&(R=Object.keys(nG)),R.forEach(function(R){var G=getPlugin(R);G&&((W=W||{})[R]=G)}),W},Plugin.getPluginVersion=function(R){var W=getPlugin(R);return W&&W.VERSION||""},Plugin}();n$.getPlugin=getPlugin,n$.BASE_PLUGIN_NAME=nV,n$.registerPlugin(nV,n$),nH.prototype.usingPlugin=function(R){return!!this[nW]&&!0===this[nW][R]},nH.prototype.hasPlugin=function(R){return!!pluginExists(R)};var nK=!1,normalizeId=function(R){return 0===R.indexOf("#")?R.slice(1):R};function videojs(R,W,G){var J=videojs.getPlayer(R);if(J)return W&&th.warn('Player "'+R+'" is already initialised. Options will not be applied.'),G&&J.ready(G),J;var et="string"==typeof R?tB("#"+normalizeId(R)):R;if(!isEl(et))throw TypeError("The element or ID supplied is not valid. (videojs)");return et.ownerDocument.defaultView&&et.ownerDocument.body.contains(et)||th.warn("The element supplied is not included in the DOM"),!0===(W=W||{}).restoreEl&&(W.restoreEl=(et.parentNode&&et.parentNode.hasAttribute("data-vjs-player")?et.parentNode:et).cloneNode(!0)),hooks("beforesetup").forEach(function(R){var G=R(et,mergeOptions$3(W));if(!video_es_isObject(G)||Array.isArray(G)){th.error("please return an object in beforesetup hooks");return}W=mergeOptions$3(W,G)}),J=new(tQ.getComponent("Player"))(et,W,G),hooks("setup").forEach(function(R){return R(J)}),J}if(videojs.hooks_=ts,videojs.hooks=hooks,videojs.hook=function(R,W){hooks(R,W)},videojs.hookOnce=function(R,W){hooks(R,[].concat(W).map(function(W){return function wrapper(){return removeHook(R,wrapper),W.apply(void 0,arguments)}}))},videojs.removeHook=removeHook,!0!==em().VIDEOJS_NO_DYNAMIC_STYLE&&isReal()){var nY=tB(".vjs-styles-defaults");if(!nY){nY=createStyleElement("vjs-styles-defaults");var nX=tB("head");nX&&nX.insertBefore(nY,nX.firstChild),setTextContent(nY,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: 56.25%\n      }\n    ")}}autoSetupTimeout(1,videojs),videojs.VERSION=ta,videojs.options=nH.prototype.options_,videojs.getPlayers=function(){return nH.players},videojs.getPlayer=function(R){var W,G=nH.players;if("string"==typeof R){var J=normalizeId(R),et=G[J];if(et)return et;W=tB("#"+J)}else W=R;if(isEl(W)){var er=W,en=er.player,ei=er.playerId;if(en||G[ei])return en||G[ei]}},videojs.getAllPlayers=function(){return Object.keys(nH.players).map(function(R){return nH.players[R]}).filter(Boolean)},videojs.players=nH.players,videojs.getComponent=tQ.getComponent,videojs.registerComponent=function(R,W){rf.isTech(W)&&th.warn("The "+R+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),tQ.registerComponent.call(tQ,R,W)},videojs.getTech=rf.getTech,videojs.registerTech=rf.registerTech,videojs.use=function(R,W){rh[R]=rh[R]||[],rh[R].push(W)},Object.defineProperty(videojs,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(videojs.middleware,"TERMINATOR",{value:rm,writeable:!1,enumerable:!0}),videojs.browser=tN,videojs.TOUCH_ENABLED=tD,videojs.extend=function(R,W){void 0===W&&(W={}),nK||(th.warn("videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0"),nK=!0);var subClass=function(){R.apply(this,arguments)},G={};for(var J in"object"==typeof W?(W.constructor!==Object.prototype.constructor&&(subClass=W.constructor),G=W):"function"==typeof W&&(subClass=W),(0,eA.Z)(subClass,R),R&&(subClass.super_=R),G)G.hasOwnProperty(J)&&(subClass.prototype[J]=G[J]);return subClass},videojs.mergeOptions=mergeOptions$3,videojs.bind=bind,videojs.registerPlugin=n$.registerPlugin,videojs.deregisterPlugin=n$.deregisterPlugin,videojs.plugin=function(R,W){return th.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),n$.registerPlugin(R,W)},videojs.getPlugins=n$.getPlugins,videojs.getPlugin=n$.getPlugin,videojs.getPluginVersion=n$.getPluginVersion,videojs.addLanguage=function(R,W){var G;return R=(""+R).toLowerCase(),videojs.options.languages=mergeOptions$3(videojs.options.languages,((G={})[R]=W,G)),videojs.options.languages[R]},videojs.log=th,videojs.createLogger=tg,videojs.createTimeRange=videojs.createTimeRanges=createTimeRanges,videojs.formatTime=formatTime,videojs.setFormatTime=function(R){rI=R},videojs.resetFormatTime=function(){rI=defaultImplementation},videojs.parseUrl=parseUrl,videojs.isCrossOrigin=isCrossOrigin,videojs.EventTarget=EventTarget$2,videojs.on=on,videojs.one=one,videojs.off=off,videojs.trigger=trigger,videojs.xhr=eC(),videojs.TextTrack=ra,videojs.AudioTrack=rs,videojs.VideoTrack=rc,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(R){videojs[R]=function(){return th.warn("videojs."+R+"() is deprecated; use videojs.dom."+R+"() instead"),tU[R].apply(null,arguments)}}),videojs.computedStyle=computedStyle,videojs.dom=tU,videojs.url=ro,videojs.defineLazyProperty=defineLazyProperty,videojs.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var resolveManifestRedirect=function(R,W,G){return R&&G&&G.responseURL&&W!==G.responseURL?G.responseURL:W},logger=function(R){return videojs.log.debug?videojs.log.debug.bind(videojs,"VHS:",R+" >"):function(){}},nQ=1/30,nJ=3*(1/30),filterRanges=function(R,W){var G,J=[];if(R&&R.length)for(G=0;G<R.length;G++)W(R.start(G),R.end(G))&&J.push([R.start(G),R.end(G)]);return videojs.createTimeRanges(J)},findRange=function(R,W){return filterRanges(R,function(R,G){return R-nJ<=W&&G+nJ>=W})},findNextRange=function(R,W){return filterRanges(R,function(R){return R-nQ>=W})},findGaps=function(R){if(R.length<2)return videojs.createTimeRanges();for(var W=[],G=1;G<R.length;G++){var J=R.end(G-1),et=R.start(G);W.push([J,et])}return videojs.createTimeRanges(W)},bufferIntersection=function(R,W){var G=null,J=null,et=0,er=[],en=[];if(!R||!R.length||!W||!W.length)return videojs.createTimeRange();for(var ei=R.length;ei--;)er.push({time:R.start(ei),type:"start"}),er.push({time:R.end(ei),type:"end"});for(ei=W.length;ei--;)er.push({time:W.start(ei),type:"start"}),er.push({time:W.end(ei),type:"end"});for(er.sort(function(R,W){return R.time-W.time}),ei=0;ei<er.length;ei++)"start"===er[ei].type?2==++et&&(G=er[ei].time):"end"===er[ei].type&&1==--et&&(J=er[ei].time),null!==G&&null!==J&&(en.push([G,J]),G=null,J=null);return videojs.createTimeRanges(en)},printableRange=function(R){var W=[];if(!R||!R.length)return"";for(var G=0;G<R.length;G++)W.push(R.start(G)+" => "+R.end(G));return W.join(", ")},timeRangesToArray=function(R){for(var W=[],G=0;G<R.length;G++)W.push({start:R.start(G),end:R.end(G)});return W},isRangeDifferent=function(R,W){if(R===W)return!1;if(!R&&W||!W&&R||R.length!==W.length)return!0;for(var G=0;G<R.length;G++)if(R.start(G)!==W.start(G)||R.end(G)!==W.end(G))return!0;return!1},lastBufferedEnd=function(R){if(R&&R.length&&R.end)return R.end(R.length-1)},timeAheadOf=function(R,W){var G=0;if(!R||!R.length)return G;for(var J=0;J<R.length;J++){var et=R.start(J),er=R.end(J);if(!(W>er)){if(W>et&&W<=er){G+=er-W;continue}G+=er-et}}return G},n0=videojs.createTimeRange,segmentDurationWithParts=function(R,W){if(!W.preload)return W.duration;var G=0;return(W.parts||[]).forEach(function(R){G+=R.duration}),(W.preloadHints||[]).forEach(function(W){"PART"===W.type&&(G+=R.partTargetDuration)}),G},getPartsAndSegments=function(R){return(R.segments||[]).reduce(function(R,W,G){return W.parts?W.parts.forEach(function(J,et){R.push({duration:J.duration,segmentIndex:G,partIndex:et,part:J,segment:W})}):R.push({duration:W.duration,segmentIndex:G,partIndex:null,segment:W,part:null}),R},[])},getLastParts=function(R){var W=R.segments&&R.segments.length&&R.segments[R.segments.length-1];return W&&W.parts||[]},getKnownPartCount=function(R){var W=R.preloadSegment;if(W){var G=W.parts;return(W.preloadHints||[]).reduce(function(R,W){return R+("PART"===W.type?1:0)},0)+(G&&G.length?G.length:0)}},liveEdgeDelay=function(R,W){if(W.endList)return 0;if(R&&R.suggestedPresentationDelay)return R.suggestedPresentationDelay;var G=getLastParts(W).length>0;return G&&W.serverControl&&W.serverControl.partHoldBack?W.serverControl.partHoldBack:G&&W.partTargetDuration?3*W.partTargetDuration:W.serverControl&&W.serverControl.holdBack?W.serverControl.holdBack:W.targetDuration?3*W.targetDuration:0},backwardDuration=function(R,W){var G=0,J=W-R.mediaSequence,et=R.segments[J];if(et){if(void 0!==et.start)return{result:et.start,precise:!0};if(void 0!==et.end)return{result:et.end-et.duration,precise:!0}}for(;J--;){if(void 0!==(et=R.segments[J]).end)return{result:G+et.end,precise:!0};if(G+=segmentDurationWithParts(R,et),void 0!==et.start)return{result:G+et.start,precise:!0}}return{result:G,precise:!1}},forwardDuration=function(R,W){for(var G,J=0,et=W-R.mediaSequence;et<R.segments.length;et++){if(void 0!==(G=R.segments[et]).start)return{result:G.start-J,precise:!0};if(J+=segmentDurationWithParts(R,G),void 0!==G.end)return{result:G.end-J,precise:!0}}return{result:-1,precise:!1}},intervalDuration=function(R,W,G){if(void 0===W&&(W=R.mediaSequence+R.segments.length),W<R.mediaSequence)return 0;var J=backwardDuration(R,W);if(J.precise)return J.result;var et=forwardDuration(R,W);return et.precise?et.result:J.result+G},duration=function(R,W,G){if(!R)return 0;if("number"!=typeof G&&(G=0),void 0===W){if(R.totalDuration)return R.totalDuration;if(!R.endList)return em()[1/0]}return intervalDuration(R,W,G)},sumDurations=function(R){var W=R.defaultDuration,G=R.durationList,J=R.startIndex,et=R.endIndex,er=0;if(J>et){var en=[et,J];J=en[0],et=en[1]}if(J<0){for(var ei=J;ei<Math.min(0,et);ei++)er+=W;J=0}for(var eo=J;eo<et;eo++)er+=G[eo].duration;return er},playlistEnd=function(R,W,G,J){if(!R||!R.segments)return null;if(R.endList)return duration(R);if(null===W)return null;W=W||0;var et=intervalDuration(R,R.mediaSequence+R.segments.length,W);return G&&(et-=J="number"==typeof J?J:liveEdgeDelay(null,R)),Math.max(0,et)},isBlacklisted=function(R){return R.excludeUntil&&R.excludeUntil>Date.now()},isIncompatible=function(R){return R.excludeUntil&&R.excludeUntil===1/0},isEnabled=function(R){var W=isBlacklisted(R);return!R.disabled&&!W},hasAttribute=function(R,W){return W.attributes&&W.attributes[R]},isLowestEnabledRendition=function(R,W){if(1===R.playlists.length)return!0;var G=W.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===R.playlists.filter(function(R){return!!isEnabled(R)&&(R.attributes.BANDWIDTH||0)<G}).length},playlistMatch=function(R,W){return(!!R||!!W)&&(!!R||!W)&&(!R||!!W)&&(R===W||!!R.id&&!!W.id&&R.id===W.id||!!R.resolvedUri&&!!W.resolvedUri&&R.resolvedUri===W.resolvedUri||!!R.uri&&!!W.uri&&R.uri===W.uri)},someAudioVariant=function(R,W){var G=R&&R.mediaGroups&&R.mediaGroups.AUDIO||{},J=!1;for(var et in G){for(var er in G[et])if(J=W(G[et][er]))break;if(J)break}return!!J},isAudioOnly=function(R){if(!R||!R.playlists||!R.playlists.length)return someAudioVariant(R,function(R){return R.playlists&&R.playlists.length||R.uri});for(var W=0;W<R.playlists.length;W++){var G=function(W){var G=R.playlists[W],J=G.attributes&&G.attributes.CODECS;return J&&J.split(",").every(function(R){return isAudioCodec(R)})||someAudioVariant(R,function(R){return playlistMatch(G,R)})?"continue":{v:!1}}(W);if("continue"!==G&&"object"==typeof G)return G.v}return!0},n1={liveEdgeDelay:liveEdgeDelay,duration:duration,seekable:function(R,W,G){var J=W||0,et=playlistEnd(R,W,!0,G);return null===et?n0():n0(J,et)},getMediaInfoForTime:function(R){for(var W=R.playlist,G=R.currentTime,J=R.startingSegmentIndex,et=R.startingPartIndex,er=R.startTime,en=R.experimentalExactManifestTimings,ei=G-er,eo=getPartsAndSegments(W),es=0,ec=0;ec<eo.length;ec++){var el=eo[ec];if(J===el.segmentIndex&&("number"!=typeof et||"number"!=typeof el.partIndex||et===el.partIndex)){es=ec;break}}if(ei<0){if(es>0)for(var eu=es-1;eu>=0;eu--){var ed=eo[eu];if(ei+=ed.duration,en){if(ei<0)continue}else if(ei+nQ<=0)continue;return{partIndex:ed.partIndex,segmentIndex:ed.segmentIndex,startTime:er-sumDurations({defaultDuration:W.targetDuration,durationList:eo,startIndex:es,endIndex:eu})}}return{partIndex:eo[0]&&eo[0].partIndex||null,segmentIndex:eo[0]&&eo[0].segmentIndex||0,startTime:G}}if(es<0){for(var ep=es;ep<0;ep++)if((ei-=W.targetDuration)<0)return{partIndex:eo[0]&&eo[0].partIndex||null,segmentIndex:eo[0]&&eo[0].segmentIndex||0,startTime:G};es=0}for(var ef=es;ef<eo.length;ef++){var eh=eo[ef];if(ei-=eh.duration,en){if(ei>0)continue}else if(ei-nQ>=0)continue;return{partIndex:eh.partIndex,segmentIndex:eh.segmentIndex,startTime:er+sumDurations({defaultDuration:W.targetDuration,durationList:eo,startIndex:es,endIndex:ef})}}return{segmentIndex:eo[eo.length-1].segmentIndex,partIndex:eo[eo.length-1].partIndex,startTime:G}},isEnabled:isEnabled,isDisabled:function(R){return R.disabled},isBlacklisted:isBlacklisted,isIncompatible:isIncompatible,playlistEnd:playlistEnd,isAes:function(R){for(var W=0;W<R.segments.length;W++)if(R.segments[W].key)return!0;return!1},hasAttribute:hasAttribute,estimateSegmentRequestTime:function(R,W,G,J){return(void 0===J&&(J=0),hasAttribute("BANDWIDTH",G))?(R*G.attributes.BANDWIDTH-8*J)/W:NaN},isLowestEnabledRendition:isLowestEnabledRendition,isAudioOnly:isAudioOnly,playlistMatch:playlistMatch,segmentDurationWithParts:segmentDurationWithParts},n2=videojs.log,createPlaylistID=function(R,W){return R+"-"+W},groupID=function(R,W,G){return"placeholder-uri-"+R+"-"+W+"-"+G},parseManifest=function(R){var W=R.onwarn,G=R.oninfo,J=R.manifestString,et=R.customTagParsers,er=R.customTagMappers,en=R.experimentalLLHLS,ei=new eZ;W&&ei.on("warn",W),G&&ei.on("info",G),(void 0===et?[]:et).forEach(function(R){return ei.addParser(R)}),(void 0===er?[]:er).forEach(function(R){return ei.addTagMapper(R)}),ei.push(J),ei.end();var eo=ei.manifest;if(!en&&(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(R){eo.hasOwnProperty(R)&&delete eo[R]}),eo.segments&&eo.segments.forEach(function(R){["parts","preloadHints"].forEach(function(W){R.hasOwnProperty(W)&&delete R[W]})})),!eo.targetDuration){var es=10;eo.segments&&eo.segments.length&&(es=eo.segments.reduce(function(R,W){return Math.max(R,W.duration)},0)),W&&W("manifest has no targetDuration defaulting to "+es),eo.targetDuration=es}var ec=getLastParts(eo);if(ec.length&&!eo.partTargetDuration){var el=ec.reduce(function(R,W){return Math.max(R,W.duration)},0);W&&(W("manifest has no partTargetDuration defaulting to "+el),n2.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),eo.partTargetDuration=el}return eo},video_es_forEachMediaGroup=function(R,W){R.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(G){if(R.mediaGroups[G])for(var J in R.mediaGroups[G])for(var et in R.mediaGroups[G][J])W(R.mediaGroups[G][J][et],G,J,et)})},setupMediaPlaylist=function(R){var W=R.playlist,G=R.uri,J=R.id;W.id=J,W.playlistErrors_=0,G&&(W.uri=G),W.attributes=W.attributes||{}},setupMediaPlaylists=function(R){for(var W=R.playlists.length;W--;){var G=R.playlists[W];setupMediaPlaylist({playlist:G,id:createPlaylistID(W,G.uri)}),G.resolvedUri=resolve_url(R.uri,G.uri),R.playlists[G.id]=G,R.playlists[G.uri]=G,G.attributes.BANDWIDTH||n2.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},resolveMediaGroupUris=function(R){video_es_forEachMediaGroup(R,function(W){W.uri&&(W.resolvedUri=resolve_url(R.uri,W.uri))})},masterForMedia=function(R,W){var G=createPlaylistID(0,W),J={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:em().location.href,resolvedUri:em().location.href,playlists:[{uri:W,id:G,resolvedUri:W,attributes:{}}]};return J.playlists[G]=J.playlists[0],J.playlists[W]=J.playlists[0],J},addPropertiesToMaster=function(R,W,G){void 0===G&&(G=groupID),R.uri=W;for(var J=0;J<R.playlists.length;J++)if(!R.playlists[J].uri){var et="placeholder-uri-"+J;R.playlists[J].uri=et}var er=isAudioOnly(R);video_es_forEachMediaGroup(R,function(W,J,et,en){if(!W.playlists||!W.playlists.length){if(er&&"AUDIO"===J&&!W.uri)for(var ei=0;ei<R.playlists.length;ei++){var eo=R.playlists[ei];if(eo.attributes&&eo.attributes.AUDIO&&eo.attributes.AUDIO===et)return}W.playlists=[(0,eb.Z)({},W)]}W.playlists.forEach(function(W,er){var ei=G(J,et,en,W),eo=createPlaylistID(er,ei);W.uri?W.resolvedUri=W.resolvedUri||resolve_url(R.uri,W.uri):(W.uri=0===er?ei:eo,W.resolvedUri=W.uri),W.id=W.id||eo,W.attributes=W.attributes||{},R.playlists[W.id]=W,R.playlists[W.uri]=W})}),setupMediaPlaylists(R),resolveMediaGroupUris(R)},n3=videojs.mergeOptions,n5=videojs.EventTarget,addLLHLSQueryDirectives=function(R,W){if(W.endList||!W.serverControl)return R;var G={};if(W.serverControl.canBlockReload){var J=W.preloadSegment,et=W.mediaSequence+W.segments.length;if(J){var er=J.parts||[],en=getKnownPartCount(W)-1;en>-1&&en!==er.length-1&&(G._HLS_part=en),(en>-1||er.length)&&et--}G._HLS_msn=et}if(W.serverControl&&W.serverControl.canSkipUntil&&(G._HLS_skip=W.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(G).length){var ei=new(em()).URL(R);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(R){G.hasOwnProperty(R)&&ei.searchParams.set(R,G[R])}),R=ei.toString()}return R},updateSegment=function(R,W){if(!R)return W;var G=n3(R,W);if(R.preloadHints&&!W.preloadHints&&delete G.preloadHints,R.parts&&!W.parts)delete G.parts;else if(R.parts&&W.parts)for(var J=0;J<W.parts.length;J++)R.parts&&R.parts[J]&&(G.parts[J]=n3(R.parts[J],W.parts[J]));return!R.skipped&&W.skipped&&(G.skipped=!1),R.preload&&!W.preload&&(G.preload=!1),G},updateSegments=function(R,W,G){var J,et=R.slice(),er=W.slice();G=G||0;for(var en=[],ei=0;ei<er.length;ei++){var eo=et[ei+G],es=er[ei];eo?(J=eo.map||J,en.push(updateSegment(eo,es))):(J&&!es.map&&(es.map=J),en.push(es))}return en},resolveSegmentUris=function(R,W){!R.resolvedUri&&R.uri&&(R.resolvedUri=resolve_url(W,R.uri)),R.key&&!R.key.resolvedUri&&(R.key.resolvedUri=resolve_url(W,R.key.uri)),R.map&&!R.map.resolvedUri&&(R.map.resolvedUri=resolve_url(W,R.map.uri)),R.map&&R.map.key&&!R.map.key.resolvedUri&&(R.map.key.resolvedUri=resolve_url(W,R.map.key.uri)),R.parts&&R.parts.length&&R.parts.forEach(function(R){R.resolvedUri||(R.resolvedUri=resolve_url(W,R.uri))}),R.preloadHints&&R.preloadHints.length&&R.preloadHints.forEach(function(R){R.resolvedUri||(R.resolvedUri=resolve_url(W,R.uri))})},getAllSegments=function(R){var W=R.segments||[],G=R.preloadSegment;if(G&&G.parts&&G.parts.length){if(G.preloadHints){for(var J=0;J<G.preloadHints.length;J++)if("MAP"===G.preloadHints[J].type)return W}G.duration=R.targetDuration,G.preload=!0,W.push(G)}return W},isPlaylistUnchanged=function(R,W){return R===W||R.segments&&W.segments&&R.segments.length===W.segments.length&&R.endList===W.endList&&R.mediaSequence===W.mediaSequence&&R.preloadSegment===W.preloadSegment},updateMaster$1=function(R,W,G){void 0===G&&(G=isPlaylistUnchanged);var J=n3(R,{}),et=J.playlists[W.id];if(!et||G(et,W))return null;W.segments=getAllSegments(W);var er=n3(et,W);if(er.preloadSegment&&!W.preloadSegment&&delete er.preloadSegment,et.segments){if(W.skip){W.segments=W.segments||[];for(var en=0;en<W.skip.skippedSegments;en++)W.segments.unshift({skipped:!0})}er.segments=updateSegments(et.segments,W.segments,W.mediaSequence-et.mediaSequence)}er.segments.forEach(function(R){resolveSegmentUris(R,er.resolvedUri)});for(var ei=0;ei<J.playlists.length;ei++)J.playlists[ei].id===W.id&&(J.playlists[ei]=er);return J.playlists[W.id]=er,J.playlists[W.uri]=er,video_es_forEachMediaGroup(R,function(R,G,J,et){if(R.playlists)for(var en=0;en<R.playlists.length;en++)W.id===R.playlists[en].id&&(R.playlists[en]=er)}),J},refreshDelay=function(R,W){var G=R.segments||[],J=G[G.length-1],et=J&&J.parts&&J.parts[J.parts.length-1],er=et&&et.duration||J&&J.duration;return W&&er?1e3*er:500*(R.partTargetDuration||R.targetDuration||10)},n4=function(R){function PlaylistLoader(W,G,J){if(void 0===J&&(J={}),et=R.call(this)||this,!W)throw Error("A non-empty playlist URL or object is required");et.logger_=logger("PlaylistLoader");var et,er=J,en=er.withCredentials,ei=er.handleManifestRedirects;et.src=W,et.vhs_=G,et.withCredentials=void 0!==en&&en,et.handleManifestRedirects=void 0!==ei&&ei;var eo=G.options_;return et.customTagParsers=eo&&eo.customTagParsers||[],et.customTagMappers=eo&&eo.customTagMappers||[],et.experimentalLLHLS=eo&&eo.experimentalLLHLS||!1,videojs.browser.IE_VERSION&&(et.experimentalLLHLS=!1),et.state="HAVE_NOTHING",et.handleMediaupdatetimeout_=et.handleMediaupdatetimeout_.bind((0,ew.Z)(et)),et.on("mediaupdatetimeout",et.handleMediaupdatetimeout_),et}(0,eS.Z)(PlaylistLoader,R);var W=PlaylistLoader.prototype;return W.handleMediaupdatetimeout_=function(){var R=this;if("HAVE_METADATA"===this.state){var W=this.media(),G=resolve_url(this.master.uri,W.uri);this.experimentalLLHLS&&(G=addLLHLSQueryDirectives(G,W)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:G,withCredentials:this.withCredentials},function(W,G){if(R.request){if(W)return R.playlistRequestError(R.request,R.media(),"HAVE_METADATA");R.haveMetadata({playlistString:R.request.responseText,url:R.media().uri,id:R.media().id})}})}},W.playlistRequestError=function(R,W,G){var J=W.uri,et=W.id;this.request=null,G&&(this.state=G),this.error={playlist:this.master.playlists[et],status:R.status,message:"HLS playlist request error at URL: "+J+".",responseText:R.responseText,code:R.status>=500?4:2},this.trigger("error")},W.parseManifest_=function(R){var W=this,G=R.url;return parseManifest({onwarn:function(R){var J=R.message;return W.logger_("m3u8-parser warn for "+G+": "+J)},oninfo:function(R){var J=R.message;return W.logger_("m3u8-parser info for "+G+": "+J)},manifestString:R.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},W.haveMetadata=function(R){var W=R.playlistString,G=R.playlistObject,J=R.url,et=R.id;this.request=null,this.state="HAVE_METADATA";var er=G||this.parseManifest_({url:J,manifestString:W});er.lastRequest=Date.now(),setupMediaPlaylist({playlist:er,uri:J,id:et});var en=updateMaster$1(this.master,er);this.targetDuration=er.partTargetDuration||er.targetDuration,this.pendingMedia_=null,en?(this.master=en,this.media_=this.master.playlists[et]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(refreshDelay(this.media(),!!en)),this.trigger("loadedplaylist")},W.dispose=function(){this.trigger("dispose"),this.stopRequest(),em().clearTimeout(this.mediaUpdateTimeout),em().clearTimeout(this.finalRenditionTimeout),this.off()},W.stopRequest=function(){if(this.request){var R=this.request;this.request=null,R.onreadystatechange=null,R.abort()}},W.media=function(R,W){var G=this;if(!R)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);if("string"==typeof R){if(!this.master.playlists[R])throw Error("Unknown playlist URI: "+R);R=this.master.playlists[R]}if(em().clearTimeout(this.finalRenditionTimeout),W){var J=(R.partTargetDuration||R.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=em().setTimeout(this.media.bind(this,R,!1),J);return}var et=this.state,er=!this.media_||R.id!==this.media_.id,en=this.master.playlists[R.id];if(en&&en.endList||R.endList&&R.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=R,er&&(this.trigger("mediachanging"),"HAVE_MASTER"===et?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(refreshDelay(R,!0)),er){if(this.state="SWITCHING_MEDIA",this.request){if(R.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=R,this.request=this.vhs_.xhr({uri:R.resolvedUri,withCredentials:this.withCredentials},function(W,J){if(G.request){if(R.lastRequest=Date.now(),R.resolvedUri=resolveManifestRedirect(G.handleManifestRedirects,R.resolvedUri,J),W)return G.playlistRequestError(G.request,R,et);G.haveMetadata({playlistString:J.responseText,url:R.uri,id:R.id}),"HAVE_MASTER"===et?G.trigger("loadedmetadata"):G.trigger("mediachange")}})}},W.pause=function(){this.mediaUpdateTimeout&&(em().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},W.load=function(R){var W=this;this.mediaUpdateTimeout&&(em().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var G=this.media();if(R){var J=G?(G.partTargetDuration||G.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=em().setTimeout(function(){W.mediaUpdateTimeout=null,W.load()},J);return}if(!this.started){this.start();return}G&&!G.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")},W.updateMediaUpdateTimeout_=function(R){var W=this;this.mediaUpdateTimeout&&(em().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=em().setTimeout(function(){W.mediaUpdateTimeout=null,W.trigger("mediaupdatetimeout"),W.updateMediaUpdateTimeout_(R)},R))},W.start=function(){var R=this;if(this.started=!0,"object"==typeof this.src){this.src.uri||(this.src.uri=em().location.href),this.src.resolvedUri=this.src.uri,setTimeout(function(){R.setupInitialPlaylist(R.src)},0);return}this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(W,G){if(R.request){if(R.request=null,W)return R.error={status:G.status,message:"HLS playlist request error at URL: "+R.src+".",responseText:G.responseText,code:2},"HAVE_NOTHING"===R.state&&(R.started=!1),R.trigger("error");R.src=resolveManifestRedirect(R.handleManifestRedirects,R.src,G);var J=R.parseManifest_({manifestString:G.responseText,url:R.src});R.setupInitialPlaylist(J)}})},W.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},W.setupInitialPlaylist=function(R){if(this.state="HAVE_MASTER",R.playlists){this.master=R,addPropertiesToMaster(this.master,this.srcUri()),R.playlists.forEach(function(R){R.segments=getAllSegments(R),R.segments.forEach(function(W){resolveSegmentUris(W,R.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.master.playlists[0]);return}var W=this.srcUri()||em().location.href;this.master=masterForMedia(R,W),this.haveMetadata({playlistObject:R,url:W,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},PlaylistLoader}(n5),n8=videojs.xhr,n6=videojs.mergeOptions,callbackWrapper=function(R,W,G,J){var et="arraybuffer"===R.responseType?R.response:R.responseText;W||!et||(R.responseTime=Date.now(),R.roundTripTime=R.responseTime-R.requestTime,R.bytesReceived=et.byteLength||et.length,R.bandwidth||(R.bandwidth=Math.floor(R.bytesReceived/R.roundTripTime*8e3))),G.headers&&(R.responseHeaders=G.headers),W&&"ETIMEDOUT"===W.code&&(R.timedout=!0),W||R.aborted||200===G.statusCode||206===G.statusCode||0===G.statusCode||(W=Error("XHR Failed with a response of: "+(R&&(et||R.responseText)))),J(W,R)},xhrFactory=function(){var xhr=function XhrFunction(R,W){R=n6({timeout:45e3},R);var G=XhrFunction.beforeRequest||videojs.Vhs.xhr.beforeRequest;if(G&&"function"==typeof G){var J=G(R);J&&(R=J)}var et=(!0===videojs.Vhs.xhr.original?n8:videojs.Vhs.xhr)(R,function(R,G){return callbackWrapper(et,R,G,W)}),er=et.abort;return et.abort=function(){return et.aborted=!0,er.apply(et,arguments)},et.uri=R.uri,et.requestTime=Date.now(),et};return xhr.original=!0,xhr},segmentXhrHeaders=function(R){var W,G={};return R.byterange&&(G.Range="bytes="+(W=R.byterange).offset+"-"+("bigint"==typeof W.offset||"bigint"==typeof W.length?em().BigInt(W.offset)+em().BigInt(W.length)-em().BigInt(1):W.offset+W.length-1)),G},formatHexString=function(R,W){var G=R.toString(16);return"00".substring(0,2-G.length)+G+(W%2?" ":"")},formatAsciiString=function(R){return R>=32&&R<126?String.fromCharCode(R):"."},createTransferableMessage=function(R){var W={};return Object.keys(R).forEach(function(G){var J=R[G];isArrayBufferView(J)?W[G]={bytes:J.buffer,byteOffset:J.byteOffset,byteLength:J.byteLength}:W[G]=J}),W},initSegmentId=function(R){var W=R.byterange||{length:1/0,offset:0};return[W.length,W.offset,R.resolvedUri].join(",")},segmentKeyId=function(R){return R.resolvedUri},hexDump=function(R){for(var W=Array.prototype.slice.call(R),G="",J=0;J<W.length/16;J++)G+=W.slice(16*J,16*J+16).map(formatHexString).join("")+" "+W.slice(16*J,16*J+16).map(formatAsciiString).join("")+"\n";return G},n7=Object.freeze({__proto__:null,createTransferableMessage:createTransferableMessage,initSegmentId:initSegmentId,segmentKeyId:segmentKeyId,hexDump:hexDump,tagDump:function(R){return hexDump(R.bytes)},textRanges:function(R){var W,G,J="";for(G=0;G<R.length;G++)J+=(W=G,R.start(W)+"-"+R.end(W)+" ");return J}}),playerTimeToProgramTime=function(R,W){if(!W.dateTimeObject)return null;var G=W.videoTimingInfo.transmuxerPrependedSeconds,J=W.videoTimingInfo.transmuxedPresentationStart;return new Date(W.dateTimeObject.getTime()+1e3*(R-(J+G)))},findSegmentForProgramTime=function(R,W){try{J=new Date(R)}catch(R){return null}if(!W||!W.segments||0===W.segments.length)return null;var G,J,et=W.segments[0];if(J<et.dateTimeObject)return null;for(var er=0;er<W.segments.length-1&&(et=W.segments[er],!(J<W.segments[er+1].dateTimeObject));er++);var en=W.segments[W.segments.length-1],ei=en.dateTimeObject,eo=en.videoTimingInfo?(G=en.videoTimingInfo).transmuxedPresentationEnd-G.transmuxedPresentationStart-G.transmuxerPrependedSeconds:en.duration+.25*en.duration;return J>new Date(ei.getTime()+1e3*eo)?null:(J>ei&&(et=en),{segment:et,estimatedStart:et.videoTimingInfo?et.videoTimingInfo.transmuxedPresentationStart:n1.duration(W,W.mediaSequence+W.segments.indexOf(et)),type:et.videoTimingInfo?"accurate":"estimate"})},findSegmentForPlayerTime=function(R,W){if(!W||!W.segments||0===W.segments.length)return null;for(var G,J=0,et=0;et<W.segments.length&&!(R<=(J=(G=W.segments[et]).videoTimingInfo?G.videoTimingInfo.transmuxedPresentationEnd:J+G.duration));et++);var er=W.segments[W.segments.length-1];if(er.videoTimingInfo&&er.videoTimingInfo.transmuxedPresentationEnd<R)return null;if(R>J){if(R>J+.25*er.duration)return null;G=er}return{segment:G,estimatedStart:G.videoTimingInfo?G.videoTimingInfo.transmuxedPresentationStart:J-G.duration,type:G.videoTimingInfo?"accurate":"estimate"}},getOffsetFromTimestamp=function(R,W){try{G=new Date(R),J=new Date(W)}catch(R){}var G,J,et=G.getTime();return(J.getTime()-et)/1e3},verifyProgramDateTimeTags=function(R){if(!R.segments||0===R.segments.length)return!1;for(var W=0;W<R.segments.length;W++)if(!R.segments[W].dateTimeObject)return!1;return!0},getProgramTime=function(R){var W=R.playlist,G=R.time,J=void 0===G?void 0:G,et=R.callback;if(!et)throw Error("getProgramTime: callback must be provided");if(!W||void 0===J)return et({message:"getProgramTime: playlist and time must be provided"});var er=findSegmentForPlayerTime(J,W);if(!er)return et({message:"valid programTime was not found"});if("estimate"===er.type)return et({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:er.estimatedStart});var en={mediaSeconds:J},ei=playerTimeToProgramTime(J,er.segment);return ei&&(en.programDateTime=ei.toISOString()),et(null,en)},seekToProgramTime=function seekToProgramTime(R){var W=R.programTime,G=R.playlist,J=R.retryCount,et=void 0===J?2:J,er=R.seekTo,en=R.pauseAfterSeek,ei=void 0===en||en,eo=R.tech,es=R.callback;if(!es)throw Error("seekToProgramTime: callback must be provided");if(void 0===W||!G||!er)return es({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!G.endList&&!eo.hasStarted_)return es({message:"player must be playing a live stream to start buffering"});if(!verifyProgramDateTimeTags(G))return es({message:"programDateTime tags must be provided in the manifest "+G.resolvedUri});var ec=findSegmentForProgramTime(W,G);if(!ec)return es({message:W+" was not found in the stream"});var el=ec.segment,eu=getOffsetFromTimestamp(el.dateTimeObject,W);if("estimate"===ec.type)return 0===et?es({message:W+" is not buffered yet. Try again"}):(er(ec.estimatedStart+eu),void eo.one("seeked",function(){seekToProgramTime({programTime:W,playlist:G,retryCount:et-1,seekTo:er,pauseAfterSeek:ei,tech:eo,callback:es})}));var ed=el.start+eu;eo.one("seeked",function(){return es(null,eo.currentTime())}),ei&&eo.pause(),er(ed)},callbackOnCompleted=function(R,W){if(4===R.readyState)return W()},containerRequest=function(R,W,G){var J,et=[],er=!1,endRequestAndCallback=function(R,W,J,et){return W.abort(),er=!0,G(R,W,J,et)},progressListener=function(R,W){if(!er){if(R)return endRequestAndCallback(R,W,"",et);var G=W.responseText.substring(et&&et.byteLength||0,W.responseText.length);if(et=concatTypedArrays(et,stringToBytes(G,!0)),J=J||getId3Offset(et),et.length<10||J&&et.length<J+2)return callbackOnCompleted(W,function(){return endRequestAndCallback(R,W,"",et)});var en=detectContainerForBytes(et);return"ts"===en&&et.length<188||!en&&et.length<376?callbackOnCompleted(W,function(){return endRequestAndCallback(R,W,"",et)}):endRequestAndCallback(null,W,en,et)}},en=W({uri:R,beforeSend:function(R){R.overrideMimeType("text/plain; charset=x-user-defined"),R.addEventListener("progress",function(W){return W.total,W.loaded,callbackWrapper(R,null,{statusCode:R.status},progressListener)})}},function(R,W){return callbackWrapper(en,R,W,progressListener)});return en},n9=videojs.EventTarget,ie=videojs.mergeOptions,dashPlaylistUnchanged=function(R,W){if(!isPlaylistUnchanged(R,W)||R.sidx&&W.sidx&&(R.sidx.offset!==W.sidx.offset||R.sidx.length!==W.sidx.length)||!R.sidx&&W.sidx||R.sidx&&!W.sidx||R.segments&&!W.segments||!R.segments&&W.segments)return!1;if(!R.segments&&!W.segments)return!0;for(var G=0;G<R.segments.length;G++){var J=R.segments[G],et=W.segments[G];if(J.uri!==et.uri)return!1;if(J.byterange||et.byterange){var er=J.byterange,en=et.byterange;if(er&&!en||!er&&en||er.offset!==en.offset||er.length!==en.length)return!1}}return!0},dashGroupId=function(R,W,G,J){return"placeholder-uri-"+R+"-"+W+"-"+(J.attributes.NAME||G)},parseMasterXml=function(R){var W=R.masterXml,G=R.srcUrl,J=parse(W,{manifestUri:G,clientOffset:R.clientOffset,sidxMapping:R.sidxMapping,previousManifest:R.previousManifest});return addPropertiesToMaster(J,G,dashGroupId),J},removeOldMediaGroupLabels=function(R,W){video_es_forEachMediaGroup(R,function(G,J,et,er){er in W.mediaGroups[J][et]||delete R.mediaGroups[J][et][er]})},updateMaster=function(R,W,G){for(var J=!0,et=ie(R,{duration:W.duration,minimumUpdatePeriod:W.minimumUpdatePeriod,timelineStarts:W.timelineStarts}),er=0;er<W.playlists.length;er++){var en=W.playlists[er];if(en.sidx){var ei=generateSidxKey(en.sidx);G&&G[ei]&&G[ei].sidx&&addSidxSegmentsToPlaylist$1(en,G[ei].sidx,en.sidx.resolvedUri)}var eo=updateMaster$1(et,en,dashPlaylistUnchanged);eo&&(et=eo,J=!1)}return(video_es_forEachMediaGroup(W,function(R,W,G,er){if(R.playlists&&R.playlists.length){var en=R.playlists[0].id,ei=updateMaster$1(et,R.playlists[0],dashPlaylistUnchanged);ei&&(er in(et=ei).mediaGroups[W][G]||(et.mediaGroups[W][G][er]=R),et.mediaGroups[W][G][er].playlists[0]=et.playlists[en],J=!1)}}),removeOldMediaGroupLabels(et,W),W.minimumUpdatePeriod!==R.minimumUpdatePeriod&&(J=!1),J)?null:et},compareSidxEntry=function(R,W){var G={};for(var J in R){var et=R[J].sidx;if(et){var er,en=generateSidxKey(et);if(!W[en])break;(!(er=W[en].sidxInfo).map&&!et.map||er.map&&et.map&&er.map.byterange.offset===et.map.byterange.offset&&er.map.byterange.length===et.map.byterange.length)&&er.uri===et.uri&&er.byterange.offset===et.byterange.offset&&er.byterange.length===et.byterange.length&&(G[en]=W[en])}}return G},filterChangedSidxMappings=function(R,W){var G=compareSidxEntry(R.playlists,W);return video_es_forEachMediaGroup(R,function(R,J,et,er){if(R.playlists&&R.playlists.length){var en=R.playlists;G=ie(G,compareSidxEntry(en,W))}}),G},it=function(R){function DashPlaylistLoader(W,G,J,et){void 0===J&&(J={}),(er=R.call(this)||this).masterPlaylistLoader_=et||(0,ew.Z)(er),et||(er.isMaster_=!0);var er,en=J,ei=en.withCredentials,eo=en.handleManifestRedirects;if(er.vhs_=G,er.withCredentials=void 0!==ei&&ei,er.handleManifestRedirects=void 0!==eo&&eo,!W)throw Error("A non-empty playlist URL or object is required");return er.on("minimumUpdatePeriod",function(){er.refreshXml_()}),er.on("mediaupdatetimeout",function(){er.refreshMedia_(er.media().id)}),er.state="HAVE_NOTHING",er.loadedPlaylists_={},er.logger_=logger("DashPlaylistLoader"),er.isMaster_?(er.masterPlaylistLoader_.srcUrl=W,er.masterPlaylistLoader_.sidxMapping_={}):er.childPlaylist_=W,er}(0,eS.Z)(DashPlaylistLoader,R);var W=DashPlaylistLoader.prototype;return W.requestErrored_=function(R,W,G){return!this.request||((this.request=null,R)?(this.error="object"!=typeof R||R instanceof Error?{status:W.status,message:"DASH request error at URL: "+W.uri,response:W.response,code:2}:R,G&&(this.state=G),this.trigger("error"),!0):void 0)},W.addSidxSegments_=function(R,W,G){var J=this,et=R.sidx&&generateSidxKey(R.sidx);if(!R.sidx||!et||this.masterPlaylistLoader_.sidxMapping_[et]){this.mediaRequest_=em().setTimeout(function(){return G(!1)},0);return}var er=resolveManifestRedirect(this.handleManifestRedirects,R.sidx.resolvedUri),fin=function(er,en){if(!J.requestErrored_(er,en,W)){var ei,eo=J.masterPlaylistLoader_.sidxMapping_;try{ei=e3()(byte_helpers_toUint8(en.response).subarray(8))}catch(R){J.requestErrored_(R,en,W);return}return eo[et]={sidxInfo:R.sidx,sidx:ei},addSidxSegmentsToPlaylist$1(R,ei,R.sidx.resolvedUri),G(!0)}};this.request=containerRequest(er,this.vhs_.xhr,function(W,G,et,en){if(W)return fin(W,G);if(!et||"mp4"!==et)return fin({status:G.status,message:"Unsupported "+(et||"unknown")+" container type for sidx segment at URL: "+er,response:"",playlist:R,internal:!0,blacklistDuration:1/0,code:2},G);var ei=R.sidx.byterange,eo=ei.offset,es=ei.length;if(en.length>=es+eo)return fin(W,{response:en.subarray(eo,eo+es),status:G.status,uri:G.uri});J.request=J.vhs_.xhr({uri:er,responseType:"arraybuffer",headers:segmentXhrHeaders({byterange:R.sidx.byterange})},fin)})},W.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},em().clearTimeout(this.minimumUpdatePeriodTimeout_),em().clearTimeout(this.mediaRequest_),em().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},W.hasPendingRequest=function(){return this.request||this.mediaRequest_},W.stopRequest=function(){if(this.request){var R=this.request;this.request=null,R.onreadystatechange=null,R.abort()}},W.media=function(R){var W=this;if(!R)return this.media_;if("HAVE_NOTHING"===this.state)throw Error("Cannot switch media playlist from "+this.state);var G=this.state;if("string"==typeof R){if(!this.masterPlaylistLoader_.master.playlists[R])throw Error("Unknown playlist URI: "+R);R=this.masterPlaylistLoader_.master.playlists[R]}var J=!this.media_||R.id!==this.media_.id;if(J&&this.loadedPlaylists_[R.id]&&this.loadedPlaylists_[R.id].endList){this.state="HAVE_METADATA",this.media_=R,J&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}J&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(R,G,function(J){W.haveMetadata({startingState:G,playlist:R})}))},W.haveMetadata=function(R){var W=R.startingState,G=R.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[G.id]=G,this.mediaRequest_=null,this.refreshMedia_(G.id),"HAVE_MASTER"===W?this.trigger("loadedmetadata"):this.trigger("mediachange")},W.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),em().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(em().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},W.load=function(R){var W=this;em().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var G=this.media();if(R){var J=G?G.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=em().setTimeout(function(){return W.load()},J);return}if(!this.started){this.start();return}G&&!G.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")},W.start=function(){var R=this;if(this.started=!0,!this.isMaster_){this.mediaRequest_=em().setTimeout(function(){return R.haveMaster_()},0);return}this.requestMaster_(function(W,G){R.haveMaster_(),R.hasPendingRequest()||R.media_||R.media(R.masterPlaylistLoader_.master.playlists[0])})},W.requestMaster_=function(R){var W=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(G,J){if(W.requestErrored_(G,J)){"HAVE_NOTHING"===W.state&&(W.started=!1);return}var et=J.responseText!==W.masterPlaylistLoader_.masterXml_;if(W.masterPlaylistLoader_.masterXml_=J.responseText,J.responseHeaders&&J.responseHeaders.date?W.masterLoaded_=Date.parse(J.responseHeaders.date):W.masterLoaded_=Date.now(),W.masterPlaylistLoader_.srcUrl=resolveManifestRedirect(W.handleManifestRedirects,W.masterPlaylistLoader_.srcUrl,J),et){W.handleMaster_(),W.syncClientServerClock_(function(){return R(J,et)});return}return R(J,et)})},W.syncClientServerClock_=function(R){var W=this,G=parseUTCTimingScheme(stringToMpdXml(this.masterPlaylistLoader_.masterXml_));return null===G?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),R()):"DIRECT"===G.method?(this.masterPlaylistLoader_.clientOffset_=G.value-Date.now(),R()):void(this.request=this.vhs_.xhr({uri:resolve_url(this.masterPlaylistLoader_.srcUrl,G.value),method:G.method,withCredentials:this.withCredentials},function(J,et){var er;if(W.request){if(J)return W.masterPlaylistLoader_.clientOffset_=W.masterLoaded_-Date.now(),R();er="HEAD"===G.method?et.responseHeaders&&et.responseHeaders.date?Date.parse(et.responseHeaders.date):W.masterLoaded_:Date.parse(et.responseText),W.masterPlaylistLoader_.clientOffset_=er-Date.now(),R()}}))},W.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},W.handleMaster_=function(){this.mediaRequest_=null;var R=this.masterPlaylistLoader_.master,W=parseMasterXml({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:R});R&&(W=updateMaster(R,W,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=W||R;var G=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return G&&G!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=G),(!R||W&&W.minimumUpdatePeriod!==R.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),!!W},W.updateMinimumUpdatePeriodTimeout_=function(){var R=this.masterPlaylistLoader_;R.createMupOnMedia_&&(R.off("loadedmetadata",R.createMupOnMedia_),R.createMupOnMedia_=null),R.minimumUpdatePeriodTimeout_&&(em().clearTimeout(R.minimumUpdatePeriodTimeout_),R.minimumUpdatePeriodTimeout_=null);var W=R.master&&R.master.minimumUpdatePeriod;if(0===W&&(R.media()?W=1e3*R.media().targetDuration:(R.createMupOnMedia_=R.updateMinimumUpdatePeriodTimeout_,R.one("loadedmetadata",R.createMupOnMedia_))),"number"!=typeof W||W<=0){W<0&&this.logger_("found invalid minimumUpdatePeriod of "+W+", not setting a timeout");return}this.createMUPTimeout_(W)},W.createMUPTimeout_=function(R){var W=this.masterPlaylistLoader_;W.minimumUpdatePeriodTimeout_=em().setTimeout(function(){W.minimumUpdatePeriodTimeout_=null,W.trigger("minimumUpdatePeriod"),W.createMUPTimeout_(R)},R)},W.refreshXml_=function(){var R=this;this.requestMaster_(function(W,G){G&&(R.media_&&(R.media_=R.masterPlaylistLoader_.master.playlists[R.media_.id]),R.masterPlaylistLoader_.sidxMapping_=filterChangedSidxMappings(R.masterPlaylistLoader_.master,R.masterPlaylistLoader_.sidxMapping_),R.addSidxSegments_(R.media(),R.state,function(W){R.refreshMedia_(R.media().id)}))})},W.refreshMedia_=function(R){var W=this;if(!R)throw Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var G=this.masterPlaylistLoader_.master.playlists,J=!this.media_||this.media_!==G[R];J?this.media_=G[R]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function createMediaUpdateTimeout(){W.media().endList||(W.mediaUpdateTimeout=em().setTimeout(function(){W.trigger("mediaupdatetimeout"),createMediaUpdateTimeout()},refreshDelay(W.media(),!!J)))}(),this.trigger("loadedplaylist")},DashPlaylistLoader}(n9),ir={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},stringToArrayBuffer=function(R){for(var W=new Uint8Array(new ArrayBuffer(R.length)),G=0;G<R.length;G++)W[G]=R.charCodeAt(G);return W.buffer},browserWorkerPolyFill=function(R){return R.on=R.addEventListener,R.off=R.removeEventListener,R},createObjectURL=function(R){try{return URL.createObjectURL(new Blob([R],{type:"application/javascript"}))}catch(G){var W=new BlobBuilder;return W.append(R),URL.createObjectURL(W.getBlob())}},factory=function(R){return function(){var W=createObjectURL(R),G=browserWorkerPolyFill(new Worker(W));G.objURL=W;var J=G.terminate;return G.on=G.addEventListener,G.off=G.removeEventListener,G.terminate=function(){return URL.revokeObjectURL(W),J.call(this)},G}},transform=function(R){return"var browserWorkerPolyFill = "+browserWorkerPolyFill.toString()+";\nbrowserWorkerPolyFill(self);\n"+R},getWorkerString=function(R){return R.toString().replace(/^function.+?{/,"").slice(0,-1)},ii=factory(transform(getWorkerString(function(){var R,W,J,et,er,en,ei,eo,es,ec,el,eu,ed,Stream=function(){this.init=function(){var R={};this.on=function(W,G){R[W]||(R[W]=[]),R[W]=R[W].concat(G)},this.off=function(W,G){var J;return!!R[W]&&(J=R[W].indexOf(G),R[W]=R[W].slice(),R[W].splice(J,1),J>-1)},this.trigger=function(W){var G,J,et,er;if(G=R[W]){if(2==arguments.length)for(J=0,et=G.length;J<et;++J)G[J].call(this,arguments[1]);else{for(er=[],J=arguments.length,J=1;J<arguments.length;++J)er.push(arguments[J]);for(J=0,et=G.length;J<et;++J)G[J].apply(this,er)}}},this.dispose=function(){R={}}}};Stream.prototype.pipe=function(R){return this.on("data",function(W){R.push(W)}),this.on("done",function(W){R.flush(W)}),this.on("partialdone",function(W){R.partialFlush(W)}),this.on("endedtimeline",function(W){R.endTimeline(W)}),this.on("reset",function(W){R.reset(W)}),R},Stream.prototype.push=function(R){this.trigger("data",R)},Stream.prototype.flush=function(R){this.trigger("done",R)},Stream.prototype.partialFlush=function(R){this.trigger("partialdone",R)},Stream.prototype.endTimeline=function(R){this.trigger("endedtimeline",R)},Stream.prototype.reset=function(R){this.trigger("reset",R)};var ep={getUint64:function(R){var W,G=new DataView(R.buffer,R.byteOffset,R.byteLength);return G.getBigUint64?(W=G.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(W):W:4294967296*G.getUint32(0)+G.getUint32(4)},MAX_UINT32:4294967296},ef=ep.MAX_UINT32;!function(){var R;if(eY={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(R in eY)eY.hasOwnProperty(R)&&(eY[R]=[R.charCodeAt(0),R.charCodeAt(1),R.charCodeAt(2),R.charCodeAt(3)]);eX=new Uint8Array([105,115,111,109]),eJ=new Uint8Array([97,118,99,49]),eQ=new Uint8Array([0,0,0,1]),e0={video:new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),audio:new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0])},e3=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e2=new Uint8Array([0,0,0,0,0,0,0,0]),e4=e5=new Uint8Array([0,0,0,0,0,0,0,0]),e8=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e6=e5,e1=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),eM=function(R){var W,G,J=[],et=0;for(W=1;W<arguments.length;W++)J.push(arguments[W]);for(W=J.length;W--;)et+=J[W].byteLength;for(G=new Uint8Array(et+8),new DataView(G.buffer,G.byteOffset,G.byteLength).setUint32(0,G.byteLength),G.set(R,4),W=0,et=8;W<J.length;W++)G.set(J[W],et),et+=J[W].byteLength;return G},eL=function(){return eM(eY.ftyp,eX,eQ,eX,eJ)},eH=function(R){var W=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,R.duration>>>24&255,R.duration>>>16&255,R.duration>>>8&255,255&R.duration,85,196,0,0]);return R.samplerate&&(W[12]=R.samplerate>>>24&255,W[13]=R.samplerate>>>16&255,W[14]=R.samplerate>>>8&255,W[15]=255&R.samplerate),eM(eY.mdhd,W)},ez=function(R){var W;return eM(eY.mdia,eH(R),(W=R.type,eM(eY.hdlr,e0[W])),eR(R))},eR=function(R){return eM(eY.minf,"video"===R.type?eM(eY.vmhd,e1):eM(eY.smhd,e2),eM(eY.dinf,eM(eY.dref,e3)),eV(R))},eN=function(R){for(var W=R.length,G=[];W--;)G[W]=eU(R[W]);return eM.apply(null,[eY.moov,eZ(4294967295)].concat(G).concat(eB(R)))},eB=function(R){for(var W=R.length,G=[];W--;)G[W]=e$(R[W]);return eM.apply(null,[eY.mvex].concat(G))},eZ=function(R){var W=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&R)>>24,(16711680&R)>>16,(65280&R)>>8,255&R,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return eM(eY.mvhd,W)},eq=function(R){var W,G,J=R.samples||[],et=new Uint8Array(4+J.length);for(G=0;G<J.length;G++)W=J[G].flags,et[G+4]=W.dependsOn<<4|W.isDependedOn<<2|W.hasRedundancy;return eM(eY.sdtp,et)},eV=function(R){return eM(eY.stbl,eW(R),eM(eY.stts,e6),eM(eY.stsc,e4),eM(eY.stsz,e8),eM(eY.stco,e5))},eW=function(R){return eM(eY.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===R.type?eE(R):ej(R))},eE=function(R){var W,G,J=R.sps||[],et=R.pps||[],er=[],en=[];for(W=0;W<J.length;W++)er.push((65280&J[W].byteLength)>>>8),er.push(255&J[W].byteLength),er=er.concat(Array.prototype.slice.call(J[W]));for(W=0;W<et.length;W++)en.push((65280&et[W].byteLength)>>>8),en.push(255&et[W].byteLength),en=en.concat(Array.prototype.slice.call(et[W]));if(G=[eY.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&R.width)>>8,255&R.width,(65280&R.height)>>8,255&R.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),eM(eY.avcC,new Uint8Array([1,R.profileIdc,R.profileCompatibility,R.levelIdc,255].concat([J.length],er,[et.length],en))),eM(eY.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],R.sarRatio){var ei=R.sarRatio[0],eo=R.sarRatio[1];G.push(eM(eY.pasp,new Uint8Array([(4278190080&ei)>>24,(16711680&ei)>>16,(65280&ei)>>8,255&ei,(4278190080&eo)>>24,(16711680&eo)>>16,(65280&eo)>>8,255&eo])))}return eM.apply(null,G)},ej=function(R){return eM(eY.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&R.channelcount)>>8,255&R.channelcount,(65280&R.samplesize)>>8,255&R.samplesize,0,0,0,0,(65280&R.samplerate)>>8,255&R.samplerate,0,0]),eM(eY.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,R.audioobjecttype<<3|R.samplingfrequencyindex>>>1,R.samplingfrequencyindex<<7|R.channelcount<<3,6,1,2])))},eF=function(R){var W=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&R.id)>>24,(16711680&R.id)>>16,(65280&R.id)>>8,255&R.id,0,0,0,0,(4278190080&R.duration)>>24,(16711680&R.duration)>>16,(65280&R.duration)>>8,255&R.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&R.width)>>8,255&R.width,0,0,(65280&R.height)>>8,255&R.height,0,0]);return eM(eY.tkhd,W)},eG=function(R){var W,G,J,et,er,en;return(W=eM(eY.tfhd,new Uint8Array([0,0,0,58,(4278190080&R.id)>>24,(16711680&R.id)>>16,(65280&R.id)>>8,255&R.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),er=Math.floor(R.baseMediaDecodeTime/ef),en=Math.floor(R.baseMediaDecodeTime%ef),G=eM(eY.tfdt,new Uint8Array([1,0,0,0,er>>>24&255,er>>>16&255,er>>>8&255,255&er,en>>>24&255,en>>>16&255,en>>>8&255,255&en])),"audio"===R.type)?(J=eK(R,92),eM(eY.traf,W,G,J)):(et=eq(R),J=eK(R,et.length+92),eM(eY.traf,W,G,J,et))},eU=function(R){return R.duration=R.duration||4294967295,eM(eY.trak,eF(R),ez(R))},e$=function(R){var W=new Uint8Array([0,0,0,0,(4278190080&R.id)>>24,(16711680&R.id)>>16,(65280&R.id)>>8,255&R.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==R.type&&(W[W.length-1]=0),eM(eY.trex,W)},eI=function(R,W){var G=0,J=0,et=0,er=0;return R.length&&(void 0!==R[0].duration&&(G=1),void 0!==R[0].size&&(J=2),void 0!==R[0].flags&&(et=4),void 0!==R[0].compositionTimeOffset&&(er=8)),[0,0,G|J|et|er,1,(4278190080&R.length)>>>24,(16711680&R.length)>>>16,(65280&R.length)>>>8,255&R.length,(4278190080&W)>>>24,(16711680&W)>>>16,(65280&W)>>>8,255&W]},eD=function(R,W){var G,J,et,er,en,ei;for(W+=20+16*(er=R.samples||[]).length,et=eI(er,W),(J=new Uint8Array(et.length+16*er.length)).set(et),G=et.length,ei=0;ei<er.length;ei++)en=er[ei],J[G++]=(4278190080&en.duration)>>>24,J[G++]=(16711680&en.duration)>>>16,J[G++]=(65280&en.duration)>>>8,J[G++]=255&en.duration,J[G++]=(4278190080&en.size)>>>24,J[G++]=(16711680&en.size)>>>16,J[G++]=(65280&en.size)>>>8,J[G++]=255&en.size,J[G++]=en.flags.isLeading<<2|en.flags.dependsOn,J[G++]=en.flags.isDependedOn<<6|en.flags.hasRedundancy<<4|en.flags.paddingValue<<1|en.flags.isNonSyncSample,J[G++]=61440&en.flags.degradationPriority,J[G++]=15&en.flags.degradationPriority,J[G++]=(4278190080&en.compositionTimeOffset)>>>24,J[G++]=(16711680&en.compositionTimeOffset)>>>16,J[G++]=(65280&en.compositionTimeOffset)>>>8,J[G++]=255&en.compositionTimeOffset;return eM(eY.trun,J)},eA=function(R,W){var G,J,et,er,en,ei;for(W+=20+8*(er=R.samples||[]).length,et=eI(er,W),(G=new Uint8Array(et.length+8*er.length)).set(et),J=et.length,ei=0;ei<er.length;ei++)en=er[ei],G[J++]=(4278190080&en.duration)>>>24,G[J++]=(16711680&en.duration)>>>16,G[J++]=(65280&en.duration)>>>8,G[J++]=255&en.duration,G[J++]=(4278190080&en.size)>>>24,G[J++]=(16711680&en.size)>>>16,G[J++]=(65280&en.size)>>>8,G[J++]=255&en.size;return eM(eY.trun,G)},eK=function(R,W){return"audio"===R.type?eA(R,W):eD(R,W)};var eh={ftyp:eL,mdat:function(R){return eM(eY.mdat,R)},moof:function(R,W){for(var G=[],J=W.length;J--;)G[J]=eG(W[J]);return eM.apply(null,[eY.moof,eM(eY.mfhd,new Uint8Array([0,0,0,0,(4278190080&R)>>24,(16711680&R)>>16,(65280&R)>>8,255&R]))].concat(G))},moov:eN,initSegment:function(R){var W,G=eL(),J=eN(R);return(W=new Uint8Array(G.byteLength+J.byteLength)).set(G),W.set(J,G.byteLength),W}},sampleForFrame=function(R,W){var G={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return G.dataOffset=W,G.compositionTimeOffset=R.pts-R.dts,G.duration=R.duration,G.size=4*R.length,G.size+=R.byteLength,R.keyFrame&&(G.flags.dependsOn=2,G.flags.isNonSyncSample=0),G},eg={groupNalsIntoFrames:function(R){var W,G,J=[],et=[];for(W=0,et.byteLength=0,et.nalCount=0,et.duration=0,J.byteLength=0;W<R.length;W++)"access_unit_delimiter_rbsp"===(G=R[W]).nalUnitType?(J.length&&(J.duration=G.dts-J.dts,et.byteLength+=J.byteLength,et.nalCount+=J.length,et.duration+=J.duration,et.push(J)),(J=[G]).byteLength=G.data.byteLength,J.pts=G.pts,J.dts=G.dts):("slice_layer_without_partitioning_rbsp_idr"===G.nalUnitType&&(J.keyFrame=!0),J.duration=G.dts-J.dts,J.byteLength+=G.data.byteLength,J.push(G));return et.length&&(!J.duration||J.duration<=0)&&(J.duration=et[et.length-1].duration),et.byteLength+=J.byteLength,et.nalCount+=J.length,et.duration+=J.duration,et.push(J),et},groupFramesIntoGops:function(R){var W,G,J=[],et=[];for(W=0,J.byteLength=0,J.nalCount=0,J.duration=0,J.pts=R[0].pts,J.dts=R[0].dts,et.byteLength=0,et.nalCount=0,et.duration=0,et.pts=R[0].pts,et.dts=R[0].dts;W<R.length;W++)(G=R[W]).keyFrame?(J.length&&(et.push(J),et.byteLength+=J.byteLength,et.nalCount+=J.nalCount,et.duration+=J.duration),(J=[G]).nalCount=G.length,J.byteLength=G.byteLength,J.pts=G.pts,J.dts=G.dts,J.duration=G.duration):(J.duration+=G.duration,J.nalCount+=G.length,J.byteLength+=G.byteLength,J.push(G));return et.length&&J.duration<=0&&(J.duration=et[et.length-1].duration),et.byteLength+=J.byteLength,et.nalCount+=J.nalCount,et.duration+=J.duration,et.push(J),et},extendFirstKeyFrame:function(R){var W;return!R[0][0].keyFrame&&R.length>1&&(W=R.shift(),R.byteLength-=W.byteLength,R.nalCount-=W.nalCount,R[0][0].dts=W.dts,R[0][0].pts=W.pts,R[0][0].duration+=W.duration),R},generateSampleTable:function(R,W){var G,J,et,er,en=W||0,ei=[];for(G=0;G<R.length;G++)for(J=0,er=R[G];J<er.length;J++)et=sampleForFrame(er[J],en),en+=et.size,ei.push(et);return ei},concatenateNalData:function(R){var W,G,J,et,er,en,ei=0,eo=R.byteLength,es=R.nalCount,ec=new Uint8Array(eo+4*es),el=new DataView(ec.buffer);for(W=0;W<R.length;W++)for(G=0,et=R[W];G<et.length;G++)for(J=0,er=et[G];J<er.length;J++)en=er[J],el.setUint32(ei,en.data.byteLength),ei+=4,ec.set(en.data,ei),ei+=en.data.byteLength;return ec},generateSampleTableForFrame:function(R,W){var G=[];return G.push(sampleForFrame(R,W||0)),G},concatenateNalDataForFrame:function(R){var W,G,J=0,et=R.byteLength,er=R.length,en=new Uint8Array(et+4*er),ei=new DataView(en.buffer);for(W=0;W<R.length;W++)G=R[W],ei.setUint32(J,G.data.byteLength),J+=4,en.set(G.data,J),J+=G.data.byteLength;return en}},em=[33,16,5,32,164,27],ey=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],zeroFill=function(R){for(var W=[];R--;)W.push(0);return W},silence_1=function(){if(!e7){var R;e7=Object.keys(R={96e3:[em,[227,64],zeroFill(154),[56]],88200:[em,[231],zeroFill(170),[56]],64e3:[em,[248,192],zeroFill(240),[56]],48e3:[em,[255,192],zeroFill(268),[55,148,128],zeroFill(54),[112]],44100:[em,[255,192],zeroFill(268),[55,163,128],zeroFill(84),[112]],32e3:[em,[255,192],zeroFill(268),[55,234],zeroFill(226),[112]],24e3:[em,[255,192],zeroFill(268),[55,255,128],zeroFill(268),[111,112],zeroFill(126),[224]],16e3:[em,[255,192],zeroFill(268),[55,255,128],zeroFill(268),[111,255],zeroFill(269),[223,108],zeroFill(195),[1,192]],12e3:[ey,zeroFill(268),[3,127,248],zeroFill(268),[6,255,240],zeroFill(268),[13,255,224],zeroFill(268),[27,253,128],zeroFill(259),[56]],11025:[ey,zeroFill(268),[3,127,248],zeroFill(268),[6,255,240],zeroFill(268),[13,255,224],zeroFill(268),[27,255,192],zeroFill(268),[55,175,128],zeroFill(108),[112]],8e3:[ey,zeroFill(268),[3,121,16],zeroFill(47),[7]]}).reduce(function(W,G){return W[G]=new Uint8Array(R[G].reduce(function(R,W){return R.concat(W)},[])),W},{})}return e7};e9=function(R){return 9e4*R},tt=function(R,W){return R*W};var ev={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:e9,secondsToAudioTs:tt,videoTsToSeconds:tr=function(R){return R/9e4},audioTsToSeconds:tn=function(R,W){return R/W},audioTsToVideoTs:function(R,W){return e9(tn(R,W))},videoTsToAudioTs:function(R,W){return tt(tr(R),W)},metadataTsToSeconds:function(R,W,G){return tr(G?R:R-W)}},sumFrameByteLengths=function(R){var W,G=0;for(W=0;W<R.length;W++)G+=R[W].data.byteLength;return G},eb={prefixWithSilence:function(R,W,G,J){var et,er,en,ei,eo=0,es=0,ec=0;if(W.length&&(et=ev.audioTsToVideoTs(R.baseMediaDecodeTime,R.samplerate),eo=Math.ceil(ev.ONE_SECOND_IN_TS/(R.samplerate/1024)),G&&J&&(ec=(es=Math.floor((et-Math.max(G,J))/eo))*eo),!(es<1)&&!(ec>ev.ONE_SECOND_IN_TS/2))){for((er=silence_1()[R.samplerate])||(er=W[0].data),en=0;en<es;en++)ei=W[0],W.splice(0,0,{data:er,dts:ei.dts-eo,pts:ei.pts-eo});return R.baseMediaDecodeTime-=Math.floor(ev.videoTsToAudioTs(ec,R.samplerate)),ec}},trimAdtsFramesByEarliestDts:function(R,W,G){return W.minSegmentDts>=G?R:(W.minSegmentDts=1/0,R.filter(function(R){return R.dts>=G&&(W.minSegmentDts=Math.min(W.minSegmentDts,R.dts),W.minSegmentPts=W.minSegmentDts,!0)}))},generateSampleTable:function(R){var W,G=[];for(W=0;W<R.length;W++)G.push({size:R[W].data.byteLength,duration:1024});return G},concatenateFrameData:function(R){var W,G,J=0,et=new Uint8Array(sumFrameByteLengths(R));for(W=0;W<R.length;W++)G=R[W],et.set(G.data,J),J+=G.data.byteLength;return et}},e_=ev.ONE_SECOND_IN_TS,ex={clearDtsInfo:function(R){delete R.minSegmentDts,delete R.maxSegmentDts,delete R.minSegmentPts,delete R.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(R,W){var G,J=R.minSegmentDts;return W||(J-=R.timelineStartInfo.dts),G=Math.max(0,G=R.timelineStartInfo.baseMediaDecodeTime+J),"audio"===R.type&&(G*=R.samplerate/e_,G=Math.floor(G)),G},collectDtsInfo:function(R,W){"number"==typeof W.pts&&(void 0===R.timelineStartInfo.pts&&(R.timelineStartInfo.pts=W.pts),void 0===R.minSegmentPts?R.minSegmentPts=W.pts:R.minSegmentPts=Math.min(R.minSegmentPts,W.pts),void 0===R.maxSegmentPts?R.maxSegmentPts=W.pts:R.maxSegmentPts=Math.max(R.maxSegmentPts,W.pts)),"number"==typeof W.dts&&(void 0===R.timelineStartInfo.dts&&(R.timelineStartInfo.dts=W.dts),void 0===R.minSegmentDts?R.minSegmentDts=W.dts:R.minSegmentDts=Math.min(R.minSegmentDts,W.dts),void 0===R.maxSegmentDts?R.maxSegmentDts=W.dts:R.maxSegmentDts=Math.max(R.maxSegmentDts,W.dts))}},ew={parseSei:function(R){for(var W=0,G={payloadType:-1,payloadSize:0},J=0,et=0;W<R.byteLength&&128!==R[W];){for(;255===R[W];)J+=255,W++;for(J+=R[W++];255===R[W];)et+=255,W++;if(et+=R[W++],!G.payload&&4===J){if("GA94"===String.fromCharCode(R[W+3],R[W+4],R[W+5],R[W+6])){G.payloadType=J,G.payloadSize=et,G.payload=R.subarray(W,W+et);break}G.payload=void 0}W+=et,J=0,et=0}return G},parseUserData:function(R){return 181!==R.payload[0]||(R.payload[1]<<8|R.payload[2])!=49||"GA94"!==String.fromCharCode(R.payload[3],R.payload[4],R.payload[5],R.payload[6])||3!==R.payload[7]?null:R.payload.subarray(8,R.payload.length-1)},parseCaptionPackets:function(R,W){var G,J,et,er,en=[];if(!(64&W[0]))return en;for(G=0,J=31&W[0];G<J;G++)er={type:3&W[(et=3*G)+2],pts:R},4&W[et+2]&&(er.ccData=W[et+3]<<8|W[et+4],en.push(er));return en},discardEmulationPreventionBytes:function(R){for(var W,G,J=R.byteLength,et=[],er=1;er<J-2;)0===R[er]&&0===R[er+1]&&3===R[er+2]?(et.push(er+2),er+=2):er++;if(0===et.length)return R;W=J-et.length,G=new Uint8Array(W);var en=0;for(er=0;er<W;en++,er++)en===et[0]&&(en++,et.shift()),G[er]=R[en];return G},USER_DATA_REGISTERED_ITU_T_T35:4},CaptionStream$1=function CaptionStream(R){R=R||{},CaptionStream.prototype.init.call(this),this.parse708captions_="boolean"!=typeof R.parse708captions||R.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Cea608Stream(0,0),new Cea608Stream(0,1),new Cea608Stream(1,0),new Cea608Stream(1,1)],this.parse708captions_&&(this.cc708Stream_=new Cea708Stream({captionServices:R.captionServices})),this.reset(),this.ccStreams_.forEach(function(R){R.on("data",this.trigger.bind(this,"data")),R.on("partialdone",this.trigger.bind(this,"partialdone")),R.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};CaptionStream$1.prototype=new Stream,CaptionStream$1.prototype.push=function(R){var W,G,J;if("sei_rbsp"===R.nalUnitType&&(W=ew.parseSei(R.escapedRBSP)).payload&&W.payloadType===ew.USER_DATA_REGISTERED_ITU_T_T35&&(G=ew.parseUserData(W))){if(R.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}if(R.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}J=ew.parseCaptionPackets(R.pts,G),this.captionPackets_=this.captionPackets_.concat(J),this.latestDts_!==R.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=R.dts}},CaptionStream$1.prototype.flushCCStreams=function(R){this.ccStreams_.forEach(function(W){return"flush"===R?W.flush():W.partialFlush()},this)},CaptionStream$1.prototype.flushStream=function(R){if(!this.captionPackets_.length){this.flushCCStreams(R);return}this.captionPackets_.forEach(function(R,W){R.presortIndex=W}),this.captionPackets_.sort(function(R,W){return R.pts===W.pts?R.presortIndex-W.presortIndex:R.pts-W.pts}),this.captionPackets_.forEach(function(R){R.type<2?this.dispatchCea608Packet(R):this.dispatchCea708Packet(R)},this),this.captionPackets_.length=0,this.flushCCStreams(R)},CaptionStream$1.prototype.flush=function(){return this.flushStream("flush")},CaptionStream$1.prototype.partialFlush=function(){return this.flushStream("partialFlush")},CaptionStream$1.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(R){R.reset()})},CaptionStream$1.prototype.dispatchCea608Packet=function(R){this.setsTextOrXDSActive(R)?this.activeCea608Channel_[R.type]=null:this.setsChannel1Active(R)?this.activeCea608Channel_[R.type]=0:this.setsChannel2Active(R)&&(this.activeCea608Channel_[R.type]=1),null!==this.activeCea608Channel_[R.type]&&this.ccStreams_[(R.type<<1)+this.activeCea608Channel_[R.type]].push(R)},CaptionStream$1.prototype.setsChannel1Active=function(R){return(30720&R.ccData)==4096},CaptionStream$1.prototype.setsChannel2Active=function(R){return(30720&R.ccData)==6144},CaptionStream$1.prototype.setsTextOrXDSActive=function(R){return(28928&R.ccData)==256||(30974&R.ccData)==4138||(30974&R.ccData)==6186},CaptionStream$1.prototype.dispatchCea708Packet=function(R){this.parse708captions_&&this.cc708Stream_.push(R)};var eS={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},get708CharFromCode=function(R){var W=eS[R]||R;return 4096&R&&R===W?"":String.fromCharCode(W)},within708TextBlock=function(R){return 32<=R&&R<=127||160<=R&&R<=255},Cea708Window=function(R){this.windowNum=R,this.reset()};Cea708Window.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Cea708Window.prototype.getText=function(){return this.rows.join("\n")},Cea708Window.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Cea708Window.prototype.newLine=function(R){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(R),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Cea708Window.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Cea708Window.prototype.addText=function(R){this.rows[this.rowIdx]+=R},Cea708Window.prototype.backspace=function(){if(!this.isEmpty()){var R=this.rows[this.rowIdx];this.rows[this.rowIdx]=R.substr(0,R.length-1)}};var Cea708Service=function(R,W,G){this.serviceNum=R,this.text="",this.currentWindow=new Cea708Window(-1),this.windows=[],this.stream=G,"string"==typeof W&&this.createTextDecoder(W)};Cea708Service.prototype.init=function(R,W){this.startPts=R;for(var G=0;G<8;G++)this.windows[G]=new Cea708Window(G),"function"==typeof W&&(this.windows[G].beforeRowOverflow=W)},Cea708Service.prototype.setCurrentWindow=function(R){this.currentWindow=this.windows[R]},Cea708Service.prototype.createTextDecoder=function(R){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(R)}catch(W){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+R+" encoding. "+W})}};var Cea708Stream=function Cea708Stream(R){R=R||{},Cea708Stream.prototype.init.call(this);var W,G=this,J=R.captionServices||{},et={};Object.keys(J).forEach(function(R){W=J[R],/^SERVICE/.test(R)&&(et[R]=W.encoding)}),this.serviceEncodings=et,this.current708Packet=null,this.services={},this.push=function(R){3===R.type?G.new708Packet():null===G.current708Packet&&G.new708Packet(),G.add708Bytes(R)}};Cea708Stream.prototype=new Stream,Cea708Stream.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Cea708Stream.prototype.add708Bytes=function(R){var W=R.ccData;this.current708Packet.ptsVals.push(R.pts),this.current708Packet.data.push(W>>>8),this.current708Packet.data.push(255&W)},Cea708Stream.prototype.push708Packet=function(){var R=this.current708Packet,W=R.data,G=null,J=null,et=0,er=W[et++];for(R.seq=er>>6,R.sizeCode=63&er;et<W.length;et++)G=(er=W[et++])>>5,J=31&er,7===G&&J>0&&(G=er=W[et++]),this.pushServiceBlock(G,et,J),J>0&&(et+=J-1)},Cea708Stream.prototype.pushServiceBlock=function(R,W,G){var J,et=W,er=this.current708Packet.data,en=this.services[R];for(en||(en=this.initService(R,et));et<W+G&&et<er.length;et++)within708TextBlock(J=er[et])?et=this.handleText(et,en):24===J?et=this.multiByteCharacter(et,en):16===J?et=this.extendedCommands(et,en):128<=J&&J<=135?et=this.setCurrentWindow(et,en):152<=J&&J<=159?et=this.defineWindow(et,en):136===J?et=this.clearWindows(et,en):140===J?et=this.deleteWindows(et,en):137===J?et=this.displayWindows(et,en):138===J?et=this.hideWindows(et,en):139===J?et=this.toggleWindows(et,en):151===J?et=this.setWindowAttributes(et,en):144===J?et=this.setPenAttributes(et,en):145===J?et=this.setPenColor(et,en):146===J?et=this.setPenLocation(et,en):143===J?en=this.reset(et,en):8===J?en.currentWindow.backspace():12===J?en.currentWindow.clearText():13===J?en.currentWindow.pendingNewLine=!0:14===J?en.currentWindow.clearText():141===J&&et++},Cea708Stream.prototype.extendedCommands=function(R,W){return within708TextBlock(this.current708Packet.data[++R])&&(R=this.handleText(R,W,{isExtended:!0})),R},Cea708Stream.prototype.getPts=function(R){return this.current708Packet.ptsVals[Math.floor(R/2)]},Cea708Stream.prototype.initService=function(R,W){var G,J="SERVICE"+R,et=this;return J in this.serviceEncodings&&(G=this.serviceEncodings[J]),this.services[R]=new Cea708Service(R,G,et),this.services[R].init(this.getPts(W),function(W){et.flushDisplayed(W,et.services[R])}),this.services[R]},Cea708Stream.prototype.handleText=function(R,W,G){var J,et,er=G&&G.isExtended,en=G&&G.isMultiByte,ei=this.current708Packet.data,eo=ei[R],es=ei[R+1],ec=W.currentWindow;return W.textDecoder_&&!er?(en?(et=[eo,es],R++):et=[eo],J=W.textDecoder_.decode(new Uint8Array(et))):J=get708CharFromCode((er?4096:0)|eo),ec.pendingNewLine&&!ec.isEmpty()&&ec.newLine(this.getPts(R)),ec.pendingNewLine=!1,ec.addText(J),R},Cea708Stream.prototype.multiByteCharacter=function(R,W){var G=this.current708Packet.data,J=G[R+1],et=G[R+2];return within708TextBlock(J)&&within708TextBlock(et)&&(R=this.handleText(++R,W,{isMultiByte:!0})),R},Cea708Stream.prototype.setCurrentWindow=function(R,W){var G=this.current708Packet.data[R];return W.setCurrentWindow(7&G),R},Cea708Stream.prototype.defineWindow=function(R,W){var G=this.current708Packet.data,J=G[R],et=7&J;W.setCurrentWindow(et);var er=W.currentWindow;return J=G[++R],er.visible=(32&J)>>5,er.rowLock=(16&J)>>4,er.columnLock=(8&J)>>3,er.priority=7&J,J=G[++R],er.relativePositioning=(128&J)>>7,er.anchorVertical=127&J,J=G[++R],er.anchorHorizontal=J,J=G[++R],er.anchorPoint=(240&J)>>4,er.rowCount=15&J,J=G[++R],er.columnCount=63&J,J=G[++R],er.windowStyle=(56&J)>>3,er.penStyle=7&J,er.virtualRowCount=er.rowCount+1,R},Cea708Stream.prototype.setWindowAttributes=function(R,W){var G=this.current708Packet.data,J=G[R],et=W.currentWindow.winAttr;return J=G[++R],et.fillOpacity=(192&J)>>6,et.fillRed=(48&J)>>4,et.fillGreen=(12&J)>>2,et.fillBlue=3&J,J=G[++R],et.borderType=(192&J)>>6,et.borderRed=(48&J)>>4,et.borderGreen=(12&J)>>2,et.borderBlue=3&J,J=G[++R],et.borderType+=(128&J)>>5,et.wordWrap=(64&J)>>6,et.printDirection=(48&J)>>4,et.scrollDirection=(12&J)>>2,et.justify=3&J,J=G[++R],et.effectSpeed=(240&J)>>4,et.effectDirection=(12&J)>>2,et.displayEffect=3&J,R},Cea708Stream.prototype.flushDisplayed=function(R,W){for(var G=[],J=0;J<8;J++)W.windows[J].visible&&!W.windows[J].isEmpty()&&G.push(W.windows[J].getText());W.endPts=R,W.text=G.join("\n\n"),this.pushCaption(W),W.startPts=R},Cea708Stream.prototype.pushCaption=function(R){""!==R.text&&(this.trigger("data",{startPts:R.startPts,endPts:R.endPts,text:R.text,stream:"cc708_"+R.serviceNum}),R.text="",R.startPts=R.endPts)},Cea708Stream.prototype.displayWindows=function(R,W){var G=this.current708Packet.data[++R],J=this.getPts(R);this.flushDisplayed(J,W);for(var et=0;et<8;et++)G&1<<et&&(W.windows[et].visible=1);return R},Cea708Stream.prototype.hideWindows=function(R,W){var G=this.current708Packet.data[++R],J=this.getPts(R);this.flushDisplayed(J,W);for(var et=0;et<8;et++)G&1<<et&&(W.windows[et].visible=0);return R},Cea708Stream.prototype.toggleWindows=function(R,W){var G=this.current708Packet.data[++R],J=this.getPts(R);this.flushDisplayed(J,W);for(var et=0;et<8;et++)G&1<<et&&(W.windows[et].visible^=1);return R},Cea708Stream.prototype.clearWindows=function(R,W){var G=this.current708Packet.data[++R],J=this.getPts(R);this.flushDisplayed(J,W);for(var et=0;et<8;et++)G&1<<et&&W.windows[et].clearText();return R},Cea708Stream.prototype.deleteWindows=function(R,W){var G=this.current708Packet.data[++R],J=this.getPts(R);this.flushDisplayed(J,W);for(var et=0;et<8;et++)G&1<<et&&W.windows[et].reset();return R},Cea708Stream.prototype.setPenAttributes=function(R,W){var G=this.current708Packet.data,J=G[R],et=W.currentWindow.penAttr;return J=G[++R],et.textTag=(240&J)>>4,et.offset=(12&J)>>2,et.penSize=3&J,J=G[++R],et.italics=(128&J)>>7,et.underline=(64&J)>>6,et.edgeType=(56&J)>>3,et.fontStyle=7&J,R},Cea708Stream.prototype.setPenColor=function(R,W){var G=this.current708Packet.data,J=G[R],et=W.currentWindow.penColor;return J=G[++R],et.fgOpacity=(192&J)>>6,et.fgRed=(48&J)>>4,et.fgGreen=(12&J)>>2,et.fgBlue=3&J,J=G[++R],et.bgOpacity=(192&J)>>6,et.bgRed=(48&J)>>4,et.bgGreen=(12&J)>>2,et.bgBlue=3&J,J=G[++R],et.edgeRed=(48&J)>>4,et.edgeGreen=(12&J)>>2,et.edgeBlue=3&J,R},Cea708Stream.prototype.setPenLocation=function(R,W){var G=this.current708Packet.data,J=G[R],et=W.currentWindow.penLoc;return W.currentWindow.pendingNewLine=!0,J=G[++R],et.row=15&J,J=G[++R],et.column=63&J,R},Cea708Stream.prototype.reset=function(R,W){var G=this.getPts(R);return this.flushDisplayed(G,W),this.initService(W.serviceNum,R)};var eT={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},getCharFromCode=function(R){return null===R?"":String.fromCharCode(R=eT[R]||R)},eO=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],createDisplayBuffer=function(){for(var R=[],W=15;W--;)R.push("");return R},Cea608Stream=function Cea608Stream(R,W){Cea608Stream.prototype.init.call(this),this.field_=R||0,this.dataChannel_=W||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(R){var W,G,J,et,er;if((W=32639&R.ccData)===this.lastControlCode_){this.lastControlCode_=null;return}if((61440&W)==4096?this.lastControlCode_=W:W!==this.PADDING_&&(this.lastControlCode_=null),J=W>>>8,et=255&W,W!==this.PADDING_){if(W===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(W===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(R.pts),this.flushDisplayed(R.pts),G=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=G,this.startPts_=R.pts;else if(W===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(R.pts);else if(W===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(R.pts);else if(W===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(R.pts);else if(W===this.CARRIAGE_RETURN_)this.clearFormatting(R.pts),this.flushDisplayed(R.pts),this.shiftRowsUp_(),this.startPts_=R.pts;else if(W===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(W===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(R.pts),this.displayed_=createDisplayBuffer();else if(W===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=createDisplayBuffer();else if(W===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(R.pts),this.displayed_=createDisplayBuffer()),this.mode_="paintOn",this.startPts_=R.pts;else if(this.isSpecialCharacter(J,et))er=getCharFromCode((J=(3&J)<<8)|et),this[this.mode_](R.pts,er),this.column_++;else if(this.isExtCharacter(J,et))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),er=getCharFromCode((J=(3&J)<<8)|et),this[this.mode_](R.pts,er),this.column_++;else if(this.isMidRowCode(J,et))this.clearFormatting(R.pts),this[this.mode_](R.pts," "),this.column_++,(14&et)==14&&this.addFormatting(R.pts,["i"]),(1&et)==1&&this.addFormatting(R.pts,["u"]);else if(this.isOffsetControlCode(J,et))this.column_+=3&et;else if(this.isPAC(J,et)){var en=eO.indexOf(7968&W);"rollUp"===this.mode_&&(en-this.rollUpRows_+1<0&&(en=this.rollUpRows_-1),this.setRollUp(R.pts,en)),en!==this.row_&&(this.clearFormatting(R.pts),this.row_=en),1&et&&-1===this.formatting_.indexOf("u")&&this.addFormatting(R.pts,["u"]),(16&W)==16&&(this.column_=((14&W)>>1)*4),this.isColorPAC(et)&&(14&et)==14&&this.addFormatting(R.pts,["i"])}else this.isNormalChar(J)&&(0===et&&(et=null),er=getCharFromCode(J)+getCharFromCode(et),this[this.mode_](R.pts,er),this.column_+=er.length)}}};Cea608Stream.prototype=new Stream,Cea608Stream.prototype.flushDisplayed=function(R){var W=this.displayed_.map(function(R,W){try{return R.trim()}catch(R){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+W+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");W.length&&this.trigger("data",{startPts:this.startPts_,endPts:R,text:W,stream:this.name_})},Cea608Stream.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=createDisplayBuffer(),this.nonDisplayed_=createDisplayBuffer(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Cea608Stream.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Cea608Stream.prototype.isSpecialCharacter=function(R,W){return R===this.EXT_&&W>=48&&W<=63},Cea608Stream.prototype.isExtCharacter=function(R,W){return(R===this.EXT_+1||R===this.EXT_+2)&&W>=32&&W<=63},Cea608Stream.prototype.isMidRowCode=function(R,W){return R===this.EXT_&&W>=32&&W<=47},Cea608Stream.prototype.isOffsetControlCode=function(R,W){return R===this.OFFSET_&&W>=33&&W<=35},Cea608Stream.prototype.isPAC=function(R,W){return R>=this.BASE_&&R<this.BASE_+8&&W>=64&&W<=127},Cea608Stream.prototype.isColorPAC=function(R){return R>=64&&R<=79||R>=96&&R<=127},Cea608Stream.prototype.isNormalChar=function(R){return R>=32&&R<=127},Cea608Stream.prototype.setRollUp=function(R,W){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(R),this.nonDisplayed_=createDisplayBuffer(),this.displayed_=createDisplayBuffer()),void 0!==W&&W!==this.row_)for(var G=0;G<this.rollUpRows_;G++)this.displayed_[W-G]=this.displayed_[this.row_-G],this.displayed_[this.row_-G]="";void 0===W&&(W=this.row_),this.topRow_=W-this.rollUpRows_+1},Cea608Stream.prototype.addFormatting=function(R,W){this.formatting_=this.formatting_.concat(W);var G=W.reduce(function(R,W){return R+"<"+W+">"},"");this[this.mode_](R,G)},Cea608Stream.prototype.clearFormatting=function(R){if(this.formatting_.length){var W=this.formatting_.reverse().reduce(function(R,W){return R+"</"+W+">"},"");this.formatting_=[],this[this.mode_](R,W)}},Cea608Stream.prototype.popOn=function(R,W){var G=this.nonDisplayed_[this.row_];G+=W,this.nonDisplayed_[this.row_]=G},Cea608Stream.prototype.rollUp=function(R,W){var G=this.displayed_[this.row_];G+=W,this.displayed_[this.row_]=G},Cea608Stream.prototype.shiftRowsUp_=function(){var R;for(R=0;R<this.topRow_;R++)this.displayed_[R]="";for(R=this.row_+1;R<15;R++)this.displayed_[R]="";for(R=this.topRow_;R<this.row_;R++)this.displayed_[R]=this.displayed_[R+1];this.displayed_[this.row_]=""},Cea608Stream.prototype.paintOn=function(R,W){var G=this.displayed_[this.row_];G+=W,this.displayed_[this.row_]=G};var eP={CaptionStream:CaptionStream$1,Cea608Stream:Cea608Stream,Cea708Stream:Cea708Stream},eC={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},ek="shared",handleRollover$1=function(R,W){var G=1;for(R>W&&(G=-1);Math.abs(W-R)>4294967296;)R+=8589934592*G;return R},TimestampRolloverStream$1=function TimestampRolloverStream(R){var W,G;TimestampRolloverStream.prototype.init.call(this),this.type_=R||ek,this.push=function(R){(this.type_===ek||R.type===this.type_)&&(void 0===G&&(G=R.dts),R.dts=handleRollover$1(R.dts,G),R.pts=handleRollover$1(R.pts,G),W=R.dts,this.trigger("data",R))},this.flush=function(){G=W,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){G=void 0,W=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};TimestampRolloverStream$1.prototype=new Stream;var eE,ej,eA,eD,eI,eM,eL,eR,eN,eB,eZ,eU,eF,ez,eH,eq,eV,eW,eG,e$,eK,eY,eX,eQ,eJ,e0,e1,e2,e3,e5,e4,e8,e6,e7,e9,tt,tr,tn,ti,to={TimestampRolloverStream:TimestampRolloverStream$1,handleRollover:handleRollover$1},percentEncode$1=function(R,W,G){var J,et="";for(J=W;J<G;J++)et+="%"+("00"+R[J].toString(16)).slice(-2);return et},parseUtf8=function(R,W,G){return decodeURIComponent(percentEncode$1(R,W,G))},parseSyncSafeInteger$1=function(R){return R[0]<<21|R[1]<<14|R[2]<<7|R[3]},ta={TXXX:function(R){var W;if(3===R.data[0]){for(W=1;W<R.data.length;W++)if(0===R.data[W]){R.description=parseUtf8(R.data,1,W),R.value=parseUtf8(R.data,W+1,R.data.length).replace(/\0*$/,"");break}R.data=R.value}},WXXX:function(R){var W;if(3===R.data[0]){for(W=1;W<R.data.length;W++)if(0===R.data[W]){R.description=parseUtf8(R.data,1,W),R.url=parseUtf8(R.data,W+1,R.data.length);break}}},PRIV:function(R){var W;for(W=0;W<R.data.length;W++)if(0===R.data[W]){R.owner=unescape(percentEncode$1(R.data,0,W));break}R.privateData=R.data.subarray(W+1),R.data=R.privateData}};(ti=function(R){var W,G={descriptor:R&&R.descriptor},J=0,et=[],er=0;if(ti.prototype.init.call(this),this.dispatchType=eC.METADATA_STREAM_TYPE.toString(16),G.descriptor)for(W=0;W<G.descriptor.length;W++)this.dispatchType+=("00"+G.descriptor[W].toString(16)).slice(-2);this.push=function(R){var W,G,en,ei,eo;if("timed-metadata"===R.type){if(R.dataAlignmentIndicator&&(er=0,et.length=0),0===et.length&&(R.data.length<10||73!==R.data[0]||68!==R.data[1]||51!==R.data[2])){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(et.push(R),er+=R.data.byteLength,1===et.length&&(J=parseSyncSafeInteger$1(R.data.subarray(6,10))+10),!(er<J)){for(eo=0,W={data:new Uint8Array(J),frames:[],pts:et[0].pts,dts:et[0].dts};eo<J;)W.data.set(et[0].data.subarray(0,J-eo),eo),eo+=et[0].data.byteLength,er-=et[0].data.byteLength,et.shift();G=10,64&W.data[5]&&(G+=4+parseSyncSafeInteger$1(W.data.subarray(10,14)),J-=parseSyncSafeInteger$1(W.data.subarray(16,20)));do{if((en=parseSyncSafeInteger$1(W.data.subarray(G+4,G+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});return}if((ei={id:String.fromCharCode(W.data[G],W.data[G+1],W.data[G+2],W.data[G+3]),data:W.data.subarray(G+10,G+en+10)}).key=ei.id,ta[ei.id]&&(ta[ei.id](ei),"com.apple.streaming.transportStreamTimestamp"===ei.owner)){var es=ei.data,ec=(1&es[3])<<30|es[4]<<22|es[5]<<14|es[6]<<6|es[7]>>>2;ec*=4,ec+=3&es[7],ei.timeStamp=ec,void 0===W.pts&&void 0===W.dts&&(W.pts=ei.timeStamp,W.dts=ei.timeStamp),this.trigger("timestamp",ei)}W.frames.push(ei),G+=10+en}while(G<J);this.trigger("data",W)}}}}).prototype=new Stream;var ts=to.TimestampRolloverStream;(R=function(){var W=new Uint8Array(188),G=0;R.prototype.init.call(this),this.push=function(R){var J,et=0,er=188;for(G?((J=new Uint8Array(R.byteLength+G)).set(W.subarray(0,G)),J.set(R,G),G=0):J=R;er<J.byteLength;){if(71===J[et]&&71===J[er]){this.trigger("data",J.subarray(et,er)),et+=188,er+=188;continue}et++,er++}et<J.byteLength&&(W.set(J.subarray(et),0),G=J.byteLength-et)},this.flush=function(){188===G&&71===W[0]&&(this.trigger("data",W),G=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){G=0,this.trigger("reset")}}).prototype=new Stream,(W=function(){var R,G,J,et;W.prototype.init.call(this),et=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,R=function(R,W){var et=0;W.payloadUnitStartIndicator&&(et+=R[et]+1),"pat"===W.type?G(R.subarray(et),W):J(R.subarray(et),W)},G=function(R,W){W.section_number=R[7],W.last_section_number=R[8],et.pmtPid=(31&R[10])<<8|R[11],W.pmtPid=et.pmtPid},J=function(R,W){var G,J;if(1&R[5]){for(et.programMapTable={video:null,audio:null,"timed-metadata":{}},G=3+((15&R[1])<<8|R[2])-4,J=12+((15&R[10])<<8|R[11]);J<G;){var er=R[J],en=(31&R[J+1])<<8|R[J+2];er===eC.H264_STREAM_TYPE&&null===et.programMapTable.video?et.programMapTable.video=en:er===eC.ADTS_STREAM_TYPE&&null===et.programMapTable.audio?et.programMapTable.audio=en:er===eC.METADATA_STREAM_TYPE&&(et.programMapTable["timed-metadata"][en]=er),J+=((15&R[J+3])<<8|R[J+4])+5}W.programMapTable=et.programMapTable}},this.push=function(W){var G={},J=4;if(G.payloadUnitStartIndicator=!!(64&W[1]),G.pid=31&W[1],G.pid<<=8,G.pid|=W[2],(48&W[3])>>>4>1&&(J+=W[J]+1),0===G.pid)G.type="pat",R(W.subarray(J),G),this.trigger("data",G);else if(G.pid===this.pmtPid)for(G.type="pmt",R(W.subarray(J),G),this.trigger("data",G);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([W,J,G]):this.processPes_(W,J,G)},this.processPes_=function(R,W,G){G.pid===this.programMapTable.video?G.streamType=eC.H264_STREAM_TYPE:G.pid===this.programMapTable.audio?G.streamType=eC.ADTS_STREAM_TYPE:G.streamType=this.programMapTable["timed-metadata"][G.pid],G.type="pes",G.data=R.subarray(W),this.trigger("data",G)}}).prototype=new Stream,W.STREAM_TYPES={h264:27,adts:15},(J=function(){var R,W=this,G=!1,et={data:[],size:0},er={data:[],size:0},en={data:[],size:0},parsePes=function(R,W){var G,J=R[0]<<16|R[1]<<8|R[2];W.data=new Uint8Array,1===J&&(W.packetLength=6+(R[4]<<8|R[5]),W.dataAlignmentIndicator=(4&R[6])!=0,192&(G=R[7])&&(W.pts=(14&R[9])<<27|(255&R[10])<<20|(254&R[11])<<12|(255&R[12])<<5|(254&R[13])>>>3,W.pts*=4,W.pts+=(6&R[13])>>>1,W.dts=W.pts,64&G&&(W.dts=(14&R[14])<<27|(255&R[15])<<20|(254&R[16])<<12|(255&R[17])<<5|(254&R[18])>>>3,W.dts*=4,W.dts+=(6&R[18])>>>1)),W.data=R.subarray(9+R[8]))},flushStream=function(R,G,J){var et,er=new Uint8Array(R.size),en={type:G},ei=0,eo=0,es=!1;if(R.data.length&&!(R.size<9)){for(ei=0,en.trackId=R.data[0].pid;ei<R.data.length;ei++)et=R.data[ei],er.set(et.data,eo),eo+=et.data.byteLength;parsePes(er,en),es="video"===G||en.packetLength<=R.size,(J||es)&&(R.size=0,R.data.length=0),es&&W.trigger("data",en)}};J.prototype.init.call(this),this.push=function(J){({pat:function(){},pes:function(){var R,W;switch(J.streamType){case eC.H264_STREAM_TYPE:R=et,W="video";break;case eC.ADTS_STREAM_TYPE:R=er,W="audio";break;case eC.METADATA_STREAM_TYPE:R=en,W="timed-metadata";break;default:return}J.payloadUnitStartIndicator&&flushStream(R,W,!0),R.data.push(J),R.size+=J.data.byteLength},pmt:function(){var et={type:"metadata",tracks:[]};null!==(R=J.programMapTable).video&&et.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+R.video,codec:"avc",type:"video"}),null!==R.audio&&et.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+R.audio,codec:"adts",type:"audio"}),G=!0,W.trigger("data",et)}})[J.type]()},this.reset=function(){et.size=0,et.data.length=0,er.size=0,er.data.length=0,this.trigger("reset")},this.flushStreams_=function(){flushStream(et,"video"),flushStream(er,"audio"),flushStream(en,"timed-metadata")},this.flush=function(){if(!G&&R){var J={type:"metadata",tracks:[]};null!==R.video&&J.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+R.video,codec:"avc",type:"video"}),null!==R.audio&&J.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+R.audio,codec:"adts",type:"audio"}),W.trigger("data",J)}G=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new Stream;var tc={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:R,TransportParseStream:W,ElementaryStream:J,TimestampRolloverStream:ts,CaptionStream:eP.CaptionStream,Cea608Stream:eP.Cea608Stream,Cea708Stream:eP.Cea708Stream,MetadataStream:ti};for(var tl in eC)eC.hasOwnProperty(tl)&&(tc[tl]=eC[tl]);var tu=ev.ONE_SECOND_IN_TS,td=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(et=function(R){var W,G=0;et.prototype.init.call(this),this.skipWarn_=function(R,W){this.trigger("log",{level:"warn",message:"adts skiping bytes "+R+" to "+W+" in frame "+G+" outside syncword"})},this.push=function(J){var et,er,en,ei,eo,es,ec=0;if(R||(G=0),"audio"===J.type){for(W&&W.length?(ei=W,(W=new Uint8Array(ei.byteLength+J.data.byteLength)).set(ei),W.set(J.data,ei.byteLength)):W=J.data;ec+7<W.length;){if(255!==W[ec]||(246&W[ec+1])!=240){"number"!=typeof et&&(et=ec),ec++;continue}if("number"==typeof et&&(this.skipWarn_(et,ec),et=null),en=(1&~W[ec+1])*2,er=(3&W[ec+3])<<11|W[ec+4]<<3|(224&W[ec+5])>>5,es=(eo=((3&W[ec+6])+1)*1024)*tu/td[(60&W[ec+2])>>>2],W.byteLength-ec<er)break;this.trigger("data",{pts:J.pts+G*es,dts:J.dts+G*es,sampleCount:eo,audioobjecttype:(W[ec+2]>>>6&3)+1,channelcount:(1&W[ec+2])<<2|(192&W[ec+3])>>>6,samplerate:td[(60&W[ec+2])>>>2],samplingfrequencyindex:(60&W[ec+2])>>>2,samplesize:16,data:W.subarray(ec+7+en,ec+er)}),G++,ec+=er}"number"==typeof et&&(this.skipWarn_(et,ec),et=null),W=W.subarray(ec)}},this.flush=function(){G=0,this.trigger("done")},this.reset=function(){W=void 0,this.trigger("reset")},this.endTimeline=function(){W=void 0,this.trigger("endedtimeline")}}).prototype=new Stream;var expGolomb=function(R){var W=R.byteLength,G=0,J=0;this.length=function(){return 8*W},this.bitsAvailable=function(){return 8*W+J},this.loadWord=function(){var et=R.byteLength-W,er=new Uint8Array(4),en=Math.min(4,W);if(0===en)throw Error("no bytes available");er.set(R.subarray(et,et+en)),G=new DataView(er.buffer).getUint32(0),J=8*en,W-=en},this.skipBits=function(R){var et;J>R||(R-=J,et=Math.floor(R/8),R-=8*et,W-=et,this.loadWord()),G<<=R,J-=R},this.readBits=function(R){var et=Math.min(J,R),er=G>>>32-et;return((J-=et)>0?G<<=et:W>0&&this.loadWord(),(et=R-et)>0)?er<<et|this.readBits(et):er},this.skipLeadingZeros=function(){var R;for(R=0;R<J;++R)if((G&2147483648>>>R)!=0)return G<<=R,J-=R,R;return this.loadWord(),R+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var R=this.skipLeadingZeros();return this.readBits(R+1)-1},this.readExpGolomb=function(){var R=this.readUnsignedExpGolomb();return 1&R?1+R>>>1:-1*(R>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(en=function(){var R,W,G=0;en.prototype.init.call(this),this.push=function(J){W?((et=new Uint8Array(W.byteLength+J.data.byteLength)).set(W),et.set(J.data,W.byteLength),W=et):W=J.data;for(var et,er=W.byteLength;G<er-3;G++)if(1===W[G+2]){R=G+5;break}for(;R<er;)switch(W[R]){case 0:if(0!==W[R-1]){R+=2;break}if(0!==W[R-2]){R++;break}G+3!==R-2&&this.trigger("data",W.subarray(G+3,R-2));do R++;while(1!==W[R]&&R<er);G=R-2,R+=3;break;case 1:if(0!==W[R-1]||0!==W[R-2]){R+=3;break}this.trigger("data",W.subarray(G+3,R-2)),G=R-2,R+=3;break;default:R+=3}W=W.subarray(G),R-=G,G=0},this.reset=function(){W=null,G=0,this.trigger("reset")},this.flush=function(){W&&W.byteLength>3&&this.trigger("data",W.subarray(G+3)),W=null,G=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new Stream,ei={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(er=function(){var R,W,G,J,et,eo,es,ec=new en;er.prototype.init.call(this),R=this,this.push=function(R){"video"===R.type&&(W=R.trackId,G=R.pts,J=R.dts,ec.push(R))},ec.on("data",function(er){var en={trackId:W,pts:G,dts:J,data:er,nalUnitTypeCode:31&er[0]};switch(en.nalUnitTypeCode){case 5:en.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:en.nalUnitType="sei_rbsp",en.escapedRBSP=et(er.subarray(1));break;case 7:en.nalUnitType="seq_parameter_set_rbsp",en.escapedRBSP=et(er.subarray(1)),en.config=eo(en.escapedRBSP);break;case 8:en.nalUnitType="pic_parameter_set_rbsp";break;case 9:en.nalUnitType="access_unit_delimiter_rbsp"}R.trigger("data",en)}),ec.on("done",function(){R.trigger("done")}),ec.on("partialdone",function(){R.trigger("partialdone")}),ec.on("reset",function(){R.trigger("reset")}),ec.on("endedtimeline",function(){R.trigger("endedtimeline")}),this.flush=function(){ec.flush()},this.partialFlush=function(){ec.partialFlush()},this.reset=function(){ec.reset()},this.endTimeline=function(){ec.endTimeline()},es=function(R,W){var G,J=8,et=8;for(G=0;G<R;G++)0!==et&&(et=(J+W.readExpGolomb()+256)%256),J=0===et?J:et},et=function(R){for(var W,G,J=R.byteLength,et=[],er=1;er<J-2;)0===R[er]&&0===R[er+1]&&3===R[er+2]?(et.push(er+2),er+=2):er++;if(0===et.length)return R;W=J-et.length,G=new Uint8Array(W);var en=0;for(er=0;er<W;en++,er++)en===et[0]&&(en++,et.shift()),G[er]=R[en];return G},eo=function(R){var W,G,J,et,er,en,eo,ec,el,eu,ed,ep,ef=0,eh=0,eg=0,em=0,ey=[1,1];if(G=(W=new expGolomb(R)).readUnsignedByte(),et=W.readUnsignedByte(),J=W.readUnsignedByte(),W.skipUnsignedExpGolomb(),ei[G]&&(3===(er=W.readUnsignedExpGolomb())&&W.skipBits(1),W.skipUnsignedExpGolomb(),W.skipUnsignedExpGolomb(),W.skipBits(1),W.readBoolean()))for(ep=0,ed=3!==er?8:12;ep<ed;ep++)W.readBoolean()&&(ep<6?es(16,W):es(64,W));if(W.skipUnsignedExpGolomb(),0===(en=W.readUnsignedExpGolomb()))W.readUnsignedExpGolomb();else if(1===en)for(W.skipBits(1),W.skipExpGolomb(),W.skipExpGolomb(),eo=W.readUnsignedExpGolomb(),ep=0;ep<eo;ep++)W.skipExpGolomb();if(W.skipUnsignedExpGolomb(),W.skipBits(1),ec=W.readUnsignedExpGolomb(),el=W.readUnsignedExpGolomb(),0===(eu=W.readBits(1))&&W.skipBits(1),W.skipBits(1),W.readBoolean()&&(ef=W.readUnsignedExpGolomb(),eh=W.readUnsignedExpGolomb(),eg=W.readUnsignedExpGolomb(),em=W.readUnsignedExpGolomb()),W.readBoolean()&&W.readBoolean()){switch(W.readUnsignedByte()){case 1:ey=[1,1];break;case 2:ey=[12,11];break;case 3:ey=[10,11];break;case 4:ey=[16,11];break;case 5:ey=[40,33];break;case 6:ey=[24,11];break;case 7:ey=[20,11];break;case 8:ey=[32,11];break;case 9:ey=[80,33];break;case 10:ey=[18,11];break;case 11:ey=[15,11];break;case 12:ey=[64,33];break;case 13:ey=[160,99];break;case 14:ey=[4,3];break;case 15:ey=[3,2];break;case 16:ey=[2,1];break;case 255:ey=[W.readUnsignedByte()<<8|W.readUnsignedByte(),W.readUnsignedByte()<<8|W.readUnsignedByte()]}ey&&(ey[0],ey[1])}return{profileIdc:G,levelIdc:J,profileCompatibility:et,width:(ec+1)*16-2*ef-2*eh,height:(2-eu)*(el+1)*16-2*eg-2*em,sarRatio:ey}}}).prototype=new Stream;var tp=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],parseId3TagSize=function(R,W){var G=R[W+6]<<21|R[W+7]<<14|R[W+8]<<7|R[W+9];return(G=G>=0?G:0,(16&R[W+5])>>4)?G+20:G+10},parseSyncSafeInteger=function(R){return R[0]<<21|R[1]<<14|R[2]<<7|R[3]},percentEncode=function(R,W,G){var J,et="";for(J=W;J<G;J++)et+="%"+("00"+R[J].toString(16)).slice(-2);return et},tf={isLikelyAacData:function(R){var W=function getId3Offset(R,W){return R.length-W<10||73!==R[W]||68!==R[W+1]||51!==R[W+2]?W:(W+=parseId3TagSize(R,W),getId3Offset(R,W))}(R,0);return R.length>=W+2&&(255&R[W])==255&&(240&R[W+1])==240&&(22&R[W+1])==16},parseId3TagSize:parseId3TagSize,parseAdtsSize:function(R,W){var G=(224&R[W+5])>>5,J=R[W+4]<<3;return 6144&R[W+3]|J|G},parseType:function(R,W){return 73===R[W]&&68===R[W+1]&&51===R[W+2]?"timed-metadata":!0&R[W]&&(240&R[W+1])==240?"audio":null},parseSampleRate:function(R){for(var W=0;W+5<R.length;){if(255!==R[W]||(246&R[W+1])!=240){W++;continue}return tp[(60&R[W+2])>>>2]}return null},parseAacTimestamp:function(R){var W,G,J;W=10,64&R[5]&&(W+=4+parseSyncSafeInteger(R.subarray(10,14)));do{if((G=parseSyncSafeInteger(R.subarray(W+4,W+8)))<1)break;if("PRIV"===String.fromCharCode(R[W],R[W+1],R[W+2],R[W+3])){J=R.subarray(W+10,W+G+10);for(var et=0;et<J.byteLength;et++)if(0===J[et]){if("com.apple.streaming.transportStreamTimestamp"===unescape(percentEncode(J,0,et))){var er=J.subarray(et+1),en=(1&er[3])<<30|er[4]<<22|er[5]<<14|er[6]<<6|er[7]>>>2;return en*=4,en+=3&er[7]}break}}W+=10+G}while(W<R.byteLength);return null}};(eo=function(){var R=new Uint8Array,W=0;eo.prototype.init.call(this),this.setTimestamp=function(R){W=R},this.push=function(G){var J,et,er,en=0,ei=0;for(R.length?(er=R.length,(R=new Uint8Array(G.byteLength+er)).set(R.subarray(0,er)),R.set(G,er)):R=G;R.length-ei>=3;){if(73===R[ei]&&68===R[ei+1]&&51===R[ei+2]){if(R.length-ei<10||(en=tf.parseId3TagSize(R,ei),ei+en>R.length))break;J={type:"timed-metadata",data:R.subarray(ei,ei+en)},this.trigger("data",J),ei+=en;continue}if((255&R[ei])==255&&(240&R[ei+1])==240){if(R.length-ei<7||(en=tf.parseAdtsSize(R,ei),ei+en>R.length))break;et={type:"audio",data:R.subarray(ei,ei+en),pts:W,dts:W},this.trigger("data",et),ei+=en;continue}ei++}R=R.length-ei>0?R.subarray(ei):new Uint8Array},this.reset=function(){R=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){R=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new Stream;var th=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],tg=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],tm=tf.isLikelyAacData,ty=ev.ONE_SECOND_IN_TS,retriggerForStream=function(R,W){W.stream=R,this.trigger("log",W)},addPipelineLogRetriggers=function(R,W){for(var G=Object.keys(W),J=0;J<G.length;J++){var et=G[J];"headOfPipeline"!==et&&W[et].on&&W[et].on("log",retriggerForStream.bind(R,et))}},arrayEquals=function(R,W){var G;if(R.length!==W.length)return!1;for(G=0;G<R.length;G++)if(R[G]!==W[G])return!1;return!0},generateSegmentTimingInfo=function(R,W,G,J,et,er){return{start:{dts:R,pts:R+(G-W)},end:{dts:R+(J-W),pts:R+(et-G)},prependedContentDuration:er,baseMediaDecodeTime:R}};(ec=function(R,W){var G,J=[],et=0,er=0,en=1/0;G=(W=W||{}).firstSequenceNumber||0,ec.prototype.init.call(this),this.push=function(W){ex.collectDtsInfo(R,W),R&&th.forEach(function(G){R[G]=W[G]}),J.push(W)},this.setEarliestDts=function(R){et=R},this.setVideoBaseMediaDecodeTime=function(R){en=R},this.setAudioAppendStart=function(R){er=R},this.flush=function(){var ei,eo,es,ec,el,eu,ed;if(0===J.length){this.trigger("done","AudioSegmentStream");return}ei=eb.trimAdtsFramesByEarliestDts(J,R,et),R.baseMediaDecodeTime=ex.calculateTrackBaseMediaDecodeTime(R,W.keepOriginalTimestamps),ed=eb.prefixWithSilence(R,ei,er,en),R.samples=eb.generateSampleTable(ei),es=eh.mdat(eb.concatenateFrameData(ei)),J=[],eo=eh.moof(G,[R]),ec=new Uint8Array(eo.byteLength+es.byteLength),G++,ec.set(eo),ec.set(es,eo.byteLength),ex.clearDtsInfo(R),el=Math.ceil(1024*ty/R.samplerate),ei.length&&(eu=ei.length*el,this.trigger("segmentTimingInfo",generateSegmentTimingInfo(ev.audioTsToVideoTs(R.baseMediaDecodeTime,R.samplerate),ei[0].dts,ei[0].pts,ei[0].dts+eu,ei[0].pts+eu,ed||0)),this.trigger("timingInfo",{start:ei[0].pts,end:ei[0].pts+eu})),this.trigger("data",{track:R,boxes:ec}),this.trigger("done","AudioSegmentStream")},this.reset=function(){ex.clearDtsInfo(R),J=[],this.trigger("reset")}}).prototype=new Stream,(es=function(R,W){var G,J,et,er=[],en=[];G=(W=W||{}).firstSequenceNumber||0,es.prototype.init.call(this),delete R.minPTS,this.gopCache_=[],this.push=function(W){ex.collectDtsInfo(R,W),"seq_parameter_set_rbsp"!==W.nalUnitType||J||(J=W.config,R.sps=[W.data],tg.forEach(function(W){R[W]=J[W]},this)),"pic_parameter_set_rbsp"!==W.nalUnitType||et||(et=W.data,R.pps=[W.data]),er.push(W)},this.flush=function(){for(var J,et,ei,eo,es,ec,el,eu,ed,ep=0;er.length&&"access_unit_delimiter_rbsp"!==er[0].nalUnitType;)er.shift();if(0===er.length){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(et=eg.groupNalsIntoFrames(er),(eo=eg.groupFramesIntoGops(et))[0][0].keyFrame||((ei=this.getGopForFusion_(er[0],R))?(ep=ei.duration,eo.unshift(ei),eo.byteLength+=ei.byteLength,eo.nalCount+=ei.nalCount,eo.pts=ei.pts,eo.dts=ei.dts,eo.duration+=ei.duration):eo=eg.extendFirstKeyFrame(eo)),en.length){if(!(J=W.alignGopsAtEnd?this.alignGopsAtEnd_(eo):this.alignGopsAtStart_(eo))){this.gopCache_.unshift({gop:eo.pop(),pps:R.pps,sps:R.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),er=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}ex.clearDtsInfo(R),eo=J}ex.collectDtsInfo(R,eo),R.samples=eg.generateSampleTable(eo),ec=eh.mdat(eg.concatenateNalData(eo)),R.baseMediaDecodeTime=ex.calculateTrackBaseMediaDecodeTime(R,W.keepOriginalTimestamps),this.trigger("processedGopsInfo",eo.map(function(R){return{pts:R.pts,dts:R.dts,byteLength:R.byteLength}})),eu=eo[0],ed=eo[eo.length-1],this.trigger("segmentTimingInfo",generateSegmentTimingInfo(R.baseMediaDecodeTime,eu.dts,eu.pts,ed.dts+ed.duration,ed.pts+ed.duration,ep)),this.trigger("timingInfo",{start:eo[0].pts,end:eo[eo.length-1].pts+eo[eo.length-1].duration}),this.gopCache_.unshift({gop:eo.pop(),pps:R.pps,sps:R.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),er=[],this.trigger("baseMediaDecodeTime",R.baseMediaDecodeTime),this.trigger("timelineStartInfo",R.timelineStartInfo),es=eh.moof(G,[R]),el=new Uint8Array(es.byteLength+ec.byteLength),G++,el.set(es),el.set(ec,es.byteLength),this.trigger("data",{track:R,boxes:el}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),er=[],this.gopCache_.length=0,en.length=0,this.trigger("reset")},this.resetStream_=function(){ex.clearDtsInfo(R),J=void 0,et=void 0},this.getGopForFusion_=function(W){var G,J,et,er,en,ei=1/0;for(en=0;en<this.gopCache_.length;en++)et=(er=this.gopCache_[en]).gop,R.pps&&arrayEquals(R.pps[0],er.pps[0])&&R.sps&&arrayEquals(R.sps[0],er.sps[0])&&!(et.dts<R.timelineStartInfo.dts)&&(G=W.dts-et.dts-et.duration)>=-1e4&&G<=45e3&&(!J||ei>G)&&(J=er,ei=G);return J?J.gop:null},this.alignGopsAtStart_=function(R){var W,G,J,et,er,ei,eo,es;for(er=R.byteLength,ei=R.nalCount,eo=R.duration,W=G=0;W<en.length&&G<R.length&&(J=en[W],et=R[G],J.pts!==et.pts);){if(et.pts>J.pts){W++;continue}G++,er-=et.byteLength,ei-=et.nalCount,eo-=et.duration}return 0===G?R:G===R.length?null:((es=R.slice(G)).byteLength=er,es.duration=eo,es.nalCount=ei,es.pts=es[0].pts,es.dts=es[0].dts,es)},this.alignGopsAtEnd_=function(R){for(W=en.length-1,G=R.length-1,er=null,ei=!1;W>=0&&G>=0;){if(J=en[W],et=R[G],J.pts===et.pts){ei=!0;break}if(J.pts>et.pts){W--;continue}W===en.length-1&&(er=G),G--}if(!ei&&null===er)return null;if(0===(eo=ei?G:er))return R;var W,G,J,et,er,ei,eo,es=R.slice(eo),ec=es.reduce(function(R,W){return R.byteLength+=W.byteLength,R.duration+=W.duration,R.nalCount+=W.nalCount,R},{byteLength:0,duration:0,nalCount:0});return es.byteLength=ec.byteLength,es.duration=ec.duration,es.nalCount=ec.nalCount,es.pts=es[0].pts,es.dts=es[0].dts,es},this.alignGopsWith=function(R){en=R}}).prototype=new Stream,(eu=function(R,W){this.numberOfTracks=0,this.metadataStream=W,void 0!==(R=R||{}).remux?this.remuxTracks=!!R.remux:this.remuxTracks=!0,"boolean"==typeof R.keepOriginalTimestamps?this.keepOriginalTimestamps=R.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,eu.prototype.init.call(this),this.push=function(R){return R.text?this.pendingCaptions.push(R):R.frames?this.pendingMetadata.push(R):void(this.pendingTracks.push(R.track),this.pendingBytes+=R.boxes.byteLength,"video"===R.track.type&&(this.videoTrack=R.track,this.pendingBoxes.push(R.boxes)),"audio"===R.track.type&&(this.audioTrack=R.track,this.pendingBoxes.unshift(R.boxes)))}}).prototype=new Stream,eu.prototype.flush=function(R){var W,G,J,et,er=0,en={captions:[],captionStreams:{},metadata:[],info:{}},ei=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==R&&"AudioSegmentStream"!==R||this.remuxTracks)return;if(0===this.pendingTracks.length){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(ei=this.videoTrack.timelineStartInfo.pts,tg.forEach(function(R){en.info[R]=this.videoTrack[R]},this)):this.audioTrack&&(ei=this.audioTrack.timelineStartInfo.pts,th.forEach(function(R){en.info[R]=this.audioTrack[R]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?en.type=this.pendingTracks[0].type:en.type="combined",this.emittedTracks+=this.pendingTracks.length,J=eh.initSegment(this.pendingTracks),en.initSegment=new Uint8Array(J.byteLength),en.initSegment.set(J),en.data=new Uint8Array(this.pendingBytes),et=0;et<this.pendingBoxes.length;et++)en.data.set(this.pendingBoxes[et],er),er+=this.pendingBoxes[et].byteLength;for(et=0;et<this.pendingCaptions.length;et++)(W=this.pendingCaptions[et]).startTime=ev.metadataTsToSeconds(W.startPts,ei,this.keepOriginalTimestamps),W.endTime=ev.metadataTsToSeconds(W.endPts,ei,this.keepOriginalTimestamps),en.captionStreams[W.stream]=!0,en.captions.push(W);for(et=0;et<this.pendingMetadata.length;et++)(G=this.pendingMetadata[et]).cueTime=ev.metadataTsToSeconds(G.pts,ei,this.keepOriginalTimestamps),en.metadata.push(G);for(en.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",en),et=0;et<en.captions.length;et++)W=en.captions[et],this.trigger("caption",W);for(et=0;et<en.metadata.length;et++)G=en.metadata[et],this.trigger("id3Frame",G)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},eu.prototype.setRemux=function(R){this.remuxTracks=R},(el=function(R){var W,G,J=this,en=!0;el.prototype.init.call(this),R=R||{},this.baseMediaDecodeTime=R.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var er={};this.transmuxPipeline_=er,er.type="aac",er.metadataStream=new tc.MetadataStream,er.aacStream=new eo,er.audioTimestampRolloverStream=new tc.TimestampRolloverStream("audio"),er.timedMetadataTimestampRolloverStream=new tc.TimestampRolloverStream("timed-metadata"),er.adtsStream=new et,er.coalesceStream=new eu(R,er.metadataStream),er.headOfPipeline=er.aacStream,er.aacStream.pipe(er.audioTimestampRolloverStream).pipe(er.adtsStream),er.aacStream.pipe(er.timedMetadataTimestampRolloverStream).pipe(er.metadataStream).pipe(er.coalesceStream),er.metadataStream.on("timestamp",function(R){er.aacStream.setTimestamp(R.timeStamp)}),er.aacStream.on("data",function(et){"timed-metadata"!==et.type&&"audio"!==et.type||er.audioSegmentStream||(G=G||{timelineStartInfo:{baseMediaDecodeTime:J.baseMediaDecodeTime},codec:"adts",type:"audio"},er.coalesceStream.numberOfTracks++,er.audioSegmentStream=new ec(G,R),er.audioSegmentStream.on("log",J.getLogTrigger_("audioSegmentStream")),er.audioSegmentStream.on("timingInfo",J.trigger.bind(J,"audioTimingInfo")),er.adtsStream.pipe(er.audioSegmentStream).pipe(er.coalesceStream),J.trigger("trackinfo",{hasAudio:!!G,hasVideo:!!W}))}),er.coalesceStream.on("data",this.trigger.bind(this,"data")),er.coalesceStream.on("done",this.trigger.bind(this,"done")),addPipelineLogRetriggers(this,er)},this.setupTsPipeline=function(){var en={};this.transmuxPipeline_=en,en.type="ts",en.metadataStream=new tc.MetadataStream,en.packetStream=new tc.TransportPacketStream,en.parseStream=new tc.TransportParseStream,en.elementaryStream=new tc.ElementaryStream,en.timestampRolloverStream=new tc.TimestampRolloverStream,en.adtsStream=new et,en.h264Stream=new er,en.captionStream=new tc.CaptionStream(R),en.coalesceStream=new eu(R,en.metadataStream),en.headOfPipeline=en.packetStream,en.packetStream.pipe(en.parseStream).pipe(en.elementaryStream).pipe(en.timestampRolloverStream),en.timestampRolloverStream.pipe(en.h264Stream),en.timestampRolloverStream.pipe(en.adtsStream),en.timestampRolloverStream.pipe(en.metadataStream).pipe(en.coalesceStream),en.h264Stream.pipe(en.captionStream).pipe(en.coalesceStream),en.elementaryStream.on("data",function(et){var er;if("metadata"===et.type){for(er=et.tracks.length;er--;)W||"video"!==et.tracks[er].type?G||"audio"!==et.tracks[er].type||((G=et.tracks[er]).timelineStartInfo.baseMediaDecodeTime=J.baseMediaDecodeTime):(W=et.tracks[er]).timelineStartInfo.baseMediaDecodeTime=J.baseMediaDecodeTime;W&&!en.videoSegmentStream&&(en.coalesceStream.numberOfTracks++,en.videoSegmentStream=new es(W,R),en.videoSegmentStream.on("log",J.getLogTrigger_("videoSegmentStream")),en.videoSegmentStream.on("timelineStartInfo",function(W){G&&!R.keepOriginalTimestamps&&(G.timelineStartInfo=W,en.audioSegmentStream.setEarliestDts(W.dts-J.baseMediaDecodeTime))}),en.videoSegmentStream.on("processedGopsInfo",J.trigger.bind(J,"gopInfo")),en.videoSegmentStream.on("segmentTimingInfo",J.trigger.bind(J,"videoSegmentTimingInfo")),en.videoSegmentStream.on("baseMediaDecodeTime",function(R){G&&en.audioSegmentStream.setVideoBaseMediaDecodeTime(R)}),en.videoSegmentStream.on("timingInfo",J.trigger.bind(J,"videoTimingInfo")),en.h264Stream.pipe(en.videoSegmentStream).pipe(en.coalesceStream)),G&&!en.audioSegmentStream&&(en.coalesceStream.numberOfTracks++,en.audioSegmentStream=new ec(G,R),en.audioSegmentStream.on("log",J.getLogTrigger_("audioSegmentStream")),en.audioSegmentStream.on("timingInfo",J.trigger.bind(J,"audioTimingInfo")),en.audioSegmentStream.on("segmentTimingInfo",J.trigger.bind(J,"audioSegmentTimingInfo")),en.adtsStream.pipe(en.audioSegmentStream).pipe(en.coalesceStream)),J.trigger("trackinfo",{hasAudio:!!G,hasVideo:!!W})}}),en.coalesceStream.on("data",this.trigger.bind(this,"data")),en.coalesceStream.on("id3Frame",function(R){R.dispatchType=en.metadataStream.dispatchType,J.trigger("id3Frame",R)}),en.coalesceStream.on("caption",this.trigger.bind(this,"caption")),en.coalesceStream.on("done",this.trigger.bind(this,"done")),addPipelineLogRetriggers(this,en)},this.setBaseMediaDecodeTime=function(J){var et=this.transmuxPipeline_;R.keepOriginalTimestamps||(this.baseMediaDecodeTime=J),G&&(G.timelineStartInfo.dts=void 0,G.timelineStartInfo.pts=void 0,ex.clearDtsInfo(G),et.audioTimestampRolloverStream&&et.audioTimestampRolloverStream.discontinuity()),W&&(et.videoSegmentStream&&(et.videoSegmentStream.gopCache_=[]),W.timelineStartInfo.dts=void 0,W.timelineStartInfo.pts=void 0,ex.clearDtsInfo(W),et.captionStream.reset()),et.timestampRolloverStream&&et.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(R){G&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(R)},this.setRemux=function(W){var G=this.transmuxPipeline_;R.remux=W,G&&G.coalesceStream&&G.coalesceStream.setRemux(W)},this.alignGopsWith=function(R){W&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(R)},this.getLogTrigger_=function(R){var W=this;return function(G){G.stream=R,W.trigger("log",G)}},this.push=function(R){if(en){var W=tm(R);W&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():W||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),en=!1}this.transmuxPipeline_.headOfPipeline.push(R)},this.flush=function(){en=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new Stream;var tv={Transmuxer:el},tb={toUnsigned:function(R){return R>>>0},toHexString:function(R){return("00"+R.toString(16)).slice(-2)}},parseType_1=function(R){return""+(String.fromCharCode(R[0])+String.fromCharCode(R[1])+String.fromCharCode(R[2])+String.fromCharCode(R[3]))},t_=tb.toUnsigned,findBox_1=function findBox(R,W){var G,J,et,er,en,ei=[];if(!W.length)return null;for(G=0;G<R.byteLength;)J=t_(R[G]<<24|R[G+1]<<16|R[G+2]<<8|R[G+3]),et=parseType_1(R.subarray(G+4,G+8)),er=J>1?G+J:R.byteLength,et===W[0]&&(1===W.length?ei.push(R.subarray(G+8,er)):(en=findBox(R.subarray(G+8,er),W.slice(1))).length&&(ei=ei.concat(en))),G=er;return ei},tx=tb.toUnsigned,tw=ep.getUint64,parseTfdt=function(R){var W={version:R[0],flags:new Uint8Array(R.subarray(1,4))};return 1===W.version?W.baseMediaDecodeTime=tw(R.subarray(4)):W.baseMediaDecodeTime=tx(R[4]<<24|R[5]<<16|R[6]<<8|R[7]),W},parseSampleFlags_1=function(R){return{isLeading:(12&R[0])>>>2,dependsOn:3&R[0],isDependedOn:(192&R[1])>>>6,hasRedundancy:(48&R[1])>>>4,paddingValue:(14&R[1])>>>1,isNonSyncSample:1&R[1],degradationPriority:R[2]<<8|R[3]}},parseTrun=function(R){var W,G={version:R[0],flags:new Uint8Array(R.subarray(1,4)),samples:[]},J=new DataView(R.buffer,R.byteOffset,R.byteLength),et=1&G.flags[2],er=4&G.flags[2],en=1&G.flags[1],ei=2&G.flags[1],eo=4&G.flags[1],es=8&G.flags[1],ec=J.getUint32(4),el=8;for(et&&(G.dataOffset=J.getInt32(el),el+=4),er&&ec&&(W={flags:parseSampleFlags_1(R.subarray(el,el+4))},el+=4,en&&(W.duration=J.getUint32(el),el+=4),ei&&(W.size=J.getUint32(el),el+=4),es&&(1===G.version?W.compositionTimeOffset=J.getInt32(el):W.compositionTimeOffset=J.getUint32(el),el+=4),G.samples.push(W),ec--);ec--;)W={},en&&(W.duration=J.getUint32(el),el+=4),ei&&(W.size=J.getUint32(el),el+=4),eo&&(W.flags=parseSampleFlags_1(R.subarray(el,el+4)),el+=4),es&&(1===G.version?W.compositionTimeOffset=J.getInt32(el):W.compositionTimeOffset=J.getUint32(el),el+=4),G.samples.push(W);return G},parseTfhd=function(R){var W,G=new DataView(R.buffer,R.byteOffset,R.byteLength),J={version:R[0],flags:new Uint8Array(R.subarray(1,4)),trackId:G.getUint32(4)},et=1&J.flags[2],er=2&J.flags[2],en=8&J.flags[2],ei=16&J.flags[2],eo=32&J.flags[2],es=65536&J.flags[0],ec=131072&J.flags[0];return W=8,et&&(W+=4,J.baseDataOffset=G.getUint32(12),W+=4),er&&(J.sampleDescriptionIndex=G.getUint32(W),W+=4),en&&(J.defaultSampleDuration=G.getUint32(W),W+=4),ei&&(J.defaultSampleSize=G.getUint32(W),W+=4),eo&&(J.defaultSampleFlags=G.getUint32(W)),es&&(J.durationIsEmpty=!0),!et&&ec&&(J.baseDataOffsetIsMoof=!0),J},tS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==G.g?G.g:"undefined"!=typeof self?self:{},tT="undefined"!=typeof window?window:void 0!==tS?tS:"undefined"!=typeof self?self:{},tO=ew.discardEmulationPreventionBytes,tP=eP.CaptionStream,mapToSample=function(R,W){for(var G=R,J=0;J<W.length;J++){var et=W[J];if(G<et.size)return et;G-=et.size}return null},findSeiNals=function(R,W,G){var J,et,er,en,ei=new DataView(R.buffer,R.byteOffset,R.byteLength),eo={logs:[],seiNals:[]};for(et=0;et+4<R.length;et+=er)if(er=ei.getUint32(et),et+=4,!(er<=0))switch(31&R[et]){case 6:var es=R.subarray(et+1,et+1+er),ec=mapToSample(et,W);if(J={nalUnitType:"sei_rbsp",size:er,data:es,escapedRBSP:tO(es),trackId:G},ec)J.pts=ec.pts,J.dts=ec.dts,en=ec;else if(en)J.pts=en.pts,J.dts=en.dts;else{eo.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+et+" for trackId "+G+". See mux.js#223."});break}eo.seiNals.push(J)}return eo},parseSamples=function(R,W,G){var J=W,et=G.defaultSampleDuration||0,er=G.defaultSampleSize||0,en=G.trackId,ei=[];return R.forEach(function(R){var W=parseTrun(R).samples;W.forEach(function(R){void 0===R.duration&&(R.duration=et),void 0===R.size&&(R.size=er),R.trackId=en,R.dts=J,void 0===R.compositionTimeOffset&&(R.compositionTimeOffset=0),"bigint"==typeof J?(R.pts=J+tT.BigInt(R.compositionTimeOffset),J+=tT.BigInt(R.duration)):(R.pts=J+R.compositionTimeOffset,J+=R.duration)}),ei=ei.concat(W)}),ei},parseCaptionNals=function(R,W){var G=findBox_1(R,["moof","traf"]),J=findBox_1(R,["mdat"]),et={},er=[];return J.forEach(function(R,W){var J=G[W];er.push({mdat:R,traf:J})}),er.forEach(function(R){var G,J=R.mdat,er=R.traf,en=parseTfhd(findBox_1(er,["tfhd"])[0]),ei=en.trackId,eo=findBox_1(er,["tfdt"]),es=eo.length>0?parseTfdt(eo[0]).baseMediaDecodeTime:0,ec=findBox_1(er,["trun"]);W===ei&&ec.length>0&&(G=findSeiNals(J,parseSamples(ec,es,en),ei),et[ei]||(et[ei]={seiNals:[],logs:[]}),et[ei].seiNals=et[ei].seiNals.concat(G.seiNals),et[ei].logs=et[ei].logs.concat(G.logs))}),et},parseEmbeddedCaptions=function(R,W,G){if(null===W)return null;var J=parseCaptionNals(R,W)[W]||{};return{seiNals:J.seiNals,logs:J.logs,timescale:G}},captionParser=function(){var R,W,G,J,et,er,en=!1;this.isInitialized=function(){return en},this.init=function(W){R=new tP,en=!0,er=!!W&&W.isPartial,R.on("data",function(R){R.startTime=R.startPts/J,R.endTime=R.endPts/J,et.captions.push(R),et.captionStreams[R.stream]=!0}),R.on("log",function(R){et.logs.push(R)})},this.isNewInit=function(R,W){return(!R||0!==R.length)&&(!W||"object"!=typeof W||0!==Object.keys(W).length)&&(G!==R[0]||J!==W[G])},this.parse=function(R,er,en){var ei;if(!this.isInitialized()||!er||!en)return null;if(this.isNewInit(er,en))J=en[G=er[0]];else if(null===G||!J)return W.push(R),null;for(;W.length>0;){var eo=W.shift();this.parse(eo,er,en)}return((ei=parseEmbeddedCaptions(R,G,J))&&ei.logs&&(et.logs=et.logs.concat(ei.logs)),null!==ei&&ei.seiNals)?(this.pushNals(ei.seiNals),this.flushStream(),et):et.logs.length?{logs:et.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(W){if(!this.isInitialized()||!W||0===W.length)return null;W.forEach(function(W){R.push(W)})},this.flushStream=function(){if(!this.isInitialized())return null;er?R.partialFlush():R.flush()},this.clearParsedCaptions=function(){et.captions=[],et.captionStreams={},et.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;R.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){W=[],G=null,J=null,et?this.clearParsedCaptions():et={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},tC=tb.toUnsigned,tk=tb.toHexString,tE=ep.getUint64,tj={findBox:findBox_1,parseType:parseType_1,timescale:function(R){return findBox_1(R,["moov","trak"]).reduce(function(R,W){var G,J,et,er;return(G=findBox_1(W,["tkhd"])[0])&&(J=0===G[0]?12:20,et=tC(G[J]<<24|G[J+1]<<16|G[J+2]<<8|G[J+3]),er=findBox_1(W,["mdia","mdhd"])[0])?(J=0===er[0]?12:20,R[et]=tC(er[J]<<24|er[J+1]<<16|er[J+2]<<8|er[J+3]),R):null},{})},startTime:function(R,W){var G=findBox_1(W,["moof","traf"]).reduce(function(W,G){var J,et,er=findBox_1(G,["tfhd"])[0],en=R[tC(er[4]<<24|er[5]<<16|er[6]<<8|er[7])]||9e4,ei=findBox_1(G,["tfdt"])[0],eo=new DataView(ei.buffer,ei.byteOffset,ei.byteLength);return"bigint"==typeof(J=1===ei[0]?tE(ei.subarray(4,12)):eo.getUint32(4))?et=J/tT.BigInt(en):"number"!=typeof J||isNaN(J)||(et=J/en),et<Number.MAX_SAFE_INTEGER&&(et=Number(et)),et<W&&(W=et),W},1/0);return"bigint"==typeof G||isFinite(G)?G:0},compositionStartTime:function(R,W){var G,J=findBox_1(W,["moof","traf"]),et=0,er=0;if(J&&J.length){var en=findBox_1(J[0],["tfhd"])[0],ei=findBox_1(J[0],["trun"])[0],eo=findBox_1(J[0],["tfdt"])[0];if(en&&(G=parseTfhd(en).trackId),eo&&(et=parseTfdt(eo).baseMediaDecodeTime),ei){var es=parseTrun(ei);es.samples&&es.samples.length&&(er=es.samples[0].compositionTimeOffset||0)}}var ec=R[G]||9e4;"bigint"==typeof et&&(er=tT.BigInt(er),ec=tT.BigInt(ec));var el=(et+er)/ec;return"bigint"==typeof el&&el<Number.MAX_SAFE_INTEGER&&(el=Number(el)),el},videoTrackIds:function(R){var W=findBox_1(R,["moov","trak"]),G=[];return W.forEach(function(R){var W=findBox_1(R,["mdia","hdlr"]),J=findBox_1(R,["tkhd"]);W.forEach(function(R,W){var et,er,en=parseType_1(R.subarray(8,12)),ei=J[W];"vide"===en&&(er=0===(et=new DataView(ei.buffer,ei.byteOffset,ei.byteLength)).getUint8(0)?et.getUint32(12):et.getUint32(20),G.push(er))})}),G},tracks:function(R){var W=findBox_1(R,["moov","trak"]),G=[];return W.forEach(function(R){var W={},J=findBox_1(R,["tkhd"])[0];J&&(eo=(ei=new DataView(J.buffer,J.byteOffset,J.byteLength)).getUint8(0),W.id=0===eo?ei.getUint32(12):ei.getUint32(20));var et=findBox_1(R,["mdia","hdlr"])[0];if(et){var er=parseType_1(et.subarray(8,12));"vide"===er?W.type="video":"soun"===er?W.type="audio":W.type=er}var en=findBox_1(R,["mdia","minf","stbl","stsd"])[0];if(en){var ei,eo,es,ec=en.subarray(8);W.codec=parseType_1(ec.subarray(4,8));var el=findBox_1(ec,[W.codec])[0];el&&(/^[asm]vc[1-9]$/i.test(W.codec)?"avcC"===parseType_1((es=el.subarray(78)).subarray(4,8))&&es.length>11?(W.codec+=".",W.codec+=tk(es[9]),W.codec+=tk(es[10]),W.codec+=tk(es[11])):W.codec="avc1.4d400d":/^mp4[a,v]$/i.test(W.codec)?"esds"===parseType_1((es=el.subarray(28)).subarray(4,8))&&es.length>20&&0!==es[19]?(W.codec+="."+tk(es[19]),W.codec+="."+tk(es[20]>>>2&63).replace(/^0/,"")):W.codec="mp4a.40.2":W.codec=W.codec.toLowerCase())}var eu=findBox_1(R,["mdia","mdhd"])[0];eu&&(W.timescale=ed(eu)),G.push(W)}),G},getTimescaleFromMediaHeader:ed=function(R){var W=0===R[0]?12:20;return tC(R[W]<<24|R[W+1]<<16|R[W+2]<<8|R[W+3])}},parsePid=function(R){var W=31&R[1];return W<<=8,W|=R[2]},parsePayloadUnitStartIndicator=function(R){return!!(64&R[1])},parseAdaptionField=function(R){var W=0;return(48&R[3])>>>4>1&&(W+=R[4]+1),W},parseNalUnitType=function(R){switch(R){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},tA=to.handleRollover,tD={};tD.ts={parseType:function(R,W){var G=parsePid(R);return 0===G?"pat":G===W?"pmt":W?"pes":null},parsePat:function(R){var W=parsePayloadUnitStartIndicator(R),G=4+parseAdaptionField(R);return W&&(G+=R[G]+1),(31&R[G+10])<<8|R[G+11]},parsePmt:function(R){var W,G={},J=parsePayloadUnitStartIndicator(R),et=4+parseAdaptionField(R);if(J&&(et+=R[et]+1),1&R[et+5]){W=3+((15&R[et+1])<<8|R[et+2])-4;for(var er=12+((15&R[et+10])<<8|R[et+11]);er<W;){var en=et+er;G[(31&R[en+1])<<8|R[en+2]]=R[en],er+=((15&R[en+3])<<8|R[en+4])+5}return G}},parsePayloadUnitStartIndicator:parsePayloadUnitStartIndicator,parsePesType:function(R,W){switch(W[parsePid(R)]){case eC.H264_STREAM_TYPE:return"video";case eC.ADTS_STREAM_TYPE:return"audio";case eC.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(R){if(!parsePayloadUnitStartIndicator(R))return null;var W,G=4+parseAdaptionField(R);if(G>=R.byteLength)return null;var J=null;return 192&(W=R[G+7])&&((J={}).pts=(14&R[G+9])<<27|(255&R[G+10])<<20|(254&R[G+11])<<12|(255&R[G+12])<<5|(254&R[G+13])>>>3,J.pts*=4,J.pts+=(6&R[G+13])>>>1,J.dts=J.pts,64&W&&(J.dts=(14&R[G+14])<<27|(255&R[G+15])<<20|(254&R[G+16])<<12|(255&R[G+17])<<5|(254&R[G+18])>>>3,J.dts*=4,J.dts+=(6&R[G+18])>>>1)),J},videoPacketContainsKeyFrame:function(R){for(var W=4+parseAdaptionField(R),G=R.subarray(W),J=0,et=0,er=!1;et<G.byteLength-3;et++)if(1===G[et+2]){J=et+5;break}for(;J<G.byteLength;)switch(G[J]){case 0:if(0!==G[J-1]){J+=2;break}if(0!==G[J-2]){J++;break}et+3!==J-2&&"slice_layer_without_partitioning_rbsp_idr"===parseNalUnitType(31&G[et+3])&&(er=!0);do J++;while(1!==G[J]&&J<G.length);et=J-2,J+=3;break;case 1:if(0!==G[J-1]||0!==G[J-2]){J+=3;break}"slice_layer_without_partitioning_rbsp_idr"===parseNalUnitType(31&G[et+3])&&(er=!0),et=J-2,J+=3;break;default:J+=3}return G=G.subarray(et),J-=et,et=0,G&&G.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===parseNalUnitType(31&G[et+3])&&(er=!0),er}},tD.aac=tf;var tI=ev.ONE_SECOND_IN_TS,parsePsi_=function(R,W){for(var G,J=0,et=188;et<R.byteLength;){if(71===R[J]&&71===R[et]){switch(G=R.subarray(J,et),tD.ts.parseType(G,W.pid)){case"pat":W.pid=tD.ts.parsePat(G);break;case"pmt":var er=tD.ts.parsePmt(G);W.table=W.table||{},Object.keys(er).forEach(function(R){W.table[R]=er[R]})}J+=188,et+=188;continue}J++,et++}},parseAudioPes_=function(R,W,G){for(var J,et,er,en,ei=0,eo=188,es=!1;eo<=R.byteLength;){if(71===R[ei]&&(71===R[eo]||eo===R.byteLength)){if(J=R.subarray(ei,eo),"pes"===tD.ts.parseType(J,W.pid)&&(et=tD.ts.parsePesType(J,W.table),er=tD.ts.parsePayloadUnitStartIndicator(J),"audio"===et&&er&&(en=tD.ts.parsePesTime(J))&&(en.type="audio",G.audio.push(en),es=!0)),es)break;ei+=188,eo+=188;continue}ei++,eo++}for(ei=(eo=R.byteLength)-188,es=!1;ei>=0;){if(71===R[ei]&&(71===R[eo]||eo===R.byteLength)){if(J=R.subarray(ei,eo),"pes"===tD.ts.parseType(J,W.pid)&&(et=tD.ts.parsePesType(J,W.table),er=tD.ts.parsePayloadUnitStartIndicator(J),"audio"===et&&er&&(en=tD.ts.parsePesTime(J))&&(en.type="audio",G.audio.push(en),es=!0)),es)break;ei-=188,eo-=188;continue}ei--,eo--}},parseVideoPes_=function(R,W,G){for(var J,et,er,en,ei,eo,es,ec=0,el=188,eu=!1,ed={data:[],size:0};el<R.byteLength;){if(71===R[ec]&&71===R[el]){if(J=R.subarray(ec,el),"pes"===tD.ts.parseType(J,W.pid)&&(et=tD.ts.parsePesType(J,W.table),er=tD.ts.parsePayloadUnitStartIndicator(J),"video"===et&&(er&&!eu&&(en=tD.ts.parsePesTime(J))&&(en.type="video",G.video.push(en),eu=!0),!G.firstKeyFrame))){if(er&&0!==ed.size){for(ei=new Uint8Array(ed.size),eo=0;ed.data.length;)es=ed.data.shift(),ei.set(es,eo),eo+=es.byteLength;if(tD.ts.videoPacketContainsKeyFrame(ei)){var ep=tD.ts.parsePesTime(ei);ep?(G.firstKeyFrame=ep,G.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}ed.size=0}ed.data.push(J),ed.size+=J.byteLength}if(eu&&G.firstKeyFrame)break;ec+=188,el+=188;continue}ec++,el++}for(ec=(el=R.byteLength)-188,eu=!1;ec>=0;){if(71===R[ec]&&71===R[el]){if(J=R.subarray(ec,el),"pes"===tD.ts.parseType(J,W.pid)&&(et=tD.ts.parsePesType(J,W.table),er=tD.ts.parsePayloadUnitStartIndicator(J),"video"===et&&er&&(en=tD.ts.parsePesTime(J))&&(en.type="video",G.video.push(en),eu=!0)),eu)break;ec-=188,el-=188;continue}ec--,el--}},adjustTimestamp_=function(R,W){if(R.audio&&R.audio.length){var G=W;(void 0===G||isNaN(G))&&(G=R.audio[0].dts),R.audio.forEach(function(R){R.dts=tA(R.dts,G),R.pts=tA(R.pts,G),R.dtsTime=R.dts/tI,R.ptsTime=R.pts/tI})}if(R.video&&R.video.length){var J=W;if((void 0===J||isNaN(J))&&(J=R.video[0].dts),R.video.forEach(function(R){R.dts=tA(R.dts,J),R.pts=tA(R.pts,J),R.dtsTime=R.dts/tI,R.ptsTime=R.pts/tI}),R.firstKeyFrame){var et=R.firstKeyFrame;et.dts=tA(et.dts,J),et.pts=tA(et.pts,J),et.dtsTime=et.dts/tI,et.ptsTime=et.pts/tI}}},inspectAac_=function(R){for(var W,G=!1,J=0,et=null,er=null,en=0,ei=0;R.length-ei>=3;){switch(tD.aac.parseType(R,ei)){case"timed-metadata":if(R.length-ei<10||(en=tD.aac.parseId3TagSize(R,ei))>R.length){G=!0;break}null===er&&(W=R.subarray(ei,ei+en),er=tD.aac.parseAacTimestamp(W)),ei+=en;break;case"audio":if(R.length-ei<7||(en=tD.aac.parseAdtsSize(R,ei))>R.length){G=!0;break}null===et&&(W=R.subarray(ei,ei+en),et=tD.aac.parseSampleRate(W)),J++,ei+=en;break;default:ei++}if(G)return null}if(null===et||null===er)return null;var eo=tI/et;return{audio:[{type:"audio",dts:er,pts:er},{type:"audio",dts:er+1024*J*eo,pts:er+1024*J*eo}]}},inspectTs_=function(R){var W={pid:null,table:null},G={};for(var J in parsePsi_(R,W),W.table)if(W.table.hasOwnProperty(J))switch(W.table[J]){case eC.H264_STREAM_TYPE:G.video=[],parseVideoPes_(R,W,G),0===G.video.length&&delete G.video;break;case eC.ADTS_STREAM_TYPE:G.audio=[],parseAudioPes_(R,W,G),0===G.audio.length&&delete G.audio}return G},tM={inspect:function(R,W){var G;return(G=tD.aac.isLikelyAacData(R)?inspectAac_(R):inspectTs_(R))&&(G.audio||G.video)?(adjustTimestamp_(G,W),G):null},parseAudioPes_:parseAudioPes_},wireTransmuxerEvents=function(R,W){W.on("data",function(W){var G=W.initSegment;W.initSegment={data:G.buffer,byteOffset:G.byteOffset,byteLength:G.byteLength};var J=W.data;W.data=J.buffer,R.postMessage({action:"data",segment:W,byteOffset:J.byteOffset,byteLength:J.byteLength},[W.data])}),W.on("done",function(W){R.postMessage({action:"done"})}),W.on("gopInfo",function(W){R.postMessage({action:"gopInfo",gopInfo:W})}),W.on("videoSegmentTimingInfo",function(W){var G={start:{decode:ev.videoTsToSeconds(W.start.dts),presentation:ev.videoTsToSeconds(W.start.pts)},end:{decode:ev.videoTsToSeconds(W.end.dts),presentation:ev.videoTsToSeconds(W.end.pts)},baseMediaDecodeTime:ev.videoTsToSeconds(W.baseMediaDecodeTime)};W.prependedContentDuration&&(G.prependedContentDuration=ev.videoTsToSeconds(W.prependedContentDuration)),R.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:G})}),W.on("audioSegmentTimingInfo",function(W){var G={start:{decode:ev.videoTsToSeconds(W.start.dts),presentation:ev.videoTsToSeconds(W.start.pts)},end:{decode:ev.videoTsToSeconds(W.end.dts),presentation:ev.videoTsToSeconds(W.end.pts)},baseMediaDecodeTime:ev.videoTsToSeconds(W.baseMediaDecodeTime)};W.prependedContentDuration&&(G.prependedContentDuration=ev.videoTsToSeconds(W.prependedContentDuration)),R.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:G})}),W.on("id3Frame",function(W){R.postMessage({action:"id3Frame",id3Frame:W})}),W.on("caption",function(W){R.postMessage({action:"caption",caption:W})}),W.on("trackinfo",function(W){R.postMessage({action:"trackinfo",trackInfo:W})}),W.on("audioTimingInfo",function(W){R.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ev.videoTsToSeconds(W.start),end:ev.videoTsToSeconds(W.end)}})}),W.on("videoTimingInfo",function(W){R.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ev.videoTsToSeconds(W.start),end:ev.videoTsToSeconds(W.end)}})}),W.on("log",function(W){R.postMessage({action:"log",log:W})})},tL=function(){function MessageHandlers(R,W){this.options=W||{},this.self=R,this.init()}var R=MessageHandlers.prototype;return R.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new tv.Transmuxer(this.options),wireTransmuxerEvents(this.self,this.transmuxer)},R.pushMp4Captions=function(R){this.captionParser||(this.captionParser=new captionParser,this.captionParser.init());var W=new Uint8Array(R.data,R.byteOffset,R.byteLength),G=this.captionParser.parse(W,R.trackIds,R.timescales);this.self.postMessage({action:"mp4Captions",captions:G&&G.captions||[],logs:G&&G.logs||[],data:W.buffer},[W.buffer])},R.probeMp4StartTime=function(R){var W=R.timescales,G=R.data,J=tj.startTime(W,G);this.self.postMessage({action:"probeMp4StartTime",startTime:J,data:G},[G.buffer])},R.probeMp4Tracks=function(R){var W=R.data,G=tj.tracks(W);this.self.postMessage({action:"probeMp4Tracks",tracks:G,data:W},[W.buffer])},R.probeTs=function(R){var W=R.data,G=R.baseStartTime,J="number"!=typeof G||isNaN(G)?void 0:G*ev.ONE_SECOND_IN_TS,et=tM.inspect(W,J),er=null;et&&((er={hasVideo:et.video&&2===et.video.length||!1,hasAudio:et.audio&&2===et.audio.length||!1}).hasVideo&&(er.videoStart=et.video[0].ptsTime),er.hasAudio&&(er.audioStart=et.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:er,data:W},[W.buffer])},R.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},R.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},R.push=function(R){var W=new Uint8Array(R.data,R.byteOffset,R.byteLength);this.transmuxer.push(W)},R.reset=function(){this.transmuxer.reset()},R.setTimestampOffset=function(R){var W=R.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ev.secondsToVideoTs(W)))},R.setAudioAppendStart=function(R){this.transmuxer.setAudioAppendStart(Math.ceil(ev.secondsToVideoTs(R.appendStart)))},R.setRemux=function(R){this.transmuxer.setRemux(R.remux)},R.flush=function(R){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},R.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},R.alignGopsWith=function(R){this.transmuxer.alignGopsWith(R.gopsToAlignWith.slice())},MessageHandlers}();self.onmessage=function(R){if("init"===R.data.action&&R.data.options){this.messageHandlers=new tL(self,R.data.options);return}this.messageHandlers||(this.messageHandlers=new tL(self)),R.data&&R.data.action&&"init"!==R.data.action&&this.messageHandlers[R.data.action]&&this.messageHandlers[R.data.action](R.data)}}))),handleData_=function(R,W,G){var J=R.data.segment,et=J.type,er=J.initSegment,en=J.captions,ei=J.captionStreams,eo=J.metadata,es=J.videoFrameDtsTime,ec=J.videoFramePtsTime;W.buffer.push({captions:en,captionStreams:ei,metadata:eo});var el=R.data.segment.boxes||{data:R.data.segment.data},eu={type:et,data:new Uint8Array(el.data,el.data.byteOffset,el.data.byteLength),initSegment:new Uint8Array(er.data,er.byteOffset,er.byteLength)};void 0!==es&&(eu.videoFrameDtsTime=es),void 0!==ec&&(eu.videoFramePtsTime=ec),G(eu)},handleDone_=function(R){var W=R.transmuxedData,G=R.callback;W.buffer=[],G(W)},handleGopInfo_=function(R,W){W.gopInfo=R.data.gopInfo},processTransmux=function(R){var W=R.transmuxer,G=R.bytes,J=R.audioAppendStart,et=R.gopsToAlignWith,er=R.remux,en=R.onData,ei=R.onTrackInfo,eo=R.onAudioTimingInfo,es=R.onVideoTimingInfo,ec=R.onVideoSegmentTimingInfo,el=R.onAudioSegmentTimingInfo,eu=R.onId3,ed=R.onCaptions,ep=R.onDone,ef=R.onEndedTimeline,eh=R.onTransmuxerLog,eg=R.isEndOfTimeline,em={buffer:[]},ey=eg;if(W.onmessage=function(G){W.currentTransmux===R&&("data"===G.data.action&&handleData_(G,em,en),"trackinfo"===G.data.action&&ei(G.data.trackInfo),"gopInfo"===G.data.action&&handleGopInfo_(G,em),"audioTimingInfo"===G.data.action&&eo(G.data.audioTimingInfo),"videoTimingInfo"===G.data.action&&es(G.data.videoTimingInfo),"videoSegmentTimingInfo"===G.data.action&&ec(G.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===G.data.action&&el(G.data.audioSegmentTimingInfo),"id3Frame"===G.data.action&&eu([G.data.id3Frame],G.data.id3Frame.dispatchType),"caption"===G.data.action&&ed(G.data.caption),"endedtimeline"===G.data.action&&(ey=!1,ef()),"log"===G.data.action&&eh(G.data.log),"transmuxed"!==G.data.type||ey||(W.onmessage=null,handleDone_({transmuxedData:em,callback:ep}),dequeue(W)))},J&&W.postMessage({action:"setAudioAppendStart",appendStart:J}),Array.isArray(et)&&W.postMessage({action:"alignGopsWith",gopsToAlignWith:et}),void 0!==er&&W.postMessage({action:"setRemux",remux:er}),G.byteLength){var ev=G instanceof ArrayBuffer?G:G.buffer,eb=G instanceof ArrayBuffer?0:G.byteOffset;W.postMessage({action:"push",data:ev,byteOffset:eb,byteLength:G.byteLength},[ev])}eg&&W.postMessage({action:"endTimeline"}),W.postMessage({action:"flush"})},dequeue=function(R){R.currentTransmux=null,R.transmuxQueue.length&&(R.currentTransmux=R.transmuxQueue.shift(),"function"==typeof R.currentTransmux?R.currentTransmux():processTransmux(R.currentTransmux))},processAction=function(R,W){R.postMessage({action:W}),dequeue(R)},enqueueAction=function(R,W){if(!W.currentTransmux){W.currentTransmux=R,processAction(W,R);return}W.transmuxQueue.push(processAction.bind(null,W,R))},transmux=function(R){if(!R.transmuxer.currentTransmux){R.transmuxer.currentTransmux=R,processTransmux(R);return}R.transmuxer.transmuxQueue.push(R)},io={reset:function(R){enqueueAction("reset",R)},endTimeline:function(R){enqueueAction("endTimeline",R)},transmux:transmux,createTransmuxer:function(R){var W=new ii;W.currentTransmux=null,W.transmuxQueue=[];var G=W.terminate;return W.terminate=function(){return W.currentTransmux=null,W.transmuxQueue.length=0,G.call(W)},W.postMessage({action:"init",options:R}),W}},workerCallback=function(R){var W=R.transmuxer,G=R.endAction||R.action,J=R.callback,et=(0,eb.Z)({},R,{endAction:null,transmuxer:null,callback:null});if(W.addEventListener("message",function listenForEndEvent(et){et.data.action===G&&(W.removeEventListener("message",listenForEndEvent),et.data.data&&(et.data.data=new Uint8Array(et.data.data,R.byteOffset||0,R.byteLength||et.data.data.byteLength),R.data&&(R.data=et.data.data)),J(et.data))}),R.data){var er=R.data instanceof ArrayBuffer;et.byteOffset=er?0:R.data.byteOffset,et.byteLength=R.data.byteLength;var en=[er?R.data:R.data.buffer];W.postMessage(et,en)}else W.postMessage(et)},ia={FAILURE:2,TIMEOUT:-101,ABORTED:-102},abortAll=function(R){R.forEach(function(R){R.abort()})},getProgressStats=function(R){var W=R.target,G={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-W.requestTime||0};return G.bytesReceived=R.loaded,G.bandwidth=Math.floor(G.bytesReceived/G.roundTripTime*8e3),G},handleErrors=function(R,W){return W.timedout?{status:W.status,message:"HLS request timed-out at URL: "+W.uri,code:ia.TIMEOUT,xhr:W}:W.aborted?{status:W.status,message:"HLS request aborted at URL: "+W.uri,code:ia.ABORTED,xhr:W}:R?{status:W.status,message:"HLS request errored at URL: "+W.uri,code:ia.FAILURE,xhr:W}:"arraybuffer"===W.responseType&&0===W.response.byteLength?{status:W.status,message:"Empty HLS response at URL: "+W.uri,code:ia.FAILURE,xhr:W}:null},handleKeyResponse=function(R,W,G){return function(J,et){var er=et.response,en=handleErrors(J,et);if(en)return G(en,R);if(16!==er.byteLength)return G({status:et.status,message:"Invalid HLS key at URL: "+et.uri,code:ia.FAILURE,xhr:et},R);for(var ei=new DataView(er),eo=new Uint32Array([ei.getUint32(0),ei.getUint32(4),ei.getUint32(8),ei.getUint32(12)]),es=0;es<W.length;es++)W[es].bytes=eo;return G(null,R)}},parseInitSegment=function(R,W){var G=detectContainerForBytes(R.map.bytes);if("mp4"!==G)return W({internal:!0,message:"Found unsupported "+(G||"unknown")+" container for initialization segment at URL: "+(R.map.resolvedUri||R.map.uri),code:ia.FAILURE});workerCallback({action:"probeMp4Tracks",data:R.map.bytes,transmuxer:R.transmuxer,callback:function(G){var J=G.tracks,et=G.data;return R.map.bytes=et,J.forEach(function(W){R.map.tracks=R.map.tracks||{},!R.map.tracks[W.type]&&(R.map.tracks[W.type]=W,"number"==typeof W.id&&W.timescale&&(R.map.timescales=R.map.timescales||{},R.map.timescales[W.id]=W.timescale))}),W(null)}})},handleInitSegmentResponse=function(R){var W=R.segment,G=R.finishProcessingFn;return function(R,J){var et=handleErrors(R,J);if(et)return G(et,W);var er=new Uint8Array(J.response);if(W.map.key)return W.map.encryptedBytes=er,G(null,W);W.map.bytes=er,parseInitSegment(W,function(R){if(R)return R.xhr=J,R.status=J.status,G(R,W);G(null,W)})}},handleSegmentResponse=function(R){var W=R.segment,G=R.finishProcessingFn,J=R.responseType;return function(R,et){var er=handleErrors(R,et);if(er)return G(er,W);var en="arraybuffer"!==J&&et.responseText?stringToArrayBuffer(et.responseText.substring(W.lastReachedChar||0)):et.response;return W.stats={bandwidth:et.bandwidth,bytesReceived:et.bytesReceived||0,roundTripTime:et.roundTripTime||0},W.key?W.encryptedBytes=new Uint8Array(en):W.bytes=new Uint8Array(en),G(null,W)}},transmuxAndNotify=function(R){var W=R.segment,G=R.bytes,J=R.trackInfoFn,et=R.timingInfoFn,er=R.videoSegmentTimingInfoFn,en=R.audioSegmentTimingInfoFn,ei=R.id3Fn,eo=R.captionsFn,es=R.isEndOfTimeline,ec=R.endedTimelineFn,el=R.dataFn,eu=R.doneFn,ed=R.onTransmuxerLog,ep=W.map&&W.map.tracks||{},ef=!!(ep.audio&&ep.video),eh=et.bind(null,W,"audio","start"),eg=et.bind(null,W,"audio","end"),em=et.bind(null,W,"video","start"),ey=et.bind(null,W,"video","end");workerCallback({action:"probeTs",transmuxer:W.transmuxer,data:G,baseStartTime:W.baseStartTime,callback:function(R){W.bytes=G=R.data;var et=R.result;et&&(J(W,{hasAudio:et.hasAudio,hasVideo:et.hasVideo,isMuxed:ef}),J=null,et.hasAudio&&!ef&&eh(et.audioStart),et.hasVideo&&em(et.videoStart),eh=null,em=null),transmux({bytes:G,transmuxer:W.transmuxer,audioAppendStart:W.audioAppendStart,gopsToAlignWith:W.gopsToAlignWith,remux:ef,onData:function(R){R.type="combined"===R.type?"video":R.type,el(W,R)},onTrackInfo:function(R){J&&(ef&&(R.isMuxed=!0),J(W,R))},onAudioTimingInfo:function(R){eh&&void 0!==R.start&&(eh(R.start),eh=null),eg&&void 0!==R.end&&eg(R.end)},onVideoTimingInfo:function(R){em&&void 0!==R.start&&(em(R.start),em=null),ey&&void 0!==R.end&&ey(R.end)},onVideoSegmentTimingInfo:function(R){er(R)},onAudioSegmentTimingInfo:function(R){en(R)},onId3:function(R,G){ei(W,R,G)},onCaptions:function(R){eo(W,[R])},isEndOfTimeline:es,onEndedTimeline:function(){ec()},onTransmuxerLog:ed,onDone:function(R){eu&&(R.type="combined"===R.type?"video":R.type,eu(null,W,R))}})}})},handleSegmentBytes=function(R){var W=R.segment,G=R.bytes,J=R.trackInfoFn,et=R.timingInfoFn,er=R.videoSegmentTimingInfoFn,en=R.audioSegmentTimingInfoFn,ei=R.id3Fn,eo=R.captionsFn,es=R.isEndOfTimeline,ec=R.endedTimelineFn,el=R.dataFn,eu=R.doneFn,ed=R.onTransmuxerLog,ep=new Uint8Array(G);if(findBox(ep,["moof"]).length>0){W.isFmp4=!0;var ef=W.map.tracks,eh={isFmp4:!0,hasVideo:!!ef.video,hasAudio:!!ef.audio};ef.audio&&ef.audio.codec&&"enca"!==ef.audio.codec&&(eh.audioCodec=ef.audio.codec),ef.video&&ef.video.codec&&"encv"!==ef.video.codec&&(eh.videoCodec=ef.video.codec),ef.video&&ef.audio&&(eh.isMuxed=!0),J(W,eh);var finishLoading=function(R){el(W,{data:ep,type:eh.hasAudio&&!eh.isMuxed?"audio":"video"}),R&&R.length&&eo(W,R),eu(null,W,{})};workerCallback({action:"probeMp4StartTime",timescales:W.map.timescales,data:ep,transmuxer:W.transmuxer,callback:function(R){var J=R.data,er=R.startTime;if(G=J.buffer,W.bytes=ep=J,eh.hasAudio&&!eh.isMuxed&&et(W,"audio","start",er),eh.hasVideo&&et(W,"video","start",er),!ef.video||!J.byteLength||!W.transmuxer){finishLoading();return}workerCallback({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:W.transmuxer,data:ep,timescales:W.map.timescales,trackIds:[ef.video.id],callback:function(R){G=R.data.buffer,W.bytes=ep=R.data,R.logs.forEach(function(R){ed(videojs.mergeOptions(R,{stream:"mp4CaptionParser"}))}),finishLoading(R.captions)}})}});return}if(!W.transmuxer){eu(null,W,{});return}if(void 0===W.container&&(W.container=detectContainerForBytes(ep)),"ts"!==W.container&&"aac"!==W.container){J(W,{hasAudio:!1,hasVideo:!1}),eu(null,W,{});return}transmuxAndNotify({segment:W,bytes:G,trackInfoFn:J,timingInfoFn:et,videoSegmentTimingInfoFn:er,audioSegmentTimingInfoFn:en,id3Fn:ei,captionsFn:eo,isEndOfTimeline:es,endedTimelineFn:ec,dataFn:el,doneFn:eu,onTransmuxerLog:ed})},decrypt=function(R,W){var G,J=R.id,et=R.key,er=R.encryptedBytes,en=R.decryptionWorker;en.addEventListener("message",function decryptionHandler(R){if(R.data.source===J){en.removeEventListener("message",decryptionHandler);var G=R.data.decrypted;W(new Uint8Array(G.bytes,G.byteOffset,G.byteLength))}}),G=et.bytes.slice?et.bytes.slice():new Uint32Array(Array.prototype.slice.call(et.bytes)),en.postMessage(createTransferableMessage({source:J,encrypted:er,key:G,iv:et.iv}),[er.buffer,G.buffer])},decryptSegment=function(R){var W=R.decryptionWorker,G=R.segment,J=R.trackInfoFn,et=R.timingInfoFn,er=R.videoSegmentTimingInfoFn,en=R.audioSegmentTimingInfoFn,ei=R.id3Fn,eo=R.captionsFn,es=R.isEndOfTimeline,ec=R.endedTimelineFn,el=R.dataFn,eu=R.doneFn,ed=R.onTransmuxerLog;decrypt({id:G.requestId,key:G.key,encryptedBytes:G.encryptedBytes,decryptionWorker:W},function(R){G.bytes=R,handleSegmentBytes({segment:G,bytes:G.bytes,trackInfoFn:J,timingInfoFn:et,videoSegmentTimingInfoFn:er,audioSegmentTimingInfoFn:en,id3Fn:ei,captionsFn:eo,isEndOfTimeline:es,endedTimelineFn:ec,dataFn:el,doneFn:eu,onTransmuxerLog:ed})})},waitForCompletion=function(R){var W=R.activeXhrs,G=R.decryptionWorker,J=R.trackInfoFn,et=R.timingInfoFn,er=R.videoSegmentTimingInfoFn,en=R.audioSegmentTimingInfoFn,ei=R.id3Fn,eo=R.captionsFn,es=R.isEndOfTimeline,ec=R.endedTimelineFn,el=R.dataFn,eu=R.doneFn,ed=R.onTransmuxerLog,ep=0,ef=!1;return function(R,eh){if(!ef){if(R)return ef=!0,abortAll(W),eu(R,eh);if((ep+=1)===W.length){var segmentFinish=function(){if(eh.encryptedBytes)return decryptSegment({decryptionWorker:G,segment:eh,trackInfoFn:J,timingInfoFn:et,videoSegmentTimingInfoFn:er,audioSegmentTimingInfoFn:en,id3Fn:ei,captionsFn:eo,isEndOfTimeline:es,endedTimelineFn:ec,dataFn:el,doneFn:eu,onTransmuxerLog:ed});handleSegmentBytes({segment:eh,bytes:eh.bytes,trackInfoFn:J,timingInfoFn:et,videoSegmentTimingInfoFn:er,audioSegmentTimingInfoFn:en,id3Fn:ei,captionsFn:eo,isEndOfTimeline:es,endedTimelineFn:ec,dataFn:el,doneFn:eu,onTransmuxerLog:ed})};if(eh.endOfAllRequests=Date.now(),eh.map&&eh.map.encryptedBytes&&!eh.map.bytes)return decrypt({decryptionWorker:G,id:eh.requestId+"-init",encryptedBytes:eh.map.encryptedBytes,key:eh.map.key},function(R){eh.map.bytes=R,parseInitSegment(eh,function(R){if(R)return abortAll(W),eu(R,eh);segmentFinish()})});segmentFinish()}}}},handleLoadEnd=function(R){var W=R.loadendState,G=R.abortFn;return function(R){R.target.aborted&&G&&!W.calledAbortFn&&(G(),W.calledAbortFn=!0)}},handleProgress=function(R){var W=R.segment,G=R.progressFn;return R.trackInfoFn,R.timingInfoFn,R.videoSegmentTimingInfoFn,R.audioSegmentTimingInfoFn,R.id3Fn,R.captionsFn,R.isEndOfTimeline,R.endedTimelineFn,R.dataFn,function(R){if(!R.target.aborted)return W.stats=videojs.mergeOptions(W.stats,getProgressStats(R)),!W.stats.firstBytesReceivedAt&&W.stats.bytesReceived&&(W.stats.firstBytesReceivedAt=Date.now()),G(R,W)}},mediaSegmentRequest=function(R){var W=R.xhr,G=R.xhrOptions,J=R.decryptionWorker,et=R.segment,er=R.abortFn,en=R.progressFn,ei=R.trackInfoFn,eo=R.timingInfoFn,es=R.videoSegmentTimingInfoFn,ec=R.audioSegmentTimingInfoFn,el=R.id3Fn,eu=R.captionsFn,ed=R.isEndOfTimeline,ep=R.endedTimelineFn,ef=R.dataFn,eh=R.doneFn,eg=R.onTransmuxerLog,em=[],ey=waitForCompletion({activeXhrs:em,decryptionWorker:J,trackInfoFn:ei,timingInfoFn:eo,videoSegmentTimingInfoFn:es,audioSegmentTimingInfoFn:ec,id3Fn:el,captionsFn:eu,isEndOfTimeline:ed,endedTimelineFn:ep,dataFn:ef,doneFn:eh,onTransmuxerLog:eg});if(et.key&&!et.key.bytes){var ev=[et.key];et.map&&!et.map.bytes&&et.map.key&&et.map.key.resolvedUri===et.key.resolvedUri&&ev.push(et.map.key);var eb=W(videojs.mergeOptions(G,{uri:et.key.resolvedUri,responseType:"arraybuffer"}),handleKeyResponse(et,ev,ey));em.push(eb)}if(et.map&&!et.map.bytes){if(et.map.key&&(!et.key||et.key.resolvedUri!==et.map.key.resolvedUri)){var e_=W(videojs.mergeOptions(G,{uri:et.map.key.resolvedUri,responseType:"arraybuffer"}),handleKeyResponse(et,[et.map.key],ey));em.push(e_)}var ex=W(videojs.mergeOptions(G,{uri:et.map.resolvedUri,responseType:"arraybuffer",headers:segmentXhrHeaders(et.map)}),handleInitSegmentResponse({segment:et,finishProcessingFn:ey}));em.push(ex)}var ew=videojs.mergeOptions(G,{uri:et.part&&et.part.resolvedUri||et.resolvedUri,responseType:"arraybuffer",headers:segmentXhrHeaders(et)}),eS=handleSegmentResponse({segment:et,finishProcessingFn:ey,responseType:ew.responseType}),eT=W(ew,eS);eT.addEventListener("progress",handleProgress({segment:et,progressFn:en,trackInfoFn:ei,timingInfoFn:eo,videoSegmentTimingInfoFn:es,audioSegmentTimingInfoFn:ec,id3Fn:el,captionsFn:eu,isEndOfTimeline:ed,endedTimelineFn:ep,dataFn:ef})),em.push(eT);var eO={};return em.forEach(function(R){R.addEventListener("loadend",handleLoadEnd({loadendState:eO,abortFn:er}))}),function(){return abortAll(em)}},is=logger("CodecUtils"),getCodecs=function(R){var W=R.attributes||{};if(W.CODECS)return parseCodecs(W.CODECS)},isMaat=function(R,W){var G=W.attributes||{};return R&&R.mediaGroups&&R.mediaGroups.AUDIO&&G.AUDIO&&R.mediaGroups.AUDIO[G.AUDIO]},isMuxed=function(R,W){if(!isMaat(R,W))return!0;var G=W.attributes||{},J=R.mediaGroups.AUDIO[G.AUDIO];for(var et in J)if(!J[et].uri&&!J[et].playlists)return!0;return!1},unwrapCodecList=function(R){var W={};return R.forEach(function(R){var G=R.mediaType,J=R.type,et=R.details;W[G]=W[G]||[],W[G].push(translateLegacyCodec(""+J+et))}),Object.keys(W).forEach(function(R){if(W[R].length>1){is("multiple "+R+" codecs found as attributes: "+W[R].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),W[R]=null;return}W[R]=W[R][0]}),W},codecCount=function(R){var W=0;return R.audio&&W++,R.video&&W++,W},codecsForPlaylist=function(R,W){var G=W.attributes||{},J=unwrapCodecList(getCodecs(W)||[]);if(isMaat(R,W)&&!J.audio&&!isMuxed(R,W)){var et=unwrapCodecList(codecsFromDefault(R,G.AUDIO)||[]);et.audio&&(J.audio=et.audio)}return J},ic=logger("PlaylistSelector"),representationToString=function(R){if(R&&R.playlist){var W=R.playlist;return JSON.stringify({id:W.id,bandwidth:R.bandwidth,width:R.width,height:R.height,codecs:W.attributes&&W.attributes.CODECS||""})}},safeGetComputedStyle=function(R,W){if(!R)return"";var G=em().getComputedStyle(R);return G?G[W]:""},stableSort=function(R,W){var G=R.slice();R.sort(function(R,J){var et=W(R,J);return 0===et?G.indexOf(R)-G.indexOf(J):et})},comparePlaylistBandwidth=function(R,W){var G,J;return R.attributes.BANDWIDTH&&(G=R.attributes.BANDWIDTH),G=G||em().Number.MAX_VALUE,W.attributes.BANDWIDTH&&(J=W.attributes.BANDWIDTH),G-(J=J||em().Number.MAX_VALUE)},simpleSelector=function(R,W,G,J,et,er){if(R){var en,ei,eo,es,ec={bandwidth:W,width:G,height:J,limitRenditionByPlayerDimensions:et},el=R.playlists;n1.isAudioOnly(R)&&(el=er.getAudioTrackPlaylists_(),ec.audioOnly=!0);var eu=el.map(function(R){var W=R.attributes&&R.attributes.RESOLUTION&&R.attributes.RESOLUTION.width,G=R.attributes&&R.attributes.RESOLUTION&&R.attributes.RESOLUTION.height;return{bandwidth:R.attributes&&R.attributes.BANDWIDTH||em().Number.MAX_VALUE,width:W,height:G,playlist:R}});stableSort(eu,function(R,W){return R.bandwidth-W.bandwidth});var ed=(eu=eu.filter(function(R){return!n1.isIncompatible(R.playlist)})).filter(function(R){return n1.isEnabled(R.playlist)});ed.length||(ed=eu.filter(function(R){return!n1.isDisabled(R.playlist)}));var ep=ed.filter(function(R){return R.bandwidth*ir.BANDWIDTH_VARIANCE<W}),ef=ep[ep.length-1],eh=ep.filter(function(R){return R.bandwidth===ef.bandwidth})[0];if(!1===et){var eg=eh||ed[0]||eu[0];if(eg&&eg.playlist){var ey="sortedPlaylistReps";return eh&&(ey="bandwidthBestRep"),ed[0]&&(ey="enabledPlaylistReps"),ic("choosing "+representationToString(eg)+" using "+ey+" with options",ec),eg.playlist}return ic("could not choose a playlist with options",ec),null}var ev=ep.filter(function(R){return R.width&&R.height});stableSort(ev,function(R,W){return R.width-W.width});var eb=ev.filter(function(R){return R.width===G&&R.height===J});ef=eb[eb.length-1];var e_=eb.filter(function(R){return R.bandwidth===ef.bandwidth})[0];if(e_||(ef=(ei=(en=ev.filter(function(R){return R.width>G||R.height>J})).filter(function(R){return R.width===en[0].width&&R.height===en[0].height}))[ei.length-1],eo=ei.filter(function(R){return R.bandwidth===ef.bandwidth})[0]),er.experimentalLeastPixelDiffSelector){var ex=ev.map(function(R){return R.pixelDiff=Math.abs(R.width-G)+Math.abs(R.height-J),R});stableSort(ex,function(R,W){return R.pixelDiff===W.pixelDiff?W.bandwidth-R.bandwidth:R.pixelDiff-W.pixelDiff}),es=ex[0]}var ew=es||eo||e_||eh||ed[0]||eu[0];if(ew&&ew.playlist){var eS="sortedPlaylistReps";return es?eS="leastPixelDiffRep":eo?eS="resolutionPlusOneRep":e_?eS="resolutionBestRep":eh?eS="bandwidthBestRep":ed[0]&&(eS="enabledPlaylistReps"),ic("choosing "+representationToString(ew)+" using "+eS+" with options",ec),ew.playlist}return ic("could not choose a playlist with options",ec),null}},lastBandwidthSelector=function(){var R=this.useDevicePixelRatio&&em().devicePixelRatio||1;return simpleSelector(this.playlists.master,this.systemBandwidth,parseInt(safeGetComputedStyle(this.tech_.el(),"width"),10)*R,parseInt(safeGetComputedStyle(this.tech_.el(),"height"),10)*R,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},minRebufferMaxBandwidthSelector=function(R){var W=R.master,G=R.currentTime,J=R.bandwidth,et=R.duration,er=R.segmentDuration,en=R.timeUntilRebuffer,ei=R.currentTimeline,eo=R.syncController,es=W.playlists.filter(function(R){return!n1.isIncompatible(R)}),ec=es.filter(n1.isEnabled);ec.length||(ec=es.filter(function(R){return!n1.isDisabled(R)}));var el=ec.filter(n1.hasAttribute.bind(null,"BANDWIDTH")).map(function(R){var W=eo.getSyncPoint(R,et,ei,G),es=n1.estimateSegmentRequestTime(er,J,R);return{playlist:R,rebufferingImpact:es*(W?1:2)-en}}),eu=el.filter(function(R){return R.rebufferingImpact<=0});return(stableSort(eu,function(R,W){return comparePlaylistBandwidth(W.playlist,R.playlist)}),eu.length)?eu[0]:(stableSort(el,function(R,W){return R.rebufferingImpact-W.rebufferingImpact}),el[0]||null)},concatSegments=function(R){var W,G=0;return R.bytes&&(W=new Uint8Array(R.bytes),R.segments.forEach(function(R){W.set(R,G),G+=R.byteLength})),W},createCaptionsTrackIfNotExists=function(R,W,G){if(!R[G]){W.trigger({type:"usage",name:"vhs-608"}),W.trigger({type:"usage",name:"hls-608"});var J=G;/^cc708_/.test(G)&&(J="SERVICE"+G.split("_")[1]);var et=W.textTracks().getTrackById(J);if(et)R[G]=et;else{var er=W.options_.vhs&&W.options_.vhs.captionServices||{},en=G,ei=G,eo=!1,es=er[J];es&&(en=es.label,ei=es.language,eo=es.default),R[G]=W.addRemoteTextTrack({kind:"captions",id:J,default:eo,label:en,language:ei},!1).track}}},addCaptionData=function(R){var W=R.inbandTextTracks,G=R.captionArray,J=R.timestampOffset;if(G){var et=em().WebKitDataCue||em().VTTCue;G.forEach(function(R){W[R.stream].addCue(new et(R.startTime+J,R.endTime+J,R.text))})}},deprecateOldCue=function(R){Object.defineProperties(R.frame,{id:{get:function(){return videojs.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),R.value.key}},value:{get:function(){return videojs.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),R.value.data}},privateData:{get:function(){return videojs.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),R.value.data}}})},addMetadata=function(R){var W=R.inbandTextTracks,G=R.metadataArray,J=R.timestampOffset,et=R.videoDuration;if(G){var er=em().WebKitDataCue||em().VTTCue,en=W.metadataTrack_;if(en&&(G.forEach(function(R){var W=R.cueTime+J;"number"!=typeof W||em().isNaN(W)||W<0||!(W<1/0)||R.frames.forEach(function(R){var G=new er(W,W,R.value||R.url||R.data||"");G.frame=R,G.value=R,deprecateOldCue(G),en.addCue(G)})}),en.cues&&en.cues.length)){for(var ei=en.cues,eo=[],es=0;es<ei.length;es++)ei[es]&&eo.push(ei[es]);var ec=eo.reduce(function(R,W){var G=R[W.startTime]||[];return G.push(W),R[W.startTime]=G,R},{}),el=Object.keys(ec).sort(function(R,W){return Number(R)-Number(W)});el.forEach(function(R,W){var G=ec[R],J=Number(el[W+1])||et;G.forEach(function(R){R.endTime=J})})}}},createMetadataTrackIfNotExists=function(R,W,G){R.metadataTrack_||(R.metadataTrack_=G.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,R.metadataTrack_.inBandMetadataTrackDispatchType=W)},removeCuesFromTrack=function(R,W,G){var J,et;if(G&&G.cues)for(J=G.cues.length;J--;)(et=G.cues[J]).startTime>=R&&et.endTime<=W&&G.removeCue(et)},removeDuplicateCuesFromTrack=function(R){var W=R.cues;if(W)for(var G=0;G<W.length;G++){for(var J=[],et=0,er=0;er<W.length;er++)W[G].startTime===W[er].startTime&&W[G].endTime===W[er].endTime&&W[G].text===W[er].text&&++et>1&&J.push(W[er]);J.length&&J.forEach(function(W){return R.removeCue(W)})}},gopsSafeToAlignWith=function(R,W,G){if(null==W||!R.length)return[];var J,et=Math.ceil((W-G+3)*ti.ONE_SECOND_IN_TS);for(J=0;J<R.length&&!(R[J].pts>et);J++);return R.slice(J)},updateGopBuffer=function(R,W,G){if(!W.length)return R;if(G)return W.slice();for(var J=W[0].pts,et=0;et<R.length&&!(R[et].pts>=J);et++);return R.slice(0,et).concat(W)},removeGopBuffer=function(R,W,G,J){for(var et=Math.ceil((W-J)*ti.ONE_SECOND_IN_TS),er=Math.ceil((G-J)*ti.ONE_SECOND_IN_TS),en=R.slice(),ei=R.length;ei--&&!(R[ei].pts<=er););if(-1===ei)return en;for(var eo=ei+1;eo--&&!(R[eo].pts<=et););return eo=Math.max(eo,0),en.splice(eo,ei-eo+1),en},shallowEqual=function(R,W){if(!R&&!W||!R&&W||R&&!W)return!1;if(R===W)return!0;var G=Object.keys(R).sort(),J=Object.keys(W).sort();if(G.length!==J.length)return!1;for(var et=0;et<G.length;et++){var er=G[et];if(er!==J[et]||R[er]!==W[er])return!1}return!0},getSyncSegmentCandidate=function(R,W,G){W=W||[];for(var J=[],et=0,er=0;er<W.length;er++){var en=W[er];if(R===en.timeline&&(J.push(er),(et+=en.duration)>G))return er}return 0===J.length?0:J[J.length-1]},finite=function(R){return"number"==typeof R&&isFinite(R)},il=1/60,safeBackBufferTrimTime=function(R,W,G){var J=W-ir.BACK_BUFFER_LENGTH;return R.length&&(J=Math.max(J,R.start(0))),Math.min(W-G,J)},segmentInfoString=function(R){var W=R.startOfSegment,G=R.duration,J=R.segment,et=R.part,er=R.playlist,en=er.mediaSequence,ei=er.id,eo=er.segments,es=R.mediaIndex,ec=R.partIndex,el=R.timeline,eu=(void 0===eo?[]:eo).length-1,ed="mediaIndex/partIndex increment";R.getMediaInfoForTime?ed="getMediaInfoForTime ("+R.getMediaInfoForTime+")":R.isSyncRequest&&(ed="getSyncSegmentCandidate (isSyncRequest)"),R.independent&&(ed+=" with independent "+R.independent);var ep="number"==typeof ec,ef=R.segment.uri?"segment":"pre-segment",eh=ep?getKnownPartCount({preloadSegment:J})-1:0;return ef+" ["+(en+es)+"/"+(en+eu)+"]"+(ep?" part ["+ec+"/"+eh+"]":"")+(" segment start/end ["+J.start)+" => "+J.end+"]"+(ep?" part start/end ["+et.start+" => "+et.end+"]":"")+" startOfSegment ["+W+"] duration ["+G+"] timeline ["+el+"] selected by ["+ed+"] playlist ["+ei+"]"},timingInfoPropertyForMedia=function(R){return R+"TimingInfo"},timestampOffsetForSegment=function(R){var W=R.segmentTimeline,G=R.currentTimeline,J=R.startOfSegment,et=R.buffered;return R.overrideCheck||W!==G?W<G?J:et.length?et.end(et.length-1):J:null},shouldWaitForTimelineChange=function(R){var W=R.timelineChangeController,G=R.currentTimeline,J=R.segmentTimeline,et=R.loaderType,er=R.audioDisabled;if(G===J)return!1;if("audio"===et){var en=W.lastTimelineChange({type:"main"});return!en||en.to!==J}if("main"===et&&er){var ei=W.pendingTimelineChange({type:"audio"});return!ei||ei.to!==J}return!1},mediaDuration=function(R){var W=0;return["video","audio"].forEach(function(G){var J,et=R[G+"TimingInfo"];if(et){var er=et.start,en=et.end;"bigint"==typeof er||"bigint"==typeof en?J=em().BigInt(en)-em().BigInt(er):"number"==typeof er&&"number"==typeof en&&(J=en-er),void 0!==J&&J>W&&(W=J)}}),"bigint"==typeof W&&W<Number.MAX_SAFE_INTEGER&&(W=Number(W)),W},segmentTooLong=function(R){var W=R.segmentDuration,G=R.maxDuration;return!!W&&Math.round(W)>G+nQ},getTroublesomeSegmentDurationMessage=function(R,W){if("hls"!==W)return null;var G=mediaDuration({audioTimingInfo:R.audioTimingInfo,videoTimingInfo:R.videoTimingInfo});if(!G)return null;var J=R.playlist.targetDuration,et=segmentTooLong({segmentDuration:G,maxDuration:2*J}),er=segmentTooLong({segmentDuration:G,maxDuration:J}),en="Segment with index "+R.mediaIndex+" from playlist "+R.playlist.id+" has a duration of "+G+" when the reported duration is "+R.duration+" and the target duration is "+J+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return et||er?{severity:et?"warn":"info",message:en}:null},iu=function(R){function SegmentLoader(W,G){var J;if(J=R.call(this)||this,!W)throw TypeError("Initialization settings are required");if("function"!=typeof W.currentTime)throw TypeError("No currentTime getter specified");if(!W.mediaSource)throw TypeError("No MediaSource specified");return J.bandwidth=W.bandwidth,J.throughput={rate:0,count:0},J.roundTrip=NaN,J.resetStats_(),J.mediaIndex=null,J.partIndex=null,J.hasPlayed_=W.hasPlayed,J.currentTime_=W.currentTime,J.seekable_=W.seekable,J.seeking_=W.seeking,J.duration_=W.duration,J.mediaSource_=W.mediaSource,J.vhs_=W.vhs,J.loaderType_=W.loaderType,J.currentMediaInfo_=void 0,J.startingMediaInfo_=void 0,J.segmentMetadataTrack_=W.segmentMetadataTrack,J.goalBufferLength_=W.goalBufferLength,J.sourceType_=W.sourceType,J.sourceUpdater_=W.sourceUpdater,J.inbandTextTracks_=W.inbandTextTracks,J.state_="INIT",J.timelineChangeController_=W.timelineChangeController,J.shouldSaveSegmentTimingInfo_=!0,J.parse708captions_=W.parse708captions,J.useDtsForTimestampOffset_=W.useDtsForTimestampOffset,J.captionServices_=W.captionServices,J.experimentalExactManifestTimings=W.experimentalExactManifestTimings,J.checkBufferTimeout_=null,J.error_=void 0,J.currentTimeline_=-1,J.pendingSegment_=null,J.xhrOptions_=null,J.pendingSegments_=[],J.audioDisabled_=!1,J.isPendingTimestampOffset_=!1,J.gopBuffer_=[],J.timeMapping_=0,J.safeAppend_=videojs.browser.IE_VERSION>=11,J.appendInitSegment_={audio:!0,video:!0},J.playlistOfLastInitSegment_={audio:null,video:null},J.callQueue_=[],J.loadQueue_=[],J.metadataQueue_={id3:[],caption:[]},J.waitingOnRemove_=!1,J.quotaExceededErrorRetryTimeout_=null,J.activeInitSegmentId_=null,J.initSegments_={},J.cacheEncryptionKeys_=W.cacheEncryptionKeys,J.keyCache_={},J.decrypter_=W.decrypter,J.syncController_=W.syncController,J.syncPoint_={segmentIndex:0,time:0},J.transmuxer_=J.createTransmuxer_(),J.triggerSyncInfoUpdate_=function(){return J.trigger("syncinfoupdate")},J.syncController_.on("syncinfoupdate",J.triggerSyncInfoUpdate_),J.mediaSource_.addEventListener("sourceopen",function(){J.isEndOfStream_()||(J.ended_=!1)}),J.fetchAtBuffer_=!1,J.logger_=logger("SegmentLoader["+J.loaderType_+"]"),Object.defineProperty((0,ew.Z)(J),"state",{get:function(){return this.state_},set:function(R){R!==this.state_&&(this.logger_(this.state_+" -> "+R),this.state_=R,this.trigger("statechange"))}}),J.sourceUpdater_.on("ready",function(){J.hasEnoughInfoToAppend_()&&J.processCallQueue_()}),"main"===J.loaderType_&&J.timelineChangeController_.on("pendingtimelinechange",function(){J.hasEnoughInfoToAppend_()&&J.processCallQueue_()}),"audio"===J.loaderType_&&J.timelineChangeController_.on("timelinechange",function(){J.hasEnoughInfoToLoad_()&&J.processLoadQueue_(),J.hasEnoughInfoToAppend_()&&J.processCallQueue_()}),J}(0,eS.Z)(SegmentLoader,R);var W=SegmentLoader.prototype;return W.createTransmuxer_=function(){return io.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},W.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},W.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&em().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},W.setAudio=function(R){this.audioDisabled_=!R,R?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},W.abort=function(){if("WAITING"!==this.state){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()},W.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,em().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},W.checkForAbort_=function(R){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==R:(this.state="READY",!0)},W.error=function(R){return void 0!==R&&(this.logger_("error occurred:",R),this.error_=R),this.pendingSegment_=null,this.error_},W.endOfStream=function(){this.ended_=!0,this.transmuxer_&&io.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},W.buffered_=function(){var R=this.getMediaInfo_();if(!this.sourceUpdater_||!R)return videojs.createTimeRanges();if("main"===this.loaderType_){var W=R.hasAudio,G=R.hasVideo,J=R.isMuxed;if(G&&W&&!this.audioDisabled_&&!J)return this.sourceUpdater_.buffered();if(G)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},W.initSegmentForMap=function(R,W){if(void 0===W&&(W=!1),!R)return null;var G=initSegmentId(R),J=this.initSegments_[G];return W&&!J&&R.bytes&&(this.initSegments_[G]=J={resolvedUri:R.resolvedUri,byterange:R.byterange,bytes:R.bytes,tracks:R.tracks,timescales:R.timescales}),J||R},W.segmentKey=function(R,W){if(void 0===W&&(W=!1),!R)return null;var G=segmentKeyId(R),J=this.keyCache_[G];this.cacheEncryptionKeys_&&W&&!J&&R.bytes&&(this.keyCache_[G]=J={resolvedUri:R.resolvedUri,bytes:R.bytes});var et={resolvedUri:(J||R).resolvedUri};return J&&(et.bytes=J.bytes),et},W.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},W.load=function(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();this.couldBeginLoading_()&&("READY"===this.state||"INIT"===this.state)&&(this.state="READY")}},W.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},W.playlist=function(R,W){if(void 0===W&&(W={}),R){var G=this.playlist_,J=this.pendingSegment_;this.playlist_=R,this.xhrOptions_=W,"INIT"===this.state&&(R.syncInfo={mediaSequence:R.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(R));var et=null;if(G&&(G.id?et=G.id:G.uri&&(et=G.uri)),this.logger_("playlist update ["+et+" => "+(R.id||R.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!G||G.uri!==R.uri){null!==this.mediaIndex&&(R.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}var er=R.mediaSequence-G.mediaSequence;if(this.logger_("live window shift ["+er+"]"),null!==this.mediaIndex){if(this.mediaIndex-=er,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var en=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!en.parts||!en.parts.length||!en.parts[this.partIndex])){var ei=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=ei}}}J&&(J.mediaIndex-=er,J.mediaIndex<0?(J.mediaIndex=null,J.partIndex=null):(J.mediaIndex>=0&&(J.segment=R.segments[J.mediaIndex]),J.partIndex>=0&&J.segment.parts&&(J.part=J.segment.parts[J.partIndex]))),this.syncController_.saveExpiredSegmentInfo(G,R)}},W.pause=function(){this.checkBufferTimeout_&&(em().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},W.paused=function(){return null===this.checkBufferTimeout_},W.resetEverything=function(R){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,R),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},W.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},W.resyncLoader=function(){this.transmuxer_&&io.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},W.remove=function(R,W,G,J){if(void 0===G&&(G=function(){}),void 0===J&&(J=!1),W===1/0&&(W=this.duration_()),W<=R){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}var et=1,removeFinished=function(){0==--et&&G()};for(var er in(J||!this.audioDisabled_)&&(et++,this.sourceUpdater_.removeAudio(R,W,removeFinished)),(J||"main"===this.loaderType_)&&(this.gopBuffer_=removeGopBuffer(this.gopBuffer_,R,W,this.timeMapping_),et++,this.sourceUpdater_.removeVideo(R,W,removeFinished)),this.inbandTextTracks_)removeCuesFromTrack(R,W,this.inbandTextTracks_[er]);removeCuesFromTrack(R,W,this.segmentMetadataTrack_),removeFinished()},W.monitorBuffer_=function(){this.checkBufferTimeout_&&em().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=em().setTimeout(this.monitorBufferTick_.bind(this),1)},W.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&em().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=em().setTimeout(this.monitorBufferTick_.bind(this),500)},W.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var R=this.chooseNextRequest_();R&&("number"==typeof R.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:R.timeline})),this.loadSegment_(R))}},W.isEndOfStream_=function(R,W,G){if(void 0===R&&(R=this.mediaIndex),void 0===W&&(W=this.playlist_),void 0===G&&(G=this.partIndex),!W||!this.mediaSource_)return!1;var J="number"==typeof R&&W.segments[R],et=R+1===W.segments.length,er=!J||!J.parts||G+1===J.parts.length;return W.endList&&"open"===this.mediaSource_.readyState&&et&&er},W.chooseNextRequest_=function(){var R=this.buffered_(),W=lastBufferedEnd(R)||0,G=timeAheadOf(R,this.currentTime_()),J=!this.hasPlayed_()&&G>=1,et=G>=this.goalBufferLength_(),er=this.playlist_.segments;if(!er.length||J||et)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var en={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(en.isSyncRequest)en.mediaIndex=getSyncSegmentCandidate(this.currentTimeline_,er,W);else if(null!==this.mediaIndex){var ei=er[this.mediaIndex],eo="number"==typeof this.partIndex?this.partIndex:-1;en.startOfSegment=ei.end?ei.end:W,ei.parts&&ei.parts[eo+1]?(en.mediaIndex=this.mediaIndex,en.partIndex=eo+1):en.mediaIndex=this.mediaIndex+1}else{var es=n1.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?W:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),ec=es.segmentIndex,el=es.startTime,eu=es.partIndex;en.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+W:"currentTime "+this.currentTime_(),en.mediaIndex=ec,en.startOfSegment=el,en.partIndex=eu}var ed=er[en.mediaIndex],ep=ed&&"number"==typeof en.partIndex&&ed.parts&&ed.parts[en.partIndex];if(!ed||"number"==typeof en.partIndex&&!ep)return null;if("number"!=typeof en.partIndex&&ed.parts&&(en.partIndex=0,ep=ed.parts[0]),!G&&ep&&!ep.independent){if(0===en.partIndex){var ef=er[en.mediaIndex-1],eh=ef.parts&&ef.parts.length&&ef.parts[ef.parts.length-1];eh&&eh.independent&&(en.mediaIndex-=1,en.partIndex=ef.parts.length-1,en.independent="previous segment")}else ed.parts[en.partIndex-1].independent&&(en.partIndex-=1,en.independent="previous part")}var eg=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return en.mediaIndex>=er.length-1&&eg&&!this.seeking_()?null:this.generateSegmentInfo_(en)},W.generateSegmentInfo_=function(R){var W=R.independent,G=R.playlist,J=R.mediaIndex,et=R.startOfSegment,er=R.isSyncRequest,en=R.partIndex,ei=R.forceTimestampOffset,eo=R.getMediaInfoForTime,es=G.segments[J],ec="number"==typeof en&&es.parts[en],el={requestId:"segment-loader-"+Math.random(),uri:ec&&ec.resolvedUri||es.resolvedUri,mediaIndex:J,partIndex:ec?en:null,isSyncRequest:er,startOfSegment:et,playlist:G,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:es.timeline,duration:ec&&ec.duration||es.duration,segment:es,part:ec,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:eo,independent:W},eu=void 0!==ei?ei:this.isPendingTimestampOffset_;el.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:es.timeline,currentTimeline:this.currentTimeline_,startOfSegment:et,buffered:this.buffered_(),overrideCheck:eu});var ed=lastBufferedEnd(this.sourceUpdater_.audioBuffered());return"number"==typeof ed&&(el.audioAppendStart=ed-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(el.gopsToAlignWith=gopsSafeToAlignWith(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),el},W.timestampOffsetForSegment_=function(R){return timestampOffsetForSegment(R)},W.earlyAbortWhenNeeded_=function(R){if(!(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(R.firstBytesReceivedAt||Date.now())<1e3)){var W,G,J=this.currentTime_(),et=R.bandwidth,er=this.pendingSegment_.duration,en=n1.estimateSegmentRequestTime(er,et,this.playlist_,R.bytesReceived),ei=(W=this.buffered_(),void 0===(G=this.vhs_.tech_.playbackRate())&&(G=1),((W.length?W.end(W.length-1):0)-J)/G-1);if(!(en<=ei)){var eo=minRebufferMaxBandwidthSelector({master:this.vhs_.playlists.master,currentTime:J,bandwidth:et,duration:this.duration_(),segmentDuration:er,timeUntilRebuffer:ei,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(eo){var es=en-ei-eo.rebufferingImpact,ec=.5;ei<=nQ&&(ec=1),eo.playlist&&eo.playlist.uri!==this.playlist_.uri&&!(es<ec)&&(this.bandwidth=eo.playlist.attributes.BANDWIDTH*ir.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},W.handleAbort_=function(R){this.logger_("Aborting "+segmentInfoString(R)),this.mediaRequestsAborted+=1},W.handleProgress_=function(R,W){this.earlyAbortWhenNeeded_(W.stats),this.checkForAbort_(W.requestId)||this.trigger("progress")},W.handleTrackInfo_=function(R,W){this.earlyAbortWhenNeeded_(R.stats),!(this.checkForAbort_(R.requestId)||this.checkForIllegalMediaSwitch(W))&&(W=W||{},shallowEqual(this.currentMediaInfo_,W)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=W,this.currentMediaInfo_=W,this.logger_("trackinfo update",W),this.trigger("trackinfo")),!this.checkForAbort_(R.requestId)&&(this.pendingSegment_.trackInfo=W,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},W.handleTimingInfo_=function(R,W,G,J){if(this.earlyAbortWhenNeeded_(R.stats),!this.checkForAbort_(R.requestId)){var et=this.pendingSegment_,er=timingInfoPropertyForMedia(W);et[er]=et[er]||{},et[er][G]=J,this.logger_("timinginfo: "+W+" - "+G+" - "+J),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},W.handleCaptions_=function(R,W){var G=this;if(this.earlyAbortWhenNeeded_(R.stats),!this.checkForAbort_(R.requestId)){if(0===W.length){this.logger_("SegmentLoader received no captions from a caption event");return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,R,W));return}var J=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),et={};W.forEach(function(R){et[R.stream]=et[R.stream]||{startTime:1/0,captions:[],endTime:0};var W=et[R.stream];W.startTime=Math.min(W.startTime,R.startTime+J),W.endTime=Math.max(W.endTime,R.endTime+J),W.captions.push(R)}),Object.keys(et).forEach(function(R){var W=et[R],er=W.startTime,en=W.endTime,ei=W.captions,eo=G.inbandTextTracks_;G.logger_("adding cues from "+er+" -> "+en+" for "+R),createCaptionsTrackIfNotExists(eo,G.vhs_.tech_,R),removeCuesFromTrack(er,en,eo[R]),addCaptionData({captionArray:ei,inbandTextTracks:eo,timestampOffset:J})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}},W.handleId3_=function(R,W,G){if(this.earlyAbortWhenNeeded_(R.stats),!this.checkForAbort_(R.requestId)){if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,R,W,G));return}var J=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();createMetadataTrackIfNotExists(this.inbandTextTracks_,G,this.vhs_.tech_),addMetadata({inbandTextTracks:this.inbandTextTracks_,metadataArray:W,timestampOffset:J,videoDuration:this.duration_()})}},W.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(R){return R()}),this.metadataQueue_.caption.forEach(function(R){return R()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},W.processCallQueue_=function(){var R=this.callQueue_;this.callQueue_=[],R.forEach(function(R){return R()})},W.processLoadQueue_=function(){var R=this.loadQueue_;this.loadQueue_=[],R.forEach(function(R){return R()})},W.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var R=this.pendingSegment_;return!!R&&(!this.getCurrentMediaInfo_()||!shouldWaitForTimelineChange({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:R.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},W.getCurrentMediaInfo_=function(R){return void 0===R&&(R=this.pendingSegment_),R&&R.trackInfo||this.currentMediaInfo_},W.getMediaInfo_=function(R){return void 0===R&&(R=this.pendingSegment_),this.getCurrentMediaInfo_(R)||this.startingMediaInfo_},W.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},W.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var R=this.pendingSegment_,W=this.getCurrentMediaInfo_();if(!R||!W)return!1;var G=W.hasAudio,J=W.hasVideo,et=W.isMuxed;return!(J&&!R.videoTimingInfo||G&&!this.audioDisabled_&&!et&&!R.audioTimingInfo||shouldWaitForTimelineChange({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:R.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},W.handleData_=function(R,W){if(this.earlyAbortWhenNeeded_(R.stats),!this.checkForAbort_(R.requestId)){if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,R,W));return}var G=this.pendingSegment_;if(this.setTimeMapping_(G.timeline),this.updateMediaSecondsLoaded_(G.part||G.segment),"closed"!==this.mediaSource_.readyState){if(R.map&&(R.map=this.initSegmentForMap(R.map,!0),G.segment.map=R.map),R.key&&this.segmentKey(R.key,!0),G.isFmp4=R.isFmp4,G.timingInfo=G.timingInfo||{},G.isFmp4)this.trigger("fmp4"),G.timingInfo.start=G[timingInfoPropertyForMedia(W.type)].start;else{var J,et=this.getCurrentMediaInfo_(),er="main"===this.loaderType_&&et&&et.hasVideo;er&&(J=G.videoTimingInfo.start),G.timingInfo.start=this.trueSegmentStart_({currentStart:G.timingInfo.start,playlist:G.playlist,mediaIndex:G.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:er,firstVideoFrameTimeForData:J,videoTimingInfo:G.videoTimingInfo,audioTimingInfo:G.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(G,W.type),this.updateSourceBufferTimestampOffset_(G),G.isSyncRequest){this.updateTimingInfoEnd_(G),this.syncController_.saveSegmentTimingInfo({segmentInfo:G,shouldSaveTimelineMapping:"main"===this.loaderType_});var en=this.chooseNextRequest_();if(en.mediaIndex!==G.mediaIndex||en.partIndex!==G.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}G.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(G,W)}}},W.updateAppendInitSegmentStatus=function(R,W){"main"!==this.loaderType_||"number"!=typeof R.timestampOffset||R.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[W]!==R.playlist&&(this.appendInitSegment_[W]=!0)},W.getInitSegmentAndUpdateState_=function(R){var W=R.type,G=R.initSegment,J=R.map,et=R.playlist;if(J){var er=initSegmentId(J);if(this.activeInitSegmentId_===er)return null;G=this.initSegmentForMap(J,!0).bytes,this.activeInitSegmentId_=er}return G&&this.appendInitSegment_[W]?(this.playlistOfLastInitSegment_[W]=et,this.appendInitSegment_[W]=!1,this.activeInitSegmentId_=null,G):null},W.handleQuotaExceededError_=function(R,W){var G=this,J=R.segmentInfo,et=R.type,er=R.bytes,en=this.sourceUpdater_.audioBuffered(),ei=this.sourceUpdater_.videoBuffered();en.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+timeRangesToArray(en).join(", ")),ei.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+timeRangesToArray(ei).join(", "));var eo=en.length?en.start(0):0,es=en.length?en.end(en.length-1):0,ec=ei.length?ei.start(0):0,el=ei.length?ei.end(ei.length-1):0;if(es-eo<=1&&el-ec<=1){this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+er.byteLength+", audio buffer: "+timeRangesToArray(en).join(", ")+", video buffer: "+timeRangesToArray(ei).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:J,type:et,bytes:er}));var eu=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+eu),this.remove(0,eu,function(){G.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),G.waitingOnRemove_=!1,G.quotaExceededErrorRetryTimeout_=em().setTimeout(function(){G.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),G.quotaExceededErrorRetryTimeout_=null,G.processCallQueue_()},1e3)},!0)},W.handleAppendError_=function(R,W){var G=R.segmentInfo,J=R.type,et=R.bytes;if(W){if(22===W.code){this.handleQuotaExceededError_({segmentInfo:G,type:J,bytes:et});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",W),this.error(J+" append of "+et.length+"b failed for segment #"+G.mediaIndex+" in playlist "+G.playlist.id),this.trigger("appenderror")}},W.appendToSourceBuffer_=function(R){var W=R.segmentInfo,G=R.type,J=R.initSegment,et=R.data,er=R.bytes;if(!er){var en=[et],ei=et.byteLength;J&&(en.unshift(J),ei+=J.byteLength),er=concatSegments({bytes:ei,segments:en})}this.sourceUpdater_.appendBuffer({segmentInfo:W,type:G,bytes:er},this.handleAppendError_.bind(this,{segmentInfo:W,type:G,bytes:er}))},W.handleSegmentTimingInfo_=function(R,W,G){if(this.pendingSegment_&&W===this.pendingSegment_.requestId){var J=this.pendingSegment_.segment,et=R+"TimingInfo";J[et]||(J[et]={}),J[et].transmuxerPrependedSeconds=G.prependedContentDuration||0,J[et].transmuxedPresentationStart=G.start.presentation,J[et].transmuxedDecodeStart=G.start.decode,J[et].transmuxedPresentationEnd=G.end.presentation,J[et].transmuxedDecodeEnd=G.end.decode,J[et].baseMediaDecodeTime=G.baseMediaDecodeTime}},W.appendData_=function(R,W){var G=W.type,J=W.data;if(J&&J.byteLength&&("audio"!==G||!this.audioDisabled_)){var et=this.getInitSegmentAndUpdateState_({type:G,initSegment:W.initSegment,playlist:R.playlist,map:R.isFmp4?R.segment.map:null});this.appendToSourceBuffer_({segmentInfo:R,type:G,initSegment:et,data:J})}},W.loadSegment_=function(R){var W=this;if(this.state="WAITING",this.pendingSegment_=R,this.trimBackBuffer_(R),"number"==typeof R.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(function(){var G=(0,eb.Z)({},R,{forceTimestampOffset:!0});(0,eb.Z)(R,W.generateSegmentInfo_(G)),W.isPendingTimestampOffset_=!1,W.updateTransmuxerAndRequestSegment_(R)});return}this.updateTransmuxerAndRequestSegment_(R)},W.updateTransmuxerAndRequestSegment_=function(R){var W=this;this.shouldUpdateTransmuxerTimestampOffset_(R.timestampOffset)&&(this.gopBuffer_.length=0,R.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:R.timestampOffset}));var G=this.createSimplifiedSegmentObj_(R),J=this.isEndOfStream_(R.mediaIndex,R.playlist,R.partIndex),et=null!==this.mediaIndex,er=R.timeline!==this.currentTimeline_&&R.timeline>0;this.logger_("Requesting "+segmentInfoString(R)),G.map&&!G.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),R.abortRequests=mediaSegmentRequest({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:G,abortFn:this.handleAbort_.bind(this,R),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",R.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",R.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:J||et&&er,endedTimelineFn:function(){W.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(G){var J=G.message,et=G.level,er=G.stream;W.logger_(segmentInfoString(R)+" logged from transmuxer stream "+er+" as a "+et+": "+J)}})},W.trimBackBuffer_=function(R){var W=safeBackBufferTrimTime(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);W>0&&this.remove(0,W)},W.createSimplifiedSegmentObj_=function(R){var W=R.segment,G=R.part,J={resolvedUri:G?G.resolvedUri:W.resolvedUri,byterange:G?G.byterange:W.byterange,requestId:R.requestId,transmuxer:R.transmuxer,audioAppendStart:R.audioAppendStart,gopsToAlignWith:R.gopsToAlignWith,part:R.part},et=R.playlist.segments[R.mediaIndex-1];if(et&&et.timeline===W.timeline&&(et.videoTimingInfo?J.baseStartTime=et.videoTimingInfo.transmuxedDecodeEnd:et.audioTimingInfo&&(J.baseStartTime=et.audioTimingInfo.transmuxedDecodeEnd)),W.key){var er=W.key.iv||new Uint32Array([0,0,0,R.mediaIndex+R.playlist.mediaSequence]);J.key=this.segmentKey(W.key),J.key.iv=er}return W.map&&(J.map=this.initSegmentForMap(W.map)),J},W.saveTransferStats_=function(R){this.mediaRequests+=1,R&&(this.mediaBytesTransferred+=R.bytesReceived,this.mediaTransferDuration+=R.roundTripTime)},W.saveBandwidthRelatedStats_=function(R,W){if(this.pendingSegment_.byteLength=W.bytesReceived,R<il){this.logger_("Ignoring segment's bandwidth because its duration of "+R+" is less than the min to record "+il);return}this.bandwidth=W.bandwidth,this.roundTrip=W.roundTripTime},W.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")},W.segmentRequestFinished_=function(R,W,G){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,R,W,G));return}if(this.saveTransferStats_(W.stats),this.pendingSegment_&&W.requestId===this.pendingSegment_.requestId){if(R){if(this.pendingSegment_=null,this.state="READY",R.code===ia.ABORTED)return;if(this.pause(),R.code===ia.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(R),this.trigger("error");return}var J=this.pendingSegment_;this.saveBandwidthRelatedStats_(J.duration,W.stats),J.endOfAllRequests=W.endOfAllRequests,G.gopInfo&&(this.gopBuffer_=updateGopBuffer(this.gopBuffer_,G.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(J)}},W.setTimeMapping_=function(R){var W=this.syncController_.mappingForTimeline(R);null!==W&&(this.timeMapping_=W)},W.updateMediaSecondsLoaded_=function(R){"number"==typeof R.start&&"number"==typeof R.end?this.mediaSecondsLoaded+=R.end-R.start:this.mediaSecondsLoaded+=R.duration},W.shouldUpdateTransmuxerTimestampOffset_=function(R){return null!==R&&("main"===this.loaderType_&&R!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&R!==this.sourceUpdater_.audioTimestampOffset())},W.trueSegmentStart_=function(R){var W=R.currentStart,G=R.playlist,J=R.mediaIndex,et=R.firstVideoFrameTimeForData,er=R.currentVideoTimestampOffset,en=R.useVideoTimingInfo,ei=R.videoTimingInfo,eo=R.audioTimingInfo;if(void 0!==W)return W;if(!en)return eo.start;var es=G.segments[J-1];return 0!==J&&es&&void 0!==es.start&&es.end===et+er?ei.start:et},W.waitForAppendsToComplete_=function(R){var W=this.getCurrentMediaInfo_(R);if(!W){this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),this.trigger("error");return}var G=W.hasAudio,J=W.hasVideo,et=W.isMuxed,er="main"===this.loaderType_&&J,en=!this.audioDisabled_&&G&&!et;if(R.waitingOnAppends=0,!R.hasAppendedData_){R.timingInfo||"number"!=typeof R.timestampOffset||(this.isPendingTimestampOffset_=!0),R.timingInfo={start:0},R.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(R),this.processMetadataQueue_()),this.checkAppendsDone_(R);return}er&&R.waitingOnAppends++,en&&R.waitingOnAppends++,er&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,R)),en&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,R))},W.checkAppendsDone_=function(R){this.checkForAbort_(R.requestId)||(R.waitingOnAppends--,0===R.waitingOnAppends&&this.handleAppendsDone_())},W.checkForIllegalMediaSwitch=function(R){var W,G,J=(W=this.loaderType_,G=this.getCurrentMediaInfo_(),"main"===W&&G&&R?R.hasAudio||R.hasVideo?G.hasVideo&&!R.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!G.hasVideo&&R.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null);return!!J&&(this.error({message:J,blacklistDuration:1/0}),this.trigger("error"),!0)},W.updateSourceBufferTimestampOffset_=function(R){if(null!==R.timestampOffset&&"number"==typeof R.timingInfo.start&&!R.changedTimestampOffset&&"main"===this.loaderType_){var W=!1;R.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:R.segment.videoTimingInfo,audioTimingInfo:R.segment.audioTimingInfo,timingInfo:R.timingInfo}),R.changedTimestampOffset=!0,R.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(R.timestampOffset),W=!0),R.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(R.timestampOffset),W=!0),W&&this.trigger("timestampoffset")}},W.getSegmentStartTimeForTimestampOffsetCalculation_=function(R){var W=R.videoTimingInfo,G=R.audioTimingInfo,J=R.timingInfo;return this.useDtsForTimestampOffset_?W&&"number"==typeof W.transmuxedDecodeStart?W.transmuxedDecodeStart:G&&"number"==typeof G.transmuxedDecodeStart?G.transmuxedDecodeStart:J.start:J.start},W.updateTimingInfoEnd_=function(R){R.timingInfo=R.timingInfo||{};var W=this.getMediaInfo_(),G="main"===this.loaderType_&&W&&W.hasVideo&&R.videoTimingInfo?R.videoTimingInfo:R.audioTimingInfo;G&&(R.timingInfo.end="number"==typeof G.end?G.end:G.start+R.duration)},W.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}var R=this.pendingSegment_;this.updateTimingInfoEnd_(R),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:R,shouldSaveTimelineMapping:"main"===this.loaderType_});var W=getTroublesomeSegmentDurationMessage(R,this.sourceType_);if(W&&("warn"===W.severity?videojs.log.warn(W.message):this.logger_(W.message)),this.recordThroughput_(R),this.pendingSegment_=null,this.state="READY",R.isSyncRequest&&(this.trigger("syncinfoupdate"),!R.hasAppendedData_)){this.logger_("Throwing away un-appended sync request "+segmentInfoString(R));return}this.logger_("Appended "+segmentInfoString(R)),this.addSegmentMetadataCue_(R),this.fetchAtBuffer_=!0,this.currentTimeline_===R.timeline||(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:R.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:R.timeline})),this.currentTimeline_=R.timeline,this.trigger("syncinfoupdate");var G=R.segment,J=R.part,et=G.end&&this.currentTime_()-G.end>3*R.playlist.targetDuration,er=J&&J.end&&this.currentTime_()-J.end>3*R.playlist.partTargetDuration;if(et||er){this.logger_("bad "+(et?"segment":"part")+" "+segmentInfoString(R)),this.resetEverything();return}null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=R.mediaIndex,this.partIndex=R.partIndex,this.isEndOfStream_(R.mediaIndex,R.playlist,R.partIndex)&&this.endOfStream(),this.trigger("appended"),R.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()},W.recordThroughput_=function(R){if(R.duration<il){this.logger_("Ignoring segment's throughput because its duration of "+R.duration+" is less than the min to record "+il);return}var W=this.throughput.rate,G=Date.now()-R.endOfAllRequests+1,J=Math.floor(R.byteLength/G*8e3);this.throughput.rate+=(J-W)/++this.throughput.count},W.addSegmentMetadataCue_=function(R){if(this.segmentMetadataTrack_){var W=R.segment,G=W.start,J=W.end;if(finite(G)&&finite(J)){removeCuesFromTrack(G,J,this.segmentMetadataTrack_);var et=em().WebKitDataCue||em().VTTCue,er={custom:W.custom,dateTimeObject:W.dateTimeObject,dateTimeString:W.dateTimeString,bandwidth:R.playlist.attributes.BANDWIDTH,resolution:R.playlist.attributes.RESOLUTION,codecs:R.playlist.attributes.CODECS,byteLength:R.byteLength,uri:R.uri,timeline:R.timeline,playlist:R.playlist.id,start:G,end:J},en=JSON.stringify(er),ei=new et(G,J,en);ei.value=er,this.segmentMetadataTrack_.addCue(ei)}}},SegmentLoader}(videojs.EventTarget);function noop(){}var toTitleCase=function(R){return"string"!=typeof R?R:R.replace(/./,function(R){return R.toUpperCase()})},id=["video","audio"],_updating=function(R,W){var G=W[R+"Buffer"];return G&&G.updating||W.queuePending[R]},nextQueueIndexOfType=function(R,W){for(var G=0;G<W.length;G++){var J=W[G];if("mediaSource"===J.type)break;if(J.type===R)return G}return null},shiftQueue=function shiftQueue(R,W){if(0!==W.queue.length){var G=0,J=W.queue[G];if("mediaSource"===J.type){W.updating()||"closed"===W.mediaSource.readyState||(W.queue.shift(),J.action(W),J.doneFn&&J.doneFn(),shiftQueue("audio",W),shiftQueue("video",W));return}if(!("mediaSource"===R||!W.ready()||"closed"===W.mediaSource.readyState||_updating(R,W))){if(J.type!==R){if(null===(G=nextQueueIndexOfType(R,W.queue)))return;J=W.queue[G]}if(W.queue.splice(G,1),W.queuePending[R]=J,J.action(R,W),!J.doneFn){W.queuePending[R]=null,shiftQueue(R,W);return}}}},cleanupBuffer=function(R,W){var G=W[R+"Buffer"],J=toTitleCase(R);G&&(G.removeEventListener("updateend",W["on"+J+"UpdateEnd_"]),G.removeEventListener("error",W["on"+J+"Error_"]),W.codecs[R]=null,W[R+"Buffer"]=null)},inSourceBuffers=function(R,W){return R&&W&&-1!==Array.prototype.indexOf.call(R.sourceBuffers,W)},ip={appendBuffer:function(R,W,G){return function(J,et){var er=et[J+"Buffer"];if(inSourceBuffers(et.mediaSource,er)){et.logger_("Appending segment "+W.mediaIndex+"'s "+R.length+" bytes to "+J+"Buffer");try{er.appendBuffer(R)}catch(R){et.logger_("Error with code "+R.code+" "+(22===R.code?"(QUOTA_EXCEEDED_ERR) ":"")+("when appending segment "+W.mediaIndex)+" to "+J+"Buffer"),et.queuePending[J]=null,G(R)}}}},remove:function(R,W){return function(G,J){var et=J[G+"Buffer"];if(inSourceBuffers(J.mediaSource,et)){J.logger_("Removing "+R+" to "+W+" from "+G+"Buffer");try{et.remove(R,W)}catch(et){J.logger_("Remove "+R+" to "+W+" from "+G+"Buffer failed")}}}},timestampOffset:function(R){return function(W,G){var J=G[W+"Buffer"];inSourceBuffers(G.mediaSource,J)&&(G.logger_("Setting "+W+"timestampOffset to "+R),J.timestampOffset=R)}},callback:function(R){return function(W,G){R()}},endOfStream:function(R){return function(W){if("open"===W.mediaSource.readyState){W.logger_("Calling mediaSource endOfStream("+(R||"")+")");try{W.mediaSource.endOfStream(R)}catch(R){videojs.log.warn("Failed to call media source endOfStream",R)}}}},duration:function(R){return function(W){W.logger_("Setting mediaSource duration to "+R);try{W.mediaSource.duration=R}catch(R){videojs.log.warn("Failed to set media source duration",R)}}},abort:function(){return function(R,W){if("open"===W.mediaSource.readyState){var G=W[R+"Buffer"];if(inSourceBuffers(W.mediaSource,G)){W.logger_("calling abort on "+R+"Buffer");try{G.abort()}catch(W){videojs.log.warn("Failed to abort on "+R+"Buffer",W)}}}}},addSourceBuffer:function(R,W){return function(G){var J=toTitleCase(R),et=getMimeForCodec(W);G.logger_("Adding "+R+"Buffer with codec "+W+" to mediaSource");var er=G.mediaSource.addSourceBuffer(et);er.addEventListener("updateend",G["on"+J+"UpdateEnd_"]),er.addEventListener("error",G["on"+J+"Error_"]),G.codecs[R]=W,G[R+"Buffer"]=er}},removeSourceBuffer:function(R){return function(W){var G=W[R+"Buffer"];if(cleanupBuffer(R,W),inSourceBuffers(W.mediaSource,G)){W.logger_("Removing "+R+"Buffer with codec "+W.codecs[R]+" from mediaSource");try{W.mediaSource.removeSourceBuffer(G)}catch(W){videojs.log.warn("Failed to removeSourceBuffer "+R+"Buffer",W)}}}},changeType:function(R){return function(W,G){var J=G[W+"Buffer"],et=getMimeForCodec(R);inSourceBuffers(G.mediaSource,J)&&G.codecs[W]!==R&&(G.logger_("changing "+W+"Buffer codec from "+G.codecs[W]+" to "+R),J.changeType(et),G.codecs[W]=R)}}},pushQueue=function(R){var W=R.type,G=R.sourceUpdater,J=R.action,et=R.doneFn,er=R.name;G.queue.push({type:W,action:J,doneFn:et,name:er}),shiftQueue(W,G)},onUpdateend=function(R,W){return function(G){if(W.queuePending[R]){var J=W.queuePending[R].doneFn;W.queuePending[R]=null,J&&J(W[R+"Error_"])}shiftQueue(R,W)}},ih=function(R){function SourceUpdater(W){var G;return(G=R.call(this)||this).mediaSource=W,G.sourceopenListener_=function(){return shiftQueue("mediaSource",(0,ew.Z)(G))},G.mediaSource.addEventListener("sourceopen",G.sourceopenListener_),G.logger_=logger("SourceUpdater"),G.audioTimestampOffset_=0,G.videoTimestampOffset_=0,G.queue=[],G.queuePending={audio:null,video:null},G.delayedAudioAppendQueue_=[],G.videoAppendQueued_=!1,G.codecs={},G.onVideoUpdateEnd_=onUpdateend("video",(0,ew.Z)(G)),G.onAudioUpdateEnd_=onUpdateend("audio",(0,ew.Z)(G)),G.onVideoError_=function(R){G.videoError_=R},G.onAudioError_=function(R){G.audioError_=R},G.createdSourceBuffers_=!1,G.initializedEme_=!1,G.triggeredReady_=!1,G}(0,eS.Z)(SourceUpdater,R);var W=SourceUpdater.prototype;return W.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},W.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},W.hasInitializedAnyEme=function(){return this.initializedEme_},W.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},W.createSourceBuffers=function(R){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(R),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},W.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},W.addSourceBuffer=function(R,W){pushQueue({type:"mediaSource",sourceUpdater:this,action:ip.addSourceBuffer(R,W),name:"addSourceBuffer"})},W.abort=function(R){pushQueue({type:R,sourceUpdater:this,action:ip.abort(R),name:"abort"})},W.removeSourceBuffer=function(R){if(!this.canRemoveSourceBuffer()){videojs.log.error("removeSourceBuffer is not supported!");return}pushQueue({type:"mediaSource",sourceUpdater:this,action:ip.removeSourceBuffer(R),name:"removeSourceBuffer"})},W.canRemoveSourceBuffer=function(){return!videojs.browser.IE_VERSION&&!videojs.browser.IS_FIREFOX&&em().MediaSource&&em().MediaSource.prototype&&"function"==typeof em().MediaSource.prototype.removeSourceBuffer},SourceUpdater.canChangeType=function(){return em().SourceBuffer&&em().SourceBuffer.prototype&&"function"==typeof em().SourceBuffer.prototype.changeType},W.canChangeType=function(){return this.constructor.canChangeType()},W.changeType=function(R,W){if(!this.canChangeType()){videojs.log.error("changeType is not supported!");return}pushQueue({type:R,sourceUpdater:this,action:ip.changeType(W),name:"changeType"})},W.addOrChangeSourceBuffers=function(R){var W=this;if(!R||"object"!=typeof R||0===Object.keys(R).length)throw Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(R).forEach(function(G){var J=R[G];if(!W.hasCreatedSourceBuffers())return W.addSourceBuffer(G,J);W.canChangeType()&&W.changeType(G,J)})},W.appendBuffer=function(R,W){var G=this,J=R.segmentInfo,et=R.type,er=R.bytes;if(this.processedAppend_=!0,"audio"===et&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([R,W]),this.logger_("delayed audio append of "+er.length+" until video append");return}if(pushQueue({type:et,sourceUpdater:this,action:ip.appendBuffer(er,J||{mediaIndex:-1},W),doneFn:W,name:"appendBuffer"}),"video"===et){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var en=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+en.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,en.forEach(function(R){G.appendBuffer.apply(G,R)})}},W.audioBuffered=function(){return inSourceBuffers(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:videojs.createTimeRange()},W.videoBuffered=function(){return inSourceBuffers(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:videojs.createTimeRange()},W.buffered=function(){var R=inSourceBuffers(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,W=inSourceBuffers(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return W&&!R?this.audioBuffered():R&&!W?this.videoBuffered():bufferIntersection(this.audioBuffered(),this.videoBuffered())},W.setDuration=function(R,W){void 0===W&&(W=noop),pushQueue({type:"mediaSource",sourceUpdater:this,action:ip.duration(R),name:"duration",doneFn:W})},W.endOfStream=function(R,W){void 0===R&&(R=null),void 0===W&&(W=noop),"string"!=typeof R&&(R=void 0),pushQueue({type:"mediaSource",sourceUpdater:this,action:ip.endOfStream(R),name:"endOfStream",doneFn:W})},W.removeAudio=function(R,W,G){if(void 0===G&&(G=noop),!this.audioBuffered().length||0===this.audioBuffered().end(0)){G();return}pushQueue({type:"audio",sourceUpdater:this,action:ip.remove(R,W),doneFn:G,name:"remove"})},W.removeVideo=function(R,W,G){if(void 0===G&&(G=noop),!this.videoBuffered().length||0===this.videoBuffered().end(0)){G();return}pushQueue({type:"video",sourceUpdater:this,action:ip.remove(R,W),doneFn:G,name:"remove"})},W.updating=function(){return!!(_updating("audio",this)||_updating("video",this))},W.audioTimestampOffset=function(R){return void 0!==R&&this.audioBuffer&&this.audioTimestampOffset_!==R&&(pushQueue({type:"audio",sourceUpdater:this,action:ip.timestampOffset(R),name:"timestampOffset"}),this.audioTimestampOffset_=R),this.audioTimestampOffset_},W.videoTimestampOffset=function(R){return void 0!==R&&this.videoBuffer&&this.videoTimestampOffset!==R&&(pushQueue({type:"video",sourceUpdater:this,action:ip.timestampOffset(R),name:"timestampOffset"}),this.videoTimestampOffset_=R),this.videoTimestampOffset_},W.audioQueueCallback=function(R){this.audioBuffer&&pushQueue({type:"audio",sourceUpdater:this,action:ip.callback(R),name:"callback"})},W.videoQueueCallback=function(R){this.videoBuffer&&pushQueue({type:"video",sourceUpdater:this,action:ip.callback(R),name:"callback"})},W.dispose=function(){var R=this;this.trigger("dispose"),id.forEach(function(W){R.abort(W),R.canRemoveSourceBuffer()?R.removeSourceBuffer(W):R[W+"QueueCallback"](function(){return cleanupBuffer(W,R)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},SourceUpdater}(videojs.EventTarget),uint8ToUtf8=function(R){return decodeURIComponent(escape(String.fromCharCode.apply(null,R)))},ig=new Uint8Array("\n\n".split("").map(function(R){return R.charCodeAt(0)})),im=function(R){function NoVttJsError(){return R.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return(0,eS.Z)(NoVttJsError,R),NoVttJsError}((0,to.Z)(Error)),iy=function(R){function VTTSegmentLoader(W,G){var J;return void 0===G&&(G={}),(J=R.call(this,W,G)||this).mediaSource_=null,J.subtitlesTrack_=null,J.loaderType_="subtitle",J.featuresNativeTextTracks_=W.featuresNativeTextTracks,J.loadVttJs=W.loadVttJs,J.shouldSaveSegmentTimingInfo_=!1,J}(0,eS.Z)(VTTSegmentLoader,R);var W=VTTSegmentLoader.prototype;return W.createTransmuxer_=function(){return null},W.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return videojs.createTimeRanges();var R=this.subtitlesTrack_.cues,W=R[0].startTime,G=R[R.length-1].startTime;return videojs.createTimeRanges([[W,G]])},W.initSegmentForMap=function(R,W){if(void 0===W&&(W=!1),!R)return null;var G=initSegmentId(R),J=this.initSegments_[G];if(W&&!J&&R.bytes){var et=ig.byteLength+R.bytes.byteLength,er=new Uint8Array(et);er.set(R.bytes),er.set(ig,R.bytes.byteLength),this.initSegments_[G]=J={resolvedUri:R.resolvedUri,byterange:R.byterange,bytes:er}}return J||R},W.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},W.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},W.track=function(R){return void 0===R||(this.subtitlesTrack_=R,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},W.remove=function(R,W){removeCuesFromTrack(R,W,this.subtitlesTrack_)},W.fillBuffer_=function(){var R=this,W=this.chooseNextRequest_();if(W){if(null===this.syncController_.timestampOffsetForTimeline(W.timeline)){this.syncController_.one("timestampoffset",function(){R.state="READY",R.paused()||R.monitorBuffer_()}),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(W)}},W.timestampOffsetForSegment_=function(){return null},W.chooseNextRequest_=function(){return this.skipEmptySegments_(R.prototype.chooseNextRequest_.call(this))},W.skipEmptySegments_=function(R){for(;R&&R.segment.empty;){if(R.mediaIndex+1>=R.playlist.segments.length){R=null;break}R=this.generateSegmentInfo_({playlist:R.playlist,mediaIndex:R.mediaIndex+1,startOfSegment:R.startOfSegment+R.duration,isSyncRequest:R.isSyncRequest})}return R},W.stopForError=function(R){this.error(R),this.state="READY",this.pause(),this.trigger("error")},W.segmentRequestFinished_=function(R,W,G){var J=this;if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(W.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(R){R.code===ia.TIMEOUT&&this.handleTimeout_(),R.code===ia.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(R);return}var et=this.pendingSegment_;this.saveBandwidthRelatedStats_(et.duration,W.stats),W.key&&this.segmentKey(W.key,!0),this.state="APPENDING",this.trigger("appending");var er=et.segment;if(er.map&&(er.map.bytes=W.map.bytes),et.bytes=W.bytes,"function"!=typeof em().WebVTT&&"function"==typeof this.loadVttJs){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(function(){return J.segmentRequestFinished_(R,W,G)},function(){return J.stopForError({message:"Error loading vtt.js"})});return}er.requested=!0;try{this.parseVTTCues_(et)}catch(R){this.stopForError({message:R.message});return}if(this.updateTimeMapping_(et,this.syncController_.timelines[et.timeline],this.playlist_),et.cues.length?et.timingInfo={start:et.cues[0].startTime,end:et.cues[et.cues.length-1].endTime}:et.timingInfo={start:et.startOfSegment,end:et.startOfSegment+et.duration},et.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}et.byteLength=et.bytes.byteLength,this.mediaSecondsLoaded+=er.duration,et.cues.forEach(function(R){J.subtitlesTrack_.addCue(J.featuresNativeTextTracks_?new(em()).VTTCue(R.startTime,R.endTime,R.text):R)}),removeDuplicateCuesFromTrack(this.subtitlesTrack_),this.handleAppendsDone_()},W.handleData_=function(){},W.updateTimingInfoEnd_=function(){},W.parseVTTCues_=function(R){var W,G=!1;if("function"!=typeof em().WebVTT)throw new im;"function"==typeof em().TextDecoder?W=new(em()).TextDecoder("utf8"):(W=em().WebVTT.StringDecoder(),G=!0);var J=new(em()).WebVTT.Parser(em(),em().vttjs,W);if(R.cues=[],R.timestampmap={MPEGTS:0,LOCAL:0},J.oncue=R.cues.push.bind(R.cues),J.ontimestampmap=function(W){R.timestampmap=W},J.onparsingerror=function(R){videojs.log.warn("Error encountered when parsing cues: "+R.message)},R.segment.map){var et=R.segment.map.bytes;G&&(et=uint8ToUtf8(et)),J.parse(et)}var er=R.bytes;G&&(er=uint8ToUtf8(er)),J.parse(er),J.flush()},W.updateTimeMapping_=function(R,W,G){var J=R.segment;if(W){if(!R.cues.length){J.empty=!0;return}var et=R.timestampmap,er=et.MPEGTS/ti.ONE_SECOND_IN_TS-et.LOCAL+W.mapping;if(R.cues.forEach(function(R){R.startTime+=er,R.endTime+=er}),!G.syncInfo){var en=R.cues[0].startTime,ei=R.cues[R.cues.length-1].startTime;G.syncInfo={mediaSequence:G.mediaSequence+R.mediaIndex,time:Math.min(en,ei-J.duration)}}}},VTTSegmentLoader}(iu),findAdCue=function(R,W){for(var G=R.cues,J=0;J<G.length;J++){var et=G[J];if(W>=et.adStartTime&&W<=et.adEndTime)return et}return null},updateAdCues=function(R,W,G){if(void 0===G&&(G=0),R.segments)for(var J,et=G,er=0;er<R.segments.length;er++){var en=R.segments[er];if(J||(J=findAdCue(W,et+en.duration/2)),J){if("cueIn"in en){J.endTime=et,J.adEndTime=et,et+=en.duration,J=null;continue}if(et<J.endTime){et+=en.duration;continue}J.endTime+=en.duration}else if("cueOut"in en&&((J=new(em()).VTTCue(et,et+en.duration,en.cueOut)).adStartTime=et,J.adEndTime=et+parseFloat(en.cueOut),W.addCue(J)),"cueOutCont"in en){var ei=en.cueOutCont.split("/").map(parseFloat),eo=ei[0],es=ei[1];(J=new(em()).VTTCue(et,et+en.duration,"")).adStartTime=et-eo,J.adEndTime=J.adStartTime+es,W.addCue(J)}et+=en.duration}},iv=[{name:"VOD",run:function(R,W,G,J,et){return G!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(R,W,G,J,et){if(!Object.keys(R.timelineToDatetimeMappings).length)return null;var er=null,en=null,ei=getPartsAndSegments(W);et=et||0;for(var eo=0;eo<ei.length;eo++){var es=W.endList||0===et?eo:ei.length-(eo+1),ec=ei[es],el=ec.segment,eu=R.timelineToDatetimeMappings[el.timeline];if(eu&&el.dateTimeObject){var ed=el.dateTimeObject.getTime()/1e3+eu;if(el.parts&&"number"==typeof ec.partIndex)for(var ep=0;ep<ec.partIndex;ep++)ed+=el.parts[ep].duration;var ef=Math.abs(et-ed);if(null!==en&&(0===ef||en<ef))break;en=ef,er={time:ed,segmentIndex:ec.segmentIndex,partIndex:ec.partIndex}}}return er}},{name:"Segment",run:function(R,W,G,J,et){var er=null,en=null;et=et||0;for(var ei=getPartsAndSegments(W),eo=0;eo<ei.length;eo++){var es=W.endList||0===et?eo:ei.length-(eo+1),ec=ei[es],el=ec.segment,eu=ec.part&&ec.part.start||el&&el.start;if(el.timeline===J&&void 0!==eu){var ed=Math.abs(et-eu);if(null!==en&&en<ed)break;(!er||null===en||en>=ed)&&(en=ed,er={time:eu,segmentIndex:ec.segmentIndex,partIndex:ec.partIndex})}}return er}},{name:"Discontinuity",run:function(R,W,G,J,et){var er=null;if(et=et||0,W.discontinuityStarts&&W.discontinuityStarts.length)for(var en=null,ei=0;ei<W.discontinuityStarts.length;ei++){var eo=W.discontinuityStarts[ei],es=W.discontinuitySequence+ei+1,ec=R.discontinuities[es];if(ec){var el=Math.abs(et-ec.time);if(null!==en&&en<el)break;(!er||null===en||en>=el)&&(en=el,er={time:ec.time,segmentIndex:eo,partIndex:null})}}return er}},{name:"Playlist",run:function(R,W,G,J,et){return W.syncInfo?{time:W.syncInfo.time,segmentIndex:W.syncInfo.mediaSequence-W.mediaSequence,partIndex:null}:null}}],ib=function(R){function SyncController(W){var G;return(G=R.call(this)||this).timelines=[],G.discontinuities=[],G.timelineToDatetimeMappings={},G.logger_=logger("SyncController"),G}(0,eS.Z)(SyncController,R);var W=SyncController.prototype;return W.getSyncPoint=function(R,W,G,J){var et=this.runStrategies_(R,W,G,J);return et.length?this.selectSyncPoint_(et,{key:"time",value:J}):null},W.getExpiredTime=function(R,W){if(!R||!R.segments)return null;var G=this.runStrategies_(R,W,R.discontinuitySequence,0);if(!G.length)return null;var J=this.selectSyncPoint_(G,{key:"segmentIndex",value:0});return J.segmentIndex>0&&(J.time*=-1),Math.abs(J.time+sumDurations({defaultDuration:R.targetDuration,durationList:R.segments,startIndex:J.segmentIndex,endIndex:0}))},W.runStrategies_=function(R,W,G,J){for(var et=[],er=0;er<iv.length;er++){var en=iv[er],ei=en.run(this,R,W,G,J);ei&&(ei.strategy=en.name,et.push({strategy:en.name,syncPoint:ei}))}return et},W.selectSyncPoint_=function(R,W){for(var G=R[0].syncPoint,J=Math.abs(R[0].syncPoint[W.key]-W.value),et=R[0].strategy,er=1;er<R.length;er++){var en=Math.abs(R[er].syncPoint[W.key]-W.value);en<J&&(J=en,G=R[er].syncPoint,et=R[er].strategy)}return this.logger_("syncPoint for ["+W.key+": "+W.value+"] chosen with strategy"+(" ["+et)+"]: [time:"+G.time+", segmentIndex:"+G.segmentIndex+("number"==typeof G.partIndex?",partIndex:"+G.partIndex:"")+"]"),G},W.saveExpiredSegmentInfo=function(R,W){var G=W.mediaSequence-R.mediaSequence;if(G>86400){videojs.log.warn("Not saving expired segment info. Media sequence gap "+G+" is too large.");return}for(var J=G-1;J>=0;J--){var et=R.segments[J];if(et&&void 0!==et.start){W.syncInfo={mediaSequence:R.mediaSequence+J,time:et.start},this.logger_("playlist refresh sync: [time:"+W.syncInfo.time+", mediaSequence: "+W.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},W.setDateTimeMappingForStart=function(R){if(this.timelineToDatetimeMappings={},R.segments&&R.segments.length&&R.segments[0].dateTimeObject){var W=R.segments[0],G=W.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[W.timeline]=-G}},W.saveSegmentTimingInfo=function(R){var W=R.segmentInfo,G=R.shouldSaveTimelineMapping,J=this.calculateSegmentTimeMapping_(W,W.timingInfo,G),et=W.segment;J&&(this.saveDiscontinuitySyncInfo_(W),W.playlist.syncInfo||(W.playlist.syncInfo={mediaSequence:W.playlist.mediaSequence+W.mediaIndex,time:et.start}));var er=et.dateTimeObject;et.discontinuity&&G&&er&&(this.timelineToDatetimeMappings[et.timeline]=-(er.getTime()/1e3))},W.timestampOffsetForTimeline=function(R){return void 0===this.timelines[R]?null:this.timelines[R].time},W.mappingForTimeline=function(R){return void 0===this.timelines[R]?null:this.timelines[R].mapping},W.calculateSegmentTimeMapping_=function(R,W,G){var J,et,er=R.segment,en=R.part,ei=this.timelines[R.timeline];if("number"==typeof R.timestampOffset)ei={time:R.startOfSegment,mapping:R.startOfSegment-W.start},G&&(this.timelines[R.timeline]=ei,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+R.timeline+": "+("[time: "+ei.time)+"] [mapping: "+ei.mapping+"]")),J=R.startOfSegment,et=W.end+ei.mapping;else{if(!ei)return!1;J=W.start+ei.mapping,et=W.end+ei.mapping}return en&&(en.start=J,en.end=et),(!er.start||J<er.start)&&(er.start=J),er.end=et,!0},W.saveDiscontinuitySyncInfo_=function(R){var W=R.playlist,G=R.segment;if(G.discontinuity)this.discontinuities[G.timeline]={time:G.start,accuracy:0};else if(W.discontinuityStarts&&W.discontinuityStarts.length)for(var J=0;J<W.discontinuityStarts.length;J++){var et=W.discontinuityStarts[J],er=W.discontinuitySequence+J+1,en=et-R.mediaIndex,ei=Math.abs(en);if(!this.discontinuities[er]||this.discontinuities[er].accuracy>ei){var eo=void 0;eo=en<0?G.start-sumDurations({defaultDuration:W.targetDuration,durationList:W.segments,startIndex:R.mediaIndex,endIndex:et}):G.end+sumDurations({defaultDuration:W.targetDuration,durationList:W.segments,startIndex:R.mediaIndex+1,endIndex:et}),this.discontinuities[er]={time:eo,accuracy:ei}}}},W.dispose=function(){this.trigger("dispose"),this.off()},SyncController}(videojs.EventTarget),i_=function(R){function TimelineChangeController(){var W;return(W=R.call(this)||this).pendingTimelineChanges_={},W.lastTimelineChanges_={},W}(0,eS.Z)(TimelineChangeController,R);var W=TimelineChangeController.prototype;return W.clearPendingTimelineChange=function(R){this.pendingTimelineChanges_[R]=null,this.trigger("pendingtimelinechange")},W.pendingTimelineChange=function(R){var W=R.type,G=R.from,J=R.to;return"number"==typeof G&&"number"==typeof J&&(this.pendingTimelineChanges_[W]={type:W,from:G,to:J},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[W]},W.lastTimelineChange=function(R){var W=R.type,G=R.from,J=R.to;return"number"==typeof G&&"number"==typeof J&&(this.lastTimelineChanges_[W]={type:W,from:G,to:J},delete this.pendingTimelineChanges_[W],this.trigger("timelinechange")),this.lastTimelineChanges_[W]},W.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},TimelineChangeController}(videojs.EventTarget),ix=factory(transform(getWorkerString(function(){var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==G.g?G.g:"undefined"!=typeof self?self:{};function createCommonjsModule(R,W,G){return R(G={path:W,exports:{},require:function(R,W){return function(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(R,null==W?G.path:W)}},G.exports),G.exports}var W=createCommonjsModule(function(R){function _defineProperties(R,W){for(var G=0;G<W.length;G++){var J=W[G];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(R,J.key,J)}}R.exports=function(R,W,G){return W&&_defineProperties(R.prototype,W),G&&_defineProperties(R,G),R},R.exports.default=R.exports,R.exports.__esModule=!0}),J=createCommonjsModule(function(R){function _setPrototypeOf(W,G){return R.exports=_setPrototypeOf=Object.setPrototypeOf||function(R,W){return R.__proto__=W,R},R.exports.default=R.exports,R.exports.__esModule=!0,_setPrototypeOf(W,G)}R.exports=_setPrototypeOf,R.exports.default=R.exports,R.exports.__esModule=!0}),et=createCommonjsModule(function(R){R.exports=function(R,W){R.prototype=Object.create(W.prototype),R.prototype.constructor=R,J(R,W)},R.exports.default=R.exports,R.exports.__esModule=!0}),er=function(){function Stream(){this.listeners={}}var R=Stream.prototype;return R.on=function(R,W){this.listeners[R]||(this.listeners[R]=[]),this.listeners[R].push(W)},R.off=function(R,W){if(!this.listeners[R])return!1;var G=this.listeners[R].indexOf(W);return this.listeners[R]=this.listeners[R].slice(0),this.listeners[R].splice(G,1),G>-1},R.trigger=function(R){var W=this.listeners[R];if(W){if(2==arguments.length)for(var G=W.length,J=0;J<G;++J)W[J].call(this,arguments[1]);else for(var et=Array.prototype.slice.call(arguments,1),er=W.length,en=0;en<er;++en)W[en].apply(this,et)}},R.dispose=function(){this.listeners={}},R.pipe=function(R){this.on("data",function(W){R.push(W)})},Stream}(),precompute=function(){var R,W,G,J,et,er,en,ei,eo=[[[],[],[],[],[]],[[],[],[],[],[]]],es=eo[0],ec=eo[1],el=es[4],eu=ec[4],ed=[],ep=[];for(R=0;R<256;R++)ep[(ed[R]=R<<1^(R>>7)*283)^R]=R;for(W=G=0;!el[W];W^=J||1,G=ep[G]||1)for(R=0,er=(er=G^G<<1^G<<2^G<<3^G<<4)>>8^255&er^99,el[W]=er,eu[er]=W,ei=16843009*ed[et=ed[J=ed[W]]]^65537*et^257*J^16843008*W,en=257*ed[er]^16843008*er;R<4;R++)es[R][W]=en=en<<24^en>>>8,ec[R][er]=ei=ei<<24^ei>>>8;for(R=0;R<5;R++)es[R]=es[R].slice(0),ec[R]=ec[R].slice(0);return eo},en=null,ei=function(){function AES(R){en||(en=precompute()),this._tables=[[en[0][0].slice(),en[0][1].slice(),en[0][2].slice(),en[0][3].slice(),en[0][4].slice()],[en[1][0].slice(),en[1][1].slice(),en[1][2].slice(),en[1][3].slice(),en[1][4].slice()]];var W,G,J,et=this._tables[0][4],er=this._tables[1],ei=R.length,eo=1;if(4!==ei&&6!==ei&&8!==ei)throw Error("Invalid aes key size");var es=R.slice(0),ec=[];for(this._key=[es,ec],W=ei;W<4*ei+28;W++)J=es[W-1],(W%ei==0||8===ei&&W%ei==4)&&(J=et[J>>>24]<<24^et[J>>16&255]<<16^et[J>>8&255]<<8^et[255&J],W%ei==0&&(J=J<<8^J>>>24^eo<<24,eo=eo<<1^(eo>>7)*283)),es[W]=es[W-ei]^J;for(G=0;W;G++,W--)J=es[3&G?W:W-4],W<=4||G<4?ec[G]=J:ec[G]=er[0][et[J>>>24]]^er[1][et[J>>16&255]]^er[2][et[J>>8&255]]^er[3][et[255&J]]}return AES.prototype.decrypt=function(R,W,G,J,et,er){var en,ei,eo,es,ec=this._key[1],el=R^ec[0],eu=J^ec[1],ed=G^ec[2],ep=W^ec[3],ef=ec.length/4-2,eh=4,eg=this._tables[1],em=eg[0],ey=eg[1],ev=eg[2],eb=eg[3],e_=eg[4];for(es=0;es<ef;es++)en=em[el>>>24]^ey[eu>>16&255]^ev[ed>>8&255]^eb[255&ep]^ec[eh],ei=em[eu>>>24]^ey[ed>>16&255]^ev[ep>>8&255]^eb[255&el]^ec[eh+1],eo=em[ed>>>24]^ey[ep>>16&255]^ev[el>>8&255]^eb[255&eu]^ec[eh+2],ep=em[ep>>>24]^ey[el>>16&255]^ev[eu>>8&255]^eb[255&ed]^ec[eh+3],eh+=4,el=en,eu=ei,ed=eo;for(es=0;es<4;es++)et[(3&-es)+er]=e_[el>>>24]<<24^e_[eu>>16&255]<<16^e_[ed>>8&255]<<8^e_[255&ep]^ec[eh++],en=el,el=eu,eu=ed,ed=ep,ep=en},AES}(),eo=function(R){function AsyncStream(){var W;return(W=R.call(this,er)||this).jobs=[],W.delay=1,W.timeout_=null,W}et(AsyncStream,R);var W=AsyncStream.prototype;return W.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},W.push=function(R){this.jobs.push(R),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},AsyncStream}(er),ntoh=function(R){return R<<24|(65280&R)<<8|(16711680&R)>>8|R>>>24},decrypt=function(R,W,G){var J,et,er,en,eo,es,ec,el,eu,ed=new Int32Array(R.buffer,R.byteOffset,R.byteLength>>2),ep=new ei(Array.prototype.slice.call(W)),ef=new Uint8Array(R.byteLength),eh=new Int32Array(ef.buffer);for(eu=0,J=G[0],et=G[1],er=G[2],en=G[3];eu<ed.length;eu+=4)eo=ntoh(ed[eu]),es=ntoh(ed[eu+1]),ec=ntoh(ed[eu+2]),el=ntoh(ed[eu+3]),ep.decrypt(eo,es,ec,el,eh,eu),eh[eu]=ntoh(eh[eu]^J),eh[eu+1]=ntoh(eh[eu+1]^et),eh[eu+2]=ntoh(eh[eu+2]^er),eh[eu+3]=ntoh(eh[eu+3]^en),J=eo,et=es,er=ec,en=el;return ef},es=function(){function Decrypter(R,W,G,J){var et=Decrypter.STEP,er=new Int32Array(R.buffer),en=new Uint8Array(R.byteLength),ei=0;for(this.asyncStream_=new eo,this.asyncStream_.push(this.decryptChunk_(er.subarray(ei,ei+et),W,G,en)),ei=et;ei<er.length;ei+=et)G=new Uint32Array([ntoh(er[ei-4]),ntoh(er[ei-3]),ntoh(er[ei-2]),ntoh(er[ei-1])]),this.asyncStream_.push(this.decryptChunk_(er.subarray(ei,ei+et),W,G,en));this.asyncStream_.push(function(){J(null,en.subarray(0,en.byteLength-en[en.byteLength-1]))})}return Decrypter.prototype.decryptChunk_=function(R,W,G,J){return function(){var et=decrypt(R,W,G);J.set(et,R.byteOffset)}},W(Decrypter,null,[{key:"STEP",get:function(){return 32e3}}]),Decrypter}(),ec=("undefined"!=typeof window?window:void 0!==R?R:"undefined"!=typeof self?self:{}).BigInt||Number;ec("0x1"),ec("0x100"),ec("0x10000"),ec("0x1000000"),ec("0x100000000"),ec("0x10000000000"),ec("0x1000000000000"),ec("0x100000000000000"),ec("0x10000000000000000");var createTransferableMessage=function(R){var W={};return Object.keys(R).forEach(function(G){var J=R[G];("function"===ArrayBuffer.isView?ArrayBuffer.isView(J):J&&J.buffer instanceof ArrayBuffer)?W[G]={bytes:J.buffer,byteOffset:J.byteOffset,byteLength:J.byteLength}:W[G]=J}),W};self.onmessage=function(R){var W=R.data,G=new Uint8Array(W.encrypted.bytes,W.encrypted.byteOffset,W.encrypted.byteLength),J=new Uint32Array(W.key.bytes,W.key.byteOffset,W.key.byteLength/4),et=new Uint32Array(W.iv.bytes,W.iv.byteOffset,W.iv.byteLength/4);new es(G,J,et,function(R,G){self.postMessage(createTransferableMessage({source:W.source,decrypted:G}),[G.buffer])})}}))),audioTrackKind_=function(R){var W=R.default?"main":"alternative";return R.characteristics&&R.characteristics.indexOf("public.accessibility.describes-video")>=0&&(W="main-desc"),W},stopLoaders=function(R,W){R.abort(),R.pause(),W&&W.activePlaylistLoader&&(W.activePlaylistLoader.pause(),W.activePlaylistLoader=null)},startLoaders=function(R,W){W.activePlaylistLoader=R,R.load()},iw={AUDIO:function(R,W){return function(){var G=W.segmentLoaders[R],J=W.mediaTypes[R],et=W.blacklistCurrentPlaylist;stopLoaders(G,J);var er=J.activeTrack(),en=J.activeGroup(),ei=(en.filter(function(R){return R.default})[0]||en[0]).id,eo=J.tracks[ei];if(er===eo){et({message:"Problem encountered loading the default audio track."});return}for(var es in videojs.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),J.tracks)J.tracks[es].enabled=J.tracks[es]===eo;J.onTrackChanged()}},SUBTITLES:function(R,W){return function(){var G=W.segmentLoaders[R],J=W.mediaTypes[R];videojs.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),stopLoaders(G,J);var et=J.activeTrack();et&&(et.mode="disabled"),J.onTrackChanged()}}},iS={AUDIO:function(R,W,G){if(W){var J=G.tech,et=G.requestOptions,er=G.segmentLoaders[R];W.on("loadedmetadata",function(){var R=W.media();er.playlist(R,et),(!J.paused()||R.endList&&"none"!==J.preload())&&er.load()}),W.on("loadedplaylist",function(){er.playlist(W.media(),et),J.paused()||er.load()}),W.on("error",iw[R](R,G))}},SUBTITLES:function(R,W,G){var J=G.tech,et=G.requestOptions,er=G.segmentLoaders[R],en=G.mediaTypes[R];W.on("loadedmetadata",function(){var R=W.media();er.playlist(R,et),er.track(en.activeTrack()),(!J.paused()||R.endList&&"none"!==J.preload())&&er.load()}),W.on("loadedplaylist",function(){er.playlist(W.media(),et),J.paused()||er.load()}),W.on("error",iw[R](R,G))}},iT={AUDIO:function(R,W){var G=W.vhs,J=W.sourceType,et=W.segmentLoaders[R],er=W.requestOptions,en=W.master.mediaGroups,ei=W.mediaTypes[R],eo=ei.groups,es=ei.tracks,ec=ei.logger_,el=W.masterPlaylistLoader,eu=isAudioOnly(el.master);for(var ed in(!en[R]||0===Object.keys(en[R]).length)&&(en[R]={main:{default:{default:!0}}},eu&&(en[R].main.default.playlists=el.master.playlists)),en[R])for(var ep in eo[ed]||(eo[ed]=[]),en[R][ed]){var ef=en[R][ed][ep],eh=void 0;if(eu?(ec("AUDIO group '"+ed+"' label '"+ep+"' is a master playlist"),ef.isMasterPlaylist=!0,eh=null):eh="vhs-json"===J&&ef.playlists?new n4(ef.playlists[0],G,er):ef.resolvedUri?new n4(ef.resolvedUri,G,er):ef.playlists&&"dash"===J?new it(ef.playlists[0],G,er,el):null,ef=videojs.mergeOptions({id:ep,playlistLoader:eh},ef),iS[R](R,ef.playlistLoader,W),eo[ed].push(ef),void 0===es[ep]){var eg=new videojs.AudioTrack({id:ep,kind:audioTrackKind_(ef),enabled:!1,language:ef.language,default:ef.default,label:ep});es[ep]=eg}}et.on("error",iw[R](R,W))},SUBTITLES:function(R,W){var G=W.tech,J=W.vhs,et=W.sourceType,er=W.segmentLoaders[R],en=W.requestOptions,ei=W.master.mediaGroups,eo=W.mediaTypes[R],es=eo.groups,ec=eo.tracks,el=W.masterPlaylistLoader;for(var eu in ei[R])for(var ed in es[eu]||(es[eu]=[]),ei[R][eu])if(!ei[R][eu][ed].forced){var ep=ei[R][eu][ed],ef=void 0;if("hls"===et)ef=new n4(ep.resolvedUri,J,en);else if("dash"===et){if(!ep.playlists.filter(function(R){return R.excludeUntil!==1/0}).length)return;ef=new it(ep.playlists[0],J,en,el)}else"vhs-json"===et&&(ef=new n4(ep.playlists?ep.playlists[0]:ep.resolvedUri,J,en));if(ep=videojs.mergeOptions({id:ed,playlistLoader:ef},ep),iS[R](R,ep.playlistLoader,W),es[eu].push(ep),void 0===ec[ed]){var eh=G.addRemoteTextTrack({id:ed,kind:"subtitles",default:ep.default&&ep.autoselect,language:ep.language,label:ed},!1).track;ec[ed]=eh}}er.on("error",iw[R](R,W))},"CLOSED-CAPTIONS":function(R,W){var G=W.tech,J=W.master.mediaGroups,et=W.mediaTypes[R],er=et.groups,en=et.tracks;for(var ei in J[R])for(var eo in er[ei]||(er[ei]=[]),J[R][ei]){var es=J[R][ei][eo];if(/^(?:CC|SERVICE)/.test(es.instreamId)){var ec=G.options_.vhs&&G.options_.vhs.captionServices||{},el={label:eo,language:es.language,instreamId:es.instreamId,default:es.default&&es.autoselect};if(ec[el.instreamId]&&(el=videojs.mergeOptions(el,ec[el.instreamId])),void 0===el.default&&delete el.default,er[ei].push(videojs.mergeOptions({id:eo},es)),void 0===en[eo]){var eu=G.addRemoteTextTrack({id:el.instreamId,kind:"captions",default:el.default,language:el.language,label:el.label},!1).track;en[eo]=eu}}}}},groupMatch=function groupMatch(R,W){for(var G=0;G<R.length;G++)if(playlistMatch(W,R[G])||R[G].playlists&&groupMatch(R[G].playlists,W))return!0;return!1},iO={AUDIO:function(R,W){return function(){var G=W.mediaTypes[R].tracks;for(var J in G)if(G[J].enabled)return G[J];return null}},SUBTITLES:function(R,W){return function(){var G=W.mediaTypes[R].tracks;for(var J in G)if("showing"===G[J].mode||"hidden"===G[J].mode)return G[J];return null}}},getActiveGroup=function(R,W){var G=W.mediaTypes;return function(){var W=G[R].activeTrack();return W?G[R].activeGroup(W):null}},setupMediaGroups=function(R){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(W){iT[W](W,R)});var W=R.mediaTypes,G=R.masterPlaylistLoader,J=R.tech,et=R.vhs,er=R.segmentLoaders,en=er.AUDIO,ei=er.main;["AUDIO","SUBTITLES"].forEach(function(G){W[G].activeGroup=function(W){var J=R.masterPlaylistLoader,et=R.mediaTypes[G].groups,er=J.media();if(!er)return null;var en=null;er.attributes[G]&&(en=et[er.attributes[G]]);var ei=Object.keys(et);if(!en){if("AUDIO"===G&&ei.length>1&&isAudioOnly(R.master))for(var eo=0;eo<ei.length;eo++){var es=et[ei[eo]];if(groupMatch(es,er)){en=es;break}}else et.main?en=et.main:1===ei.length&&(en=et[ei[0]])}return void 0===W?en:null!==W&&en&&en.filter(function(R){return R.id===W.id})[0]||null},W[G].activeTrack=iO[G](G,R),W[G].onGroupChanged=function(){var W=R.segmentLoaders,J=W[G],et=W.main,er=R.mediaTypes[G],en=er.activeTrack(),ei=er.getActiveGroup(),eo=er.activePlaylistLoader,es=er.lastGroup_;if((!ei||!es||ei.id!==es.id)&&(er.lastGroup_=ei,er.lastTrack_=en,stopLoaders(J,er),ei&&!ei.isMasterPlaylist)){if(!ei.playlistLoader){eo&&et.resetEverything();return}J.resyncLoader(),startLoaders(ei.playlistLoader,er)}},W[G].onGroupChanging=function(){var W=R.segmentLoaders[G];R.mediaTypes[G].lastGroup_=null,W.abort(),W.pause()},W[G].onTrackChanged=function(){var W=R.masterPlaylistLoader,J=R.segmentLoaders,et=J[G],er=J.main,en=R.mediaTypes[G],ei=en.activeTrack(),eo=en.getActiveGroup(),es=en.activePlaylistLoader,ec=en.lastTrack_;if((!ec||!ei||ec.id!==ei.id)&&(en.lastGroup_=eo,en.lastTrack_=ei,stopLoaders(et,en),eo)){if(eo.isMasterPlaylist){if(!ei||!ec||ei.id===ec.id)return;var el=R.vhs.masterPlaylistController_,eu=el.selectPlaylist();if(el.media()===eu)return;en.logger_("track change. Switching master audio from "+ec.id+" to "+ei.id),W.pause(),er.resetEverything(),el.fastQualityChange_(eu);return}if("AUDIO"===G){if(!eo.playlistLoader){er.setAudio(!0),er.resetEverything();return}et.setAudio(!0),er.setAudio(!1)}if(es===eo.playlistLoader){startLoaders(eo.playlistLoader,en);return}et.track&&et.track(ei),et.resetEverything(),startLoaders(eo.playlistLoader,en)}},W[G].getActiveGroup=getActiveGroup(G,R)});var eo=W.AUDIO.activeGroup();if(eo){var es=(eo.filter(function(R){return R.default})[0]||eo[0]).id;W.AUDIO.tracks[es].enabled=!0,W.AUDIO.onGroupChanged(),W.AUDIO.onTrackChanged(),W.AUDIO.getActiveGroup().playlistLoader?(ei.setAudio(!1),en.setAudio(!0)):ei.setAudio(!0)}G.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(R){return W[R].onGroupChanged()})}),G.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(R){return W[R].onGroupChanging()})});var onAudioTrackChanged=function(){W.AUDIO.onTrackChanged(),J.trigger({type:"usage",name:"vhs-audio-change"}),J.trigger({type:"usage",name:"hls-audio-change"})};for(var ec in J.audioTracks().addEventListener("change",onAudioTrackChanged),J.remoteTextTracks().addEventListener("change",W.SUBTITLES.onTrackChanged),et.on("dispose",function(){J.audioTracks().removeEventListener("change",onAudioTrackChanged),J.remoteTextTracks().removeEventListener("change",W.SUBTITLES.onTrackChanged)}),J.clearTracks("audio"),W.AUDIO.tracks)J.audioTracks().addTrack(W.AUDIO.tracks[ec])},createMediaTypes=function(){var R={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(W){R[W]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:noop,activeTrack:noop,getActiveGroup:noop,onGroupChanged:noop,onTrackChanged:noop,lastTrack_:null,logger_:logger("MediaGroups["+W+"]")}}),R},iP=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],sumLoaderStat=function(R){return this.audioSegmentLoader_[R]+this.mainSegmentLoader_[R]},shouldSwitchToMedia=function(R){var W=R.currentPlaylist,G=R.buffered,J=R.currentTime,et=R.nextPlaylist,er=R.bufferLowWaterLine,en=R.bufferHighWaterLine,ei=R.duration,eo=R.experimentalBufferBasedABR,es=R.log;if(!et)return videojs.log.warn("We received no playlist to switch to. Please check your stream."),!1;var ec="allowing switch "+(W&&W.id||"null")+" -> "+et.id;if(!W)return es(ec+" as current playlist is not set"),!0;if(et.id===W.id)return!1;var el=!!findRange(G,J).length;if(!W.endList)return el||"number"!=typeof W.partTargetDuration?(es(ec+" as current playlist is live"),!0):(es("not "+ec+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var eu=timeAheadOf(G,J),ed=eo?ir.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:ir.MAX_BUFFER_LOW_WATER_LINE;if(ei<ed)return es(ec+" as duration < max low water line ("+ei+" < "+ed+")"),!0;var ep=et.attributes.BANDWIDTH,ef=W.attributes.BANDWIDTH;if(ep<ef&&(!eo||eu<en)){var eh=ec+" as next bandwidth < current bandwidth ("+ep+" < "+ef+")";return eo&&(eh+=" and forwardBuffer < bufferHighWaterLine ("+eu+" < "+en+")"),es(eh),!0}if((!eo||ep>ef)&&eu>=er){var eg=ec+" as forwardBuffer >= bufferLowWaterLine ("+eu+" >= "+er+")";return eo&&(eg+=" and next bandwidth > current bandwidth ("+ep+" > "+ef+")"),es(eg),!0}return es("not "+ec+" as no switching criteria met"),!1},iC=function(R){function MasterPlaylistController(W){G=R.call(this)||this;var G,J=W.src,et=W.handleManifestRedirects,er=W.withCredentials,en=W.tech,ei=W.bandwidth,eo=W.externVhs,es=W.useCueTags,ec=W.blacklistDuration,el=W.enableLowInitialPlaylist,eu=W.sourceType,ed=W.cacheEncryptionKeys,ep=W.experimentalBufferBasedABR,ef=W.experimentalLeastPixelDiffSelector,eg=W.captionServices;if(!J)throw Error("A non-empty playlist URL or JSON manifest string is required");var ey=W.maxPlaylistRetries;null==ey&&(ey=1/0),eh=eo,G.experimentalBufferBasedABR=!!ep,G.experimentalLeastPixelDiffSelector=!!ef,G.withCredentials=er,G.tech_=en,G.vhs_=en.vhs,G.sourceType_=eu,G.useCueTags_=es,G.blacklistDuration=ec,G.maxPlaylistRetries=ey,G.enableLowInitialPlaylist=el,G.useCueTags_&&(G.cueTagsTrack_=G.tech_.addTextTrack("metadata","ad-cues"),G.cueTagsTrack_.inBandMetadataTrackDispatchType=""),G.requestOptions_={withCredentials:er,handleManifestRedirects:et,maxPlaylistRetries:ey,timeout:null},G.on("error",G.pauseLoading),G.mediaTypes_=createMediaTypes(),G.mediaSource=new(em()).MediaSource,G.handleDurationChange_=G.handleDurationChange_.bind((0,ew.Z)(G)),G.handleSourceOpen_=G.handleSourceOpen_.bind((0,ew.Z)(G)),G.handleSourceEnded_=G.handleSourceEnded_.bind((0,ew.Z)(G)),G.mediaSource.addEventListener("durationchange",G.handleDurationChange_),G.mediaSource.addEventListener("sourceopen",G.handleSourceOpen_),G.mediaSource.addEventListener("sourceended",G.handleSourceEnded_),G.seekable_=videojs.createTimeRanges(),G.hasPlayed_=!1,G.syncController_=new ib(W),G.segmentMetadataTrack_=en.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,G.decrypter_=new ix,G.sourceUpdater_=new ih(G.mediaSource),G.inbandTextTracks_={},G.timelineChangeController_=new i_;var ev={vhs:G.vhs_,parse708captions:W.parse708captions,useDtsForTimestampOffset:W.useDtsForTimestampOffset,captionServices:eg,mediaSource:G.mediaSource,currentTime:G.tech_.currentTime.bind(G.tech_),seekable:function(){return G.seekable()},seeking:function(){return G.tech_.seeking()},duration:function(){return G.duration()},hasPlayed:function(){return G.hasPlayed_},goalBufferLength:function(){return G.goalBufferLength()},bandwidth:ei,syncController:G.syncController_,decrypter:G.decrypter_,sourceType:G.sourceType_,inbandTextTracks:G.inbandTextTracks_,cacheEncryptionKeys:ed,sourceUpdater:G.sourceUpdater_,timelineChangeController:G.timelineChangeController_,experimentalExactManifestTimings:W.experimentalExactManifestTimings};G.masterPlaylistLoader_="dash"===G.sourceType_?new it(J,G.vhs_,G.requestOptions_):new n4(J,G.vhs_,G.requestOptions_),G.setupMasterPlaylistLoaderListeners_(),G.mainSegmentLoader_=new iu(videojs.mergeOptions(ev,{segmentMetadataTrack:G.segmentMetadataTrack_,loaderType:"main"}),W),G.audioSegmentLoader_=new iu(videojs.mergeOptions(ev,{loaderType:"audio"}),W),G.subtitleSegmentLoader_=new iy(videojs.mergeOptions(ev,{loaderType:"vtt",featuresNativeTextTracks:G.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise(function(R,W){function onLoad(){en.off("vttjserror",onError),R()}function onError(){en.off("vttjsloaded",onLoad),W()}en.one("vttjsloaded",onLoad),en.one("vttjserror",onError),en.addWebVttScript_()})}}),W),G.setupSegmentLoaderListeners_(),G.experimentalBufferBasedABR&&(G.masterPlaylistLoader_.one("loadedplaylist",function(){return G.startABRTimer_()}),G.tech_.on("pause",function(){return G.stopABRTimer_()}),G.tech_.on("play",function(){return G.startABRTimer_()})),iP.forEach(function(R){G[R+"_"]=sumLoaderStat.bind((0,ew.Z)(G),R)}),G.logger_=logger("MPC"),G.triggeredFmp4Usage=!1,"none"===G.tech_.preload()?(G.loadOnPlay_=function(){G.loadOnPlay_=null,G.masterPlaylistLoader_.load()},G.tech_.one("play",G.loadOnPlay_)):G.masterPlaylistLoader_.load(),G.timeToLoadedData__=-1,G.mainAppendsToLoadedData__=-1,G.audioAppendsToLoadedData__=-1;var eb="none"===G.tech_.preload()?"play":"loadstart";return G.tech_.one(eb,function(){var R=Date.now();G.tech_.one("loadeddata",function(){G.timeToLoadedData__=Date.now()-R,G.mainAppendsToLoadedData__=G.mainSegmentLoader_.mediaAppends,G.audioAppendsToLoadedData__=G.audioSegmentLoader_.mediaAppends})}),G}(0,eS.Z)(MasterPlaylistController,R);var W=MasterPlaylistController.prototype;return W.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},W.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},W.appendsToLoadedData_=function(){var R=this.mainAppendsToLoadedData_(),W=this.audioAppendsToLoadedData_();return -1===R||-1===W?-1:R+W},W.timeToLoadedData_=function(){return this.timeToLoadedData__},W.checkABR_=function(R){void 0===R&&(R="abr");var W=this.selectPlaylist();W&&this.shouldSwitchToMedia_(W)&&this.switchMedia_(W,R)},W.switchMedia_=function(R,W,G){var J=this.media(),et=J&&(J.id||J.uri),er=R.id||R.uri;et&&et!==er&&(this.logger_("switch media "+et+" -> "+er+" from "+W),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+W})),this.masterPlaylistLoader_.media(R,G)},W.startABRTimer_=function(){var R=this;this.stopABRTimer_(),this.abrTimer_=em().setInterval(function(){return R.checkABR_()},250)},W.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(em().clearInterval(this.abrTimer_),this.abrTimer_=null)},W.getAudioTrackPlaylists_=function(){var R,W=this.master(),G=W&&W.playlists||[];if(!W||!W.mediaGroups||!W.mediaGroups.AUDIO)return G;var J=W.mediaGroups.AUDIO,et=Object.keys(J);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)R=this.mediaTypes_.AUDIO.activeTrack();else{var er=J.main||et.length&&J[et[0]];for(var en in er)if(er[en].default){R={label:en};break}}if(!R)return G;var ei=[];for(var eo in J)if(J[eo][R.label]){var es=J[eo][R.label];if(es.playlists&&es.playlists.length)ei.push.apply(ei,es.playlists);else if(es.uri)ei.push(es);else if(W.playlists.length)for(var ec=0;ec<W.playlists.length;ec++){var el=W.playlists[ec];el.attributes&&el.attributes.AUDIO&&el.attributes.AUDIO===eo&&ei.push(el)}}return ei.length?ei:G},W.setupMasterPlaylistLoaderListeners_=function(){var R=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var W=R.masterPlaylistLoader_.media(),G=1500*W.targetDuration;isLowestEnabledRendition(R.masterPlaylistLoader_.master,R.masterPlaylistLoader_.media())?R.requestOptions_.timeout=0:R.requestOptions_.timeout=G,W.endList&&"none"!==R.tech_.preload()&&(R.mainSegmentLoader_.playlist(W,R.requestOptions_),R.mainSegmentLoader_.load()),setupMediaGroups({sourceType:R.sourceType_,segmentLoaders:{AUDIO:R.audioSegmentLoader_,SUBTITLES:R.subtitleSegmentLoader_,main:R.mainSegmentLoader_},tech:R.tech_,requestOptions:R.requestOptions_,masterPlaylistLoader:R.masterPlaylistLoader_,vhs:R.vhs_,master:R.master(),mediaTypes:R.mediaTypes_,blacklistCurrentPlaylist:R.blacklistCurrentPlaylist.bind(R)}),R.triggerPresenceUsage_(R.master(),W),R.setupFirstPlay(),!R.mediaTypes_.AUDIO.activePlaylistLoader||R.mediaTypes_.AUDIO.activePlaylistLoader.media()?R.trigger("selectedinitialmedia"):R.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){R.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){R.loadOnPlay_&&R.tech_.off("play",R.loadOnPlay_);var W,G=R.masterPlaylistLoader_.media();if(!G){if(R.excludeUnsupportedVariants_(),R.enableLowInitialPlaylist&&(W=R.selectInitialPlaylist()),W||(W=R.selectPlaylist()),!W||!R.shouldSwitchToMedia_(W)||(R.initialMedia_=W,R.switchMedia_(R.initialMedia_,"initial"),!("vhs-json"===R.sourceType_&&R.initialMedia_.segments)))return;G=R.initialMedia_}R.handleUpdatedMediaPlaylist(G)}),this.masterPlaylistLoader_.on("error",function(){R.blacklistCurrentPlaylist(R.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){R.mainSegmentLoader_.abort(),R.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var W=R.masterPlaylistLoader_.media(),G=1500*W.targetDuration;isLowestEnabledRendition(R.masterPlaylistLoader_.master,R.masterPlaylistLoader_.media())?R.requestOptions_.timeout=0:R.requestOptions_.timeout=G,R.masterPlaylistLoader_.load(),R.mainSegmentLoader_.playlist(W,R.requestOptions_),R.mainSegmentLoader_.load(),R.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var W=R.masterPlaylistLoader_.media();"playlist-unchanged"!==W.lastExcludeReason_&&R.stuckAtPlaylistEnd_(W)&&(R.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),R.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){R.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),R.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){R.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),R.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},W.handleUpdatedMediaPlaylist=function(R){this.useCueTags_&&this.updateAdCues_(R),this.mainSegmentLoader_.playlist(R,this.requestOptions_),this.updateDuration(!R.endList),!this.tech_.paused()&&(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},W.triggerPresenceUsage_=function(R,W){var G=R.mediaGroups||{},J=!0,et=Object.keys(G.AUDIO);for(var er in G.AUDIO)for(var en in G.AUDIO[er])G.AUDIO[er][en].uri||(J=!1);J&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(G.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),eh.Playlist.isAes(W)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),et.length&&Object.keys(G.AUDIO[et[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},W.shouldSwitchToMedia_=function(R){var W=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,G=this.tech_.currentTime(),J=this.bufferLowWaterLine(),et=this.bufferHighWaterLine();return shouldSwitchToMedia({buffered:this.tech_.buffered(),currentTime:G,currentPlaylist:W,nextPlaylist:R,bufferLowWaterLine:J,bufferHighWaterLine:et,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},W.setupSegmentLoaderListeners_=function(){var R=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){R.checkABR_("bandwidthupdate"),R.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",function(){R.experimentalBufferBasedABR&&R.mainSegmentLoader_.load()}),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",function(){R.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){R.blacklistCurrentPlaylist(R.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){R.error=R.mainSegmentLoader_.error_,R.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){R.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){R.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),R.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){R.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){R.error=R.audioSegmentLoader_.error_,R.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){R.logger_("main segment loader ended"),R.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(W){R.experimentalBufferBasedABR||(R.delegateLoaders_("all",["abort"]),R.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});var updateCodecs=function(){if(!R.sourceUpdater_.hasCreatedSourceBuffers())return R.tryToCreateSourceBuffers_();var W=R.getCodecsOrExclude_();W&&R.sourceUpdater_.addOrChangeSourceBuffers(W)};this.mainSegmentLoader_.on("trackinfo",updateCodecs),this.audioSegmentLoader_.on("trackinfo",updateCodecs),this.mainSegmentLoader_.on("fmp4",function(){R.triggeredFmp4Usage||(R.tech_.trigger({type:"usage",name:"vhs-fmp4"}),R.tech_.trigger({type:"usage",name:"hls-fmp4"}),R.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){R.triggeredFmp4Usage||(R.tech_.trigger({type:"usage",name:"vhs-fmp4"}),R.tech_.trigger({type:"usage",name:"hls-fmp4"}),R.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){R.logger_("audioSegmentLoader ended"),R.onEndOfStream()})},W.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},W.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},W.smoothQualityChange_=function(R){void 0===R&&(R=this.selectPlaylist()),this.fastQualityChange_(R)},W.fastQualityChange_=function(R){var W=this;if(void 0===R&&(R=this.selectPlaylist()),R===this.masterPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(R,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){videojs.browser.IE_VERSION||videojs.browser.IS_EDGE?W.tech_.setCurrentTime(W.tech_.currentTime()+.04):W.tech_.setCurrentTime(W.tech_.currentTime())})},W.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var R=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<R.start(0))return this.tech_.setCurrentTime(R.end(R.length-1))}},W.setupFirstPlay=function(){var R=this,W=this.masterPlaylistLoader_.media();if(!W||this.tech_.paused()||this.hasPlayed_)return!1;if(!W.endList){var G=this.seekable();if(!G.length)return!1;if(videojs.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){R.trigger("firstplay"),R.tech_.setCurrentTime(G.end(0)),R.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(G.end(0))}return this.hasPlayed_=!0,this.load(),!0},W.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var R=this.tech_.play();void 0!==R&&"function"==typeof R.then&&R.then(null,function(R){})}this.trigger("sourceopen")},W.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var R=this.inbandTextTracks_.metadataTrack_.cues;if(R&&R.length){var W=this.duration();R[R.length-1].endTime=isNaN(W)||Math.abs(W)===1/0?Number.MAX_VALUE:W}}},W.handleDurationChange_=function(){this.tech_.trigger("durationchange")},W.onEndOfStream=function(){var R=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var W=this.mainSegmentLoader_.getCurrentMediaInfo_();R=!W||W.hasVideo?R&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}R&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},W.stuckAtPlaylistEnd_=function(R){if(!this.seekable().length)return!1;var W=this.syncController_.getExpiredTime(R,this.duration());if(null===W)return!1;var G=eh.Playlist.playlistEnd(R,W),J=this.tech_.currentTime(),et=this.tech_.buffered();if(!et.length)return G-J<=nJ;var er=et.end(et.length-1);return er-J<=nJ&&G-er<=nJ},W.blacklistCurrentPlaylist=function(R,W){void 0===R&&(R={});var G,J=R.playlist||this.masterPlaylistLoader_.media();if(W=W||R.blacklistDuration||this.blacklistDuration,!J){this.error=R,"open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}J.playlistErrors_++;var et=this.masterPlaylistLoader_.master.playlists,er=et.filter(isEnabled),en=1===er.length&&er[0]===J;if(1===et.length&&W!==1/0)return videojs.log.warn("Problem encountered with playlist "+J.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(en);if(en){var ei=!1;et.forEach(function(R){if(R!==J){var W=R.excludeUntil;void 0!==W&&W!==1/0&&(ei=!0,delete R.excludeUntil)}}),ei&&(videojs.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}G=J.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*W,J.excludeUntil=G,R.reason&&(J.lastExcludeReason_=R.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var eo=this.selectPlaylist();if(!eo){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}var es=R.internal?this.logger_:videojs.log.warn,ec=R.message?" "+R.message:"";es((R.internal?"Internal problem":"Problem")+" encountered with playlist "+J.id+"."+ec+" Switching to playlist "+eo.id+"."),eo.attributes.AUDIO!==J.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),eo.attributes.SUBTITLES!==J.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var el=eo.targetDuration/2*1e3||5e3,eu="number"==typeof eo.lastRequest&&Date.now()-eo.lastRequest<=el;return this.switchMedia_(eo,"exclude",en||eu)},W.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},W.delegateLoaders_=function(R,W){var G=this,J=[],et="all"===R;(et||"main"===R)&&J.push(this.masterPlaylistLoader_);var er=[];(et||"audio"===R)&&er.push("AUDIO"),(et||"subtitle"===R)&&(er.push("CLOSED-CAPTIONS"),er.push("SUBTITLES")),er.forEach(function(R){var W=G.mediaTypes_[R]&&G.mediaTypes_[R].activePlaylistLoader;W&&J.push(W)}),["main","audio","subtitle"].forEach(function(W){var et=G[W+"SegmentLoader_"];et&&(R===W||"all"===R)&&J.push(et)}),J.forEach(function(R){return W.forEach(function(W){"function"==typeof R[W]&&R[W]()})})},W.setCurrentTime=function(R){var W=findRange(this.tech_.buffered(),R);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?W&&W.length?R:void(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load()):0},W.duration=function(){if(!this.masterPlaylistLoader_)return 0;var R=this.masterPlaylistLoader_.media();return R?R.endList?this.mediaSource?this.mediaSource.duration:eh.Playlist.duration(R):1/0:0},W.seekable=function(){return this.seekable_},W.onSyncInfoUpdate_=function(){if(!!this.masterPlaylistLoader_){var R,W,G,J=this.masterPlaylistLoader_.media();if(J){var et=this.syncController_.getExpiredTime(J,this.duration());if(null!==et){var er=this.masterPlaylistLoader_.master,en=eh.Playlist.seekable(J,et,eh.Playlist.liveEdgeDelay(er,J));0!==en.length&&(!this.mediaTypes_.AUDIO.activePlaylistLoader||(J=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null!==(et=this.syncController_.getExpiredTime(J,this.duration()))&&0!==(R=eh.Playlist.seekable(J,et,eh.Playlist.liveEdgeDelay(er,J))).length))&&(this.seekable_&&this.seekable_.length&&(W=this.seekable_.end(0),G=this.seekable_.start(0)),R?R.start(0)>en.end(0)||en.start(0)>R.end(0)?this.seekable_=en:this.seekable_=videojs.createTimeRanges([[R.start(0)>en.start(0)?R.start(0):en.start(0),R.end(0)<en.end(0)?R.end(0):en.end(0)]]):this.seekable_=en,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===W&&this.seekable_.start(0)===G||(this.logger_("seekable updated ["+printableRange(this.seekable_)+"]"),this.tech_.trigger("seekablechanged")))}}}},W.updateDuration=function(R){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState){this.updateDuration_=this.updateDuration.bind(this,R),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(R){var W=this.seekable();if(!W.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<W.end(W.length-1))&&this.sourceUpdater_.setDuration(W.end(W.length-1));return}var G=this.tech_.buffered(),J=eh.Playlist.duration(this.masterPlaylistLoader_.media());G.length>0&&(J=Math.max(J,G.end(G.length-1))),this.mediaSource.duration!==J&&this.sourceUpdater_.setDuration(J)},W.dispose=function(){var R=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(W){var G=R.mediaTypes_[W].groups;for(var J in G)G[J].forEach(function(R){R.playlistLoader&&R.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},W.master=function(){return this.masterPlaylistLoader_.master},W.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},W.areMediaTypesKnown_=function(){var R=!!this.mediaTypes_.AUDIO.activePlaylistLoader,W=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),G=!R||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!!W&&!!G},W.getCodecsOrExclude_=function(){var R,W=this,G={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},J=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();G.video=G.main;var et=codecsForPlaylist(this.master(),J),er={},en=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(G.main.hasVideo&&(er.video=et.video||G.main.videoCodec||"avc1.4d400d"),G.main.isMuxed&&(er.video+=","+(et.audio||G.main.audioCodec||eH)),(G.main.hasAudio&&!G.main.isMuxed||G.audio.hasAudio||en)&&(er.audio=et.audio||G.main.audioCodec||G.audio.audioCodec||eH,G.audio.isFmp4=G.main.hasAudio&&!G.main.isMuxed?G.main.isFmp4:G.audio.isFmp4),!er.audio&&!er.video){this.blacklistCurrentPlaylist({playlist:J,message:"Could not determine codecs for playlist.",blacklistDuration:1/0});return}var ei={};if(["video","audio"].forEach(function(W){var J,et;if(er.hasOwnProperty(W)&&(J=G[W].isFmp4,et=er[W],J?!browserSupportsCodec(et):!muxerSupportsCodec(et))){var en=G[W].isFmp4?"browser":"muxer";ei[en]=ei[en]||[],ei[en].push(er[W]),"audio"===W&&(R=en)}}),en&&R&&J.attributes.AUDIO){var eo=J.attributes.AUDIO;this.master().playlists.forEach(function(R){(R.attributes&&R.attributes.AUDIO)===eo&&R!==J&&(R.excludeUntil=1/0)}),this.logger_("excluding audio group "+eo+" as "+R+' does not support codec(s): "'+er.audio+'"')}if(Object.keys(ei).length){var es=Object.keys(ei).reduce(function(R,W){return R&&(R+=", "),R+=W+' does not support codec(s): "'+ei[W].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:J,internal:!0,message:es,blacklistDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var ec=[];if(["video","audio"].forEach(function(R){var G=(parseCodecs(W.sourceUpdater_.codecs[R]||"")[0]||{}).type,J=(parseCodecs(er[R]||"")[0]||{}).type;G&&J&&G.toLowerCase()!==J.toLowerCase()&&ec.push('"'+W.sourceUpdater_.codecs[R]+'" -> "'+er[R]+'"')}),ec.length){this.blacklistCurrentPlaylist({playlist:J,message:"Codec switching not supported: "+ec.join(", ")+".",blacklistDuration:1/0,internal:!0});return}}return er},W.tryToCreateSourceBuffers_=function(){if(!("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())&&this.areMediaTypesKnown_()){var R=this.getCodecsOrExclude_();if(R){this.sourceUpdater_.createSourceBuffers(R);var W=[R.video,R.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(W)}}},W.excludeUnsupportedVariants_=function(){var R=this,W=this.master().playlists,G=[];Object.keys(W).forEach(function(J){var et=W[J];if(-1===G.indexOf(et.id)){G.push(et.id);var er=codecsForPlaylist(R.master,et),en=[];!er.audio||muxerSupportsCodec(er.audio)||browserSupportsCodec(er.audio)||en.push("audio codec "+er.audio),!er.video||muxerSupportsCodec(er.video)||browserSupportsCodec(er.video)||en.push("video codec "+er.video),er.text&&"stpp.ttml.im1t"===er.text&&en.push("text codec "+er.text),en.length&&(et.excludeUntil=1/0,R.logger_("excluding "+et.id+" for unsupported: "+en.join(", ")))}})},W.excludeIncompatibleVariants_=function(R){var W=this,G=[],J=this.master().playlists,et=unwrapCodecList(parseCodecs(R)),er=codecCount(et),en=et.video&&parseCodecs(et.video)[0]||null,ei=et.audio&&parseCodecs(et.audio)[0]||null;Object.keys(J).forEach(function(R){var et=J[R];if(-1===G.indexOf(et.id)&&et.excludeUntil!==1/0){G.push(et.id);var eo=[],es=codecsForPlaylist(W.masterPlaylistLoader_.master,et),ec=codecCount(es);if(es.audio||es.video){if(ec!==er&&eo.push('codec count "'+ec+'" !== "'+er+'"'),!W.sourceUpdater_.canChangeType()){var el=es.video&&parseCodecs(es.video)[0]||null,eu=es.audio&&parseCodecs(es.audio)[0]||null;el&&en&&el.type.toLowerCase()!==en.type.toLowerCase()&&eo.push('video codec "'+el.type+'" !== "'+en.type+'"'),eu&&ei&&eu.type.toLowerCase()!==ei.type.toLowerCase()&&eo.push('audio codec "'+eu.type+'" !== "'+ei.type+'"')}eo.length&&(et.excludeUntil=1/0,W.logger_("blacklisting "+et.id+": "+eo.join(" && ")))}}})},W.updateAdCues_=function(R){var W=0,G=this.seekable();G.length&&(W=G.start(0)),updateAdCues(R,this.cueTagsTrack_,W)},W.goalBufferLength=function(){var R=this.tech_.currentTime(),W=ir.GOAL_BUFFER_LENGTH,G=ir.GOAL_BUFFER_LENGTH_RATE,J=Math.max(W,ir.MAX_GOAL_BUFFER_LENGTH);return Math.min(W+R*G,J)},W.bufferLowWaterLine=function(){var R=this.tech_.currentTime(),W=ir.BUFFER_LOW_WATER_LINE,G=ir.BUFFER_LOW_WATER_LINE_RATE,J=Math.max(W,ir.MAX_BUFFER_LOW_WATER_LINE),et=Math.max(W,ir.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(W+R*G,this.experimentalBufferBasedABR?et:J)},W.bufferHighWaterLine=function(){return ir.BUFFER_HIGH_WATER_LINE},MasterPlaylistController}(videojs.EventTarget),Representation=function(R,W,G){var J,et,er=R.masterPlaylistController_,en=er[(R.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(er);if(W.attributes){var ei=W.attributes.RESOLUTION;this.width=ei&&ei.width,this.height=ei&&ei.height,this.bandwidth=W.attributes.BANDWIDTH,this.frameRate=W.attributes["FRAME-RATE"]}this.codecs=codecsForPlaylist(er.master(),W),this.playlist=W,this.id=G,this.enabled=(J=R.playlists,et=W.id,function(R){var W=J.master.playlists[et],G=isIncompatible(W),er=isEnabled(W);return void 0===R?er:(R?delete W.disabled:W.disabled=!0,R===er||G||(en(),R?J.trigger("renditionenabled"):J.trigger("renditiondisabled")),R)})},renditionSelectionMixin=function(R){R.representations=function(){var W=R.masterPlaylistController_.master(),G=isAudioOnly(W)?R.masterPlaylistController_.getAudioTrackPlaylists_():W.playlists;return G?G.filter(function(R){return!isIncompatible(R)}).map(function(W,G){return new Representation(R,W,W.id)}):[]}},ik=["seeking","seeked","pause","playing","error"],iE=function(){function PlaybackWatcher(R){var W=this;this.masterPlaylistController_=R.masterPlaylistController,this.tech_=R.tech,this.seekable=R.seekable,this.allowSeeksWithinUnsafeLiveWindow=R.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=R.liveRangeSafeTimeDelta,this.media=R.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=logger("PlaybackWatcher"),this.logger_("initialize");var playHandler=function(){return W.monitorCurrentTime_()},canPlayHandler=function(){return W.monitorCurrentTime_()},waitingHandler=function(){return W.techWaiting_()},cancelTimerHandler=function(){return W.cancelTimer_()},G=this.masterPlaylistController_,J=["main","subtitle","audio"],et={};J.forEach(function(R){et[R]={reset:function(){return W.resetSegmentDownloads_(R)},updateend:function(){return W.checkSegmentDownloads_(R)}},G[R+"SegmentLoader_"].on("appendsdone",et[R].updateend),G[R+"SegmentLoader_"].on("playlistupdate",et[R].reset),W.tech_.on(["seeked","seeking"],et[R].reset)});var setSeekingHandlers=function(R){["main","audio"].forEach(function(J){G[J+"SegmentLoader_"][R]("appended",W.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){W.fixesBadSeeks_()&&(W.consecutiveUpdates=0,W.lastRecordedTime=W.tech_.currentTime(),setSeekingHandlers("off"))},this.clearSeekingAppendCheck_=function(){return setSeekingHandlers("off")},this.watchForBadSeeking_=function(){W.clearSeekingAppendCheck_(),setSeekingHandlers("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",waitingHandler),this.tech_.on(ik,cancelTimerHandler),this.tech_.on("canplay",canPlayHandler),this.tech_.one("play",playHandler),this.dispose=function(){W.clearSeekingAppendCheck_(),W.logger_("dispose"),W.tech_.off("waiting",waitingHandler),W.tech_.off(ik,cancelTimerHandler),W.tech_.off("canplay",canPlayHandler),W.tech_.off("play",playHandler),W.tech_.off("seeking",W.watchForBadSeeking_),W.tech_.off("seeked",W.clearSeekingAppendCheck_),J.forEach(function(R){G[R+"SegmentLoader_"].off("appendsdone",et[R].updateend),G[R+"SegmentLoader_"].off("playlistupdate",et[R].reset),W.tech_.off(["seeked","seeking"],et[R].reset)}),W.checkCurrentTimeTimeout_&&em().clearTimeout(W.checkCurrentTimeTimeout_),W.cancelTimer_()}}var R=PlaybackWatcher.prototype;return R.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&em().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=em().setTimeout(this.monitorCurrentTime_.bind(this),250)},R.resetSegmentDownloads_=function(R){var W=this.masterPlaylistController_[R+"SegmentLoader_"];this[R+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+R+" loader"),this[R+"StalledDownloads_"]=0,this[R+"Buffered_"]=W.buffered_()},R.checkSegmentDownloads_=function(R){var W=this.masterPlaylistController_,G=W[R+"SegmentLoader_"],J=G.buffered_(),et=isRangeDifferent(this[R+"Buffered_"],J);if(this[R+"Buffered_"]=J,et){this.resetSegmentDownloads_(R);return}this[R+"StalledDownloads_"]++,this.logger_("found #"+this[R+"StalledDownloads_"]+" "+R+" appends that did not increase buffer (possible stalled download)",{playlistId:G.playlist_&&G.playlist_.id,buffered:timeRangesToArray(J)}),!(this[R+"StalledDownloads_"]<10)&&(this.logger_(R+" loader stalled download exclusion"),this.resetSegmentDownloads_(R),this.tech_.trigger({type:"usage",name:"vhs-"+R+"-download-exclusion"}),"subtitle"!==R&&W.blacklistCurrentPlaylist({message:"Excessive "+R+" segment downloading detected."},1/0))},R.checkCurrentTime_=function(){if(!(this.tech_.paused()||this.tech_.seeking())){var R=this.tech_.currentTime(),W=this.tech_.buffered();if(this.lastRecordedTime===R&&(!W.length||R+nJ>=W.end(W.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&R===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):R===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=R)}},R.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},R.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var R,W=this.seekable(),G=this.tech_.currentTime();if(this.afterSeekableWindow_(W,G,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(R=W.end(W.length-1)),this.beforeSeekableWindow_(W,G)){var J=W.start(0);R=J+(J===W.end(0)?0:nJ)}if(void 0!==R)return this.logger_("Trying to seek outside of seekable at time "+G+" with seekable range "+printableRange(W)+". Seeking to "+R+"."),this.tech_.setCurrentTime(R),!0;for(var et=this.masterPlaylistController_.sourceUpdater_,er=this.tech_.buffered(),en=et.audioBuffer?et.audioBuffered():null,ei=et.videoBuffer?et.videoBuffered():null,eo=this.media(),es=eo.partTargetDuration?eo.partTargetDuration:(eo.targetDuration-nQ)*2,ec=[en,ei],el=0;el<ec.length;el++)if(ec[el]&&timeAheadOf(ec[el],G)<es)return!1;var eu=findNextRange(er,G);return 0!==eu.length&&(R=eu.start(0)+nJ,this.logger_("Buffered region starts ("+eu.start(0)+") "+(" just beyond seek point ("+G)+"). Seeking to "+R+"."),this.tech_.setCurrentTime(R),!0)},R.waiting_=function(){if(!this.techWaiting_()){var R=this.tech_.currentTime(),W=findRange(this.tech_.buffered(),R);if(W.length&&R+3<=W.end(0)){this.cancelTimer_(),this.tech_.setCurrentTime(R),this.logger_("Stopped at "+R+" while inside a buffered region "+("["+W.start(0))+" -> "+W.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"});return}}},R.techWaiting_=function(){var R=this.seekable(),W=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(R,W)){var G=R.end(R.length-1);return this.logger_("Fell out of live window at time "+W+". Seeking to live point (seekable end) "+G),this.cancelTimer_(),this.tech_.setCurrentTime(G),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var J=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,et=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:J.audioBuffered(),videoBuffered:J.videoBuffered(),currentTime:W}))return this.cancelTimer_(),this.tech_.setCurrentTime(W),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var er=findNextRange(et,W);if(er.length>0){var en=er.start(0)-W;return this.logger_("Stopped at "+W+", setting timer for "+en+", seeking to "+er.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*en,W),!0}return!1},R.afterSeekableWindow_=function(R,W,G,J){if(void 0===J&&(J=!1),!R.length)return!1;var et=R.end(R.length-1)+nJ;return!G.endList&&J&&(et=R.end(R.length-1)+3*G.targetDuration),W>et},R.beforeSeekableWindow_=function(R,W){return!!(R.length&&R.start(0)>0&&W<R.start(0)-this.liveRangeSafeTimeDelta)},R.videoUnderflow_=function(R){var W,G=R.videoBuffered,J=R.audioBuffered,et=R.currentTime;if(G){if(G.length&&J.length){var er=findRange(G,et-3),en=findRange(G,et),ei=findRange(J,et);ei.length&&!en.length&&er.length&&(W={start:er.end(0),end:ei.end(0)})}else findNextRange(G,et).length||(W=this.gapFromVideoUnderflow_(G,et));return!!W&&(this.logger_("Encountered a gap in video from "+W.start+" to "+W.end+". Seeking to current time "+et),!0)}},R.skipTheGap_=function(R){var W=this.tech_.buffered(),G=this.tech_.currentTime(),J=findNextRange(W,G);this.cancelTimer_(),0!==J.length&&G===R&&(this.logger_("skipTheGap_:","currentTime:",G,"scheduled currentTime:",R,"nextRange start:",J.start(0)),this.tech_.setCurrentTime(J.start(0)+nQ),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},R.gapFromVideoUnderflow_=function(R,W){for(var G=findGaps(R),J=0;J<G.length;J++){var et=G.start(J),er=G.end(J);if(W-et<4&&W-et>2)return{start:et,end:er}}return null},PlaybackWatcher}(),ij={errorInterval:30,getSource:function(R){return R(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},initPlugin=function initPlugin(R,W){var G=0,J=0,et=videojs.mergeOptions(ij,W);R.ready(function(){R.trigger({type:"usage",name:"vhs-error-reload-initialized"}),R.trigger({type:"usage",name:"hls-error-reload-initialized"})});var loadedMetadataHandler=function(){J&&R.currentTime(J)},setSource=function(W){null!=W&&(J=R.duration()!==1/0&&R.currentTime()||0,R.one("loadedmetadata",loadedMetadataHandler),R.src(W),R.trigger({type:"usage",name:"vhs-error-reload"}),R.trigger({type:"usage",name:"hls-error-reload"}),R.play())},errorHandler=function(){if(Date.now()-G<1e3*et.errorInterval){R.trigger({type:"usage",name:"vhs-error-reload-canceled"}),R.trigger({type:"usage",name:"hls-error-reload-canceled"});return}if(!et.getSource||"function"!=typeof et.getSource){videojs.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return G=Date.now(),et.getSource.call(R,setSource)},cleanupEvents=function cleanupEvents(){R.off("loadedmetadata",loadedMetadataHandler),R.off("error",errorHandler),R.off("dispose",cleanupEvents)};R.on("error",errorHandler),R.on("dispose",cleanupEvents),R.reloadSourceOnError=function(W){cleanupEvents(),initPlugin(R,W)}},iA="2.16.2",iD={PlaylistLoader:n4,Playlist:n1,utils:n7,STANDARD_PLAYLIST_SELECTOR:lastBandwidthSelector,INITIAL_PLAYLIST_SELECTOR:function(){var R=this,W=this.playlists.master.playlists.filter(n1.isEnabled);return stableSort(W,function(R,W){return comparePlaylistBandwidth(R,W)}),W.filter(function(W){return!!codecsForPlaylist(R.playlists.master,W).video})[0]||null},lastBandwidthSelector:lastBandwidthSelector,movingAverageBandwidthSelector:function(R){var W=-1,G=-1;if(R<0||R>1)throw Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var J=this.useDevicePixelRatio&&em().devicePixelRatio||1;return W<0&&(W=this.systemBandwidth,G=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==G&&(W=R*this.systemBandwidth+(1-R)*W,G=this.systemBandwidth),simpleSelector(this.playlists.master,W,parseInt(safeGetComputedStyle(this.tech_.el(),"width"),10)*J,parseInt(safeGetComputedStyle(this.tech_.el(),"height"),10)*J,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:comparePlaylistBandwidth,comparePlaylistResolution:function(R,W){var G,J;return(R.attributes.RESOLUTION&&R.attributes.RESOLUTION.width&&(G=R.attributes.RESOLUTION.width),G=G||em().Number.MAX_VALUE,W.attributes.RESOLUTION&&W.attributes.RESOLUTION.width&&(J=W.attributes.RESOLUTION.width),G===(J=J||em().Number.MAX_VALUE)&&R.attributes.BANDWIDTH&&W.attributes.BANDWIDTH)?R.attributes.BANDWIDTH-W.attributes.BANDWIDTH:G-J},xhr:xhrFactory()};Object.keys(ir).forEach(function(R){Object.defineProperty(iD,R,{get:function(){return videojs.log.warn("using Vhs."+R+" is UNSAFE be sure you know what you are doing"),ir[R]},set:function(W){if(videojs.log.warn("using Vhs."+R+" is UNSAFE be sure you know what you are doing"),"number"!=typeof W||W<0){videojs.log.warn("value of Vhs."+R+" must be greater than or equal to 0");return}ir[R]=W}})});var iI="videojs-vhs",handleVhsMediaChange=function(R,W){for(var G=W.media(),J=-1,et=0;et<R.length;et++)if(R[et].id===G.id){J=et;break}R.selectedIndex_=J,R.trigger({selectedIndex:J,type:"change"})},handleVhsLoadedMetadata=function(R,W){W.representations().forEach(function(W){R.addQualityLevel(W)}),handleVhsMediaChange(R,W.playlists)};iD.canPlaySource=function(){return videojs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var emeKeySystems=function(R,W,G){if(!R)return R;var J={};W&&W.attributes&&W.attributes.CODECS&&(J=unwrapCodecList(parseCodecs(W.attributes.CODECS))),G&&G.attributes&&G.attributes.CODECS&&(J.audio=G.attributes.CODECS);var et=getMimeForCodec(J.video),er=getMimeForCodec(J.audio),en={};for(var ei in R)en[ei]={},er&&(en[ei].audioContentType=er),et&&(en[ei].videoContentType=et),W.contentProtection&&W.contentProtection[ei]&&W.contentProtection[ei].pssh&&(en[ei].pssh=W.contentProtection[ei].pssh),"string"==typeof R[ei]&&(en[ei].url=R[ei]);return videojs.mergeOptions(R,en)},waitForKeySessionCreation=function(R){var W,G,J=R.player,et=R.sourceKeySystems,er=R.audioMedia,en=R.mainPlaylists;if(!J.eme.initializeMediaKeys)return Promise.resolve();var ei=(W=er?en.concat([er]):en,G=Object.keys(et),W.reduce(function(R,W){if(!W.contentProtection)return R;var J=G.reduce(function(R,G){var J=W.contentProtection[G];return J&&J.pssh&&(R[G]={pssh:J.pssh}),R},{});return Object.keys(J).length&&R.push(J),R},[])),eo=[],es=[];return ei.forEach(function(R){es.push(new Promise(function(R,W){J.tech_.one("keysessioncreated",R)})),eo.push(new Promise(function(W,G){J.eme.initializeMediaKeys({keySystems:R},function(R){if(R){G(R);return}W()})}))}),Promise.race([Promise.all(eo),Promise.race(es)])},setupEmeOptions=function(R){var W=R.player,G=emeKeySystems(R.sourceKeySystems,R.media,R.audioMedia);return!!G&&(W.currentSource().keySystems=G,!G||!!W.eme||(videojs.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},getVhsLocalStorage=function(){if(!em().localStorage)return null;var R=em().localStorage.getItem(iI);if(!R)return null;try{return JSON.parse(R)}catch(R){return null}},updateVhsLocalStorage=function(R){if(!em().localStorage)return!1;var W=getVhsLocalStorage();W=W?videojs.mergeOptions(W,R):R;try{em().localStorage.setItem(iI,JSON.stringify(W))}catch(R){return!1}return W};iD.supportsNativeHls=function(){if(!ev()||!ev().createElement)return!1;var R=ev().createElement("video");return!!videojs.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(W){return/maybe|probably/i.test(R.canPlayType(W))})}(),iD.supportsNativeDash=!!(ev()&&ev().createElement&&videojs.getTech("Html5").isSupported())&&/maybe|probably/i.test(ev().createElement("video").canPlayType("application/dash+xml")),iD.supportsTypeNatively=function(R){return"hls"===R?iD.supportsNativeHls:"dash"===R&&iD.supportsNativeDash},iD.isSupported=function(){return videojs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var iM=function(R){function VhsHandler(W,G,J){var et;if(et=R.call(this,G,videojs.mergeOptions(J.hls,J.vhs))||this,J.hls&&Object.keys(J.hls).length&&videojs.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"==typeof J.initialBandwidth&&(et.options_.bandwidth=J.initialBandwidth),et.logger_=logger("VhsHandler"),G.options_&&G.options_.playerId){var er=videojs(G.options_.playerId);er.hasOwnProperty("hls")||Object.defineProperty(er,"hls",{get:function(){return videojs.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),G.trigger({type:"usage",name:"hls-player-access"}),(0,ew.Z)(et)},configurable:!0}),er.hasOwnProperty("vhs")||Object.defineProperty(er,"vhs",{get:function(){return videojs.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),G.trigger({type:"usage",name:"vhs-player-access"}),(0,ew.Z)(et)},configurable:!0}),er.hasOwnProperty("dash")||Object.defineProperty(er,"dash",{get:function(){return videojs.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),(0,ew.Z)(et)},configurable:!0}),et.player_=er}if(et.tech_=G,et.source_=W,et.stats={},et.ignoreNextSeekingEvent_=!1,et.setOptions_(),et.options_.overrideNative&&G.overrideNativeAudioTracks&&G.overrideNativeVideoTracks)G.overrideNativeAudioTracks(!0),G.overrideNativeVideoTracks(!0);else if(et.options_.overrideNative&&(G.featuresNativeVideoTracks||G.featuresNativeAudioTracks))throw Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return et.on(ev(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(R){var W=ev().fullscreenElement||ev().webkitFullscreenElement||ev().mozFullScreenElement||ev().msFullscreenElement;W&&W.contains(et.tech_.el())?et.masterPlaylistController_.fastQualityChange_():et.masterPlaylistController_.checkABR_()}),et.on(et.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),et.on(et.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),et.on(et.tech_,"play",et.play),et}(0,eS.Z)(VhsHandler,R);var W=VhsHandler.prototype;return W.setOptions_=function(){var R=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var W=getVhsLocalStorage();W&&W.bandwidth&&(this.options_.bandwidth=W.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),W&&W.throughput&&(this.options_.throughput=W.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=ir.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===ir.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(W){void 0!==R.source_[W]&&(R.options_[W]=R.source_[W])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},W.src=function(R,W){var G,J=this;if(R){this.setOptions_(),this.options_.src=0===(G=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(G.substring(G.indexOf(",")+1)):G,this.options_.tech=this.tech_,this.options_.externVhs=iD,this.options_.sourceType=simpleTypeFromSourceType(W),this.options_.seekTo=function(R){J.tech_.setCurrentTime(R)},this.options_.smoothQualityChange&&videojs.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new iC(this.options_);var et=videojs.mergeOptions({liveRangeSafeTimeDelta:nJ},this.options_,{seekable:function(){return J.seekable()},media:function(){return J.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new iE(et),this.masterPlaylistController_.on("error",function(){var R=videojs.players[J.tech_.options_.playerId],W=J.masterPlaylistController_.error;"object"!=typeof W||W.code?"string"==typeof W&&(W={message:W,code:3}):W.code=3,R.error(W)});var er=this.options_.experimentalBufferBasedABR?iD.movingAverageBandwidthSelector(.55):iD.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):er.bind(this),this.masterPlaylistController_.selectInitialPlaylist=iD.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(R){this.masterPlaylistController_.selectPlaylist=R.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(R){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=R,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var R=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,W=em().navigator.connection||em().navigator.mozConnection||em().navigator.webkitConnection;if(this.options_.useNetworkInformationApi&&W){var G=1e6*W.downlink;R=G>=1e7&&R>=1e7?Math.max(R,G):G}return R},set:function(R){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=R,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){return Math.floor(1/(1/(this.bandwidth||1)+(this.throughput>0?1/this.throughput:0)))},set:function(){videojs.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return J.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return J.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return J.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return J.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return J.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return J.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return J.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return J.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return J.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return J.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return J.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return J.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return J.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return timeRangesToArray(J.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return J.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return J.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return J.tech_.name_},enumerable:!0},duration:{get:function(){return J.tech_.duration()},enumerable:!0},master:{get:function(){return J.playlists.master},enumerable:!0},playerDimensions:{get:function(){return J.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return timeRangesToArray(J.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return J.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){J.options_.useBandwidthFromLocalStorage&&updateVhsLocalStorage({bandwidth:J.bandwidth,throughput:Math.round(J.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){renditionSelectionMixin(J)}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){J.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=em().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},W.createKeySessions_=function(){var R=this,W=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),waitForKeySessionCreation({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:W&&W.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){R.logger_("created EME key session"),R.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(W){R.logger_("error while creating EME key session",W),R.player_.error({message:"Failed to initialize media keys for EME",code:3})})},W.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},W.setupEme_=function(){var R=this,W=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,G=setupEmeOptions({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:W&&W.media()});if(this.player_.tech_.on("keystatuschange",function(W){if("output-restricted"===W.status){var G,J=R.masterPlaylistController_.master();if(J&&J.playlists){var et=[];J.playlists.forEach(function(R){R&&R.attributes&&R.attributes.RESOLUTION&&R.attributes.RESOLUTION.height>=720&&(!R.excludeUntil||R.excludeUntil<1/0)&&(R.excludeUntil=1/0,et.push(R))}),et.length&&((G=videojs.log).warn.apply(G,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(et)),R.masterPlaylistController_.fastQualityChange_())}}}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11===videojs.browser.IE_VERSION||!G){this.masterPlaylistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()},W.setupQualityLevels_=function(){var R=this,W=videojs.players[this.tech_.options_.playerId];W&&W.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=W.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){handleVhsLoadedMetadata(R.qualityLevels_,R)}),this.playlists.on("mediachange",function(){handleVhsMediaChange(R.qualityLevels_,R.playlists)}))},VhsHandler.version=function(){return{"@videojs/http-streaming":iA,"mux.js":"6.0.1","mpd-parser":"0.22.1","m3u8-parser":"4.8.0","aes-decrypter":"3.1.3"}},W.version=function(){return this.constructor.version()},W.canChangeType=function(){return ih.canChangeType()},W.play=function(){this.masterPlaylistController_.play()},W.setCurrentTime=function(R){this.masterPlaylistController_.setCurrentTime(R)},W.duration=function(){return this.masterPlaylistController_.duration()},W.seekable=function(){return this.masterPlaylistController_.seekable()},W.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&em().URL.revokeObjectURL&&(em().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),R.prototype.dispose.call(this)},W.convertToProgramTime=function(R,W){return getProgramTime({playlist:this.masterPlaylistController_.media(),time:R,callback:W})},W.seekToProgramTime=function(R,W,G,J){return void 0===G&&(G=!0),void 0===J&&(J=2),seekToProgramTime({programTime:R,playlist:this.masterPlaylistController_.media(),retryCount:J,pauseAfterSeek:G,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:W})},VhsHandler}(videojs.getComponent("Component")),iL={name:"videojs-http-streaming",VERSION:iA,canHandleSource:function(R,W){void 0===W&&(W={});var G=videojs.mergeOptions(videojs.options,W);return iL.canPlayType(R.type,G)},handleSource:function(R,W,G){void 0===G&&(G={});var J=videojs.mergeOptions(videojs.options,G);return W.vhs=new iM(R,W,J),videojs.hasOwnProperty("hls")||Object.defineProperty(W,"hls",{get:function(){return videojs.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),W.vhs},configurable:!0}),W.vhs.xhr=xhrFactory(),W.vhs.src(R.src,R.type),W.vhs},canPlayType:function(R,W){var G=simpleTypeFromSourceType(R);if(!G)return"";var J=iL.getOverrideNative(W);return!iD.supportsTypeNatively(G)||J?"maybe":""},getOverrideNative:function(R){void 0===R&&(R={});var W=R,G=W.vhs,J=W.hls,et=!(videojs.browser.IS_ANY_SAFARI||videojs.browser.IS_IOS),er=(void 0===G?{}:G).overrideNative,en=(void 0===J?{}:J).overrideNative;return void 0!==en&&en||(void 0===er?et:er)}};browserSupportsCodec("avc1.4d400d,mp4a.40.2")&&videojs.getTech("Html5").registerSourceHandler(iL,0),videojs.VhsHandler=iM,Object.defineProperty(videojs,"HlsHandler",{get:function(){return videojs.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),iM},configurable:!0}),videojs.VhsSourceHandler=iL,Object.defineProperty(videojs,"HlsSourceHandler",{get:function(){return videojs.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),iL},configurable:!0}),videojs.Vhs=iD,Object.defineProperty(videojs,"Hls",{get:function(){return videojs.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),iD},configurable:!0}),videojs.use||(videojs.registerComponent("Hls",iD),videojs.registerComponent("Vhs",iD)),videojs.options.vhs=videojs.options.vhs||{},videojs.options.hls=videojs.options.hls||{},videojs.getPlugin&&videojs.getPlugin("reloadSourceOnError")||(videojs.registerPlugin||videojs.plugin)("reloadSourceOnError",function(R){initPlugin(this,R)});var iR=videojs},13407:function(R,W,G){var J=G(58908),et=R.exports={WebVTT:G(63706),VTTCue:G(22230),VTTRegion:G(13710)};J.vttjs=et,J.WebVTT=et.WebVTT;var er=et.VTTCue,en=et.VTTRegion,ei=J.VTTCue,eo=J.VTTRegion;et.shim=function(){J.VTTCue=er,J.VTTRegion=en},et.restore=function(){J.VTTCue=ei,J.VTTRegion=eo},J.VTTCue||et.shim()},63706:function(R,W,G){var J=G(89144),et=Object.create||function(){function F(){}return function(R){if(1!=arguments.length)throw Error("Object.create shim only accepts one parameter.");return F.prototype=R,new F}}();function ParsingError(R,W){this.name="ParsingError",this.code=R.code,this.message=W||R.message}function parseTimeStamp(R){function computeSeconds(R,W,G,J){return(0|R)*3600+(0|W)*60+(0|G)+(0|J)/1e3}var W=R.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return W?W[3]?computeSeconds(W[1],W[2],W[3].replace(":",""),W[4]):W[1]>59?computeSeconds(W[1],W[2],0,W[4]):computeSeconds(0,W[1],W[2],W[4]):null}function Settings(){this.values=et(null)}function parseOptions(R,W,G,J){var et=J?R.split(J):[R];for(var er in et)if("string"==typeof et[er]){var en=et[er].split(G);2===en.length&&W(en[0].trim(),en[1].trim())}}ParsingError.prototype=et(Error.prototype),ParsingError.prototype.constructor=ParsingError,ParsingError.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Settings.prototype={set:function(R,W){this.get(R)||""===W||(this.values[R]=W)},get:function(R,W,G){return G?this.has(R)?this.values[R]:W[G]:this.has(R)?this.values[R]:W},has:function(R){return R in this.values},alt:function(R,W,G){for(var J=0;J<G.length;++J)if(W===G[J]){this.set(R,W);break}},integer:function(R,W){/^-?\d+$/.test(W)&&this.set(R,parseInt(W,10))},percent:function(R,W){return!!(W.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(W=parseFloat(W))>=0&&W<=100)&&(this.set(R,W),!0)}};var er=J.createElement&&J.createElement("textarea"),en={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},ei={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},eo={v:"title",lang:"lang"},es={rt:"ruby"};function parseContent(R,W){for(var G,J=R.document.createElement("div"),et=J,ec=[];null!==(G=function(){if(!W)return null;var R,G=W.match(/^([^<]*)(<[^>]*>?)?/);return R=G[1]?G[1]:G[2],W=W.substr(R.length),R}());){if("<"===G[0]){if("/"===G[1]){ec.length&&ec[ec.length-1]===G.substr(2).replace(">","")&&(ec.pop(),et=et.parentNode);continue}var el,eu,ed,ep,ef=parseTimeStamp(G.substr(1,G.length-2));if(ef){ep=R.document.createProcessingInstruction("timestamp",ef),et.appendChild(ep);continue}var eh=G.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!eh||!(ep=function(W,G){var J=en[W];if(!J)return null;var et=R.document.createElement(J),er=eo[W];return er&&G&&(et[er]=G.trim()),et}(eh[1],eh[3]))||(eu=et,es[(ed=ep).localName]&&es[ed.localName]!==eu.localName))continue;if(eh[2]){var eg=eh[2].split(".");eg.forEach(function(R){var W=/^bg_/.test(R),G=W?R.slice(3):R;if(ei.hasOwnProperty(G)){var J=W?"background-color":"color",et=ei[G];ep.style[J]=et}}),ep.className=eg.join(" ")}ec.push(eh[1]),et.appendChild(ep),et=ep;continue}et.appendChild(R.document.createTextNode((el=G,er.innerHTML=el,el=er.textContent,er.textContent="",el)))}return J}var ec=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function StyleBox(){}function CueStyleBox(R,W,G){StyleBox.call(this),this.cue=W,this.cueDiv=parseContent(R,W.text);var J={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===W.vertical?"horizontal-tb":"lr"===W.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(J,this.cueDiv),this.div=R.document.createElement("div"),J={direction:function(R){var W=[],G="";if(!R||!R.childNodes)return"ltr";function pushNodes(R,W){for(var G=W.childNodes.length-1;G>=0;G--)R.push(W.childNodes[G])}for(pushNodes(W,R);G=function nextTextNode(R){if(!R||!R.length)return null;var W=R.pop(),G=W.textContent||W.innerText;if(G){var J=G.match(/^.*(\n|\r)/);return J?(R.length=0,J[0]):G}return"ruby"===W.tagName?nextTextNode(R):W.childNodes?(pushNodes(R,W),nextTextNode(R)):void 0}(W);)for(var J=0;J<G.length;J++)if(function(R){for(var W=0;W<ec.length;W++){var G=ec[W];if(R>=G[0]&&R<=G[1])return!0}return!1}(G.charCodeAt(J)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===W.vertical?"horizontal-tb":"lr"===W.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===W.align?"center":W.align,font:G.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(J),this.div.appendChild(this.cueDiv);var et=0;switch(W.positionAlign){case"start":case"line-left":et=W.position;break;case"center":et=W.position-W.size/2;break;case"end":case"line-right":et=W.position-W.size}""===W.vertical?this.applyStyles({left:this.formatStyle(et,"%"),width:this.formatStyle(W.size,"%")}):this.applyStyles({top:this.formatStyle(et,"%"),height:this.formatStyle(W.size,"%")}),this.move=function(R){this.applyStyles({top:this.formatStyle(R.top,"px"),bottom:this.formatStyle(R.bottom,"px"),left:this.formatStyle(R.left,"px"),right:this.formatStyle(R.right,"px"),height:this.formatStyle(R.height,"px"),width:this.formatStyle(R.width,"px")})}}function BoxPosition(R){var W,G,J,et;if(R.div){G=R.div.offsetHeight,J=R.div.offsetWidth,et=R.div.offsetTop;var er=(er=R.div.childNodes)&&(er=er[0])&&er.getClientRects&&er.getClientRects();R=R.div.getBoundingClientRect(),W=er?Math.max(er[0]&&er[0].height||0,R.height/er.length):0}this.left=R.left,this.right=R.right,this.top=R.top||et,this.height=R.height||G,this.bottom=R.bottom||et+(R.height||G),this.width=R.width||J,this.lineHeight=void 0!==W?W:R.lineHeight}function WebVTT(){}StyleBox.prototype.applyStyles=function(R,W){for(var G in W=W||this.div,R)R.hasOwnProperty(G)&&(W.style[G]=R[G])},StyleBox.prototype.formatStyle=function(R,W){return 0===R?0:R+W},CueStyleBox.prototype=et(StyleBox.prototype),CueStyleBox.prototype.constructor=CueStyleBox,BoxPosition.prototype.move=function(R,W){switch(W=void 0!==W?W:this.lineHeight,R){case"+x":this.left+=W,this.right+=W;break;case"-x":this.left-=W,this.right-=W;break;case"+y":this.top+=W,this.bottom+=W;break;case"-y":this.top-=W,this.bottom-=W}},BoxPosition.prototype.overlaps=function(R){return this.left<R.right&&this.right>R.left&&this.top<R.bottom&&this.bottom>R.top},BoxPosition.prototype.overlapsAny=function(R){for(var W=0;W<R.length;W++)if(this.overlaps(R[W]))return!0;return!1},BoxPosition.prototype.within=function(R){return this.top>=R.top&&this.bottom<=R.bottom&&this.left>=R.left&&this.right<=R.right},BoxPosition.prototype.overlapsOppositeAxis=function(R,W){switch(W){case"+x":return this.left<R.left;case"-x":return this.right>R.right;case"+y":return this.top<R.top;case"-y":return this.bottom>R.bottom}},BoxPosition.prototype.intersectPercentage=function(R){return Math.max(0,Math.min(this.right,R.right)-Math.max(this.left,R.left))*Math.max(0,Math.min(this.bottom,R.bottom)-Math.max(this.top,R.top))/(this.height*this.width)},BoxPosition.prototype.toCSSCompatValues=function(R){return{top:this.top-R.top,bottom:R.bottom-this.bottom,left:this.left-R.left,right:R.right-this.right,height:this.height,width:this.width}},BoxPosition.getSimpleBoxPosition=function(R){var W=R.div?R.div.offsetHeight:R.tagName?R.offsetHeight:0,G=R.div?R.div.offsetWidth:R.tagName?R.offsetWidth:0,J=R.div?R.div.offsetTop:R.tagName?R.offsetTop:0;return{left:(R=R.div?R.div.getBoundingClientRect():R.tagName?R.getBoundingClientRect():R).left,right:R.right,top:R.top||J,height:R.height||W,bottom:R.bottom||J+(R.height||W),width:R.width||G}},WebVTT.StringDecoder=function(){return{decode:function(R){if(!R)return"";if("string"!=typeof R)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(R))}}},WebVTT.convertCueToDOMTree=function(R,W){return R&&W?parseContent(R,W):null},WebVTT.processCues=function(R,W,G){if(!R||!W||!G)return null;for(;G.firstChild;)G.removeChild(G.firstChild);var J=R.document.createElement("div");if(J.style.position="absolute",J.style.left="0",J.style.right="0",J.style.top="0",J.style.bottom="0",J.style.margin="1.5%",G.appendChild(J),!function(R){for(var W=0;W<R.length;W++)if(R[W].hasBeenReset||!R[W].displayState)return!0;return!1}(W)){for(var et=0;et<W.length;et++)J.appendChild(W[et].displayState);return}var er=[],en=BoxPosition.getSimpleBoxPosition(J),ei={font:Math.round(5*en.height)/100+"px sans-serif"};!function(){for(var G,et,eo=0;eo<W.length;eo++)et=W[eo],G=new CueStyleBox(R,et,ei),J.appendChild(G.div),function(R,W,G,J){var et=new BoxPosition(W),er=W.cue,en=function(R){if("number"==typeof R.line&&(R.snapToLines||R.line>=0&&R.line<=100))return R.line;if(!R.track||!R.track.textTrackList||!R.track.textTrackList.mediaElement)return -1;for(var W=R.track,G=W.textTrackList,J=0,et=0;et<G.length&&G[et]!==W;et++)"showing"===G[et].mode&&J++;return -1*++J}(er),ei=[];if(er.snapToLines){switch(er.vertical){case"":ei=["+y","-y"],eo="height";break;case"rl":ei=["+x","-x"],eo="width";break;case"lr":ei=["-x","+x"],eo="width"}var eo,es=et.lineHeight,ec=es*Math.round(en),el=G[eo]+es,eu=ei[0];Math.abs(ec)>el&&(ec=(ec<0?-1:1)*(Math.ceil(el/es)*es)),en<0&&(ec+=""===er.vertical?G.height:G.width,ei=ei.reverse()),et.move(eu,ec)}else{var ed=et.lineHeight/G.height*100;switch(er.lineAlign){case"center":en-=ed/2;break;case"end":en-=ed}switch(er.vertical){case"":W.applyStyles({top:W.formatStyle(en,"%")});break;case"rl":W.applyStyles({left:W.formatStyle(en,"%")});break;case"lr":W.applyStyles({right:W.formatStyle(en,"%")})}ei=["+y","-x","+x","-y"],et=new BoxPosition(W)}var ep=function(R,W){for(var et,er=new BoxPosition(R),en=1,ei=0;ei<W.length;ei++){for(;R.overlapsOppositeAxis(G,W[ei])||R.within(G)&&R.overlapsAny(J);)R.move(W[ei]);if(R.within(G))return R;var eo=R.intersectPercentage(G);en>eo&&(et=new BoxPosition(R),en=eo),R=new BoxPosition(er)}return et||er}(et,ei);W.move(ep.toCSSCompatValues(G))}(0,G,en,er),et.displayState=G.div,er.push(BoxPosition.getSimpleBoxPosition(G))}()},WebVTT.Parser=function(R,W,G){G||(G=W,W={}),W||(W={}),this.window=R,this.vttjs=W,this.state="INITIAL",this.buffer="",this.decoder=G||new TextDecoder("utf8"),this.regionList=[]},WebVTT.Parser.prototype={reportOrThrowError:function(R){if(R instanceof ParsingError)this.onparsingerror&&this.onparsingerror(R);else throw R},parse:function(R){var W=this;function collectNextLine(){for(var R=W.buffer,G=0;G<R.length&&"\r"!==R[G]&&"\n"!==R[G];)++G;var J=R.substr(0,G);return"\r"===R[G]&&++G,"\n"===R[G]&&++G,W.buffer=R.substr(G),J}R&&(W.buffer+=W.decoder.decode(R,{stream:!0}));try{if("INITIAL"===W.state){if(!/\r\n|\n/.test(W.buffer))return this;var G,J,et=(J=collectNextLine()).match(/^WEBVTT([ \t].*)?$/);if(!et||!et[0])throw new ParsingError(ParsingError.Errors.BadSignature);W.state="HEADER"}for(var er=!1;W.buffer&&/\r\n|\n/.test(W.buffer);)switch(er?er=!1:J=collectNextLine(),W.state){case"HEADER":/:/.test(J)?(G=J).match(/X-TIMESTAMP-MAP/)?parseOptions(G,function(R,G){if("X-TIMESTAMP-MAP"===R){var J;J=new Settings,parseOptions(G,function(R,W){switch(R){case"MPEGT":J.integer(R+"S",W);break;case"LOCA":J.set(R+"L",parseTimeStamp(W))}},/[^\d]:/,/,/),W.ontimestampmap&&W.ontimestampmap({MPEGTS:J.get("MPEGTS"),LOCAL:J.get("LOCAL")})}},/=/):parseOptions(G,function(R,G){"Region"===R&&function(R){var G=new Settings;if(parseOptions(R,function(R,W){switch(R){case"id":G.set(R,W);break;case"width":G.percent(R,W);break;case"lines":G.integer(R,W);break;case"regionanchor":case"viewportanchor":var J=W.split(",");if(2!==J.length)break;var et=new Settings;if(et.percent("x",J[0]),et.percent("y",J[1]),!et.has("x")||!et.has("y"))break;G.set(R+"X",et.get("x")),G.set(R+"Y",et.get("y"));break;case"scroll":G.alt(R,W,["up"])}},/=/,/\s/),G.has("id")){var J=new(W.vttjs.VTTRegion||W.window.VTTRegion);J.width=G.get("width",100),J.lines=G.get("lines",3),J.regionAnchorX=G.get("regionanchorX",0),J.regionAnchorY=G.get("regionanchorY",100),J.viewportAnchorX=G.get("viewportanchorX",0),J.viewportAnchorY=G.get("viewportanchorY",100),J.scroll=G.get("scroll",""),W.onregion&&W.onregion(J),W.regionList.push({id:G.get("id"),region:J})}}(G)},/:/):J||(W.state="ID");continue;case"NOTE":J||(W.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(J)){W.state="NOTE";break}if(!J)continue;W.cue=new(W.vttjs.VTTCue||W.window.VTTCue)(0,0,"");try{W.cue.align="center"}catch(R){W.cue.align="middle"}if(W.state="CUE",-1===J.indexOf("-->")){W.cue.id=J;continue}case"CUE":try{!function(R,W,G){var J=R;function consumeTimeStamp(){var W=parseTimeStamp(R);if(null===W)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+J);return R=R.replace(/^[^\sa-zA-Z-]+/,""),W}function skipWhitespace(){R=R.replace(/^\s+/,"")}if(skipWhitespace(),W.startTime=consumeTimeStamp(),skipWhitespace(),"-->"!==R.substr(0,3))throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+J);R=R.substr(3),skipWhitespace(),W.endTime=consumeTimeStamp(),skipWhitespace(),function(R,W){var J=new Settings;parseOptions(R,function(R,W){switch(R){case"region":for(var et=G.length-1;et>=0;et--)if(G[et].id===W){J.set(R,G[et].region);break}break;case"vertical":J.alt(R,W,["rl","lr"]);break;case"line":var er=W.split(","),en=er[0];J.integer(R,en),J.percent(R,en)&&J.set("snapToLines",!1),J.alt(R,en,["auto"]),2===er.length&&J.alt("lineAlign",er[1],["start","center","end"]);break;case"position":er=W.split(","),J.percent(R,er[0]),2===er.length&&J.alt("positionAlign",er[1],["start","center","end"]);break;case"size":J.percent(R,W);break;case"align":J.alt(R,W,["start","center","end","left","right"])}},/:/,/\s/),W.region=J.get("region",null),W.vertical=J.get("vertical","");try{W.line=J.get("line","auto")}catch(R){}W.lineAlign=J.get("lineAlign","start"),W.snapToLines=J.get("snapToLines",!0),W.size=J.get("size",100);try{W.align=J.get("align","center")}catch(R){W.align=J.get("align","middle")}try{W.position=J.get("position","auto")}catch(R){W.position=J.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},W.align)}W.positionAlign=J.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},W.align)}(R,W)}(J,W.cue,W.regionList)}catch(R){W.reportOrThrowError(R),W.cue=null,W.state="BADCUE";continue}W.state="CUETEXT";continue;case"CUETEXT":var en=-1!==J.indexOf("-->");if(!J||en&&(er=!0)){W.oncue&&W.oncue(W.cue),W.cue=null,W.state="ID";continue}W.cue.text&&(W.cue.text+="\n"),W.cue.text+=J.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":J||(W.state="ID");continue}}catch(R){W.reportOrThrowError(R),"CUETEXT"===W.state&&W.cue&&W.oncue&&W.oncue(W.cue),W.cue=null,W.state="INITIAL"===W.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new ParsingError(ParsingError.Errors.BadSignature)}catch(R){this.reportOrThrowError(R)}return this.onflush&&this.onflush(),this}},R.exports=WebVTT},22230:function(R){var W={"":1,lr:1,rl:1},G={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function findAlignSetting(R){return"string"==typeof R&&!!G[R.toLowerCase()]&&R.toLowerCase()}function VTTCue(R,G,J){this.hasBeenReset=!1;var et="",er=!1,en=R,ei=G,eo=J,es=null,ec="",el=!0,eu="auto",ed="start",ep="auto",ef="auto",eh=100,eg="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return et},set:function(R){et=""+R}},pauseOnExit:{enumerable:!0,get:function(){return er},set:function(R){er=!!R}},startTime:{enumerable:!0,get:function(){return en},set:function(R){if("number"!=typeof R)throw TypeError("Start time must be set to a number.");en=R,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return ei},set:function(R){if("number"!=typeof R)throw TypeError("End time must be set to a number.");ei=R,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return eo},set:function(R){eo=""+R,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return es},set:function(R){es=R,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return ec},set:function(R){var G="string"==typeof R&&!!W[R.toLowerCase()]&&R.toLowerCase();if(!1===G)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");ec=G,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return el},set:function(R){el=!!R,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return eu},set:function(R){if("number"!=typeof R&&"auto"!==R)throw SyntaxError("Line: an invalid number or illegal string was specified.");eu=R,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return ed},set:function(R){var W=findAlignSetting(R);W?(ed=W,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return ep},set:function(R){if(R<0||R>100)throw Error("Position must be between 0 and 100.");ep=R,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return ef},set:function(R){var W=findAlignSetting(R);W?(ef=W,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return eh},set:function(R){if(R<0||R>100)throw Error("Size must be between 0 and 100.");eh=R,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return eg},set:function(R){var W=findAlignSetting(R);if(!W)throw SyntaxError("align: an invalid or illegal alignment string was specified.");eg=W,this.hasBeenReset=!0}}}),this.displayState=void 0}VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},R.exports=VTTCue},13710:function(R){var W={"":!0,up:!0};function isValidPercentValue(R){return"number"==typeof R&&R>=0&&R<=100}R.exports=function(){var R=100,G=3,J=0,et=100,er=0,en=100,ei="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return R},set:function(W){if(!isValidPercentValue(W))throw Error("Width must be between 0 and 100.");R=W}},lines:{enumerable:!0,get:function(){return G},set:function(R){if("number"!=typeof R)throw TypeError("Lines must be set to a number.");G=R}},regionAnchorY:{enumerable:!0,get:function(){return et},set:function(R){if(!isValidPercentValue(R))throw Error("RegionAnchorX must be between 0 and 100.");et=R}},regionAnchorX:{enumerable:!0,get:function(){return J},set:function(R){if(!isValidPercentValue(R))throw Error("RegionAnchorY must be between 0 and 100.");J=R}},viewportAnchorY:{enumerable:!0,get:function(){return en},set:function(R){if(!isValidPercentValue(R))throw Error("ViewportAnchorY must be between 0 and 100.");en=R}},viewportAnchorX:{enumerable:!0,get:function(){return er},set:function(R){if(!isValidPercentValue(R))throw Error("ViewportAnchorX must be between 0 and 100.");er=R}},scroll:{enumerable:!0,get:function(){return ei},set:function(R){var G="string"==typeof R&&!!W[R.toLowerCase()]&&R.toLowerCase();!1===G?console.warn("Scroll: an invalid or illegal string was specified."):ei=G}}})}},25893:function(){},10434:function(R){function _extends(){return R.exports=_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R},R.exports.__esModule=!0,R.exports.default=R.exports,_extends.apply(this,arguments)}R.exports=_extends,R.exports.__esModule=!0,R.exports.default=R.exports},64836:function(R){R.exports=function(R){return R&&R.__esModule?R:{default:R}},R.exports.__esModule=!0,R.exports.default=R.exports},97326:function(R,W,G){"use strict";function _assertThisInitialized(R){if(void 0===R)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return R}G.d(W,{Z:function(){return _assertThisInitialized}})},5647:function(R,W,G){"use strict";G.d(W,{Z:function(){return _construct}});var J=G(89611),et=G(78814);function _construct(R,W,G){return(_construct=(0,et.Z)()?Reflect.construct.bind():function(R,W,G){var et=[null];et.push.apply(et,W);var er=new(Function.bind.apply(R,et));return G&&(0,J.Z)(er,G.prototype),er}).apply(null,arguments)}},87462:function(R,W,G){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(R){for(var W=1;W<arguments.length;W++){var G=arguments[W];for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&(R[J]=G[J])}return R}).apply(this,arguments)}G.d(W,{Z:function(){return _extends}})},61120:function(R,W,G){"use strict";function _getPrototypeOf(R){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(R){return R.__proto__||Object.getPrototypeOf(R)})(R)}G.d(W,{Z:function(){return _getPrototypeOf}})},60136:function(R,W,G){"use strict";G.d(W,{Z:function(){return _inherits}});var J=G(89611);function _inherits(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Super expression must either be null or a function");R.prototype=Object.create(W&&W.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),W&&(0,J.Z)(R,W)}},94578:function(R,W,G){"use strict";G.d(W,{Z:function(){return _inheritsLoose}});var J=G(89611);function _inheritsLoose(R,W){R.prototype=Object.create(W.prototype),R.prototype.constructor=R,(0,J.Z)(R,W)}},78814:function(R,W,G){"use strict";function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(R){return!1}}G.d(W,{Z:function(){return _isNativeReflectConstruct}})},89611:function(R,W,G){"use strict";function _setPrototypeOf(R,W){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,W){return R.__proto__=W,R})(R,W)}G.d(W,{Z:function(){return _setPrototypeOf}})},35724:function(R,W,G){"use strict";G.d(W,{Z:function(){return _wrapNativeSuper}});var J=G(61120),et=G(89611),er=G(5647);function _wrapNativeSuper(R){var W="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(R){if(null===R||!function(R){try{return -1!==Function.toString.call(R).indexOf("[native code]")}catch(W){return"function"==typeof R}}(R))return R;if("function"!=typeof R)throw TypeError("Super expression must either be null or a function");if(void 0!==W){if(W.has(R))return W.get(R);W.set(R,Wrapper)}function Wrapper(){return(0,er.Z)(R,arguments,(0,J.Z)(this).constructor)}return Wrapper.prototype=Object.create(R.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),(0,et.Z)(Wrapper,R)})(R)}},23259:function(R,W,G){"use strict";G.d(W,{C:function(){return C},N:function(){return stegaClean}});var J={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},et={0:8203,1:8204,2:8205,3:65279},er=[,,,,].fill(String.fromCodePoint(et[0])).join("");function C(R,W,G="auto"){let J;return!0===G||"auto"===G&&(!(!Number.isNaN(Number(R))||/[a-z]/i.test(R)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(R))&&Date.parse(R)||function(R){try{new URL(R,R.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(R))?R:`${R}${J=JSON.stringify(W),`${er}${Array.from(J).map(R=>{let W=R.charCodeAt(0);if(W>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${J} on character ${R} (${W})`);return Array.from(W.toString(4).padStart(4,"0")).map(R=>String.fromCodePoint(et[R])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(et).map(R=>R.reverse())),Object.fromEntries(Object.entries(J).map(R=>R.reverse()));var en=`${Object.values(J).map(R=>`\\u{${R.toString(16)}}`).join("")}`,ei=RegExp(`[${en}]{4,}`,"gu");function stegaClean(R){var W,G;return R&&JSON.parse({cleaned:(W=JSON.stringify(R)).replace(ei,""),encoded:(null==(G=W.match(ei))?void 0:G[0])||""}.cleaned)}},2786:function(R,W,G){"use strict";G.d(W,{aN:function(){return tA},eI:function(){return tM},Lx:function(){return tI}});let J=!(typeof navigator>"u")&&"ReactNative"===navigator.product,et={timeout:J?6e4:12e4},processOptions=function(R){let W={...et,..."string"==typeof R?{url:R}:R};if(W.timeout=function normalizeTimeout(R){if(!1===R||0===R)return!1;if(R.connect||R.socket)return R;let W=Number(R);return isNaN(W)?normalizeTimeout(et.timeout):{connect:W,socket:W}}(W.timeout),W.query){let{url:R,searchParams:G}=function(R){let W=R.indexOf("?");if(-1===W)return{url:R,searchParams:new URLSearchParams};let G=R.slice(0,W),et=R.slice(W+1);if(!J)return{url:G,searchParams:new URLSearchParams(et)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let er=new URLSearchParams;for(let R of et.split("&")){let[W,G]=R.split("=");W&&er.append(decodeQueryParam(W),decodeQueryParam(G||""))}return{url:G,searchParams:er}}(W.url);for(let[J,et]of Object.entries(W.query)){if(void 0!==et){if(Array.isArray(et))for(let R of et)G.append(J,R);else G.append(J,et)}let er=G.toString();er&&(W.url=`${R}?${er}`)}}return W.method=W.body&&!W.method?"POST":(W.method||"GET").toUpperCase(),W};function decodeQueryParam(R){return decodeURIComponent(R.replace(/\+/g," "))}let er=/^https?:\/\//i,validateOptions=function(R){if(!er.test(R.url))throw Error(`"${R.url}" is not a valid URL`)},middlewareReducer=R=>function(W,G,...J){let et="onError"===W,er=G;for(let G=0;G<R[W].length;G++){let en=R[W][G];if(er=en(er,...J),et&&!er)break}return er},en=["request","response","progress","error","abort"],ei=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var eo,es,ec,el,eu,ed,ep,ef,eh,eg,trim=function(R){return R.replace(/^\s+|\s+$/g,"")},em=(eo=function(R){if(!R)return{};for(var W={},G=trim(R).split(`
`),J=0;J<G.length;J++){var et,er=G[J],en=er.indexOf(":"),ei=trim(er.slice(0,en)).toLowerCase(),eo=trim(er.slice(en+1));typeof W[ei]>"u"?W[ei]=eo:(et=W[ei],"[object Array]"===Object.prototype.toString.call(et))?W[ei].push(eo):W[ei]=[W[ei],eo]}return W}).__esModule&&Object.prototype.hasOwnProperty.call(eo,"default")?eo.default:eo,ey=Object.defineProperty,__typeError=R=>{throw TypeError(R)},__defNormalProp=(R,W,G)=>W in R?ey(R,W,{enumerable:!0,configurable:!0,writable:!0,value:G}):R[W]=G,__publicField=(R,W,G)=>__defNormalProp(R,"symbol"!=typeof W?W+"":W,G),__accessCheck=(R,W,G)=>W.has(R)||__typeError("Cannot "+G),__privateGet=(R,W,G)=>(__accessCheck(R,W,"read from private field"),G?G.call(R):W.get(R)),__privateAdd=(R,W,G)=>W.has(R)?__typeError("Cannot add the same private member more than once"):W instanceof WeakSet?W.add(R):W.set(R,G),__privateSet=(R,W,G,J)=>(__accessCheck(R,W,"write to private field"),W.set(R,G),G);let FetchXhr=class FetchXhr{constructor(){__publicField(this,"onabort"),__publicField(this,"onerror"),__publicField(this,"onreadystatechange"),__publicField(this,"ontimeout"),__publicField(this,"readyState",0),__publicField(this,"response"),__publicField(this,"responseText",""),__publicField(this,"responseType",""),__publicField(this,"status"),__publicField(this,"statusText"),__publicField(this,"withCredentials"),__privateAdd(this,el),__privateAdd(this,eu),__privateAdd(this,ed),__privateAdd(this,ep,{}),__privateAdd(this,ef),__privateAdd(this,eh,{}),__privateAdd(this,eg)}open(R,W,G){var J;__privateSet(this,el,R),__privateSet(this,eu,W),__privateSet(this,ed,""),this.readyState=1,null==(J=this.onreadystatechange)||J.call(this),__privateSet(this,ef,void 0)}abort(){__privateGet(this,ef)&&__privateGet(this,ef).abort()}getAllResponseHeaders(){return __privateGet(this,ed)}setRequestHeader(R,W){__privateGet(this,ep)[R]=W}setInit(R,W=!0){__privateSet(this,eh,R),__privateSet(this,eg,W)}send(R){let W="arraybuffer"!==this.responseType,G={...__privateGet(this,eh),method:__privateGet(this,el),headers:__privateGet(this,ep),body:R};"function"==typeof AbortController&&__privateGet(this,eg)&&(__privateSet(this,ef,new AbortController),"u">typeof EventTarget&&__privateGet(this,ef).signal instanceof EventTarget&&(G.signal=__privateGet(this,ef).signal)),"u">typeof document&&(G.credentials=this.withCredentials?"include":"omit"),fetch(__privateGet(this,eu),G).then(R=>{var G;return R.headers.forEach((R,W)=>{__privateSet(this,ed,__privateGet(this,ed)+`${W}: ${R}\r
`)}),this.status=R.status,this.statusText=R.statusText,this.readyState=3,null==(G=this.onreadystatechange)||G.call(this),W?R.text():R.arrayBuffer()}).then(R=>{var W;"string"==typeof R?this.responseText=R:this.response=R,this.readyState=4,null==(W=this.onreadystatechange)||W.call(this)}).catch(R=>{var W,G;if("AbortError"===R.name){null==(W=this.onabort)||W.call(this);return}null==(G=this.onerror)||G.call(this,R)})}};el=new WeakMap,eu=new WeakMap,ed=new WeakMap,ep=new WeakMap,ef=new WeakMap,eh=new WeakMap,eg=new WeakMap;let ev="function"==typeof XMLHttpRequest?"xhr":"fetch",eb="xhr"===ev?XMLHttpRequest:FetchXhr,httpRequester=(R,W)=>{var G;let J=R.options,et=R.applyMiddleware("finalizeOptions",J),er={},en=R.applyMiddleware("interceptRequest",void 0,{adapter:ev,context:R});if(en){let R=setTimeout(W,0,null,en);return{abort:()=>clearTimeout(R)}}let ei=new eb;ei instanceof FetchXhr&&"object"==typeof et.fetch&&ei.setInit(et.fetch,null==(G=et.useAbortSignal)||G);let eo=et.headers,es=et.timeout,ec=!1,el=!1,eu=!1;if(ei.onerror=R=>{ei instanceof FetchXhr?onError(R instanceof Error?R:Error(`Request error while attempting to reach is ${et.url}`,{cause:R})):onError(Error(`Request error while attempting to reach is ${et.url}${R.lengthComputable?`(${R.loaded} of ${R.total} bytes transferred)`:""}`))},ei.ontimeout=R=>{onError(Error(`Request timeout while attempting to reach ${et.url}${R.lengthComputable?`(${R.loaded} of ${R.total} bytes transferred)`:""}`))},ei.onabort=()=>{stopTimers(!0),ec=!0},ei.onreadystatechange=()=>{es&&(stopTimers(),er.socket=setTimeout(()=>timeoutRequest("ESOCKETTIMEDOUT"),es.socket)),ec||4!==ei.readyState||0===ei.status||function(){if(!(ec||el||eu)){if(0===ei.status){onError(Error("Unknown XHR error"));return}stopTimers(),el=!0,W(null,{body:ei.response||(""===ei.responseType||"text"===ei.responseType?ei.responseText:""),url:et.url,method:et.method,headers:em(ei.getAllResponseHeaders()),statusCode:ei.status,statusMessage:ei.statusText})}}()},ei.open(et.method,et.url,!0),ei.withCredentials=!!et.withCredentials,eo&&ei.setRequestHeader)for(let R in eo)eo.hasOwnProperty(R)&&ei.setRequestHeader(R,eo[R]);return et.rawBody&&(ei.responseType="arraybuffer"),R.applyMiddleware("onRequest",{options:et,adapter:ev,request:ei,context:R}),ei.send(et.body||null),es&&(er.connect=setTimeout(()=>timeoutRequest("ETIMEDOUT"),es.connect)),{abort:function(){ec=!0,ei&&ei.abort()}};function timeoutRequest(W){eu=!0,ei.abort();let G=Error("ESOCKETTIMEDOUT"===W?`Socket timed out on request to ${et.url}`:`Connection timed out on request to ${et.url}`);G.code=W,R.channels.error.publish(G)}function stopTimers(R){(R||ec||ei.readyState>=2&&er.connect)&&clearTimeout(er.connect),er.socket&&clearTimeout(er.socket)}function onError(R){if(el)return;stopTimers(!0),el=!0,ei=null;let G=R||Error(`Network error while attempting to reach ${et.url}`);G.isNetworkError=!0,G.request=et,W(G)}},getIt=(R=[],W=httpRequester)=>(function createRequester(R,W){let G=[],J=ei.reduce((R,W)=>(R[W]=R[W]||[],R),{processOptions:[processOptions],validateOptions:[validateOptions]});function request(R){let G;let onResponse=(R,W,G)=>{let J=R,en=W;if(!J)try{en=er("onResponse",W,G)}catch(R){en=null,J=R}(J=J&&er("onError",J,G))?et.error.publish(J):en&&et.response.publish(en)},et=en.reduce((R,W)=>(R[W]=function(){let R=Object.create(null),W=0;return{publish:function(W){for(let G in R)R[G](W)},subscribe:function(G){let J=W++;return R[J]=G,function(){delete R[J]}}}}(),R),{}),er=middlewareReducer(J),ei=er("processOptions",R);er("validateOptions",ei);let eo={options:ei,channels:et,applyMiddleware:er},es=et.request.subscribe(R=>{G=W(R,(W,G)=>onResponse(W,G,R))});et.abort.subscribe(()=>{es(),G&&G.abort()});let ec=er("onReturn",et,eo);return ec===et&&et.request.publish(eo),ec}return request.use=function(R){if(!R)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof R)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(R.onReturn&&J.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return ei.forEach(W=>{R[W]&&J[W].push(R[W])}),G.push(R),request},request.clone=()=>createRequester(G,W),R.forEach(request.use),request})(R,W);var e_,ex,ew=G(34155),eS=G(48764).lW,eT={exports:{}},common=function(R){function createDebug(R){let W,G=null,J,et;function debug2(...R){if(!debug2.enabled)return;let G=Number(new Date),J=G-(W||G);debug2.diff=J,debug2.prev=W,debug2.curr=G,W=G,R[0]=createDebug.coerce(R[0]),"string"!=typeof R[0]&&R.unshift("%O");let et=0;R[0]=R[0].replace(/%([a-zA-Z%])/g,(W,G)=>{if("%%"===W)return"%";et++;let J=createDebug.formatters[G];if("function"==typeof J){let G=R[et];W=J.call(debug2,G),R.splice(et,1),et--}return W}),createDebug.formatArgs.call(debug2,R),(debug2.log||createDebug.log).apply(debug2,R)}return debug2.namespace=R,debug2.useColors=createDebug.useColors(),debug2.color=createDebug.selectColor(R),debug2.extend=extend,debug2.destroy=createDebug.destroy,Object.defineProperty(debug2,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==G?G:(J!==createDebug.namespaces&&(J=createDebug.namespaces,et=createDebug.enabled(R)),et),set:R=>{G=R}}),"function"==typeof createDebug.init&&createDebug.init(debug2),debug2}function extend(R,W){let G=createDebug(this.namespace+(typeof W>"u"?":":W)+R);return G.log=this.log,G}function toNamespace(R){return R.toString().substring(2,R.toString().length-2).replace(/\.\*\?$/,"*")}return createDebug.debug=createDebug,createDebug.default=createDebug,createDebug.coerce=function(R){return R instanceof Error?R.stack||R.message:R},createDebug.disable=function(){let R=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map(R=>"-"+R)].join(",");return createDebug.enable(""),R},createDebug.enable=function(R){let W;createDebug.save(R),createDebug.namespaces=R,createDebug.names=[],createDebug.skips=[];let G=("string"==typeof R?R:"").split(/[\s,]+/),J=G.length;for(W=0;W<J;W++)G[W]&&("-"===(R=G[W].replace(/\*/g,".*?"))[0]?createDebug.skips.push(RegExp("^"+R.slice(1)+"$")):createDebug.names.push(RegExp("^"+R+"$")))},createDebug.enabled=function(R){let W,G;if("*"===R[R.length-1])return!0;for(W=0,G=createDebug.skips.length;W<G;W++)if(createDebug.skips[W].test(R))return!1;for(W=0,G=createDebug.names.length;W<G;W++)if(createDebug.names[W].test(R))return!0;return!1},createDebug.humanize=function(){if(ex)return e_;function plural(R,W,G,J){return Math.round(R/G)+" "+J+(W>=1.5*G?"s":"")}return ex=1,e_=function(R,W){W=W||{};var G,J,et=typeof R;if("string"===et&&R.length>0)return function(R){if(!((R=String(R)).length>100)){var W=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(R);if(W){var G=parseFloat(W[1]);switch((W[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*G;case"weeks":case"week":case"w":return 6048e5*G;case"days":case"day":case"d":return 864e5*G;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*G;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*G;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*G;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return G;default:return}}}}(R);if("number"===et&&isFinite(R))return W.long?(G=Math.abs(R))>=864e5?plural(R,G,864e5,"day"):G>=36e5?plural(R,G,36e5,"hour"):G>=6e4?plural(R,G,6e4,"minute"):G>=1e3?plural(R,G,1e3,"second"):R+" ms":(J=Math.abs(R))>=864e5?Math.round(R/864e5)+"d":J>=36e5?Math.round(R/36e5)+"h":J>=6e4?Math.round(R/6e4)+"m":J>=1e3?Math.round(R/1e3)+"s":R+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(R))}}(),createDebug.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(R).forEach(W=>{createDebug[W]=R[W]}),createDebug.names=[],createDebug.skips=[],createDebug.formatters={},createDebug.selectColor=function(R){let W=0;for(let G=0;G<R.length;G++)W=(W<<5)-W+R.charCodeAt(G)|0;return createDebug.colors[Math.abs(W)%createDebug.colors.length]},createDebug.enable(createDebug.load()),createDebug};!function(R,W){let G;W.formatArgs=function(W){if(W[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+W[0]+(this.useColors?"%c ":" ")+"+"+R.exports.humanize(this.diff),!this.useColors)return;let G="color: "+this.color;W.splice(1,0,G,"color: inherit");let J=0,et=0;W[0].replace(/%[a-zA-Z%]/g,R=>{"%%"!==R&&(J++,"%c"===R&&(et=J))}),W.splice(et,0,G)},W.save=function(R){try{R?W.storage.setItem("debug",R):W.storage.removeItem("debug")}catch{}},W.load=function(){let R;try{R=W.storage.getItem("debug")}catch{}return!R&&"u">typeof ew&&"env"in ew&&(R=ew.env.DEBUG),R},W.useColors=function(){return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},W.storage=function(){try{return localStorage}catch{}}(),W.destroy=(G=!1,()=>{G||(G=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),W.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],W.log=console.debug||console.log||(()=>{}),R.exports=common(W);let{formatters:J}=R.exports;J.j=function(R){try{return JSON.stringify(R)}catch(R){return"[UnexpectedJSONParseError]: "+R.message}}}(eT,eT.exports),eT.exports,Object.prototype.hasOwnProperty;let eO=typeof eS>"u"?()=>!1:R=>eS.isBuffer(R);/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function isObject(R){return"[object Object]"===Object.prototype.toString.call(R)}let eP=["boolean","string","number"],eC={};"u">typeof globalThis?eC=globalThis:"u">typeof window?eC=window:"u">typeof global?eC=global:"u">typeof self&&(eC=self);var ek=eC,eE=Object.defineProperty,__defNormalProp$1=(R,W,G)=>W in R?eE(R,W,{enumerable:!0,configurable:!0,writable:!0,value:G}):R[W]=G,__publicField$1=(R,W,G)=>__defNormalProp$1(R,"symbol"!=typeof W?W+"":W,G);let promise=(R={})=>{let W=R.implementation||Promise;if(!W)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(G,J)=>new W((W,et)=>{let er=J.options.cancelToken;er&&er.promise.then(R=>{G.abort.publish(R),et(R)}),G.error.subscribe(et),G.response.subscribe(G=>{W(R.onlyBody?G.body:G)}),setTimeout(()=>{try{G.request.publish(J)}catch(R){et(R)}},0)})}};let Cancel=class Cancel{constructor(R){__publicField$1(this,"__CANCEL__",!0),__publicField$1(this,"message"),this.message=R}toString(){return`Cancel${this.message?`: ${this.message}`:""}`}};let ej=class{constructor(R){if(__publicField$1(this,"promise"),__publicField$1(this,"reason"),"function"!=typeof R)throw TypeError("executor must be a function.");let W=null;this.promise=new Promise(R=>{W=R}),R(R=>{this.reason||(this.reason=new Cancel(R),W(this.reason))})}};__publicField$1(ej,"source",()=>{let R;return{token:new ej(W=>{R=W}),cancel:R}}),promise.Cancel=Cancel,promise.CancelToken=ej,promise.isCancel=R=>!!(R&&null!=R&&R.__CANCEL__);var defaultShouldRetry=(R,W,G)=>("GET"===G.method||"HEAD"===G.method)&&(R.isNetworkError||!1);let isStream=R=>null!==R&&"object"==typeof R&&"function"==typeof R.pipe;var sharedRetry=R=>{let W=R.maxRetries||5,G=R.retryDelay||getRetryDelay,J=R.shouldRetry;return{onError:(R,et)=>{let er=et.options,en=er.maxRetries||W,ei=er.retryDelay||G,eo=er.shouldRetry||J,es=er.attemptNumber||0;if(isStream(er.body)||!eo(R,es,er)||es>=en)return R;let ec=Object.assign({},et,{options:Object.assign({},er,{attemptNumber:es+1})});return setTimeout(()=>et.channels.request.publish(ec),ei(es)),null}}};function getRetryDelay(R){return 100*Math.pow(2,R)+100*Math.random()}let retry=(R={})=>sharedRetry({shouldRetry:defaultShouldRetry,...R});retry.shouldRetry=defaultShouldRetry;var eA=Object.defineProperty,middleware_browser_defNormalProp=(R,W,G)=>W in R?eA(R,W,{enumerable:!0,configurable:!0,writable:!0,value:G}):R[W]=G,eD=G(80230),eI=G(40052),eM=G(36861),eL=G(97582),eR=G(40564),eN=G(96798),eB=G(68936),eZ=G(53211),eU=G(92749),eF=G(22457);function combineLatest_combineLatest(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];var G=(0,eF.jO)(R);return G?(0,eU.z)(combineLatest_combineLatest.apply(void 0,(0,eL.ev)([],(0,eL.CR)(R))),(0,eZ.Z)(G)):(0,eN.e)(function(W,G){(0,eR.l)((0,eL.ev)([W],(0,eL.CR)((0,eB.k)(R))))(G)})}var ez=G(29127),eH=G(94975),eq=G(23259),eV=Object.defineProperty,__defNormalProp$3=(R,W,G)=>W in R?eV(R,W,{enumerable:!0,configurable:!0,writable:!0,value:G}):R[W]=G,__publicField$3=(R,W,G)=>(__defNormalProp$3(R,"symbol"!=typeof W?W+"":W,G),G);let ClientError=class ClientError extends Error{constructor(R){let W=extractErrorProps(R);super(W.message),__publicField$3(this,"response"),__publicField$3(this,"statusCode",400),__publicField$3(this,"responseBody"),__publicField$3(this,"details"),Object.assign(this,W)}};let ServerError=class ServerError extends Error{constructor(R){let W=extractErrorProps(R);super(W.message),__publicField$3(this,"response"),__publicField$3(this,"statusCode",500),__publicField$3(this,"responseBody"),__publicField$3(this,"details"),Object.assign(this,W)}};function extractErrorProps(R){let W=R.body,G={response:R,statusCode:R.statusCode,responseBody:-1!==(R.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(W,null,2):W,message:"",details:void 0};if(W.error&&W.message)return G.message=`${W.error} - ${W.message}`,G;if(index_browser_isPlainObject(W)&&index_browser_isPlainObject(W.error)&&"mutationError"===W.error.type&&"string"==typeof W.error.description||index_browser_isPlainObject(W)&&index_browser_isPlainObject(W.error)&&"actionError"===W.error.type&&"string"==typeof W.error.description){let R=W.error.items||[],J=R.slice(0,5).map(R=>{var W;return null==(W=R.error)?void 0:W.description}).filter(Boolean),et=J.length?`:
- ${J.join(`
- `)}`:"";return R.length>5&&(et+=`
...and ${R.length-5} more`),G.message=`${W.error.description}${et}`,G.details=W.error,G}return W.error&&W.error.description?(G.message=W.error.description,G.details=W.error):G.message=W.error||W.message||function(R){let W=R.statusMessage?` ${R.statusMessage}`:"";return`${R.method}-request to ${R.url} resulted in HTTP ${R.statusCode}${W}`}(R),G}function index_browser_isPlainObject(R){return"object"==typeof R&&null!==R&&!Array.isArray(R)}let eW={onResponse:R=>{if(R.statusCode>=500)throw new ServerError(R);if(R.statusCode>=400)throw new ClientError(R);return R}},eG={onResponse:R=>{let W=R.headers["x-sanity-warning"];return(Array.isArray(W)?W:[W]).filter(Boolean).forEach(R=>console.warn(R)),R}};function shouldRetry(R,W,G){if(0===G.maxRetries)return!1;let J="GET"===G.method||"HEAD"===G.method,et=(G.uri||G.url).startsWith("/data/query"),er=R.response&&(429===R.response.statusCode||502===R.response.statusCode||503===R.response.statusCode);return(!!J||!!et)&&!!er||retry.shouldRetry(R,W,G)}function getSelection(R){if("string"==typeof R)return{id:R};if(Array.isArray(R))return{query:"*[_id in $ids]",params:{ids:R}};if("object"==typeof R&&null!==R&&"query"in R&&"string"==typeof R.query)return"params"in R&&"object"==typeof R.params&&null!==R.params?{query:R.query,params:R.params}:{query:R.query};let W=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
`);throw Error(`Unknown selection - must be one of:

${W}`)}let e$=["image","file"],eK=["before","after","replace"],dataset=R=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(R))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},projectId=R=>{if(!/^[-a-z0-9]+$/i.test(R))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},validateAssetType=R=>{if(-1===e$.indexOf(R))throw Error(`Invalid asset type: ${R}. Must be one of ${e$.join(", ")}`)},validateObject=(R,W)=>{if(null===W||"object"!=typeof W||Array.isArray(W))throw Error(`${R}() takes an object of properties`)},validateDocumentId=(R,W)=>{if("string"!=typeof W||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(W)||W.includes(".."))throw Error(`${R}(): "${W}" is not a valid document ID`)},requireDocumentId=(R,W)=>{if(!W._id)throw Error(`${R}() requires that the document contains an ID ("_id" property)`);validateDocumentId(R,W._id)},validateInsert=(R,W,G)=>{let J="insert(at, selector, items)";if(-1===eK.indexOf(R)){let R=eK.map(R=>`"${R}"`).join(", ");throw Error(`${J} takes an "at"-argument which is one of: ${R}`)}if("string"!=typeof W)throw Error(`${J} takes a "selector"-argument which must be a string`);if(!Array.isArray(G))throw Error(`${J} takes an "items"-argument which must be an array`)},hasDataset=R=>{if(!R.dataset)throw Error("`dataset` must be provided to perform queries");return R.dataset||""},requestTag=R=>{if("string"!=typeof R||!/^[a-z0-9._-]{1,75}$/i.test(R))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return R};var eY=Object.defineProperty,index_browser_defNormalProp$2=(R,W,G)=>W in R?eY(R,W,{enumerable:!0,configurable:!0,writable:!0,value:G}):R[W]=G,index_browser_publicField$2=(R,W,G)=>(index_browser_defNormalProp$2(R,"symbol"!=typeof W?W+"":W,G),G),__accessCheck$7=(R,W,G)=>{if(!W.has(R))throw TypeError("Cannot "+G)},__privateGet$7=(R,W,G)=>(__accessCheck$7(R,W,"read from private field"),G?G.call(R):W.get(R)),__privateAdd$7=(R,W,G)=>{if(W.has(R))throw TypeError("Cannot add the same private member more than once");W instanceof WeakSet?W.add(R):W.set(R,G)},__privateSet$7=(R,W,G,J)=>(__accessCheck$7(R,W,"write to private field"),W.set(R,G),G);let BasePatch=class BasePatch{constructor(R,W={}){index_browser_publicField$2(this,"selection"),index_browser_publicField$2(this,"operations"),this.selection=R,this.operations=W}set(R){return this._assign("set",R)}setIfMissing(R){return this._assign("setIfMissing",R)}diffMatchPatch(R){return validateObject("diffMatchPatch",R),this._assign("diffMatchPatch",R)}unset(R){if(!Array.isArray(R))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:R}),this}inc(R){return this._assign("inc",R)}dec(R){return this._assign("dec",R)}insert(R,W,G){return validateInsert(R,W,G),this._assign("insert",{[R]:W,items:G})}append(R,W){return this.insert("after",`${R}[-1]`,W)}prepend(R,W){return this.insert("before",`${R}[0]`,W)}splice(R,W,G,J){let et=W<0?W-1:W,er=typeof G>"u"||-1===G?-1:Math.max(0,W+G),en=et<0&&er>=0?"":er,ei=`${R}[${et}:${en}]`;return this.insert("replace",ei,J||[])}ifRevisionId(R){return this.operations.ifRevisionID=R,this}serialize(){return{...getSelection(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(R,W,G=!0){return validateObject(R,W),this.operations=Object.assign({},this.operations,{[R]:Object.assign({},G&&this.operations[R]||{},W)}),this}_set(R,W){return this._assign(R,W,!1)}};let eX=class _ObservablePatch2 extends BasePatch{constructor(R,W,G){super(R,W),__privateAdd$7(this,tr,void 0),__privateSet$7(this,tr,G)}clone(){return new _ObservablePatch2(this.selection,{...this.operations},__privateGet$7(this,tr))}commit(R){if(!__privateGet$7(this,tr))throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let W="string"==typeof this.selection,G=Object.assign({returnFirst:W,returnDocuments:!0},R);return __privateGet$7(this,tr).mutate({patch:this.serialize()},G)}};tr=new WeakMap;let eQ=class _Patch2 extends BasePatch{constructor(R,W,G){super(R,W),__privateAdd$7(this,tn,void 0),__privateSet$7(this,tn,G)}clone(){return new _Patch2(this.selection,{...this.operations},__privateGet$7(this,tn))}commit(R){if(!__privateGet$7(this,tn))throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let W="string"==typeof this.selection,G=Object.assign({returnFirst:W,returnDocuments:!0},R);return __privateGet$7(this,tn).mutate({patch:this.serialize()},G)}};tn=new WeakMap;var eJ=Object.defineProperty,index_browser_defNormalProp$1=(R,W,G)=>W in R?eJ(R,W,{enumerable:!0,configurable:!0,writable:!0,value:G}):R[W]=G,index_browser_publicField$1=(R,W,G)=>(index_browser_defNormalProp$1(R,"symbol"!=typeof W?W+"":W,G),G),__accessCheck$6=(R,W,G)=>{if(!W.has(R))throw TypeError("Cannot "+G)},__privateGet$6=(R,W,G)=>(__accessCheck$6(R,W,"read from private field"),G?G.call(R):W.get(R)),__privateAdd$6=(R,W,G)=>{if(W.has(R))throw TypeError("Cannot add the same private member more than once");W instanceof WeakSet?W.add(R):W.set(R,G)},__privateSet$6=(R,W,G,J)=>(__accessCheck$6(R,W,"write to private field"),W.set(R,G),G);let e0={returnDocuments:!1};let BaseTransaction=class BaseTransaction{constructor(R=[],W){index_browser_publicField$1(this,"operations"),index_browser_publicField$1(this,"trxId"),this.operations=R,this.trxId=W}create(R){return validateObject("create",R),this._add({create:R})}createIfNotExists(R){let W="createIfNotExists";return validateObject(W,R),requireDocumentId(W,R),this._add({[W]:R})}createOrReplace(R){let W="createOrReplace";return validateObject(W,R),requireDocumentId(W,R),this._add({[W]:R})}delete(R){return validateDocumentId("delete",R),this._add({delete:{id:R}})}transactionId(R){return R?(this.trxId=R,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(R){return this.operations.push(R),this}};let e1=class _Transaction2 extends BaseTransaction{constructor(R,W,G){super(R,G),__privateAdd$6(this,ti,void 0),__privateSet$6(this,ti,W)}clone(){return new _Transaction2([...this.operations],__privateGet$6(this,ti),this.trxId)}commit(R){if(!__privateGet$6(this,ti))throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return __privateGet$6(this,ti).mutate(this.serialize(),Object.assign({transactionId:this.trxId},e0,R||{}))}patch(R,W){if("string"!=typeof R&&R instanceof eQ)return this._add({patch:R.serialize()});if("function"==typeof W){let G=W(new eQ(R,{},__privateGet$6(this,ti)));if(!(G instanceof eQ))throw Error("function passed to `patch()` must return the patch");return this._add({patch:G.serialize()})}return this._add({patch:{id:R,...W}})}};ti=new WeakMap;let e2=class _ObservableTransaction2 extends BaseTransaction{constructor(R,W,G){super(R,G),__privateAdd$6(this,to,void 0),__privateSet$6(this,to,W)}clone(){return new _ObservableTransaction2([...this.operations],__privateGet$6(this,to),this.trxId)}commit(R){if(!__privateGet$6(this,to))throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return __privateGet$6(this,to).mutate(this.serialize(),Object.assign({transactionId:this.trxId},e0,R||{}))}patch(R,W){if("string"!=typeof R&&R instanceof eX)return this._add({patch:R.serialize()});if("function"==typeof W){let G=W(new eX(R,{},__privateGet$6(this,to)));if(!(G instanceof eX))throw Error("function passed to `patch()` must return the patch");return this._add({patch:G.serialize()})}return this._add({patch:{id:R,...W}})}};function generateHelpUrl(R){return"https://www.sanity.io/help/"+R}to=new WeakMap;let createWarningPrinter=R=>{var W;let G,J;return W=(...W)=>console.warn(R.join(" "),...W),G=!1,(...R)=>(G||(J=W(...R),G=!0),J)},e3=createWarningPrinter(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),e5=createWarningPrinter(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),e4=createWarningPrinter(["The Sanity client is configured with the `perspective` set to `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),e8=createWarningPrinter(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${generateHelpUrl("js-client-browser-token")} for more information and how to hide this warning.`]),e6=createWarningPrinter(["Using the Sanity client without specifying an API version is deprecated.",`See ${generateHelpUrl("js-client-api-version")}`]),e7=(createWarningPrinter(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),{apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}}),e9=["localhost","127.0.0.1","0.0.0.0"],isLocal=R=>-1!==e9.indexOf(R),validateApiPerspective=function(R){switch(R){case"previewDrafts":case"published":case"raw":return;default:throw TypeError("Invalid API perspective string, expected `published`, `previewDrafts` or `raw`")}},initConfig=(R,W)=>{let G={...W,...R,stega:{..."boolean"==typeof W.stega?{enabled:W.stega}:W.stega||e7.stega,..."boolean"==typeof R.stega?{enabled:R.stega}:R.stega||{}}};G.apiVersion||e6();let J={...e7,...G},et=J.useProjectHostname;if(typeof Promise>"u"){let R=generateHelpUrl("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${R}`)}if(et&&!J.projectId)throw Error("Configuration must contain `projectId`");if("string"==typeof J.perspective&&validateApiPerspective(J.perspective),"encodeSourceMap"in J)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in J)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");if("boolean"!=typeof J.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${J.stega.enabled}`);if(J.stega.enabled&&void 0===J.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(J.stega.enabled&&"string"!=typeof J.stega.studioUrl&&"function"!=typeof J.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${J.stega.studioUrl}`);let er="u">typeof window&&window.location&&window.location.hostname,en=er&&isLocal(window.location.hostname);er&&en&&J.token&&!0!==J.ignoreBrowserTokenWarning?e8():typeof J.useCdn>"u"&&e5(),et&&projectId(J.projectId),J.dataset&&dataset(J.dataset),"requestTagPrefix"in J&&(J.requestTagPrefix=J.requestTagPrefix?requestTag(J.requestTagPrefix).replace(/\.+$/,""):void 0),J.apiVersion=`${J.apiVersion}`.replace(/^v/,""),J.isDefaultApi=J.apiHost===e7.apiHost,!0===J.useCdn&&J.withCredentials&&e3(),J.useCdn=!1!==J.useCdn&&!J.withCredentials,function(R){if("1"===R||"X"===R)return;let W=new Date(R);if(!(/^\d{4}-\d{2}-\d{2}$/.test(R)&&W instanceof Date&&W.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(J.apiVersion);let ei=J.apiHost.split("://",2),eo=ei[0],es=ei[1],ec=J.isDefaultApi?"apicdn.sanity.io":es;return J.useProjectHostname?(J.url=`${eo}://${J.projectId}.${es}/v${J.apiVersion}`,J.cdnUrl=`${eo}://${J.projectId}.${ec}/v${J.apiVersion}`):(J.url=`${J.apiHost}/v${J.apiVersion}`,J.cdnUrl=J.url),J},encodeQueryString=({query:R,params:W={},options:G={}})=>{let J=new URLSearchParams,{tag:et,returnQuery:er,...en}=G;for(let[G,er]of(et&&J.append("tag",et),J.append("query",R),Object.entries(W)))J.append(`$${G}`,JSON.stringify(er));for(let[R,W]of Object.entries(en))W&&J.append(R,`${W}`);return!1===er&&J.append("returnQuery","false"),`?${J}`},excludeFalsey=(R,W)=>!1===R?void 0:typeof R>"u"?W:R,getMutationQuery=(R={})=>({dryRun:R.dryRun,returnIds:!0,returnDocuments:excludeFalsey(R.returnDocuments,!0),visibility:R.visibility||"sync",autoGenerateArrayKeys:R.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:R.skipCrossDatasetReferenceValidation}),isResponse=R=>"response"===R.type,getBody=R=>R.body,indexBy=(R,W)=>R.reduce((R,G)=>(R[W(G)]=G,R),Object.create(null));function _fetch(R,W,J,et,er={},en={}){let ei="stega"in en?{...J||{},..."boolean"==typeof en.stega?{enabled:en.stega}:en.stega||{}}:J,eo=ei.enabled?(0,eq.N)(er):er,es=!1===en.filterResponse?R=>R:R=>R.result,{cache:ec,next:el,...eu}={useAbortSignal:"u">typeof en.signal,resultSourceMap:ei.enabled?"withKeyArraySelector":en.resultSourceMap,...en,returnQuery:!1===en.filterResponse&&!1!==en.returnQuery},ed="u">typeof ec||"u">typeof el?{...eu,fetch:{cache:ec,next:el}}:eu,ep=_dataRequest(R,W,"query",{query:et,params:eo},ed);return ei.enabled?ep.pipe(function(){for(var R=[],W=0;W<arguments.length;W++)R[W]=arguments[W];return combineLatest_combineLatest.apply(void 0,(0,eL.ev)([],(0,eL.CR)(R)))}((0,eI.D)(G.e(4235).then(G.bind(G,84235)).then(function(R){return R.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:R})=>R))),(0,ez.U)(([R,W])=>{let G=W(R.result,R.resultSourceMap,ei);return es({...R,result:G})})):ep.pipe((0,ez.U)(es))}function _getDocument(R,W,G,J={}){let et={uri:_getDataUrl(R,"doc",G),json:!0,tag:J.tag};return _requestObservable(R,W,et).pipe((0,eH.h)(isResponse),(0,ez.U)(R=>R.body.documents&&R.body.documents[0]))}function _getDocuments(R,W,G,J={}){let et={uri:_getDataUrl(R,"doc",G.join(",")),json:!0,tag:J.tag};return _requestObservable(R,W,et).pipe((0,eH.h)(isResponse),(0,ez.U)(R=>{let W=indexBy(R.body.documents||[],R=>R._id);return G.map(R=>W[R]||null)}))}function _createIfNotExists(R,W,G,J){return requireDocumentId("createIfNotExists",G),_create(R,W,G,"createIfNotExists",J)}function _createOrReplace(R,W,G,J){return requireDocumentId("createOrReplace",G),_create(R,W,G,"createOrReplace",J)}function _delete(R,W,G,J){return _dataRequest(R,W,"mutate",{mutations:[{delete:getSelection(G)}]},J)}function _mutate(R,W,G,J){let et;et=G instanceof eQ||G instanceof eX?{patch:G.serialize()}:G instanceof e1||G instanceof e2?G.serialize():G;let er=Array.isArray(et)?et:[et],en=J&&J.transactionId||void 0;return _dataRequest(R,W,"mutate",{mutations:er,transactionId:en},J)}function _action(R,W,G,J){let et=Array.isArray(G)?G:[G],er=J&&J.transactionId||void 0,en=J&&J.skipCrossDatasetReferenceValidation||void 0,ei=J&&J.dryRun||void 0;return _dataRequest(R,W,"actions",{actions:et,transactionId:er,skipCrossDatasetReferenceValidation:en,dryRun:ei},J)}function _dataRequest(R,W,G,J,et={}){let er="mutate"===G,en="actions"===G,ei="query"===G,eo=er||en?"":encodeQueryString(J),es=!er&&!en&&eo.length<11264,ec=et.returnFirst,{timeout:el,token:eu,tag:ed,headers:ep,returnQuery:ef,lastLiveEventId:eh}=et,eg=_getDataUrl(R,G,es?eo:""),em={method:es?"GET":"POST",uri:eg,json:!0,body:es?void 0:J,query:er&&getMutationQuery(et),timeout:el,headers:ep,token:eu,tag:ed,returnQuery:ef,perspective:et.perspective,resultSourceMap:et.resultSourceMap,lastLiveEventId:Array.isArray(eh)?eh[0]:eh,canUseCdn:ei,signal:et.signal,fetch:et.fetch,useAbortSignal:et.useAbortSignal,useCdn:et.useCdn};return _requestObservable(R,W,em).pipe((0,eH.h)(isResponse),(0,ez.U)(getBody),(0,ez.U)(R=>{if(!er)return R;let W=R.results||[];if(et.returnDocuments)return ec?W[0]&&W[0].document:W.map(R=>R.document);let G=ec?W[0]&&W[0].id:W.map(R=>R.id);return{transactionId:R.transactionId,results:W,[ec?"documentId":"documentIds"]:G}}))}function _create(R,W,G,J,et={}){let er=Object.assign({returnFirst:!0,returnDocuments:!0},et);return _dataRequest(R,W,"mutate",{mutations:[{[J]:G}]},er)}function _requestObservable(R,W,G){var J,et,er;let en=G.url||G.uri,ei=R.config(),eo=typeof G.canUseCdn>"u"?["GET","HEAD"].indexOf(G.method||"GET")>=0&&0===en.indexOf("/data/"):G.canUseCdn,es=(null!=(J=G.useCdn)?J:ei.useCdn)&&eo,ec=G.tag&&ei.requestTagPrefix?[ei.requestTagPrefix,G.tag].join("."):G.tag||ei.requestTagPrefix;if(ec&&null!==G.tag&&(G.query={tag:requestTag(ec),...G.query}),["GET","HEAD","POST"].indexOf(G.method||"GET")>=0&&0===en.indexOf("/data/query/")){let R=null!=(et=G.resultSourceMap)?et:ei.resultSourceMap;void 0!==R&&!1!==R&&(G.query={resultSourceMap:R,...G.query});let W=G.perspective||ei.perspective;"string"==typeof W&&"raw"!==W&&(validateApiPerspective(W),G.query={perspective:W,...G.query},"previewDrafts"===W&&es&&(es=!1,e4())),G.lastLiveEventId&&(G.query={...G.query,lastLiveEventId:G.lastLiveEventId}),!1===G.returnQuery&&(G.query={returnQuery:"false",...G.query})}let el=function(R,W={}){let G={},J=W.token||R.token;J&&(G.Authorization=`Bearer ${J}`),W.useGlobalApi||R.useProjectHostname||!R.projectId||(G["X-Sanity-Project-ID"]=R.projectId);let et=!!(typeof W.withCredentials>"u"?R.token||R.withCredentials:W.withCredentials),er=typeof W.timeout>"u"?R.timeout:W.timeout;return Object.assign({},W,{headers:Object.assign({},G,W.headers||{}),timeout:typeof er>"u"?3e5:er,proxy:W.proxy||R.proxy,json:!0,withCredentials:et,fetch:"object"==typeof W.fetch&&"object"==typeof R.fetch?{...R.fetch,...W.fetch}:W.fetch||R.fetch})}(ei,Object.assign({},G,{url:_getUrl(R,en,es)})),eu=new eD.y(R=>W(el,ei.requester).subscribe(R));return G.signal?eu.pipe((er=G.signal,R=>new eD.y(W=>{let abort=()=>W.error(function(R){var W,G;if(tt)return new DOMException(null!=(W=null==R?void 0:R.reason)?W:"The operation was aborted.","AbortError");let J=Error(null!=(G=null==R?void 0:R.reason)?G:"The operation was aborted.");return J.name="AbortError",J}(er));if(er&&er.aborted){abort();return}let G=R.subscribe(W);return er.addEventListener("abort",abort),()=>{er.removeEventListener("abort",abort),G.unsubscribe()}}))):eu}function _request(R,W,G){return _requestObservable(R,W,G).pipe((0,eH.h)(R=>"response"===R.type),(0,ez.U)(R=>R.body))}function _getDataUrl(R,W,G){let J=R.config(),et=hasDataset(J),er=`/${W}/${et}`;return`/data${G?`${er}/${G}`:er}`.replace(/\/($|\?)/,"$1")}function _getUrl(R,W,G=!1){let{url:J,cdnUrl:et}=R.config();return`${G?et:J}/${W.replace(/^\//,"")}`}let tt=!!globalThis.DOMException;var tr,tn,ti,to,ta,ts,__accessCheck$5=(R,W,G)=>{if(!W.has(R))throw TypeError("Cannot "+G)},__privateGet$5=(R,W,G)=>(__accessCheck$5(R,W,"read from private field"),G?G.call(R):W.get(R)),__privateAdd$5=(R,W,G)=>{if(W.has(R))throw TypeError("Cannot add the same private member more than once");W instanceof WeakSet?W.add(R):W.set(R,G)},__privateSet$5=(R,W,G,J)=>(__accessCheck$5(R,W,"write to private field"),W.set(R,G),G);let ObservableAssetsClient=class ObservableAssetsClient{constructor(R,W){__privateAdd$5(this,ta,void 0),__privateAdd$5(this,ts,void 0),__privateSet$5(this,ta,R),__privateSet$5(this,ts,W)}upload(R,W,G){return _upload(__privateGet$5(this,ta),__privateGet$5(this,ts),R,W,G)}};ta=new WeakMap,ts=new WeakMap;let AssetsClient=class AssetsClient{constructor(R,W){__privateAdd$5(this,td,void 0),__privateAdd$5(this,tp,void 0),__privateSet$5(this,td,R),__privateSet$5(this,tp,W)}upload(R,W,G){let J=_upload(__privateGet$5(this,td),__privateGet$5(this,tp),R,W,G);return(0,eM.n)(J.pipe((0,eH.h)(R=>"response"===R.type),(0,ez.U)(R=>R.body.document)))}};function _upload(R,W,G,J,et={}){validateAssetType(G);let er=et.extract||void 0;er&&!er.length&&(er=["none"]);let en=hasDataset(R.config()),ei="image"===G?"images":"files",eo=!(typeof File>"u")&&J instanceof File?Object.assign({filename:!1===et.preserveFilename?void 0:J.name,contentType:J.type},et):et,{tag:es,label:ec,title:el,description:eu,creditLine:ed,filename:ep,source:ef}=eo,eh={label:ec,title:el,description:eu,filename:ep,meta:er,creditLine:ed};return ef&&(eh.sourceId=ef.id,eh.sourceName=ef.name,eh.sourceUrl=ef.url),_requestObservable(R,W,{tag:es,method:"POST",timeout:eo.timeout||0,uri:`/assets/${ei}/${en}`,headers:eo.contentType?{"Content-Type":eo.contentType}:{},query:eh,body:J})}td=new WeakMap,tp=new WeakMap;var defaults=(R,W)=>Object.keys(W).concat(Object.keys(R)).reduce((G,J)=>(G[J]=typeof R[J]>"u"?W[J]:R[J],G),{});let pick=(R,W)=>W.reduce((W,G)=>(typeof R[G]>"u"||(W[G]=R[G]),W),{}),tc=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],tl={includeResult:!0};function _listen(R,W,J={}){let{url:et,token:er,withCredentials:en,requestTagPrefix:ei}=this.config(),eo=J.tag&&ei?[ei,J.tag].join("."):J.tag,es={...defaults(J,tl),tag:eo},ec=pick(es,tc),el=encodeQueryString({query:R,params:W,options:{tag:eo,...ec}}),eu=`${et}${_getDataUrl(this,"listen",el)}`;if(eu.length>14800)return new eD.y(R=>R.error(Error("Query too large for listener")));let ed=es.events?es.events:["mutation"],ep=-1!==ed.indexOf("reconnect"),ef={};return(er||en)&&(ef.withCredentials=!0),er&&(ef.headers={Authorization:`Bearer ${er}`}),new eD.y(R=>{let W,J,et=!1,er=!1;function onError(){et||(ep&&R.next({type:"reconnect"}),et||W.readyState!==W.CLOSED||(unsubscribe(),clearTimeout(J),J=setTimeout(open,100)))}function onChannelError(W){R.error(function(R){if(R instanceof Error)return R;let W=parseEvent$1(R);return W instanceof Error?W:Error(W.error?W.error.description?W.error.description:"string"==typeof W.error?W.error:JSON.stringify(W.error,null,2):W.message||"Unknown listener error")}(W))}function onMessage(W){let G=parseEvent$1(W);return G instanceof Error?R.error(G):R.next(G)}function onDisconnect(){et=!0,unsubscribe(),R.complete()}function unsubscribe(){W&&(W.removeEventListener("error",onError),W.removeEventListener("channelError",onChannelError),W.removeEventListener("disconnect",onDisconnect),ed.forEach(R=>W.removeEventListener(R,onMessage)),W.close())}async function getEventSource(){let{default:R}=await Promise.all([G.e(8541),G.e(3699)]).then(G.t.bind(G,33699,19));if(er)return;let W=new R(eu,ef);return W.addEventListener("error",onError),W.addEventListener("channelError",onChannelError),W.addEventListener("disconnect",onDisconnect),ed.forEach(R=>W.addEventListener(R,onMessage)),W}function open(){getEventSource().then(R=>{R&&(W=R,er&&unsubscribe())}).catch(W=>{R.error(W),stop()})}function stop(){et=!0,unsubscribe(),er=!0}return open(),stop})}function parseEvent$1(R){try{let W=R.data&&JSON.parse(R.data)||{};return Object.assign({type:R.type},W)}catch(R){return R}}var __accessCheck$4=(R,W,G)=>{if(!W.has(R))throw TypeError("Cannot "+G)},__privateGet$4=(R,W,G)=>(__accessCheck$4(R,W,"read from private field"),G?G.call(R):W.get(R)),__privateAdd$4=(R,W,G)=>{if(W.has(R))throw TypeError("Cannot add the same private member more than once");W instanceof WeakSet?W.add(R):W.set(R,G)},__privateSet$4=(R,W,G,J)=>(__accessCheck$4(R,W,"write to private field"),W.set(R,G),G);let tu="2021-03-26";let LiveClient=class LiveClient{constructor(R){__privateAdd$4(this,tf,void 0),__privateSet$4(this,tf,R)}events(){let R=__privateGet$4(this,tf).config().apiVersion.replace(/^v/,"");if("X"!==R&&R<tu)throw Error(`The live events API requires API version ${tu} or later. The current API version is ${R}. Please update your API version to use this feature.`);let W=_getDataUrl(__privateGet$4(this,tf),"live/events"),J=new URL(__privateGet$4(this,tf).getUrl(W,!1)),et=["restart","message"];return new eD.y(R=>{let W,er,en=!1,ei=!1;function onError(G){if(!en){if("data"in G){let W=parseEvent(G);R.error(Error(W.message,{cause:W}))}W.readyState===W.CLOSED&&(unsubscribe(),clearTimeout(er),er=setTimeout(open,100))}}function onMessage(W){let G=parseEvent(W);return G instanceof Error?R.error(G):R.next(G)}function unsubscribe(){if(W){for(let R of(W.removeEventListener("error",onError),et))W.removeEventListener(R,onMessage);W.close()}}async function getEventSource(){let R=typeof EventSource>"u"?(await Promise.all([G.e(8541),G.e(3699)]).then(G.t.bind(G,33699,19))).default:EventSource;if(ei)return;let W=new R(J.toString());for(let R of(W.addEventListener("error",onError),et))W.addEventListener(R,onMessage);return W}function open(){getEventSource().then(R=>{R&&(W=R,ei&&unsubscribe())}).catch(W=>{R.error(W),stop()})}function stop(){en=!0,unsubscribe(),ei=!0}return open(),stop})}};function parseEvent(R){try{let W=R.data&&JSON.parse(R.data)||{};return{type:R.type,id:R.lastEventId,...W}}catch(R){return R}}tf=new WeakMap;var td,tp,tf,th,tg,__accessCheck$3=(R,W,G)=>{if(!W.has(R))throw TypeError("Cannot "+G)},__privateGet$3=(R,W,G)=>(__accessCheck$3(R,W,"read from private field"),G?G.call(R):W.get(R)),__privateAdd$3=(R,W,G)=>{if(W.has(R))throw TypeError("Cannot add the same private member more than once");W instanceof WeakSet?W.add(R):W.set(R,G)},__privateSet$3=(R,W,G,J)=>(__accessCheck$3(R,W,"write to private field"),W.set(R,G),G);let ObservableDatasetsClient=class ObservableDatasetsClient{constructor(R,W){__privateAdd$3(this,th,void 0),__privateAdd$3(this,tg,void 0),__privateSet$3(this,th,R),__privateSet$3(this,tg,W)}create(R,W){return _modify(__privateGet$3(this,th),__privateGet$3(this,tg),"PUT",R,W)}edit(R,W){return _modify(__privateGet$3(this,th),__privateGet$3(this,tg),"PATCH",R,W)}delete(R){return _modify(__privateGet$3(this,th),__privateGet$3(this,tg),"DELETE",R)}list(){return _request(__privateGet$3(this,th),__privateGet$3(this,tg),{uri:"/datasets",tag:null})}};th=new WeakMap,tg=new WeakMap;let DatasetsClient=class DatasetsClient{constructor(R,W){__privateAdd$3(this,tm,void 0),__privateAdd$3(this,ty,void 0),__privateSet$3(this,tm,R),__privateSet$3(this,ty,W)}create(R,W){return(0,eM.n)(_modify(__privateGet$3(this,tm),__privateGet$3(this,ty),"PUT",R,W))}edit(R,W){return(0,eM.n)(_modify(__privateGet$3(this,tm),__privateGet$3(this,ty),"PATCH",R,W))}delete(R){return(0,eM.n)(_modify(__privateGet$3(this,tm),__privateGet$3(this,ty),"DELETE",R))}list(){return(0,eM.n)(_request(__privateGet$3(this,tm),__privateGet$3(this,ty),{uri:"/datasets",tag:null}))}};function _modify(R,W,G,J,et){return dataset(J),_request(R,W,{method:G,uri:`/datasets/${J}`,body:et,tag:null})}tm=new WeakMap,ty=new WeakMap;var tm,ty,tv,tb,__accessCheck$2=(R,W,G)=>{if(!W.has(R))throw TypeError("Cannot "+G)},__privateGet$2=(R,W,G)=>(__accessCheck$2(R,W,"read from private field"),G?G.call(R):W.get(R)),__privateAdd$2=(R,W,G)=>{if(W.has(R))throw TypeError("Cannot add the same private member more than once");W instanceof WeakSet?W.add(R):W.set(R,G)},__privateSet$2=(R,W,G,J)=>(__accessCheck$2(R,W,"write to private field"),W.set(R,G),G);let ObservableProjectsClient=class ObservableProjectsClient{constructor(R,W){__privateAdd$2(this,tv,void 0),__privateAdd$2(this,tb,void 0),__privateSet$2(this,tv,R),__privateSet$2(this,tb,W)}list(R){let W=(null==R?void 0:R.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return _request(__privateGet$2(this,tv),__privateGet$2(this,tb),{uri:W})}getById(R){return _request(__privateGet$2(this,tv),__privateGet$2(this,tb),{uri:`/projects/${R}`})}};tv=new WeakMap,tb=new WeakMap;let ProjectsClient=class ProjectsClient{constructor(R,W){__privateAdd$2(this,t_,void 0),__privateAdd$2(this,tx,void 0),__privateSet$2(this,t_,R),__privateSet$2(this,tx,W)}list(R){let W=(null==R?void 0:R.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return(0,eM.n)(_request(__privateGet$2(this,t_),__privateGet$2(this,tx),{uri:W}))}getById(R){return(0,eM.n)(_request(__privateGet$2(this,t_),__privateGet$2(this,tx),{uri:`/projects/${R}`}))}};t_=new WeakMap,tx=new WeakMap;var t_,tx,tw,tS,__accessCheck$1=(R,W,G)=>{if(!W.has(R))throw TypeError("Cannot "+G)},__privateGet$1=(R,W,G)=>(__accessCheck$1(R,W,"read from private field"),G?G.call(R):W.get(R)),__privateAdd$1=(R,W,G)=>{if(W.has(R))throw TypeError("Cannot add the same private member more than once");W instanceof WeakSet?W.add(R):W.set(R,G)},__privateSet$1=(R,W,G,J)=>(__accessCheck$1(R,W,"write to private field"),W.set(R,G),G);let ObservableUsersClient=class ObservableUsersClient{constructor(R,W){__privateAdd$1(this,tw,void 0),__privateAdd$1(this,tS,void 0),__privateSet$1(this,tw,R),__privateSet$1(this,tS,W)}getById(R){return _request(__privateGet$1(this,tw),__privateGet$1(this,tS),{uri:`/users/${R}`})}};tw=new WeakMap,tS=new WeakMap;let UsersClient=class UsersClient{constructor(R,W){__privateAdd$1(this,tT,void 0),__privateAdd$1(this,tO,void 0),__privateSet$1(this,tT,R),__privateSet$1(this,tO,W)}getById(R){return(0,eM.n)(_request(__privateGet$1(this,tT),__privateGet$1(this,tO),{uri:`/users/${R}`}))}};tT=new WeakMap,tO=new WeakMap;var tT,tO,tP,tC,tk=Object.defineProperty,index_browser_defNormalProp=(R,W,G)=>W in R?tk(R,W,{enumerable:!0,configurable:!0,writable:!0,value:G}):R[W]=G,index_browser_publicField=(R,W,G)=>(index_browser_defNormalProp(R,"symbol"!=typeof W?W+"":W,G),G),index_browser_accessCheck=(R,W,G)=>{if(!W.has(R))throw TypeError("Cannot "+G)},index_browser_privateGet=(R,W,G)=>(index_browser_accessCheck(R,W,"read from private field"),G?G.call(R):W.get(R)),index_browser_privateAdd=(R,W,G)=>{if(W.has(R))throw TypeError("Cannot add the same private member more than once");W instanceof WeakSet?W.add(R):W.set(R,G)},index_browser_privateSet=(R,W,G,J)=>(index_browser_accessCheck(R,W,"write to private field"),W.set(R,G),G);let tE=class _ObservableSanityClient2{constructor(R,W=e7){index_browser_publicField(this,"assets"),index_browser_publicField(this,"datasets"),index_browser_publicField(this,"live"),index_browser_publicField(this,"projects"),index_browser_publicField(this,"users"),index_browser_privateAdd(this,tP,void 0),index_browser_privateAdd(this,tC,void 0),index_browser_publicField(this,"listen",_listen),this.config(W),index_browser_privateSet(this,tC,R),this.assets=new ObservableAssetsClient(this,index_browser_privateGet(this,tC)),this.datasets=new ObservableDatasetsClient(this,index_browser_privateGet(this,tC)),this.live=new LiveClient(this),this.projects=new ObservableProjectsClient(this,index_browser_privateGet(this,tC)),this.users=new ObservableUsersClient(this,index_browser_privateGet(this,tC))}clone(){return new _ObservableSanityClient2(index_browser_privateGet(this,tC),this.config())}config(R){if(void 0===R)return{...index_browser_privateGet(this,tP)};if(index_browser_privateGet(this,tP)&&!1===index_browser_privateGet(this,tP).allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return index_browser_privateSet(this,tP,initConfig(R,index_browser_privateGet(this,tP)||{})),this}withConfig(R){let W=this.config();return new _ObservableSanityClient2(index_browser_privateGet(this,tC),{...W,...R,stega:{...W.stega||{},..."boolean"==typeof(null==R?void 0:R.stega)?{enabled:R.stega}:(null==R?void 0:R.stega)||{}}})}fetch(R,W,G){return _fetch(this,index_browser_privateGet(this,tC),index_browser_privateGet(this,tP).stega,R,W,G)}getDocument(R,W){return _getDocument(this,index_browser_privateGet(this,tC),R,W)}getDocuments(R,W){return _getDocuments(this,index_browser_privateGet(this,tC),R,W)}create(R,W){return _create(this,index_browser_privateGet(this,tC),R,"create",W)}createIfNotExists(R,W){return _createIfNotExists(this,index_browser_privateGet(this,tC),R,W)}createOrReplace(R,W){return _createOrReplace(this,index_browser_privateGet(this,tC),R,W)}delete(R,W){return _delete(this,index_browser_privateGet(this,tC),R,W)}mutate(R,W){return _mutate(this,index_browser_privateGet(this,tC),R,W)}patch(R,W){return new eX(R,W,this)}transaction(R){return new e2(R,this)}action(R,W){return _action(this,index_browser_privateGet(this,tC),R,W)}request(R){return _request(this,index_browser_privateGet(this,tC),R)}getUrl(R,W){return _getUrl(this,R,W)}getDataUrl(R,W){return _getDataUrl(this,R,W)}};tP=new WeakMap,tC=new WeakMap;let tj=class _SanityClient2{constructor(R,W=e7){index_browser_publicField(this,"assets"),index_browser_publicField(this,"datasets"),index_browser_publicField(this,"live"),index_browser_publicField(this,"projects"),index_browser_publicField(this,"users"),index_browser_publicField(this,"observable"),index_browser_privateAdd(this,es,void 0),index_browser_privateAdd(this,ec,void 0),index_browser_publicField(this,"listen",_listen),this.config(W),index_browser_privateSet(this,ec,R),this.assets=new AssetsClient(this,index_browser_privateGet(this,ec)),this.datasets=new DatasetsClient(this,index_browser_privateGet(this,ec)),this.live=new LiveClient(this),this.projects=new ProjectsClient(this,index_browser_privateGet(this,ec)),this.users=new UsersClient(this,index_browser_privateGet(this,ec)),this.observable=new tE(R,W)}clone(){return new _SanityClient2(index_browser_privateGet(this,ec),this.config())}config(R){if(void 0===R)return{...index_browser_privateGet(this,es)};if(index_browser_privateGet(this,es)&&!1===index_browser_privateGet(this,es).allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(R),index_browser_privateSet(this,es,initConfig(R,index_browser_privateGet(this,es)||{})),this}withConfig(R){let W=this.config();return new _SanityClient2(index_browser_privateGet(this,ec),{...W,...R,stega:{...W.stega||{},..."boolean"==typeof(null==R?void 0:R.stega)?{enabled:R.stega}:(null==R?void 0:R.stega)||{}}})}fetch(R,W,G){return(0,eM.n)(_fetch(this,index_browser_privateGet(this,ec),index_browser_privateGet(this,es).stega,R,W,G))}getDocument(R,W){return(0,eM.n)(_getDocument(this,index_browser_privateGet(this,ec),R,W))}getDocuments(R,W){return(0,eM.n)(_getDocuments(this,index_browser_privateGet(this,ec),R,W))}create(R,W){return(0,eM.n)(_create(this,index_browser_privateGet(this,ec),R,"create",W))}createIfNotExists(R,W){return(0,eM.n)(_createIfNotExists(this,index_browser_privateGet(this,ec),R,W))}createOrReplace(R,W){return(0,eM.n)(_createOrReplace(this,index_browser_privateGet(this,ec),R,W))}delete(R,W){return(0,eM.n)(_delete(this,index_browser_privateGet(this,ec),R,W))}mutate(R,W){return(0,eM.n)(_mutate(this,index_browser_privateGet(this,ec),R,W))}patch(R,W){return new eQ(R,W,this)}transaction(R){return new e1(R,this)}action(R,W){return(0,eM.n)(_action(this,index_browser_privateGet(this,ec),R,W))}request(R){return(0,eM.n)(_request(this,index_browser_privateGet(this,ec),R))}dataRequest(R,W,G){return(0,eM.n)(_dataRequest(this,index_browser_privateGet(this,ec),R,W,G))}getUrl(R,W){return _getUrl(this,R,W)}getDataUrl(R,W){return _getDataUrl(this,R,W)}};es=new WeakMap,ec=new WeakMap;let tA=tj,tD=function(R,W){var G;let J=getIt([retry({shouldRetry}),...R,eG,{processOptions:R=>{let W=R.body;return W&&"function"!=typeof W.pipe&&!eO(W)&&(-1!==eP.indexOf(typeof W)||Array.isArray(W)||function(R){if(!1===isObject(R))return!1;let W=R.constructor;if(void 0===W)return!0;let G=W.prototype;return!(!1===isObject(G)||!1===G.hasOwnProperty("isPrototypeOf"))}(W))?Object.assign({},R,{body:JSON.stringify(R.body),headers:Object.assign({},R.headers,{"Content-Type":"application/json"})}):R}},{onResponse:R=>{let W=R.headers["content-type"]||"",J=G&&G.force||-1!==W.indexOf("application/json");return R.body&&W&&J?Object.assign({},R,{body:function(R){try{return JSON.parse(R)}catch(R){throw R.message=`Failed to parsed response body as JSON: ${R.message}`,R}}(R.body)}):R},processOptions:R=>Object.assign({},R,{headers:Object.assign({Accept:"application/json"},R.headers)})},{onRequest:R=>{if("xhr"!==R.adapter)return;let W=R.request,G=R.context;function handleProgress(R){return W=>{let J=W.lengthComputable?W.loaded/W.total*100:-1;G.channels.progress.publish({stage:R,percent:J,total:W.total,loaded:W.loaded,lengthComputable:W.lengthComputable})}}"upload"in W&&"onprogress"in W.upload&&(W.upload.onprogress=handleProgress("upload")),"onprogress"in W&&(W.onprogress=handleProgress("download"))}},eW,function(R={}){let W=R.implementation||ek.Observable;if(!W)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(R,G)=>new W(W=>(R.error.subscribe(R=>W.error(R)),R.progress.subscribe(R=>W.next(Object.assign({type:"progress"},R))),R.response.subscribe(R=>{W.next(Object.assign({type:"response"},R)),W.complete()}),R.request.publish(G),()=>R.abort.publish()))}}({implementation:eD.y})]);return{requester:J,createClient:R=>new W((W,G)=>(G||J)({maxRedirects:0,maxRetries:R.maxRetries,retryDelay:R.retryDelay,...W}),R)}}([],tA),tI=tD.requester,tM=tD.createClient},34670:function(R,W,G){"use strict";G.d(W,{P:function(){return parseNormalisedJsonPath},s:function(){return normalisedJsonPath}});let J={"\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","'":"\\'","\\":"\\\\"},et={"\\f":"\f","\\n":"\n","\\r":"\r","\\t":"	","\\'":"'","\\\\":"\\"};function normalisedJsonPath(R){return"$".concat(R.map(R=>{if("string"==typeof R){let W=R.replace(/[\f\n\r\t'\\]/g,R=>J[R]);return"['".concat(W,"']")}return"[".concat(R,"]")}).join(""))}function parseNormalisedJsonPath(R){let W;let G=[],J=/\['(.*?)'\]|\[(\d+)\]/g;for(;null!==(W=J.exec(R));){if(void 0!==W[1]){let R=W[1].replace(/\\(\\|f|n|r|t|')/g,R=>et[R]);G.push(R);continue}if(void 0!==W[2]){G.push(parseInt(W[2],10));continue}}return G}},44031:function(R,W,G){"use strict";G.d(W,{Mx:function(){return resolveMapping},cv:function(){return encode},lV:function(){return walkMap}});var J=G(34670);function encode(R,W,G){return walkMap(R,(R,et)=>{if("string"!=typeof R)return R;let er=resolveMapping(et,W);if(!er)return R;let[en,,ei]=er;if("value"!==en.type||"documentValue"!==en.source.type)return R;let eo=W.documents[en.source.document],es=W.paths[en.source.path];return G(R,eo,(0,J.P)(es+ei))})}function walkMap(R,W){let G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return null!==R&&Array.isArray(R)?R.map((R,J)=>walkMap(R,W,G.concat(J))):"object"==typeof R&&null!==R?Object.fromEntries(Object.entries(R).map(R=>{let[J,et]=R;return[J,walkMap(et,W,G.concat(J))]})):W(R,G)}function resolveMapping(R,W,G){var et;let er=(0,J.s)(R);if(!W.mappings){null==(et=null==G?void 0:G.error)||et.call(G,"Missing mappings",{resultSourceMap:W});return}if(void 0!==W.mappings[er])return[W.mappings[er],er,""];let en=Object.entries(W.mappings).filter(R=>{let[W]=R;return er.startsWith(W)}).sort((R,W)=>{let[G]=R,[J]=W;return J.length-G.length});if(0==en.length)return;let[ei,eo]=en[0],es=er.substring(ei.length);return[eo,ei,es]}},86819:function(R,W,G){"use strict";G.d(W,{n8:function(){return b},uy:function(){return X}});var J={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},et={0:8203,1:8204,2:8205,3:65279},er=[,,,,].fill(String.fromCodePoint(et[0])).join("");function b(R,W,G="auto"){let J;return!0===G||"auto"===G&&(Number.isNaN(Number(R))&&Date.parse(R)||function(R){try{new URL(R,R.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(R))?R:`${R}${J=JSON.stringify(W),`${er}${Array.from(J).map(R=>{let W=R.charCodeAt(0);if(W>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${J} on character ${R} (${W})`);return Array.from(W.toString(4).padStart(4,"0")).map(R=>String.fromCodePoint(et[R])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(et).map(R=>R.reverse())),Object.fromEntries(Object.entries(J).map(R=>R.reverse()));var en=`${Object.values(J).map(R=>`\\u{${R.toString(16)}}`).join("")}`,ei=RegExp(`[${en}]{4,}`,"gu");function X(R){var W;return{cleaned:R.replace(ei,""),encoded:(null==(W=R.match(ei))?void 0:W[0])||""}}},90512:function(R,W,G){"use strict";W.Z=function(){for(var R,W,G=0,J="";G<arguments.length;)(R=arguments[G++])&&(W=function r(R){var W,G,J="";if("string"==typeof R||"number"==typeof R)J+=R;else if("object"==typeof R){if(Array.isArray(R))for(W=0;W<R.length;W++)R[W]&&(G=r(R[W]))&&(J&&(J+=" "),J+=G);else for(W in R)R[W]&&(J&&(J+=" "),J+=W)}return J}(R))&&(J&&(J+=" "),J+=W);return J}},1771:function(R,W,G){"use strict";G.d(W,{Z:function(){return band},x:function(){return point}});var J=G(94182),et=G(46244);function band(){var R,W,G=(0,et.Z)().unknown(void 0),er=G.domain,en=G.range,ei=0,eo=1,es=!1,ec=0,el=0,eu=.5;function rescale(){var G=er().length,J=eo<ei,et=J?eo:ei,ed=J?ei:eo;R=(ed-et)/Math.max(1,G-ec+2*el),es&&(R=Math.floor(R)),et+=(ed-et-R*(G-ec))*eu,W=R*(1-ec),es&&(et=Math.round(et),W=Math.round(W));var ep=(function(R,W,G){R=+R,W=+W,G=(et=arguments.length)<2?(W=R,R=0,1):et<3?1:+G;for(var J=-1,et=0|Math.max(0,Math.ceil((W-R)/G)),er=Array(et);++J<et;)er[J]=R+J*G;return er})(G).map(function(W){return et+R*W});return en(J?ep.reverse():ep)}return delete G.unknown,G.domain=function(R){return arguments.length?(er(R),rescale()):er()},G.range=function(R){return arguments.length?([ei,eo]=R,ei=+ei,eo=+eo,rescale()):[ei,eo]},G.rangeRound=function(R){return[ei,eo]=R,ei=+ei,eo=+eo,es=!0,rescale()},G.bandwidth=function(){return W},G.step=function(){return R},G.round=function(R){return arguments.length?(es=!!R,rescale()):es},G.padding=function(R){return arguments.length?(ec=Math.min(1,el=+R),rescale()):ec},G.paddingInner=function(R){return arguments.length?(ec=Math.min(1,R),rescale()):ec},G.paddingOuter=function(R){return arguments.length?(el=+R,rescale()):el},G.align=function(R){return arguments.length?(eu=Math.max(0,Math.min(1,R)),rescale()):eu},G.copy=function(){return band(er(),[ei,eo]).round(es).paddingInner(ec).paddingOuter(el).align(eu)},J.o.apply(rescale(),arguments)}function point(){return function pointish(R){var W=R.copy;return R.padding=R.paddingOuter,delete R.paddingInner,delete R.paddingOuter,R.copy=function(){return pointish(W())},R}(band.apply(null,arguments).paddingInner(1))}},94182:function(R,W,G){"use strict";function initRange(R,W){switch(arguments.length){case 0:break;case 1:this.range(R);break;default:this.range(W).domain(R)}return this}function initInterpolator(R,W){switch(arguments.length){case 0:break;case 1:"function"==typeof R?this.interpolator(R):this.range(R);break;default:this.domain(R),"function"==typeof W?this.interpolator(W):this.range(W)}return this}G.d(W,{O:function(){return initInterpolator},o:function(){return initRange}})},46244:function(R,W,G){"use strict";G.d(W,{Z:function(){return function ordinal(){var R=new InternMap,W=[],G=[],er=et;function scale(J){let en=R.get(J);if(void 0===en){if(er!==et)return er;R.set(J,en=W.push(J)-1)}return G[en%G.length]}return scale.domain=function(G){if(!arguments.length)return W.slice();for(let J of(W=[],R=new InternMap,G))R.has(J)||R.set(J,W.push(J)-1);return scale},scale.range=function(R){return arguments.length?(G=Array.from(R),scale):G.slice()},scale.unknown=function(R){return arguments.length?(er=R,scale):er},scale.copy=function(){return ordinal(W,G).unknown(er)},J.o.apply(scale,arguments),scale}},O:function(){return et}});let InternMap=class InternMap extends Map{constructor(R,W=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:W}}),null!=R)for(let[W,G]of R)this.set(W,G)}get(R){return super.get(intern_get(this,R))}has(R){return super.has(intern_get(this,R))}set(R,W){return super.set(function({_intern:R,_key:W},G){let J=W(G);return R.has(J)?R.get(J):(R.set(J,G),G)}(this,R),W)}delete(R){return super.delete(function({_intern:R,_key:W},G){let J=W(G);return R.has(J)&&(G=R.get(J),R.delete(J)),G}(this,R))}};function intern_get({_intern:R,_key:W},G){let J=W(G);return R.has(J)?R.get(J):G}function keyof(R){return null!==R&&"object"==typeof R?R.valueOf():R}var J=G(94182);let et=Symbol("implicit")},94788:function(R,W,G){"use strict";function __WEBPACK_DEFAULT_EXPORT__(R){return"object"==typeof R&&"length"in R?R:Array.from(R)}G.d(W,{Z:function(){return __WEBPACK_DEFAULT_EXPORT__}}),Array.prototype.slice},20309:function(R,W,G){"use strict";function __WEBPACK_DEFAULT_EXPORT__(R){return function(){return R}}G.d(W,{Z:function(){return __WEBPACK_DEFAULT_EXPORT__}})},52882:function(R,W,G){"use strict";G.d(W,{d:function(){return withPath}});let J=Math.PI,et=2*J,er=et-1e-6;function append(R){this._+=R[0];for(let W=1,G=R.length;W<G;++W)this._+=arguments[W]+R[W]}let Path=class Path{constructor(R){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==R?append:function(R){let W=Math.floor(R);if(!(W>=0))throw Error(`invalid digits: ${R}`);if(W>15)return append;let G=10**W;return function(R){this._+=R[0];for(let W=1,J=R.length;W<J;++W)this._+=Math.round(arguments[W]*G)/G+R[W]}}(R)}moveTo(R,W){this._append`M${this._x0=this._x1=+R},${this._y0=this._y1=+W}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(R,W){this._append`L${this._x1=+R},${this._y1=+W}`}quadraticCurveTo(R,W,G,J){this._append`Q${+R},${+W},${this._x1=+G},${this._y1=+J}`}bezierCurveTo(R,W,G,J,et,er){this._append`C${+R},${+W},${+G},${+J},${this._x1=+et},${this._y1=+er}`}arcTo(R,W,G,et,er){if(R=+R,W=+W,G=+G,et=+et,(er=+er)<0)throw Error(`negative radius: ${er}`);let en=this._x1,ei=this._y1,eo=G-R,es=et-W,ec=en-R,el=ei-W,eu=ec*ec+el*el;if(null===this._x1)this._append`M${this._x1=R},${this._y1=W}`;else if(eu>1e-6){if(Math.abs(el*eo-es*ec)>1e-6&&er){let ed=G-en,ep=et-ei,ef=eo*eo+es*es,eh=Math.sqrt(ef),eg=Math.sqrt(eu),em=er*Math.tan((J-Math.acos((ef+eu-(ed*ed+ep*ep))/(2*eh*eg)))/2),ey=em/eg,ev=em/eh;Math.abs(ey-1)>1e-6&&this._append`L${R+ey*ec},${W+ey*el}`,this._append`A${er},${er},0,0,${+(el*ed>ec*ep)},${this._x1=R+ev*eo},${this._y1=W+ev*es}`}else this._append`L${this._x1=R},${this._y1=W}`}}arc(R,W,G,en,ei,eo){if(R=+R,W=+W,eo=!!eo,(G=+G)<0)throw Error(`negative radius: ${G}`);let es=G*Math.cos(en),ec=G*Math.sin(en),el=R+es,eu=W+ec,ed=1^eo,ep=eo?en-ei:ei-en;null===this._x1?this._append`M${el},${eu}`:(Math.abs(this._x1-el)>1e-6||Math.abs(this._y1-eu)>1e-6)&&this._append`L${el},${eu}`,G&&(ep<0&&(ep=ep%et+et),ep>er?this._append`A${G},${G},0,1,${ed},${R-es},${W-ec}A${G},${G},0,1,${ed},${this._x1=el},${this._y1=eu}`:ep>1e-6&&this._append`A${G},${G},0,${+(ep>=J)},${ed},${this._x1=R+G*Math.cos(ei)},${this._y1=W+G*Math.sin(ei)}`)}rect(R,W,G,J){this._append`M${this._x0=this._x1=+R},${this._y0=this._y1=+W}h${G=+G}v${+J}h${-G}Z`}toString(){return this._}};function withPath(R){let W=3;return R.digits=function(G){if(!arguments.length)return W;if(null==G)W=null;else{let R=Math.floor(G);if(!(R>=0))throw RangeError(`invalid digits: ${G}`);W=R}return R},()=>new Path(W)}Path.prototype},52587:function(R,W,G){"use strict";function _arrayLikeToArray(R,W){(null==W||W>R.length)&&(W=R.length);for(var G=0,J=Array(W);G<W;G++)J[G]=R[G];return J}G.d(W,{Z:function(){return _arrayLikeToArray}})},50029:function(R,W,G){"use strict";function asyncGeneratorStep(R,W,G,J,et,er,en){try{var ei=R[er](en),eo=ei.value}catch(R){G(R);return}ei.done?W(eo):Promise.resolve(eo).then(J,et)}function _asyncToGenerator(R){return function(){var W=this,G=arguments;return new Promise(function(J,et){var er=R.apply(W,G);function _next(R){asyncGeneratorStep(er,J,et,_next,_throw,"next",R)}function _throw(R){asyncGeneratorStep(er,J,et,_next,_throw,"throw",R)}_next(void 0)})}}G.d(W,{Z:function(){return _asyncToGenerator}})},59499:function(R,W,G){"use strict";function _defineProperty(R,W,G){return W in R?Object.defineProperty(R,W,{value:G,enumerable:!0,configurable:!0,writable:!0}):R[W]=G,R}G.d(W,{Z:function(){return _defineProperty}})},77191:function(R,W,G){"use strict";function _objectDestructuringEmpty(R){if(null==R)throw TypeError("Cannot destructure undefined")}G.d(W,{Z:function(){return _objectDestructuringEmpty}})},4730:function(R,W,G){"use strict";function _objectWithoutProperties(R,W){if(null==R)return{};var G,J,et=function(R,W){if(null==R)return{};var G,J,et={},er=Object.keys(R);for(J=0;J<er.length;J++)G=er[J],W.indexOf(G)>=0||(et[G]=R[G]);return et}(R,W);if(Object.getOwnPropertySymbols){var er=Object.getOwnPropertySymbols(R);for(J=0;J<er.length;J++)G=er[J],!(W.indexOf(G)>=0)&&Object.prototype.propertyIsEnumerable.call(R,G)&&(et[G]=R[G])}return et}G.d(W,{Z:function(){return _objectWithoutProperties}})},16835:function(R,W,G){"use strict";G.d(W,{Z:function(){return _slicedToArray}});var J=G(2937);function _slicedToArray(R,W){return function(R){if(Array.isArray(R))return R}(R)||function(R,W){var G,J,et=null==R?null:"undefined"!=typeof Symbol&&R[Symbol.iterator]||R["@@iterator"];if(null!=et){var er=[],en=!0,ei=!1;try{for(et=et.call(R);!(en=(G=et.next()).done)&&(er.push(G.value),!W||er.length!==W);en=!0);}catch(R){ei=!0,J=R}finally{try{en||null==et.return||et.return()}finally{if(ei)throw J}}return er}}(R,W)||(0,J.Z)(R,W)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},71383:function(R,W,G){"use strict";function _taggedTemplateLiteral(R,W){return W||(W=R.slice(0)),Object.freeze(Object.defineProperties(R,{raw:{value:Object.freeze(W)}}))}G.d(W,{Z:function(){return _taggedTemplateLiteral}})},27812:function(R,W,G){"use strict";G.d(W,{Z:function(){return _toConsumableArray}});var J=G(52587),et=G(2937);function _toConsumableArray(R){return function(R){if(Array.isArray(R))return(0,J.Z)(R)}(R)||function(R){if("undefined"!=typeof Symbol&&null!=R[Symbol.iterator]||null!=R["@@iterator"])return Array.from(R)}(R)||(0,et.Z)(R)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2937:function(R,W,G){"use strict";G.d(W,{Z:function(){return _unsupportedIterableToArray}});var J=G(52587);function _unsupportedIterableToArray(R,W){if(R){if("string"==typeof R)return(0,J.Z)(R,W);var G=Object.prototype.toString.call(R).slice(8,-1);if("Object"===G&&R.constructor&&(G=R.constructor.name),"Map"===G||"Set"===G)return Array.from(R);if("Arguments"===G||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return(0,J.Z)(R,W)}}},97582:function(R,W,G){"use strict";G.d(W,{CR:function(){return __read},FC:function(){return __asyncGenerator},Jh:function(){return __generator},KL:function(){return __asyncValues},XA:function(){return __values},ZT:function(){return __extends},ev:function(){return __spreadArray},mG:function(){return __awaiter},pi:function(){return __assign},qq:function(){return __await}});var extendStatics=function(R,W){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(R,W){R.__proto__=W}||function(R,W){for(var G in W)Object.prototype.hasOwnProperty.call(W,G)&&(R[G]=W[G])})(R,W)};function __extends(R,W){if("function"!=typeof W&&null!==W)throw TypeError("Class extends value "+String(W)+" is not a constructor or null");function __(){this.constructor=R}extendStatics(R,W),R.prototype=null===W?Object.create(W):(__.prototype=W.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(R){for(var W,G=1,J=arguments.length;G<J;G++)for(var et in W=arguments[G])Object.prototype.hasOwnProperty.call(W,et)&&(R[et]=W[et]);return R}).apply(this,arguments)};function __awaiter(R,W,G,J){return new(G||(G=Promise))(function(et,er){function fulfilled(R){try{step(J.next(R))}catch(R){er(R)}}function rejected(R){try{step(J.throw(R))}catch(R){er(R)}}function step(R){var W;R.done?et(R.value):((W=R.value)instanceof G?W:new G(function(R){R(W)})).then(fulfilled,rejected)}step((J=J.apply(R,W||[])).next())})}function __generator(R,W){var G,J,et,er,en={label:0,sent:function(){if(1&et[0])throw et[1];return et[1]},trys:[],ops:[]};return er={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(er[Symbol.iterator]=function(){return this}),er;function verb(ei){return function(eo){return function(ei){if(G)throw TypeError("Generator is already executing.");for(;er&&(er=0,ei[0]&&(en=0)),en;)try{if(G=1,J&&(et=2&ei[0]?J.return:ei[0]?J.throw||((et=J.return)&&et.call(J),0):J.next)&&!(et=et.call(J,ei[1])).done)return et;switch(J=0,et&&(ei=[2&ei[0],et.value]),ei[0]){case 0:case 1:et=ei;break;case 4:return en.label++,{value:ei[1],done:!1};case 5:en.label++,J=ei[1],ei=[0];continue;case 7:ei=en.ops.pop(),en.trys.pop();continue;default:if(!(et=(et=en.trys).length>0&&et[et.length-1])&&(6===ei[0]||2===ei[0])){en=0;continue}if(3===ei[0]&&(!et||ei[1]>et[0]&&ei[1]<et[3])){en.label=ei[1];break}if(6===ei[0]&&en.label<et[1]){en.label=et[1],et=ei;break}if(et&&en.label<et[2]){en.label=et[2],en.ops.push(ei);break}et[2]&&en.ops.pop(),en.trys.pop();continue}ei=W.call(R,en)}catch(R){ei=[6,R],J=0}finally{G=et=0}if(5&ei[0])throw ei[1];return{value:ei[0]?ei[1]:void 0,done:!0}}([ei,eo])}}}function __values(R){var W="function"==typeof Symbol&&Symbol.iterator,G=W&&R[W],J=0;if(G)return G.call(R);if(R&&"number"==typeof R.length)return{next:function(){return R&&J>=R.length&&(R=void 0),{value:R&&R[J++],done:!R}}};throw TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(R,W){var G="function"==typeof Symbol&&R[Symbol.iterator];if(!G)return R;var J,et,er=G.call(R),en=[];try{for(;(void 0===W||W-- >0)&&!(J=er.next()).done;)en.push(J.value)}catch(R){et={error:R}}finally{try{J&&!J.done&&(G=er.return)&&G.call(er)}finally{if(et)throw et.error}}return en}function __spreadArray(R,W,G){if(G||2==arguments.length)for(var J,et=0,er=W.length;et<er;et++)!J&&et in W||(J||(J=Array.prototype.slice.call(W,0,et)),J[et]=W[et]);return R.concat(J||Array.prototype.slice.call(W))}function __await(R){return this instanceof __await?(this.v=R,this):new __await(R)}function __asyncGenerator(R,W,G){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var J,et=G.apply(R,W||[]),er=[];return J={},verb("next"),verb("throw"),verb("return"),J[Symbol.asyncIterator]=function(){return this},J;function verb(R){et[R]&&(J[R]=function(W){return new Promise(function(G,J){er.push([R,W,G,J])>1||resume(R,W)})})}function resume(R,W){try{var G;(G=et[R](W)).value instanceof __await?Promise.resolve(G.value.v).then(fulfill,reject):settle(er[0][2],G)}catch(R){settle(er[0][3],R)}}function fulfill(R){resume("next",R)}function reject(R){resume("throw",R)}function settle(R,W){R(W),er.shift(),er.length&&resume(er[0][0],er[0][1])}}function __asyncValues(R){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var W,G=R[Symbol.asyncIterator];return G?G.call(R):(R=__values(R),W={},verb("next"),verb("throw"),verb("return"),W[Symbol.asyncIterator]=function(){return this},W);function verb(G){W[G]=R[G]&&function(W){return new Promise(function(J,et){!function(R,W,G,J){Promise.resolve(J).then(function(W){R({value:W,done:G})},W)}(J,et,(W=R[G](W)).done,W.value)})}}}"function"==typeof SuppressedError&&SuppressedError}},function(R){var __webpack_exec__=function(W){return R(R.s=W)};R.O(0,[9774,179],function(){return __webpack_exec__(6840),__webpack_exec__(27985)}),_N_E=R.O()}]);