@layers-app/shared 0.0.39-comments.5 → 0.0.39-comments.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.mantine-ColorSwatch-colorOverlay {
|
|
4
4
|
border-radius: ${({swatchShape:e})=>"square"===e?"3px":"50%"};
|
|
5
5
|
}
|
|
6
|
-
`,bj=Object.assign(mj,{ColorCircle:gj}),yj={initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:0},transition:{duration:.3,ease:"easeOut"}};var wj,kj={exports:{}};var xj=(wj||(wj=1,function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",d="quarter",u="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:l,d:s,D:h,h:a,m:o,s:i,ms:r,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=g;var k="$isDayjsObject",x=function(e){return e instanceof M||!(!e||!e[k])},C=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},E=b;E.l=C,E.i=x,E.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[k]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,d=E.p(e),f=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return r?f(1,0):f(31,11);case c:return r?f(1,g):f(0,g+1);case l:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return f(r?v-w:v+(6-w),g);case s:case h:return p(b+"Hours",0);case a:return p(b+"Minutes",1);case o:return p(b+"Seconds",2);case i:return p(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=E.p(e),d="set"+(this.$u?"UTC":""),f=(n={},n[s]=d+"Date",n[h]=d+"Date",n[c]=d+"Month",n[u]=d+"FullYear",n[a]=d+"Hours",n[o]=d+"Minutes",n[i]=d+"Seconds",n[r]=d+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===c||l===u){var m=this.clone().set(h,1);m.$d[f](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,d){var h,f=this;r=Number(r);var p=E.p(d),m=function(e){var t=S(f);return E.w(t.date(t.date()+Math.round(e*r)),f)};if(p===c)return this.set(c,this.$M+r);if(p===u)return this.set(u,this.$y+r);if(p===s)return m(1);if(p===l)return m(7);var g=(h={},h[o]=t,h[a]=n,h[i]=e,h)[p]||1,v=this.$d.getTime()+r*g;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,d=n.meridiem,u=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},h=function(e){return E.s(o%12||12,e,"0")},p=d||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return u(n.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(n.weekdaysMin,t.$W,l,2);case"ddd":return u(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return E.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,f){var p,m=this,g=E.p(h),v=S(r),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,w=function(){return E.m(m,v)};switch(g){case u:p=w()/12;break;case c:p=w();break;case d:p=w()/3;break;case l:p=(y-b)/6048e5;break;case s:p=(y-b)/864e5;break;case a:p=y/n;break;case o:p=y/t;break;case i:p=y/e;break;default:p=y}return f?p:E.a(p)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),T=M.prototype;return S.prototype=T,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",u],["$D",h]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,M,S),e.$i=!0),S},S.locale=C,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[y],S.Ls=w,S.p={},S}()}(kj)),kj.exports);const Cj=sl(xj),Sj={filterPill:"_filterPill_1t38n_1",filterPillLabel:"_filterPillLabel_1t38n_9"},Ej=({setSelectedFilter:e,selectedFilter:r})=>{const{t:s,i18n:l}=i.useTranslation("searchPage"),[c,d]=n.useState([null,null]),[u,h]=n.useState("updatedAt"),f=()=>{e(e=>({...e,range:null})),d([null,null])},p=[{icon:t.jsx(a.IconCalendarEvent,{}),text:s("searchModal.filters.date.today"),range:{createdAtFrom:Cj().startOf("day").valueOf(),createdAtTo:Cj().endOf("day").valueOf()}},{icon:t.jsx(a.IconCalendarEvent,{}),text:s("searchModal.filters.date.last7day"),range:{createdAtFrom:Cj().subtract(7,"days").startOf("day").valueOf(),createdAtTo:Cj().endOf("day").valueOf()}},{icon:t.jsx(a.IconCalendarEvent,{}),text:s("searchModal.filters.date.last30day"),range:{createdAtFrom:Cj().subtract(30,"days").startOf("day").valueOf(),createdAtTo:Cj().endOf("day").valueOf()}}];return t.jsxs(o.Popover,{transitionProps:{duration:150,transition:"fade-down"},withArrow:!0,position:"bottom-start",radius:"md",children:[t.jsx(o.Popover.Target,{children:t.jsxs(o.Pill,{classNames:{root:Sj.filterPill,label:Sj.filterPillLabel},styles:{root:{background:Object.keys((null==r?void 0:r.range)||{}).length?"#228BE61F":"transparent"}},radius:"lg",children:[t.jsx(a.IconCalendarEvent,{size:16}),c[0]&&c[1]?`${Cj(c[0]).format("DD MMM YYYY")} — ${Cj(c[1]).format("DD MMM YYYY")}`:s("searchModal.filters.date.title"),t.jsx(a.IconChevronDown,{size:16})]})}),t.jsx(o.Popover.Dropdown,{p:4,w:270,children:t.jsxs(o.Flex,{gap:0,direction:"column",justify:"start",children:[t.jsxs(o.Flex,{justify:"space-between",w:"100%",children:[t.jsx(o.Select,{comboboxProps:{withinPortal:!1},w:150,classNames:{input:Sj.selectInput},styles:{root:{paddingInline:0,paddingLeft:3},input:{color:"gray",fontSize:12}},defaultValue:u,variant:"unstyled",withCheckIcon:!1,value:u,leftSection:t.jsx(a.IconClockEdit,{size:12}),rightSection:t.jsx(a.IconChevronDown,{size:12}),fz:"xs",px:12,c:"dimmed",onChange:e=>h(t=>e||t),data:[{value:"createdAt",label:s("searchModal.filters.date.created")},{value:"updatedAt",label:s("searchModal.filters.date.edited")}]}),t.jsx(o.Button,{px:12,w:"30%",variant:"subtle",style:{alignSelf:"flex-start"},onClick:f,children:s("clear")})]}),t.jsx(o.Divider,{w:"100%"}),p.map(n=>t.jsx(o.Button,{h:32,fullWidth:!0,leftSection:n.icon,variant:"subtle",fz:"sm",color:"system",onClick:()=>(t=>{var n,i;if((null==(n=null==r?void 0:r.range)?void 0:n.createdAtFrom)===t.createdAtFrom&&(null==(i=null==r?void 0:r.range)?void 0:i.createdAtTo)===t.createdAtTo)f();else{const n=t.createdAtFrom?new window.Date(t.createdAtFrom):null,r=t.createdAtTo?new window.Date(t.createdAtTo):null;d([n,r]),e(e=>({...e,range:{createdAtFrom:t.createdAtFrom||0,createdAtTo:t.createdAtTo||0}}))}})(n.range),styles:{section:{width:16,height:16},inner:{justifyContent:"flex-start"}},children:n.text},n.text)),t.jsx(o.Divider,{w:"100%"}),t.jsx(y.DatePicker,{pt:16,type:"range",value:c,locale:l.language,onChange:t=>{d(t),e(e=>{var n,r;return{...e,range:{createdAtFrom:(null==(n=t[0])?void 0:n.getTime())||0,createdAtTo:(null==(r=t[1])?void 0:r.getTime())||0}}})},allowSingleDateInRange:!0})]})})]})},Mj=({setSelectedFilter:e,selectedFilter:r})=>{var s;const{t:c}=i.useTranslation("searchPage"),[d,{close:u,open:h}]=l.useDisclosure(!1),f=n.useRef(null),p=[{value:"name",text:c("searchModal.filters.sort.matches"),order:"desc"},{value:"createdAt",text:c("searchModal.filters.sort.createdNew"),order:"desc"},{value:"createdAt",text:c("searchModal.filters.sort.createdOld"),order:"asc"},{value:"updatedAt",text:c("searchModal.filters.sort.editedNew"),order:"desc"},{value:"updatedAt",text:c("searchModal.filters.sort.editedOld"),order:"asc"}],m=null==(s=null==r?void 0:r.sort)?void 0:s[0],g=m?Object.keys(m)[0]:null,v=(null==m?void 0:m[g||""])??null,b=p.find(e=>e.value===g&&e.order===(null==v?void 0:v.order));return t.jsx("div",{ref:f,style:{height:22},children:t.jsxs(o.Popover,{clickOutsideEvents:["mouseup","touchend"],withArrow:!0,position:"bottom-start",radius:"md",opened:d,onClose:u,transitionProps:{duration:150,transition:"fade-down"},children:[t.jsx(o.Popover.Target,{children:t.jsxs(o.Pill,{onClick:d?u:h,classNames:{root:Sj.filterPill,label:Sj.filterPillLabel},styles:{root:{background:b?"#228BE61F":"transparent"}},radius:"lg",children:[t.jsx(a.IconArrowsSort,{size:14}),b?b.text:c("searchModal.filters.sort.title"),t.jsx(a.IconChevronDown,{size:16})]})}),t.jsx(o.Popover.Dropdown,{p:4,children:t.jsx(o.Flex,{direction:"column",justify:"start",children:p.map(n=>t.jsx(o.Button,{onClick:()=>(t=>{u(),e(e=>{var n;const r=null==(n=e.sort)?void 0:n[0],i=r?Object.keys(r)[0]:null,o=i?r[i].order:null;return i===t.value&&o===t.order?{...e,sort:[]}:{...e,sort:[{[t.value]:{order:t.order}}]}})})(n),h:32,fullWidth:!0,fz:"sm",variant:"subtle",color:"system",styles:{inner:{justifyContent:"flex-start"}},children:n.text},n.text))})})]})})},Tj=({setSelectedFilter:e,selectedFilter:r,allowedTypes:s})=>{var c,d;const{t:u}=i.useTranslation("searchPage"),h=n.useRef(null),[f,{close:p,open:m}]=l.useDisclosure(!1);n.useEffect(()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&p()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p]);const g=[{value:"PAGE",text:u("searchModal.filters.type.page"),icon:t.jsx(a.IconFileText,{size:16})},{value:"PROJECT",text:u("searchModal.filters.type.project"),icon:t.jsx(a.IconSquareCheck,{size:16})},{value:"FLOW",text:u("searchModal.filters.type.flow"),icon:t.jsx(a.IconGitMerge,{size:16})},{value:"FORM",text:u("searchModal.filters.type.forms"),icon:t.jsx(a.IconForms,{size:16})},{value:"FOLDER",text:u("searchModal.filters.type.cloud"),icon:t.jsx(a.IconCloudComputing,{size:16})}];return t.jsx("div",{ref:h,style:{height:22},children:t.jsxs(o.Popover,{withArrow:!0,position:"bottom-start",radius:"md",transitionProps:{duration:150,transition:"fade-down"},opened:f,withinPortal:!1,onClose:p,closeOnClickOutside:!0,children:[t.jsx(o.Popover.Target,{children:t.jsxs(o.Pill,{onClick:f?p:m,classNames:{root:Sj.filterPill,label:Sj.filterPillLabel},styles:{root:{background:(null==r?void 0:r.type)?"#228BE61F":"transparent"}},children:[(null==r?void 0:r.type)?null==(c=g.find(e=>e.value===r.type))?void 0:c.icon:t.jsx(a.IconFileUnknown,{size:16}),(null==r?void 0:r.type)?null==(d=g.find(e=>e.value===r.type))?void 0:d.text:u("searchModal.filters.type.title"),t.jsx(a.IconChevronDown,{size:16})]})}),t.jsx(o.Popover.Dropdown,{p:4,children:t.jsxs(o.Flex,{direction:"column",justify:"start",gap:0,children:[t.jsx(o.FocusTrap.InitialFocus,{}),g.filter(e=>null==s?void 0:s.includes(e.value)).map(n=>t.jsx(o.FocusTrap,{active:!0,children:t.jsx(o.Button,{onClick:t=>{var i;t.stopPropagation(),t.preventDefault(),i=n.value,p(),(null==r?void 0:r.type)!==i?e(e=>({...e,type:i})):e(e=>({...e,type:r.type}))},h:32,fullWidth:!0,fz:"sm",variant:"subtle",color:"system",leftSection:n.icon,styles:{inner:{justifyContent:"flex-start"}},children:n.text},n.text)}))]})})]})})},Aj=ot(()=>({opened:!1})),jj=()=>{Aj.setState({opened:!1})},Oj=()=>{const{t:e}=i.useTranslation("searchPage"),n=[{symbol:'" "',description:e("searchModal.help.exactPhrase"),example:'"exact phrase"'},{symbol:"*",description:e("searchModal.help.wildcard"),example:"report*",w:20},{symbol:"?",description:e("searchModal.help.singleCharacter"),example:"file_?",w:20},{symbol:"AND",description:e("searchModal.help.andOperator"),example:"task AND report"},{symbol:"+",description:e("searchModal.help.plusOperator"),example:"task +report",w:20},{symbol:"OR",description:e("searchModal.help.orOperator"),example:"task OR report",w:27},{symbol:"/",description:e("searchModal.help.slashOperator"),example:"task /report",w:20},{symbol:"NOT",description:e("searchModal.help.notOperator"),example:"task NOT report"},{symbol:"-",description:e("searchModal.help.minusOperator"),example:"draft -report",w:20},{symbol:"( )",description:e("searchModal.help.parentheses"),example:"(task OR project) AND report"}];return t.jsxs(o.Stack,{gap:"sm",children:[t.jsx(o.Text,{size:"xs",c:"dimmed",children:e("searchModal.help.description")}),t.jsx(o.Stack,{gap:0,pb:12,px:8,children:n.map((e,n)=>t.jsxs(o.Group,{h:48,children:[t.jsx(Tt,{bbw:3,br:6,miw:e.w,fz:12,value:e.symbol,c:"system"}),t.jsx(o.Text,{size:"sm",style:{flex:1},children:e.description}),t.jsx(o.Text,{size:"xs",children:e.example})]},n))})]})},Pj=n.memo(()=>{const{t:e}=i.useTranslation("searchPage"),n=Aj(e=>e.opened);return t.jsx(o.Modal,{opened:n,title:e("searchModal.help.title"),onClose:jj,size:531,radius:"md",centered:!0,styles:{title:{fontSize:14},header:{fontSize:14,padding:"0px 12px 0px 12px"},body:{padding:"0px 12px 0px 12px"}},children:t.jsx(Oj,{})})}),Lj=(e,t)=>{if(!t||!e)return!1;const n=Ij(t);return(!((()=>{if("undefined"==typeof navigator||!navigator.userAgent)return!1;const e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")})()||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox"))||"webm"!==n)&&(e.startsWith("video")||"application/octet-stream"===e&&("mp4"===n||"mov"===n||"webm"===n||"ogv"===n)||"video/quicktime"===e)},Ij=e=>{var t;return null==(t=e.split(".").pop())?void 0:t.toLowerCase()},Nj=(e,t=2)=>{if(!+e)return"0 Bytes";const n=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,r)).toFixed(n))} ${["Bytes","KB","MB","GB"][r]}`},Rj={logo:"_logo_flxan_1",shadow:"_shadow_flxan_13"},Dj=({c:e})=>{const n=zt();return t.jsxs(o.Box,{className:Rj.wrapper,children:[t.jsx("div",{className:Rj.logo,children:t.jsx(Ft,{isLink:!1,c:e||(n?"white":"black"),minified:!0})}),t.jsx("div",{className:Rj.shadow})]})};var Bj,zj;var Fj=function(){if(zj)return Bj;function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}zj=1;var t=e(n);function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==al?al:"undefined"!=typeof self?self:{},c={};s=c,function(){var e="undefined"!=typeof window?window:l,t={};for(var n in function(e,t,n){var r;function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var o="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},a=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var r=0;r<n.length;++r){var i=n[r];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{for(var n=a,r=e.split("."),i=0;i<r.length-1;i++){var s=r[i];if(!(s in n))break e;n=n[s]}(s=t(i=n[r=r[r.length-1]]))!=i&&null!=s&&o(n,r,{configurable:!0,writable:!0,value:s})}}function l(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function c(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}function d(e){if(!(e instanceof Array)){e=c(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}s("Symbol",function(e){function t(e,t){this.g=e,o(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0;return function e(i){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(i||"")+"_"+r++,i)}}),s("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var r=a[t[n]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&o(r.prototype,e,{configurable:!0,writable:!0,value:function(){return l(i(this))}})}return e});var u,h="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)u=Object.setPrototypeOf;else{var f;e:{var p={};try{p.__proto__={a:!0},f=p.a;break e}catch(Dy){}f=!1}u=f?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var m=u;function g(e,t){if(e.prototype=h(t.prototype),e.prototype.constructor=e,m)m(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.Wi=t.prototype}function v(){this.B=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.s=0,this.G=this.i=null}function b(e){if(e.B)throw new TypeError("Generator is already running");e.B=!0}function y(e,t){e.i={ef:t,qf:!0},e.g=e.s||e.j}function w(e,t,n){return e.g=n,{value:t}}function k(e){e.g=0}function x(e,t,n){e.s=t,null!=n&&(e.j=n)}function C(e){e.s=0,e.j=2}function S(e,t,n){e.g=t,e.s=n||0}function E(e,t){e.s=t||0;var n=e.i.ef;return e.i=null,n}function M(e){e.G=[e.i],e.s=0,e.j=0}function T(e,t){var n=e.G.splice(0)[0];(n=e.i=e.i||n)?n.qf?e.g=e.s||e.j:null!=n.D&&e.j<n.D?(e.g=n.D,e.i=null):e.g=e.j:e.g=t}function A(e){this.g=new v,this.h=e}function j(e,t,n,r){try{var i=t.call(e.g.l,n);if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object");if(!i.done)return e.g.B=!1,i;var o=i.value}catch(a){return e.g.l=null,y(e.g,a),O(e)}return e.g.l=null,r.call(e.g,o),O(e)}function O(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.B=!1,{value:t.value,done:!1}}catch(n){e.g.h=void 0,y(e.g,n)}if(e.g.B=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.qf)throw t.ef;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function P(e){this.next=function(t){return b(e.g),e.g.l?t=j(e,e.g.l.next,t,e.g.C):(e.g.C(t),t=O(e)),t},this.throw=function(t){return b(e.g),e.g.l?t=j(e,e.g.l.throw,t,e.g.C):(y(e.g,t),t=O(e)),t},this.return=function(t){return function(e,t){b(e.g);var n=e.g.l;return n?j(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),O(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function L(e,t){var n=new P(new A(t));return m&&e.prototype&&m(n,e.prototype),n}function I(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise(function(r,i){!function e(o){o.done?r(o.value):Promise.resolve(o.value).then(t,n).then(e,i)}(e.next())})}(new P(new A(e)))}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}function D(e,t,n){e instanceof String&&(e=String(e));for(var r=e.length,i=0;i<r;i++){var o=e[i];if(t.call(n,o,i,e))return{wa:i,v:o}}return{wa:-1,v:void 0}}function B(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}v.prototype.C=function(e){this.h=e},v.prototype.return=function(e){this.i={return:e},this.g=this.j},v.prototype.D=function(e){this.g=e},s("Promise",function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.B=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(n){t.reject(n)}}function n(){this.g=null}function r(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i(function(){t.l()})}this.g.push(e)};var i=a.setTimeout;n.prototype.i=function(e){i(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(r){this.j(r)}}}this.g=null},n.prototype.j=function(e){this.i(function(){throw e})},t.prototype.j=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.L),reject:e(this.l)}},t.prototype.L=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.P(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.J(e):this.s(e)}},t.prototype.J=function(e){var t=void 0;try{t=e.then}catch(n){return void this.l(n)}"function"==typeof t?this.S(t,e):this.s(e)},t.prototype.l=function(e){this.C(2,e)},t.prototype.s=function(e){this.C(1,e)},t.prototype.C=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.M(),this.G()},t.prototype.M=function(){var e=this;i(function(){if(e.I()){var t=a.console;void 0!==t&&t.error(e.i)}},1)},t.prototype.I=function(){if(this.B)return!1;var e=a.CustomEvent,t=a.Event,n=a.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=a.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.G=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)o.h(this.g[e]);this.g=null}};var o=new n;return t.prototype.P=function(e){var t=this.j();e.ld(t.resolve,t.reject)},t.prototype.S=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(r){n.reject(r)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(n){o(n)}}:t}var i,o,a=new t(function(e,t){i=e,o=t});return this.ld(r(e,i),r(n,o)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.ld=function(e,t){function n(){switch(r.h){case 1:e(r.i);break;case 2:t(r.i);break;default:throw Error("Unexpected state: "+r.h)}}var r=this;null==this.g?o.h(n):this.g.push(n),this.B=!0},t.resolve=r,t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var i=c(e),o=i.next();!o.done;o=i.next())r(o.value).ld(t,n)})},t.all=function(e){var n=c(e),i=n.next();return i.done?r([]):new t(function(e,t){function o(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).ld(o(a.length-1),t),i=n.next()}while(!i.done)})},t}),s("WeakMap",function(e){function t(e){if(this.g=(l+=Math.random()+1).toString(),e){e=c(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function r(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function i(e){if(!N(e,s)){var t=new n;o(e,s,{value:t})}}function a(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&i(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),r=new e([[t,2],[n,3]]);return 2==r.get(t)&&3==r.get(n)&&(r.delete(t),r.set(n,4),!r.has(t)&&4==r.get(n))}catch(i){return!1}}())return e;var s="$jscomp_hidden_"+Math.random();a("freeze"),a("preventExtensions"),a("seal");var l=0;return t.prototype.set=function(e,t){if(!r(e))throw Error("Invalid WeakMap key");if(i(e),!N(e,s))throw Error("WeakMap key fail: "+e);return e[s][this.g]=t,this},t.prototype.get=function(e){return r(e)&&N(e,s)?e[s][this.g]:void 0},t.prototype.has=function(e){return r(e)&&N(e,s)&&N(e[s],this.g)},t.prototype.delete=function(e){return!!(r(e)&&N(e,s)&&N(e[s],this.g))&&delete e[s][this.g]},t}),s("Map",function(e){function t(){var e={};return e.wb=e.next=e.head=e}function n(e,t){var n=e.g;return l(function(){if(n){for(;n.head!=e.g;)n=n.wb;for(;n.next!=n.head;)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}})}function r(e,t){var n=t&&typeof t;"object"==n||"function"==n?o.has(t)?n=o.get(t):(n=""+ ++a,o.set(t,n)):n="p_"+t;var r=e.h[n];if(r&&N(e.h,n))for(var i=0;i<r.length;i++){var s=r[i];if(t!=t&&s.key!=s.key||t===s.key)return{id:n,list:r,index:i,Ea:s}}return{id:n,list:r,index:-1,Ea:void 0}}function i(e){if(this.h={},this.g=t(),this.size=0,e){e=c(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&"s"==i.value[1]&&!((i=r.next()).done||4!=i.value[0].x||"t"!=i.value[1]||!r.next().done)}catch(o){return!1}}())return e;var o=new WeakMap;i.prototype.set=function(e,t){var n=r(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.Ea?n.Ea.value=t:(n.Ea={next:this.g,wb:this.g.wb,head:this.g,key:e,value:t},n.list.push(n.Ea),this.g.wb.next=n.Ea,this.g.wb=n.Ea,this.size++),this},i.prototype.delete=function(e){return!(!(e=r(this,e)).Ea||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.Ea.wb.next=e.Ea.next,e.Ea.next.wb=e.Ea.wb,e.Ea.head=null,this.size--,0))},i.prototype.clear=function(){this.h={},this.g=this.g.wb=t(),this.size=0},i.prototype.has=function(e){return!!r(this,e).Ea},i.prototype.get=function(e){return(e=r(this,e).Ea)&&e.value},i.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},i.prototype.keys=function(){return n(this,function(e){return e.key})},i.prototype.values=function(){return n(this,function(e){return e.value})},i.prototype.forEach=function(e,t){for(var n,r=this.entries();!(n=r.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},i.prototype[Symbol.iterator]=i.prototype.entries;var a=0;return i}),s("Array.prototype.keys",function(e){return e||function(){return R(this,function(e){return e})}}),s("Set",function(e){function t(e){if(this.g=new Map,e){e=c(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&i.value[1]==t&&!(i=r.next()).done&&i.value[0]!=t&&4==i.value[0].x&&i.value[1]==i.value[0]&&r.next().done}catch(o){return!1}}()?e:(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach(function(r){return e.call(t,r,r,n)})},t)}),s("Array.from",function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var r=[],i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof i){e=i.call(e);for(var o=0;!(i=e.next()).done;)r.push(t.call(n,i.value,o++))}else for(i=e.length,o=0;o<i;o++)r.push(t.call(n,e[o],o));return r}}),s("Array.prototype.findIndex",function(e){return e||function(e,t){return D(this,e,t).wa}}),s("Object.is",function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}}),s("Array.prototype.includes",function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var r=n.length,i=t||0;for(0>i&&(i=Math.max(i+r,0));i<r;i++){var o=n[i];if(o===e||Object.is(o,e))return!0}return!1}}),s("String.prototype.includes",function(e){return e||function(e,t){return-1!==B(this,e,"includes").indexOf(e,t||0)}}),s("Array.prototype.find",function(e){return e||function(e,t){return D(this,e,t).v}}),s("String.prototype.startsWith",function(e){return e||function(e,t){for(var n=B(this,e,"startsWith"),r=n.length,i=e.length,o=Math.max(0,Math.min(0|t,n.length)),a=0;a<i&&o<r;)if(n[o++]!=e[a++])return!1;return a>=i}});var z="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)N(r,i)&&(e[i]=r[i])}return e};s("Object.assign",function(e){return e||z}),s("Array.prototype.values",function(e){return e||function(){return R(this,function(e,t){return t})}}),s("Promise.prototype.finally",function(e){return e||function(e){return this.then(function(t){return Promise.resolve(e()).then(function(){return t})},function(t){return Promise.resolve(e()).then(function(){throw t})})}}),s("Array.prototype.entries",function(e){return e||function(){return R(this,function(e,t){return[e,t]})}}),s("String.prototype.repeat",function(e){return e||function(e){var t=B(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}}),s("Number.isNaN",function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}}),s("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)N(e,t)&&n.push(e[t]);return n}}),s("Math.log2",function(e){return e||function(e){return Math.log(e)/Math.LN2}}),s("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)N(e,t)&&n.push([t,e[t]]);return n}});var F=this||self;function H(e,t){var n,r=e.split("."),i=F;r[0]in i||void 0===i.execScript||i.execScript("var "+r[0]);for(;r.length&&(n=r.shift());)r.length||void 0===t?i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}:i[n]=t}function q(t,n){if(n)if(n instanceof Map)for(var r=c(n.keys()),i=r.next();!i.done;i=r.next())i=i.value,Object.defineProperty(this,i,{value:n.get(i),writable:!0,enumerable:!0});else for(r in n)Object.defineProperty(this,r,{value:n[r],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function U(e){var t,n=new q(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}function V(){}function X(){}function G(){}function W(e,t){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];Z.has(e)||(Z.add(e),G.apply(V,d(n)))}function J(){}q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},q.prototype.stopImmediatePropagation=function(){this.g=!0},q.prototype.stopPropagation=function(){},H("shaka.util.FakeEvent",q);var Z=new Set;if(e.console&&e.console.log.bind){var K={},Y=(K[1]=function(){}.bind(),K[2]=function(){}.bind(),K[3]=function(){}.bind(),K[4]=function(){}.bind(),K[5]=function(){}.bind(),K[6]=function(){}.bind(),K);G=Y[2],X=Y[1]}function Q(){this.g={}}function _(e,t){for(var n in e.g)t(n,e.g[n])}function $(){this.ea=new Q,this.hd=this}function ee(e,t){for(var n=[],r=c(e),i=r.next();!i.done;i=r.next())n.push(t(i.value));return n}function te(e,t){for(var n=[],r=c(e),i=r.next();!i.done;i=r.next())t(i=i.value)&&n.push(i);return n}(r=Q.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},r.get=function(e){return(e=this.g[e])?e.slice():null},r.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter(function(e){return e!=t}),0==this.g[e].length&&delete this.g[e])},r.size=function(){return Object.keys(this.g).length},r.keys=function(){return Object.keys(this.g)},$.prototype.addEventListener=function(e,t){this.ea&&this.ea.push(e,t)},$.prototype.removeEventListener=function(e,t){this.ea&&this.ea.remove(e,t)},$.prototype.dispatchEvent=function(e){if(!this.ea)return!0;var t=this.ea.get(e.type)||[],n=this.ea.get("All");for(n&&(t=t.concat(n)),n=(t=c(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.hd,e.currentTarget=this.hd;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(r){}if(e.g)break}return e.defaultPrevented},$.prototype.release=function(){this.ea=null};var ne=function e(t){var n;return L(e,function(e){return 1==e.g&&(n=0),3!=e.g?n<t?w(e,n,3):e.D(0):(n++,e.D(2))})},re=function e(t){var n,r,i,o,a,s;return L(e,function(e){return 1==e.g&&(n=-1,i=r=void 0,o=c(t),a=o.next()),5!=e.g?a.done?-1==n?e.D(0):w(e,{wa:n,Yg:r,item:i,next:void 0},0):(s=a.value,0<=n?w(e,{wa:n,item:i,Yg:r,next:s},5):e.D(5)):(n++,r=i,i=s,a=o.next(),e.D(2))})},ie=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function oe(e){var t;e instanceof oe?(ae(this,e.ab),this.$b=e.$b,this.eb=e.eb,se(this,e.vc),this.Sa=e.Sa,le(this,e.g.clone()),this.Pb=e.Pb):e&&(t=String(e).match(ie))?(ae(this,t[1]||"",!0),this.$b=ce(t[2]||""),this.eb=ce(t[3]||"",!0),se(this,t[4]),this.Sa=ce(t[5]||"",!0),le(this,t[6]||"",!0),this.Pb=ce(t[7]||"")):this.g=new ve(null)}function ae(e,t,n){e.ab=n?ce(t,!0):t,e.ab&&(e.ab=e.ab.replace(/:$/,""))}function se(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.vc=t}else e.vc=null}function le(e,t,n){t instanceof ve?e.g=t:(n||(t=de(t,me)),e.g=new ve(t))}function ce(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function de(e,t,n){return null!=e?(e=encodeURI(e).replace(t,ue),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ue(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(r=oe.prototype).ab="",r.$b="",r.eb="",r.vc=null,r.Sa="",r.Pb="",r.toString=function(){var e=[],t=this.ab;if(t&&e.push(de(t,he,!0),":"),t=this.eb){e.push("//");var n=this.$b;n&&e.push(de(n,he,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.vc)&&e.push(":",String(t))}return(t=this.Sa)&&(this.eb&&"/"!=t.charAt(0)&&e.push("/"),e.push(de(t,"/"==t.charAt(0)?pe:fe,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.Pb)&&e.push("#",de(t,ge)),e.join("")},r.resolve=function(e){var t=this.clone();"data"===t.ab&&(t=new oe);var n=!!e.ab;n?ae(t,e.ab):n=!!e.$b,n?t.$b=e.$b:n=!!e.eb,n?t.eb=e.eb:n=null!=e.vc;var r=e.Sa;if(n)se(t,e.vc);else if(n=!!e.Sa){if("/"!=r.charAt(0))if(this.eb&&!this.Sa)r="/"+r;else{var i=t.Sa.lastIndexOf("/");-1!=i&&(r=t.Sa.substr(0,i+1)+r)}if(".."==r||"."==r)r="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}r=o.join("/")}}return n?t.Sa=r:n=""!==e.g.toString(),n?le(t,e.g.clone()):n=!!e.Pb,n&&(t.Pb=e.Pb),t},r.clone=function(){return new oe(this)};var he=/[#\/\?@]/g,fe=/[#\?:]/g,pe=/[#\?]/g,me=/[#\?@]/g,ge=/#/g;function ve(e){this.g=e||null}function be(e){if(!e.Ja&&(e.Ja={},e.nd=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];o=decodeURIComponent(o.replace(/\+/g," ")),i=i||"",e.add(o,decodeURIComponent(i.replace(/\+/g," ")))}}function ye(e,t,n,r){for(var i=[],o=3;o<arguments.length;++o)i[o-3]=arguments[o];this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1}function we(e,t){this.g=e,this.h=t}function ke(e,t){var n=new we(4,0),r=Se,i=r.g,o=n.h-i.h;(0<(n.g-i.g||o)?r.i:r.h)(r.g,n,e,t)}function xe(e,t,n,r){G([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",r].join(" "))}function Ce(e,t,n,r){X([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",r].join(""))}(r=ve.prototype).Ja=null,r.nd=null,r.add=function(e,t){be(this),this.g=null;var n=this.Ja.hasOwnProperty(e)&&this.Ja[e];return n||(this.Ja[e]=n=[]),n.push(t),this.nd++,this},r.set=function(e,t){return be(this),this.g=null,this.Ja.hasOwnProperty(e)?this.Ja[e]=[t]:this.add(e,t),this},r.toString=function(){if(this.g)return this.g;if(!this.Ja)return"";var e,t=[];for(e in this.Ja)for(var n=encodeURIComponent(e),r=this.Ja[e],i=0;i<r.length;i++){var o=n;""!==r[i]&&(o+="="+encodeURIComponent(r[i])),t.push(o)}return this.g=t.join("&")},r.clone=function(){var e=new ve;if(e.g=this.g,this.Ja){var t,n={};for(t in this.Ja)n[t]=this.Ja[t].concat();e.Ja=n,e.nd=this.nd}return e},ye.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},H("shaka.util.Error",ye),ye.Severity={RECOVERABLE:1,CRITICAL:2},ye.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},ye.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004},we.prototype.toString=function(){return"v"+this.g+"."+this.h};var Se=null;function Ee(e,t){return e.concat(t)}function Me(){}function Te(e){return null!=e}function Ae(e){var t=Object.create(e.prototype||Object.prototype);try{var n=e.call(t);n||(ke("Factories requiring new","Factories should be plain functions"),n=t)}catch(r){ke("Factories requiring new","Factories should be plain functions"),n=new e}return n}function je(e,t){if(0==t.length)return e;var n=t.map(function(e){return new oe(e)});return e.map(function(e){return new oe(e)}).map(function(e){return n.map(function(t){return e.resolve(t)})}).reduce(Ee,[]).map(function(e){return e.toString()})}function Oe(e,t){return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:t||[],keyIds:new Set}}function Pe(e,t){if(1==t.length)return t[0];var n=Le(e,t);if(null!=n)return n;throw new ye(2,4,4025,t)}function Le(e,t){for(var n=c(Re[e]),r=n.next();!r.done;r=n.next()){r=r.value;for(var i=c(t),o=i.next();!o.done;o=i.next())if(o=o.value,r.test(o.trim()))return o.trim()}return e==Ie?"":null}var Ie="text",Ne={mb:"video",Nb:"audio",ua:Ie,Gc:"image",Ah:"application"},Re={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function De(){}function Be(e,t){return e=He(e),t=He(t),e.split("-")[0]==t.split("-")[0]}function ze(e,t){e=He(e),t=He(t);var n=e.split("-"),r=t.split("-");return n[0]==r[0]&&1==n.length&&2==r.length}function Fe(e,t){e=He(e),t=He(t);var n=e.split("-"),r=t.split("-");return 2==n.length&&2==r.length&&n[0]==r[0]}function He(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=We.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function qe(e,t){var n=Ve(e),r=Ve(t);return e!=n&&t!=r&&n==r}function Ue(e,t){return e=He(e),(t=He(t))==e?4:ze(t,e)?3:Fe(t,e)?2:ze(e,t)?1:0}function Ve(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),We.get(e)||e}function Xe(e){return e.language?He(e.language):e.audio&&e.audio.language?He(e.audio.language):e.video&&e.video.language?He(e.video.language):"und"}function Ge(e,t){for(var n=He(e),r=new Set,i=c(t),o=i.next();!o.done;o=i.next())r.add(He(o.value));for(o=(i=c(r)).next();!o.done;o=i.next())if((o=o.value)==n)return o;for(o=(i=c(r)).next();!o.done;o=i.next())if(ze(o=o.value,n))return o;for(o=(i=c(r)).next();!o.done;o=i.next())if(Fe(o=o.value,n))return o;for(o=(r=c(r)).next();!o.done;o=r.next())if(ze(n,o=o.value))return o;return null}H("shaka.util.LanguageUtils",De),De.findClosestLocale=Ge,De.getLocaleForVariant=Xe,De.getLocaleForText=function(e){return He(e.language||"und")},De.getBase=Ve,De.relatedness=Ue,De.areSiblings=qe,De.normalize=He,De.isSiblingOf=Fe,De.isParentOf=ze,De.areLanguageCompatible=Be,De.areLocaleCompatible=function(e,t){return(e=He(e))==(t=He(t))};var We=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Je(e){$.call(this),this.j=He(e),this.i=new Map,this.g=new Set,this.h=new Map}function Ze(e){for(var t=e.h,n=e.j,r=e.g,i=new Set,o={},a=c(r),s=a.next();!s.done;o={ec:o.ec},s=a.next()){o.ec=s.value,i.add(o.ec),i.add(Ve(o.ec)),(s=te(t.keys(),function(e){return function(t){return qe(t,e.ec)}}(o))).sort();var l=c(s);for(s=l.next();!s.done;s=l.next())i.add(s.value);for((s=te(t.keys(),function(e){return function(t){return Ve(t)==e.ec}}(o))).sort(),s=(l=c(s)).next();!s.done;s=l.next())i.add(s.value)}for(i.add(n),n=[],s=(i=c(i)).next();!s.done;s=i.next())(s=t.get(s.value))&&n.push(s);for(n.reverse(),e.i.clear(),s=(t=c(n)).next();!s.done;s=t.next())s.value.forEach(function(t,n){e.i.set(n,t)});for(t=e.i.keys(),i=new Set,s=(n=c(e.g)).next();!s.done;s=n.next())Ke(s=e.h.get(s.value)||new Map,t,i);0<i.size&&(r=(new Map).set("locales",Array.from(r)).set("missing",Array.from(i)),e.dispatchEvent(new q("missing-localizations",r)))}function Ke(e,t,n){for(var r=(t=c(t)).next();!r.done;r=t.next())r=r.value,e.get(r)||n.add(r)}g(Je,$),(r=Je.prototype).release=function(){$.prototype.release.call(this)},r.We=function(e){var t=this;this.g.clear();for(var n=(e=c(e)).next();!n.done;n=e.next())this.g.add(He(n.value));Ze(this),(e=te(this.g,function(e){return!t.h.has(e)})).length&&this.dispatchEvent(new q("unknown-locales",(new Map).set("locales",e))),e=te(this.g,function(e){return t.h.has(e)}),e=(new Map).set("locales",e.length?e:[this.j]),this.dispatchEvent(new q("locale-changed",e))},r.ma=function(e,t,n){e=He(e),void 0===n&&(n=Ye);var r=this.h.get(e)||new Map;return t.forEach(function(e,t){r.has(t)&&n!=Ye||r.set(t,e)}),this.h.set(e,r),Ze(this),this.dispatchEvent(new q("locale-updated")),this},r.hh=function(e){for(var t=c(e.keys()),n=t.next();!n.done;n=t.next())n=n.value,e.set(n,this.resolve(n))},r.resolve=function(e){var t=this.i.get(e);return t||(e=(new Map).set("locales",Array.from(this.g)).set("missing",e),this.dispatchEvent(new q("unknown-localization",e)),"")},H("shaka.ui.Localization",Je),Je.prototype.resolve=Je.prototype.resolve,Je.prototype.resolveDictionary=Je.prototype.hh,Je.prototype.insert=Je.prototype.ma,Je.prototype.changeLocale=Je.prototype.We,Je.prototype.release=Je.prototype.release;var Ye=1;Je.ConflictResolution={USE_OLD:0,USE_NEW:Ye},Je.UNKNOWN_LOCALES="unknown-locales",Je.UNKNOWN_LOCALIZATION="unknown-localization",Je.MISSING_LOCALIZATIONS="missing-localizations",Je.LOCALE_CHANGED="locale-changed",Je.LOCALE_UPDATED="locale-updated";var Qe="SUBTITLE_FORCED";function _e(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function $e(e,t,n){var r=Math.pow(e.g,t);n=n*(1-r)+r*e.h,isNaN(n)||(e.h=n,e.i+=t)}function et(e){return e.h/(1-Math.pow(e.g,e.i))}function tt(){this.h=new _e(2),this.j=new _e(5),this.g=0,this.i=128e3,this.l=16e3}function nt(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function rt(e,t){var n=e.indexOf(t);-1<n&&e.splice(n,1)}function it(e,t,n){if(n||(n=nt),e.length!=t.length)return!1;t=t.slice();for(var r={},i=(e=c(e)).next();!i.done;r={Ld:r.Ld},i=e.next()){if(r.Ld=i.value,-1==(i=t.findIndex(function(e){return function(t){return n(e.Ld,t)}}(r))))return!1;t[i]=t[t.length-1],t.pop()}return 0==t.length}function ot(e,t,n){if(n||(n=nt),e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function at(e,t,n){this.startTime=e,this.direction=ft,this.endTime=t,this.payload=n,this.region=new Ct,this.position=null,this.positionAlign=lt,this.size=0,this.textAlign=ct,this.writingMode=pt,this.lineInterpretation=mt,this.line=null,this.lineHeight="",this.lineAlign=gt,this.displayAlign=ut,this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=wt,this.fontStyle=kt,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.spacer=this.lineBreak=this.isContainer=!1,this.cellResolution={columns:32,rows:15}}function st(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!ot(e.nestedCues,t.nestedCues,st))return!1}else if("region"==n||"cellResolution"==n){for(var r in e[n])if(e[n][r]!=t[n][r])return!1}else if(Array.isArray(e[n])){if(!ot(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}tt.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},tt.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(et(this.h),et(this.j))},at.prototype.clone=function(){var e,t=new at(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},H("shaka.text.Cue",at);var lt="auto";at.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:lt};var ct="center",dt={LEFT:"left",RIGHT:"right",CENTER:ct,START:"start",END:"end"};at.textAlign=dt;var ut="after",ht={BEFORE:"before",CENTER:"center",AFTER:ut};at.displayAlign=ht;var ft="ltr";at.direction={HORIZONTAL_LEFT_TO_RIGHT:ft,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var pt="horizontal-tb";at.writingMode={HORIZONTAL_TOP_TO_BOTTOM:pt,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var mt=0;at.lineInterpretation={LINE_NUMBER:mt,PERCENTAGE:1};var gt="start",vt={CENTER:"center",START:gt,END:"end"};at.lineAlign=vt;var bt={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};at.defaultTextColor=bt;var yt={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};at.defaultTextBackgroundColor=yt;var wt=400;at.fontWeight={NORMAL:wt,BOLD:700};var kt="normal",xt={NORMAL:kt,ITALIC:"italic",OBLIQUE:"oblique"};function Ct(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=St,this.scroll=Et}at.fontStyle=xt,at.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},H("shaka.text.CueRegion",Ct);var St=1;Ct.units={PX:0,PERCENTAGE:St,LINES:2};var Et="";function Mt(){}function Tt(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(At(e)==At(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;for(var n=Ot(e),r=Ot(t),i=c(ne(e.byteLength)),o=i.next();!o.done;o=i.next())if(n[o=o.value]!=r[o])return!1;return!0}function At(e){return e instanceof ArrayBuffer?e:e.buffer}function jt(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function Ot(e,t,n){return Lt(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function Pt(e,t,n){return Lt(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function Lt(e,t,n,r){var i=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,i)),new r(At(e),t,Math.min(t+Math.max(n,0),i)-t)}function It(){}Ct.scrollMode={NONE:Et,UP:"up"},H("shaka.util.BufferUtils",Mt),Mt.toDataView=Pt,Mt.toUint8=Ot,Mt.toArrayBuffer=jt,Mt.equal=Tt,H("shaka.dependencies",It),It.has=function(e){return Rt.has(e)},It.add=function(e,t){if(!Nt[e])throw Error(e+" is not supported");Rt.set(e,function(){return t})};var Nt={muxjs:"muxjs"};It.Allowed=Nt;var Rt=new Map([["muxjs",function(){return e.muxjs}]]);function Dt(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function Bt(e){this.h=e,this.g=void 0}function zt(){}function Ft(e){return e?(239==(e=Ot(e))[0]&&187==e[1]&&191==e[2]&&(e=e.subarray(3)),(e=(new TextDecoder).decode(e)).includes("�")&&X('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),e):""}function Ht(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new ye(2,2,2004);var r=Math.floor(e.byteLength/2);n=new Uint16Array(r),e=Pt(e);for(var i=(r=c(ne(r))).next();!i.done;i=r.next())n[i=i.value]=e.getUint16(2*i,t);return Xt.value()(n)}function qt(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=Ot(e);if(239==n[0]&&187==n[1]&&191==n[2])return Ft(n);if(254==n[0]&&255==n[1])return Ht(n.subarray(2),!1);if(255==n[0]&&254==n[1])return Ht(n.subarray(2),!0);if(0==n[0]&&0==n[2])return Ht(e,!1);if(0==n[1]&&0==n[3])return Ht(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return Ft(e);throw new ye(2,2,2003)}function Ut(e){return jt((new TextEncoder).encode(e))}function Vt(e,t){for(var n=new ArrayBuffer(2*e.length),r=new DataView(n),i=c(re(e)),o=i.next();!o.done;o=i.next())o=o.value,r.setUint16(2*o.wa,o.item.charCodeAt(0),t);return n}Dt.prototype.resolve=function(){},Dt.prototype.reject=function(){},Bt.prototype.value=function(){return null==this.g&&(this.g=this.h()),this.g},H("shaka.util.StringUtils",zt),zt.resetFromCharCode=function(){Xt.g=void 0},zt.toUTF16=Vt,zt.toUTF8=Ut,zt.fromBytesAutoDetect=qt,zt.fromUTF16=Ht,zt.fromUTF8=Ft;var Xt=new Bt(function(){function e(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(n){return!1}}for(var t={Bb:65536};0<t.Bb;(t={Bb:t.Bb}).Bb/=2)if(e(t.Bb))return function(e){return function(t){for(var n="",r=0;r<t.length;r+=e.Bb)n+=String.fromCharCode.apply(null,t.subarray(r,r+e.Bb));return n}}(t);return null});function Gt(){}function Wt(e){return e=Ot(e),e=Xt.value()(e),btoa(e)}function Jt(e,t){t=null==t||t;var n=Wt(e).replace(/\+/g,"-").replace(/\//g,"_");return t?n:n.replace(/[=]*$/,"")}function Zt(t){var n=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));t=new Uint8Array(n.length);for(var r=(n=c(re(n))).next();!r.done;r=n.next())t[(r=r.value).wa]=r.item.charCodeAt(0);return t}function Kt(t){for(var n=t.length/2,r=new Uint8Array(n),i=(n=c(ne(n))).next();!i.done;i=n.next())r[i=i.value]=e.parseInt(t.substr(2*i,2),16);return r}function Yt(e){var t=Ot(e);e="";for(var n=(t=c(t)).next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function Qt(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];var r=0,i=c(t);for(n=i.next();!n.done;n=i.next())r+=n.value.byteLength;for(r=new Uint8Array(r),i=0,n=(t=c(t)).next();!n.done;n=t.next())n=n.value,r.set(Ot(n),i),i+=n.byteLength;return r}function _t(){var e=this;this.B=Rt.get("muxjs")(),this.g=new this.B.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.h=null,this.s=[],this.j=[],this.i=[],this.l=!1,this.g.on("data",function(t){e.j=t.captions,e.i=t.metadata,e.s.push(Qt(t.initSegment,t.data))}),this.g.on("done",function(){var t={data:Qt.apply(Gt,d(e.s)),captions:e.j,metadata:e.i};e.h.resolve(t),e.l=!1})}function $t(e,t){if(!Rt.get("muxjs")()||!en(e))return!1;if(t)return MediaSource.isTypeSupported(tn(t,e));var n=tn("audio",e),r=tn("video",e);return MediaSource.isTypeSupported(n)||MediaSource.isTypeSupported(r)}function en(e){return"mp2t"==e.toLowerCase().split(";")[0].split("/")[1]}function tn(e,t){var n=t.replace(/mp2t/i,"mp4");"audio"==e&&(n=n.replace("video","audio"));var r=/avc1\.(66|77|100)\.(\d+)/.exec(n);if(r){var i="avc1.",o=r[1],a=Number(r[2]);i=("66"==o?i+"4200":"77"==o?i+"4d00":i+"6400")+(a>>4).toString(16),i+=(15&a).toString(16),n=n.replace(r[0],i)}return n}function nn(e,t){var n=e;return t&&(n+='; codecs="'+t+'"'),n}function rn(e,t,n){return e=nn(e,t),Rt.get("muxjs")()&&en(e)?tn(n,e):e}function on(e){var t=(e=e.split("."))[0];return e.pop(),t}function an(e){return(e=e.split(/ *; */)).shift(),(e=e.find(function(e){return e.startsWith("codecs=")}))?e.split("=")[1].replace(/^"|"$/g,""):""}function sn(e){this.C=null,this.i=e,this.j=this.G=0,this.l=1/0,this.h=this.g=null,this.B="",this.s=new Map}function ln(e){return!(!hn[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function cn(e,t,n){if(e.B=t,t=e.s.get(t))for(var r=c(t.keys()),i=r.next();!i.done;i=r.next())(i=t.get(i.value).filter(function(e){return e.endTime<=n}))&&e.i.append(i)}function dn(e,t,n){t.startTime+=n,t.endTime+=n;for(var r=(t=c(t.nestedCues)).next();!r.done;r=t.next())dn(e,r.value,n)}function un(e,t,n,r,i){for(var o=n+" "+r,a=new Map,s=(t=c(t)).next();!s.done;s=t.next()){var l=s.value;s=l.stream,l=l.cue,a.has(s)||a.set(s,new Map),a.get(s).has(o)||a.get(s).set(o,[]),dn(e,l,i),l.startTime>=e.j&&l.startTime<e.l&&(a.get(s).get(o).push(l),s==e.B&&e.i.append([l]))}for(o=(i=c(a.keys())).next();!o.done;o=i.next())for(o=o.value,e.s.has(o)||e.s.set(o,new Map),s=(t=c(a.get(o).keys())).next();!s.done;s=t.next())s=s.value,l=a.get(o).get(s),e.s.get(o).set(s,l);e.g=null==e.g?Math.max(n,e.j):Math.min(e.g,Math.max(n,e.j)),e.h=Math.max(e.h,Math.min(r,e.l))}H("shaka.util.Uint8ArrayUtils",Gt),Gt.concat=Qt,Gt.toHex=Yt,Gt.fromHex=Kt,Gt.fromBase64=Zt,Gt.toBase64=Jt,Gt.toStandardBase64=Wt,Gt.equal=function(e,t){return ke("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead."),Tt(e,t)},_t.prototype.destroy=function(){return this.g.dispose(),this.g=null,Promise.resolve()},(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),sn.prototype.destroy=function(){return this.i=this.C=null,this.s.clear(),Promise.resolve()},sn.prototype.remove=function(e,t){var n=this;return I(function(r){if(1==r.g)return w(r,Promise.resolve(),2);!n.i||!n.i.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),k(r)})},H("shaka.text.TextEngine",sn),sn.prototype.destroy=sn.prototype.destroy,sn.findParser=function(e){return hn[e]},sn.unregisterParser=function(e){delete hn[e]},sn.registerParser=function(e,t){hn[e]=t};var hn={};function fn(e){this.h=e,this.g=null}function pn(e){this.h=e,this.g=null}function mn(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function gn(e){return""!=xn().canPlayType(e)}function vn(){return kn("Tizen")}function bn(){return kn("CrKey")}function yn(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!vn()}function wn(){if(!yn())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function kn(e){return(navigator.userAgent||"").includes(e)}function xn(){return Sn||(Cn||(Cn=new pn(function(){Sn=null})),(Sn=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Sn=document.createElement("video")),Cn.U(1),Sn)}fn.prototype.U=function(t){var n=this;this.stop();var r=!0,i=null;return this.g=function(){e.clearTimeout(i),r=!1},i=e.setTimeout(function(){r&&n.h()},1e3*t),this},fn.prototype.stop=function(){this.g&&(this.g(),this.g=null)},pn.prototype.Ga=function(){return this.stop(),this.h(),this},pn.prototype.U=function(e){var t=this;return this.stop(),this.g=new fn(function(){t.h()}).U(e),this},pn.prototype.na=function(e){var t=this;return this.stop(),this.g=new fn(function(){t.g.U(e),t.h()}).U(e),this},pn.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},H("shaka.util.Timer",pn),pn.prototype.stop=pn.prototype.stop,pn.prototype.tickEvery=pn.prototype.na,pn.prototype.tickAfter=pn.prototype.U,pn.prototype.tickNow=pn.prototype.Ga;var Cn=null,Sn=null;function En(e,t,n,r,i){var o=e.variants;(t.length||n.length)&&(o=function(e,t,n){for(var r={},i=(t=c(t)).next();!i.done;r={Wd:r.Wd},i=t.next())if(r.Wd=i.value,i=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.Wd)}}(r)),i.length){e=i;break}for(r={},n=c(n),t=n.next();!t.done;r={Id:r.Id},t=n.next())if(r.Id=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.Id)}}(r)),t.length){e=t;break}return e}(o,t,n)),t=function(e){for(var t=new Q,n=(e=c(e)).next();!n.done;n=e.next()){var r=Tn(n=n.value);t.push(r,n)}return t}(o=Gn(o,r)),t=function(e){var t=0,n=new Map,r=e.size();return _(e,function(e,i){for(var o=c(i),a=o.next();!a.done;a=o.next()){var s=(a=a.value).video;if(s&&s.width&&s.height){s=s.width*s.height*(s.frameRate||1),n.has(s)||n.set(s,new Q);var l=n.get(s);l.push(e,a),l.size()===r&&(t=Math.max(t,s))}}}),t?n.get(t):e}(t);var a=function(e,t){for(var n=c(t),r=n.next();!r.done;r=n.next())if((r=r.value)==Qn||r==_n){if(1==(e=Mn(e,r)).size())return e.keys()[0]}else if(r==$n)break;return function(e){var t="",n=1/0;return _(e,function(e,r){for(var i=0,o=0,a=c(r),s=a.next();!s.done;s=a.next())i+=s.value.bandwidth||0,++o;(i/=o)<n&&(t=e,n=i)}),t}(e)}(t,i);e.variants=e.variants.filter(function(e){return Tn(e)==a})}function Mn(e,t){var n=0,r=new Q;return _(e,function(e,i){for(var o=0,a=0,s=c(i),l=s.next();!l.done;l=s.next())(l=l.value).decodingInfos.length&&(o+=l.decodingInfos[0][t]?1:0,a++);(o/=a)>n?(r.g={},r.push(e,i),n=o):o==n&&r.push(e,i)}),r}function Tn(e){var t="";e.video&&(t=on(e.video.codecs));var n="";return e.audio&&(n=on(e.audio.codecs)),t+"-"+n}function An(e,t,n){function r(e,t,n){return e>=t&&e<=n}var i=e.video;return!(i&&i.width&&i.height&&(!r(i.width,t.minWidth,Math.min(t.maxWidth,n.width))||!r(i.height,t.minHeight,Math.min(t.maxHeight,n.height))||!r(i.width*i.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!r(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!r(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function jn(e,t){return I(function(n){if(1==n.g)return w(n,On(t,0<t.offlineSessionIds.length),2);Rn(e,t),function(e){e.textStreams=e.textStreams.filter(function(e){return ln(nn(e.mimeType,e.codecs))})}(t),function(e){e.imageStreams=e.imageStreams.filter(function(e){var t=["image/svg+xml","image/png","image/jpeg"];return(kn("Web0S")||vn()||bn())&&t.push("image/webp"),t.includes(e.mimeType)})}(t),k(n)})}function On(e,t){return I(function(n){if(1==n.g)return w(n,Pn(e.variants,t,!1),2);e.variants=e.variants.filter(function(e){var t=e.video;if(t){var n=Nn(t.codecs);if(t.codecs.includes(",")){var r=t.codecs.split(",");if(n=Pe("video",r),r=Pe("audio",r),r=rn(t.mimeType,r,"audio"),!MediaSource.isTypeSupported(r))return!1}if(n=rn(t.mimeType,n,"video"),!MediaSource.isTypeSupported(n))return!1}return!((n=e.audio)&&(r=In(n.codecs),n=rn(n.mimeType,r,"audio"),!MediaSource.isTypeSupported(n)))&&(kn("Xbox One")&&t&&(t.width&&1920<t.width||t.height&&1080<t.height)&&t.codecs.includes("avc1.")?(Zn(e),!1):((t=e.decodingInfos.some(function(e){return e.supported}))||Zn(e),t))}),k(n)})}function Pn(e,t,n){var r,i,o,a,s,l,d,u,h,f;return I(function(p){if(e.some(function(e){return e.decodingInfos.length}))return p.return();for(r=navigator.mediaCapabilities,i=[],o=function(e,t){var n;return I(function(i){return 1==i.g?(x(i,2),w(i,r.decodingInfo(t),4)):2!=i.g?(n=i.h,e.decodingInfos.push(n),S(i,0)):(E(i),JSON.stringify(t),void k(i))})},a=c(e),s=a.next();!s.done;s=a.next())for(l=s.value,d=Ln(l,t,n),u=c(d),h=u.next();!h.done;h=u.next())f=h.value,i.push(o(l,f));return w(p,Promise.all(i),0)})}function Ln(e,t,n){var r=e.audio,i=e.video;if(n={type:n?"file":"media-source"},i){var o=i.codecs;if(i.codecs.includes(",")){var a=i.codecs.split(",");o=Nn(o=Pe("video",a)),a=Pe("audio",a),a=rn(i.mimeType,a,"audio"),n.audio={contentType:a,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1}}if(o=Nn(o),o=rn(i.mimeType,o,"video"),n.video={contentType:o,width:i.width||1,height:i.height||1,bitrate:i.bandwidth||e.bandwidth||1,framerate:i.frameRate||1},i.hdr)switch(i.hdr){case"SDR":n.video.transferFunction="srgb";break;case"PQ":n.video.transferFunction="pq";break;case"HLG":n.video.transferFunction="hlg"}}if(r&&(o=In(r.codecs),o=rn(r.mimeType,o,"audio"),n.audio={contentType:o,channels:r.channelsCount||2,bitrate:r.bandwidth||e.bandwidth||1,samplerate:r.audioSamplingRate||1,spatialRendering:r.spatialAudio}),!(a=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[n];e=[],o=new Map;for(var s=(a=c(a)).next();!s.done;s=a.next()){var l=s.value;o.get(l.keySystem)||o.set(l.keySystem,[]),o.get(l.keySystem).push(l)}a=t?"required":"optional",t=t?["persistent-license"]:["temporary"];for(var d=(l=c(o.keys())).next();!d.done;d=l.next()){var u=d.value;d=Object.assign({},n);var h=o.get(u);for(u={keySystem:u,initDataType:"cenc",persistentState:a,distinctiveIdentifier:"optional",sessionTypes:t},s=(h=c(h)).next();!s.done;s=h.next()){if((s=s.value).initData&&s.initData.length){for(var f=new Set,p=c(s.initData),m=p.next();!m.done;m=p.next())f.add(m.value.initDataType);u.initDataType=s.initData[0].initDataType}s.distinctiveIdentifierRequired&&(u.distinctiveIdentifier="required"),s.persistentStateRequired&&(u.persistentState="required"),s.sessionType&&(u.sessionTypes=[s.sessionType]),r&&(u.audio?u.audio.robustness=u.audio.robustness||s.audioRobustness:u.audio={robustness:s.audioRobustness}),i&&(u.video?u.video.robustness=u.video.robustness||s.videoRobustness:u.video={robustness:s.videoRobustness})}d.keySystemConfiguration=u,e.push(d)}return e}function In(e){return vn()&&"ac-3"==e.toLowerCase()?"ec-3":e}function Nn(e){return"vp9"==e?"vp09.00.10.08":e}function Rn(e,t){t.variants=t.variants.filter(function(t){var n=t.audio;return t=t.video,!(n&&e&&e.audio&&!Dn(n,e.audio)||t&&e&&e.video&&!Dn(t,e.video))})}function Dn(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function Bn(e){var t=e.audio,n=e.video,r=t?t.codecs:null,i=n?n.codecs:null,o=[];i&&o.push(i),r&&o.push(r);var a=[];n&&a.push(n.mimeType),t&&a.push(t.mimeType),a=a[0]||null;var s=[];t&&s.push(t.kind),n&&s.push(n.kind),s=s[0]||null;var l=new Set;if(t)for(var d=c(t.roles),u=d.next();!u.done;u=d.next())l.add(u.value);if(n)for(u=(d=c(n.roles)).next();!u.done;u=d.next())l.add(u.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:s,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a,codecs:o.join(", "),audioCodec:r,videoCodec:i,primary:e.primary,roles:Array.from(l),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.label=t.label,e.audioRoles=t.roles),e}function zn(e){return{id:e.id,active:!1,type:Ie,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null}}function Fn(e){var t=e.width||null,n=e.height||null,r=null;e.segmentIndex&&(r=e.segmentIndex.get(0));var i=e.tilesLayout;return r&&(i=r.tilesLayout||i),i&&null!=t&&(t/=Number(i.split("x")[0])),i&&null!=n&&(n/=Number(i.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:i||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId}}function Hn(e){return e.__shaka_id||(e.__shaka_id=Yn++),e.__shaka_id}function qn(e){var t=Vn(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="application/cea-608"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function Un(e){var t=Vn(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function Vn(e){return{id:Hn(e),active:!1,type:"",bandwidth:0,language:He(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null}}function Xn(e){return e.allowedByApplication&&e.allowedByKeySystem}function Gn(e,t){for(var n=e.filter(function(e){return e.audio&&e.audio.channelsCount}),r=new Map,i=(n=c(n)).next();!i.done;i=n.next()){var o=(i=i.value).audio.channelsCount;r.has(o)||r.set(o,[]),r.get(o).push(i)}return 0==(n=Array.from(r.keys())).length?e:(i=n.filter(function(e){return e<=t})).length?r.get(Math.max.apply(Math,d(i))):r.get(Math.min.apply(Math,d(n)))}function Wn(e,t,n,r){var i=e,o=e.filter(function(e){return e.primary});o.length&&(i=o);var a=i.length?i[0].language:"";if(i=i.filter(function(e){return e.language==a}),t){var s=Ge(He(t),e.map(function(e){return e.language}));s&&(i=e.filter(function(e){return He(e.language)==s}))}if(i=i.filter(function(e){return e.forced==r}),n){if((e=Jn(i,n)).length)return e}else if((e=i.filter(function(e){return 0==e.roles.length})).length)return e;return(e=i.map(function(e){return e.roles}).reduce(Ee,[])).length?Jn(i,e[0]):i}function Jn(e,t){return e.filter(function(e){return e.roles.includes(t)})}function Zn(e){var t=[];return e.audio&&t.push(Kn(e.audio)),e.video&&t.push(Kn(e.video)),t.join(", ")}function Kn(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}var Yn=0,Qn="smooth",_n="powerEfficient",$n="bandwidth";function er(){var e=this;this.j=null,this.h=!1,this.g=new tt,navigator.connection&&navigator.connection.addEventListener("change",function(){if(e.m.useNetworkInformation&&e.h){e.g=new tt,e.m&&e.g.configure(e.m.advanced);var t=e.chooseVariant();t&&e.j(t)}}),this.i=[],this.s=1,this.B=!1,this.m=this.l=null}function tr(e){var t=e.m.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&e.m.useNetworkInformation&&(t=1e6*navigator.connection.downlink),t}function nr(e,t){return e&&(t=t.filter(function(t){return An(t,e,{width:1/0,height:1/0})})),t.sort(function(e,t){return e.bandwidth-t.bandwidth})}function rr(e,t){this.h=e,this.g=new Set([e]);for(var n=c(t=t||[]),r=n.next();!r.done;r=n.next())this.add(r.value)}function ir(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var r=t.audio;n=!((!(!n.channelsCount||!r.channelsCount||2<n.channelsCount||2<r.channelsCount)||n.channelsCount==r.channelsCount)&&or(n,r)&&ar(n.roles,r.roles))}return!n&&(n=e.video&&t.video)&&(n=!(or(n=e.video,r=t.video)&&ar(n.roles,r.roles))),!n}function or(e,t){if(e.mimeType!=t.mimeType)return!1;var n=e.codecs.split(",").map(function(e){return on(e)}),r=t.codecs.split(",").map(function(e){return on(e)});if(n.length!=r.length)return!1;n.sort(),r.sort();for(var i=c(ne(n.length)),o=i.next();!o.done;o=i.next())if(n[o=o.value]!=r[o])return!1;return!0}function ar(e,t){var n=new Set(e),r=new Set(t);if(n.delete("main"),r.delete("main"),n.size!=r.size)return!1;for(var i=(n=c(n)).next();!i.done;i=n.next())if(!r.has(i.value))return!1;return!0}function sr(e){this.g=e,this.h=new lr(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"")}function lr(e,t,n,r){this.i=e,this.j=t,this.g=n,this.h=void 0===r?"":r}function cr(){this.g=hr,this.h=(new Map).set(hr,2).set(ur,1)}function dr(e,t,n){e.h.set(hr,n).set(ur,t)}(r=er.prototype).stop=function(){this.j=null,this.h=!1,this.i=[],this.s=1,this.l=null},r.init=function(e){this.j=e},r.chooseVariant=function(){var e=nr(this.m.restrictions,this.i),t=this.g.getBandwidthEstimate(tr(this));this.i.length&&!e.length&&(e=[(e=nr(null,this.i))[0]]);for(var n=e[0]||null,r=(e=c(re(e))).next();!r.done;r=e.next()){var i=r.value;r=i.item;var o=isNaN(this.s)?1:Math.abs(this.s);i=o*(i.next||{bandwidth:1/0}).bandwidth/this.m.bandwidthUpgradeTarget,t>=o*r.bandwidth/this.m.bandwidthDowngradeTarget&&t<=i&&(n=r)}return this.l=Date.now(),n},r.enable=function(){this.h=!0},r.disable=function(){this.h=!1},r.segmentDownloaded=function(e,t){var n=this.g;if(!(t<n.l)){var r=8e3*t/e,i=e/1e3;n.g+=t,$e(n.h,i,r),$e(n.j,i,r)}if(null!=this.l&&this.h)e:{if(this.B){if(Date.now()-this.l<1e3*this.m.switchInterval)break e}else{if(!((n=this.g).g>=n.i))break e;this.B=!0}n=this.chooseVariant(),this.g.getBandwidthEstimate(tr(this)),n&&this.j(n)}},r.getBandwidthEstimate=function(){return this.g.getBandwidthEstimate(this.m.defaultBandwidthEstimate)},r.setVariants=function(e){this.i=e},r.playbackRateChanged=function(e){this.s=e},r.configure=function(e){this.m=e,this.g&&this.m&&this.g.configure(this.m.advanced)},H("shaka.abr.SimpleAbrManager",er),er.prototype.configure=er.prototype.configure,er.prototype.playbackRateChanged=er.prototype.playbackRateChanged,er.prototype.setVariants=er.prototype.setVariants,er.prototype.getBandwidthEstimate=er.prototype.getBandwidthEstimate,er.prototype.segmentDownloaded=er.prototype.segmentDownloaded,er.prototype.disable=er.prototype.disable,er.prototype.enable=er.prototype.enable,er.prototype.chooseVariant=er.prototype.chooseVariant,er.prototype.init=er.prototype.init,er.prototype.stop=er.prototype.stop,rr.prototype.add=function(e){return!!ir(this.h,e)&&(this.g.add(e),!0)},rr.prototype.values=function(){return this.g.values()},sr.prototype.create=function(e){var t=this,n=e.filter(function(e){return ir(t.g,e)});return n.length?new rr(n[0],n):this.h.create(e)},lr.prototype.create=function(e){var t=[];t=function(e,t){var n=He(t),r=Ge(n,e.map(function(e){return Xe(e)}));return r?e.filter(function(e){return r==Xe(e)}):[]}(e,this.i);var n=e.filter(function(e){return e.primary});for(e=function(e,t){return e.filter(function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)})}(t=t.length?t:n.length?n:e,this.j),e.length&&(t=e),this.g&&(e=Gn(t,this.g)).length&&(t=e),this.h&&(e=function(e,t){return e.filter(function(e){return!!e.audio&&e.audio.label.toLowerCase()==t.toLowerCase()})}(t,this.h),e.length&&(t=e)),e=new rr(t[0]),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,ir(e.h,n)&&e.add(n);return e};var ur=0,hr=1;function fr(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4};this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.B=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.s=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function pr(e){var t,n;return I(function(r){if(1==r.g){if(e.g>=e.l){if(!e.i)throw new ye(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?r.return():(n=e.h*(1+(2*Math.random()-1)*e.B),w(r,new Promise(function(e){new pn(e).U(n/1e3)}),2))}e.h*=e.s,k(r)})}function mr(e,t){this.promise=e,this.i=t,this.g=!1}function gr(e){return new mr(Promise.reject(e),function(){return Promise.resolve()})}function vr(){var e=Promise.reject(new ye(2,7,7001));return e.catch(function(){}),new mr(e,function(){return Promise.resolve()})}function br(e){return new mr(Promise.resolve(e),function(){return Promise.resolve()})}function yr(e){return new mr(e,function(){return e.catch(function(){})})}function wr(e){return new mr(Promise.all(e.map(function(e){return e.promise})),function(){return Promise.all(e.map(function(e){return e.abort()}))})}function kr(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var r=n.constructor==Array;if(n.constructor!=Object&&!r)return null;t.add(n);var i,o=r?[]:{};for(i in n)o[i]=e(n[i]);return r&&(o.length=n.length),o}}(e)}function xr(e){var t,n={};for(t in e)n[t]=e[t];return n}function Cr(){this.g=[]}function Sr(e,t){e.g.push(t.finally(function(){rt(e.g,t)}))}function Er(e,t,n){$.call(this),this.i=!1,this.s=new Cr,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.C=n||null,this.B=!1}function Mr(e,t,n,r){n=n||Lr;var i=Ir[e];(!i||n>=i.priority)&&(Ir[e]={priority:n,Xg:t,Zg:void 0!==r&&r})}function Tr(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,streamDataCallback:void 0===n?null:n}}function Ar(e,t,n,r,i,o,a){e.B&&(n.uris[i]=n.uris[i].replace("http://","https://"));var s=new oe(n.uris[i]),l=s.ab,c=!1;l||(ae(s,l=(l=location.protocol).slice(0,-1)),n.uris[i]=s.toString()),l=l.toLowerCase();var d=(l=Ir[l])?l.Xg:null;if(!d)return gr(new ye(2,1,1e3,s));var u,h=l.Zg,f=null,p=null,m=!1,g=!1;return yr(pr(r)).va(function(){if(e.i)return vr();u=Date.now();var r=d(n.uris[i],n,t,function(n,r,i){f&&f.stop(),p&&p.U(s/1e3),e.l&&t==Pr&&(e.l(n,r),c=!0,a.g=i)},function(r){e.j&&e.j(r,n,t),g=!0});if(!h)return r;var o=n.retryParameters.connectionTimeout;o&&(f=new pn(function(){m=!0,r.abort()})).U(o/1e3);var s=n.retryParameters.stallTimeout;return s&&(p=new pn(function(){m=!0,r.abort()})),r}).va(function(r){f&&f.stop(),p&&p.stop(),null==r.timeMs&&(r.timeMs=Date.now()-u);var i={response:r,Kg:c};return!g&&e.j&&e.j(r.headers,n,t),i},function(s){if(f&&f.stop(),p&&p.stop(),e.C){var l=null,c=0;s instanceof ye&&(l=s,1001==s.code&&(c=s.data[1])),e.C(n,l,c,m)}if(e.i)return vr();if(m&&(s=new ye(1,1,1003,n.uris[i],t)),s instanceof ye){if(7001==s.code)throw s;if(1010==s.code)throw o;if(1==s.severity)return l=new q("retry",l=(new Map).set("error",s)),e.dispatchEvent(l),i=(i+1)%n.uris.length,Ar(e,t,n,r,i,s,a)}throw s})}function jr(){this.g=0}function Or(e,t,n){mr.call(this,e,t),this.h=n}mr.prototype.abort=function(){return this.g=!0,this.i()},mr.prototype.finally=function(e){return this.promise.then(function(){return e(!0)},function(){return e(!1)}),this},mr.prototype.va=function(e,t){function n(n){return function(s){if(i.g&&n)o.reject(a);else{var l=n?e:t;l?r=function(e,t,n){try{var r=e(t);return r&&r.promise&&r.abort?(n.resolve(r.promise),function(){return r.abort()}):(n.resolve(r),function(){return Promise.resolve(r).then(function(){},function(){})})}catch(i){return n.reject(i),function(){return Promise.resolve()}}}(l,s,o):(n?o.resolve:o.reject)(s)}}}function r(){return o.reject(a),i.abort()}var i=this,o=new Dt,a=new ye(2,7,7001);return this.promise.then(n(!0),n(!1)),new mr(o,function(){return r()})},H("shaka.util.AbortableOperation",mr),mr.prototype.chain=mr.prototype.va,mr.prototype.finally=mr.prototype.finally,mr.all=wr,mr.prototype.abort=mr.prototype.abort,mr.notAbortable=yr,mr.completed=br,mr.aborted=vr,mr.failed=gr,Cr.prototype.destroy=function(){for(var e=[],t=c(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch(function(){}),e.push(n.abort());return this.g=[],Promise.all(e)},g(Er,$),(r=Er.prototype).Ee=function(e){this.B=e},r.$g=function(e){this.g.add(e)},r.qh=function(e){this.g.delete(e)},r.Vf=function(){this.g.clear()},r.ah=function(e){this.h.add(e)},r.rh=function(e){this.h.delete(e)},r.Wf=function(){this.h.clear()},r.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),$.prototype.release.call(this),this.s.destroy()},r.request=function(e,t){var n=this,r=new jr;if(this.i){var i=Promise.reject(new ye(2,7,7001));return i.catch(function(){}),new Or(i,function(){return Promise.resolve()},r)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?kr(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=kr(t.uris),i=function(e,t,n){for(var r=br(void 0),i={},o=(e=c(e.g)).next();!o.done;i={Rd:i.Rd},o=e.next())i.Rd=o.value,r=r.va(function(e){return function(){return n.body&&(n.body=jt(n.body)),e.Rd(t,n)}}(i));return r.va(void 0,function(e){if(e instanceof ye&&7001==e.code)throw e;throw new ye(2,1,1006,e)})}(this,e,t);var o=i.va(function(){return Ar(n,e,t,new fr(t.retryParameters,!1),0,null,r)}),a=o.va(function(t){return function(e,t,n){for(var r=br(void 0),i={},o=(e=c(e.h)).next();!o.done;i={Sd:i.Sd},o=e.next())i.Sd=o.value,r=r.va(function(e){return function(){var r=n.response;return r.data&&(r.data=jt(r.data)),e.Sd(t,r)}}(i));return r.va(function(){return n},function(e){var t=2;if(e instanceof ye){if(7001==e.code)throw e;t=e.severity}throw new ye(t,1,1007,e)})}(n,e,t)}),s=Date.now(),l=0;i.promise.then(function(){l=Date.now()-s},function(){});var d=0;o.promise.then(function(){d=Date.now()},function(){});var u=a.va(function(t){var r=Date.now()-d,i=t.response;return i.timeMs+=l,i.timeMs+=r,t.Kg||!n.l||i.fromCache||e!=Pr||n.l(i.timeMs,i.data.byteLength),i},function(e){throw e&&(e.severity=2),e});return i=new Or(u.promise,function(){return u.abort()},r),Sr(this.s,i),i},H("shaka.net.NetworkingEngine",Er),Er.prototype.request=Er.prototype.request,Er.prototype.destroy=Er.prototype.destroy,Er.makeRequest=Tr,Er.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},Er.prototype.clearAllResponseFilters=Er.prototype.Wf,Er.prototype.unregisterResponseFilter=Er.prototype.rh,Er.prototype.registerResponseFilter=Er.prototype.ah,Er.prototype.clearAllRequestFilters=Er.prototype.Vf,Er.prototype.unregisterRequestFilter=Er.prototype.qh,Er.prototype.registerRequestFilter=Er.prototype.$g,Er.unregisterScheme=function(e){delete Ir[e]},Er.registerScheme=Mr,Er.prototype.setForceHTTPS=Er.prototype.Ee,Er.NumBytesRemainingClass=jr,g(Or,mr),Er.PendingRequest=Or;var Pr=1;Er.RequestType={MANIFEST:0,SEGMENT:Pr,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var Lr=3;Er.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Lr};var Ir={};function Nr(e){this.g=!1,this.h=new Dt,this.i=e}function Rr(e,t){if(e.g){if(t instanceof ye&&7003==t.code)throw t;throw new ye(2,7,7003,t)}}function Dr(){this.g=new Q}function Br(e,t,n,r){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(null==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter(function(e){return!n.has(e)}),function(e){var t=zr;if(null==t){t=!1;try{var n={},r={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",r),Object.defineProperty(n,"capture",r),r=function(){},e.addEventListener("test",r,n),e.removeEventListener("test",r,n)}catch(i){t=!1}zr=t}return t||!1}(e)?t:t.capture||!1}(e,r),this.target.addEventListener(t,n,this.g)}Nr.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then(function(){e.h.resolve()},function(){e.h.resolve()}))},(r=Dr.prototype).release=function(){this.Yb(),this.g=null},r.o=function(e,t,n,r){this.g&&(e=new Br(e,t,n,r),this.g.push(t,e))},r.Qa=function(e,t,n,r){var i=this;this.o(e,t,function r(o){i.Ta(e,t,r),n(o)},r)},r.Ta=function(e,t,n){if(this.g)for(var r=this.g.get(t)||[],i=(r=c(r)).next();!i.done;i=r.next())(i=i.value).target!=e||n!=i.listener&&n||(i.Ta(),this.g.remove(t,i))},r.Yb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,d(t.g[e]));for(n=(t=c(n)).next();!n.done;n=t.next())n.value.Ta();this.g.g={}}},H("shaka.util.EventManager",Dr),Dr.prototype.removeAll=Dr.prototype.Yb,Dr.prototype.unlisten=Dr.prototype.Ta,Dr.prototype.listenOnce=Dr.prototype.Qa,Dr.prototype.listen=Dr.prototype.o,Dr.prototype.release=Dr.prototype.release,Br.prototype.Ta=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var zr=void 0;function Fr(){}function Hr(e){return new oe(e=qt(e)).eb}function qr(e,t,n){function r(e){Pt(o).setUint32(a,e.byteLength,!0),a+=4,o.set(Ot(e),a),a+=e.byteLength}if(!n||!n.byteLength)throw new ye(2,6,6015);var i;i="string"==typeof t?Vt(t,!0):t,e=Vt(e=qt(e),!0);var o=new Uint8Array(12+e.byteLength+i.byteLength+n.byteLength),a=0;return r(e),r(i),r(n),o}function Ur(e){for(var t=new Map,n=c(Object.keys(e)),r=n.next();!r.done;r=n.next())r=r.value,t.set(r,e[r]);return t}function Vr(e){var t={};return e.forEach(function(e,n){t[n]=e}),t}function Xr(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=c(e),r=n.next();!r.done;r=n.next()){var i=c(r.value);if(r=i.next().value,i=i.next().value,!t.has(r))return!1;if((r=t.get(r))!=i||null==r)return!1}return!0}function Gr(e,t){var n=this;t=void 0===t?1:t,this.F=e,this.G=new Set,this.g=this.s=null,this.ia=this.ea=!1,this.I=0,this.i=null,this.h=new Dr,this.j=new Map,this.C=[],this.B=new Dt,this.m=null,this.l=function(t){n.B.reject(t),e.onError(t)},this.ka=new Map,this.$=new Map,this.P=new pn(function(){return function(e){var t=e.ka,n=e.$;n.clear(),t.forEach(function(e,t){return n.set(t,e)}),(t=Array.from(n.values())).length&&t.every(function(e){return"expired"==e})&&e.l(new ye(2,6,6014)),e.F.wd(Vr(n))}(n)}),this.L=!1,this.J=[],this.M=!1,this.ha=new pn(function(){!function(e){e.j.forEach(function(t,n){var r=t.pe,i=n.expiration;isNaN(i)&&(i=1/0),i!=r&&(e.F.onExpirationUpdated(n.sessionId,i),t.pe=i)})}(n)}).na(t),this.B.catch(function(){}),this.N=new Nr(function(){return function(e){return I(function(t){switch(t.g){case 1:return e.h.release(),e.h=null,e.B.reject(),e.ha.stop(),e.ha=null,e.P.stop(),e.P=null,w(t,ii(e),2);case 2:if(!e.g){t.D(3);break}return x(t,4),w(t,e.g.setMediaKeys(null),6);case 6:S(t,5);break;case 4:E(t);case 5:e.g=null;case 3:e.i=null,e.G.clear(),e.s=null,e.C=[],e.m=null,e.l=function(){},e.F=null,e.S=!1,k(t)}})}(n)}),this.S=!1}function Wr(e,t,n){return e.C=n,e.L=0<n.length,Jr(e,t)}function Jr(t,n){var r,i,o,a,s,l,d,u,h,f,p,m;return I(function(g){if(1==g.g){if(r=function(t){if(0==(t=Ur(t.m.clearKeys)).size)return null;var n=[],r=[];t.forEach(function(e,t){var i=Kt(t),o=Kt(e);i={kty:"oct",kid:Jt(i,!1),k:Jt(o,!1)},n.push(i),r.push(i.kid)}),t=JSON.stringify({keys:n});var i=JSON.stringify({kids:r});return i=[{initData:Ot(Ut(i)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:i,keyIds:new Set(r)}}(t))for(i=c(n),o=i.next();!o.done;o=i.next())(a=o.value).video&&(a.video.drmInfos=[r]),a.audio&&(a.audio.drmInfos=[r]);for((s=n.some(function(e){return!!(e.video&&e.video.drmInfos.length||e.audio&&e.audio.drmInfos.length)}))||(l=Ur(t.m.servers),function(e,t){var n=[];t.forEach(function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var r=c(e),i=r.next();!i.done;i=r.next())(i=i.value).video&&(i.video.drmInfos=n),i.audio&&(i.audio.drmInfos=n)}(n,l)),d=c(n),o=d.next();!o.done;o=d.next())for(u=o.value,h=ai(u),f=c(h),p=f.next();!p.done;p=f.next())ci(p.value,Ur(t.m.servers),Ur(t.m.advanced||{}));return w(g,Pn(n,t.L,t.S),2)}return s||Object.keys(t.m.servers).length?(m=$r(t,void 0,n),g.return(s?m:m.catch(function(){}))):(t.ea=!0,g.return(Promise.resolve()))})}function Zr(e){var t,n;return I(function(r){switch(r.g){case 1:if(!e.s||!e.i)return r.return();if(!e.i.serverCertificateUri||e.i.serverCertificate&&e.i.serverCertificate.length){r.D(2);break}return t=Tr([e.i.serverCertificateUri],e.m.retryParameters),x(r,3),w(r,e.F.Wb.request(5,t).promise,5);case 5:n=r.h,e.i.serverCertificate=Ot(n.data),S(r,4);break;case 3:throw new ye(2,6,6017,E(r));case 4:if(e.N.g)return r.return();case 2:return e.i.serverCertificate&&e.i.serverCertificate.length?(x(r,6),w(r,e.s.setServerCertificate(e.i.serverCertificate),8)):r.return();case 8:S(r,0);break;case 6:throw new ye(2,6,6004,E(r).message)}})}function Kr(e){for(var t=(e.i?e.i.initData:[])||[],n=c(t),r=n.next();!r.done;r=n.next())Yr(e,(r=r.value).initDataType,r.initData);for(r=(n=c(e.C)).next();!r.done;r=n.next())ei(e,r.value);return t.length||e.C.length||e.B.resolve(),e.B}function Yr(e,t,n){for(var r=e.j.values(),i=(r=c(r)).next();!i.done;i=r.next())if(Tt(n,i.value.initData)&&!kn("Tizen 2"))return;!function(e,t,n,r){try{var i=e.s.createSession(r)}catch(o){return void e.l(new ye(2,6,6005,o.message))}e.h.o(i,"message",function(t){e.g&&e.m.delayLicenseRequestUntilPlayed&&e.g.paused&&!e.M?e.J.push(t):ni(e,t)}),e.h.o(i,"keystatuseschange",function(t){return ri(e,t)}),e.j.set(i,{initData:n,loaded:!1,pe:1/0,jb:null,type:r});try{n=e.m.initDataTransform(n,t,e.i)}catch(o){return t=o,o instanceof ye||(t=new ye(2,6,6016,o)),void e.l(t)}e.m.logLicenseExchange&&Jt(n),i.generateRequest(t,n).catch(function(t){if(!e.N.g){e.j.delete(i);var n=t.errorCode;if(n&&n.systemCode){var r=n.systemCode;0>r&&(r+=Math.pow(2,32)),r="0x"+r.toString(16)}e.l(new ye(2,6,6006,t.message,t,r))}})}(e,t,n,e.i.sessionType)}function Qr(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function _r(e){return e=ee(e=e.j.keys(),function(e){return e.sessionId}),Array.from(e)}function $r(e,t,n){var r,i,o,a,s,l,d,u,h,f,p,m,g;return I(function(v){switch(v.g){case 1:if(r=new Map,n.length){i=function(e,t,n){for(var r=c(t),i=r.next();!i.done;i=r.next()){var o=c(ai(i.value));for(i=o.next();!i.done;i=o.next())i=i.value,n.has(i.keySystem)||n.set(i.keySystem,[]),n.get(i.keySystem).push(i)}if(1==n.size&&n.has(""))throw new ye(2,6,6e3);for(r={},e=c(e.m.preferredKeySystems),i=e.next();!i.done;r={Pd:r.Pd},i=e.next())for(r.Pd=i.value,o=c(t),i=o.next();!i.done;i=o.next())if(i=i.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.Pd}}(r)))return i.keySystemAccess;for(e=c([!0,!1]),i=e.next();!i.done;i=e.next())for(r=i.value,o=c(t),i=o.next();!i.done;i=o.next()){var a=c(i.value.decodingInfos);for(i=a.next();!i.done;i=a.next()){var s=i.value;if(s.supported&&s.keySystemAccess){var l=c(i=n.get(s.keySystemAccess.keySystem));for(i=l.next();!i.done;i=l.next())if(!!i.value.licenseServerUri==r)return s.keySystemAccess}}}return null}(e,n,r),v.D(2);break}return w(v,function(e,t){var n,r,i,o,a,s,l,d,u,h,f,p,m,g,v;return I(function(b){switch(b.g){case 1:if(1==t.size&&t.has(""))throw new ye(2,6,6e3);for(r=c(t.values()),i=r.next();!i.done;i=r.next())0==(o=i.value).audioCapabilities.length&&delete o.audioCapabilities,0==o.videoCapabilities.length&&delete o.videoCapabilities;a=c(e.m.preferredKeySystems),s=a.next();case 2:if(s.done){b.D(4);break}if(l=s.value,!t.has(l)){b.D(3);break}return d=t.get(l),x(b,6),w(b,navigator.requestMediaKeySystemAccess(l,[d]),8);case 8:return n=b.h,b.return(n);case 6:E(b);case 7:Rr(e.N);case 3:s=a.next(),b.D(2);break;case 4:u=c([!0,!1]),h=u.next();case 9:if(h.done){b.D(11);break}f=h.value,p=c(t.keys()),s=p.next();case 12:if(s.done){h=u.next(),b.D(9);break}if(m=s.value,g=t.get(m),v=g.drmInfos.some(function(e){return!!e.licenseServerUri}),v!=f){b.D(13);break}return x(b,15),w(b,navigator.requestMediaKeySystemAccess(m,[g]),17);case 17:return n=b.h,b.return(n);case 15:E(b);case 16:Rr(e.N);case 13:s=p.next(),b.D(12);break;case 11:return b.return(n)}})}(e,t),3);case 3:i=v.h;case 2:if(!(o=i))throw new ye(2,6,6001);for(Rr(e.N),x(v,4),e.G.clear(),a=o.getConfiguration(),s=a.audioCapabilities||[],l=a.videoCapabilities||[],d=c(s),u=d.next();!u.done;u=d.next())h=u.value,e.G.add(h.contentType.toLowerCase());for(f=c(l),u=f.next();!u.done;u=f.next())p=u.value,e.G.add(p.contentType.toLowerCase());if(n.length){var b=o.keySystem,y=r.get(o.keySystem),k=[],C=[],M=[],T=[],A=new Set;li(y,k,M,C,T,A);var j=e.L?"persistent-license":"temporary";for(b={keySystem:b,licenseServerUri:k[0],distinctiveIdentifierRequired:y[0].distinctiveIdentifierRequired,persistentStateRequired:y[0].persistentStateRequired,sessionType:y[0].sessionType||j,audioRobustness:y[0].audioRobustness||"",videoRobustness:y[0].videoRobustness||"",serverCertificate:M[0],serverCertificateUri:C[0],initData:T,keyIds:A},k=(y=c(y)).next();!k.done;k=y.next())(k=k.value).distinctiveIdentifierRequired&&(b.distinctiveIdentifierRequired=k.distinctiveIdentifierRequired),k.persistentStateRequired&&(b.persistentStateRequired=k.persistentStateRequired);y=b}else y=o.keySystem,b=t.get(o.keySystem),k=[],C=[],M=[],T=[],A=new Set,li(b.drmInfos,k,M,C,T,A),y={keySystem:y,licenseServerUri:k[0],distinctiveIdentifierRequired:"required"==b.distinctiveIdentifier,persistentStateRequired:"required"==b.persistentState,sessionType:b.sessionTypes[0]||"temporary",audioRobustness:(b.audioCapabilities?b.audioCapabilities[0].robustness:"")||"",videoRobustness:(b.videoCapabilities?b.videoCapabilities[0].robustness:"")||"",serverCertificate:M[0],serverCertificateUri:C[0],initData:T,keyIds:A};if(e.i=y,!e.i.licenseServerUri)throw new ye(2,6,6012,e.i.keySystem);return w(v,o.createMediaKeys(),6);case 6:return m=v.h,Rr(e.N),e.s=m,e.ea=!0,w(v,Zr(e),7);case 7:Rr(e.N),S(v,0);break;case 4:if(g=E(v),Rr(e.N,g),e.i=null,e.G.clear(),g instanceof ye)throw g;throw new ye(2,6,6002,g.message)}})}function ei(e,t){var n,r,i,o,a;return I(function(s){switch(s.g){case 1:try{n=e.s.createSession("persistent-license")}catch(l){return r=new ye(2,6,6005,l.message),e.l(r),s.return(Promise.reject(r))}return e.h.o(n,"message",function(t){e.g&&e.m.delayLicenseRequestUntilPlayed&&e.g.paused&&!e.M?e.J.push(t):ni(e,t)}),e.h.o(n,"keystatuseschange",function(t){return ri(e,t)}),i={initData:null,loaded:!1,pe:1/0,jb:null,type:"persistent-license"},e.j.set(n,i),x(s,2),w(s,n.load(t),4);case 4:return o=s.h,Rr(e.N),o?(i.loaded=!0,si(e)&&e.B.resolve(),s.return(n)):(e.j.delete(n),e.l(new ye(2,6,6013)),s.return(Promise.resolve()));case 2:a=E(s),Rr(e.N,a),e.j.delete(n),e.l(new ye(2,6,6005,a.message));case 3:return s.return(Promise.resolve())}})}function ti(e,t,n){return"skd"==t&&(t=n.serverCertificate,e=qr(e,n=Hr(e),t)),e}function ni(e,t){var n,r,i,o,a,s,l,d,u,h,f,p;I(function(m){switch(m.g){case 1:return n=t.target,e.m.logLicenseExchange&&Jt(t.message),r=e.j.get(n),i=e.i.licenseServerUri,o=e.m.advanced[e.i.keySystem],"individualization-request"==t.messageType&&o&&o.individualizationServer&&(i=o.individualizationServer),(a=Tr([i],e.m.retryParameters)).body=t.message,a.method="POST",a.licenseRequestType=t.messageType,a.sessionId=n.sessionId,Qr(e.i.keySystem)&&function(e){var t=Ht(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=c((t=(new DOMParser).parseFromString(t,"application/xml")).getElementsByTagName("HttpHeader")),r=n.next();!r.done;r=n.next())r=r.value,e.headers[r.getElementsByTagName("name")[0].textContent]=r.getElementsByTagName("value")[0].textContent;e.body=Zt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(a),s=Date.now(),x(m,2),w(m,e.F.Wb.request(2,a).promise,4);case 4:l=m.h,S(m,3);break;case 2:return d=E(m),u=new ye(2,6,6007,d),e.l(u),r&&r.jb&&r.jb.reject(u),m.return();case 3:return e.N.g?m.return():(e.I+=(Date.now()-s)/1e3,e.m.logLicenseExchange&&Jt(l.data),x(m,5),w(m,n.update(l.data),7));case 7:S(m,6);break;case 5:return h=E(m),f=new ye(2,6,6008,h.message),e.l(f),r&&r.jb&&r.jb.reject(f),m.return();case 6:p=new q("drmsessionupdate"),e.F.onEvent(p),r&&(r.jb&&r.jb.resolve(),new pn(function(){r.loaded=!0,si(e)&&e.B.resolve()}).U(ui)),k(m)}})}function ri(e,t){var n=t.target,r=e.j.get(n),i=!1;n.keyStatuses.forEach(function(t,n){if("string"==typeof n){var o=n;n=t,t=o}if(Qr(e.i.keySystem)&&16==n.byteLength&&navigator.userAgent.match(/Edge?\//)){var a=(o=Pt(n)).getUint32(0,!0),s=o.getUint16(4,!0),l=o.getUint16(6,!0);o.setUint32(0,a,!1),o.setUint16(4,s,!1),o.setUint16(6,l,!1)}"status-pending"!=t&&(r.loaded=!0),"expired"==t&&(i=!0),o=Yt(n),e.ka.set(o,t)});var o=n.expiration-Date.now();(0>o||i&&1e3>o)&&r&&!r.jb&&(e.j.delete(n),n.close().catch(function(){})),si(e)&&(e.B.resolve(),e.P.U(hi))}function ii(e){var t;return I(function(n){return t=Array.from(e.j.entries()),e.j.clear(),w(n,Promise.all(t.map(function(t){var n=(t=c(t)).next().value,r=t.next().value;return I(function(t){return 1==t.g?(x(t,2),e.ia||e.C.includes(n.sessionId)||"persistent-license"!==r.type?w(t,function(e){var t;return I(function(n){return 1==n.g?(t=new Promise(function(e,t){new pn(t).U(di)}),x(n,2),w(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?S(n,0):(E(n),void k(n))})}(n),5):w(t,n.remove(),5)):2!=t.g?S(t,0):(E(t),void k(t))})})),0)})}function oi(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],r=c(e),i=r.next();!i.done;i=r.next()){i=i.value;for(var o={},a=c(t),s=a.next();!s.done;o={Za:o.Za},s=a.next())if(s=s.value,i.keySystem==s.keySystem){o.Za=[],o.Za=o.Za.concat(i.initData||[]),o.Za=o.Za.concat(s.initData||[]),o.Za=o.Za.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Za.findIndex(function(e){return e.keyId===t.keyId})}}(o)),a=i.keyIds&&s.keyIds?new Set([].concat(d(i.keyIds),d(s.keyIds))):i.keyIds||s.keyIds,n.push({keySystem:i.keySystem,licenseServerUri:i.licenseServerUri||s.licenseServerUri,distinctiveIdentifierRequired:i.distinctiveIdentifierRequired||s.distinctiveIdentifierRequired,persistentStateRequired:i.persistentStateRequired||s.persistentStateRequired,videoRobustness:i.videoRobustness||s.videoRobustness,audioRobustness:i.audioRobustness||s.audioRobustness,serverCertificate:i.serverCertificate||s.serverCertificate,serverCertificateUri:i.serverCertificateUri||s.serverCertificateUri,initData:o.Za,keyIds:a});break}}return n}function ai(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function si(e){return function(e,t){for(var n=c(e),r=n.next();!r.done;r=n.next())if(!t(r.value))return!1;return!0}(e=e.j.values(),function(e){return e.loaded})}function li(e,t,n,r,i,o){for(var a={},s=(e=c(e)).next();!s.done;a={La:a.La},s=e.next()){if(a.La=s.value,t.includes(a.La.licenseServerUri)||t.push(a.La.licenseServerUri),r.includes(a.La.serverCertificateUri)||r.push(a.La.serverCertificateUri),a.La.serverCertificate&&(n.some(function(e){return function(t){return Tt(t,e.La.serverCertificate)}}(a))||n.push(a.La.serverCertificate)),a.La.initData){s={};for(var l=c(a.La.initData),d=l.next();!d.done;s={dd:s.dd},d=l.next())s.dd=d.value,i.some(function(e){return function(t){var n=e.dd;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&Tt(t.initData,n.initData)}}(s))||i.push(s.dd)}if(a.La.keyIds)for(l=(s=c(a.La.keyIds)).next();!l.done;l=s.next())o.add(l.value)}}function ci(t,n,r){!t.keySystem||"org.w3.clearkey"==t.keySystem&&t.licenseServerUri||(n.size&&(n=n.get(t.keySystem)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(r=r.get(t.keySystem))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=r.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=r.persistentStateRequired),t.videoRobustness||(t.videoRobustness=r.videoRobustness),t.audioRobustness||(t.audioRobustness=r.audioRobustness),t.serverCertificate||(t.serverCertificate=r.serverCertificate),r.sessionType&&(t.sessionType=r.sessionType),t.serverCertificateUri||(t.serverCertificateUri=r.serverCertificateUri)),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==t.keySystem&&(t.keySystem="com.chromecast.playready"))}H("shaka.util.FairPlayUtils",Fr),Fr.initDataTransform=qr,Fr.defaultGetContentId=Hr,(r=Gr.prototype).destroy=function(){return this.N.destroy()},r.configure=function(e){this.m=e},r.Hc=function(e){var t,n=this;return I(function(r){if(1==r.g)return n.s?(n.g=e,n.h.Qa(n.g,"play",function(){for(var e=c(n.J),t=e.next();!t.done;t=e.next())ni(n,t.value);n.M=!0,n.J=[]}),"webkitCurrentPlaybackTargetIsWireless"in n.g&&n.h.o(n.g,"webkitcurrentplaybacktargetiswirelesschanged",function(){return ii(n)}),w(r,n.g.setMediaKeys(n.s).catch(function(e){return Promise.reject(new ye(2,6,6003,e.message))}),2)):(n.h.Qa(e,"encrypted",function(){n.l(new ye(2,6,6010))}),r.return());Rr(n.N),Kr(n),n.i.initData.length||n.C.length||(t=function(e){return Yr(n,e.initDataType,Ot(e.initData))},n.h.o(n.g,"encrypted",t)),k(r)})},r.Lc=function(){for(var e=1/0,t=this.j.keys(),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},r.qd=function(){return Vr(this.$)};var di=1,ui=5,hi=.5,fi=new Bt(function(){return jt(new Uint8Array([0]))});function pi(){}function mi(e,t,n,r){var i,o,a,s;return I(function(l){if(1==l.g)return r&&(i=bi[r.toLowerCase()])?l.return(i):(o=vi(e))&&(a=yi[o])?l.return(a):r?l.D(2):w(l,gi(e,t,n),3);if(2!=l.g&&(r=l.h)&&(s=bi[r]))return l.return(s);throw new ye(2,4,4e3,e)})}function gi(e,t,n){var r,i,o;return I(function(a){return 1==a.g?((r=Tr([e],n)).method="HEAD",w(a,t.request(0,r).promise,2)):(i=a.h,o=i.headers["content-type"],a.return(o?o.toLowerCase().split(";").shift():""))})}function vi(e){return 1==(e=new oe(e).Sa.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}H("shaka.media.ManifestParser",pi),pi.unregisterParserByMime=function(e){delete bi[e]},pi.registerParserByMime=function(e,t){bi[e]=t},pi.registerParserByExtension=function(e,t){yi[e]=t};var bi={},yi={};function wi(e,t){this.X=Pt(e),this.h=t==xi,this.g=0}function ki(){return new ye(2,3,3e3)}(r=wi.prototype).Ia=function(){return this.g<this.X.byteLength},r.qa=function(){return this.g},r.og=function(){return this.X.byteLength},r.ra=function(){try{var e=this.X.getUint8(this.g);return this.g+=1,e}catch(t){throw ki()}},r.wc=function(){try{var e=this.X.getUint16(this.g,this.h);return this.g+=2,e}catch(t){throw ki()}},r.T=function(){try{var e=this.X.getUint32(this.g,this.h);return this.g+=4,e}catch(t){throw ki()}},r.wf=function(){try{var e=this.X.getInt32(this.g,this.h);return this.g+=4,e}catch(t){throw ki()}},r.xc=function(){try{if(this.h)var e=this.X.getUint32(this.g,!0),t=this.X.getUint32(this.g+4,!0);else t=this.X.getUint32(this.g,!1),e=this.X.getUint32(this.g+4,!1)}catch(n){throw ki()}if(2097151<t)throw new ye(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},r.Lb=function(e){if(this.g+e>this.X.byteLength)throw ki();var t=Ot(this.X,this.g,e);return this.g+=e,t},r.skip=function(e){if(this.g+e>this.X.byteLength)throw ki();this.g+=e},r.yf=function(e){if(this.g<e)throw ki();this.g-=e},r.seek=function(e){if(0>e||e>this.X.byteLength)throw ki();this.g=e},r.Wc=function(){for(var e=this.g;this.Ia()&&0!=this.X.getUint8(this.g);)this.g+=1;return e=Ot(this.X,e,this.g-e),this.g+=1,Ft(e)},H("shaka.util.DataViewReader",wi),wi.prototype.readTerminatedString=wi.prototype.Wc,wi.prototype.seek=wi.prototype.seek,wi.prototype.rewind=wi.prototype.yf,wi.prototype.skip=wi.prototype.skip,wi.prototype.readBytes=wi.prototype.Lb,wi.prototype.readUint64=wi.prototype.xc,wi.prototype.readInt32=wi.prototype.wf,wi.prototype.readUint32=wi.prototype.T,wi.prototype.readUint16=wi.prototype.wc,wi.prototype.readUint8=wi.prototype.ra,wi.prototype.getLength=wi.prototype.og,wi.prototype.getPosition=wi.prototype.qa,wi.prototype.hasMoreData=wi.prototype.Ia;var xi=1;function Ci(){this.i=[],this.h=[],this.g=!1}function Si(e){for(var t=ji(e);e.reader.Ia()&&!e.parser.g;)e.parser.yd(e.start+t,e.reader,e.partialOkay)}function Ei(e){for(var t=ji(e),n=e.reader.T(),r=(n=c(ne(n))).next();!r.done&&(e.parser.yd(e.start+t,e.reader,e.partialOkay),!e.parser.g);r=n.next());}function Mi(e){return function(t){e(t.reader.Lb(t.reader.X.byteLength-t.reader.qa()))}}function Ti(e){for(var t=0,n=(e=c(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function Ai(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function ji(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}wi.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:xi},(r=Ci.prototype).box=function(e,t){var n=Ti(e);return this.i[n]=Oi,this.h[n]=t,this},r.Z=function(e,t){var n=Ti(e);return this.i[n]=Pi,this.h[n]=t,this},r.stop=function(){this.g=!0},r.parse=function(e,t,n){for(e=new wi(e,0),this.g=!1;e.Ia()&&!this.g;)this.yd(0,e,t,n)},r.yd=function(e,t,n,r){var i=t.qa();if(r&&i+8>t.X.byteLength)this.g=!0;else{var o=t.T(),a=t.T(),s=!1;switch(o){case 0:o=t.X.byteLength-i;break;case 1:if(r&&t.qa()+8>t.X.byteLength)return void(this.g=!0);o=t.xc(),s=!0}var l=this.h[a];if(l){var c=null,d=null;if(this.i[a]==Pi){if(r&&t.qa()+4>t.X.byteLength)return void(this.g=!0);c=(d=t.T())>>>24,d&=16777215}a=i+o,n&&a>t.X.byteLength&&(a=t.X.byteLength),r&&a>t.X.byteLength?this.g=!0:(r=a-t.qa(),l({parser:this,partialOkay:n||!1,version:c,flags:d,reader:t=new wi(t=0<r?t.Lb(r):new Uint8Array(0),0),size:o,start:i+e,has64BitSize:s}))}else t.skip(Math.min(i+o-t.qa(),t.X.byteLength-t.qa()))}},H("shaka.util.Mp4Parser",Ci),Ci.headerSize=ji,Ci.typeToString=Ai,Ci.allData=Mi,Ci.sampleDescription=Ei,Ci.children=Si,Ci.prototype.parseNext=Ci.prototype.yd,Ci.prototype.parse=Ci.prototype.parse,Ci.prototype.stop=Ci.prototype.stop,Ci.prototype.fullBox=Ci.prototype.Z,Ci.prototype.box=Ci.prototype.box;var Oi=0,Pi=1;function Li(e,t,n,r,i){var o=Ni.value(),a=e.subarray(n.start,n.start+n.size),s=Pt(a),l=new Uint8Array(n.size+o.byteLength);for(l.set(a,0),(a=Pt(l)).setUint32(4,i),l.set(o,n.size),i=s.getUint32(4),a.setUint32(n.size+16,i),Ii(l,0,l.byteLength),i=new Uint8Array(e.byteLength+l.byteLength),n=kn("Xbox One")?n.start:n.start+n.size,o=e.subarray(n),i.set(e.subarray(0,n)),i.set(l,n),i.set(o,n+l.byteLength),r=(e=c(r)).next();!r.done;r=e.next())Ii(i,(r=r.value).start,r.size+l.byteLength);return l=Pt(i,t.start),t=ji(t),e=l.getUint32(t),l.setUint32(t,e+1),i}function Ii(e,t,n){0!=(t=(e=Pt(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var Ni=new Bt(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Ri(e,t,n,r,i){if(r>=i)return null;for(var o=-1,a=-1,s=0;s<n.length;s++)if(n[s].some(function(e){return null!=e&&""!=e.g.trim()})){o=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some(function(e){return null!=e&&""!=e.g.trim()})){a=s;break}if(-1===o||-1===a)return null;for(var l=s=!1,c="white",d="black",u=Di(r,i,s,l,c,d);o<=a;o++){for(var h=n[o],f=-1,p=-1,m=0;m<h.length;m++)if(null!=h[m]&&""!==h[m].g.trim()){f=m;break}for(m=h.length-1;0<=m;m--)if(null!=h[m]&&""!==h[m].g.trim()){p=m;break}if(-1===f||-1===p)h=Bi(r,i),e.nestedCues.push(h);else{for(;f<=p;f++)if(m=h[f]){var g=m.l,v=m.i,b=m.j,y=m.h;g==s&&v==l&&b==c&&y==d||(u.payload&&e.nestedCues.push(u),u=Di(r,i,g,v,b,y),s=g,l=v,c=b,d=y),u.payload+=m.g}else u.payload+=" ";u.payload&&e.nestedCues.push(u),o!==a&&(u=Bi(r,i),e.nestedCues.push(u)),u=Di(r,i,s,l,c,d)}}return e.nestedCues.length?{cue:e,stream:t}:null}function Di(e,t,n,r,i,o){return e=new at(e,t,""),n&&e.textDecoration.push("underline"),r&&(e.fontStyle="italic"),e.color=i,e.backgroundColor=o,e}function Bi(e,t){var n=new at(e,t,"");return n.lineBreak=!0,n}function zi(e,t,n,r,i){this.g=e,this.l=t,this.i=n,this.h=r,this.j=i}function Fi(e,t){this.i=[],this.g=1,this.h=0,this.G=e,this.C=t,this.j=this.s=!1,this.l="white",this.B="black",qi(this)}function Hi(e,t,n){return Ri(new at(t,n,""),"CC"+(e.G<<1|e.C+1),e.i,t,n)}function qi(e){Xi(e,0,15),e.g=1}function Ui(e,t,n){if(!(32>n||127<n)){var r="";switch(t){case Gi:r=Ki.has(n)?Ki.get(n):String.fromCharCode(n);break;case Wi:r=Yi.get(n);break;case Ji:e.i[e.g].pop(),r=Qi.get(n);break;case Zi:e.i[e.g].pop(),r=_i.get(n)}r&&e.i[e.g].push(new zi(r,e.s,e.j,e.B,e.l))}}function Vi(e,t,n,r){if(t>=n)for(--r;0<=r;r--)e.i[t+r]=e.i[n+r].map(function(e){return e});else for(var i=0;i<r;i++)e.i[t+i]=e.i[n+i].map(function(e){return e})}function Xi(e,t,n){for(var r=0;r<=n;r++)e.i[t+r]=[]}var Gi=0,Wi=1,Ji=2,Zi=3,Ki=new Map([[39,"’"],[42,"á"],[92,"é"],[92,"é"],[94,"í"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"█"]]),Yi=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"™"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à"],[57,"⠀"],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),Qi=new Map([[32,"Á"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ü"],[37,"ü"],[38,"‘"],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"℠"],[45,"·"],[46,"“"],[47,"”"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"Î"],[56,"Ï"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),_i=new Map([[32,"Ã"],[33,"ã"],[34,"Í"],[35,"Ì"],[36,"ì"],[37,"Ò"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"¥"],[54,"¤"],[55,"│"],[56,"Å"],[57,"å"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"┐"],[62,"└"],[63,"┘"]]);function $i(e,t){this.h=ro,this.B=new Fi(e,t),this.i=new Fi(e,t),this.l=new Fi(e,t),this.g=this.i,this.j=0,this.s=null}function eo(e,t,n){e.g=e.i;var r=e.g,i=null;return e.h!==oo&&e.h!==ao&&(i=Hi(r,e.j,n),(n=e.i).g=0<n.h?n.h:0,Xi(n,0,15),(n=e.l).g=0<n.h?n.h:0,Xi(n,0,15),r.g=15),e.h=oo,r.h=t,i}function to(e){e.h=io,e.g=e.l,e.g.h=0}function no(e){W("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.B,e.h=ao}var ro=0,io=1,oo=3,ao=4,so="black green blue cyan red yellow magenta black".split(" "),lo="white green blue cyan red yellow magenta white_italics".split(" ");function co(){this.l=!1,this.I=this.L=0,this.J=bo,this.i=[],this.g=this.h=this.j=0,this.G=this.B=!1,this.C="white",this.s="black",uo(this)}function uo(e){e.i=[];for(var t=0;15>t;t++)e.i.push(ho())}function ho(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function fo(e,t){po(e)&&(e.i[e.h][e.g]=new zi(t,e.G,e.B,e.s,e.C),e.g++)}function po(e){var t=e.g<e.I&&0<=e.g;return e.h<e.L&&0<=e.h&&t}function mo(e,t,n){var r=new at(e.j,t,"");return r.textAlign=e.J===go?"left":e.J===vo?"right":ct,(n=Ri(r,"svc"+n,e.i,e.j,t))&&(e.j=t),n}co.prototype.isVisible=function(){return this.l};var go=0,vo=1,bo=2;function yo(){this.i=[],this.h=null,this.g=0}function wo(e,t){3===t.type?(e.g=2*(63&t.value)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),0===e.g&&(e.i.push(new ko(e.h)),e.h=null,e.g=0))}function ko(e){this.g=0,this.h=e}function xo(e){if(!e.Ia())throw new ye(2,2,3e3);return e.h[e.g++]}function Co(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function So(e,t,n,r){if(128<=n&&135>=n)r=7&n,e.h[r]&&(e.g=e.h[r]);else{if(136===n){n=xo(t).value,t=null;for(var i=(n=c(Eo(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=mo(i,r,e.i)),uo(i);return t}if(137===n)for(t=xo(t).value,n=(t=c(Eo(e,t))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=r),n.l=!0;else{if(138===n){for(n=xo(t).value,t=null,i=(n=c(Eo(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=mo(i,r,e.i)),i.l=!1;return t}if(139===n){for(n=xo(t).value,t=null,i=(n=c(Eo(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()?t=mo(i,r,e.i):i.j=r,i.l=!i.l;return t}if(140===n)return Mo(e,t=xo(t).value,r);if(143===n)return r=Mo(e,255,r),To(e),r;if(144===n)t.skip(1),r=xo(t).value,e.g&&(e.g.B=0<(128&r),e.g.G=0<(64&r));else if(145===n)r=xo(t).value,n=xo(t).value,t.skip(1),e.g&&(t=Ao((48&n)>>4,(12&n)>>2,3&n),e.g.C=Ao((48&r)>>4,(12&r)>>2,3&r),e.g.s=t);else if(146===n)r=xo(t).value,t=xo(t).value,e.g&&((e=e.g).h=15&r,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),r=xo(t).value,t.skip(1),e.g&&(e.g.J=3&r);else if(152<=n&&159>=n){if(n=(15&n)-8,!(i=null!==e.h[n])){var o=new co;o.j=r,e.h[n]=o}r=xo(t).value,xo(t),xo(t),o=xo(t).value;var a=xo(t).value;t=xo(t).value,i&&!(7&t)||((t=e.h[n]).h=0,t.g=0,t.G=!1,t.B=!1,t.C="white",t.s="black"),(t=e.h[n]).l=0<(32&r),t.L=1+(15&o),t.I=1+(63&a),e.g=e.h[n]}}}return null}ko.prototype.Ia=function(){return this.g<this.h.length},ko.prototype.qa=function(){return this.g},ko.prototype.skip=function(e){if(this.g+e>this.h.length)throw new ye(2,2,3e3);this.g+=e};var Eo=function e(t,n){var r;return L(e,function(e){return 1==e.g&&(r=0),5!=e.g?8>r?1&~n||!t.h[r]?e.D(5):w(e,r,5):e.D(0):(n>>=1,r++,e.D(2))})};function Mo(e,t,n){for(var r=null,i=(t=c(Eo(e,t))).next();!i.done;i=t.next()){i=i.value;var o=e.h[i];o.isVisible()&&(r=mo(o,n,e.i)),e.h[i]=null}return r}function To(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function Ao(e,t,n){var r={0:0,1:0,2:1,3:1};return Oo[(e=r[e])<<2|(t=r[t])<<1|(n=r[n])]}var jo=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),Oo="black blue green cyan red magenta yellow white".split(" ");function Po(){this.h=[],this.g=[],this.i=new yo,this.l=0,this.C=new Map([["CC1",new $i(0,0)],["CC2",new $i(0,1)],["CC3",new $i(1,0)],["CC4",new $i(1,1)]]),this.B=this.s=0,this.j=new Map,Lo(this)}function Lo(e){e.s=0,e.B=0;for(var t=(e=c(e.C.values())).next();!t.done;t=e.next())(t=t.value).h=2,t.g=t.i,t.s=null,qi(t.i),qi(t.l),qi(t.B)}function Io(e,t){var n=t.type;if(16==(112&t.Wa)){var r=t.Wa>>3&1;0===n?e.s=r:e.B=r}if(n=e.C.get("CC"+(n<<1|(n?e.B:e.s)+1)),255===t.Wa&&255===t.rb||!t.Wa&&!t.rb||!Ro(t.Wa)||!Ro(t.rb))return 45<=++e.l&&Lo(e),null;if(e.l=0,t.Wa&=127,t.rb&=127,!t.Wa&&!t.rb)return null;if(r=null,16==(112&t.Wa))e:{var i=t.Wa;if(r=t.rb,n.s===(i<<8|r))n.s=null;else if(n.s=i<<8|r,16==(240&i)&&64==(192&r)){i=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&i)<<1|r>>5&1];var o=(30&r)>>1,a="white",s=!1;if(7>o?a=lo[o]:7===o&&(s=!0),r=!(1&~r),n.h!==ao){if(o=n.g,n.h===oo&&i!==o.g){var l=1+i-o.h;Vi(o,l,1+o.g-o.h,o.h),Xi(o,0,l-1),Xi(o,i+1,15-i)}o.g=i,n.g.s=r,n.g.j=s,n.g.l=a,n.g.B="black"}}else if(17==(247&i)&&32==(240&r))n.g.s=!1,n.g.j=!1,n.g.l="white",Ui(n.g,Gi,32),a=!1,"white_italics"===(i=lo[(14&r)>>1])&&(i="white",a=!0),n.g.s=!(1&~r),n.g.j=a,n.g.l=i;else if(16==(247&i)&&32==(240&r)||23==(247&i)&&45==(255&r))a="black",!(7&i)&&(a=so[(14&r)>>1]),n.g.B=a;else if(17==(247&i)&&48==(240&r))Ui(n.g,Wi,r);else if(18==(246&i)&&32==(224&r))Ui(n.g,1&i?Zi:Ji,r);else if(20==(246&i)&&32==(240&r)){switch(r=t.pts,i=null,t.rb){case 32:to(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:i=eo(n,2,r);break;case 38:i=eo(n,3,r);break;case 39:i=eo(n,4,r);break;case 40:Ui(n.g,Gi,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=r;break;case 42:qi(n.B),no(n);break;case 43:no(n);break;case 44:i=n.i,a=null,n.h!==ao&&(a=Hi(i,n.j,r)),Xi(i,0,15),i=a;break;case 45:i=n.g,n.h!==oo?i=null:(a=Hi(i,n.j,r),Vi(i,(s=i.g-i.h+1)-1,s,i.h),Xi(i,0,s-1),Xi(i,i.g,15-i.g),n.j=r,i=a);break;case 46:Xi(n.l,0,15);break;case 47:i=null,n.h!==ao&&(i=Hi(n.i,n.j,r)),a=n.l,n.l=n.i,n.i=a,to(n),n.j=r}r=i;break e}r=null}else i=t.rb,Ui(n.g,Gi,t.Wa),Ui(n.g,Gi,i);return r}function No(e,t){var n=[];try{for(;t.Ia();){var r=xo(t).value,i=(224&r)>>5,o=31&r;if(7===i&&0!=o&&(i=63&xo(t).value),0!=i){e.j.has(i)||e.j.set(i,new Co(i));for(var a=e.j.get(i),s=t.qa();t.qa()-s<o;){var l=xo(i=t),c=l.value,d=l.pts;if(16===c&&(c=c<<16|xo(i).value),0<=c&&31>=c){var u=d;if(a.g){var h=a.g;switch(i=null,c){case 8:!po(h)||0>=h.g&&0>=h.h||(0>=h.g?(h.g=h.I-1,h.h--):h.g--,h.i[h.h][h.g]=null);break;case 13:if(h.isVisible()&&(i=mo(h,u,a.i)),h.h+1>=h.L){u=h;for(var f=0,p=1;15>p;p++,f++)u.i[f]=u.i[p];for(p=0;1>p;p++,f++)u.i[f]=ho()}else h.h++;h.g=0;break;case 14:h.isVisible()&&(i=mo(h,u,a.i)),h.i[h.h]=ho(),h.g=0;break;case 12:h.isVisible()&&(i=mo(h,u,a.i)),uo(h),(u=h).h=0,u.g=0}var m=i}else m=null}else if(128<=c&&159>=c)m=So(a,i,c,d);else{if(4096<=c&&4127>=c)8<=(u=255&c)&&15>=u?i.skip(1):16<=u&&23>=u?i.skip(2):24<=u&&31>=u&&i.skip(3);else if(4224<=c&&4255>=c)128<=(u=255&c)&&135>=u?i.skip(4):136<=u&&143>=u&&i.skip(5);else if(32<=c&&127>=c)i=c,a.g&&fo(a.g,127===i?"♪":String.fromCharCode(i));else if(160<=c&&255>=c)a.g&&fo(a.g,String.fromCharCode(c));else if(4128<=c&&4223>=c){if(i=255&c,a.g)if(jo.has(i)){var g=jo.get(i);fo(a.g,g)}else fo(a.g,"_")}else 4256<=c&&4351>=c&&a.g&&fo(a.g,160!=(255&c)?"_":"[CC]");m=null}(i=m)&&n.push(i)}}}}catch(v){if(!(v instanceof ye&&3e3===v.code))throw v;W("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function Ro(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function Do(){}var Bo=function e(t,n){var r,i,o,a;return L(e,function(e){if(1==e.g){for(var t=n,s=0,l=0;l<t.length;)2==s&&3==t[l]?(s=0,(t=[].concat(d(t))).splice(l,1),t=new Uint8Array(t)):0==t[l]?s++:s=0,l++;r=t,i=0}if(4!=e.g){if(!(i<r.length))return e.D(0);for(o=0;255==r[i];)o+=255,i++;for(o+=r[i++],a=0;255==r[i];)a+=255,i++;return a+=r[i++],4!=o?e.D(4):w(e,r.subarray(i,i+a),4)}return i+=a,e.D(2)})};function zo(e,t){var n=null,r=null,i=e.T();return 1&t&&e.skip(8),2&t&&e.skip(4),8&t&&(n=e.T()),16&t&&(r=e.T()),{trackId:i,cf:n,Yf:r}}function Fo(e,t){return{Xd:1==t?e.xc():e.T()}}function Ho(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),{timescale:e.T()}}function qo(e,t,n){var r=e.T(),i=[];1&n&&e.skip(4),4&n&&e.skip(4);for(var o=c(ne(r)),a=o.next();!a.done;a=o.next())a={ye:null,sampleSize:null,Cd:null},256&n&&(a.ye=e.T()),512&n&&(a.sampleSize=e.T()),1024&n&&e.skip(4),2048&n&&(a.Cd=0==t?e.T():e.wf()),i.push(a);return{Vi:r,zf:i}}function Uo(){this.j=new Do,this.i=new Map,this.h=this.g=0}function Vo(){this.h=new Uo,this.g=new Po}function Xo(e,t){for(var n=e.h.parse(t),r=(n=c(n)).next();!r.done;r=n.next()){var i=r.value,o=Ot(i.Wg);if(0<o.length&&(r=e.g,i=i.pts,181===(o=new wi(o,0)).ra()&&49===o.wc()&&1195456820===o.T()&&3===o.ra())){var a=o.ra();if(64&a){a&=31,o.skip(1);for(var s=0;s<a;s++){var l=o.ra(),u=(4&l)>>2,h=o.ra(),f=o.ra();u&&(0==(l&=3)||1===l?r.h.push({pts:i,type:l,Wa:h,rb:f,order:r.h.length}):(r.g.push({pts:i,type:l,value:h,order:r.g.length}),r.g.push({pts:i,type:2,value:f,order:r.g.length})))}}}}return function(e){function t(e,t){return e.pts-t.pts||e.order-t.order}var n=[];e.h.sort(t),e.g.sort(t);for(var r=c(e.h),i=r.next();!i.done;i=r.next())(i=Io(e,i.value))&&n.push(i);for(i=(r=c(e.g)).next();!i.done;i=r.next())wo(e.i,i.value);for(i=(r=c(e.i.i)).next();!i.done;i=r.next())i=No(e,i.value),n.push.apply(n,d(i));return e.i.i=[],e.h=[],e.g=[],n}(e.g)}function Go(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function Wo(e,t,n){return n=void 0===n?0:n,!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t+n>=e.start(0)}function Jo(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,r=c(Zo(e)),i=r.next();!i.done;i=r.next()){var o=i.value;i=o.start,(o=o.end)>t&&(n+=o-Math.max(i,t))}return n}function Zo(e){if(!e)return[];for(var t=[],n=c(ne(e.length)),r=n.next();!r.done;r=n.next())r=r.value,t.push({start:e.start(r),end:e.end(r)});return t}function Ko(e,t,n,r){var i=this;this.g=e,this.s=n,this.j={},this.L={},this.i=null,this.M=r||function(){},this.l={},this.h=new Dr,this.C={},this.G=t,this.I=new Dt,this.B=function(e,t){var n=new MediaSource;return e.h.Qa(n,"sourceopen",function(){URL.revokeObjectURL(e.J),t.resolve()}),e.J=ca(n),e.g.src=e.J,n}(this,this.I),this.N=new Nr(function(){return function(e){var t,n,r,i,o,a,s;return I(function(l){if(1==l.g){for(n in t=[],e.l)for(r=e.l[n],i=r[0],e.l[n]=r.slice(0,1),i&&t.push(i.p.catch(Me)),o=c(r.slice(1)),a=o.next();!a.done;a=o.next())a.value.p.reject(new ye(2,7,7003,void 0));for(s in e.i&&t.push(e.i.destroy()),e.s&&t.push(e.s.destroy()),e.C)t.push(e.C[s].destroy());return w(l,Promise.all(t),2)}e.h&&(e.h.release(),e.h=null),e.g&&(e.g.removeAttribute("src"),e.g.load(),e.g=null),e.B=null,e.i=null,e.s=null,e.j={},e.C={},e.G=null,e.l={},k(l)})}(i)}),this.J=""}function Yo(e,t){e.i||(e.i=new sn(e.s)),"application/cea-608"!=t&&"application/cea-708"!=t&&(e.i.C=Ae(hn[t]))}function Qo(e){return!e.B||"ended"==e.B.readyState}function _o(e,t){if(t==Ie)var n=e.i.g;else n=!(n=ea(e,t))||1==n.length&&1e-6>n.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function $o(e,t){return t==Ie?e.i.h:Go(ea(e,t))}function ea(e,t){try{return e.j[t].buffered}catch(n){return null}}function ta(e,t,n,r,i,o){var a,s,l,d,u,h,f,p;return I(function(m){return 1==m.g?t==(a=Ne).ua?w(m,function(e,t,n,r){var i,o,a;return I(function(s){return 1==s.g?w(s,Promise.resolve(),2):e.C&&e.i?null==n||null==r?(e.C.parseInit(Ot(t)),s.return()):(i={periodStart:e.G,segmentStart:n,segmentEnd:r},o=e.C.parseMedia(Ot(t),i),a=o.filter(function(t){return t.startTime>=e.j&&t.startTime<e.l}),e.i.append(a),null==e.g&&(e.g=Math.max(n,e.j)),e.h=Math.min(r,e.l),void k(s)):s.return()})}(e.i,n,r,i),0):e.C[t]?w(m,function(e,t){e.l=!0,e.h=new Dt,e.s=[],e.j=[],e.i=[];var n=Ot(t);return e.g.push(n),e.g.flush(),e.l&&e.h.reject(new ye(2,3,3018)),e.h}(e.C[t],n),10):o?(e.i||Yo(e,"text/vtt"),null==r&&null==i?e.G.init(n):(s=Xo(e.G,n)).length&&(l=e.j[a.mb].timestampOffset,un(e.i,s,r,i,l)),n=la(e,n,r,t),w(m,ia(e,t,function(){e.j[t].appendBuffer(n)}),0)):(n=la(e,n,r,t),w(m,ia(e,t,function(){e.j[t].appendBuffer(n)}),0)):(d=m.h,e.i||Yo(e,"text/vtt"),d.metadata&&(u=e.j[t].timestampOffset,e.M(d.metadata,u,i)),d.captions&&d.captions.length&&(h=e.j[a.mb].timestampOffset,f=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())n=n.value,t.push({stream:n.stream,cue:new at(n.startTime,n.endTime,n.text)});return t}(d.captions),un(e.i,f,r,i,h)),p=d.data,p=la(e,p,r,t),w(m,ia(e,t,function(){e.j[t].appendBuffer(p)}),0))})}function na(e,t){return I(function(n){return t==Ne.ua?e.i?w(n,e.i.remove(0,1/0),0):n.return():w(n,ia(e,t,function(){var n=e.B.duration;0>=n?ra(e,t):e.j[t].remove(0,n)}),0)})}function ra(e,t){var n=e.l[t][0];n&&(n.p.resolve(),aa(e,t))}function ia(e,t,n){return Rr(e.N),n={start:n,p:new Dt},e.l[t].push(n),1==e.l[t].length&&sa(e,t),n.p}function oa(e,t){var n,r,i,o,a;return I(function(s){switch(s.g){case 1:for(i in Rr(e.N),n=[],r={},e.j)r.Dc=new Dt,o={start:function(e){return function(){return e.Dc.resolve()}}(r),p:r.Dc},e.l[i].push(o),n.push(r.Dc),1==e.l[i].length&&o.start(),r={Dc:r.Dc};return x(s,2),w(s,Promise.all(n),4);case 4:S(s,3);break;case 2:throw E(s);case 3:try{t()}catch(l){throw new ye(2,3,3015,l)}finally{for(a in e.j)aa(e,a)}k(s)}})}function aa(e,t){e.l[t].shift(),sa(e,t)}function sa(e,t){var n=e.l[t][0];if(n)try{n.start()}catch(r){"QuotaExceededError"==r.name?n.p.reject(new ye(2,3,3017,t)):n.p.reject(new ye(2,3,3015,r)),aa(e,t)}}function la(e,t,n,r){var i=e.g.mediaKeys;return null==n&&i&&(vn()||kn("Xbox One"))&&"mp4"==e.L[r].split(";")[0].split("/")[1]&&(t=function(e){function t(){i=!0}function n(e){o.push(e),Si(e)}e=Ot(e);var r,i=!1,o=[],a=[];if((new Ci).box("moov",n).box("trak",n).box("mdia",n).box("minf",n).box("stbl",n).Z("stsd",function(e){r=e,o.push(e),Ei(e)}).Z("encv",t).Z("enca",t).Z("avc1",function(e){a.push({box:e,Sc:1701733238})}).Z("avc3",function(e){a.push({box:e,Sc:1701733238})}).Z("ac-3",function(e){a.push({box:e,Sc:1701733217})}).Z("ec-3",function(e){a.push({box:e,Sc:1701733217})}).Z("mp4a",function(e){a.push({box:e,Sc:1701733217})}).parse(e),i)return e;if(0==a.length||!r)throw Yt(e),new ye(2,3,3019);a.reverse();for(var s=c(a),l=s.next();!l.done;l=s.next())l=l.value,e=Li(e,r,l.box,o,l.Sc);return e}(t)),t}Uo.prototype.init=function(e){var t=this,n=[],r=[];if((new Ci).box("moov",Si).box("mvex",Si).Z("trex",function(e){var n=e.reader;n.skip(4),n.skip(4),e=n.T(),n=n.T(),t.g=e,t.h=n}).box("trak",Si).Z("tkhd",function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.T(),n.push(e)}).box("mdia",Si).Z("mdhd",function(e){e=Ho(e.reader,e.version),r.push(e.timescale)}).parse(e,!0),!n.length||!r.length||n.length!=r.length)throw new ye(2,2,2010);n.forEach(function(e,n){t.i.set(e,r[n])})},Uo.prototype.parse=function(e){var t=this,n=[],r=this.g,i=this.h,o=[],a=null,s=9e4;return(new Ci).box("moof",Si).box("traf",Si).Z("trun",function(e){o=qo(e.reader,e.version,e.flags).zf}).Z("tfhd",function(e){e=zo(e.reader,e.flags),r=e.cf||t.g,i=e.Yf||t.h,e=e.trackId,t.i.has(e)&&(s=t.i.get(e))}).Z("tfdt",function(e){a=Fo(e.reader,e.version).Xd}).box("mdat",function(e){if(null===a)throw new ye(2,2,2010);e=e.reader;var l=a,d=s,u=r,h=i,f=o,p=0,m=h;for(f.length&&(m=f[0].sampleSize||h);e.Ia();){var g=e.T();if(6==(31&e.ra())){var v=0;f.length>p&&(v=f[p].Cd||0),v=(l+v)/d;for(var b=c(Bo(t.j,e.Lb(g-1))),y=b.next();!y.done;y=b.next())n.push({Wg:y.value,pts:v})}else e.skip(g-1);0==(m-=g+4)&&(l=f.length>p?l+(f[p].ye||u):l+u,p++,m=f.length>p&&f[p].sampleSize||h)}}).parse(e,!1),n},Vo.prototype.init=function(e){this.h.init(e)},(r=Ko.prototype).destroy=function(){return this.N.destroy()},r.init=function(e,t){var n,r,i,o,a,s,l,d=this;return I(function(u){if(1==u.g)return n=Ne,w(u,d.I,2);for(r={},i=c(e.keys()),o=i.next();!o.done;r={Oa:r.Oa},o=i.next())r.Oa=o.value,a=e.get(r.Oa),s=nn(a.mimeType,a.codecs),r.Oa==n.ua?Yo(d,s):(!t&&MediaSource.isTypeSupported(s)||!$t(s,r.Oa)||(d.C[r.Oa]=new _t,s=tn(r.Oa,s)),l=d.B.addSourceBuffer(s),d.h.o(l,"error",function(e){return function(){d.l[e.Oa][0].p.reject(new ye(2,3,3014,d.g.error?d.g.error.code:0))}}(r)),d.h.o(l,"updateend",function(e){return function(){return ra(d,e.Oa)}}(r)),d.j[r.Oa]=l,d.L[r.Oa]=s,d.l[r.Oa]=[]);k(u)})},r.Ib=function(){var e={total:Zo(this.g.buffered),audio:Zo(ea(this,"audio")),video:Zo(ea(this,"video")),text:[]};if(this.i){var t=this.i.g,n=this.i.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},r.remove=function(e,t,n){var r=this;return I(function(i){return w(i,e==Ne.ua?r.i.remove(t,n):ia(r,e,function(){n<=t?ra(r,e):r.j[e].remove(t,n)}),0)})},r.flush=function(e){var t=this;return I(function(n){return e==Ne.ua?n.return():w(n,ia(t,e,function(){t.g.currentTime-=.001,ra(t,e)}),0)})},r.endOfStream=function(e){var t=this;return I(function(n){return w(n,oa(t,function(){Qo(t)||(e?t.B.endOfStream(e):t.B.endOfStream())}),0)})},r.ib=function(e){var t=this;return I(function(n){return w(n,oa(t,function(){t.B.duration=e}),0)})},r.getDuration=function(){return this.B.duration};var ca=e.URL.createObjectURL;function da(e,t,n,r){this.Ma=e,this.Ka=t,this.Da=n,this.ge=void 0===r?null:r}function ua(e,t,n,r,i,o,a,s,l,c,d,u){c=void 0===c?[]:c,this.startTime=e,this.l=this.endTime=t,this.j=n,this.Ka=r,this.Da=i,this.g=o,this.timestampOffset=a,this.appendWindowStart=s,this.appendWindowEnd=l,this.h=c,this.tilesLayout=void 0===d?"":d,this.i=void 0===u?null:u}function ha(e,t,n){this.j=e,this.zd=t,this.s=this.l=1/0,this.g=1,this.h=this.i=null,this.B=0,this.C=!0,this.G=0,this.I=void 0===n||n,this.J=0}function fa(e,t){this.j=e,this.s=ma(e),this.g=e.g.currentTime,this.l=Date.now()/1e3,this.h=!1,this.B=t,this.i=function(){}}function pa(e){this.g=e}function ma(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime;for(var n=(e=c(Zo(e.g.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function ga(e,t,n,r,i){var o=this;this.g=e,this.G=t,this.m=n,this.C=i,this.h=new Dr,this.B=!1,this.I=e.readyState,this.j=!1,this.i=r,this.s=!1,this.h.o(e,"waiting",function(){return va(o)}),this.l=new pn(function(){va(o)}).na(.25)}function va(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.B)return}else e.B=!1;if(!e.g.paused||0==e.g.currentTime&&(e.g.autoplay||0!=e.g.currentTime)){var t;if(e.g.readyState!=e.I&&(e.j=!1,e.I=e.g.readyState),!(t=!e.i)){var n=(t=e.i).j,r=ma(n),i=n.g.currentTime,o=Date.now()/1e3;t.g==i&&t.s==r||(t.l=o,t.g=i,t.s=r,t.h=!1),(r=(i=o-t.l)>=t.B&&r&&!t.h)&&(t.i(t.g,i),t.h=!0,t.g=n.g.currentTime),t=!r}if(t){i=e.m.smallGapLimit;var a=e.g.currentTime;if(n=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=Zo(e).findIndex(function(e,r,i){return e.start>t&&(0==r||i[r-1].end-t<=n)}))?e:null}(t=e.g.buffered,a,e.m.gapDetectionThreshold),!(null==n||0==n&&!e.s||(r=t.start(n),r>=e.G.sb()))){var s=r-a;i=s<=i,o=!1,.001>s||(i||e.j||(e.j=!0,(a=new q("largegap",a=(new Map).set("currentTime",a).set("gapSize",s))).cancelable=!0,e.C(a),e.m.jumpLargeGaps&&!a.defaultPrevented&&(o=!0)),!i&&!o)||(0!=n&&t.end(n-1),e.g.currentTime=r)}}}}}function ba(e,t,n,r){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?r():(t=ya.value().get(t),n.Qa(e,t,r))}da.prototype.Oc=function(){return this.Ka},da.prototype.Kc=function(){return this.Da},H("shaka.media.InitSegmentReference",da),da.prototype.getEndByte=da.prototype.Kc,da.prototype.getStartByte=da.prototype.Oc,(r=ua.prototype).Ma=function(){return this.j()},r.Bg=function(){return this.startTime},r.mg=function(){return this.endTime},r.Oc=function(){return this.Ka},r.Kc=function(){return this.Da},r.Hg=function(){return this.tilesLayout},r.Gg=function(){return this.i},H("shaka.media.SegmentReference",ua),ua.prototype.getTileDuration=ua.prototype.Gg,ua.prototype.getTilesLayout=ua.prototype.Hg,ua.prototype.getEndByte=ua.prototype.Kc,ua.prototype.getStartByte=ua.prototype.Oc,ua.prototype.getEndTime=ua.prototype.mg,ua.prototype.getStartTime=ua.prototype.Bg,ua.prototype.getUris=ua.prototype.Ma,(r=ha.prototype).getDuration=function(){return this.l},r.vg=function(){return this.g},r.ib=function(e){this.l=e},r.zg=function(){return this.j},r.Cf=function(e){this.B=e},r.Zc=function(e){this.C=e},r.Ie=function(e){this.s=e},r.nh=function(e){this.zd=e},r.lg=function(){return this.zd},r.tc=function(e){if(0!=e.length){var t=e[e.length-1].endTime;this.me(e[0].startTime),this.g=e.reduce(function(e,t){return Math.max(e,t.endTime-t.startTime)},this.g),this.h=Math.max(this.h,t),null!=this.j&&this.I&&(this.j=(Date.now()+this.B)/1e3-this.h-this.g)}},r.me=function(e){this.i=null==this.i?e:Math.min(this.i,e)},r.le=function(e){this.g=Math.max(this.g,e)},r.offset=function(e){null!=this.i&&(this.i+=e),null!=this.h&&(this.h+=e)},r.W=function(){return 1/0==this.l&&!this.C},r.Tb=function(){return 1/0!=this.l&&!this.C},r.ub=function(){return Math.max(this.G,this.Qb()-this.s)},r.Ff=function(e){this.G=e},r.Qb=function(){return this.W()||this.Tb()?Math.min(Math.max(0,(Date.now()+this.B)/1e3-this.g-this.j)+this.J,this.l):this.h||this.l},r.Nc=function(e){var t=Math.max(this.i,this.G);return 1/0==this.s?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.Qb()-this.s+e,this.sb()))},r.mc=function(){return this.Nc(0)},r.sb=function(){return Math.max(0,this.Qb()-(this.W()||this.Tb()?this.zd:0))},r.Kf=function(){return!(null==this.j||null!=this.h&&this.I)},r.Bf=function(e){this.J=e},H("shaka.media.PresentationTimeline",ha),ha.prototype.setAvailabilityTimeOffset=ha.prototype.Bf,ha.prototype.usingPresentationStartTime=ha.prototype.Kf,ha.prototype.getSeekRangeEnd=ha.prototype.sb,ha.prototype.getSeekRangeStart=ha.prototype.mc,ha.prototype.getSafeSeekRangeStart=ha.prototype.Nc,ha.prototype.getSegmentAvailabilityEnd=ha.prototype.Qb,ha.prototype.setUserSeekStart=ha.prototype.Ff,ha.prototype.getSegmentAvailabilityStart=ha.prototype.ub,ha.prototype.isInProgress=ha.prototype.Tb,ha.prototype.isLive=ha.prototype.W,ha.prototype.offset=ha.prototype.offset,ha.prototype.notifyMaxSegmentDuration=ha.prototype.le,ha.prototype.notifyMinSegmentStartTime=ha.prototype.me,ha.prototype.notifySegments=ha.prototype.tc,ha.prototype.getDelay=ha.prototype.lg,ha.prototype.setDelay=ha.prototype.nh,ha.prototype.setSegmentAvailabilityDuration=ha.prototype.Ie,ha.prototype.setStatic=ha.prototype.Zc,ha.prototype.setClockOffset=ha.prototype.Cf,ha.prototype.getPresentationStartTime=ha.prototype.zg,ha.prototype.setDuration=ha.prototype.ib,ha.prototype.getMaxSegmentDuration=ha.prototype.vg,ha.prototype.getDuration=ha.prototype.getDuration,fa.prototype.release=function(){this.j=null,this.i=function(){}},ga.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.l&&(this.l.stop(),this.l=null),this.i&&(this.i.release(),this.i=null),this.g=this.G=this.C=null},ga.prototype.qe=function(){this.s=!0,va(this)};var ya=new Bt(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function wa(e,t,n){var r=this;this.g=e,this.l=t,this.j=n,this.s=!1,this.h=new Dr,this.i=new Ea(e),ba(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Ca(r,r.j)})}function ka(e){return e.s?e.g.currentTime:e.j}function xa(e,t){0<e.g.readyState?Ma(e.i,t):ba(e.g,HTMLMediaElement.HAVE_METADATA,e.h,function(){Ca(e,e.j)})}function Ca(e,t){.001>Math.abs(e.g.currentTime-t)?Sa(e):(e.h.Qa(e.g,"seeking",function(){Sa(e)}),Ma(e.i,0==e.g.currentTime?t:e.g.currentTime))}function Sa(e){e.s=!0,e.h.o(e.g,"seeking",function(){return e.l()})}function Ea(e){var t=this;this.h=e,this.s=10,this.l=this.j=this.i=0,this.g=new pn(function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)})}function Ma(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.s,e.h.currentTime=t,e.g.na(.1)}function Ta(e){var t=this;this.g=e,this.j=!1,this.i=null,this.h=new Dr,ba(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.h,function(){null==t.i||0==t.i?t.j=!0:(t.h.Qa(t.g,"seeking",function(){t.j=!0}),t.g.currentTime=Math.max(0,t.g.currentTime+t.i))})}function Aa(e,t,n,r,i,o){var a=this;this.i=e,this.g=t.presentationTimeline,this.J=t.minBufferTime||0,this.m=n,this.G=i,this.C=null,this.j=new ga(e,t.presentationTimeline,n,function(e,t){if(!t.stallEnabled)return null;var n=t.stallSkip,r=new fa(new pa(e),t.stallThreshold);return function(e,t){e.i=t}(r,function(){n?e.currentTime+=n:(e.pause(),e.play())}),r}(e,n),o),this.h=new wa(e,function(){var e=a.j;e.B=!0,e.s=!1,e.j=!1;var t=ka(a.h);return e=Oa(a,t),.001<Math.abs(e-t)&&(t=Date.now()/1e3,!a.C||a.C<t-1)?(a.C=t,xa(a.h,e),e=void 0):(a.G(),e=void 0),e},function(e,t){return null==t?t=1/0>e.g.getDuration()?e.g.mc():e.g.sb():0>t&&(t=e.g.sb()+t),ja(e,Pa(e,t))}(this,r)),this.B=new pn(function(){if(0!=a.i.readyState&&!a.i.paused){var e=ka(a.h),t=a.g.mc(),n=a.g.sb();3>n-t&&(t=n-3),e<t&&(e=Oa(a,e),a.i.currentTime=e)}}).na(.25)}function ja(e,t){var n=e.g.getDuration();return t>=n?n-e.m.durationBackoff:t}function Oa(e,t){var n=Math.max(e.J,e.m.rebufferingGoal),r=e.m.safeSeekOffset,i=e.g.mc(),o=e.g.sb(),a=e.g.getDuration();3>o-i&&(i=o-3);var s=e.g.Nc(n),l=e.g.Nc(r);return n=e.g.Nc(n+r),t>=a?ja(e,t):t>o?o:t<i?Wo(e.i.buffered,l)?l:n:t>=s||Wo(e.i.buffered,t)?t:n}function Pa(e,t){var n=e.g.mc();return t<n||t>(n=e.g.sb())?n:t}function La(e){this.R=e,this.g=null,this.h=0,this.i=!1}function Ia(e,t,n){return new La([new ua(e,e+t,function(){return n},0,null,null,e,e,e+t)])}function Na(e,t,n){this.i=e,this.h=t,this.g=n}function Ra(){La.call(this,[]),this.j=[]}function Da(e){var t=this;this.g=e,this.j=!1,this.i=this.g.sd(),this.h=new pn(function(){t.g.uf(.25*t.i)})}function Ba(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.sd()!=t&&e.g.Ge(t))}catch(n){}e.h.na(.25),0!=e.g.sd()&&e.g.Ge(0)}function za(e){var t=this;this.h=e,this.g=new Set,this.i=new pn(function(){Fa(t,!1)}).na(.25)}function Fa(e,t){for(var n=c(e.g),r=n.next();!r.done;r=n.next())r.value.j(e.h.currentTime,t)}function Ha(e){$.call(this),this.g=new Map,this.h=e}function qa(e){$.call(this);var t=this;this.g=new Set,this.i=e,this.h=new pn(function(){for(var e=t.i(),n=c(t.g),r=n.next();!r.done;r=n.next())(r=r.value).endTime<e.start&&(t.g.delete(r),r=new q("regionremove",new Map([["region",r]])),t.dispatchEvent(r))}).na(2)}function Ua(e){$.call(this);var t=this;this.i=e,this.g=new Map,this.l=[{cc:null,bc:Ga,Sb:function(e,n){return Va(t,"enter",e,n)}},{cc:Xa,bc:Ga,Sb:function(e,n){return Va(t,"enter",e,n)}},{cc:Wa,bc:Ga,Sb:function(e,n){return Va(t,"enter",e,n)}},{cc:Ga,bc:Xa,Sb:function(e,n){return Va(t,"exit",e,n)}},{cc:Ga,bc:Wa,Sb:function(e,n){return Va(t,"exit",e,n)}},{cc:Xa,bc:Wa,Sb:function(e,n){return Va(t,"skip",e,n)}},{cc:Wa,bc:Xa,Sb:function(e,n){return Va(t,"skip",e,n)}}],this.h=new Dr,this.h.o(this.i,"regionremove",function(e){t.g.delete(e.region)})}function Va(e,t,n,r){t=new q(t,new Map([["region",n],["seeking",r]])),e.dispatchEvent(t)}wa.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.l=function(){},this.g=null},Ea.prototype.release=function(){this.g&&(this.g.stop(),this.g=null),this.h=null},Ta.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.g=null},Ta.prototype.s=function(e){this.i=this.j?this.i:e},Ta.prototype.l=function(){return(this.j?this.g.currentTime:this.i)||0},Ta.prototype.I=function(){},Aa.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.B&&(this.B.stop(),this.B=null),this.i=this.h=this.g=this.m=null,this.G=function(){}},Aa.prototype.s=function(e){xa(this.h,e)},Aa.prototype.l=function(){var e=ka(this.h);return 0<this.i.readyState&&!this.i.paused?Pa(this,e):e},Aa.prototype.I=function(){this.j.qe()},(r=La.prototype).destroy=function(){return ke("shaka.media.SegmentIndex","Please use release() instead of destroy()."),this.release(),Promise.resolve()},r.release=function(){this.i||(this.R=[],this.g&&this.g.stop(),this.g=null)},r.Qg=function(){this.i=!0},r.find=function(e){for(var t=this.R.length-1,n=t;0<=n;--n){var r=this.R[n],i=n<t?this.R[n+1].startTime:r.endTime;if(e>=r.startTime&&e<i)return n+this.h}return this.R.length&&e<this.R[0].startTime?this.h:null},r.get=function(e){return 0==this.R.length||0>(e-=this.h)||e>=this.R.length?null:this.R[e]},r.offset=function(e){if(!this.i)for(var t=c(this.R),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.timestampOffset+=e},r.rc=function(e){!this.i&&e.length&&(this.R=this.R.filter(function(t){return t.startTime<e[0].startTime}),this.R.push.apply(this.R,d(e)))},r.sc=function(e,t){var n=this;e=e.filter(function(e){return e.endTime>t&&(0==n.R.length||e.endTime>n.R[0].startTime)}),this.rc(e),this.Ob(t)},r.Ob=function(e){if(!this.i){var t=this.R.length;this.R=this.R.filter(function(t){return t.endTime>e}),this.h+=t-this.R.length}},r.Hb=function(e,t,n){if(n=void 0!==n&&n,!this.i){for(;this.R.length&&this.R[this.R.length-1].startTime>=t;)this.R.pop();for(;this.R.length&&this.R[0].endTime<=e;)this.R.shift(),n||this.h++;0!=this.R.length&&(e=this.R[this.R.length-1],this.R[this.R.length-1]=new ua(e.startTime,t,e.j,e.Ka,e.Da,e.g,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.h,e.tilesLayout,e.i))}},r.Ed=function(e,t){var n=this;this.i||(this.g&&this.g.stop(),this.g=new pn(function(){var e=t();e?n.R.push.apply(n.R,d(e)):(n.g.stop(),n.g=null)}),this.g.na(e))},La.prototype[Symbol.iterator]=function(){return this.kc(0)},La.prototype.kc=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),r=-1;if(n&&0<n.h.length)for(var i=n.h.length-1;0<=i;--i){var o=n.h[i];if(e>=o.startTime&&e<o.endTime){t++,r=i-1;break}}return new Na(this,t,r)},H("shaka.media.SegmentIndex",La),La.forSingleSegment=Ia,La.prototype.getIteratorForTime=La.prototype.kc,La.prototype.updateEvery=La.prototype.Ed,La.prototype.fit=La.prototype.Hb,La.prototype.evict=La.prototype.Ob,La.prototype.mergeAndEvict=La.prototype.sc,La.prototype.merge=La.prototype.rc,La.prototype.offset=La.prototype.offset,La.prototype.get=La.prototype.get,La.prototype.find=La.prototype.find,La.prototype.markImmutable=La.prototype.Qg,La.prototype.release=La.prototype.release,La.prototype.destroy=La.prototype.destroy,Na.prototype.seek=function(e){return ke("shaka.media.SegmentIterator","Please use SegmentIndex.getIteratorForTime instead of seek()."),(e=this.i.kc(e))?(this.h=e.h,this.g=e.g):(this.h=Number.MAX_VALUE,this.g=0),this.next().value},Na.prototype.current=function(){var e=this.i.get(this.h);return e&&0<e.h.length&&e.Ma().length&&this.g>=e.h.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0<e.h.length?e.h[this.g]:e},Na.prototype.next=function(){var e=this.i.get(this.h);return e&&0<e.h.length?(this.g++,e.Ma().length&&this.g==e.h.length&&(this.h++,this.g=0)):(this.h++,this.g=0),{value:e=this.current(),done:!e}},H("shaka.media.SegmentIterator",Na),Na.prototype.next=Na.prototype.next,Na.prototype.current=Na.prototype.current,Na.prototype.seek=Na.prototype.seek,g(Ra,La),(r=Ra.prototype).clone=function(){var e=new Ra;return e.j=this.j.slice(),e},r.release=function(){for(var e=c(this.j),t=e.next();!t.done;t=e.next())t.value.release();this.j=[]},r.find=function(e){for(var t=0,n=c(this.j),r=n.next();!r.done;r=n.next()){var i=(r=r.value).find(e);if(null!=i)return i+t;t+=r.h+r.R.length}return null},r.get=function(e){for(var t=0,n=c(this.j),r=n.next();!r.done;r=n.next()){var i=(r=r.value).get(e-t);if(i)return i;t+=r.h+r.R.length}return null},r.offset=function(){},r.rc=function(){},r.Ob=function(){},r.sc=function(){},r.Hb=function(){},r.Ed=function(){},H("shaka.media.MetaSegmentIndex",Ra),Ra.prototype.updateEvery=Ra.prototype.Ed,Ra.prototype.fit=Ra.prototype.Hb,Ra.prototype.mergeAndEvict=Ra.prototype.sc,Ra.prototype.evict=Ra.prototype.Ob,Ra.prototype.merge=Ra.prototype.rc,Ra.prototype.offset=Ra.prototype.offset,Ra.prototype.get=Ra.prototype.get,Ra.prototype.find=Ra.prototype.find,Ra.prototype.release=Ra.prototype.release,Da.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},Da.prototype.set=function(e){this.i=e,Ba(this)},Da.prototype.pd=function(){return this.g.pd()},za.prototype.release=function(){this.i.stop();for(var e=c(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},g(Ha,$),Ha.prototype.release=function(){this.g.clear(),$.prototype.release.call(this)},Ha.prototype.j=function(e){for(var t=c(this.g.values()),n=t.next();!n.done;n=t.next()){e:{for(var r=(n=n.value).Vc,i=r.length-1;0<=i;i--){var o=r[i];if(o.position<=e){r=o.ge;break e}}r=null}if((i=r)&&(i=!((i=n.$e)===r||i&&r&&i.bandwidth==r.bandwidth&&i.audioSamplingRate==r.audioSamplingRate&&i.codecs==r.codecs&&i.contentType==r.contentType&&i.frameRate==r.frameRate&&i.height==r.height&&i.mimeType==r.mimeType&&i.channelsCount==r.channelsCount&&i.pixelAspectRatio==r.pixelAspectRatio&&i.width==r.width)),i)e:{if(i=e,o=r.contentType,(o=this.h()[o])&&0<o.length){var a=o[o.length-1].end;if(i>=o[0].start&&i<a){i=!0;break e}}i=!1}i&&(n.$e=r,JSON.stringify(r),n=new q("qualitychange",new Map([["quality",r],["position",e]])),this.dispatchEvent(n))}},g(qa,$),qa.prototype.release=function(){this.g.clear(),this.h.stop(),$.prototype.release.call(this)},g(Ua,$),Ua.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,$.prototype.release.call(this)},Ua.prototype.j=function(e,t){for(var n=c(this.i.g),r=n.next();!r.done;r=n.next()){r=r.value;var i=this.g.get(r),o=e<r.startTime?Xa:e>r.endTime?Wa:Ga;this.g.set(r,o);for(var a=c(this.l),s=a.next();!s.done;s=a.next())(s=s.value).cc==i&&s.bc==o&&s.Sb(r,t)}};var Xa=1,Ga=2,Wa=3;function Ja(e,t,n,r,i){return e=Tr(e,r,i),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Za(e,t){var n=this;this.F=t,this.H=e,this.m=null,this.l=1,this.i=this.h=null,this.g=new Map,this.s=!1,this.B=null,this.j=!1,this.N=new Nr(function(){return function(e){var t,n,r,i;return I(function(o){if(1==o.g){for(t=[],n=c(e.g.values()),r=n.next();!r.done;r=n.next())as(i=r.value),t.push(ss(i));return w(o,Promise.all(t),2)}e.g.clear(),e.F=null,e.H=null,e.m=null,k(o)})}(n)})}function Ka(e,t){var n=e.g.get("video");if(n){var r=n.stream;if(r)if(t){var i=r.trickModeVideo;i&&!n.Zb&&(_a(e,i,!1,0,!1),n.Zb=r)}else(r=n.Zb)&&(n.Zb=null,_a(e,r,!0,0,!1))}}function Ya(e,t,n,r,i){n=void 0!==n&&n,r=void 0===r?0:r,i=void 0!==i&&i,e.h=t,e.s&&(t.video&&_a(e,t.video,n,r,i),t.audio&&_a(e,t.audio,n,r,i))}function Qa(e,t){e.i=t,e.s&&_a(e,t,!0,0,!1)}function _a(e,t,n,r,i){var o=e.g.get(t.type);o||t.type!=Ie?o&&(o.Zb&&(t.trickModeVideo?(o.Zb=t,t=t.trickModeVideo):o.Zb=null),o.stream!=t||i)&&(t.type==Ie&&Yo(e.F.Y,nn(t.mimeType,t.codecs)),o.stream.closeSegmentIndex&&o.stream.closeSegmentIndex(),o.stream=t,o.za=null,n&&(o.Ic?o.Hd=!0:o.hb?(o.ac=!0,o.md=r,o.Hd=!0):(as(o),is(e,o,!0,r).catch(function(t){e.F&&e.F.onError(t)}))),function(e,t){var n,r;return I(function(i){if(1==i.g)return t.Ra?(n=t.stream,r=t.Ra,n.segmentIndex?i.D(2):w(i,n.createSegmentIndex(),2)):i.return();if(t.Ra!=r||t.stream!=n)return i.return();var o=e.F.rd(),a=$o(e.F.Y,t.type),s=t.stream.segmentIndex.find(t.Xa?t.Xa.endTime:o),l=null==s?null:t.stream.segmentIndex.get(s);s=l&&l.Da?l.Da-l.Ka:null,l&&!s&&(s=(l.endTime-l.startTime)*(t.stream.bandwidth||0)/8),s?((l=l.g)&&(s+=(l.Da?l.Da-l.Ka:null)||0),o=8*s/(l=e.F.getBandwidthEstimate())<(a||0)-o-Math.max(e.H.minBufferTime||0,e.m.rebufferingGoal)||t.Ra.h.g>s):o=!1,o&&t.Ra.abort(),k(i)})}(e,o).catch(function(t){e.F&&e.F.onError(t)})):function(e,t){var n,r,i,o;I(function(a){switch(a.g){case 1:return n=Ne,x(a,2),w(a,na(e.F.Y,n.ua),4);case 4:S(a,3);break;case 2:r=E(a),e.F&&e.F.onError(r);case 3:i=nn(t.mimeType,t.codecs),Yo(e.F.Y,i),(e.F.Y.s.isTextVisible()||e.m.alwaysStreamText)&&(o=es(t),e.g.set(n.ua,o),os(e,o,0)),k(a)}})}(e,t)}function $a(e,t){t.Ic||t.ac||(t.hb?(t.ac=!0,t.md=0):null==_o(e.F.Y,t.type)?null==t.kb&&os(e,t,0):(as(t),is(e,t,!1,0).catch(function(t){e.F&&e.F.onError(t)})))}function es(e){return{stream:e,type:e.type,za:null,Xa:null,td:null,ee:null,ce:null,be:null,Zb:null,endOfStream:!1,hb:!1,kb:null,ac:!1,md:0,Hd:!1,Ic:!1,ve:!1,Pc:!1,Ra:null}}function ts(e,t,n,r,i,o){var a;return I(function(s){return 1==s.g?(a=r.closedCaptions&&0<r.closedCaptions.size,(null!=r.emsgSchemeIdUris&&0<r.emsgSchemeIdUris.length||e.m.dispatchAllEmsgBoxes)&&(new Ci).Z("emsg",function(t){var n=r.emsgSchemeIdUris;if(0===t.version)var o=t.reader.Wc(),a=t.reader.Wc(),s=t.reader.T(),l=t.reader.T(),c=t.reader.T(),d=t.reader.T(),u=i.startTime+l/s;else s=t.reader.T(),l=(u=t.reader.xc()/s+i.timestampOffset)-i.startTime,c=t.reader.T(),d=t.reader.T(),o=t.reader.Wc(),a=t.reader.Wc();t=t.reader.Lb(t.reader.X.byteLength-t.reader.qa()),(n&&n.includes(o)||e.m.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==o?e.F.Vg():(n=(new Map).set("detail",{startTime:u,endTime:u+c/s,schemeIdUri:o,value:a,timescale:s,presentationTimeDelta:l,eventDuration:c,id:d,messageData:t}),n=new q(Yl,n),e.F.onEvent(n)))}).parse(o),w(s,function(e,t,n){var r,i,o;return I(function(a){if(1==a.g)return r=Math.max(e.m.bufferBehind,e.H.presentationTimeline.g),null==(i=_o(e.F.Y,t.type))||.01>=(o=n-i-r)?a.return():w(a,e.F.Y.remove(t.type,i,i+o),2);Rr(e.N),k(a)})}(e,t,n),2)):3!=s.g?(Rr(e.N),w(s,ta(e.F.Y,t.type,o,i.startTime,i.endTime,a),3)):(Rr(e.N),void k(s))})}function ns(e){return e&&e.type==Ie&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function rs(e,t,n,r){var i,o,a,s,l;return I(function(c){return 1==c.g?(i=Pr,o=Ja(n.Ma(),n.Ka,n.Da,e.m.retryParameters,r),a=t.stream,e.F.modifySegmentRequest(o,{type:a.type,init:n instanceof da,duration:n.endTime-n.startTime,mimeType:a.mimeType,codecs:a.codecs,bandwidth:a.bandwidth}),s=e.F.Wb.request(i,o),t.Ra=s,w(c,s.promise,2)):(l=c.h,t.Ra=null,c.return(l.data))})}function is(e,t,n,r){var i,o;return I(function(a){return 1==a.g?(t.ac=!1,t.Hd=!1,t.md=0,t.Ic=!0,t.Xa=null,t.td=null,t.za=null,r?(i=e.F.rd(),o=e.F.Y.getDuration(),w(a,e.F.Y.remove(t.type,i+r,o),3)):w(a,na(e.F.Y,t.type),4)):3!=a.g?(Rr(e.N),n?w(a,e.F.Y.flush(t.type),3):a.D(3)):(Rr(e.N),t.Ic=!1,t.endOfStream=!1,os(e,t,0),void k(a))})}function os(e,t,n){var r=t.type;(r!=Ie||e.g.has(r))&&(t.kb=new fn(function(){var n;return I(function(r){return 1==r.g?(x(r,2),w(r,e.Tc(t),4)):2!=r.g?S(r,0):(n=E(r),e.F&&e.F.onError(n),void k(r))})}).U(n))}function as(e){null!=e.kb&&(e.kb.stop(),e.kb=null)}function ss(e){return I(function(t){return e.Ra?w(t,e.Ra.abort(),0):t.D(0)})}function ls(e,t){return I(function(n){if(1==n.g)return w(n,pr(e.B),2);Rr(e.N),e.F.onError(t),t.handled||e.m.failureCallback(t),k(n)})}function cs(e,t){var n={K:null,mimeType:null,startTime:null,Le:NaN,uri:null},r=this;this.j=t,this.i=e,this.l=n,this.B=null,this.s=[],this.h=this.g=null,this.C=Promise.resolve().then(function(){return function(e){return I(function(t){if(e.N.g)t=t.D(0);else{if(0==e.s.length||e.g&&!e.g.Rb)var n=!1;else{e.g&&(e.g.gb.Xb(),e.g=null);var r=(n=e.s.shift()).create(e.l);r?(n.gb.uc(),e.g={node:r.node,payload:r.payload,Rb:r.Rb,gb:n.gb}):n.gb.xd(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return I(function(r){switch(r.g){case 1:return e.i=e.j.xg(e.i,e.l,e.g.node,e.g.payload),x(r,2),e.h=e.j.$f(e.i,e.l,e.g.payload),w(r,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.gb.vd(),e.g=null),S(r,0);break;case 2:return 7001==(t=E(r)).code?e.g.gb.Xb():e.g.gb.onError(t),e.g=null,e.h=null,n=e,w(r,e.j.handleError(e.l,t),5);case 5:n.i=r.h,k(r)}})}(e):(e.j.Tg(e.i),e.B=new Dt,n=e.B),t=w(t,n,1)}return t})}(r)}),this.N=new Nr(function(){return function(e){var t,n;return I(function(r){if(1==r.g)return e.h&&e.h.abort(),us(e),w(r,e.C,2);for(e.g&&e.g.gb.Xb(),t=c(e.s),n=t.next();!n.done;n=t.next())n.value.gb.Xb();e.g=null,e.s=[],e.j=null,k(r)})}(r)})}function ds(e,t){var n={uc:function(){},vd:function(){},Xb:function(){},onError:function(){},xd:function(){},Ui:function(){}};return e.s.push({create:t,gb:n}),e.h&&e.h.abort(),us(e),n}function us(e){e.B&&(e.B.resolve(),e.B=null)}function hs(e){this.g=null;for(var t=c(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function fs(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(n){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function ps(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var r=c(Array.from(e.cues)),i=r.next();!i.done;i=r.next())(i=i.value)&&t(i)&&e.removeCue(i);e.mode=n}function ms(){}function gs(e){return document.createElement(e)}function vs(){return document.createElement("button")}function bs(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ys(t,n){var r=this;this.s=!1,this.l=[],this.g=t,this.C=n,this.i=gs("div"),this.i.classList.add("shaka-text-container"),this.i.style.textAlign="center",this.i.style.display="flex",this.i.style.flexDirection="column",this.i.style.alignItems="center",this.i.style.justifyContent="flex-end",this.C.appendChild(this.i),this.G=new pn(function(){ks(r)}).na(.25),this.j=new Map,this.h=new Dr,this.h.o(document,"fullscreenchange",function(){ks(r,!0)}),this.B=null,"ResizeObserver"in e&&(this.B=new ResizeObserver(function(){ks(r,!0)}),this.B.observe(this.i))}function ws(e,t,n,r,i){for(var o=!1,a=[],s=[],l=(t=c(t)).next();!l.done;l=t.next()){l=l.value,i.push(l);var d=e.j.get(l),u=l.startTime<=r&&l.endTime>r,h=d?d.Mf:null;d&&(a.push(d.Ze),u||(o=!0,e.j.delete(l),d=null)),u&&(s.push(l),d||(xs(e,l,i),h=(d=e.j.get(l)).Mf,o=!0)),0<l.nestedCues.length&&h&&ws(e,l.nestedCues,h,r,i),i.pop()}if(o){for(i=(r=c(a)).next();!i.done;i=r.next())n.removeChild(i.value);for(s.sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime}),l=(s=c(s)).next();!l.done;l=s.next())r=e.j.get(l.value),n.appendChild(r.Ze)}}function ks(e,t){if(e.i){var n=e.g.currentTime;if((!e.s||void 0!==t&&t)&&0<e.j.size&&(bs(e.i),e.j.clear()),e.s){for(var r=new Map,i=c(e.j.keys()),o=i.next();!o.done;o=i.next())o=o.value,r.set(o,e.j.get(o));ws(e,e.l,e.i,n,[])}}}function xs(e,t,n){var r=1<n.length,i=r?"span":"div";(t.lineBreak||t.spacer)&&(t.spacer&&ke("shaka.extern.Cue","Please use lineBreak instead of spacer."),i="br"),r=!r&&0<t.nestedCues.length;var o=gs(i);"br"!=i&&function(e,t,n,r,i){var o=t.style,a=0==n.nestedCues.length,s=1<r.length;o.whiteSpace="pre-wrap";var l=n.payload.replace(/\s+$/g,function(e){return" ".repeat(e.length)});if(o.webkitTextStrokeColor=n.textStrokeColor,o.webkitTextStrokeWidth=n.textStrokeWidth,o.color=n.color,o.direction=n.direction,o.opacity=n.opacity,o.paddingLeft=Cs(n.linePadding,n,e.C),o.paddingRight=Cs(n.linePadding,n,e.C),n.backgroundImage)o.backgroundImage="url('"+n.backgroundImage+"')",o.backgroundRepeat="no-repeat",o.backgroundSize="contain",o.backgroundPosition="center";else{if(n.nestedCues.length)var c=t;else c=gs("span"),t.appendChild(c);n.border&&(c.style.border=n.border),i||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var r=t(e[n]);if(r||0===r)return r}return null}(r,function(e){return e.backgroundColor}))?c.style.backgroundColor=t:l&&(c.style.backgroundColor="rgba(0, 0, 0, 0.8)")),l&&(c.textContent=l)}s&&!r[r.length-1].isContainer?o.display="inline":(o.display="flex",o.flexDirection="column",o.alignItems="center",o.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),a||(o.margin="0"),o.fontFamily=n.fontFamily,o.fontWeight=n.fontWeight.toString(),o.fontStyle=n.fontStyle,o.letterSpacing=n.letterSpacing,o.fontSize=Cs(n.fontSize,n,e.C),n.line?1==n.lineInterpretation&&(o.position="absolute",o.left="0",o.top="0",n.writingMode==pt?(o.width="100%",n.lineAlign==gt?o.top=n.line+"%":"end"==n.lineAlign&&(o.bottom=n.line+"%")):"vertical-lr"==n.writingMode?(o.height="100%",n.lineAlign==gt?o.left=n.line+"%":"end"==n.lineAlign&&(o.right=n.line+"%")):(o.height="100%",n.lineAlign==gt?o.right=n.line+"%":"end"==n.lineAlign&&(o.left=n.line+"%"))):n.region&&n.region.id&&(e=n.region.widthUnits==St?"%":"px",r=n.region.viewportAnchorUnits==St?"%":"px",o.height=n.region.height+(n.region.heightUnits==St?"%":"px"),o.width=n.region.width+e,o.position="absolute",o.top=n.region.viewportAnchorY+r,o.left=n.region.viewportAnchorX+r),o.lineHeight=n.lineHeight,n.position&&(n.writingMode==pt?o.paddingLeft=n.position:o.paddingTop=n.position),"line-left"==n.positionAlign?o.cssFloat="left":"line-right"==n.positionAlign&&(o.cssFloat="right"),o.textAlign=n.textAlign,o.textDecoration=n.textDecoration.join(" "),o.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&o.writingMode==n.writingMode||(o.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==pt?o.width=n.size+"%":o.height=n.size+"%")}(e,o,t,n,r),n=o,r&&((n=gs("span")).classList.add("shaka-text-wrapper"),n.style.backgroundColor=t.backgroundColor,o.appendChild(n)),e.j.set(t,{Ze:o,Mf:n})}function Cs(e,t,n){var r=(r=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(r[1]),ph:r[2]}:null;if(!r)return e;var i=r.value;switch(r.ph){case"%":return i/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*i/t.cellResolution.rows+"px";default:return e}}function Ss(e,t){this.F=e,this.m=t,this.h="",this.l=void 0,this.g=!1,this.j=!0,this.i=!1}function Es(e,t,n){try{if(e.m.enabled){var r={d:1e3*n.duration,st:e.F.W()?Fs:zs};r.ot=function(e){var t=e.type;return e.init?Rs:"video"==t?e.codecs.includes(",")?Ns:Is:"audio"==t?Ls:"text"==t?"application/mp4"===e.mimeType?Bs:Ds:void 0}(n);var i=r.ot===Is||r.ot===Ls||r.ot===Ns||r.ot===Bs;i&&(r.bl=function(e,t){var n=e.F.Ib()[t];if(!n.length)return NaN;var r=e.F.kg();return(n=n.find(function(e){return e.start<=r&&e.end>=r}))?1e3*(n.end-r):NaN}(e,n.type)),n.bandwidth&&(r.br=n.bandwidth/1e3),i&&r.ot!==Bs&&(r.tb=function(e,t){var n=e.F.fb();if(!n.length)return NaN;for(var r=n[0],i=(n=c(n)).next();!i.done;i=n.next())"variant"===(i=i.value).type&&i.bandwidth>r.bandwidth&&(r=i);switch(t){case Is:return r.videoBandwidth||NaN;case Ls:return r.audioBandwidth||NaN;default:return r.bandwidth}}(e,r.ot)/1e3),As(e,t,r)}}catch(o){W("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",o)}}function Ms(e,t){try{if(!e.m.enabled)return t;var n=Ts(e);return n.ot=Ds,n.su=!0,Os(t,js(n))}catch(r){return W("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",r),t}}function Ts(t){return t.h||(t.h=t.m.sessionId||e.crypto.randomUUID()),{v:1,sf:t.l,sid:t.h,cid:t.m.contentId,mtp:t.F.getBandwidthEstimate()/1e3}}function As(e,t,n){n=void 0===n?{}:n;var r=void 0===r?e.m.useHeaders:r;if(e.m.enabled){Object.assign(n,Ts(e)),n.pr=e.F.Jb();var i=n.ot===Is||n.ot===Ns;if(e.i&&i&&(n.bs=!0,n.su=!0,e.i=!1),null==n.su&&(n.su=e.j),r)e=function(e){for(var t=Object.keys(e),n={},r=["Object","Request","Session","Status"],i=[{},{},{},{}],o={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},a=(t=c(t)).next();!a.done;a=t.next())a=a.value,i[null!=o[a]?o[a]:1][a]=e[a];for(e=0;e<i.length;e++)(o=js(i[e]))&&(n["CMCD-"+r[e]]=o);return n}(n),Object.keys(e).length&&Object.assign(t.headers,e);else{var o=js(n);o&&(t.uris=t.uris.map(function(e){return Os(e,o)}))}}}function js(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}function r(e){return!Number.isNaN(e)&&null!=e&&""!==e&&!1!==e}for(var i=[],o={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},a=Object.keys(e||{}).sort(),s=(a=c(a)).next();!s.done;s=a.next()){var l=e[s=s.value];if(r(l)&&("v"!==s||1!==l)&&("pr"!=s||1!==l)){var d,u=o[s];u&&(l=u(l)),d="string"==(u=typeof l)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(l):"boolean"===u?s:"symbol"===u?s+"="+l.description:s+"="+l,i.push(d)}}return i.join(",")}function Os(e,t){if(!t||e.includes("offline:"))return e;var n=new oe(e);return n.g.set("CMCD",t),n.toString()}Za.prototype.destroy=function(){return this.N.destroy()},Za.prototype.configure=function(e){this.m=e,this.B=new fr({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor},!0)},Za.prototype.start=function(){var e=this;return I(function(t){if(1==t.g)return w(t,function(e){var t,n,r,i,o,a,s,l,d,u;return I(function(h){if(1==h.g){if(t=Ne,!e.h)throw new ye(2,5,5006);return n=new Map,r=new Set,e.h.audio&&(n.set(t.Nb,e.h.audio),r.add(e.h.audio)),e.h.video&&(n.set(t.mb,e.h.video),r.add(e.h.video)),e.i&&(n.set(t.ua,e.i),r.add(e.i)),i=e.F.Y,o=e.m.forceTransmuxTS,w(h,i.init(n,o),2)}Rr(e.N);var f=e.H.presentationTimeline.getDuration();for(1/0>f?e.F.Y.ib(f):e.F.Y.ib(Math.pow(2,32)),a=c(n.keys()),s=a.next();!s.done;s=a.next())l=s.value,d=n.get(l),e.g.has(l)||(u=es(d),e.g.set(l,u),os(e,u,0));k(h)})}(e),2);Rr(e.N),e.s=!0,k(t)})},Za.prototype.Tc=function(t){var n,r,i,o,a,s=this;return I(function(l){switch(l.g){case 1:if(Rr(s.N),t.hb||null==t.kb||t.Ic)return l.return();if(t.kb=null,!t.ac){l.D(2);break}return w(l,is(s,t,t.Hd,t.md),3);case 3:return l.return();case 2:if(t.stream.segmentIndex){l.D(4);break}return n=t.stream,w(l,t.stream.createSegmentIndex(),5);case 5:if(n!=t.stream)return n.closeSegmentIndex&&n.closeSegmentIndex(),null==t.kb&&os(s,t,0),l.return();case 4:x(l,6),r=function(t,n){if(ns(n))return function(e,t){var n=$o(e,"video")||0;cn(e.i,t,n)}(t.F.Y,n.stream.originalId||""),null;n.type==Ie&&function(e){e.i&&cn(e.i,"",0)}(t.F.Y);var r=t.F.rd(),i=n.Xa?n.Xa.endTime:r,o=function(e,t,n){return t==Ie?null==(e=e.i).h||e.h<n?0:e.h-Math.max(n,e.g):Jo(e=ea(e,t),n)}(t.F.Y,n.type,r),a=Math.max(t.H.minBufferTime||0,t.m.rebufferingGoal,t.m.bufferingGoal)*t.l;if(1e-6>t.H.presentationTimeline.getDuration()-i)return n.endOfStream=!0,"video"==n.type&&(r=t.g.get(Ie))&&ns(r)&&(r.endOfStream=!0),null;if(n.endOfStream=!1,o>=a)return t.m.updateIntervalSeconds/2;if(o=$o(t.F.Y,n.type),o=function(e,t,n,r){if(t.za)return t.za.current();if(t.Xa||r)return t.za=t.stream.segmentIndex.kc(t.Xa?t.Xa.endTime:r),t.za&&t.za.next().value;e=e.m.inaccurateManifestTolerance,r=Math.max(n-e,0);var i=null;return e&&(t.za=t.stream.segmentIndex.kc(r),i=t.za&&t.za.next().value),i||(t.za=t.stream.segmentIndex.kc(n),i=t.za&&t.za.next().value),i}(t,n,r,o),!o)return t.m.updateIntervalSeconds;a=1/0;for(var s=Array.from(t.g.values()),l=(s=c(s)).next();!l.done;l=s.next())ns(l=l.value)||l.za&&!l.za.current()||(a=Math.min(a,l.Xa?l.Xa.endTime:r));return i>=a+t.H.presentationTimeline.g?t.m.updateIntervalSeconds:(function(t,n,r,i){var o,a,s,l,c,d,u,h,f,p,m;return I(function(g){switch(g.g){case 1:return o=Ne,a=n.stream,s=n.za,n.hb=!0,x(g,2),w(g,function(e,t,n){var r,i,o,a,s,l,c;return I(function(d){return r=[],i=Math.max(0,n.appendWindowStart-.1),o=n.appendWindowEnd+.01,(a=n.timestampOffset)==t.ee&&i==t.ce&&o==t.be||(s=function(){var n;return I(function(r){if(1==r.g)return x(r,2),t.ce=i,t.be=o,t.ee=a,w(r,function(e,t,n,r,i){return I(function(o){return t==Ne.ua?(e.i.G=n,function(e,t,n){e.j=t,e.l=n}(e.i,r,i),o.return()):w(o,Promise.all([ia(e,t,function(){var n=e.j[t].appendWindowStart,r=e.j[t].appendWindowEnd;e.j[t].abort(),e.j[t].appendWindowStart=n,e.j[t].appendWindowEnd=r,ra(e,t)}),ia(e,t,function(){var r=n;0>r&&(r+=.001),e.j[t].timestampOffset=r,ra(e,t)}),ia(e,t,function(){e.j[t].appendWindowStart=0,e.j[t].appendWindowEnd=i,e.j[t].appendWindowStart=r,ra(e,t)})]),0)})}(e.F.Y,t.type,a,i,o),4);if(2!=r.g)return S(r,0);throw n=E(r),t.ce=null,t.be=null,t.ee=null,n})},r.push(s())),!function(e,t){return e&&t?e.Oc()==t.Oc()&&e.Kc()==t.Kc()&&ot(e.Ma(),t.Ma()):e==t}(n.g,t.td)&&(t.td=n.g)&&(l=rs(e,t,n.g),c=function(){var n,r,i;return I(function(o){switch(o.g){case 1:return x(o,2),w(o,l,4);case 4:return n=o.h,Rr(e.N),r=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,w(o,ta(e.F.Y,t.type,n,null,null,r),5);case 5:S(o,0);break;case 2:throw i=E(o),t.td=null,i}})},e.F.Ug(n.startTime,n.g),r.push(c())),w(d,Promise.all(r),0)})}(t,n,i),4);case 4:return Rr(t.N),t.j?g.return():(l="video/mp4"==a.mimeType||"audio/mp4"==a.mimeType,c=e.ReadableStream,t.m.lowLatencyMode&&c&&l?(u=new Uint8Array(0),h=function(e){var o,s,l;return I(function(c){return Rr(t.N),t.j?c.return():(u=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(u,e),o=!1,s=0,(new Ci).box("mdat",function(e){s=e.size+e.start,o=!0}).parse(u,!1,!0),o?(l=u.subarray(0,s),u=u.subarray(s),w(c,ts(t,n,r,a,i,l),0)):c.D(0))})},w(g,rs(t,n,i,h),6)):w(g,rs(t,n,i),7));case 7:return d=g.h,Rr(t.N),t.j?g.return():n.ac?(n.hb=!1,os(t,n,0),g.return()):w(g,ts(t,n,r,a,i,d),6);case 6:if(Rr(t.N),t.j)return g.return();n.Xa=i,s.next(),n.hb=!1,n.ve=!1,f=t.F.Y.Ib(),p=f[n.type],JSON.stringify(p),n.ac||t.F.qe(),os(t,n,0),S(g,0);break;case 2:if(m=E(g),Rr(t.N,m),t.j)return g.return();if(n.hb=!1,7001==m.code)n.hb=!1,n.kb=null,os(t,n,0),g.D(0);else if(n.type==o.ua&&t.m.ignoreTextStreamFailures)t.g.delete(o.ua),g.D(0);else if(3017==m.code)(function(e,t,n){if(!Array.from(e.g.values()).some(function(e){return e!=t&&e.ve})){var r=Math.round(100*e.l);if(20<r)e.l-=.2;else{if(!(4<r))return t.Pc=!0,e.j=!0,void e.F.onError(n);e.l-=.04}t.ve=!0}os(e,t,4)})(t,n,m),g.D(0);else{if(1001!=m.code||!m.data||404!=m.data[1])return n.Pc=!0,m.severity=2,w(g,ls(t,m),0);n.hb=!1,n.kb=null,os(t,n,1),g.D(0)}}})}(t,n,r,o).catch(function(){}),null)}(s,t),null!=r&&(os(s,t,r),t.Pc=!1),S(l,7);break;case 6:return i=E(l),w(l,ls(s,i),8);case 8:return l.return();case 7:if(o=Array.from(s.g.values()),!s.s||!o.every(function(e){return e.endOfStream})){l.D(0);break}return w(l,s.F.Y.endOfStream(),10);case 10:Rr(s.N),0!=(a=s.F.Y.getDuration())&&a<s.H.presentationTimeline.getDuration()&&s.H.presentationTimeline.ib(a),k(l)}})},cs.prototype.destroy=function(){return this.N.destroy()},(r=hs.prototype).remove=function(e,t){return!!this.g&&(ps(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0)},r.append=function(e){function t(e){var n=[],r=700<=e.fontWeight,i="italic"==e.fontStyle,o=e.textDecoration.includes("underline");return r&&n.push("b"),i&&n.push("i"),o&&n.push("u"),r=n.reduce(function(e,t){return e+"<"+t+">"},""),n=n.reduceRight(function(e,t){return e+"</"+t+">"},""),e.lineBreak||e.spacer?(e.spacer&&ke("shaka.extern.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(t).join(""):r+e.payload+n}var n=e.map(function(e){if(e.nestedCues.length){var n=e.clone();return n.nestedCues=[],n.payload=t(e),n}return e}),r=[];e=this.g.cues?Array.from(this.g.cues):[];for(var i={},o=(n=c(n)).next();!o.done;i={dc:i.dc},o=n.next())i.dc=o.value,e.some(function(e){return function(t){return t.startTime==e.dc.startTime&&t.endTime==e.dc.endTime&&t.text==e.dc.payload}}(i))||(o=fs(i.dc))&&r.push(o);for(i=(e=c(e=r.slice().sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?r.indexOf(t)-r.indexOf(e):r.indexOf(e)-r.indexOf(t)}))).next();!i.done;i=e.next())this.g.addCue(i.value)},r.destroy=function(){return this.g&&(ps(this.g,function(){return!0}),this.g.mode="disabled"),this.g=null,Promise.resolve()},r.isTextVisible=function(){return"showing"==this.g.mode},r.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},H("shaka.text.SimpleTextDisplayer",hs),hs.prototype.setTextVisibility=hs.prototype.setTextVisibility,hs.prototype.isTextVisible=hs.prototype.isTextVisible,hs.prototype.destroy=hs.prototype.destroy,hs.prototype.append=hs.prototype.append,hs.prototype.remove=hs.prototype.remove,H("shaka.util.Dom",ms),ms.removeAllChildren=bs,(r=ys.prototype).append=function(e){for(var t=[].concat(d(this.l)),n={},r=(e=c(e)).next();!r.done;n={$c:n.$c},r=e.next())n.$c=r.value,t.some(function(e){return function(t){return st(t,e.$c)}}(n))||this.l.push(n.$c);ks(this)},r.destroy=function(){this.C.removeChild(this.i),this.i=null,this.s=!1,this.l=[],this.G&&this.G.stop(),this.j.clear(),this.h&&(this.h.release(),this.h=null),this.B&&(this.B.disconnect(),this.B=null)},r.remove=function(e,t){if(!this.i)return!1;var n=this.l.length;return this.l=this.l.filter(function(n){return n.startTime<e||n.endTime>=t}),ks(this,n>this.l.length),!0},r.isTextVisible=function(){return this.s},r.setTextVisibility=function(e){this.s=e},H("shaka.text.UITextDisplayer",ys),ys.prototype.setTextVisibility=ys.prototype.setTextVisibility,ys.prototype.isTextVisible=ys.prototype.isTextVisible,ys.prototype.remove=ys.prototype.remove,ys.prototype.destroy=ys.prototype.destroy,ys.prototype.append=ys.prototype.append,H("shaka.text.WebVttGenerator",function(){});var Ps="m",Ls="a",Is="v",Ns="av",Rs="i",Ds="c",Bs="tt",zs="v",Fs="l";function Hs(){}function qs(e,t,n,r,i){var o,a=i in r,s=!0;for(o in t){var l=i+"."+o,c=a?r[i]:n[o];a||o in n?void 0===t[o]?void 0===c||a?delete e[o]:e[o]=kr(c):c.constructor==Object&&t[o]&&t[o].constructor==Object?(e[o]||(e[o]=kr(c)),l=qs(e[o],t[o],c,r,l),s=s&&l):typeof t[o]!=typeof c||null==t[o]||"function"!=typeof t[o]&&t[o].constructor!=c.constructor?(X("Invalid config, wrong type for "+l),s=!1):("function"==typeof n[o]&&n[o].length!=t[o].length&&G("Unexpected number of arguments for "+l),e[o]=t[o]):(X("Invalid config, unrecognized key "+l),s=!1)}return s}function Us(e,t){for(var n={},r=n,i=0,o=0;!(0>(i=e.indexOf(".",i)));)0!=i&&"\\"==e[i-1]||(r[o=e.substring(o,i).replace(/\\\./g,".")]={},r=r[o],o=i+1),i+=1;return r[e.substring(o).replace(/\\\./g,".")]=t,n}function Vs(){}function Xs(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:ti,logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[]},n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"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:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return e}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,useFullSegmentsForStartTime:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E"}},r={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return[e]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1};(navigator.userAgent.match(/Edge\//)||vn()||bn())&&(r.gapDetectionThreshold=.5),(kn("Web0S")||vn()||bn())&&(r.stallSkip=0);var i={trackSelectionCallback:function(e){return I(function(t){return t.return(e)})},downloadSizeCallback:function(e){var t;return I(function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?w(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))})},progressCallback:function(e,t){return[e,t]},usePersistentLicense:!0},o={drm:t,manifest:n,streaming:r,offline:i,abrFactory:function(){return new er},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};return i.trackSelectionCallback=function(e){return I(function(t){return t.return(function(e,t){var n=e.filter(function(e){return"variant"==e.type}),r=[],i=Ge(t,n.map(function(e){return e.language}));i&&(r=n.filter(function(e){return He(e.language)==i})),0==r.length&&(r=n.filter(function(e){return e.primary})),0==r.length&&(n.map(function(e){return e.language}),r=n);var o=r.filter(function(e){return e.height&&480>=e.height});if(o.length&&(o.sort(function(e,t){return t.height-e.height}),r=o.filter(function(e){return e.height==o[0].height})),n=[],r.length){var a=Math.floor(r.length/2);r.sort(function(e,t){return e.bandwidth-t.bandwidth}),n.push(r[a])}for(r=c(e),a=r.next();!a.done;a=r.next())(a=a.value).type!=Ie&&"image"!=a.type||n.push(a);return n}(e,o.preferredAudioLanguage))})},o}function Gs(e,t,n){var r={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return qs(e,t,n||Xs(),r,"")}function Ws(){this.g=null,this.h=[]}function Js(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function Zs(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var r=c(e.h),i=r.next();!i.done;i=r.next())n+=(i=i.value).state==t?i.duration:0;return n}function Ks(){this.i=this.h=null,this.g=[]}function Ys(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function Qs(){this.B=this.C=this.L=this.I=this.s=this.j=this.J=this.l=this.i=this.M=this.P=this.S=this.G=this.ea=NaN,this.g=new Ws,this.h=new Ks}function _s(t,n){$.call(this);var r=this;this.l=bc,this.Db=this.g=null,this.ha=!1,this.h=new Dr,this.nc=this.B=this.bb=this.H=this.Eb=this.C=this.i=this.ia=this.P=this.Gb=this.L=this.zb=this.J=this.Ca=this.I=this.M=this.s=this.V=null,this.se=1e9,this.m=pl(this),this.oe={width:1/0,height:1/0},this.j=null,this.sa=new lr(this.m.preferredAudioLanguage,this.m.preferredVariantRole,this.m.preferredAudioChannelCount),this.Aa=this.m.preferredTextLanguage,this.ob=this.m.preferredTextRole,this.cb=this.m.preferForcedSubs,this.Zd=[],this.pb=null,n&&n(this),this.V=function(e){return new Er(function(t,n){e.B&&e.B.segmentDownloaded(t,n)},function(t,n,r){t=(new Map).set("headers",t).set("request",n).set("requestType",r),e.dispatchEvent($s(Zl,t))},function(t,n,r,i){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",r).set("aborted",i),e.dispatchEvent($s(Jl,t))})}(this),this.V.Ee(this.m.streaming.forceHTTPS),this.G=null,Sc&&(this.G=Ae(Sc)),this.h.o(e,"online",function(){r.we()}),this.Pa={name:"detach"},this.qb={name:"attach"},this.$={name:"unload"},this.ue={name:"manifest-parser"},this.ke={name:"manifest"},this.Ba={name:"media-source"},this.ae={name:"drm-engine"},this.S={name:"load"},this.xe={name:"src-equals-drm-engine"},this.Ua={name:"src-equals"};var i=new Map;i.set(this.qb,function(e,t){return yr(function(e,t,n){return null==t.K&&(t.K=n.K,e.h.o(t.K,"error",function(){var t=Ll(e);t&&Ol(e,t)})),e.g=t.K,Promise.resolve()}(r,e,t))}),i.set(this.Pa,function(e){return e.K&&(r.h.Ta(e.K,"error"),e.K=null),r.G&&r.G.release(),r.g=null,yr(e=Promise.resolve())}),i.set(this.$,function(e){return yr(tl(r,e))}),i.set(this.Ba,function(e){return e=function(e,t){var n,r,i,o;return I(function(a){if(1==a.g)return n=new Vo,r=e.m.textDisplayFactory,i=Ae(r),e.fe=r,o=function(e,t,n,r){return new Ko(e,t,n,r)}(t.K,n,i,function(t,n,r){for(var i=(t=c(t)).next();!i.done;i=t.next())if((i=i.value).data&&i.cueTime&&i.frames){for(var o=i.cueTime+n,a=r,s=c(i.frames),l=s.next();!l.done;l=s.next())nl(e,o,a,"ID3",l.value);e.G&&e.G.onHlsTimedMetadata(i,o)}}),w(a,o.I,2);e.M=o,k(a)})}(r,e),yr(e)}),i.set(this.ue,function(e,t){var n=function(e,t,n){var r,i,o,a;return I(function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,r=t.uri,i=e.V,e.bb=r,o=e,w(s,mi(r,i,e.m.manifest.retryParameters,t.mimeType),2);o.Eb=s.h,e.C=Ae(e.Eb),a=kr(e.m.manifest),n.K&&"AUDIO"===n.K.nodeName&&(a.disableVideo=!0),e.C.configure(a),k(s)})}(r,e,t);return yr(n)}),i.set(this.ke,function(e){return function(e,t){var n=t.uri,r=e.V;e.Gb=new qa(function(){return e.Na()}),e.Gb.addEventListener("regionadd",function(t){t=t.region,Pl(e,dc,t),e.G&&e.G.onDashTimedMetadata(t)}),e.ia=null,e.m.streaming.observeQualityChanges&&(e.ia=new Ha(function(){return e.Ib()}),e.ia.addEventListener("qualitychange",function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.codecs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent($s(nc,n))}));var i,o,a,s,l={networkingEngine:r,modifyManifestRequest:function(t,n){var r=e.P;try{r.m.enabled&&(r.l=n.format,As(r,t,{ot:Ps,su:!r.g}))}catch(s){W("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",s)}},modifySegmentRequest:function(t,n){Es(e.P,t,n)},filter:function(t){return ml(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,r=c(t.textStreams),i=r.next();!i.done;i=r.next())"application/cea-608"!=(i=i.value).mimeType&&"application/cea-708"!=i.mimeType||n.add(i.originalId);for(r=c(t.variants),i=r.next();!i.done;i=r.next())if((i=i.value.video)&&i.closedCaptions)for(var o=c(i.closedCaptions.keys()),a=o.next();!a.done;a=o.next())if(a=a.value,!n.has(a)){var s=a.startsWith("CC")?"application/cea-608":"application/cea-708",l=new Ra;s={id:e.se++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:l,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:i.closedCaptions.get(a),label:null,type:Ie,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:i.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},t.textStreams.push(s),n.add(a)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.Gb;e:{for(var r=c(n.g),i=r.next();!i.done;i=r.next())if((i=i.value).schemeIdUri==t.schemeIdUri&&i.id==t.id&&i.startTime==t.startTime&&i.endTime==t.endTime){r=i;break e}r=null}null==r&&(n.g.add(t),t=new q("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return Ol(e,t)},isLowLatencyMode:function(){return e.m.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.m.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)}},d=Date.now()/1e3;return new mr(I(function(t){if(1==t.g)return i=e,w(t,e.C.start(n,l),2);if(i.H=t.h,o=$s(tc),e.dispatchEvent(o),0==e.H.variants.length)throw new ye(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.H),a=Date.now()/1e3,s=a-d,e.j.J=s,k(t)}),function(){return e.C.stop()})}(r,e)}),i.set(this.ae,function(e){return e=function(e,t){var n,r;return I(function(i){return 1==i.g?(n=Date.now()/1e3,r=!0,e.s=il(e,{Wb:e.V,onError:function(t){Ol(e,t)},wd:function(t){Il(e,t)},onExpirationUpdated:function(t,n){Nl(e,t,n)},onEvent:function(t){e.dispatchEvent(t),t.type==Kl&&r&&(r=!1,e.j.j=Date.now()/1e3-n)}}),e.s.configure(e.m.drm),w(i,Wr(e.s,e.H.variants,e.H.offlineSessionIds),2)):3!=i.g?w(i,e.s.Hc(t.K),3):w(i,ml(e,e.H),0)})}(r,e),yr(e)}),i.set(this.S,function(e,t){return yr(function(e,t,n){var r,i,o,a,s,l,d,u,h,f;return I(function(p){switch(p.g){case 1:if(t.startTime=n.startTime,null!=e.pb&&(t.startTime=e.pb,e.pb=null),r=t.K,i=t.uri,e.bb=i,e.J=new Da({sd:function(){return t.K.playbackRate},pd:function(){return t.K.defaultPlaybackRate},Ge:function(e){t.K.playbackRate=e},uf:function(e){t.K.currentTime+=e}}),o=function(){return yl(e)},a=function(){return bl(e)},e.h.o(r,"playing",o),e.h.o(r,"pause",o),e.h.o(r,"ended",o),e.h.o(r,"ratechange",a),s=e.m.abrFactory,e.B&&e.nc==s||(e.nc=s,e.B=Ae(s),"function"!=typeof e.B.playbackRateChanged&&(ke("AbrManager","Please use an AbrManager with playbackRateChanged function."),e.B.playbackRateChanged=function(){}),e.B.configure(e.m.abr)),e.sa=new lr(e.m.preferredAudioLanguage,e.m.preferredVariantRole,e.m.preferredAudioChannelCount),e.Aa=e.m.preferredTextLanguage,e.ob=e.m.preferredTextRole,e.cb=e.m.preferForcedSubs,Rl(e.H.presentationTimeline,e.m.playRangeStart,e.m.playRangeEnd),e.B.init(function(t,n,r){e.i&&t!=e.i.h&&xl(e,t,!0,void 0!==n&&n,void 0===r?0:r)}),e.I=function(e,t){return new Aa(e.g,e.H,e.m.streaming,t,function(){if(e.Ca&&Fa(e.Ca,!0),e.i)for(var t=e.i,n=t.F.rd(),r=t.m.smallGapLimit,i=c(t.g.keys()),o=i.next();!o.done;o=i.next()){o=o.value;var a=t.g.get(o);a.za=null;var s=t.F.Y;if(!(s=o==Ie?null!=(s=s.i).g&&null!=s.h&&n>=s.g&&n<s.h:Wo(s=ea(s,o),n,r))&&((null!=$o(t.F.Y,o)||a.hb)&&$a(t,a),a.Ra&&(a.Ra.abort(),a.Ra=null),o===Ie))for((o=t.F.Y.G.g).l=0,o.h=[],o.g=[],(a=o.i).i=[],a.h=[],a.g=0,Lo(o),a=(o=c(o.j.values())).next();!a.done;a=o.next())To(a.value)}e.L&&al(e)},function(t){return e.dispatchEvent(t)})}(e,t.startTime),e.Ca=function(e){var t=new Ua(e.Gb);t.addEventListener("enter",function(t){Pl(e,uc,t.region)}),t.addEventListener("exit",function(t){Pl(e,hc,t.region)}),t.addEventListener("skip",function(t){var n=t.region;t.seeking||(Pl(e,uc,n),Pl(e,hc,n))});var n=new za(e.g);return n.g.add(t),e.ia&&n.g.add(e.ia),n}(e),l=Math.max(e.H.minBufferTime,e.m.streaming.rebufferingGoal),ol(e,l),En(e.H,e.m.preferredVideoCodecs,e.m.preferredAudioCodecs,e.m.preferredAudioChannelCount,e.m.preferredDecodingAttributes),e.i=function(e){return new Za(e.H,{rd:function(){return e.I.l()},getBandwidthEstimate:function(){return e.B.getBandwidthEstimate()},modifySegmentRequest:function(t,n){Es(e.P,t,n)},Y:e.M,Wb:e.V,onError:function(t){return Ol(e,t)},onEvent:function(t){return e.dispatchEvent(t)},Vg:function(){e.C&&e.C.update&&e.C.update()},qe:function(){e.I&&e.I.I(),al(e)},Ug:function(t,n){var r=n.ge;r&&e.ia&&function(e,t,n){var r=function(e,t){var n=e.g.get(t);return n||(n={Vc:[],$e:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){var n=e.h()[t.contentType];if(n&&0<n.length){var r=n[0].start,i=n[n.length-1].end,o=t.Vc;t.Vc=o.filter(function(e,t){return!(e.position<=r&&t+1<o.length&&o[t+1].position<=r||e.position>=i)})}else t.Vc=[]}(e,r),e={ge:t,position:n},0<=(t=(r=r.Vc).findIndex(function(e){return e.position>=n}))?r.splice(t,r[t].position==n?1:0,e):r.push(e)}(e.ia,r,t)}})}(e),e.i.configure(e.m.streaming),e.l=yc,e.dispatchEvent($s(sc)),d=null,e.fb().find(function(e){return e.active})){p.D(2);break}if(d=wl(e)?e.B.chooseVariant():null,xl(e,d,!0,!1,0),!e.m.streaming.startAtSegmentBoundary){p.D(3);break}return u=e.I.l(),w(p,function(e,t){var n,r,i,o,a;return I(function(s){return 1==s.g?(n=e.audio,r=e.video,i=function(e,t){var n,r;return I(function(i){return 1==i.g?e?w(i,e.createSegmentIndex(),2):i.return(null):(n=e.segmentIndex[Symbol.iterator]().seek(t))?(r=n.startTime,i.return(r)):i.return(null)})},w(s,i(n,t),2)):3!=s.g?(o=s.h,w(s,i(r,t),3)):null!=(a=s.h)&&null!=o?s.return(Math.max(a,o)):null!=a?s.return(a):null!=o?s.return(o):s.return(t)})}(d,u),4);case 4:h=p.h,e.I.s(h);case 3:Sl(e,null,Bn(d));case 2:return e.vb().find(function(e){return e.active})||((f=Wn(e.H.textStreams,e.Aa,e.ob,e.cb)[0]||null)&&Ys(e.j.h,f,!0),d&&(f?(d.audio&&function(e,t,n){return e=He(e.m.preferredTextLanguage),t=He(t.language),Be(n=He(n.language),e)&&!Be(t,n)}(e,d.audio,f)&&(e.ha=!0),e.ha&&e.M.s.setTextVisibility(!0),Al(e)):e.ha=!1),f&&(e.m.streaming.alwaysStreamText||e.Vb())&&Qa(e.i,f)),w(p,e.i.start(),5);case 5:e.m.abr.enabled&&(e.B.enable(),jl(e)),Rn(e.i?e.i.h:null,e.H),Bl(e.H),El(e),wl(e),e.H.variants.some(function(e){return e.primary}),e.h.Qa(r,"loadedmetadata",function(){e.j.l=Date.now()/1e3-n.Le}),k(p)}})}(r,e,t))}),i.set(this.xe,function(e,t){var n=function(e,t,n){var r,i,o,a,s,l,c;return I(function(d){return 1==d.g?(r=Ne,i=Date.now()/1e3,o=!0,e.s=il(e,{Wb:e.V,onError:function(t){Ol(e,t)},wd:function(t){Il(e,t)},onExpirationUpdated:function(t,n){Nl(e,t,n)},onEvent:function(t){e.dispatchEvent(t),t.type==Kl&&o&&(o=!1,e.j.j=Date.now()/1e3-i)}}),e.s.configure(e.m.drm),a=n.uri||"",s=vi(a),"application/x-mpegurl"==(l=Ec[s])&&yn()&&(l="application/vnd.apple.mpegurl"),l||(l="video/mp4"),c={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:l,codecs:n.mimeType?an(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:r.mb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.s.S=!0,w(d,Wr(e.s,[c],[]),2)):w(d,e.s.Hc(t.K),0)})}(r,e,t);return yr(n)}),i.set(this.Ua,function(e,t){return function(e,t,n){function r(){return yl(e)}t.uri=n.uri,t.startTime=n.startTime,e.bb=t.uri,e.I=new Ta(t.K),null!=t.startTime&&e.I.s(t.startTime),e.J=new Da({sd:function(){return t.K.playbackRate},pd:function(){return t.K.defaultPlaybackRate},Ge:function(e){t.K.playbackRate=e},uf:function(e){t.K.currentTime+=e}}),ol(e,e.m.streaming.rebufferingGoal),e.h.o(t.K,"playing",r),e.h.o(t.K,"pause",r),e.h.o(t.K,"ended",r),e.h.o(t.K,"ratechange",function(){return bl(e)}),"none"!=e.g.preload&&e.h.Qa(e.g,"loadedmetadata",function(){e.j.l=Date.now()/1e3-n.Le}),e.g.audioTracks&&(e.h.o(e.g.audioTracks,"addtrack",function(){return El(e)}),e.h.o(e.g.audioTracks,"removetrack",function(){return El(e)}),e.h.o(e.g.audioTracks,"change",function(){return El(e)})),e.g.textTracks&&(e.h.o(e.g.textTracks,"addtrack",function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){"metadata"==t.kind&&(t.mode="hidden",e.h.o(t,"cuechange",function(){if(t.activeCues)for(var n=c(t.activeCues),r=n.next();!r.done;r=n.next())r=r.value,nl(e,r.startTime,r.endTime,r.type,r.value),e.G&&e.G.onCueMetadataChange(r.value)}),new pn(function(){for(var t=function(e){return Array.from(e.g.textTracks).filter(function(e){return"metadata"==e.kind})}(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"}).Ga().U(.5))}(e,t);break;case"chapters":rl(e,t);break;default:El(e)}}),e.h.o(e.g.textTracks,"removetrack",function(){return El(e)}),e.h.o(e.g.textTracks,"change",function(){return El(e)}));var i=vi(t.uri);t.K.src=function(e,t,n){try{if(!e.m.enabled)return t;var r=Ts(e);e:{switch(n){case"video/webm":case"video/mp4":var i=Ns;break e;case"application/x-mpegurl":i=Ps;break e}i=void 0}return r.ot=i,r.su=!0,Os(t,js(r))}catch(a){return W("CMCD_SRC_ERROR","Could not generate src CMCD data.",a),t}}(e.P,t.uri,Ec[i]),(vn()||kn("Web0S"))&&t.K.load(),e.l=wc,e.dispatchEvent($s(sc));var o=new Dt;ba(e.g,HTMLMediaElement.HAVE_METADATA,e.h,function(){o.resolve()});var a=!1;return e.Zd.push(function(){a=!0}),ba(e.g,HTMLMediaElement.HAVE_CURRENT_DATA,e.h,function(){return I(function(t){return 1==t.g?a?t.return():(function(e){var t=e.m.preferredAudioLanguage;if(""!=t){e.Dd(t);var n=e.m.preferredVariantRole;""!=n&&e.Dd(t,n)}}(e),ll(e).find(function(e){return"disabled"!=e.mode})?t.D(2):w(t,new Promise(function(t){e.h.Qa(e.g.textTracks,"change",t),new pn(t).U(1)}),2)):a?t.return():(function(e){var t=e.m.preferredTextLanguage,n=e.m.preferForcedSubs;if(""!=t){e.ze(t,"",n);var r=e.m.preferredTextRole;""!=r&&e.ze(t,r,n)}}(e),void k(t))})}),e.g.error?o.reject(Ll(e)):"none"==e.g.preload&&(G('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),o.resolve()),e.h.Qa(e.g,"error",function(){o.reject(Ll(e))}),new mr(o,function(){return o.reject(new ye(2,7,7001)),Promise.resolve()})}(r,e,t)}),this.ka=new cs(this.Pa,{xg:function(e,t,n,i){var o=null;return e==r.Pa&&(o=n==r.Pa?r.Pa:r.qb),e==r.qb&&(o=n==r.Pa||t.K!=i.K?r.Pa:n==r.qb?r.qb:n==r.Ba||n==r.S?r.Ba:n==r.Ua?r.xe:null),e==r.Ba&&(o=n==r.S&&t.K==i.K?r.ue:r.$),e==r.ue&&(o=Ul(r.S,r.ke,r.$,n,t,i)),e==r.ke&&(o=Ul(r.S,r.ae,r.$,n,t,i)),e==r.ae&&(o=Ul(r.S,r.S,r.$,n,t,i)),e==r.xe&&(o=n==r.Ua&&t.K==i.K?r.Ua:r.$),e!=r.S&&e!=r.Ua||(o=r.$),e==r.$&&(o=i.K&&t.K==i.K?r.qb:r.Pa),o},$f:function(e,t,n){return r.dispatchEvent($s(ic,(new Map).set("state",e.name))),i.get(e)(t,n)},handleError:function(e){return I(function(t){return 1==t.g?w(t,tl(r,e),2):t.return(e.K?r.qb:r.Pa)})},Tg:function(e){r.dispatchEvent($s(oc,(new Map).set("state",e.name)))}}),t&&this.Hc(t,!0)}function $s(e,t){return new q(e,t)}function el(){if(e.Promise||G("A Promise implementation or polyfill is required"),e.TextDecoder&&e.TextEncoder||G("A TextDecoder/TextEncoder implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&e.TextDecoder&&e.TextEncoder&&Array.prototype.forEach)||kn("Trident/"))return!1;var t=wn();return!(t&&12>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!mn()||gn("application/x-mpegurl"))}function tl(e,t){var n,r,i,o,a,s,l,d,u;return I(function(h){switch(h.g){case 1:return e.l!=vc&&(e.l=bc),n=e.Zd.map(function(e){return e()}),e.Zd=[],w(h,Promise.all(n),2);case 2:if(e.dispatchEvent($s(pc)),t.mimeType=null,t.startTime=null,t.uri=null,t.K&&(e.h.Ta(t.K,"loadedmetadata"),e.h.Ta(t.K,"playing"),e.h.Ta(t.K,"pause"),e.h.Ta(t.K,"ended"),e.h.Ta(t.K,"ratechange")),e.Ca&&(e.Ca.release(),e.Ca=null),e.zb&&(e.zb.stop(),e.zb=null),!e.C){h.D(3);break}return w(h,e.C.stop(),4);case 4:e.C=null,e.Eb=null;case 3:if(!e.B){h.D(5);break}return w(h,e.B.stop(),5);case 5:if(!e.i){h.D(7);break}return w(h,e.i.destroy(),8);case 8:e.i=null;case 7:if(e.J&&(e.J.release(),e.J=null),e.I&&(e.I.release(),e.I=null),!e.M){h.D(9);break}return w(h,e.M.destroy(),10);case 10:e.M=null;case 9:if(e.G&&e.G.onAssetUnload(),!t.K||!t.K.src){h.D(11);break}return w(h,new Promise(function(e){return new pn(e).U(.1)}),12);case 12:for(t.K.removeAttribute("src"),t.K.load();t.K.lastChild;)t.K.removeChild(t.K.firstChild);case 11:if(!e.s){h.D(13);break}return w(h,e.s.destroy(),14);case 14:e.s=null;case 13:if(e.bb=null,e.L=null,e.H){for(r=c(e.H.variants),i=r.next();!i.done;i=r.next())for(o=i.value,a=c([o.audio,o.video]),s=a.next();!s.done;s=a.next())(l=s.value)&&l.segmentIndex&&l.segmentIndex.release();for(d=c(e.H.textStreams),s=d.next();!s.done;s=d.next())(u=s.value).segmentIndex&&u.segmentIndex.release()}e.H=null,e.j=new Qs,e.fe=null,vl(e),k(h)}})}function nl(e,t,n,r,i){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",r).set("payload",i),e.dispatchEvent($s(rc,t))}function rl(e,t){t&&"chapters"==t.kind&&(t.mode="hidden",new pn(function(){for(var t=cl(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"}).Ga().U(.5))}function il(e,t){return new Gr(t,e.m.drm.updateExpirationTime)}function ol(e,t){e.L=new cr,e.L.g=ur,dr(e.L,t,Math.min(.5,t/2)),vl(e),e.zb=new pn(function(){al(e)}).na(.25)}function al(e){switch(e.l){case wc:if(e.g.ended)var t=!0;else{var n=Go(e.g.buffered);t=null!=n&&n>=e.g.duration-1}break;case yc:e:if(e.g.ended||Qo(e.M))t=!0;else{if(e.H.presentationTimeline.W()){n=e.H.presentationTimeline.Qb();var r=Go(e.g.buffered);if(null!=r&&r>=n){t=!0;break e}}t=!1}break;default:t=!1}r=Jo(e.g.buffered,e.g.currentTime);var i=t,o=(n=e.L).h.get(n.g);t=n.g,r=i||r>=o?hr:ur,n.g=r,t!=r&&vl(e)}function sl(e){if(e.C){var t=kr(e.m.manifest);e.g&&"AUDIO"===e.g.nodeName&&(t.disableVideo=!0),e.C.configure(t)}if(e.s&&e.s.configure(e.m.drm),e.i){e.i.configure(e.m.streaming);try{gl(e,e.H)}catch(o){Ol(e,o)}e.B&&wl(e),!(t=e.i.h)||t.allowedByApplication&&t.allowedByKeySystem||kl(e)}if(e.V&&e.V.Ee(e.m.streaming.forceHTTPS),e.M&&(t=e.m.textDisplayFactory,e.fe!=t)){var n=Ae(t),r=e.M,i=r.s;r.s=n,i&&(n.setTextVisibility(i.isTextVisible()),i.destroy()),r.i&&(r.i.i=n),e.fe=t,e.i&&(n=(t=e.i).g.get(Ie))&&_a(t,n.stream,!0,0,!0)}e.B&&(e.B.configure(e.m.abr),e.m.abr.enabled?e.B.enable():e.B.disable(),jl(e)),e.L&&(t=e.m.streaming.rebufferingGoal,e.H&&(t=Math.max(t,e.H.minBufferTime)),dr(e.L,t,Math.min(.5,t/2))),e.H&&Rl(e.H.presentationTimeline,e.m.playRangeStart,e.m.playRangeEnd)}function ll(e){return Array.from(e.g.textTracks).filter(function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label})}function cl(e){return Array.from(e.g.textTracks).filter(function(e){return"chapters"==e.kind})}function dl(e,t){var n,r;return I(function(i){switch(i.g){case 1:return n=vi(t),(r=Mc[n])?i.return(r):(x(i,2),w(i,gi(t,e.V,e.m.streaming.retryParameters),4));case 4:r=i.h,S(i,3);break;case 2:E(i);case 3:if(r)return i.return(r);throw new ye(1,2,2011,n)}})}function ul(e,t,n,r,i,o,a){var s,l,c,d;return I(function(u){if(1==u.g)return"text/vtt"!=i||a.length?w(u,hl(e,t,e.V,e.m.streaming.retryParameters),3):u.D(2);2!=u.g&&(s=u.h,l=fl(e,s,i,a),c=new Blob([l],{type:"text/vtt"}),t=ca(c),i="text/vtt"),(d=document.createElement("track")).src=Ms(e.P,t),d.label=o,d.kind=r,d.srclang=n,e.g.getAttribute("crossorigin")||e.g.setAttribute("crossorigin","anonymous"),e.g.appendChild(d),k(u)})}function hl(e,t,n,r){var i,o,a;return I(function(s){if(1==s.g){i=Pr,(o=Tr([t],r)).method="GET";var l=e.P;try{l.m.enabled&&As(l,o,{ot:Ds,su:!0})}catch(c){W("CMCD_TEXT_ERROR","Could not generate text CMCD data.",c)}return w(s,n.request(i,o).promise,2)}return a=s.h,s.return(a.data)})}function fl(e,t,n,r){var i=hn[n];if(i)return n=i(),e={periodStart:0,segmentStart:0,segmentEnd:e.g.duration},t=Ot(t),function(e,t){function n(e){for(var n=e,r=c(t),i=r.next();!i.done;i=r.next())(i=i.value).end&&i.start<e&&(n+=i.end-i.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(r=Math.floor(n/60%60))?"0":"")+r+":"+(10>(i=Math.floor(n%60))?"0":"")+i+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}function r(e){var t=[],n=700<=e.fontWeight,i="italic"==e.fontStyle,o=e.textDecoration.includes("underline");return n&&t.push("b"),i&&t.push("i"),o&&t.push("u"),n=t.reduce(function(e,t){return e+"<"+t+">"},""),t=t.reduceRight(function(e,t){return e+"</"+t+">"},""),e.lineBreak||e.spacer?(e.spacer&&ke("shaka.text.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(r).join(""):n+e.payload+t}for(var i=e.map(function(e){if(e.nestedCues.length){var t=e.clone();return t.nestedCues=[],t.payload=r(e),t}return e}),o="WEBVTT\n\n",a=(i=c(i)).next();!a.done;a=i.next())o+=n((a=a.value).startTime)+" --\x3e "+n(a.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case ct:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(a)+"\n",o+=a.payload+"\n\n";return o}(t=n.parseMedia(t,e),r);throw new ye(2,2,2014,n)}function pl(e){var t=Xs();return t.streaming.failureCallback=function(t){e.W()&&[1001,1002,1003].includes(t.code)&&(t.severity=1,e.we())},t.textDisplayFactory=function(){return e.Db?new ys(e.g,e.Db):new hs(e.g)},t}function ml(e,t){return I(function(n){if(1==n.g)return w(n,function(e,t){return I(function(n){if(1==n.g)return w(n,jn(e.i?e.i.h:null,t),2);Bl(t),k(n)})}(e,t),2);gl(e,t),k(n)})}function gl(e,t){if(e.l!=vc){for(var n=e.m.restrictions,r=e.oe,i=!1,o=c(t.variants),a=o.next();!a.done;a=o.next()){var s=(a=a.value).allowedByApplication;a.allowedByApplication=An(a,n,r),s!=a.allowedByApplication&&(i=!0)}if(i&&e.i&&El(e),(n=e.s?e.s.i:null)&&e.s.s)for(i=(r=c(t.variants)).next();!i.done;i=r.next())for(o=(i=c(((i=i.value).video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[]))).next();!o.done;o=i.next())if((o=o.value).keySystem==n.keySystem)for(a=(o=c(o.initData||[])).next();!a.done;a=o.next())a=a.value,Yr(e.s,a.initDataType,a.initData);Dl(e,t)}}function vl(e){var t=e.Rc();if(e.j&&e.L&&e.I){var n=e.J;n.j=t,Ba(n),e.P&&(n=e.P,t||n.g||(n.g=!0),n.g&&t&&(n.i=!0),n.j=t),yl(e)}t=(new Map).set("buffering",t),e.dispatchEvent($s(Wl,t))}function bl(e){var t=e.g.playbackRate;0!=t&&(e.J&&e.J.set(t),t=$s(ac),e.dispatchEvent(t))}function yl(e){if(e.j&&e.L){var t=e.j.g;e.L.g==ur?Js(t,"buffering"):e.g.paused?Js(t,"paused"):e.g.ended?Js(t,"ended"):Js(t,"playing")}}function wl(e){try{Dl(e,e.H)}catch(n){return Ol(e,n),!1}var t=e.H.variants.filter(function(e){return Xn(e)});return t=e.sa.create(t),e.B.setVariants(Array.from(t.values())),!0}function kl(e){var t;(t=wl(e)?e.B.chooseVariant():null)&&xl(e,t,!0,!0,0)}function xl(e,t,n,r,i){var o=e.i.h;if(t==o)r&&Ya(e.i,t,r,i,!0);else{var a=e.j.h;a.h!=t&&(a.h=t,a.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),Ya(e.i,t,r,i),r=null,o&&(r=Bn(o)),t=Bn(t),n?Sl(e,r,t):Ml(e,r,t)}}function Cl(e,t){var n=Array.from(e.g.audioTracks).find(function(e){return e.enabled});t.enabled=!0,t.id!==n.id&&(n.enabled=!1),Ml(e,n=Un(n),Un(t))}function Sl(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),zl(e,t=$s(Gl,t))}function El(e){zl(e,$s(fc))}function Ml(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),zl(e,t=$s(mc,t))}function Tl(e){zl(e,$s(lc))}function Al(e){zl(e,$s(cc))}function jl(e){var t=(new Map).set("newStatus",e.m.abr.enabled);zl(e,$s(Xl,t))}function Ol(e,t){if(e.l!=vc){var n=$s(Ql,(new Map).set("detail",t));e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function Pl(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent($s(t,n))}function Ll(e){if(!e.g.error)return null;var t=e.g.error.code;if(1==t)return null;var n=e.g.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new ye(2,3,3016,t,n,e.g.error.message)}function Il(e,t){if(e.i){var n=Object.keys(t),r=1==n.length&&"00"==n[0],i=!1;if(n.length)for(var o=(n=c(e.H.variants)).next();!o.done;o=n.next()){var a=[];(o=o.value).audio&&a.push(o.audio),o.video&&a.push(o.video);for(var s=(a=c(a)).next();!s.done;s=a.next()){var l=s.value;if(s=o.allowedByKeySystem,l.keyIds.size){o.allowedByKeySystem=!0;for(var d=(l=c(l.keyIds)).next();!d.done;d=l.next())d=d.value,d=t[r?"00":d],o.allowedByKeySystem=o.allowedByKeySystem&&!!d&&!xc.includes(d)}s!=o.allowedByKeySystem&&(i=!0)}}i&&wl(e),(r=e.i.h)&&!r.allowedByKeySystem&&kl(e),i&&El(e)}}function Nl(e,t,n){e.C&&e.C.onExpirationUpdated&&e.C.onExpirationUpdated(t,n),t=$s(_l),e.dispatchEvent(t)}function Rl(e,t,n){0<t&&(e.W()||e.Ff(t)),n<(t=e.getDuration())&&(e.W()||e.ib(n))}function Dl(e,t){var n=e.s?e.s.qd():{},r=Object.keys(n);r=r.length&&"00"==r[0];for(var i=!1,o=!1,a=new Set,s=new Set,l=c(t.variants),d=l.next();!d.done;d=l.next()){var u=[];(d=d.value).audio&&u.push(d.audio),d.video&&u.push(d.video);for(var h=(u=c(u)).next();!h.done;h=u.next())if((h=h.value).keyIds.size)for(var f=(h=c(h.keyIds)).next();!f.done;f=h.next()){f=f.value;var p=n[r?"00":f];p?xc.includes(p)&&s.add(p):a.add(f)}d.allowedByApplication?d.allowedByKeySystem&&(i=!0):o=!0}if(!i)throw new ye(2,4,4012,n={hasAppRestrictions:o,missingKeys:Array.from(a),restrictedKeyStatuses:Array.from(s)})}function Bl(e){if(!e.variants.some(Xn))throw new ye(2,4,4032)}function zl(e,t){I(function(n){if(1==n.g)return w(n,Promise.resolve(),2);e.l!=vc&&e.dispatchEvent(t),k(n)})}function Fl(e){for(var t=new Set,n=(e=c(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(He(n.language)):t.add("und");return t}function Hl(e){for(var t=new Map,n=new Map,r=(e=c(e)).next();!r.done;r=e.next()){var i="und",o=[];(r=r.value).language&&(i=He(r.language)),(o="variant"==r.type?r.audioRoles:r.roles)&&o.length||(o=[""]),t.has(i)||t.set(i,new Set);for(var a=(o=c(o)).next();!a.done;a=o.next())a=a.value,t.get(i).add(a),r.label&&(n.has(i)||n.set(i,new Map),n.get(i).set(a,r.label))}var s=[];return t.forEach(function(e,t){for(var r=c(e),i=r.next();!i.done;i=r.next()){i=i.value;var o=null;n.has(t)&&n.get(t).has(i)&&(o=n.get(t).get(i)),s.push({language:t,role:i,label:o})}}),s}function ql(){return new ye(2,7,7e3)}function Ul(e,t,n,r,i,o){return r==e&&i.K==o.K&&i.uri==o.uri&&i.mimeType==o.mimeType?t:n}function Vl(e){return new Promise(function(t,n){e.Xb=function(){return n(ql())},e.vd=function(){return t()},e.onError=function(e){return n(e)},e.xd=function(){return n(ql())}})}H("shaka.util.CmcdManager.StreamingFormat",{Hh:"d",Vh:"h",Ci:"s",ki:"o"}),H("shaka.util.ConfigUtils",Hs),Hs.convertToConfigObject=Us,Hs.mergeConfigObjects=qs,H("shaka.util.PlayerConfiguration",Vs),Vs.mergeConfigObjects=Gs,g(_s,$),(r=_s.prototype).destroy=function(){var e,t=this;return I(function(n){switch(n.g){case 1:return t.l==vc?n.return():(t.l=vc,e=ds(t.ka,function(){return{node:t.Pa,payload:{K:null,mimeType:null,startTime:null,Le:NaN,uri:null},Rb:!1}}),w(n,new Promise(function(t){e.uc=function(){},e.vd=function(){t()},e.Xb=function(){t()},e.onError=function(){t()},e.xd=function(){t()}}),2));case 2:return w(n,t.ka.destroy(),3);case 3:if(t.h&&(t.h.release(),t.h=null),t.nc=null,t.B=null,t.m=null,t.j=null,t.Db=null,t.P=null,!t.V){n.D(4);break}return w(n,t.V.destroy(),5);case 5:t.V=null;case 4:$.prototype.release.call(t),k(n)}})},r.Hc=function(e,t){if(t=void 0===t||t,this.l==vc)return Promise.reject(ql());var n={K:null,mimeType:null,startTime:null,Le:NaN,uri:null};n.K=e,mn()||(t=!1);var r=t?this.Ba:this.qb,i=ds(this.ka,function(){return{node:r,payload:n,Rb:!1}});return i.uc=function(){},Vl(i)},r.detach=function(){var e=this;if(this.l==vc)return Promise.reject(ql());var t=ds(this.ka,function(){return{node:e.Pa,payload:{K:null,mimeType:null,startTime:null,Le:NaN,uri:null},Rb:!1}});return t.uc=function(){},Vl(t)},r.Qe=function(e){var t=this;if(e=void 0===e||e,this.l==vc)return Promise.reject(ql());mn()||(e=!1);var n={K:null,mimeType:null,startTime:null,Le:NaN,uri:null},r=ds(this.ka,function(r){var i=r.K&&e?t.Ba:r.K?t.qb:t.Pa;return n.K=r.K,{node:i,payload:n,Rb:!1}});return r.uc=function(){},Vl(r)},r.vh=function(e){this.pb=e},r.load=function(e,t,n){var r=this;if(this.pb=null,this.l==vc)return Promise.reject(ql());this.dispatchEvent($s(ec));var i={K:null,mimeType:null,startTime:null,Le:NaN,uri:null};i.uri=e,i.Le=Date.now()/1e3,n&&(i.mimeType=n),void 0!==t&&(i.startTime=t);var o=function(e,t){if(!mn())return!0;var n=t.mimeType,r=t.uri||"";if(n||(n=vi(r),n=Ec[n]),n){if(""==(t.K||xn()).canPlayType(n))return!1;if(!mn()||!(n in bi)&&!(vi(r)in yi)||e.m.streaming.preferNativeHls)return!0;if(yn())return e.m.streaming.useNativeHlsOnSafari}return!1}(this,i)?this.Ua:this.S,a=ds(this.ka,function(e){return null==e.K?null:(i.K=e.K,{node:o,payload:i,Rb:!0})});return this.j=new Qs,this.P=function(e){return new Ss({getBandwidthEstimate:function(){return e.B?e.B.getBandwidthEstimate():NaN},Ib:function(){return e.Ib()},kg:function(){return e.g?e.g.currentTime:0},fb:function(){return e.fb()},Jb:function(){return e.Jb()},W:function(){return e.W()}},e.m.cmcd)}(this),a.uc=function(){},new Promise(function(e,t){a.xd=function(){return t(new ye(2,7,7002))},a.vd=function(){e(),r.dispatchEvent($s($l))},a.Xb=function(){return t(ql())},a.onError=function(e){return t(e)}})},r.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=Us(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ke("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01));var n=Gs(this.m,e,pl(this));return sl(this),n},r.getConfiguration=function(){var e=pl(this);return Gs(e,this.m,pl(this)),e},r.dg=function(){if(this.g){var e=this.g.buffered.length;e=e?this.g.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.g.currentTime+t,this.Na().end)))return 1;if(!(e<=this.g.currentTime)&&e<t)return(e-this.g.currentTime)/(t-this.g.currentTime)}return 0},r.gh=function(){for(var e in this.m)delete this.m[e];Gs(this.m,pl(this),pl(this)),sl(this)},r.kf=function(){return this.l},r.wg=function(){return this.g},r.Mc=function(){return this.V},r.Yd=function(){return this.bb},r.od=function(){return this.G?this.G:null},r.W=function(){return this.H?this.H.presentationTimeline.W():!(!this.g||!this.g.src)&&1/0==this.g.duration},r.Tb=function(){return!!this.H&&this.H.presentationTimeline.Tb()},r.pf=function(){if(this.H){var e=this.H.variants;return!!e.length&&!e[0].video}return!(!this.g||!this.g.src)&&(this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight)},r.Na=function(){if(this.H){var e=this.H.presentationTimeline;return{start:e.mc(),end:e.sb()}}return this.g&&this.g.src&&(e=this.g.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},r.Jg=function(){this.W()&&(this.g.currentTime=this.Na().end)},r.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},r.drmInfo=function(){return this.s?this.s.i:null},r.Lc=function(){return this.s?this.s.Lc():1/0},r.qd=function(){return this.s?this.s.qd():{}},r.Rc=function(){return!!this.L&&this.L.g==ur},r.Jb=function(){return this.g?this.J?this.J.i:1:0},r.Pe=function(e){0==e?G("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.J.set(e),this.l==yc&&(this.B.playbackRateChanged(e),Ka(this.i,1<Math.abs(e))))},r.Ue=function(){var e=this.J.pd();this.l==wc&&this.J.set(e),this.l==yc&&(this.J.set(e),this.B.playbackRateChanged(e),Ka(this.i,!1))},r.fb=function(){if(this.H){for(var e=this.i?this.i.h:null,t=[],n=0,r=c(this.H.variants),i=r.next();!i.done;i=r.next())if(Xn(i=i.value)){var o=Bn(i);o.active=i==e,o.active||1==n||null==e||i.video!=e.video||i.audio!=e.audio||(o.active=!0),o.active&&n++,t.push(o)}return t}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(e){return Un(e)}):[]},r.vb=function(){if(this.H){for(var e=this.i?this.i.i:null,t=[],n=c(this.H.textStreams),r=n.next();!r.done;r=n.next()){var i=zn(r=r.value);i.active=r==e,t.push(i)}return t}return this.g&&this.g.src&&this.g.textTracks?ll(this).map(function(e){return qn(e)}):[]},r.ng=function(){return this.H?this.H.imageStreams.map(function(e){return Fn(e)}):[]},r.Fg=function(e,t){var n,r,i,o,a,s,l,c,d,u,h,f,p,m,g,v,b,y,k=this;return I(function(x){return 1==x.g?k.H?(n=k.H.imageStreams.find(function(t){return t.id==e}))?n.segmentIndex?x.D(3):w(x,n.createSegmentIndex(),3):x.return(null):x.D(2):2!=x.g?null==(r=n.segmentIndex.find(t))?x.return(null):(i=n.segmentIndex.get(r),o=i.tilesLayout||n.tilesLayout,(a=/(\d+)x(\d+)/.exec(o))?(s=n.width||0,l=n.height||0,c=parseInt(a[1],10),d=parseInt(a[2],10),u=s/c,h=l/d,f=c*d,p=i.l-i.startTime,m=i.i||p/f,g=i.startTime,b=v=0,1<f&&(y=Math.floor((t-i.startTime)/m),g=i.startTime+y*m,v=y%c*u,b=Math.floor(y/c)*h),x.return({imageHeight:l,imageWidth:s,height:h,positionX:v,positionY:b,startTime:g,duration:m,uris:i.Ma(),width:u})):x.return(null)):x.return(null)})},r.Ae=function(e){if(this.H&&this.i){var t=this.H.textStreams.find(function(t){return t.id==e.id});t&&t!=this.i.i&&(Ys(this.j.h,t,!1),Qa(this.i,t),Tl(this),this.Aa=t.language)}else if(this.g&&this.g.src&&this.g.textTracks){for(var n=(t=c(t=ll(this))).next();!n.done;n=t.next())Hn(n=n.value)==e.id?n.mode=this.ha?"showing":"hidden":n.mode="disabled";Tl(this)}},r.Be=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.H&&this.i){this.m.abr.enabled&&G("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var r=this.H.variants.find(function(t){return t.id==e.id});r&&Xn(r)&&(xl(this,r,!1,t,n),this.sa=new sr(r),wl(this))}else if(this.g&&this.g.audioTracks)for(n=(t=c(t=Array.from(this.g.audioTracks))).next();!n.done;n=t.next())if(Hn(n=n.value)==e.id){Cl(this,n);break}},r.cg=function(){return Hl(this.fb())},r.Eg=function(){return Hl(this.vb())},r.ag=function(){return Array.from(Fl(this.fb()))},r.Dg=function(){return Array.from(Fl(this.vb()))},r.Dd=function(e,t){if(this.H&&this.I){this.sa=new lr(e,t||"",0,"");for(var n=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},r=this.i.h,i=this.sa.create(this.H.variants),o=null,a=(i=c(i.values())).next();!a.done;a=i.next())a=a.value,(!o||n(o,r)>n(a,r))&&(o=a);o?(n=Bn(o),this.Be(n,!0)):kl(this)}else if(this.g&&this.g.audioTracks){for(i=Array.from(this.g.audioTracks),n=He(e),o=r=null,a=(i=c(i)).next();!a.done;a=i.next()){var s=Un(a=a.value);He(s.language)==n&&(r=a,t?s.roles.includes(t)&&(o=a):0==s.roles.length&&(o=a))}o?Cl(this,o):r&&Cl(this,r)}},r.ze=function(e,t,n){if(n=void 0!==n&&n,this.H&&this.I)this.Aa=e,this.ob=t||"",this.cb=n,(e=Wn(this.H.textStreams,this.Aa,this.ob,this.cb)[0]||null)&&e!=this.i.i&&(Ys(this.j.h,e,!1),this.m.streaming.alwaysStreamText||this.Vb())&&(Qa(this.i,e),Tl(this));else{var r=He(e);(e=this.vb().find(function(e){return He(e.language)==r&&(!t||e.roles.includes(t))&&e.forced==n}))&&this.Ae(e)}},r.ih=function(e){if(this.H&&this.I){for(var t=null,n=c(this.H.variants),r=n.next();!r.done;r=n.next())if((r=r.value).audio.label==e){t=r;break}null!=t&&(this.sa=new lr(t.language,"",0,e),kl(this))}},r.Vb=function(){var e=this.ha;return this.M?this.M.s.isTextVisible():this.g&&this.g.src&&this.g.textTracks?ll(this).some(function(e){return"showing"==e.mode}):e},r.hf=function(){return this.g&&this.g.src&&this.g.textTracks?cl(this).map(function(e){return qn(e)}):[]},r.fg=function(e){var t=He(e),n=cl(this).filter(function(e){return He(e.language)==t});if(!n||!n.length)return[];e=[];for(var r=(n=c(n)).next();!r.done;r=n.next())if((r=r.value)&&r.cues)for(var i=(r=c(r.cues)).next();!i.done;i=r.next())i=i.value,e.push({title:i.text,startTime:i.startTime,endTime:i.endTime});return e},r.Je=function(e){if(e=!!e,this.ha!=e){if(this.ha=e,this.l==yc)this.M.s.setTextVisibility(e),this.m.streaming.alwaysStreamText||(e?this.i.i||0<(e=Wn(this.H.textStreams,this.Aa,this.ob,this.cb)).length&&(Qa(this.i,e[0]),Tl(this)):function(e){var t=e.g.get(Ie);t&&(as(t),ss(t).catch(function(){}),e.g.delete(Ie)),e.i=null}(this.i));else if(this.g&&this.g.src&&this.g.textTracks)for(var t=ll(this),n=(t=c(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");Al(this)}},r.yg=function(){if(!this.W())return null;var e=this.ka.l,t=0;if(this.I)t=this.I.l();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.H?new Date(1e3*(this.H.presentationTimeline.j+t)):this.g&&this.g.getStartDate?(e=this.g.getStartDate(),isNaN(e.getTime())?null:new Date(e.getTime()+1e3*t)):null},r.lf=function(){if(!this.W())return null;if(this.H)return new Date(1e3*this.H.presentationTimeline.j);if(this.g&&this.g.getStartDate){var e=this.g.getStartDate();return isNaN(e.getTime())?null:e}return null},r.Ib=function(){if(this.l==yc)return this.M.Ib();var e={total:[],audio:[],video:[],text:[]};return this.l==wc&&(e.total=Zo(this.g.buffered)),e},r.getStats=function(){if(this.l!=yc&&this.l!=wc)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};yl(this);var e=this.g,t=e.currentTime/e.duration;if(!isNaN(t)){var n=this.j;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}e.getVideoPlaybackQuality&&(e=e.getVideoPlaybackQuality(),n=this.j,t=Number(e.totalVideoFrames),n.S=Number(e.droppedVideoFrames),n.P=t,this.j.M=Number(e.corruptedVideoFrames)),e=this.s&&(e=this.s).I?e.I:NaN,this.j.s=e,this.l==yc&&((e=this.i.h)&&(this.j.C=(this.J?this.J.i:1)*e.bandwidth),e&&e.video&&(n=this.j,t=e.video.height||NaN,n.ea=e.video.width||NaN,n.G=t),this.W()&&(e=this.lf().valueOf()+1e3*this.Na().end,this.j.I=(Date.now()-e)/1e3),this.H&&this.H.presentationTimeline&&(this.j.L=this.H.presentationTimeline.g),e=this.B.getBandwidthEstimate(),this.j.B=e);var r=this.j;e=r.ea,n=r.G,t=r.C;for(var i=r.P,o=r.S,a=r.M,s=r.B,l=r.i,d=r.l,u=r.J,h=r.j,f=Zs(r.g,"playing"),p=Zs(r.g,"paused"),m=Zs(r.g,"buffering"),g=r.s,v=r.I,b=r.L,y=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],r=c(e.h),i=r.next();!i.done;i=r.next())n.push(t(i.value));return e.g&&n.push(t(e.g)),n}(r.g),w=[],k=(r=c(r.h.g)).next();!k.done;k=r.next())k=k.value,w.push({timestamp:k.timestamp,id:k.id,type:k.type,fromAdaptation:k.fromAdaptation,bandwidth:k.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:i,droppedFrames:o,corruptedFrames:a,estimatedBandwidth:s,completionPercent:l,loadLatency:d,manifestTimeSeconds:u,drmTimeSeconds:h,playTime:f,pauseTime:p,bufferingTime:m,licenseTime:g,liveLatency:v,maxSegmentDuration:b,stateHistory:y,switchHistory:w}},r.addTextTrack=function(e,t,n,r,i,o,a){if(a=void 0!==a&&a,ke("addTextTrack","Please use an addTextTrackAsync."),this.l!=yc&&this.l!=wc)throw new ye(1,7,7004);if(!r){var s=vi(e);if(!(r=Mc[s]))throw new ye(1,2,2011,s)}if(this.l==wc){if("text/vtt"!=r)throw new ye(1,2,2013,r);if(a&&(n="forced"),(r=document.createElement("track")).src=Ms(this.P,e),r.label=o||"",r.kind=n,r.srclang=t,this.g.getAttribute("crossorigin")||this.g.setAttribute("crossorigin","anonymous"),this.g.appendChild(r),e=this.vb().find(function(e){return e.language==t&&e.label==(o||"")&&e.kind==n}))return El(this),e;throw new ye(1,2,2012)}if(1/0==(s=this.H.presentationTimeline.getDuration()))throw new ye(1,4,4033);if(!ln(nn((e={id:this.se++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ia(0,s,[e]),mimeType:r||"",codecs:i||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:o||null,type:Ie,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!a,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}).mimeType,e.codecs)))throw new ye(2,2,2014,r);return this.H.textStreams.push(e),El(this),zn(e)},r.Rf=function(e,t,n,r,i,o,a){a=void 0!==a&&a;var s,l,c,d,u,h,f,p,m,g=this;return I(function(v){switch(v.g){case 1:if(g.l!=yc&&g.l!=wc)throw new ye(1,7,7004);if(r){v.D(2);break}return w(v,dl(g,e),3);case 3:r=v.h;case 2:if(s=[],g.G)try{s=g.G.getServerSideCuePoints()}catch(b){}if(g.l!=wc){v.D(4);break}return a&&(n="forced"),w(v,ul(g,e,t,n,r,o||"",s),5);case 5:if(l=g.vb(),c=l.find(function(e){return e.language==t&&e.label==(o||"")&&e.kind==n}))return El(g),v.return(c);throw new ye(1,2,2012);case 4:if(d=Ne,1/0==(u=g.H.presentationTimeline.getDuration()))throw new ye(1,4,4033);if(!s.length){v.D(6);break}return w(v,hl(g,e,g.V,g.m.streaming.retryParameters),7);case 7:h=v.h,f=fl(g,h,r,s),p=new Blob([f],{type:"text/vtt"}),e=ca(p),r="text/vtt";case 6:if(m={id:g.se++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ia(0,u,[e]),mimeType:r||"",codecs:i||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:o||null,type:d.ua,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!a,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},!ln(nn(m.mimeType,m.codecs)))throw new ye(2,2,2014,r);return g.H.textStreams.push(m),El(g),v.return(zn(m))}})},r.Qf=function(e,t,n){var r,i,o,a,s,l,d,u=this;return I(function(h){switch(h.g){case 1:if(u.l!=yc&&u.l!=wc)throw new ye(1,7,7004);if(n){h.D(2);break}return w(h,dl(u,e),3);case 3:n=h.h;case 2:if(r=[],u.G)try{r=u.G.getServerSideCuePoints()}catch(f){}return w(h,ul(u,e,t,"chapters",n,"",r),4);case 4:if(i=u.hf(),o=i.find(function(e){return e.language==t})){for(a=cl(u),s=c(a),l=s.next();!l.done;l=s.next())d=l.value,rl(u,d);return h.return(o)}throw new ye(1,2,2012)}})},r.Fe=function(e,t){this.oe.width=e,this.oe.height=t},r.we=function(){if(this.l==yc){var e=this.i;if(e.N.g)e=!1;else if(e.j)e=!1;else{for(var t=c(e.g.values()),n=t.next();!n.done;n=t.next())(n=n.value).Pc&&(n.Pc=!1,os(e,n,.1));e=!0}}else e=!1;return e},r.sg=function(){return G("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.H},r.ug=function(){return this.Eb},r.Ke=function(e){this.Db=e},H("shaka.Player",_s),_s.prototype.setVideoContainer=_s.prototype.Ke,_s.prototype.getManifestParserFactory=_s.prototype.ug,_s.prototype.getManifest=_s.prototype.sg,_s.prototype.retryStreaming=_s.prototype.we,_s.prototype.setMaxHardwareResolution=_s.prototype.Fe,_s.prototype.addChaptersTrack=_s.prototype.Qf,_s.prototype.addTextTrackAsync=_s.prototype.Rf,_s.prototype.addTextTrack=_s.prototype.addTextTrack,_s.prototype.getStats=_s.prototype.getStats,_s.prototype.getBufferedInfo=_s.prototype.Ib,_s.prototype.getPresentationStartTimeAsDate=_s.prototype.lf,_s.prototype.getPlayheadTimeAsDate=_s.prototype.yg,_s.prototype.setTextTrackVisibility=_s.prototype.Je,_s.prototype.getChapters=_s.prototype.fg,_s.prototype.getChaptersTracks=_s.prototype.hf,_s.prototype.isTextTrackVisible=_s.prototype.Vb,_s.prototype.selectVariantsByLabel=_s.prototype.ih,_s.prototype.selectTextLanguage=_s.prototype.ze,_s.prototype.selectAudioLanguage=_s.prototype.Dd,_s.prototype.getTextLanguages=_s.prototype.Dg,_s.prototype.getAudioLanguages=_s.prototype.ag,_s.prototype.getTextLanguagesAndRoles=_s.prototype.Eg,_s.prototype.getAudioLanguagesAndRoles=_s.prototype.cg,_s.prototype.selectVariantTrack=_s.prototype.Be,_s.prototype.selectTextTrack=_s.prototype.Ae,_s.prototype.getThumbnails=_s.prototype.Fg,_s.prototype.getImageTracks=_s.prototype.ng,_s.prototype.getTextTracks=_s.prototype.vb,_s.prototype.getVariantTracks=_s.prototype.fb,_s.prototype.cancelTrickPlay=_s.prototype.Ue,_s.prototype.trickPlay=_s.prototype.Pe,_s.prototype.getPlaybackRate=_s.prototype.Jb,_s.prototype.isBuffering=_s.prototype.Rc,_s.prototype.getKeyStatuses=_s.prototype.qd,_s.prototype.getExpiration=_s.prototype.Lc,_s.prototype.drmInfo=_s.prototype.drmInfo,_s.prototype.keySystem=_s.prototype.keySystem,_s.prototype.goToLive=_s.prototype.Jg,_s.prototype.seekRange=_s.prototype.Na,_s.prototype.isAudioOnly=_s.prototype.pf,_s.prototype.isInProgress=_s.prototype.Tb,_s.prototype.isLive=_s.prototype.W,_s.prototype.getAdManager=_s.prototype.od,_s.prototype.getAssetUri=_s.prototype.Yd,_s.prototype.getNetworkingEngine=_s.prototype.Mc,_s.prototype.getMediaElement=_s.prototype.wg,_s.prototype.getLoadMode=_s.prototype.kf,_s.prototype.resetConfiguration=_s.prototype.gh,_s.prototype.getBufferFullness=_s.prototype.dg,_s.prototype.getConfiguration=_s.prototype.getConfiguration,_s.prototype.configure=_s.prototype.configure,_s.prototype.load=_s.prototype.load,_s.prototype.updateStartTime=_s.prototype.vh,_s.prototype.unload=_s.prototype.Qe,_s.prototype.detach=_s.prototype.detach,_s.prototype.attach=_s.prototype.Hc,_s.probeSupport=function(e){var t,n,r,i,o;return e=void 0===e||e,I(function(a){if(1==a.g)return t={},e?w(a,function(){var e,t,n,r,i,o;return I(function(a){return 1==a.g?(e="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),n=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],r=new Map,i=function(e){var t,i,o;return I(function(a){switch(a.g){case 1:return x(a,2),w(a,navigator.requestMediaKeySystemAccess(e,n),4);case 4:return t=a.h,o=!!(i=t.getConfiguration().sessionTypes)&&i.includes("persistent-license"),kn("Tizen 3")&&(o=!1),r.set(e,{persistentState:o}),w(a,t.createMediaKeys(),5);case 5:S(a,0);break;case 2:E(a),r.set(e,null),k(a)}})},o=e.map(function(e){return i(e)}),w(a,Promise.all(o),2)):a.return(Vr(r))})}(),3):a.D(2);2!=a.g&&(t=a.h);var s={};if(mn()){for(var l in bi)s[l]=!0;for(var d in yi)s[d]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};for(var u=(d=c(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!u.done;u=d.next())s[u=u.value]=mn()?!!bi[u]:gn(u);for(var h in l)s[h]=mn()?!!yi[h]:gn(l[h]);for(n=s,s={},l=(h=c('video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(","))).next();!l.done;l=h.next())s[l=l.value]=mn()?!!ln(l)||MediaSource.isTypeSupported(l)||$t(l):gn(l),s[d=l.split(";")[0]]=s[d]||s[l];for(o in r={manifest:n,media:s,drm:t},i=Cc)r[o]=i[o]();return a.return(r)})},_s.isBrowserSupported=el,_s.setAdManagerFactory=function(e){Sc=e},_s.registerSupportPlugin=function(e,t){Cc[e]=t},_s.prototype.destroy=_s.prototype.destroy;var Xl="abrstatuschanged",Gl="adaptation",Wl="buffering",Jl="downloadfailed",Zl="downloadheadersreceived",Kl="drmsessionupdate",Yl="emsg",Ql="error",_l="expirationupdated",$l="loaded",ec="loading",tc="manifestparsed",nc="mediaqualitychanged",rc="metadata",ic="onstatechange",oc="onstateidle",ac="ratechange",sc="streaming",lc="textchanged",cc="texttrackvisibility",dc="timelineregionadded",uc="timelineregionenter",hc="timelineregionexit",fc="trackschanged",pc="unloading",mc="variantchanged",gc={Ch:Xl,Dh:Gl,Eh:Wl,Ih:Jl,Jh:Zl,Kh:Kl,Rh:Yl,Error:Ql,Sh:_l,Yh:"largegap",Zh:$l,$h:ec,di:tc,ei:nc,Metadata:rc,li:ic,mi:oc,xi:ac,Ei:"sessiondata",Fi:sc,Gi:lc,Hi:cc,Ii:dc,Ji:uc,Ki:hc,Li:fc,Pi:pc,Ri:mc},vc=0,bc=1,yc=2,wc=3;_s.LoadMode={DESTROYED:vc,NOT_LOADED:bc,MEDIA_SOURCE:yc,SRC_EQUALS:wc},_s.version="v3.3.2";var kc=["3","3"];Se=new function(e){this.g=e,this.i=xe,this.h=Ce}(new we(Number(kc[0]),Number(kc[1])));var xc=["output-restricted","internal-error"],Cc={},Sc=null,Ec={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Mc={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Tc(){this.h=[],this.j=this.i=this.g=0}function Ac(e,t){var n=this;this.i=e,this.g=t,this.j=!1,this.l=this.g.getVolume(),this.h=new Dr,this.h.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){n.j=!0}),this.h.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){n.j=!1})}function jc(t,n,r,i){var o=this;this.B=t,this.g=n,this.C=null,this.G=NaN,this.j=i,this.s=null,this.h=new Dr,google.ima.settings.setLocale(r),(t=new google.ima.AdDisplayContainer(this.B,this.g)).initialize(),this.l=new google.ima.AdsLoader(t),this.l.getSettings().setPlayerType("shaka-player"),this.l.getSettings().setPlayerVersion("v3.3.2"),this.i=null,this.h.Qa(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(t){!function(n,r){n.j(new q("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-n.G))),n.i=r.getAdsManager(n.g),n.j(new q("ima-ad-manager-loaded",(new Map).set("imaAdManager",n.i)));var i=n.i.getCuePoints();if(i.length){for(var o=[],a=(i=c(i)).next();!a.done;a=i.next())o.push({start:a.value,end:null});n.j(new q("ad-cue-points-changed",(new Map).set("cuepoints",o)))}!function(e){function t(t,n){var r=(new Map).set("originalEvent",t);e.j(new q(n,r))}e.h.o(e.i,google.ima.AdErrorEvent.Type.AD_ERROR,function(t){Oc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(t){Pc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.STARTED,function(t){Pc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.FIRST_QUARTILE,function(e){t(e,"ad-first-quartile")}),e.h.o(e.i,google.ima.AdEvent.Type.MIDPOINT,function(e){t(e,"ad-midpoint")}),e.h.o(e.i,google.ima.AdEvent.Type.THIRD_QUARTILE,function(e){t(e,"ad-third-quartile")}),e.h.o(e.i,google.ima.AdEvent.Type.COMPLETE,function(e){t(e,"ad-complete")}),e.h.o(e.i,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(t){Lc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(t){Lc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.SKIPPED,function(e){t(e,"ad-skipped")}),e.h.o(e.i,google.ima.AdEvent.Type.VOLUME_CHANGED,function(e){t(e,"ad-volume-changed")}),e.h.o(e.i,google.ima.AdEvent.Type.VOLUME_MUTED,function(e){t(e,"ad-muted")}),e.h.o(e.i,google.ima.AdEvent.Type.PAUSED,function(n){e.s.j=!0,t(n,"ad-paused")}),e.h.o(e.i,google.ima.AdEvent.Type.RESUMED,function(n){e.s.j=!1,t(n,"ad-resumed")}),e.h.o(e.i,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(e){t(e,"ad-skip-state-changed")}),e.h.o(e.i,google.ima.AdEvent.Type.CLICK,function(e){t(e,"ad-clicked")}),e.h.o(e.i,google.ima.AdEvent.Type.AD_PROGRESS,function(e){t(e,"ad-progress")}),e.h.o(e.i,google.ima.AdEvent.Type.AD_BUFFERING,function(e){t(e,"ad-buffering")}),e.h.o(e.i,google.ima.AdEvent.Type.IMPRESSION,function(e){t(e,"ad-impression")}),e.h.o(e.i,google.ima.AdEvent.Type.DURATION_CHANGE,function(e){t(e,"ad-duration-changed")}),e.h.o(e.i,google.ima.AdEvent.Type.USER_CLOSE,function(e){t(e,"ad-closed")}),e.h.o(e.i,google.ima.AdEvent.Type.LOADED,function(e){t(e,"ad-loaded")}),e.h.o(e.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(e){t(e,"all-ads-completed")}),e.h.o(e.i,google.ima.AdEvent.Type.LINEAR_CHANGED,function(e){t(e,"ad-linear-changed")}),e.h.o(e.i,google.ima.AdEvent.Type.AD_METADATA,function(e){t(e,"ad-metadata")}),e.h.o(e.i,google.ima.AdEvent.Type.LOG,function(e){t(e,"ad-recoverable-error")}),e.h.o(e.i,google.ima.AdEvent.Type.AD_BREAK_READY,function(e){t(e,"ad-break-ready")}),e.h.o(e.i,google.ima.AdEvent.Type.INTERACTION,function(e){t(e,"ad-interaction")})}(n);try{n.i.init(n.g.offsetWidth,n.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),n.h.o(n.g,"loadeddata",function(){n.i.resize(n.g.offsetWidth,n.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in e&&(n.C=new ResizeObserver(function(){n.i.resize(n.g.offsetWidth,n.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),n.C.observe(n.g)),n.i.start()}catch(t){Lc(n,null)}}(o,t)}),this.h.o(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(e){Oc(o,e)}),this.g.onended=function(){o.l.contentComplete()}}function Oc(e,t){t.getError(),Lc(e,null),e.j(new q("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function Pc(e,t){var n=t.getAd();e.s=new Ac(n,e.i),n=(new Map).set("ad",e.s).set("sdkAdObject",n).set("originalEvent",t),e.j(new q("ad-started",n)),e.s.isLinear()&&(e.B.setAttribute("ad-active","true"),e.g.pause())}function Lc(e,t){e.j(new q("ad-stopped",(new Map).set("originalEvent",t))),e.s.isLinear()&&(e.B.removeAttribute("ad-active"),e.g.play())}function Ic(e,t){this.i=e,this.h=null,this.g=t}function Nc(e,t,n,r){var i=this;this.C=e,this.g=t,this.l=null,this.M=NaN,this.j=r,this.L=!1,this.G=this.s=this.B=null,this.I="",this.J=[],this.h=new Dr,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.i=new google.ima.dai.api.StreamManager(this.g,this.C,e),this.j(new q("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.i))),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.LOADED,function(e){!function(e,t){e.j(new q("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.M)));var n=t.getStreamData().url;e.l.resolve(n),e.l=null,e.L||e.h.o(e.g,"seeked",function(){var t=e.g.currentTime;if(0!=t){e.i.streamTimeForContentTime(t);var n=e.i.previousCuePointForStreamTime(t);n&&!n.played&&(e.B=t,e.g.currentTime=n.start)}})}(i,e)}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.ERROR,function(){i.I.length?i.l.resolve(i.I):i.l.reject("IMA Stream request returned an error and there was no backup asset uri provided."),i.l=null}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.STARTED,function(e){e=e.getAd(),i.s=new Ic(e,i.g),i.G&&(i.s.h=i.G),i.j(new q("ad-started",(new Map).set("ad",i.s))),i.C.setAttribute("ad-active","true")}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){i.C.removeAttribute("ad-active");var e=i.g.currentTime;i.B&&i.B>e&&(i.g.currentTime=i.B,i.B=null)}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(e){i.G=e.getStreamData().adProgressData,i.s&&(i.s.h=i.G)}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){i.j(new q("ad-first-quartile"))}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){i.j(new q("ad-midpoint"))}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){i.j(new q("ad-third-quartile"))}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){i.j(new q("ad-complete")),i.j(new q("ad-stopped")),i.C.removeAttribute("ad-active"),i.s=null}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){i.j(new q("ad-skipped")),i.j(new q("ad-stopped"))}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(e){var t=e.getStreamData();e=[];for(var n=(t=c(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});i.J=e,i.j(new q("ad-cue-points-changed",(new Map).set("cuepoints",e)))})}function Rc(){$.call(this),this.g=this.h=null,this.j=new Tc,this.i=navigator.language}function Dc(e){return JSON.stringify(e,function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof q){var n={};for(i in t){var r=t[i];r&&"object"==typeof r?"detail"==i&&(n[i]=r):i in Event||(n[i]=r)}return n}if(t instanceof Error){var i=new Set(["name","message","stack"]);for(n in t)i.add(n);for(n=(r=c(Object.getOwnPropertyNames(t))).next();!n.done;n=r.next())i.add(n.value);for(r={},n=(i=c(i)).next();!n.done;n=i.next())r[n=n.value]=t[n];i={__type__:"Error",contents:r}}else if(t instanceof TimeRanges)for(i={__type__:"TimeRanges",length:t.length,start:[],end:[]},r=(n=c(Zo(t))).next();!r.done;r=n.next()){var o=(r=r.value).end;i.start.push(r.start),i.end.push(o)}else i=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return i}})}function Bc(e){return JSON.parse(e,function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){n=t.contents;var r,i=Error(n.message);for(r in n)i[r]=n[r];n=i}else n=t;return n})}(r=Ac.prototype).getDuration=function(){return this.i.getDuration()},r.getMinSuggestedDuration=function(){return this.i.getMinSuggestedDuration()},r.getRemainingTime=function(){return this.g.getRemainingTime()},r.isPaused=function(){return this.j},r.isSkippable=function(){return 0<=this.i.getSkipTimeOffset()},r.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return this.g.getAdSkippableState()},r.skip=function(){return this.g.skip()},r.pause=function(){return this.g.pause()},r.play=function(){return this.g.resume()},r.getVolume=function(){return this.g.getVolume()},r.setVolume=function(e){return this.g.setVolume(e)},r.isMuted=function(){return 0==this.g.getVolume()},r.isLinear=function(){return this.i.isLinear()},r.resize=function(e,t){this.g.resize(e,t,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},r.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},r.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},r.release=function(){this.g=this.i=null},H("shaka.ads.ClientSideAd",Ac),Ac.prototype.release=Ac.prototype.release,Ac.prototype.getPositionInSequence=Ac.prototype.getPositionInSequence,Ac.prototype.getSequenceLength=Ac.prototype.getSequenceLength,Ac.prototype.setMuted=Ac.prototype.setMuted,Ac.prototype.resize=Ac.prototype.resize,Ac.prototype.isLinear=Ac.prototype.isLinear,Ac.prototype.isMuted=Ac.prototype.isMuted,Ac.prototype.setVolume=Ac.prototype.setVolume,Ac.prototype.getVolume=Ac.prototype.getVolume,Ac.prototype.play=Ac.prototype.play,Ac.prototype.pause=Ac.prototype.pause,Ac.prototype.skip=Ac.prototype.skip,Ac.prototype.canSkipNow=Ac.prototype.canSkipNow,Ac.prototype.getTimeUntilSkippable=Ac.prototype.getTimeUntilSkippable,Ac.prototype.isSkippable=Ac.prototype.isSkippable,Ac.prototype.isPaused=Ac.prototype.isPaused,Ac.prototype.getRemainingTime=Ac.prototype.getRemainingTime,Ac.prototype.getMinSuggestedDuration=Ac.prototype.getMinSuggestedDuration,Ac.prototype.getDuration=Ac.prototype.getDuration,jc.prototype.stop=function(){this.i&&this.i.stop(),this.B&&bs(this.B)},jc.prototype.release=function(){this.stop(),this.C&&this.C.disconnect(),this.h&&this.h.release(),this.i&&this.i.destroy(),this.l.destroy()},(r=Ic.prototype).getDuration=function(){return this.h?this.h.duration:-1},r.getMinSuggestedDuration=function(){return this.getDuration()},r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1},r.isPaused=function(){return this.g.paused},r.isSkippable=function(){return this.i.isSkippable()},r.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},r.skip=function(){this.g.currentTime+=this.getRemainingTime()},r.pause=function(){return this.g.pause()},r.play=function(){return this.g.play()},r.getVolume=function(){return this.g.volume},r.setVolume=function(e){this.g.volume=e},r.isMuted=function(){return this.g.muted},r.isLinear=function(){return!0},r.resize=function(){},r.setMuted=function(e){this.g.muted=e},r.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},r.release=function(){this.g=this.h=this.i=null},H("shaka.ads.ServerSideAd",Ic),Ic.prototype.release=Ic.prototype.release,Ic.prototype.getPositionInSequence=Ic.prototype.getPositionInSequence,Ic.prototype.getSequenceLength=Ic.prototype.getSequenceLength,Ic.prototype.setMuted=Ic.prototype.setMuted,Ic.prototype.resize=Ic.prototype.resize,Ic.prototype.isLinear=Ic.prototype.isLinear,Ic.prototype.isMuted=Ic.prototype.isMuted,Ic.prototype.setVolume=Ic.prototype.setVolume,Ic.prototype.getVolume=Ic.prototype.getVolume,Ic.prototype.play=Ic.prototype.play,Ic.prototype.pause=Ic.prototype.pause,Ic.prototype.skip=Ic.prototype.skip,Ic.prototype.canSkipNow=Ic.prototype.canSkipNow,Ic.prototype.getTimeUntilSkippable=Ic.prototype.getTimeUntilSkippable,Ic.prototype.isSkippable=Ic.prototype.isSkippable,Ic.prototype.isPaused=Ic.prototype.isPaused,Ic.prototype.getRemainingTime=Ic.prototype.getRemainingTime,Ic.prototype.getMinSuggestedDuration=Ic.prototype.getMinSuggestedDuration,Ic.prototype.getDuration=Ic.prototype.getDuration,Nc.prototype.stop=function(){this.I="",this.B=null,this.J=[]},Nc.prototype.release=function(){this.stop(),this.h&&this.h.release()},Nc.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.i.onTimedMetadata(t)}},g(Rc,$),(r=Rc.prototype).setLocale=function(e){this.i=e},r.initClientSide=function(t,n){var r=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new ye(2,10,1e4);this.h&&this.h.release(),this.h=new jc(t,n,this.i,function(e){if(e&&e.type)switch(e.type){case"ads-loaded":r.j.h.push(e.loadTime);break;case"ad-started":r.j.g++;break;case"ad-complete":r.j.i++;break;case"ad-skipped":r.j.j++}r.dispatchEvent(e)})},r.release=function(){this.h&&(this.h.release(),this.h=null),this.g&&(this.g.release(),this.g=null),$.prototype.release.call(this)},r.onAssetUnload=function(){this.h&&this.h.stop(),this.g&&this.g.stop(),this.dispatchEvent(new q("ad-stopped")),this.j=new Tc},r.requestClientSideAds=function(e){if(!this.h)throw new ye(1,10,10001);var t=this.h;t.G=Date.now()/1e3,t.l.requestAds(e)},r.initServerSide=function(t,n){var r=this;if(!e.google||!google.ima||!google.ima.dai)throw new ye(2,10,10002);this.g&&this.g.release(),this.g=new Nc(t,n,this.i,function(e){if(e&&e.type)switch(e.type){case"ads-loaded":r.j.h.push(e.loadTime);break;case"ad-started":r.j.g++;break;case"ad-complete":r.j.i++;break;case"ad-skipped":r.j.j++}r.dispatchEvent(e)})},r.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new ye(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;(n.mpt||n.mpv)&&G('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v3.3.2";var r=t;return(n=this.g).l?n=Promise.reject(new ye(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.L=!0),n.l=new Dt,n.i.requestStream(e),n.I=r||"",n.M=Date.now()/1e3,n=n.l),n},r.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new ye(1,10,10003);(e.mpt||e.mpv)&&G('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v3.3.2",this.g.i.replaceAdTagParameters(e)},r.getServerSideCuePoints=function(){if(!this.g)throw new ye(1,10,10003);return this.g.J},r.getStats=function(){var e=this.j;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},r.onDashTimedMetadata=function(e){if(this.g&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.g.i.processMetadata(t,n,e.startTime)}},r.onHlsTimedMetadata=function(e,t){this.g&&this.g.i.processMetadata("ID3",e.data,t)},r.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},H("shaka.ads.AdManager",Rc),Rc.prototype.onCueMetadataChange=Rc.prototype.onCueMetadataChange,Rc.prototype.onHlsTimedMetadata=Rc.prototype.onHlsTimedMetadata,Rc.prototype.onDashTimedMetadata=Rc.prototype.onDashTimedMetadata,Rc.prototype.getStats=Rc.prototype.getStats,Rc.prototype.getServerSideCuePoints=Rc.prototype.getServerSideCuePoints,Rc.prototype.replaceServerSideAdTagParameters=Rc.prototype.replaceServerSideAdTagParameters,Rc.prototype.requestServerSideStream=Rc.prototype.requestServerSideStream,Rc.prototype.initServerSide=Rc.prototype.initServerSide,Rc.prototype.requestClientSideAds=Rc.prototype.requestClientSideAds,Rc.prototype.onAssetUnload=Rc.prototype.onAssetUnload,Rc.prototype.release=Rc.prototype.release,Rc.prototype.initClientSide=Rc.prototype.initClientSide,Rc.prototype.setLocale=Rc.prototype.setLocale,Rc.ADS_LOADED="ads-loaded",Rc.AD_STARTED="ad-started",Rc.AD_FIRST_QUARTILE="ad-first-quartile",Rc.AD_MIDPOINT="ad-midpoint",Rc.AD_THIRD_QUARTILE="ad-third-quartile",Rc.AD_COMPLETE="ad-complete",Rc.AD_STOPPED="ad-stopped",Rc.AD_SKIPPED="ad-skipped",Rc.AD_VOLUME_CHANGED="ad-volume-changed",Rc.AD_MUTED="ad-muted",Rc.AD_PAUSED="ad-paused",Rc.AD_RESUMED="ad-resumed",Rc.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",Rc.CUEPOINTS_CHANGED="ad-cue-points-changed",Rc.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",Rc.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",Rc.AD_CLICKED="ad-clicked",Rc.AD_PROGRESS="ad-progress",Rc.AD_BUFFERING="ad-buffering",Rc.AD_IMPRESSION="ad-impression",Rc.AD_DURATION_CHANGED="ad-duration-changed",Rc.AD_CLOSED="ad-closed",Rc.AD_LOADED="ad-loaded",Rc.ALL_ADS_COMPLETED="all-ads-completed",Rc.AD_LINEAR_CHANGED="ad-linear-changed",Rc.AD_METADATA="ad-metadata",Rc.AD_RECOVERABLE_ERROR="ad-recoverable-error",Rc.AD_BREAK_READY="ad-break-ready",Rc.AD_INTERACTION="ad-interaction",Sc=function(){return new Rc};var zc="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Fc="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Hc=["loop","playbackRate"],qc=["pause","play"],Uc={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Vc={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Xc=[["getConfiguration","configure"]],Gc=[["isTextTrackVisible","setTextTrackVisibility"]],Wc="addChaptersTrack addTextTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),Jc=["attach","detach","load","unload"];function Zc(e,t,n,r,i,o){var a=this;this.M=e,this.j=new pn(t),this.$=n,this.G=!1,this.C=r,this.L=i,this.S=o,this.h=this.s=!1,this.ea="",this.B=null,this.I=function(){return $c(a)},this.J=function(e,t){var n=Bc(t);switch(n.type){case"event":var r=n.targetName;n=U(n.event),a.C(r,n);break;case"update":for(var i in r=n.update)for(var o in n=a.g[i]||{},r[i])n[o]=r[i][o];a.G&&(a.$(),a.G=!1);break;case"asyncComplete":if(i=n.id,n=n.error,o=a.i[i],delete a.i[i],o)if(n){for(r in i=new ye(n.severity,n.category,n.code),n)i[r]=n[r];o.reject(i)}else o.resolve()}},this.g={video:{},player:{}},this.P=0,this.i={},this.l=null,od.add(this)}function Kc(e,t,n){id=n,n.addUpdateListener(e.I),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.J),$c(e),td(e,{type:"init",initState:t,appData:e.B}),e.l.resolve()}function Yc(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new ye(2,8,n,t))}function Qc(e,t){var n=e.S();e.l=new Dt,e.G=!0,Kc(e,n,t)}function _c(e){var t=id;t.removeUpdateListener(e.I),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.J)}function $c(e){var t=!!id&&"connected"==id.status;if(e.h&&!t){for(var n in e.L(),e.g)e.g[n]={};ed(e)}e.h=t,e.ea=t?id.receiver.friendlyName:"",e.j.Ga()}function ed(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new ye(1,7,7e3))}}function td(e,t){var n=Dc(t),r=id;try{r.sendMessage("urn:x-cast:com.google.shaka.v2",n,function(){},J)}catch(i){throw n=new ye(2,8,8005,i),r=new q("error",(new Map).set("detail",n)),e.C("player",r),e.ic(),n}}(r=Zc.prototype).destroy=function(){return od.delete(this),ed(this),id&&_c(this),this.j&&(this.j.stop(),this.j=null),this.L=this.C=null,this.h=this.s=!1,this.J=this.I=this.l=this.i=this.g=this.B=null,Promise.resolve()},r.xa=function(){return this.h},r.Bd=function(){return this.ea},r.init=function(){if(this.M.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.s=!0,this.j.Ga();var t=new chrome.cast.SessionRequest(this.M);t=new chrome.cast.ApiConfig(t,function(e){for(var t=c(od),n=t.next();!n.done;n=t.next())Qc(n.value,e)},function(e){for(var t=c(od),n=t.next();!n.done;n=t.next())n=n.value,rd="available"==e,n.j.Ga()},"origin_scoped"),chrome.cast.initialize(t,function(){},function(){}),rd&&this.j.U(nd),(t=id)&&t.status!=chrome.cast.SessionStatus.STOPPED?Qc(this,t):id=null}else e.__onGCastApiAvailable||(e.__onGCastApiAvailable=ad),e.__onGCastApiAvailable!=ad&&G("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")},r.Ce=function(e){this.B=e,this.h&&td(this,{type:"appData",appData:this.B})},r.cast=function(e){var t=this;return I(function(n){if(!t.s)throw new ye(1,8,8e3);if(!rd)throw new ye(1,8,8001);if(t.h)throw new ye(1,8,8002);return t.l=new Dt,chrome.cast.requestSession(function(n){return Kc(t,e,n)},function(e){return Yc(t,e)}),w(n,t.l,0)})},r.ic=function(){if(this.h){if(ed(this),id){_c(this);try{id.stop(function(){},function(){})}catch(Dy){}id=null}$c(this)}},r.get=function(e,t){var n=this;if("video"==e){if(qc.includes(t))return function(r){for(var i=[],o=0;o<arguments.length;++o)i[o]=arguments[o];return n.xf.apply(n,[e,t].concat(d(i)))}}else if("player"==e){if(Vc[t]&&!this.get("player","isLive")())return function(){};if(Wc.includes(t))return function(r){for(var i=[],o=0;o<arguments.length;++o)i[o]=arguments[o];return n.xf.apply(n,[e,t].concat(d(i)))};if(Jc.includes(t))return function(r){for(var i=[],o=0;o<arguments.length;++o)i[o]=arguments[o];return n.dh.apply(n,[e,t].concat(d(i)))};if(Uc[t])return function(){return n.g[e][t]}}return this.g[e][t]},r.set=function(e,t,n){this.g[e][t]=n,td(this,{type:"set",targetName:e,property:t,value:n})},r.xf=function(e,t,n){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];td(this,{type:"call",targetName:e,methodName:t,args:r})},r.dh=function(e,t,n){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];i=new Dt;var o=this.P.toString();this.P++,this.i[o]=i;try{td(this,{type:"asyncCall",targetName:e,methodName:t,args:r,id:o})}catch(a){i.reject(a)}return i};var nd=.02,rd=!1,id=null,od=new Set;function ad(e){if(e)for(var t=(e=c(od)).next();!t.done;t=e.next())t.value.init()}function sd(e,t,n){$.call(this);var r=this;this.j=e,this.i=t,this.h=this.B=this.l=this.C=this.s=null,this.I=n,this.G=new Map,this.g=new Zc(n,function(){return dd(r)},function(){return ud(r)},function(e,t){return pd(r,e,t)},function(){return hd(r)},function(){return cd(r)}),function(e){e.g.init(),e.h=new Dr;for(var t=c(zc),n=t.next();!n.done;n=t.next())e.h.o(e.j,n.value,function(t){e.g.xa()||(t=U(t),e.l.dispatchEvent(t))});for(var r in gc)e.h.o(e.i,gc[r],function(t){e.g.xa()||e.B.dispatchEvent(t)});for(var i in e.s={},t={},e.j)t.zc=i,Object.defineProperty(e.s,t.zc,{configurable:!1,enumerable:!0,get:function(t){return function(){return fd(e,t.zc)}}(t),set:function(t){return function(n){var r=t.zc;e.g.xa()?e.g.set("video",r,n):e.j[r]=n}}(t)}),t={zc:t.zc};e.C={},ld(e,function(t){Object.defineProperty(e.C,t,{configurable:!1,enumerable:!0,get:function(){return function(e,t){if(e.G.has(t)&&(t=e.G.get(t)),"addEventListener"==t)return function(t,n,r){return e.B.addEventListener(t,n,r)};if("removeEventListener"==t)return function(t,n,r){return e.B.removeEventListener(t,n,r)};if("getMediaElement"==t)return function(){return e.s};if("getSharedConfiguration"==t)return e.g.get("player","getConfiguration");if("getNetworkingEngine"==t)return function(){return e.i.Mc()};if("getDrmEngine"==t)return function(){return e.i.s};if("getAdManager"==t)return function(){return e.i.od()};if("setVideoContainer"==t)return function(t){return e.i.Ke(t)};if(e.g.xa()){if("getManifest"==t||"drmInfo"==t)return function(){return G(t+"() does not work while casting!"),null};if("attach"==t||"detach"==t)return function(){return G(t+"() does not work while casting!"),Promise.resolve()}}return e.g.xa()&&0==Object.keys(e.g.g.video).length&&Uc[t]||!e.g.xa()?e.i[t].bind(e.i):e.g.get("player",t)}(e,t)}})}),function(e){var t=new Map;ld(e,function(n,r){if(t.has(r)){var i=t.get(r);n.length<i.length?e.G.set(n,i):e.G.set(i,n)}else t.set(r,n)})}(e),e.l=new $,e.l.hd=e.s,e.B=new $,e.B.hd=e.C}(this)}function ld(e,t){function n(e){return"constructor"!=e&&"function"==typeof r[e]&&!i.has(e)}var r=e.i,i=new Set;for(o in r)n(o)&&(i.add(o),t(o,r[o]));for(var o=Object.getPrototypeOf(r),a=Object.getPrototypeOf({});o&&o!=a;){for(var s=c(Object.getOwnPropertyNames(o)),l=s.next();!l.done;l=s.next())n(l=l.value)&&(i.add(l),t(l,r[l]));o=Object.getPrototypeOf(o)}}function cd(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.i.Yd(),startTime:null};e.j.pause();for(var n=c(Hc),r=n.next();!r.done;r=n.next())r=r.value,t.video[r]=e.j[r];for(e.j.ended||(t.startTime=e.j.currentTime),r=(n=c(Xc)).next();!r.done;r=n.next()){var i=r.value;r=i[1],i=e.i[i[0]](),t.player[r]=i}for(r=(n=c(Gc)).next();!r.done;r=n.next())r=(i=r.value)[1],i=e.i[i[0]](),t.playerAfterLoad[r]=i;return t}function dd(e){var t=new q("caststatuschanged");e.dispatchEvent(t)}function ud(e){var t=new q(e.s.paused?"pause":"play");e.l.dispatchEvent(t)}function hd(e){for(var t=c(Xc),n=t.next();!n.done;n=t.next()){var r=n.value;n=r[1],r=e.g.get("player",r[0])(),e.i[n](r)}var i=e.g.get("player","getAssetUri")();n=e.g.get("video","ended"),t=Promise.resolve();var o=e.j.autoplay;r=null,n||(r=e.g.get("video","currentTime")),i&&(e.j.autoplay=!1,t=e.i.load(i,r));var a={};for(r=(n=c(Hc)).next();!r.done;r=n.next())r=r.value,a[r]=e.g.get("video",r);t.then(function(){if(e.j){for(var t=c(Hc),n=t.next();!n.done;n=t.next())n=n.value,e.j[n]=a[n];for(n=(t=c(Gc)).next();!n.done;n=t.next()){var r=n.value;n=r[1],r=e.g.get("player",r[0])(),e.i[n](r)}e.j.autoplay=o,i&&e.j.play()}},function(t){t=(new Map).set("detail",t),t=new q(Ql,t),e.i.dispatchEvent(t)})}function fd(e,t){if("addEventListener"==t)return function(t,n,r){return e.l.addEventListener(t,n,r)};if("removeEventListener"==t)return function(t,n,r){return e.l.removeEventListener(t,n,r)};if(e.g.xa()&&0==Object.keys(e.g.g.video).length){var n=e.j[t];if("function"!=typeof n)return n}return e.g.xa()?e.g.get("video",t):("function"==typeof(n=e.j[t])&&(n=n.bind(e.j)),n)}function pd(e,t,n){e.g.xa()&&("video"==t?e.l.dispatchEvent(n):"player"==t&&e.B.dispatchEvent(n))}function md(e,t,n,r){$.call(this);var i=this;this.g=e,this.i=t,this.h=new Dr,this.P={video:e,player:t},this.J=n||function(){},this.S=r||function(e){return e},this.j=null,this.L=!1,this.B=!0,this.s=0,this.I=!1,this.G=!0,this.C=this.l=null,this.M=new pn(function(){yd(i)}),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return gd(e)},t.onSenderDisconnected=function(){return gd(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&Cd(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),Cd(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.C=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.C.onMessage=function(t){return function(e,t){var n=Bc(t.data);switch(n.type){case"PLAY":e.g.play(),Sd(e);break;case"PAUSE":e.g.pause(),Sd(e);break;case"SEEK":var r=n.currentTime,i=n.resumeState;null!=r&&(e.g.currentTime=Number(r)),i&&"PLAYBACK_START"==i?(e.g.play(),Sd(e)):i&&"PLAYBACK_PAUSE"==i&&(e.g.pause(),Sd(e));break;case"STOP":e.i.Qe().then(function(){e.i&&Sd(e)});break;case"GET_STATUS":kd(e,Number(n.requestId));break;case"VOLUME":r=(i=n.volume).level,i=i.muted;var o=e.g.volume,a=e.g.muted;null!=r&&(e.g.volume=Number(r)),null!=i&&(e.g.muted=i),o==e.g.volume&&a==e.g.muted||Sd(e);break;case"LOAD":e.s=0,e.I=!1,e.G=!1,r=n.media,i=n.currentTime,o=e.S(r.contentId),a=n.autoplay||!0,e.J(r.customData),a&&(e.g.autoplay=!0),e.i.load(o,i).then(function(){e.i&&kd(e)}).catch(function(t){var r="LOAD_FAILED";7==t.category&&7e3==t.code&&(r="LOAD_CANCELLED"),Cd(e,{requestId:Number(n.requestId),type:r},e.C)});break;default:Cd(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.C)}}(e,t)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n=Bc(t.data);switch(n.type){case"init":e.s=0,e.I=!1,e.G=!0,function(e,t,n){var r,i,o,a,s,l,c,d,u,h,f;I(function(p){switch(p.g){case 1:for(r in t.player)i=t.player[r],e.i[r](i);return e.J(n),o=e.g.autoplay,t.manifest?(e.g.autoplay=!1,x(p,5),w(p,e.i.load(t.manifest,t.startTime),7)):w(p,Promise.resolve(),3);case 7:S(p,3);break;case 5:return a=E(p),s=Ql,l=(new Map).set("detail",a),c=new q(s,l),e.i&&e.i.dispatchEvent(c),p.return();case 3:if(!e.i)return p.return();for(d in t.video)u=t.video[d],e.g[d]=u;for(h in t.playerAfterLoad)f=t.playerAfterLoad[h],e.i[h](f);e.g.autoplay=o,t.manifest&&(e.g.play(),Sd(e)),k(p)}})}(e,n.initState,n.appData),yd(e);break;case"appData":e.J(n.appData);break;case"set":var r=n.targetName,i=n.property;if(n=n.value,"video"==r){var o=cast.receiver.CastReceiverManager.getInstance();if("volume"==i){o.setSystemVolumeLevel(n);break}if("muted"==i){o.setSystemVolumeMuted(n);break}}e.P[r][i]=n;break;case"call":(r=e.P[n.targetName])[n.methodName].apply(r,n.args);break;case"asyncCall":r=n.targetName,i=n.methodName,"player"==r&&"load"==i&&(e.s=0,e.I=!1);var a=n.id,s=t.senderId;n=(o=e.P[r])[i].apply(o,n.args),"player"==r&&"load"==i&&(n=n.then(function(){e.G=!0})),n.then(function(){return xd(e,s,a,null)},function(t){return xd(e,s,a,t)})}}(e,t)},t.start();for(var n=(t=c(zc)).next();!n.done;n=t.next())e.h.o(e.g,n.value,function(t){return bd(e,"video",t)});for(var r in gc)e.h.o(e.i,gc[r],function(t){return bd(e,"player",t)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.i.Fe(3840,2160):e.i.Fe(1920,1080),e.h.o(e.g,"loadeddata",function(){e.I=!0}),e.h.o(e.i,"loading",function(){e.B=!1,vd(e)}),e.h.o(e.g,"playing",function(){e.B=!1,vd(e)}),e.h.o(e.g,"pause",function(){vd(e)}),e.h.o(e.i,"unloading",function(){e.B=!0,vd(e)}),e.h.o(e.g,"ended",function(){new pn(function(){e.g&&e.g.ended&&(e.B=!0,vd(e))}).U(Md)})}(this)}function gd(e){e.s=0,e.G=!0,e.L=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,vd(e)}function vd(e){var t;I(function(n){return 1==n.g?w(n,Promise.resolve(),2):e.i?(t=new q("caststatuschanged"),e.dispatchEvent(t),wd(e)||Sd(e),void k(n)):n.return()})}function bd(e,t,n){e.i&&(yd(e),Cd(e,{type:"event",targetName:t,event:n},e.l))}function yd(e){e.M.U(Ed);for(var t={video:{},player:{}},n=c(Fc),r=n.next();!r.done;r=n.next())r=r.value,t.video[r]=e.g[r];if(e.i.W())for(var i in Vc)0==e.s%Vc[i]&&(t.player[i]=e.i[i]());for(var o in Uc)0==e.s%Uc[o]&&(t.player[o]=e.i[o]());(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),e.I&&(e.s+=1),Cd(e,{type:"update",update:t},e.l),wd(e)}function wd(e){return!(!e.G||!e.g.duration&&!e.i.W()||(kd(e),e.G=!1,0))}function kd(e,t){var n={contentId:e.i.Yd(),streamType:e.i.W()?"LIVE":"BUFFERED",contentType:""};e.i.W()||(n.duration=e.g.duration),e.j&&(n.metadata=e.j),Sd(e,void 0===t?0:t,n)}function xd(e,t,n,r){e.i&&Cd(e,{type:"asyncComplete",id:n,error:r},e.l,t)}function Cd(e,t,n,r){e.L&&(e=Dc(t),r?n.getCastChannel(r).send(e):n.broadcast(e))}function Sd(e,t,n){n=void 0===n?null:n;var r={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.B?Td:e.i.Rc()?jd:e.g.paused?Od:Ad,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(r.media=n),Cd(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[r]},e.C)}g(sd,$),(r=sd.prototype).destroy=function(e){return e&&this.g.ic(),this.h&&(this.h.release(),this.h=null),e=[],this.i&&(e.push(this.i.destroy()),this.i=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.C=this.s=this.j=null,$.prototype.release.call(this),Promise.all(e)},r.Kb=function(){return this.s},r.lc=function(){return this.C},r.Te=function(){return this.g.s&&rd},r.xa=function(){return this.g.xa()},r.Bd=function(){return this.g.Bd()},r.cast=function(){var e,t=this;return I(function(n){return 1==n.g?(e=cd(t),w(n,t.g.cast(e),2)):t.i?w(n,t.i.Qe(),0):n.return()})},r.Ce=function(e){this.g.Ce(e)},r.Hf=function(){!function(e){if(e.h){var t=e.S();chrome.cast.requestSession(function(n){return Kc(e,t,n)},function(t){return Yc(e,t)})}}(this.g)},r.ic=function(){this.g.ic()},r.Xe=function(e){var t=this;return I(function(n){if(1==n.g)return e==t.I?n.return():(t.I=e,t.g.ic(),w(n,t.g.destroy(),2));t.g=null,t.g=new Zc(e,function(){return dd(t)},function(){return ud(t)},function(e,n){return pd(t,e,n)},function(){return hd(t)},function(){return cd(t)}),t.g.init(),k(n)})},H("shaka.cast.CastProxy",sd),sd.prototype.changeReceiverId=sd.prototype.Xe,sd.prototype.forceDisconnect=sd.prototype.ic,sd.prototype.suggestDisconnect=sd.prototype.Hf,sd.prototype.setAppData=sd.prototype.Ce,sd.prototype.cast=sd.prototype.cast,sd.prototype.receiverName=sd.prototype.Bd,sd.prototype.isCasting=sd.prototype.xa,sd.prototype.canCast=sd.prototype.Te,sd.prototype.getPlayer=sd.prototype.lc,sd.prototype.getVideo=sd.prototype.Kb,sd.prototype.destroy=sd.prototype.destroy,g(md,$),(r=md.prototype).isConnected=function(){return this.L},r.Mg=function(){return this.B},r.lh=function(e){this.j=e},r.Xf=function(){this.j=null},r.mh=function(e){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.j.title=e},r.kh=function(e){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.j.images=[{url:e}]},r.jh=function(e){this.j||(this.j={}),this.j.artist=e,this.j.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},r.destroy=function(){var e,t=this;return I(function(n){if(1==n.g)return t.h&&(t.h.release(),t.h=null),e=[],t.i&&(e.push(t.i.destroy()),t.i=null),t.M&&(t.M.stop(),t.M=null),t.g=null,t.P=null,t.J=null,t.L=!1,t.B=!0,t.l=null,t.C=null,$.prototype.release.call(t),w(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),k(n)})},H("shaka.cast.CastReceiver",md),md.prototype.destroy=md.prototype.destroy,md.prototype.setContentArtist=md.prototype.jh,md.prototype.setContentImage=md.prototype.kh,md.prototype.setContentTitle=md.prototype.mh,md.prototype.clearContentMetadata=md.prototype.Xf,md.prototype.setContentMetadata=md.prototype.lh,md.prototype.isIdle=md.prototype.Mg,md.prototype.isConnected=md.prototype.isConnected;var Ed=.5,Md=5,Td="IDLE",Ad="PLAYING",jd="BUFFERING",Od="PAUSED";function Pd(e){var t=this;this.g=[],this.h=[],this.data=[],(new Ci).box("moov",Si).Z("pssh",function(e){if(!(1<e.version)){var n=Ot(e.reader.X,-12,e.size);if(t.data.push(n),t.g.push(Yt(e.reader.Lb(16))),0<e.version){n=e.reader.T();for(var r=(n=c(ne(n))).next();!r.done;r=n.next())r=Yt(e.reader.Lb(16)),t.h.push(r)}}}).parse(e)}function Ld(e,t){var n=e.length,r=t.length+16+n,i=new Uint8Array(r),o=Pt(i),a=0;return o.setUint32(a,r),a+=4,o.setUint32(a,1886614376),a+=4,o.setUint32(a,0),a+=4,i.set(t,a),a+=t.length,o.setUint32(a,n),i.set(e,a+4),i}function Id(e,t){var n=Rd(e,t);return 1!=n.length?null:n[0]}function Nd(e,t,n){return 1!=(e=Dd(e,t,n)).length?null:e[0]}function Rd(e,t){return Array.from(e.childNodes).filter(function(e){return e instanceof Element&&e.tagName==t})}function Dd(e,t,n){return Array.from(e.childNodes).filter(function(e){return e instanceof Element&&e.localName==n&&e.namespaceURI==t})}function Bd(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function zd(e,t,n){for(var r=(t=c(t)).next();!r.done;r=t.next())if(r=r.value,e.hasAttributeNS(r,n))return e.getAttributeNS(r,n);return null}function Fd(e){return Array.from(e.childNodes).every(Hd)?e.textContent.trim():null}function Hd(e){return e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE}function qd(e,t,n,r){r=void 0===r?null:r;var i=null;return null!=(e=e.getAttribute(t))&&(i=n(e)),null==i?r:i}function Ud(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:Math.floor(e/1e3)):null}function Vd(e){return e&&(e=/^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$/.exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function Xd(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null):null):null}function Gd(e){return 0==(e=Number(e))%1?e:null}function Wd(e){return 0==(e=Number(e))%1&&0<e?e:null}function Jd(e){return 0==(e=Number(e))%1&&0<=e?e:null}function Zd(e){return e=Number(e),isNaN(e)?null:e}function Kd(e){var t;return e=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e),isNaN(e)?null:e}function Yd(e,t){var n=new DOMParser,r=null;try{r=n.parseFromString(e,"text/xml")}catch(i){return null}return!(n=r.documentElement)||n.getElementsByTagName("parsererror").length||r.documentElement.tagName!=t?null:n}function Qd(e,t){try{return Yd(Ft(e),t)}catch(n){return null}}function _d(e,t,n){var r=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())(n=eu(n.value))&&t.push(n);return t}(e),i=null;e=[];var o=[],a=new Set(r.map(function(e){return e.keyId}));if(a.delete(null),1<a.size)throw new ye(2,4,4010);if(t||(o=r.filter(function(e){return"urn:mpeg:dash:mp4protection:2011"!=e.Af||(i=e.init||i,!1)})).length&&(e=function(e,t,n){for(var r=[],i=(t=c(t)).next();!i.done;i=t.next()){var o,a=n[(i=i.value).Af];if(a)o=(o=Nd(i.node,"urn:microsoft:playready","pro"))?[{initData:Ld(o=Zt(o.textContent),new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149])),initDataType:"cenc",keyId:i.keyId}]:null,o=Oe(a,i.init||e||o),(a=nu.get(a))&&(o.licenseServerUri=a(i)),r.push(o)}return r}(i,o,n),0==e.length&&(e=[Oe("",i)])),r.length&&(t||!o.length))for(e=[],n=(t=c(Object.values(n))).next();!n.done;n=t.next())"org.w3.clearkey"!=(n=n.value)&&e.push(Oe(n,i));if(a=Array.from(a)[0]||null)for(n=(t=c(e)).next();!n.done;n=t.next())for(r=(n=c(n.value.initData)).next();!r.done;r=n.next())r.value.keyId=a;return{bf:a,Si:i,drmInfos:e,gf:!0}}function $d(e){return(e=Nd(e.node,"urn:microsoft:playready","pro"))&&(e=function(e){var t=0,n=Pt(e),r=n.getUint32(t,!0);if(r!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){r=n.getUint16(e,!0),e+=2;var i=n.getUint16(e,!0);if(e+=2,1&i||i+e>n.byteLength){n=[];break e}var o=Ot(n,e,i);t.push({type:r,value:o}),e+=i}n=t}return n}(e=Zt(e.textContent)).filter(function(e){return e.type===tu})[0])&&(e=Yd(e=Ht(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=c(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=c(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""}function eu(e){var t=e.getAttribute("schemeIdUri"),n=Bd(e,"urn:mpeg:cenc:2013","default_KID"),r=Dd(e,"urn:mpeg:cenc:2013","pssh").map(Fd);if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new ye(2,4,4009);var i=[];try{i=r.map(function(e){return{initDataType:"cenc",initData:Zt(e),keyId:null}})}catch(o){throw new ye(2,4,4007)}return{node:e,Af:t,keyId:n,init:0<i.length?i:null}}var tu=1,nu=(new Map).set("com.widevine.alpha",function(e){return(e=Nd(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""}).set("com.microsoft.playready",$d).set("com.microsoft.playready.recommendation",$d).set("com.microsoft.playready.software",$d).set("com.microsoft.playready.hardware",$d);function ru(t,n,r,i,o){var a={RepresentationID:n,Number:r,Bandwidth:i,Time:o};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(t,n,r,i){if("$$"==t)return"$";var o=a[n];if(null==o)return t;switch("RepresentationID"==n&&r&&(r=void 0),"Time"==n&&(o=Math.round(o)),i){case void 0:case"d":case"i":case"u":t=o.toString();break;case"o":t=o.toString(8);break;case"x":t=o.toString(16);break;case"X":t=o.toString(16).toUpperCase();break;default:t=o.toString()}return r=e.parseInt(r,10)||1,Array(Math.max(0,r-t.length)+1).join("0")+t})}function iu(e,t){var n=ou(e,t,"timescale"),r=1;n&&(r=Wd(n)||1);var i=ou(e,t,"duration");n=Wd(i||""),"image"==e.O.contentType&&(n=Zd(i||"")),n&&(n/=r);var o=ou(e,t,"startNumber");i=Number(ou(e,t,"presentationTimeOffset"))||0;var a=Jd(o||"");null!=o&&null!=a||(a=1);var s=au(e,t,"SegmentTimeline");if(o=null,s){o=r;var l=e.ba.duration||1/0,d=Rd(s,"S");s=[];for(var u=-i,h=(d=c(re(d))).next();!h.done;h=d.next()){var f=(h=h.value).item,p=h.next,m=qd(f,"t",Jd);h=qd(f,"d",Jd);var g=qd(f,"r",Gd);if(null!=m&&(m-=i),!h)break;if(f=null!=m?m:u,0>(m=g||0))if(p){if(null==(p=qd(p,"t",Jd)))break;if(f>=p)break;m=Math.ceil((p-f)/h)-1}else{if(1/0==l)break;if(f/o>=l)break;m=Math.ceil((l*o-f)/h)-1}for(0<s.length&&f!=u&&(s[s.length-1].end=f/o),m=(p=c(ne(m+1))).next();!m.done;m=p.next())u=f+h,s.push({start:f/o,end:u/o,sh:f}),f=u}o=s}return{timescale:r,Fa:n,yc:a,xb:i/r||0,Re:i,timeline:o}}function ou(e,t,n){return[t(e.O),t(e.Ha),t(e.ya)].filter(Te).map(function(e){return e.getAttribute(n)}).reduce(function(e,t){return e||t})}function au(e,t,n){return[t(e.O),t(e.Ha),t(e.ya)].filter(Te).map(function(e){return Id(e,n)}).reduce(function(e,t){return e||t})}function su(e,t,n,r,i,o){if(o=void 0===o?0:o,Bd(e,"http://www.w3.org/1999/xlink","href")){var a=function(e,t,n,r,i,o){for(var a=Bd(e,"http://www.w3.org/1999/xlink","href"),s=Bd(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",l=c(Array.from(e.attributes)),d=l.next();!d.done;d=l.next())"http://www.w3.org/1999/xlink"==(d=d.value).namespaceURI&&e.removeAttributeNS(d.namespaceURI,d.localName);if(5<=o)return gr(new ye(2,4,4028));if("onLoad"!=s)return gr(new ye(2,4,4027));var u=je([r],[a]);return i.request(0,Tr(u,t)).va(function(r){if(!(r=Qd(r.data,e.tagName)))return gr(new ye(2,4,4001,a));for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);for(;r.childNodes.length;){var s=r.childNodes[0];r.removeChild(s),e.appendChild(s)}for(s=(r=c(Array.from(r.attributes))).next();!s.done;s=r.next())e.setAttributeNode(s.value.cloneNode(!1));return su(e,t,n,u[0],i,o+1)})}(e,t,n,r,i,o);return n&&(a=a.va(void 0,function(){return su(e,t,n,r,i,o)})),a}a=[];for(var s=c(Array.from(e.childNodes)),l=s.next();!l.done;l=s.next())(l=l.value)instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Bd(l,"http://www.w3.org/1999/xlink","href")?e.removeChild(l):"SegmentTimeline"!=l.tagName&&a.push(su(l,t,n,r,i,o)));return wr(a).va(function(){return e})}function lu(e,t,n,r,i,o,a){var s,l=(new Ci).Z("sidx",function(e){s=function(e,t,n,r,i,o,a){var s=[];a.reader.skip(4);var l=a.reader.T();if(0==l)throw new ye(2,3,3005);if(0==a.version)var d=a.reader.T(),u=a.reader.T();else d=a.reader.xc(),u=a.reader.xc();a.reader.skip(2);var h=a.reader.wc();for(e=e+a.size+u,h=c(ne(h)),u=h.next();!u.done;u=h.next()){var f=a.reader.T();u=(2147483648&f)>>>31,f&=2147483647;var p=a.reader.T();if(a.reader.skip(4),1==u)throw new ye(2,3,3006);s.push(new ua(d/l+n,(d+p)/l+n,function(){return o},e,e+f-1,t,n,r,i)),d+=p,e+=f}return a.parser.stop(),s}(t,r,i,o,a,n,e)});if(e&&l.parse(e),s)return s;throw new ye(2,3,3004)}function cu(e){this.h=Pt(e),this.g=new wi(this.h,0)}function du(e){var t=uu(e);if(7<t.length)throw new ye(2,3,3002);for(var n=0,r=(t=c(t)).next();!r.done;r=t.next())n=256*n+r.value;t=uu(e);e:{for(var i=(r=c(hu)).next();!i.done;i=r.next())if(Tt(t,new Uint8Array(i.value))){r=!0;break e}r=!1}if(r)t=e.h.byteLength-e.g.qa();else{if(8==t.length&&224&t[1])throw new ye(2,3,3001);r=0;for(var o=(i=c(re(t))).next();!o.done;o=i.next()){var a=(o=o.value).item;r=0==o.wa?a&(1<<8-t.length)-1:256*r+a}t=r}return t=e.g.qa()+t<=e.h.byteLength?t:e.h.byteLength-e.g.qa(),r=Pt(e.h,e.g.qa(),t),e.g.skip(t),new fu(n,r)}function uu(e){var t=e.g.qa(),n=e.g.ra();if(0==n)throw new ye(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),Ot(e.h,t,n)}cu.prototype.Ia=function(){return this.g.Ia()};var hu=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function fu(e,t){this.id=e,this.g=t}function pu(e){if(8<e.g.byteLength)throw new ye(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new ye(2,3,3001);for(var t=0,n=c(ne(e.g.byteLength)),r=n.next();!r.done;r=n.next())t=256*t+(r=e.g.getUint8(r.value));return t}function mu(e){var t=new cu(e.g);if(179!=(e=du(t)).id)throw new ye(2,3,3013);if(e=pu(e),183!=(t=du(t)).id)throw new ye(2,3,3012);t=new cu(t.g);for(var n=0;t.Ia();){var r=du(t);if(241==r.id){n=pu(r);break}}return{uh:e,bh:n}}function gu(e,t){var n=au(e,t,"Initialization");if(!n)return null;var r=e.O.Va,i=n.getAttribute("sourceURL");i&&(r=je(e.O.Va,[i])),i=0;var o=null;return(n=qd(n,"range",Xd))&&(i=n.start,o=n.end),new da(function(){return r},i,o,xu(e))}function vu(e,t){var n=Number(ou(e,yu,"presentationTimeOffset"))||0,r=ou(e,yu,"timescale"),i=1;r&&(i=Wd(r)||1);var o=n/i||0,a=gu(e,yu);!function(e,t){if(ku(e,t),!wu(e))throw new ye(2,4,4002)}(e,a);var s=xr(e);return{jc:function(){var e=au(s,yu,"RepresentationIndex"),n=s.O.Va;return e&&(e=e.getAttribute("sourceURL"))&&(n=je(s.O.Va,[e])),e=wu(s),bu(s,t,a,n,e.start,e.end,o)}}}function bu(e,t,n,r,i,o,a){var s,l,c,d,u,h,f,p,m,g,v,b,y,k,x;return I(function(C){if(1==C.g)return s=e.presentationTimeline,l=!e.Fb||!e.ba.rf,c=e.ba.start,d=e.ba.duration,u=e.O.mimeType.split("/")[1],f=null,p=[(h=t)(r,i,o),"webm"==u?h(n.Ma(),n.Ka,n.Da):null],h=null,w(C,Promise.all(p),2);if(m=C.h,g=m[0],v=m[1]||null,y=c-a,k=c,x=d?c+d:1/0,"mp4"==u)var S=lu(g,i,r,n,y,k,x);else{if(440786851!=du(S=new cu(v)).id)throw new ye(2,3,3008);var E=du(S);if(408125543!=E.id)throw new ye(2,3,3009);S=E.g.byteOffset,E=new cu(E.g);for(var M=null;E.Ia();){var T=du(E);if(357149030==T.id){M=T;break}}if(!M)throw new ye(2,3,3010);for(M=new cu(M.g),T=1e6,E=null;M.Ia();){var A=du(M);if(2807729==A.id)T=pu(A);else if(17545==A.id)if(4==A.g.byteLength)E=A.g.getFloat32(0);else{if(8!=A.g.byteLength)throw new ye(2,3,3003);E=A.g.getFloat64(0)}}if(null==E)throw new ye(2,3,3011);if(E*=M=T/1e9,475249515!=(T=du(new cu(g))).id)throw new ye(2,3,3007);S=function(e,t,n,r,i,o,a,s,l){function c(){return i}var d=[];e=new cu(e.g);for(var u=null,h=null;e.Ia();){var f=du(e);if(187==f.id){var p=mu(f);p&&(f=n*p.uh,p=t+p.bh,null!=u&&d.push(new ua(u+a,f+a,c,h,p-1,o,a,s,l)),u=f,h=p)}}return null!=u&&d.push(new ua(u+a,r+a,c,h,null,o,a,s,l)),d}(T,S,M,E,r,n,y,k,x)}return b=S,s.tc(b),f=new La(b),l&&f.Hb(k,x,!0),C.return(f)})}function yu(e){return e.Xc}function wu(e){var t=au(e,yu,"RepresentationIndex");return e=Xd((e=ou(e,yu,"indexRange"))||""),t&&(e=qd(t,"range",Xd,e)),e}function ku(e,t){var n=e.O.mimeType.split("/")[1];if(e.O.contentType!=Ie&&"mp4"!=n&&"webm"!=n)throw new ye(2,4,4006);if("webm"==n&&!t)throw new ye(2,4,4005)}function xu(e){var t=e.O;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.ud,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null}}function Cu(e,t){var n=gu(e,Su),r=function(e){var t=function(e){return[e.O.Mb,e.Ha.Mb,e.ya.Mb].filter(Te).map(function(e){return Rd(e,"SegmentURL")}).reduce(function(e,t){return 0<e.length?e:t}).map(function(t){return t.getAttribute("indexRange")&&!e.nf&&(e.nf=!0),{Sg:t.getAttribute("media"),start:(t=qd(t,"mediaRange",Xd,{start:0,end:null})).start,end:t.end}})}(e),n=(e=iu(e,Su)).yc;0==n&&(n=1);var r=0;return e.Fa?r=e.Fa*(n-1):e.timeline&&0<e.timeline.length&&(r=e.timeline[0].start),{Fa:e.Fa,startTime:r,yc:n,xb:e.xb,timeline:e.timeline,qc:t}}(e);if(!r.Fa&&!r.timeline&&1<r.qc.length)throw new ye(2,4,4002);if(!r.Fa&&!e.ba.duration&&!r.timeline&&1==r.qc.length)throw new ye(2,4,4002);if(r.timeline&&0==r.timeline.length)throw new ye(2,4,4002);var i=null,o=null;e.ya.id&&e.O.id&&(o=t[e.ya.id+","+e.O.id])&&(i=o.segmentIndex);var a=function(e,t,n,r,i){var o=r.qc.length;r.timeline&&r.timeline.length!=r.qc.length&&(o=Math.min(r.timeline.length,r.qc.length));for(var a=e-r.xb,s=t?e+t:1/0,l=[],d=r.startTime,u={},h=(o=c(ne(o))).next();!h.done;u={Nd:u.Nd},h=o.next()){h=h.value;var f=r.qc[h];u.Nd=je(n,[f.Sg]);var p=void 0;p=null!=r.Fa?d+r.Fa:r.timeline?r.timeline[h].end:d+t,l.push(new ua(e+d,e+p,function(e){return function(){return e.Nd}}(u),f.start,f.end,i,a,e,s)),d=p}return l}(e.ba.start,e.ba.duration,e.O.Va,r,n);return n=!i,i?i.sc(a,e.presentationTimeline.ub()):i=new La(a),e.presentationTimeline.tc(a),e.Fb&&e.ba.rf||i.Hb(e.ba.start,e.ba.duration?e.ba.start+e.ba.duration:1/0,n),o&&(o.segmentIndex=i),{jc:function(){return i&&0!=i.R.length||i.rc(a),Promise.resolve(i)}}}function Su(e){return e.Mb}function Eu(e,t,n,r,i,o){var a=function(e){var t=ou(e,Mu,"initialization");if(!t)return null;var n=e.O.id,r=e.bandwidth||null,i=e.O.Va;return new da(function(){var e=ru(t,n,null,r,null);return je(i,[e])},0,null,xu(e))}(e),s=function(e){var t=iu(e,Mu),n=ou(e,Mu,"media");return e=ou(e,Mu,"index"),{Fa:t.Fa,timescale:t.timescale,yc:t.yc,xb:t.xb,Re:t.Re,timeline:t.timeline,je:n,Qc:e}}(e);!function(e){var t=e.Qc?1:0;if(t+=e.timeline?1:0,0==(t+=e.Fa?1:0))throw new ye(2,4,4002);if(1!=t&&(e.Qc&&(e.timeline=null),e.Fa=null),!e.Qc&&!e.je)throw new ye(2,4,4002)}(s);var l=xr(e);if(s.Qc)return ku(e,a),{jc:function(){var e=ru(s.Qc,l.O.id,null,l.bandwidth||null,null);return e=je(l.O.Va,[e]),bu(l,t,a,e,0,null,s.xb)}};if(s.Fa)return r||(e.presentationTimeline.le(s.Fa),e.presentationTimeline.me(e.ba.start)),{jc:function(){return function(e,t,n,r,i){function o(e){var n=(e-p)*f,i=n+t.xb,o=n+d;return n=o+f,(o=new ua(o,Math.min(n,s()),function(){var t=ru(g,b,e,v,i*m);return je(y,[t])},0,null,r,w,d,s())).l=n,o}function a(){var e=[Math.max(l.ub(),d),Math.min(l.Qb(),s())].map(function(e){return e-d});return[Math.ceil(e[0]/f),Math.ceil(e[1]/f)-1].map(function(e){return e+p})}function s(){var e=null!=u&&i[u]||h;return e?d+e:1/0}var l=e.presentationTimeline,d=e.ba.start,u=e.ya.id,h=e.ba.duration,f=t.Fa,p=t.yc,m=t.timescale,g=t.je,v=e.bandwidth||null,b=e.O.id,y=e.O.Va,w=d-t.xb,k=a();e=e.Fb?Math.max(k[0],k[1]-n+1):k[0],k=k[1],n=[];for(var x=e;x<=k;++x){var C=o(x);n.push(C)}var S=new La(n);if(n=l.Qb()<s(),x=l.W(),n||x){var E=Math.max(e,k+1);S.Ed(f,function(){var e=l.ub();S.Ob(e);var t=c(a());t.next(),t=t.next().value;for(var n=[];E<=t;){var r=o(E);n.push(r),E++}return e>s()&&!n.length?null:n})}return Promise.resolve(S)}(l,s,i,a,o)}};var d=null;r=r=null,e.ya.id&&e.O.id&&(r=n[r=e.ya.id+","+e.O.id])&&(d=r.segmentIndex);var u=function(e,t,n){var r=e.ba.start,i=e.ba.duration,o=r-t.xb;i=i?r+i:1/0;for(var a=[],s={},l=c(re(t.timeline)),d=l.next();!d.done;s={Md:s.Md,Qd:s.Qd,Td:s.Td,Jd:s.Jd,Vd:s.Vd,Kd:s.Kd},d=l.next()){var u=(d=d.value).item,h=u.start,f=u.sh;u=u.end,s.Td=d.wa+t.yc,s.Vd=f+t.Re,s.Qd=e.O.id,s.Jd=e.bandwidth||null,s.Md=t.je,s.Kd=e.O.Va,a.push(new ua(r+h,r+u,function(e){return function(){var t=ru(e.Md,e.Qd,e.Td,e.Jd||null,e.Vd);return je(e.Kd,[t]).map(function(e){return e.toString()})}}(s),0,null,n,o,r,i))}return a}(l,s,a);n=e.ba.start;var h=e.ba.duration?e.ba.start+e.ba.duration:1/0,f=1/0!=h;return d?(f&&new La(u).Hb(n,h,!0),d.sc(u,e.presentationTimeline.ub())):d=new La(u),e.presentationTimeline.tc(u),f&&d.Hb(n,h),r&&e.Fb&&(r.segmentIndex=d),{jc:function(){return d&&0!=d.R.length||d.rc(u),Promise.resolve(d)}}}function Mu(e){return e.Yc}function Tu(){this.l=[],this.g=[],this.h=[],this.j=[],this.i=[],this.s=new Set}function Au(e,t,n){var r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,x,C,S,E,M,T,A,j,O,P,L,N,R,D,B;return I(function(I){switch(I.g){case 1:if(r=Ne,function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],r=c((t=t.value).kd),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.channelsCount==s.channelsCount&&i.language==s.language&&i.bandwidth==s.bandwidth&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&it(i.roles,s.roles)&&i.audioSamplingRate==s.audioSamplingRate&&i.primary==s.primary&&(o=!0);o||n.push(i)}t.kd=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],r=c((t=t.value).Gd),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.frameRate==s.frameRate&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&i.label==s.label&&it(i.roles,s.roles)&&Xr(i.closedCaptions,s.closedCaptions)&&i.bandwidth==s.bandwidth&&(o=!0);o||n.push(i)}t.Gd=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],r=c((t=t.value).textStreams),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.language==s.language&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&it(i.roles,s.roles)&&(o=!0);o||n.push(i)}t.textStreams=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],r=c((t=t.value).imageStreams),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&(o=!0);o||n.push(i)}t.imageStreams=n}}(t),!n&&1==t.length){i=t[0],e.g=i.kd,e.h=i.Gd,e.j=i.textStreams,e.i=i.imageStreams,I.D(2);break}for(o=-1,a=c(re(t)),s=a.next();!s.done;s=a.next())l=s.value,d=l.wa,u=l.item,e.s.has(u.id)||(e.s.add(u.id),-1==o&&(o=d));if(-1==o)return I.return();for(h=t.map(function(e){return e.kd}),f=t.map(function(e){return e.Gd}),p=t.map(function(e){return e.textStreams}),m=t.map(function(e){return e.imageStreams}),g=c(p),v=g.next();!v.done;v=g.next())v.value.push(Ju(r.ua));for(b=c(m),y=b.next();!y.done;y=b.next())y.value.push(Ju(r.Gc));return w(I,Ou(e.g,h,o,Nu,Du),3);case 3:return w(I,Ou(e.h,f,o,Nu,Du),4);case 4:return w(I,Ou(e.j,p,o,Nu,Du),5);case 5:return w(I,Ou(e.i,m,o,Nu,Du),2);case 2:if(x=0,C=[],e.h.length&&e.g.length)for(j=c(e.g),O=j.next();!O.done;O=j.next())for(P=O.value,L=c(e.h),N=L.next();!N.done;N=L.next())R=N.value,D=oi(P.drmInfos,R.drmInfos),P.drmInfos.length&&R.drmInfos.length&&!D.length||(B=x++,C.push({id:B,language:P.language,primary:P.primary,audio:P,video:R,bandwidth:(P.bandwidth||0)+(R.bandwidth||0),drmInfos:D,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(S=e.h.concat(e.g),E=c(S),M=E.next();!M.done;M=E.next())T=M.value,A=x++,C.push({id:A,language:T.language,primary:T.primary,audio:T.type==r.Nb?T:null,video:T.type==r.mb?T:null,bandwidth:T.bandwidth||0,drmInfos:T.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});e.l=C,k(I)}})}function ju(e){var t,n,r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,k,x,C,S,E,M;return I(function(T){switch(T.g){case 1:if(t=Ne,1==e.length)return T.return(e[0]);for(n=e.map(function(e){return e.filter(function(e){return e.type==t.Nb})}),r=e.map(function(e){return e.filter(function(e){return e.type==t.mb})}),i=e.map(function(e){return e.filter(function(e){return e.type==t.ua})}),o=e.map(function(e){return e.filter(function(e){return e.type==t.Gc})}),a=c(i),s=a.next();!s.done;s=a.next())s.value.push(Wu(t.ua));for(l=c(o),d=l.next();!d.done;d=l.next())d.value.push(Wu(t.Gc));return w(T,Ou([],n,0,Ru,Bu),2);case 2:return u=T.h,w(T,Ou([],r,0,Ru,Bu),3);case 3:return h=T.h,w(T,Ou([],i,0,Ru,Bu),4);case 4:return f=T.h,w(T,Ou([],o,0,Ru,Bu),5);case 5:if(p=T.h,m=0,h.length&&u.length)for(y=c(u),k=y.next();!k.done;k=y.next())for(x=k.value,C=c(h),S=C.next();!S.done;S=C.next())E=S.value,M=m++,E.variantIds.push(M),x.variantIds.push(M);else for(g=h.concat(u),v=c(g),b=v.next();!b.done;b=v.next())b.value.variantIds=[m++];return T.return(h.concat(u).concat(f).concat(p))}})}function Ou(e,t,n,r,i){var o,a,s,l,d,u,h,f,p,m,g,v,b,y,k,x,C,S,E,M,T,A;return I(function(j){switch(j.g){case 1:for(o=Ne,a=[],s=c(re(t)),l=s.next();!l.done;l=s.next())d=l.value,u=d.wa,h=d.item,u>=n?a.push(new Set(h)):a.push(new Set);f=c(e),p=f.next();case 2:if(p.done){j.D(4);break}return w(j,function(e,t,n,r,i){return I(function(o){return 1==o.g?(zu(t,e),e.matchedStreams?e.segmentIndex?w(o,Pu(e,n),2):o.D(2):o.return(!1)):(Iu(e,n,r,i),o.return(!0))})}(p.value,t,n,i,a),5);case 5:if(!j.h)throw new ye(2,4,4037);p=f.next(),j.D(2);break;case 4:for(m=c(a),g=m.next();!g.done;g=m.next())for(v=g.value,b=c(v),y=b.next();!y.done;y=b.next())k=y.value,(x=Lu(k,t,r,i,a))&&e.push(x);for(C=c(a),g=C.next();!g.done;g=C.next())for(S=g.value,E={},M=c(S),y=M.next();!y.done;E={Cb:E.Cb},y=M.next())if(E.Cb=y.value,T=E.Cb.type==o.ua&&!E.Cb.language,A=E.Cb.type==o.Gc&&!E.Cb.tilesLayout,!T&&!A&&e.some(function(e){return function(t){return t.mimeType==e.Cb.mimeType&&on(t.codecs)==on(e.Cb.codecs)}}(E)))throw new ye(2,4,4037);return j.return(e)}})}function Pu(e,t){var n,r,i,o,a,s,l,d,u,h;return I(function(f){if(1==f.g){for(n=[],r=e.matchedStreams,i=c(r),o=i.next();!o.done;o=i.next())a=o.value,n.push(a.createSegmentIndex()),a.trickModeVideo&&!a.trickModeVideo.segmentIndex&&n.push(a.trickModeVideo.createSegmentIndex());return w(f,Promise.all(n),2)}if(e.segmentIndex instanceof Ra)for(s=c(re(r)),l=s.next();!l.done;l=s.next())d=l.value,u=d.wa,(h=d.item).segmentIndex&&u>=t&&e.segmentIndex.j.push(h.segmentIndex);k(f)})}function Lu(e,t,n,r,i){var o=n(e);return zu(t,o),o.createSegmentIndex&&(o.createSegmentIndex=function(){return I(function(e){return o.segmentIndex?e.D(0):(o.segmentIndex=new Ra,w(e,Pu(o,0),0))})}),o.matchedStreams?(Iu(o,0,r,i),o):null}function Iu(e,t,n,r){for(var i=c(re(e.matchedStreams)),o=i.next();!o.done;o=i.next()){var a=o.value;if(o=a.wa,a=a.item,o>=t){n(e,a);var s=!0;"audio"==e.type&&0==Ue(e.language,a.language)&&(s=!1),s&&r[o].delete(a)}}}function Nu(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=c(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=null,t.trickModeVideo=null,t}function Ru(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function Du(e,t){var n,r;e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris)))),e.keyIds=(n=e.keyIds,r=t.keyIds,new Set([].concat(d(n),d(r)))),null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||"");var i=oi(e.drmInfos,t.drmInfos);if(t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new ye(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var o=(i=c(t.closedCaptions)).next();!o.done;o=i.next()){var a=c(o.value);o=a.next().value,a=a.next().value,e.closedCaptions.set(o,a)}}t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Nu(t.trickModeVideo),e.trickModeVideo.createSegmentIndex=function(){return e.trickModeVideo.segmentIndex=e.segmentIndex.clone(),Promise.resolve()}),Du(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&Du(e.trickModeVideo,t)}function Bu(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;if(n=new Set([].concat(d(e.keyIds),d(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,d(t.segments)),t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var r=(n=c(t.closedCaptions)).next();!r.done;r=n.next()){var i=c(r.value);r=i.next().value,i=i.next().value,e.closedCaptions.set(r,i)}}}function zu(e,t){for(var n=[],r=c(e),i=r.next();!i.done;i=r.next()){for(var o=t,a={audio:Fu,video:Fu,text:Hu,image:qu}[o.type],s={audio:Uu,video:Vu,text:Xu,image:Gu}[o.type],l=null,d=(i=c(i.value)).next();!d.done;d=i.next())!a(o,d=d.value)||l&&!s(o,l,d)||(l=d);if(!(o=l))return;n.push(o)}t.matchedStreams=n}function Fu(e,t){var n;if(!(n=t.mimeType!=e.mimeType||on(t.codecs)!=on(e.codecs))&&(n=e.drmInfos)){n=e.drmInfos;var r=t.drmInfos;n=!(!n.length||!r.length||0<oi(n,r).length)}return!n}function Hu(e,t){return!!e.language&&(!t.language||0!=Ue(e.language,t.language)&&t.kind==e.kind)}function qu(e){return!!e.tilesLayout}function Uu(e,t,n){if(e.id==n.id)return!0;var r=Ue(e.language,t.language),i=Ue(e.language,n.language);return i>r||!(i<r)&&(!(t.primary||!n.primary)||!(t.primary&&!n.primary)&&(e.roles.length?(r=t.roles.filter(function(t){return e.roles.includes(t)}),(i=n.roles.filter(function(t){return e.roles.includes(t)})).length>r.length||!(i.length<r.length)&&n.roles.length<t.roles.length):!(n.roles.length||!t.roles.length)||!(n.roles.length&&!t.roles.length)&&((r=Zu(e.channelsCount,t.channelsCount,n.channelsCount))==Yu||r!=_u&&((r=Zu(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==Yu||r!=_u&&!(!e.bandwidth||Ku(e.bandwidth,t.bandwidth,n.bandwidth)!=Yu)))))}function Vu(e,t,n){if(e.id==n.id)return!0;var r=Zu(e.width*e.height,t.width*t.height,n.width*n.height);if(r==Yu)return!0;if(r==_u)return!1;if(e.frameRate){if((r=Zu(e.frameRate,t.frameRate,n.frameRate))==Yu)return!0;if(r==_u)return!1}return!(!e.bandwidth||Ku(e.bandwidth,t.bandwidth,n.bandwidth)!=Yu)}function Xu(e,t,n){if(e.id==n.id)return!0;var r=Ue(e.language,t.language),i=Ue(e.language,n.language);if(i>r)return!0;if(i<r)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(e.roles.length){if(r=t.roles.filter(function(t){return e.roles.includes(t)}),(i=n.roles.filter(function(t){return e.roles.includes(t)})).length>r.length)return!0;if(i.length<r.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function Gu(e,t,n){return e.id==n.id||Zu(e.width*e.height,t.width*t.height,n.width*n.height)==Yu}function Wu(e){return{id:0,originalId:"",primary:!1,type:e,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function Ju(e){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new La([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function Zu(e,t,n){if(t==e&&e!=n)return _u;if(n==e&&e!=t)return Yu;if(t>e){if(n<=e||n-e<t-e)return Yu;if(n-e>t-e)return _u}else{if(n>e)return _u;if(e-n<e-t)return Yu;if(e-n>e-t)return _u}return Qu}function Ku(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?Yu:t<e?_u:Qu}Tu.prototype.release=function(){for(var e=c(this.g.concat(this.h,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.g=[],this.h=[],this.j=[],this.i=[],this.l=[]};var Yu=1,Qu=0,_u=-1;function $u(){var e=this;this.F=this.m=null,this.h=[],this.H=null,this.G=1,this.yb={},this.L={},this.g=new Tu,this.C=0,this.I=new _e(5),this.B=new pn(function(){e.Tc()}),this.i=new Cr,this.j=null,this.J=[],this.l=1/0,this.s=!1}function eh(e){var t,n,r,i,o,a,s;return I(function(l){return 1==l.g?(t=Tr(e.h,e.m.retryParameters),n=e.F.networkingEngine,e.F.modifyManifestRequest(t,{format:"d"}),r=Date.now(),i=n.request(0,t),Sr(e.i,i),w(l,i.promise,2)):3!=l.g?(o=l.h,e.F?(o.uri&&!e.h.includes(o.uri)&&e.h.unshift(o.uri),w(l,function(e,t,n){var r,i,o,a;return I(function(s){if(1==s.g){if(!(r=Qd(t,"MPD")))throw new ye(2,4,4001,n);return e.m.dash.disableXlinkProcessing?s.return(th(e,r,n)):(i=e.m.dash.xlinkFailGracefully,o=su(r,e.m.retryParameters,i,n,e.F.networkingEngine),Sr(e.i,o),w(s,o.promise,2))}return a=s.h,s.return(th(e,a,n))})}(e,o.data,o.uri),3)):l.return(0)):(a=Date.now(),s=(a-r)/1e3,$e(e.I,1,s),l.return(s))})}function th(e,t,n){var r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,C,M,T,A,j,O,P,L,N,R,D,B,z;return I(function(F){switch(F.g){case 1:if((r=e.m.dash.manifestPreprocessor)&&r(t),i=[n],0<(o=Rd(t,"Location").map(Fd).filter(Te)).length&&(a=je(i,o),i=e.h=a),s=Rd(t,"BaseURL"),l=s.map(Fd),d=je(i,l),u=0,s&&s.length&&(u=qd(s[0],"availabilityTimeOffset",Zd)||0),h=e.m.dash.ignoreMinBufferTime,f=0,h||(f=qd(t,"minBufferTime",Vd)||0),e.C=qd(t,"minimumUpdatePeriod",Vd,-1),p=qd(t,"availabilityStartTime",Ud),m=qd(t,"timeShiftBufferDepth",Vd),g=e.m.dash.ignoreSuggestedPresentationDelay,v=null,g||(v=qd(t,"suggestedPresentationDelay",Vd)),b=e.m.dash.ignoreMaxSegmentDuration,y=null,b||(y=qd(t,"maxSegmentDuration",Vd)),C=t.getAttribute("type")||"static",e.H)for(M=e.H.presentationTimeline,T=c(Object.values(e.yb)),A=T.next();!A.done;A=T.next())(j=A.value).segmentIndex&&j.segmentIndex.Ob(M.ub());else O=e.m.defaultPresentationDelay||1.5*f,M=new ha(p,null!=v?v:O,e.m.dash.autoCorrectDrift);return M.Zc("static"==C),M.W()&&!isNaN(e.m.availabilityWindowOverride)&&(m=e.m.availabilityWindowOverride),null==m&&(m=1/0),M.Ie(m),P=t.getAttribute("profiles")||"",L={Fb:"static"!=C,presentationTimeline:M,ya:null,ba:null,Ha:null,O:null,bandwidth:0,nf:!1,hc:u,profiles:P.split(",")},N=function(e,t,n,r){var i=qd(r,"mediaPresentationDuration",Vd),o=[],a=0;r=Rd(r,"Period");for(var s=c(re(r)),l=s.next();!l.done;l=s.next()){var d=l.value;l=d.wa;var u=d.item,h=d.next;d=qd(u,"start",Vd,a);var f=u.id,p=qd(u,"duration",Vd),m=null;if(h){var g=qd(h,"start",Vd);null!=g&&(m=g-d)}else null!=i&&(m=i-d);if(null==m&&(m=p),!(null!==e.j&&null!==f&&null!==d&&d<e.j)||e.J.includes(f)||l+1==r.length){if(null!==d&&(null===e.j||d>e.j)&&(e.j=d),a=nh(e,t,n,{start:d,duration:m,node:u,rf:null==m||!h}),o.push(a),t.ya.id&&m&&(e.L[t.ya.id]=m),null==m){a=null;break}a=d+m}}return e.J=o.map(function(e){return e.id}),null!=i?{periods:o,duration:i,df:!1}:{periods:o,duration:a,df:!0}}(e,L,d,t),R=N.duration,D=N.periods,"static"!=C&&N.df||M.ib(R||1/0),e.l&&!e.s&&e.F.isAutoLowLatencyMode()&&(e.F.enableLowLatencyMode(),e.s=e.F.isLowLatencyMode()),e.s?M.Bf(e.l):e.l&&G("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),M.le(y||1),w(F,Au(e.g,D,L.Fb),2);case 2:if(e.H){e.H.variants=e.g.l,e.H.textStreams=e.g.j.slice(),e.H.imageStreams=e.g.i,e.F.filter(e.H),F.D(3);break}if(e.H={presentationTimeline:M,variants:e.g.l,textStreams:e.g.j.slice(),imageStreams:e.g.i,offlineSessionIds:[],minBufferTime:f||0},!M.Kf()){F.D(3);break}return B=Rd(t,"UTCTiming"),w(F,function(e,t,n){var r,i,o,a,s,l,d,u;return I(function(h){switch(h.g){case 1:r=n.map(function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}}),i=e.m.dash.clockSyncUri,!r.length&&i&&r.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:i}),o=c(r),a=o.next();case 2:if(a.done){h.D(4);break}switch(s=a.value,x(h,5),l=s.scheme,d=s.value,l){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return h.D(7);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":return h.D(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return u=Date.parse(d),h.return(isNaN(u)?0:u-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":G("NTP UTCTiming scheme is not supported");break;default:G("Unrecognized scheme in UTCTiming element",l)}h.D(9);break;case 7:return w(h,ah(e,t,d,"HEAD"),10);case 10:return h.return(h.h);case 8:return w(h,ah(e,t,d,"GET"),11);case 11:return h.return(h.h);case 9:S(h,3);break;case 5:E(h);case 3:a=o.next(),h.D(2);break;case 4:return G("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),h.return(0)}})}(e,d,B),5);case 5:if(z=F.h,!e.F)return F.return();M.Cf(z);case 3:e.F.makeTextStreamsForClosedCaptions(e.H),k(F)}})}function nh(e,t,n,r){t.ya=oh(r.node,null,n),t.ba=r,t.ya.hc=t.hc,t.ya.id||(t.ya.id="__shaka_period_"+r.start);var i=Rd(r.node,"EventStream");n=t.presentationTimeline.ub();for(var o=(i=c(i)).next();!o.done;o=i.next())sh(e,r.start,r.duration,o.value,n);if(n=Rd(r.node,"AdaptationSet").map(function(n){return function(e,t,n){function r(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.Ha=oh(n,t.ya,null);var i,o=!1,a=Rd(n,"Role"),s=a.map(function(e){return e.getAttribute("value")}).filter(Te),l=void 0,u=t.Ha.contentType==Ie;u&&(l="subtitle");for(var h=(a=c(a)).next();!h.done;h=a.next()){var f=(h=h.value).getAttribute("schemeIdUri");if(null==f||"urn:mpeg:dash:role:2011"==f)switch(h=h.getAttribute("value"),h){case"main":o=!0;break;case"caption":case"subtitle":l=h}}f=Rd(n,"EssentialProperty"),a=null,h=!1;for(var p=(f=c(f)).next();!p.done;p=f.next()){var m=(p=p.value).getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==m?a=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==m?i=r(parseInt(p.getAttribute("value"),10)):h=!0}for(f=c(f=Rd(n,"SupplementalProperty")),p=f.next();!p.done;p=f.next())"urn:mpeg:mpegB:cicp:TransferCharacteristics"==(p=p.value).getAttribute("schemeIdUri")&&(i=r(parseInt(p.getAttribute("value"),10)));f=Rd(n,"Accessibility");var g=new Map;for(f=c(f),p=f.next();!p.done;p=f.next())if(m=p.value,p=m.getAttribute("schemeIdUri"),m=m.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=m)for(var v=c(m=m.split(";")),b=v.next();!b.done;b=v.next()){var y=b.value,x=b=void 0;y.includes("=")?(b=(y=y.split("="))[0].startsWith("CC")?y[0]:"CC"+y[0],x=y[1]||"und"):(b="CC"+p,2==m.length?p+=2:p++,x=y),g.set(b,He(x))}else g.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=m)for(m=c(m.split(";")),b=m.next();!b.done;b=m.next())b=b.value,y=v=void 0,b.includes("=")?(b=b.split("="),v="svc"+b[0],y=b[1].split(",")[0].split(":").pop()):(v="svc"+p,p++,y=b),g.set(v,He(y));else g.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=m&&(s.push(m),"captions"==m&&(l="caption"));if(h)return null;var C=_d(h=Rd(n,"ContentProtection"),e.m.dash.ignoreDrmInfo,e.m.dash.keySystemsByURI),S=He(n.getAttribute("lang")||"und"),E=n.getAttribute("label");if((h=Rd(n,"Label"))&&h.length&&((h=h[0]).textContent&&(E=h.textContent)),h=Rd(n,"Representation"),n=h.map(function(n){return(n=function(e,t,n,r,i,o,a,s,l,c){if(t.O=oh(c,t.Ha,null),e.l=Math.min(e.l,t.O.hc),!function(e){var t=e.Xc?1:0;return t+=e.Mb?1:0,0==(t+=e.Yc?1:0)?e.contentType==Ie||"application"==e.contentType:(1!=t&&(e.Xc&&(e.Mb=null),e.Yc=null),!0)}(t.O))return null;var d=t.ba.start;t.bandwidth=qd(c,"bandwidth",Wd)||0;var u=t.O.contentType,h=u==Ie||"application"==u;u="image"==u;try{var f=function(t,n,r){return function(e,t,n,r){var i,o,a,s,l;return I(function(c){return 1==c.g?(i=Pr,o=Ja(t,n,r,e.m.retryParameters),a=e.F.networkingEngine,s=a.request(i,o),Sr(e.i,s),w(c,s.promise,2)):(l=c.h,c.return(l.data))})}(e,t,n,r)};if(t.O.Xc)var p=vu(t,f);else if(t.O.Mb)p=Cu(t,e.yb);else if(t.O.Yc)p=Eu(t,f,e.yb,!!e.H,e.m.dash.initialSegmentLimit,e.L);else{var m=t.O.Va,g=t.ba.duration||0;p={jc:function(){return Promise.resolve(Ia(d,g,m))}}}}catch(E){if((h||u)&&4002==E.code)return null;throw E}f=function(e,t,n,r){var i=_d(e,n,r);if(t.gf)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==i.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=i.drmInfos),t.gf=!1;else if(0<i.drmInfos.length&&(t.drmInfos=t.drmInfos.filter(function(e){return i.drmInfos.some(function(t){return t.keySystem==e.keySystem})}),0==t.drmInfos.length))throw new ye(2,4,4008);return i.bf||t.bf}(f=Rd(c,"ContentProtection"),n,e.m.dash.ignoreDrmInfo,e.m.dash.keySystemsByURI),f=new Set(f?[f]:[]);var v=!1;Rd(c,"SupplementalProperty").some(function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.getAttribute("schemeIdUri")&&"JOC"==e.getAttribute("value")})&&(t.O.mimeType="audio/eac3-joc",v=!0);var b,y,x=!1;if(h&&(x=s.includes("forced_subtitle")||s.includes("forced-subtitle")),u&&((c=Rd(c,"EssentialProperty").find(function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.getAttribute("schemeIdUri"))}))&&(b=c.getAttribute("value")),!b))return null;c=t.O.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(c.includes("hvc1.2.4.L153.B0")||c.includes("hev1.2.4.L153.B0"))&&(y="PQ");var C=t.O.id?t.ya.id+","+t.O.id:"",S={id:e.G++,originalId:t.O.id,createSegmentIndex:function(){var n,r;return I(function(i){if(1==i.g)return(n=C&&t.Fb&&e.yb[C]?e.yb[C]:S).segmentIndex?i.D(0):(r=n,w(i,p.jc(),3));r.segmentIndex=i.h,k(i)})},closeSegmentIndex:function(){S.segmentIndex&&(S.segmentIndex.release(),S.segmentIndex=null)},segmentIndex:null,mimeType:t.O.mimeType,codecs:t.O.codecs,frameRate:t.O.frameRate,pixelAspectRatio:t.O.pixelAspectRatio,bandwidth:t.bandwidth,width:t.O.width,height:t.O.height,kind:r,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:f,language:i,label:o,type:t.Ha.contentType,primary:a,trickModeVideo:null,emsgSchemeIdUris:t.O.emsgSchemeIdUris,roles:s,forced:x,channelsCount:t.O.ud,audioSamplingRate:t.O.audioSamplingRate,spatialAudio:v,closedCaptions:l,hdr:y,tilesLayout:b,matchedStreams:[]};return C&&t.Fb&&!e.yb[C]&&(e.yb[C]=S),S}(e,t,C,l,S,E,o,s,g,n))&&(n.hdr=n.hdr||i),n}).filter(function(e){return!!e}),0==n.length){if(a="image"==t.Ha.contentType,e.m.dash.ignoreEmptyAdaptationSet||u||a)return null;throw new ye(2,4,4003)}if(!t.Ha.contentType||"application"==t.Ha.contentType)for(t.Ha.contentType=lh(n[0].mimeType,n[0].codecs),u=c(n),f=u.next();!f.done;f=u.next())f.value.type=t.Ha.contentType;for(u=c(n),f=u.next();!f.done;f=u.next())for(f=f.value,p=c(C.drmInfos),m=p.next();!m.done;m=p.next())(m=m.value).keyIds=m.keyIds&&f.keyIds?new Set([].concat(d(m.keyIds),d(f.keyIds))):m.keyIds||f.keyIds;return u=h.map(function(e){return e.getAttribute("id")}).filter(Te),{id:t.Ha.id||"__fake__"+e.G++,contentType:t.Ha.contentType,language:S,Ti:o,streams:n,drmInfos:C.drmInfos,Oe:a,fh:u}}(e,t,n)}).filter(Te),t.Fb){for(r=[],o=(i=c(n)).next();!o.done;o=i.next())for(var a=(o=c(o.value.fh)).next();!a.done;a=o.next())r.push(a.value);if(r.length!=new Set(r).size)throw new ye(2,4,4018)}for(r=n.filter(function(e){return!e.Oe}),i=(n=c(n=n.filter(function(e){return e.Oe}))).next();!i.done;i=n.next()){o=(i=i.value).Oe.split(" ");for(var s=(a=c(r)).next();!s.done;s=a.next()){var l=s.value;if(o.includes(l.id)){s={};for(var u=(l=c(l.streams)).next();!u.done;s={gd:s.gd},u=l.next())s.gd=u.value,s.gd.trickModeVideo=i.streams.find(function(e){return function(t){return on(e.gd.codecs)==on(t.codecs)}}(s))}}}if(i=e.m.disableAudio?[]:rh(r,"audio"),a=e.m.disableVideo?[]:rh(r,"video"),o=e.m.disableText?[]:rh(r,Ie),n=e.m.disableThumbnails?[]:rh(r,"image"),!a.length&&!i.length)throw new ye(2,4,4004);for(r=[],s=(i=c(i)).next();!s.done;s=i.next())r.push.apply(r,d(s.value.streams));for(i=[],s=(a=c(a)).next();!s.done;s=a.next())i.push.apply(i,d(s.value.streams));for(a=[],s=(o=c(o)).next();!s.done;s=o.next())a.push.apply(a,d(s.value.streams));for(o=[],s=(n=c(n)).next();!s.done;s=n.next())o.push.apply(o,d(s.value.streams));return{id:t.ya.id,kd:r,Gd:i,textStreams:a,imageStreams:o}}function rh(e,t){return e.filter(function(e){return e.contentType==t})}function ih(e,t){0>e.C||e.B.U(Math.max(3,e.C-t,et(e.I)))}function oh(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ud:null,audioSamplingRate:null,hc:0},n=n||t.Va;for(var r=Rd(e,"BaseURL"),i=r.map(Fd),o=e.getAttribute("contentType")||t.contentType,a=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,l=qd(e,"frameRate",Kd)||t.frameRate,d=e.getAttribute("sar")||t.pixelAspectRatio,u=Rd(e,"InbandEventStream"),h=t.emsgSchemeIdUris.slice(),f=(u=c(u)).next();!f.done;f=u.next())f=f.value.getAttribute("schemeIdUri"),h.includes(f)||h.push(f);u=function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(u=Rd(e,"AudioChannelConfiguration"))||t.ud,f=qd(e,"audioSamplingRate",Jd)||t.audioSamplingRate,o||(o=lh(a,s));var p=Id(e,"SegmentBase"),m=Id(e,"SegmentTemplate"),g=p&&qd(p,"availabilityTimeOffset",Zd)||0,v=m&&qd(m,"availabilityTimeOffset",Zd)||0;return r=r&&r.length&&qd(r[0],"availabilityTimeOffset",Zd)||0,r=t.hc+r+g+v,{Va:je(n,i),Xc:p||t.Xc,Mb:Id(e,"SegmentList")||t.Mb,Yc:m||t.Yc,width:qd(e,"width",Jd)||t.width,height:qd(e,"height",Jd)||t.height,contentType:o,mimeType:a,codecs:s,frameRate:l,pixelAspectRatio:d,emsgSchemeIdUris:h,id:e.getAttribute("id"),ud:u,audioSamplingRate:f,hc:r}}function ah(e,t,n,r){var i,o,a,s,l,c;return I(function(d){if(1==d.g)return i=je(t,[n]),(o=Tr(i,e.m.retryParameters)).method=r,a=e.F.networkingEngine.request(4,o),Sr(e.i,a),w(d,a.promise,2);if(s=d.h,"HEAD"==r){if(!s.headers||!s.headers.date)return d.return(0);l=s.headers.date}else l=Ft(s.data);return c=Date.parse(l),isNaN(c)?d.return(0):d.return(c-Date.now())})}function sh(e,t,n,r,i){for(var o=r.getAttribute("schemeIdUri")||"",a=r.getAttribute("value")||"",s=qd(r,"timescale",Jd)||1,l=(r=c(Rd(r,"Event"))).next();!l.done;l=r.next()){var d=qd(l=l.value,"presentationTime",Jd)||0,u=qd(l,"duration",Jd)||0;u=(d=d/s+t)+u/s,null!=n&&(d=Math.min(d,t+n),u=Math.min(u,t+n)),u<i||(l={schemeIdUri:o,value:a,startTime:d,endTime:u,id:l.getAttribute("id")||"",eventElement:l},e.F.onTimelineRegionAdded(l))}}function lh(e,t){return ln(nn(e,t))?Ie:e.split("/")[0]}function ch(e,t,n,r){this.g=e,this.type=t,this.aa=n,this.segments=r||null}function dh(e,t,n,r){this.id=e,this.name=t,this.g=n,this.value=void 0===r?null:r}function uh(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function hh(e,t){var n=e.getAttribute(t);if(!n)throw new ye(2,4,4023,t);return n.value}function fh(e,t,n){n=void 0===n?[]:n,this.aa=t,this.g=e,this.h=n}function ph(e,t){this.name=e,this.value=t}function mh(e,t){return e.filter(function(e){return e.name==t})}function gh(e,t){return e.filter(function(e){return hh(e,"TYPE")==t})}function vh(e,t){var n=mh(e,t);return n.length?n[0]:null}function bh(e,t,n){return n=void 0===n?0:n,(e=vh(e,t))?Number(e.value):n}function yh(e){this.h=e,this.g=0}function wh(e){kh(e,/[ \t]+/gm)}function kh(e,t){t.lastIndex=e.g;var n=t.exec(e.h);return n=null==n?null:{position:n.index,length:n[0].length,results:n},e.g==e.h.length||null==n||n.position!=e.g?null:(e.g+=n.length,n.results)}function xh(e){return e.g==e.h.length?null:(e=kh(e,/[^ \t\n]*/gm))?e[0]:null}function Ch(){this.g=0}function Sh(e,t,n){var r=(t=(t=Ft(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(r[0]))throw new ye(2,4,4015);t=0;for(var i=!0,o=c(r),a=o.next();!a.done;a=o.next())if(a=a.value,/^#(?!EXT)/m.test(a)||i)i=!1;else{if(a=Eh(e.g++,a),--e.g,Mh.includes(a.name)){t=1;break}"EXT-X-STREAM-INF"==a.name&&(i=!0)}o=[],i=!0;for(var s=(a=c(re(r))).next();!s.done;s=a.next()){var l=s.value;s=l.wa;var d=l.item;if(l=l.next,/^#(?!EXT)/m.test(d)||i)i=!1;else{if(d=Eh(e.g++,d),Th.includes(d.name)){if(1!=t)throw new ye(2,4,4017);l=r.splice(s,r.length-s),r=n,i=[],a=[],s=[],d=null;for(var u=(l=c(l)).next();!u.done;u=l.next())u=u.value,/^(#EXT)/.test(u)?(u=Eh(e.g++,u),Mh.includes(u.name)?o.push(u):"EXT-X-MAP"==u.name?d=u:"EXT-X-PART"==u.name?s.push(u):"EXT-X-PRELOAD-HINT"==u.name?"PART"==uh(u,"TYPE")?s.push(u):"MAP"==uh(u,"TYPE")&&(u.name="EXT-X-MAP",d=u):a.push(u)):/^#(?!EXT)/m.test(u)||(u=je([r],[u.trim()])[0],d&&a.push(d),i.push(new fh(u,a,s)),a=[],s=[]);return s.length&&(d&&a.push(d),i.push(new fh("",a,s))),new ch(n,t,o,i)}o.push(d),"EXT-X-STREAM-INF"==d.name&&(d.g.push(new ph("URI",l)),i=!0)}}return new ch(n,t,o)}function Eh(e,t){var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new ye(2,4,4016,t);var r,i=n[1],o=n[2];if(n=[],o){var a;(a=kh(o=new yh(o),/^([^,=]+)(?:,|$)/g))&&(r=a[1]);for(var s=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;a=kh(o,s);)n.push(new ph(a[1],a[2]||a[3])),wh(o)}return new dh(e,i,n,r)}(r=$u.prototype).configure=function(e){this.m=e},r.start=function(e,t){var n,r=this;return I(function(i){if(1==i.g)return r.s=t.isLowLatencyMode(),r.h=[e],r.F=t,w(i,eh(r),2);if(n=i.h,r.F&&ih(r,n),!r.F)throw new ye(2,7,7001);return i.return(r.H)})},r.stop=function(){for(var e=c(Object.values(this.yb)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.g&&this.g.release(),this.m=this.F=null,this.h=[],this.H=null,this.yb={},this.g=null,null!=this.B&&(this.B.stop(),this.B=null),this.i.destroy()},r.update=function(){var e,t=this;return I(function(n){return 1==n.g?(x(n,2),w(n,eh(t),4)):2!=n.g?S(n,0):(e=E(n),t.F&&e?(t.F.onError(e),void k(n)):n.return())})},r.onExpirationUpdated=function(){},r.Tc=function(){var e,t,n=this;return I(function(r){switch(r.g){case 1:return e=0,x(r,2),w(r,eh(n),4);case 4:e=r.h,S(r,3);break;case 2:t=E(r),n.F&&(t.severity=1,n.F.onError(t));case 3:if(!n.F)return r.return();ih(n,e),k(r)}})},H("shaka.dash.DashParser",$u),yi.mpd=function(){return new $u},bi["application/dash+xml"]=function(){return new $u},bi["video/vnd.mpeg.dash.mpd"]=function(){return new $u},dh.prototype.toString=function(){var e="#"+this.name,t=this.g?this.g.map(function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}):[];return this.value&&t.unshift(this.value),0<t.length&&(e+=":"+t.join(",")),e},dh.prototype.getAttribute=function(e){var t=this.g.filter(function(t){return t.name==e});return t.length?t[0]:null};var Mh="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Th="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Ah(){}function jh(e){try{var t=Oh(e);return br({uri:e,vf:e,data:t.data,headers:{"content-type":t.contentType}})}catch(n){return gr(n)}}function Oh(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new ye(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new ye(2,1,1004,t);var r=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=r.split(";"),r=n[0];var i=!1;return 1<n.length&&"base64"==n[n.length-1]&&(i=!0,n.pop()),{data:i?Zt(t):Ut(t),contentType:r}}function Ph(){var e=this;this.m=this.F=null,this.Aa=1,this.l=new Map,this.B=new Map,this.sa=new Set,this.g=new Map,this.h=null,this.M="",this.$=new Ch,this.ka=0,this.C=new pn(function(){e.Tc()}),this.j=_h,this.H=null,this.ia=0,this.I=1/0,this.ea=this.Ca=0,this.G=new Cr,this.S=[],this.L=new Map,this.Ba=!1,this.s=new Map,this.P=null,this.ha=new Map,this.J=new Map,this.i=!1}function Lh(e,t){var n,r,i,o,a,s,l,c,d,u,h,f;return I(function(p){if(1==p.g)return n=tf,r=t.Pf,i=new oe(r),e.i&&t.Uf&&le(i,new ve("_HLS_skip=YES")),w(p,Wh(e,i.toString()),2);if(3!=p.g){if(o=p.h,1!=(a=Sh(e.$,o.data,o.uri)).type)throw new ye(2,4,4017);return s=mh(a.aa,"EXT-X-DEFINE"),l=Ih(e,s),c=t.stream,w(p,Uh(e,t.Fd,a,c.type,c.mimeType,t.ie,l,t.Zf,c.codecs,c.bandwidth),3)}d=p.h,c.segmentIndex.sc(d,e.h.ub()),d.length&&(u=bh(a.aa,"EXT-X-MEDIA-SEQUENCE",0),h=t.ie.get(u),c.segmentIndex.Ob(h)),f=d[d.length-1],vh(a.aa,"EXT-X-ENDLIST")&&(Jh(e,n.Of),e.h.ib(f.endTime)),k(p)})}function Ih(e,t){for(var n=new Map,r=c(t),i=r.next();!i.done;i=r.next()){var o=i.value;i=uh(o,"NAME");var a=uh(o,"VALUE");o=uh(o,"IMPORT"),i&&a&&n.set(i,a),o&&(i=e.l.get(o))&&n.set(o,i)}return n}function Nh(e,t){var n=[];e.m.disableVideo||n.push(e.m.hls.defaultVideoCodec),e.m.disableAudio||n.push(e.m.hls.defaultAudioCodec);var r=uh(t,"CODECS",n.join(",")).split(/\s*,\s*/);n=new Set;for(var i=[],o=(r=c(r)).next();!o.done;o=r.next()){var a=on(o=o.value);n.has(a)||(i.push(o),n.add(a))}return i}function Rh(e){return He(e=uh(e,"LANGUAGE")||"und")}function Dh(e,t){var n,r,i,o,a,s,l,c,d,u,h,f,p;return I(function(m){if(1==m.g){n=hh(t,"GROUP-ID"),r="";var g=hh(t,"TYPE").toLowerCase();return"subtitles"==g&&(g=Ie),(i=g)!=Ie&&n&&e.s.has(n)&&(r=e.s.get(n)),o=Gh(hh(t,"URI"),e.l),e.g.has(o)?m.return(e.g.get(o)):(a=Rh(t),s=uh(t,"NAME"),l=uh(t,"DEFAULT"),c="YES"==l,g="audio"==i&&(g=uh(t,"CHANNELS"))?parseInt(g.split("/")[0],10):null,d=g,g="audio"==i&&!!(g=uh(t,"CHANNELS"))&&g.includes("/JOC"),u=g,h=uh(t,"CHARACTERISTICS"),f=uh(t,"FORCED"),w(m,Bh(e,o,r,i,a,c,s,d,null,h,"YES"==f,u),2))}return p=m.h,e.B.has(n)?e.B.get(n).push(p):e.B.set(n,[p]),null==p?m.return(null):e.g.has(o)?m.return(e.g.get(o)):(e.g.set(o,p),m.return(p))})}function Bh(e,t,n,r,i,o,a,s,l,u,h,f,p){var m,g,v,b,y,k,C,M,T,A,j,O,P,L,N,R,D,B,z,F,H,q,U,V,X,W,J,Z,K,Y,Q,_,$,ee,te,ne,re,ie,ae;return I(function(se){switch(se.g){case 1:return m=je([e.M],[t])[0],w(se,Wh(e,m),2);case 2:if(g=se.h,m=g.uri,1!=(v=Sh(e.$,g.data,m)).type)throw new ye(2,4,4017);if(b=[],v.segments)for(y=c(v.segments),k=y.next();!k.done;k=y.next())C=k.value,M=mh(C.aa,"EXT-X-KEY"),b.push.apply(b,d(M));for(T=!1,A=[],j=new Set,O=c(b),P=O.next();!P.done;P=O.next())if(L=P.value,"NONE"!=(N=hh(L,"METHOD"))){if(T=!0,"AES-128"==N)return e.Ba=!0,se.return(null);if(R=hh(L,"KEYFORMAT"),B=(D=Qh[R])?D(L):null){if(B.keyIds)for(z=c(B.keyIds),F=z.next();!F.done;F=z.next())H=F.value,j.add(H);A.push(B)}}if(T&&!A.length)throw new ye(2,4,4026);return q=mh(v.aa,"EXT-X-DEFINE"),U=Ih(e,q),function(e,t){var n=vh(t.aa,"EXT-X-PLAYLIST-TYPE"),r=vh(t.aa,"EXT-X-ENDLIST");if(r=n&&"VOD"==n.value||r,n=n&&"EVENT"==n.value&&!r,n=!r&&!n,r)Jh(e,_h);else{if(Jh(e,n?ef:$h),!(r=vh(t.aa,"EXT-X-TARGETDURATION")))throw new ye(2,4,4024,"EXT-X-TARGETDURATION");r=Number(r.value),n=vh(t.aa,"EXT-X-PART-INF"),e.i&&n?(e.Ca=Number(hh(n,"PART-TARGET")),e.I=Math.min(e.Ca,e.I),n=vh(t.aa,"EXT-X-SERVER-CONTROL"),e.ea=n?Number(hh(n,"PART-HOLD-BACK")):0):e.I=Math.min(r,e.I),e.ia=Math.max(r,e.ia)}}(e,v),w(se,function(e,t,n,r,i){var o,a,s,l,c,d,u,h,f,p,m;return I(function(g){return 1==g.g?(o=Ne,a=Pr,s=Gh(r.segments[0].g,i),l=new oe(s),c=l.Sa.split(".").pop(),d=Yh[t],(u=d[c])?g.return(u):t==o.ua?n&&"vtt"!=n&&"wvtt"!=n?g.return("application/mp4"):g.return("text/vtt"):t!=o.Gc||n&&"jpeg"!=n?((h=Tr([s],e.m.retryParameters)).method="HEAD",w(g,Zh(e,h,a),2)):g.return("image/jpeg")):(f=g.h,(p=f.headers["content-type"])?g.return(p.split(";")[0]):(m=d.mp4,g.return(m)))})}(e,r,n,v,U),3);case 3:return V=se.h,Kh.includes(V)&&(n=""),X=new Map,W=new Map,x(se,4),w(se,Uh(e,t,v,r,V,X,U,W,n,p),6);case 6:J=se.h,S(se,5);break;case 4:if(4035==(Z=E(se)).code)return G("Skipping unsupported HLS stream",V,t),se.return(null);throw Z;case 5:if(K=J[0].startTime,Y=J[J.length-1].endTime,Q=new La(J),_=r==Ie?"subtitle":void 0,$=[],u)for(ee=c(u.split(",")),te=ee.next();!te.done;te=ee.next())ne=te.value,$.push(ne);return ie=!!(re=vh(v.aa,"EXT-X-SERVER-CONTROL"))&&null!=re.getAttribute("CAN-SKIP-UNTIL"),ae={id:e.Aa++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Q,mimeType:V,codecs:n,kind:_,encrypted:T,drmInfos:A,keyIds:j,language:i,label:a,type:r,primary:o,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:$,forced:h,channelsCount:s,audioSamplingRate:null,spatialAudio:f,closedCaptions:l,hdr:void 0,tilesLayout:void 0},se.return({stream:ae,Fd:t,Pf:m,tf:K,Rg:Y,ie:X,Zf:W,Uf:ie})}})}function zh(e,t,n,r){return(n=vh(n,"EXT-X-MAP"))?(t=[r=Gh(je([t],[hh(n,"URI")])[0],r),uh(n,"BYTERANGE","")].join("-"),e.ha.has(t)||(n=function(e,t){var n=0,r=null,i=uh(t,"BYTERANGE");return i&&(n=i.split("@"),r=Number(n[0]),n=Number(n[1]),r=n+r-1),new da(function(){return[e]},n,r)}(r,n),e.ha.set(t,n)),e.ha.get(t)):null}function Fh(e,t,n,r,i,o,a,s,l){var d=r.aa,u=Gh(r.g,a),h=vh(d,"EXTINF"),f=a=0,p=null,m=[];if(e.i&&r.h.length){e={};for(var g=(r=c(re(r.h))).next();!g.done;e={Od:e.Od},g=r.next()){var v=(g=g.value).wa;g=g.item;var b=0==v?n:m[m.length-1];v=0==v?i:b.endTime;var y=Number(uh(g,"DURATION"));y=v+y;var w=0,k=null;"EXT-X-PRELOAD-HINT"==g.name?w=(b=uh(g,"BYTERANGE-START"))?Number(b):0:(w=(b=c(Hh(b,w=uh(g,"BYTERANGE")))).next().value,k=b.next().value),g=uh(g,"URI"),e.Od=je([s],[g])[0],m.push(new ua(v,y,function(e){return function(){return[e.Od]}}(e),w,k,t,o,0,1/0))}}else if(!h)throw new ye(2,4,4024,"EXTINF");return a=h?i+Number(h.value.split(",")[0]):m[m.length-1].endTime,(s=vh(d,"EXT-X-BYTERANGE"))?(f=(p=c(Hh(n,s.value))).next().value,p=p.next().value):m.length&&(f=m[0].Ka,p=m[m.length-1].Da),n="",s=null,"image"==l&&(n="1x1",l=vh(d,"EXT-X-TILES"))&&(n=hh(l,"LAYOUT"),(l=uh(l,"DURATION"))&&(s=Number(l))),new ua(i,a,function(){return u.length?[u]:[]},f,p,t,o,0,1/0,m,n,s)}function Hh(e,t){var n=0,r=null;return t&&(n=t.split("@"),r=Number(n[0]),r=(n=n[1]?Number(n[1]):e.Da+1)+r-1),[n,r]}function qh(e){if(e.h){for(var t=c(e.S),n=t.next();!n.done;n=t.next())e.h.tc(n.value);e.S=[]}}function Uh(e,t,n,r,i,o,a,s,l,d){var u,h,f,p,m,g,v,b,y,k,x,C,S,E,M,T,A,j,O,P;return I(function(L){switch(L.g){case 1:if(u=n.segments,f=bh(n.aa,"EXT-X-MEDIA-SEQUENCE",0),m=(p=vh(n.aa,"EXT-X-SKIP"))?Number(uh(p,"SKIPPED-SEGMENTS")):0,g=f+m,e.j!=_h&&o.has(g)){v=o.get(g),L.D(2);break}if(null!=e.P){L.D(3);break}return h=zh(e,n.g,u[0].aa,a),b=e,w(L,Xh(e,t,h,i,g,!1,u[0],a,r,l,d),4);case 4:b.P=L.h;case 3:v=e.P;case 2:if(u[0].g.split("/").pop(),y=bh(n.aa,"EXT-X-DISCONTINUITY-SEQUENCE"),e.i&&(s.has(y)||s.set(y,g),m))for(;s.has(y+1)&&s.get(y+1)<g;)y++;k=e.J.get(y)||0,x=[],C=c(re(u)),S=C.next();case 5:if(S.done){L.D(7);break}if(E=S.value,M=E.wa,T=E.item,A=x[x.length-1],j=0==M?v:A.endTime,g=f+m+M,o.set(g,j),h=zh(e,n.g,T.aa,a),!vh(T.aa,"EXT-X-DISCONTINUITY")){L.D(8);break}return y++,s.set(y,g),w(L,function(e,t,n,r,i,o,a,s,l,c,d,u){var h,f;return I(function(p){return 1==p.g?(h=0,e.J.has(t)?(h=e.J.get(t),p.D(2)):w(p,Xh(e,n,r,i,o,!0,a,s,c,d,u),3)):(2!=p.g&&(f=p.h,h=l-f,e.J.set(t,h)),p.return(h))})}(e,y,t,h,i,g,T,a,j,r,l,d),9);case 9:k=L.h;case 8:!e.i&&e.F.isAutoLowLatencyMode()&&(e.F.enableLowLatencyMode(),e.i=e.F.isLowLatencyMode()),O=vh(T.aa,"EXTINF"),e.i||O?(P=Fh(e,h,A,T,j,k,a,n.g,r),x.push(P)):e.i||G("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),S=C.next(),L.D(5);break;case 7:return L.return(x)}})}function Vh(e,t,n,r,i,o){var a,s,l,c,d,u;return I(function(h){switch(h.g){case 1:return a=Pr,s=Ja(t.Ma(),t.Ka,t.Da,e.m.retryParameters),e.F.modifySegmentRequest(s,{type:n,init:t instanceof da,duration:t.endTime-t.startTime,mimeType:r,codecs:i,bandwidth:o}),e.m.hls.useFullSegmentsForStartTime?h.return(Zh(e,s,a)):(l=Ja(t.Ma(),t.Ka,t.Ka+2048-1,e.m.retryParameters),e.F.modifySegmentRequest(l,{type:n,init:t instanceof da,duration:t.endTime-t.startTime,mimeType:r,codecs:i,bandwidth:o}),x(h,2),w(h,Zh(e,l,a),4));case 4:return c=h.h,h.return(c);case 2:if(7001==(d=E(h)).code)throw d;return G("Unable to fetch the starting part of HLS segment! Falling back to a full segment request, which is expensive! Your server should support Range requests and CORS preflights.",l.uris[0]),w(h,Zh(e,s,a),5);case 5:return u=h.h,h.return(u)}})}function Xh(e,t,n,r,i,o,a,s,l,c,d){var u,h,f,p,m,g,v,b;return I(function(y){switch(y.g){case 1:if(u=Fh(e,n,null,a,0,0,s,"",l),e.H&&!o&&(h=e.g.get(t),null!=(f=h.ie.get(i))))return y.return(f);if(r=r.toLowerCase(),Kh.includes(r))throw G("Raw formats are not yet supported. Skipping "+r),new ye(1,4,4035);if("video/webm"==r)throw G("WebM in HLS is not yet supported. Skipping."),new ye(1,4,4035);if("video/mp4"!=r&&"audio/mp4"!=r){y.D(2);break}return p=[Vh(e,u,l,r,c,d)],n&&p.push(Vh(e,n,l,r,c,d)),w(y,Promise.all(p),3);case 3:return m=y.h,g=m[0],v=m[1]||m[0],y.return(function(e,t,n,r){var i=0;if((new Ci).box("moov",Si).box("trak",Si).box("mdia",Si).Z("mdhd",function(e){i=Ho(e.reader,e.version).timescale,e.parser.stop()}).parse(r,!0),!i)throw new ye(2,4,4030,e,t);var o=0,a=!1;if((new Ci).box("moof",Si).box("traf",Si).Z("tfdt",function(e){o=Fo(e.reader,e.version).Xd/i,a=!0,e.parser.stop()}).parse(n,!0),!a)throw new ye(2,4,4030,e,t);return o}(t,g.uri,g.data,v.data));case 2:if("video/mp2t"!=r){y.D(4);break}return w(y,Vh(e,u,l,r,c,d),5);case 5:return b=y.h,y.return(function(e,t,n){function r(){o.seek(a+188),71!=(s=o.ra())&&(o.seek(a+192),s=o.ra()),71!=s&&(o.seek(a+204),s=o.ra()),71!=s&&i(),o.yf(1)}function i(){throw new ye(2,4,4030,e,t)}var o=new wi(n,0),a=0,s=0;for(n=Math.min(o.X.byteLength-188,940);;){if(a=o.qa(),71!=(s=o.ra())){if(0<n){--n;continue}i()}n=0;var l=o.wc();if(8191&~l)if(16384&l){if(0!=(l=(48&o.ra())>>4)&&2!=l||i(),3==l&&(l=o.ra(),o.skip(l)),1==o.T()>>8)return o.skip(3),0!=(n=o.ra()>>6)&&1!=n||i(),0==o.ra()&&i(),(1073741824*((14&(n=o.ra()))>>1)+((65534&(l=o.wc()))<<14|(65534&o.wc())>>1))/9e4;r()}else r();else r()}}(t,b.uri,b.data));case 4:throw new ye(2,4,4030,t)}})}function Gh(e,t){var n=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}"),r=n.match(/{\$\w*}/g);if(r)for(var i=(r=c(r)).next();!i.done;i=r.next()){var o=(i=i.value).slice(2,i.length-1),a=t.get(o);if(!a)throw new ye(2,4,4039,o);n=n.replace(i,a)}return n}function Wh(e,t){var n=Tr([t],e.m.retryParameters);return e.F.modifyManifestRequest(n,{format:"h"}),Zh(e,n,0)}function Jh(e,t){e.j=t,e.h&&e.h.Zc(e.j==_h),e.j!=_h||e.C.stop()}function Zh(e,t,n){if(!e.G)throw new ye(2,7,7001);return t=e.F.networkingEngine.request(n,t),Sr(e.G,t),t.promise}H("shaka.net.DataUriPlugin",Ah),Ah.parse=jh,Mr("data",jh),(r=Ph.prototype).configure=function(e){this.m=e},r.start=function(e,t){var n,r,i=this;return I(function(o){return 1==o.g?(i.F=t,i.i=t.isLowLatencyMode(),w(o,Wh(i,e),2)):3!=o.g?(n=o.h,i.M=n.uri,w(o,function(e,t){var n,r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,C,S,M,T,A,j,O,P,L,N,R,D,B,z,F,H,U,V,X;return I(function(G){switch(G.g){case 1:if(0!=(n=Sh(e.$,t,e.M)).type)throw new ye(2,4,4022);for(r=mh(n.aa,"EXT-X-DEFINE"),function(e,t){for(var n=c(t),r=n.next();!r.done;r=n.next()){var i=r.value;r=uh(i,"NAME"),i=uh(i,"VALUE"),r&&i&&(e.l.has(r)||e.l.set(r,i))}}(e,r),i=mh(n.aa,"EXT-X-MEDIA"),o=mh(n.aa,"EXT-X-STREAM-INF"),a=mh(n.aa,"EXT-X-IMAGE-STREAM-INF"),function(e,t){for(var n=c(t),r=n.next();!r.done;r=n.next()){var i=r.value,o=uh(i,"AUDIO");r=uh(i,"VIDEO");var a=uh(i,"SUBTITLES");if(i=Nh(e,i),a){var s=Le(Ie,i);e.s.set(a,s),rt(i,s)}o&&(a=Pe("audio",i),e.s.set(o,a)),r&&(o=Pe("video",i),e.s.set(r,o))}}(e,o),s=mh(n.aa,"EXT-X-SESSION-DATA"),l=c(s),d=l.next();!d.done;d=l.next())u=d.value,h=uh(u,"DATA-ID"),f=uh(u,"URI"),p=uh(u,"LANGUAGE"),m=uh(u,"VALUE"),g=(new Map).set("id",h),f&&g.set("uri",je([e.M],[f])[0]),p&&g.set("language",p),m&&g.set("value",m),v=new q("sessiondata",g),e.F&&e.F.onEvent(v);return w(G,function(e,t){var n;return I(function(r){return 1==r.g?(t=t.filter(function(e){var t=uh(e,"URI")||"";return"SUBTITLES"!=uh(e,"TYPE")&&""!=t}),t.length?w(r,Dh(e,t[0]),2):r.D(2)):(n=t.slice(1).map(function(t){return Dh(e,t)}),w(r,Promise.all(n),0))})}(e,i),2);case 2:return function(e,t){for(var n=gh(t,"CLOSED-CAPTIONS"),r=(n=c(n)).next();!r.done;r=n.next()){var i=r.value;r=Rh(i);var o=hh(i,"GROUP-ID");i=hh(i,"INSTREAM-ID"),e.L.get(o)||e.L.set(o,new Map),e.L.get(o).set(i,r)}}(e,i),w(G,function(e,t){var n,r,i;return I(function(o){return 1==o.g?(n=t.map(function(t){var n,r,i,o,a,s,l,d;return I(function(u){if(1==u.g)return n=uh(t,"FRAME-RATE"),r=Number(uh(t,"AVERAGE-BANDWIDTH"))||Number(hh(t,"BANDWIDTH")),i=uh(t,"RESOLUTION"),o=c(i?i.split("x"):[null,null]),a=o.next().value,s=o.next().value,l=uh(t,"VIDEO-RANGE"),w(u,function(e,t,n){var r,i,o,a,s,l,d,u,h,f,p,m,g,v;return I(function(b){if(1==b.g)return r=Ne,i=Nh(e,t),o=uh(t,"AUDIO"),a=uh(t,"VIDEO"),l=(s=o||a)&&e.B.has(s)?e.B.get(s):[],d={audio:o?l:[],video:a?l:[]},h=!1,f=hh(t,"URI"),p=d.audio.find(function(e){return e&&e.Fd==f}),m=Le(r.mb,i),(g=Le(r.Nb,i))&&!m?u=r.Nb:!l.length&&g&&m?(u=r.mb,i=[[m,g].join()]):d.audio.length&&p?(u=r.Nb,h=!0):u=d.video.length?r.Nb:r.mb,h?b.D(2):w(b,function(e,t,n,r,i){var o,a,s,l;return I(function(c){if(1==c.g){if(o=Gh(hh(t,"URI"),e.l),e.g.has(o))return c.return(e.g.get(o));var d=uh(t,"CLOSED-CAPTIONS");return a="video"==r&&d&&"NONE"!=d?e.L.get(d):null,s=Pe(r,n),w(c,Bh(e,o,s,r,"und",!1,null,null,a,null,!1,!1,i),2)}return null==(l=c.h)?c.return(null):e.g.has(o)?c.return(e.g.get(o)):(e.g.set(o,l),c.return(l))})}(e,t,i,u,n),3);if(2!=b.g&&(v=b.h),v)d[v.stream.type]=[v];else if(null===v)return b.return(null);return function(e){for(var t=(e=c(e.audio.concat(e.video))).next();!t.done;t=e.next())if(t=t.value){var n=t.stream.codecs.split(",");n=n.filter(function(e){return"mp4a.40.34"!=e}),t.stream.codecs=n.join(",")}}(d),b.return(d)})}(e,t,r),2);if(d=u.h){for(var h=u.return,f=d.audio,p=d.video,m=c(p),g=m.next();!g.done;g=m.next())(g=g.value.stream)&&(g.width=Number(a)||void 0,g.height=Number(s)||void 0,g.frameRate=Number(n)||void 0,g.hdr=l||void 0);for(m=e.m.disableAudio,f.length&&!m||(f=[null]),m=e.m.disableVideo,p.length&&!m||(p=[null]),m=[],g=(f=c(f)).next();!g.done;g=f.next()){g=g.value;for(var v=c(p),b=v.next();!b.done;b=v.next()){var y=b.value;b=g?g.stream:null;var k=y?y.stream:null,x=g?g.stream.drmInfos:null,C=y?y.stream.drmInfos:null;y=(y?y.Fd:"")+" - "+(g?g.Fd:""),b&&k&&x.length&&C.length&&!(0<oi(x,C).length)||e.sa.has(y)||(b={id:e.Aa++,language:b?b.language:"und",primary:!!b&&b.primary||!!k&&k.primary,audio:b,video:k,bandwidth:r,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},m.push(b),e.sa.add(y))}}u=h.call(u,m)}else u=u.return([]);return u})}),w(o,Promise.all(n),2)):(r=o.h,i=(i=r.reduce(Ee,[])).filter(function(e){return null!=e}),o.return(i))})}(e,o),3);case 3:return b=G.h,w(G,function(e,t){var n,r,i,o,a,s,l,d,u,h,f;return I(function(p){if(1==p.g)return n=gh(t,"SUBTITLES"),r=n.map(function(t){var n,r;return I(function(i){if(1==i.g)return e.m.disableText?i.return(null):(x(i,2),w(i,Dh(e,t),4));if(2!=i.g)return n=i.h,i.return(n.stream);if(r=E(i),e.m.hls.ignoreTextStreamFailures)return i.return(null);throw r})}),w(p,Promise.all(r),2);for(i=p.h,o=c(n),a=o.next();!a.done;a=o.next())if(s=a.value,l=hh(s,"GROUP-ID"),(d=e.s.get(l))&&(u=e.B.get(l)))for(h=c(u),f=h.next();!f.done;f=h.next())f.value.stream.codecs=d;return p.return(i.filter(function(e){return e}))})}(e,i),4);case 4:return y=G.h,w(G,function(e,t){var n,r;return I(function(i){return 1==i.g?(n=t.map(function(t){var n,r;return I(function(i){if(1==i.g)return e.m.disableThumbnails?i.return(null):(x(i,2),w(i,function(e,t){var n,r,i,o,a,s,l,c,d,u;return I(function(h){return 1==h.g?(n=Gh(hh(t,"URI"),e.l),r=uh(t,"CODECS","jpeg")||"",e.g.has(n)?h.return(e.g.get(n)):(i=Rh(t),o=uh(t,"NAME"),a=uh(t,"CHARACTERISTICS"),w(h,Bh(e,n,r,"image",i,!1,o,null,null,a,!1,!1),2))):null==(s=h.h)?h.return(null):e.g.has(n)?h.return(e.g.get(n)):((l=uh(t,"RESOLUTION"))&&(c=s.stream.segmentIndex.get(0),(d=c.tilesLayout)&&(s.stream.width=Number(l.split("x")[0])*Number(d.split("x")[0]),s.stream.height=Number(l.split("x")[1])*Number(d.split("x")[1]))),(u=uh(t,"BANDWIDTH"))&&(s.stream.bandwidth=Number(u)),e.g.set(n,s),h.return(s))})}(e,t),4));if(2!=i.g)return n=i.h,i.return(n.stream);if(r=E(i),e.m.hls.ignoreImageStreamFailures)return i.return(null);throw r})}),w(i,Promise.all(n),2)):(r=i.h,i.return(r.filter(function(e){return e})))})}(e,a),5);case 5:if(C=G.h,!e.F)throw new ye(2,7,7001);if(e.Ba&&0==b.length)throw new ye(2,4,4034);for(M=S=1/0,T=c(e.g.values()),A=T.next();!A.done;A=T.next())j=A.value,S=Math.min(S,j.tf),"text"!=j.stream.type&&(M=Math.min(M,j.Rg-j.tf));if(e.j!=_h?(e.h=new ha(0,e.m.defaultPresentationDelay?e.m.defaultPresentationDelay:e.ea?e.ea:3*e.ia),e.h.Zc(!1)):(e.h=new ha(null,0),e.h.Zc(!0)),qh(e),e.j!=_h)e.ka=e.I,O=tf,e.j==O.Se&&(P=e.h.zd,isNaN(e.m.availabilityWindowOverride)||(P=e.m.availabilityWindowOverride),e.h.Ie(P));else for(e.h.ib(M),e.h.offset(-S),L=c(e.g.values()),A=L.next();!A.done;A=L.next())(N=A.value).stream.segmentIndex.offset(-S),N.stream.segmentIndex.Hb(0,M);for(e.S=[],R=[],D=c(b),B=D.next();!B.done;B=D.next())for(z=B.value,F=c([z.video,z.audio]),H=F.next();!H.done;H=F.next())(U=H.value)&&R.push(U);return w(G,Promise.all(R.map(function(e){return I(function(t){return w(t,e.createSegmentIndex(),0)})})),6);case 6:for(V=c(R),H=V.next();!H.done;H=V.next())X=H.value,e.S.push(X.segmentIndex.R);qh(e),e.H={presentationTimeline:e.h,variants:b,textStreams:y,imageStreams:C,offlineSessionIds:[],minBufferTime:0},e.F.makeTextStreamsForClosedCaptions(e.H),k(G)}})}(i,n.data),3)):(0<(r=i.ka)&&i.C.U(r),o.return(i.H))})},r.stop=function(){this.C&&(this.C.stop(),this.C=null);var e=[];return this.G&&(e.push(this.G.destroy()),this.G=null),this.m=this.F=null,this.sa.clear(),this.H=null,this.g.clear(),this.B.clear(),this.s.clear(),this.l.clear(),Promise.all(e)},r.update=function(){var e,t,n,r=this;return I(function(i){if(1==i.g)return r.j==_h?i.return():(e=[],r.P=null,(t=Array.from(r.g.values())).length?w(i,Lh(r,t[0]),2):i.D(2));for(n=1;n<t.length;n++)e.push(Lh(r,t[n]));return w(i,Promise.all(e),0)})},r.onExpirationUpdated=function(){},r.Tc=function(){var e,t,n=this;return I(function(r){return 1==r.g?n.F?(x(r,2),w(r,n.update(),4)):r.return():2!=r.g?(e=n.ka,n.C.U(e),S(r,0)):(t=E(r),n.F?(t.severity=1,n.F.onError(t),n.C.U(.1),void k(r)):r.return())})},H("shaka.hls.HlsParser",Ph);var Kh=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"],Yh={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Qh={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=hh(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?(t=Oe("com.widevine.alpha",[{initDataType:"cenc",initData:t=Ot((t=Oh(t=hh(e,"URI"))).data)}]),(e=uh(e,"KEYID"))&&(t.keyIds=new Set([e.toLowerCase().substr(2)])),t):null},"com.microsoft.playready":function(e){var t=hh(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?Oe("com.microsoft.playready",[{initDataType:"cenc",initData:e=Ld(e=Ot((e=Oh(e=hh(e,"URI"))).data),t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]))}]):null}},_h="VOD",$h="EVENT",ef="LIVE",tf={Of:_h,Nh:$h,Se:ef};function nf(e,t,n,r,i,o){if(200<=n&&299>=n&&202!=n)return{uri:i||r,vf:r,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};i=null;try{i=qt(t)}catch(a){}throw new ye(401==n||403==n?2:1,1,1001,r,n,i,e,o)}function rf(){}function of(e,t,n,r,i){var o=new uf;Ur(t.headers).forEach(function(e,t){o.append(t,e)});var a=new cf,s={Ve:!1,If:!1};if(e=function(e,t,n,r,i,o,a){var s,l,c,d,u,h,f,p,m,g,v,b;return I(function(y){switch(y.g){case 1:return s=lf,l=df,h=u=0,f=Date.now(),x(y,2),w(y,s(e,n),4);case 4:return c=y.h,o(af(c.headers)),p=c.clone().body.getReader(),g=(m=c.headers.get("Content-Length"))?parseInt(m,10):0,new l({start:function(e){function t(){var n,r;return I(function(o){switch(o.g){case 1:return x(o,2),w(o,p.read(),4);case 4:n=o.h,S(o,3);break;case 2:return E(o),o.return();case 3:if(n.done){o.D(5);break}if(u+=n.value.byteLength,!a){o.D(5);break}return w(o,a(n.value),5);case 5:(100<(r=Date.now())-f||n.done)&&(i(r-f,u-h,g-u),h=u,f=r),n.done?e.close():(e.enqueue(n.value),t()),k(o)}})}t()}}),w(y,c.arrayBuffer(),5);case 5:d=y.h,S(y,3);break;case 2:if(v=E(y),r.Ve)throw new ye(1,1,7001,e,t);if(r.If)throw new ye(1,1,1003,e,t);throw new ye(1,1,1002,e,v,t);case 3:return b=af(c.headers),y.return(nf(b,d,c.status,e,c.url,t))}})}(e,n,{body:t.body||void 0,headers:o,method:t.method,signal:a.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},s,r,i,t.streamDataCallback),e=new mr(e,function(){return s.Ve=!0,a.abort(),Promise.resolve()}),t=t.retryParameters.timeout){var l=new pn(function(){s.If=!0,a.abort()});l.U(t/1e3),e.finally(function(){l.stop()})}return e}function af(e){var t={};return e.forEach(function(e,n){t[n.trim()]=e}),t}function sf(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(Dy){return!1}return!(!e.fetch||!e.AbortController)}yi.m3u8=function(){return new Ph},bi["application/x-mpegurl"]=function(){return new Ph},bi["application/vnd.apple.mpegurl"]=function(){return new Ph},H("shaka.net.HttpFetchPlugin",rf),rf.isSupported=sf,rf.parse=of;var lf=e.fetch,cf=e.AbortController,df=e.ReadableStream,uf=e.Headers;function hf(){}function ff(e,t,n,r,i){var o=new mf,a=Date.now(),s=0;return new mr(new Promise(function(l,c){o.open(t.method,e,!0),o.responseType="arraybuffer",o.timeout=t.retryParameters.timeout,o.withCredentials=t.allowCrossSiteCredentials,o.onabort=function(){c(new ye(1,1,7001,e,n))};var d=!1;for(var u in o.onreadystatechange=function(){if(2==o.readyState&&!d){var e=pf(o);i(e),d=!0}},o.onload=function(){var t=pf(o),r=o.response;try{var i=nf(t,r,o.status,e,o.responseURL,n);l(i)}catch(a){c(a)}},o.onerror=function(t){c(new ye(1,1,1002,e,t,n))},o.ontimeout=function(){c(new ye(1,1,1003,e,n))},o.onprogress=function(e){var t=Date.now();(100<t-a||e.lengthComputable&&e.loaded==e.total)&&(r(t-a,e.loaded-s,e.total-e.loaded),s=e.loaded,a=t)},t.headers)o.setRequestHeader(u.toLowerCase(),t.headers[u]);o.send(t.body)}),function(){return o.abort(),Promise.resolve()})}function pf(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=c(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}sf()&&(Mr("http",of,2,!0),Mr("https",of,2,!0),Mr("blob",of,2,!0)),H("shaka.net.HttpXHRPlugin",hf),hf.parse=ff;var mf=e.XMLHttpRequest;function gf(e,t,n,r){this.g=e,this.i=t,this.groupId=n,this.h=r}function vf(e){return e.Ma().map(function(e){return"{"+encodeURI(e)+"}"}).join("")+":"+e.Ka+":"+e.Da}function bf(e,t){return Ja(e.g.Ma(),e.g.Ka,e.g.Da,t.streaming.retryParameters)}function yf(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function wf(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function kf(e){var t=this;this.V=e,this.g=new Map,this.N=new Nr(function(){return xf(t).catch(function(){})}),this.h=[],this.Lf=function(){},this.Jf=function(){},this.fc=new yf}function xf(e){var t=e.h.map(function(e){return e()});return e.h=[],Promise.all(t)}function Cf(e,t,n,r,i,o){Rr(e.N);var a=(e.g.get(t)||Promise.resolve()).then(function(){var t,a,s,l,c,d,u;return I(function(h){if(1==h.g)return w(h,function(e,t){var n,r,i,o;return I(function(a){return 1==a.g?(n=Pr,r=e.V.request(n,t),i=function(){return r.abort()},e.h.push(i),w(a,r.promise,2)):(o=a.h,rt(e.h,i),a.return(o.data))})}(e,n),2);if(t=h.h,e.N.g)throw new ye(2,9,7001);if(i)for(l in a=Ot(t),(s=new Pd(a)).data)c=Number(l),d=s.data[c],u=s.g[c],e.Jf(d,u);e.fc.close(r,t.byteLength);var f=e.fc;return e.Lf(0==f.i?0:f.j/f.i,e.fc.h),h.return(o(t))})});e.g.set(t,a)}function Sf(e,t,n){Rr(e.N);var r=(e.g.get(t)||Promise.resolve()).then(function(){return I(function(e){return w(e,n(),0)})});e.g.set(t,r)}function Ef(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new Dt,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function Mf(e,t){return new Promise(function(n,r){var i=e.h.openCursor();i.onerror=r,i.onsuccess=function(){var e;return I(function(r){if(1==r.g)return null==i.result?(n(),r.return()):(e=i.result,w(r,t(e.key,e.value,e),2));e.continue(),k(r)})}})}function Tf(e){this.h=e,this.g=[]}function Af(e,t){return jf(e,t,"readwrite")}function jf(e,t,n){var r=new Ef(n=e.h.transaction([t],n),t);return e.g.push(r),r.promise().then(function(){rt(e.g,r)},function(){rt(e.g,r)}),r}function Of(e,t,n){this.h=new Tf(e),this.i=t,this.g=n}function Pf(e){return Promise.reject(new ye(2,9,9011,"Cannot add new value to "+e))}function Lf(e,t,n,r){t=(e=Af(e.h,t)).store();for(var i={},o=(n=c(n)).next();!o.done;i={ed:i.ed},o=n.next())i.ed=o.value,t.delete(i.ed).onsuccess=function(e){return function(){return r(e.ed)}}(i);return e.promise()}function If(e,t,n){var r,i,o,a,s,l,d;return I(function(u){if(1==u.g){for(r=jf(e.h,t,"readonly"),i=r.store(),o={},a=[],s={},l=c(n),d=l.next();!d.done;s={Ec:s.Ec,Ac:s.Ac},d=l.next())s.Ac=d.value,s.Ec=i.get(s.Ac),s.Ec.onsuccess=function(e){return function(){null==e.Ec.result&&a.push(e.Ac),o[e.Ac]=e.Ec.result}}(s);return w(u,r.promise(),2)}if(a.length)throw new ye(2,9,9012,"Could not find values for "+a);return u.return(n.map(function(e){return o[e]}))})}function Nf(e){this.g=new Tf(e)}function Rf(){this.g=new Map}function Df(e){var t=null;if(e.g.forEach(function(e,n){e.getCells().forEach(function(e,r){e.hasFixedKeySpace()||t||(t={path:{Ya:n,oa:r},oa:e})})}),t)return t;throw new ye(2,9,9013,"Could not find a cell that supports add-operations")}function Bf(e,t,n){if(!(e=e.g.get(t)))throw new ye(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new ye(2,9,9013,"Could not find cell with name "+n);return t}function zf(e,t){Ff.set(e,t)}Mr("http",ff,1,!0),Mr("https",ff,1,!0),Mr("blob",ff,1,!0),yf.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},kf.prototype.destroy=function(){return this.N.destroy()},Ef.prototype.abort=function(){var e=this;return I(function(t){if(1==t.g){try{e.i.abort()}catch(n){}return x(t,2),w(t,e.g,4)}if(2!=t.g)return S(t,0);E(t),k(t)})},Ef.prototype.store=function(){return this.h},Ef.prototype.promise=function(){return this.g},Tf.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))},(r=Of.prototype).destroy=function(){return this.h.destroy()},r.hasFixedKeySpace=function(){return!0},r.addSegments=function(){return Pf(this.i)},r.removeSegments=function(e,t){return Lf(this,this.i,e,t)},r.getSegments=function(e){var t,n=this;return I(function(r){return 1==r.g?w(r,If(n,n.i,e),2):(t=r.h,r.return(t.map(function(e){return n.Ye(e)})))})},r.addManifests=function(){return Pf(this.g)},r.updateManifest=function(){return Promise.reject(new ye(2,9,9016,"Cannot modify values in "+this.g))},r.updateManifestExpiration=function(e,t){var n=Af(this.h,this.g),r=n.store();return r.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,r.put(n,e))},n.promise()},r.removeManifests=function(e,t){return Lf(this,this.g,e,t)},r.getManifests=function(e){var t,n=this;return I(function(r){return 1==r.g?w(r,If(n,n.g,e),2):(t=r.h,r.return(Promise.all(t.map(function(e){return n.Jc(e)}))))})},r.getAllManifests=function(){var e,t,n=this;return I(function(r){return 1==r.g?(e=jf(n.h,n.g,"readonly"),t=new Map,w(r,Mf(e,function(e,r){var i;return I(function(o){if(1==o.g)return w(o,n.Jc(r),2);i=o.h,t.set(e,i),k(o)})}),2)):3!=r.g?w(r,e.promise(),3):r.return(t)})},r.Ye=function(e){return e},r.Jc=function(e){return Promise.resolve(e)},r.add=function(e,t){var n,r,i,o,a,s,l,d=this;return I(function(u){if(1==u.g){for(n=Af(d.h,e),r=n.store(),i=[],o={},a=c(t),s=a.next();!s.done;o={fd:o.fd},s=a.next())l=s.value,o.fd=r.add(l),o.fd.onsuccess=function(e){return function(){i.push(e.fd.result)}}(o);return w(u,n.promise(),2)}return u.return(i)})},Nf.prototype.destroy=function(){return this.g.destroy()},Nf.prototype.getAll=function(){var e,t,n=this;return I(function(r){return 1==r.g?(e=jf(n.g,"session-ids","readonly"),t=[],w(r,Mf(e,function(e,n){t.push(n)}),2)):3!=r.g?w(r,e.promise(),3):r.return(t)})},Nf.prototype.add=function(e){for(var t=Af(this.g,"session-ids"),n=t.store(),r=(e=c(e)).next();!r.done;r=e.next())n.add(r.value);return t.promise()},Nf.prototype.remove=function(e){var t,n=this;return I(function(r){return 1==r.g?w(r,Mf(t=Af(n.g,"session-ids"),function(t,n,r){e.includes(n.sessionId)&&r.delete()}),2):w(r,t.promise(),0)})},Rf.prototype.destroy=function(){for(var e=[],t=c(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},Rf.prototype.init=function(){var e=this;Ff.forEach(function(t,n){var r=t();r&&e.g.set(n,r)});for(var t=[],n=c(this.g.values()),r=n.next();!r.done;r=n.next())t.push(r.value.init());return Promise.all(t)},H("shaka.offline.StorageMuxer",Rf),Rf.unregister=function(e){Ff.delete(e)},Rf.register=zf,Rf.prototype.destroy=Rf.prototype.destroy;var Ff=new Map;function Hf(){Of.apply(this,arguments)}function qf(e,t){!function(e){var t=e.streams.filter(function(e){return"audio"==e.contentType});if(e=e.streams.filter(function(e){return"video"==e.contentType}),!t.every(function(e){return e.variantIds})||!e.every(function(e){return e.variantIds})){for(var n=c(t),r=n.next();!r.done;r=n.next())r.value.variantIds=[];for(r=(n=c(e)).next();!r.done;r=n.next())r.value.variantIds=[];if(n=0,e.length&&!t.length){var i=n++,o=c(e);for(r=o.next();!r.done;r=o.next())r.value.variantIds.push(i)}if(!e.length&&t.length)for(i=n++,r=(o=c(t)).next();!r.done;r=o.next())r.value.variantIds.push(i);if(e.length&&t.length)for(r=(t=c(t)).next();!r.done;r=t.next())for(r=r.value,o=(i=c(e)).next();!o.done;o=i.next()){o=o.value;var a=n++;r.variantIds.push(a),o.variantIds.push(a)}}}(e);for(var n=c(e.streams),r=n.next();!r.done;r=n.next());return e.streams.map(function(n){return function(e,t,n){var r=e.initSegmentUri?Uf(e.initSegmentUri):null,i=t+e.presentationTimeOffset,o=t+n;return{id:e.id,originalId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,initSegmentKey:r,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map(function(e){var n=Uf(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:r,appendWindowStart:t,appendWindowEnd:o,timestampOffset:i,tilesLayout:""}}),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}(n,e.startTime,t)})}function Uf(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new ye(2,9,9004,"Could not parse uri "+e)}function Vf(){Of.apply(this,arguments)}function Xf(e,t,n){return{id:e.id,originalId:e.originalId,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map(function(r){return{startTime:t+r.startTime,endTime:t+r.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:r.dataKey,tilesLayout:""}}),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}function Gf(){Of.apply(this,arguments)}function Wf(){this.s=this.j=this.i=this.h=this.g=this.l=null}function Jf(e,t,n,r){this.g=e,this.i=t,this.h=n,this.l=r,this.j=["offline:",e,"/",t,"/",n,"/",r].join("")}function Zf(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var r=e[3];return r&&null!=t?new Jf(t,n,r,Number(e[4])):null}function Kf(e,t){this.h=e,this.g=t}function Yf(e,t){var n=new ha(null,0);n.ib(t.duration);var r=t.streams.filter(function(e){return"audio"==e.type}),i=t.streams.filter(function(e){return"video"==e.type});r=function(e,t,n,r){for(var i=new Set,o=c(t),a=o.next();!a.done;a=o.next()){var s=c(a.value.variantIds);for(a=s.next();!a.done;a=s.next())i.add(a.value)}for(o=c(n),a=o.next();!a.done;a=o.next())for(s=c(a.value.variantIds),a=s.next();!a.done;a=s.next())i.add(a.value);for(o=new Map,i=c(i),a=i.next();!a.done;a=i.next())a=a.value,o.set(a,{id:a,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=c(t),i=t.next();!i.done;i=t.next())for(i=i.value,a=Qf(e,i,r),s=c(i.variantIds),i=s.next();!i.done;i=s.next())(i=o.get(i.value)).language=a.language,i.primary=i.primary||a.primary,i.audio=a;for(n=c(n),t=n.next();!t.done;t=n.next())for(i=t.value,t=Qf(e,i,r),a=c(i.variantIds),i=a.next();!i.done;i=a.next())(i=o.get(i.value)).primary=i.primary||t.primary,i.video=t;return o}(e,r,i,n),i=t.streams.filter(function(e){return e.type==Ie}).map(function(t){return Qf(e,t,n)});var o=t.streams.filter(function(e){return"image"==e.type}).map(function(t){return Qf(e,t,n)}),a=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=c(r.values()),l=s.next();!l.done;l=s.next())(l=l.value).audio&&l.audio.encrypted&&(l.audio.drmInfos=a),l.video&&l.video.encrypted&&(l.video.drmInfos=a);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(r.values()),textStreams:i,imageStreams:o}}function Qf(e,t,n){var r=t.segments.map(function(t){return function(e,t){var n=new Jf("segment",e.h,e.g,t.dataKey);return new ua(t.startTime,t.endTime,function(){return[n.toString()]},0,null,null!=t.initSegmentKey?function(e,t){var n=new Jf("segment",e.h,e.g,t);return new da(function(){return[n.toString()]},0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||"")}(e,t)});return n.tc(r),{id:t.id,originalId:t.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new La(r),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout}}function _f(){this.g=null}function $f(){}function ep(e){var t=Zf(e);return e=t&&"manifest"==t.g?br(e={uri:e,vf:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):t&&"segment"==t.g?function(e,t){var n=new Rf;return br(void 0).va(function(){return n.init()}).va(function(){return Bf(n,t.Ya(),t.oa())}).va(function(e){return e.getSegments([t.key()])}).va(function(e){return{uri:t,data:e[0].data,headers:{}}}).finally(function(){return n.destroy()})}(t.key(),t):gr(new ye(2,1,9004,e))}function tp(e,t,n){var r,i,o,a,s,l;return I(function(d){switch(d.g){case 1:r=[];for(var u=[],h=c(n),f=h.next();!f.done;f=h.next()){f=f.value;for(var p=!1,m=c(u),g=m.next();!g.done;g=m.next())if(np((g=g.value).info,f)){g.sessionIds.push(f.sessionId),p=!0;break}p||u.push({info:f,sessionIds:[f.sessionId]})}i=c(u),o=i.next();case 2:if(o.done){d.D(4);break}return a=o.value,s=function(e,t,n){var r,i;return I(function(o){switch(o.g){case 1:return r=new Gr({Wb:t,onError:function(){},wd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),x(o,2),r.configure(e),w(o,function(e,t,n,r,i,o){var a=new Map;return(i={audioCapabilities:i,videoCapabilities:o,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:r,serverCertificateUri:"",initData:null,keyIds:null}],a.set(t,i),$r(e,a,[])}(r,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:S(o,3);break;case 2:return E(o),w(o,r.destroy(),5);case 5:case 9:return o.return([]);case 3:return x(o,6),w(o,Zr(r),8);case 8:S(o,7);break;case 6:return E(o),w(o,r.destroy(),9);case 7:return i=[],w(o,Promise.all(n.sessionIds.map(function(e){return I(function(t){return 1==t.g?(x(t,2),w(t,function(e,t){var n,r,i;return I(function(o){return 1==o.g?w(o,ei(e,t),2):3!=o.g?(n=o.h)?(r=[],(i=e.j.get(n))&&(i.jb=new Dt,r.push(i.jb)),r.push(n.remove()),w(o,Promise.all(r),3)):o.return():(e.j.delete(n),void k(o))})}(r,e),4)):2!=t.g?(i.push(e),S(t,0)):(E(t),void k(t))})})),10);case 10:return w(o,r.destroy(),11);case 11:return o.return(i)}})}(e,t,a),w(d,s,5);case 5:l=d.h,r=r.concat(l),o=i.next(),d.D(2);break;case 4:return d.return(r)}})}function np(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&it(e.audioCapabilities,t.audioCapabilities,n)&&it(e.videoCapabilities,t.videoCapabilities,n)}function rp(e,t){var n=Yf(new Kf(e.Ya(),e.oa()),t),r=t.appMetadata||{};return n=ip(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:r,isIncomplete:t.isIncomplete||!1}}function ip(e){for(var t=[],n=function(e){return e.filter(function(e){return Xn(e)})}(e.variants),r=(n=c(n)).next();!r.done;r=n.next())t.push(Bn(r.value));for(n=(e=c(e.textStreams)).next();!n.done;n=e.next())t.push(zn(n.value));return t}function op(){this.g={}}function ap(e,t){var n=t.audio,r=t.video;if(n&&!r&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&r&&(e.g[r.id]=r.bandwidth||t.bandwidth),n&&r){var i=n.bandwidth||393216,o=r.bandwidth||t.bandwidth-i;0>=o&&(o=t.bandwidth),e.g[n.id]=i,e.g[r.id]=o}}function sp(e,t){e.g[t.id]=t.bandwidth||2048}function lp(e,t){var n=e.g[t];return null==n&&(n=0),n}function cp(){this.h=[],this.g=this.i=0}function dp(e){var t=this;if(e&&e.constructor!=_s)throw new ye(2,9,9008);this.V=this.m=null,e?(this.m=e.m,this.V=e.Mc()):(this.m=Xs(),this.V=new Er),this.Uc=[],this.re=[];var n=!e;this.N=new Nr(function(){var e,r,i,o,a;return I(function(s){switch(s.g){case 1:return w(s,Promise.all(t.re.map(function(e){return xf(e)})),2);case 2:for(e=function(){},r=[],i=c(t.Uc),o=i.next();!o.done;o=i.next())a=o.value,r.push(a.then(e,e));return w(s,Promise.all(r),3);case 3:if(!n){s.D(4);break}return w(s,t.V.destroy(),4);case 4:t.m=null,t.V=null,k(s)}})})}function up(){if(mn())e:{for(var e=c(Ff.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function hp(e){var t,n,r;return I(function(i){switch(i.g){case 1:return w(i,(t=new Rf).init(),2);case 2:return w(i,Df(t),3);case 3:return n=i.h,r=new Jf("manifest",n.path.Ya,n.path.oa,e),w(i,t.destroy(),4);case 4:return w(i,(new dp).remove(r.toString()),0)}})}function fp(e,t,n,r){var i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,k,C;return I(function(S){switch(S.g){case 1:return i=new Rf,o=vf(t),a=!1,u=0,x(S,2,3),w(S,i.init(),5);case 5:return w(S,Df(i),6);case 6:return w(S,(l=S.h).oa.addSegments([n]),7);case 7:return h=S.h,s=h[0],r(),w(S,function(){var e,t=Sp;return I(function(n){return 1==n.g?(e=++t.i,t.g?w(n,new Promise(function(n){t.h.push(function(){t.g=e,n()})}),2):(t.g=e,n.D(2))):n.return(e)})}(),8);case 8:return u=S.h,r(),w(S,l.oa.getManifests([e]),9);case 9:for(f=S.h,r(),d=f[0],p=!0,m=c(d.streams),g=m.next();!g.done;g=m.next())for(v=g.value,b=c(v.segments),y=b.next();!y.done;y=b.next())(k=y.value).pendingSegmentRefId==o&&(k.dataKey=s,k.pendingSegmentRefId=void 0),k.pendingInitSegmentRefId==o&&(k.initSegmentKey=s,k.pendingInitSegmentRefId=void 0),k.pendingSegmentRefId&&(p=!1),k.pendingInitSegmentRefId&&(p=!1);return d.size+=n.data.byteLength,p&&(d.isIncomplete=!1),w(S,l.oa.updateManifest(e,d),10);case 10:a=!0,r();case 3:return M(S),w(S,i.destroy(),11);case 11:Sp.release(u),T(S,4);break;case 2:return C=E(S),w(S,hp(e),12);case 12:if(!l||a||!s){S.D(13);break}return w(S,l.oa.removeSegments([s],function(){}),13);case 13:throw C;case 4:return S.return(d)}})}function pp(e){return e.variants.some(function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t})}function mp(e){return e.variants.some(function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some(function(e){return e.initData&&e.initData.length})})}function gp(e,t){for(var n=[],r=c(e.streams),i=r.next();!i.done;i=r.next())i=i.value,t&&"video"==i.type?n.push({contentType:nn(i.mimeType,i.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=i.type||n.push({contentType:nn(i.mimeType,i.codecs),robustness:e.drmInfo.audioRobustness});return n}function vp(e,t,n){return I(function(r){return w(r,function(e,t,n,r){var i,o,a;return I(function(s){return 1==s.g?r.drmInfo?(i=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new ye(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),o=r.sessionIds.map(function(e){return{sessionId:e,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:gp(r,!1),videoCapabilities:gp(r,!0)}}),w(s,tp(t,e,o),2)):s.return():3!=s.g?(a=s.h,w(s,i.remove(a),3)):w(s,i.add(o.filter(function(e){return!a.includes(e.sessionId)})),0)})}(e.V,e.m.drm,n,t),0)})}function bp(e,t,n){function r(){}var i=function(e){for(var t=new Set,n=(e=c(e.streams)).next();!n.done;n=e.next())for(var r=(n=c(n.value.segments)).next();!r.done;r=n.next())null!=(r=r.value).initSegmentKey&&t.add(r.initSegmentKey),t.add(r.dataKey);return Array.from(t)}(n);return rp(t,n),Promise.all([e.removeSegments(i,r),e.removeManifests([t.key()],r)])}function yp(e,t,n,r,i){var o={id:r.id,originalId:r.originalId,primary:r.primary,type:r.type,mimeType:r.mimeType,codecs:r.codecs,frameRate:r.frameRate,pixelAspectRatio:r.pixelAspectRatio,hdr:r.hdr,kind:r.kind,language:r.language,label:r.label,width:r.width||null,height:r.height||null,encrypted:r.encrypted,keyIds:r.keyIds,segments:[],variantIds:[],roles:r.roles,forced:r.forced,channelsCount:r.channelsCount,audioSamplingRate:r.audioSamplingRate,spatialAudio:r.spatialAudio,closedCaptions:r.closedCaptions,tilesLayout:r.tilesLayout};return function(e,t,n){if(null!=(t=e.segmentIndex.find(t)))for(var r=e.segmentIndex.get(t);r;)n(r),r=e.segmentIndex.get(++t)}(r,n.presentationTimeline.ub(),function(n){var a=vf(n),s=void 0;if(!i.has(a)){var l=n.endTime-n.startTime;l=lp(t,r.id)*l,l=wf(e.fc,l),i.set(a,new gf(n,l,r.id,!1))}n.g&&(s=vf(n.g),i.has(s)||(l=.5*lp(t,r.id),l=wf(e.fc,l),i.set(s,new gf(n.g,l,r.id,!0)))),o.segments.push({pendingInitSegmentRefId:s,initSegmentKey:s?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:a,dataKey:0})}),o}function wp(e){if(e.N.g)throw new ye(2,9,7001)}function kp(){if(!up())throw new ye(2,9,9e3)}function xp(e,t){return I(function(n){return 1==n.g?(e.Uc.push(t),C(n),w(n,t,4)):2!=n.g?n.return(n.h):(M(n),rt(e.Uc,t),T(n,0))})}function Cp(e){for(var t=new Set,n=c(e.textStreams),r=n.next();!r.done;r=n.next())t.add(r.value);for(r=(n=c(e.imageStreams)).next();!r.done;r=n.next())t.add(r.value);for(n=(e=c(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}g(Hf,Of),Hf.prototype.updateManifestExpiration=function(e,t){var n,r,i,o=this;return I(function(a){return n=Af(o.h,o.g),r=n.store(),i=new Dt,r.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,r.put(n),i.resolve()):i.reject(new ye(2,9,9012,"Could not find values for "+e))},w(a,Promise.all([n.promise(),i]),0)})},Hf.prototype.Jc=function(e){var t,n,r,i,o,a;return I(function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n)r=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=r-e.periods[n].startTime,o=qf(e.periods[n],i),t.push(o);return w(s,ju(t),2)}return a=s.h,s.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:a,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata})})},Hf.prototype.Ye=function(e){return{data:e.data}},g(Vf,Of),Vf.prototype.Jc=function(e){var t,n,r,i,o,a;return I(function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n){r=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=r-e.periods[n].startTime;for(var l=e.periods[n],d=[],u=c(l.streams),h=u.next();!h.done;h=u.next())0!=(h=h.value).variantIds.length&&d.push(Xf(h,l.startTime,l.startTime+i));o=d,t.push(o)}return w(s,ju(t),2)}return a=s.h,s.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:a})})},g(Gf,Of),(r=Gf.prototype).hasFixedKeySpace=function(){return!1},r.addSegments=function(e){return this.add(this.i,e)},r.addManifests=function(e){return this.add(this.g,e)},r.updateManifest=function(e,t){return function(e,t,n){var r=(e=Af(e.h,e.g)).store();return r.get(t).onsuccess=function(){r.put(n,t)},e.promise()}(this,e,t)},r.Jc=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(r=Wf.prototype).init=function(){var t=this,n=new Dt,r=e.indexedDB.open("shaka_offline_db",5);return r.onsuccess=function(){var e=r.result;t.l=e;var i=e.objectStoreNames;i=i.contains("manifest")&&i.contains("segment")?new Hf(e,"segment","manifest"):null,t.g=i,i=(i=e.objectStoreNames).contains("manifest-v2")&&i.contains("segment-v2")?new Vf(e,"segment-v2","manifest-v2"):null,t.h=i,i=(i=e.objectStoreNames).contains("manifest-v3")&&i.contains("segment-v3")?new Vf(e,"segment-v3","manifest-v3"):null,t.i=i,i=(i=e.objectStoreNames).contains("manifest-v5")&&i.contains("segment-v5")?new Gf(e,"segment-v5","manifest-v5"):null,t.j=i,e=e.objectStoreNames.contains("session-ids")?new Nf(e):null,t.s=e,n.resolve()},r.onupgradeneeded=function(){for(var e=r.result,t=c(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onerror=function(e){n.reject(new ye(2,9,9001,r.error)),e.preventDefault()},n},r.destroy=function(){var e=this;return I(function(t){switch(t.g){case 1:if(!e.g){t.D(2);break}return w(t,e.g.destroy(),2);case 2:if(!e.h){t.D(4);break}return w(t,e.h.destroy(),4);case 4:if(!e.i){t.D(6);break}return w(t,e.i.destroy(),6);case 6:if(!e.j){t.D(8);break}return w(t,e.j.destroy(),8);case 8:if(!e.s){t.D(10);break}return w(t,e.s.destroy(),10);case 10:e.l&&e.l.close(),k(t)}})},r.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},r.getEmeSessionCell=function(){return this.s},r.erase=function(){var t=this;return I(function(n){switch(n.g){case 1:if(!t.g){n.D(2);break}return w(n,t.g.destroy(),2);case 2:if(!t.h){n.D(4);break}return w(n,t.h.destroy(),4);case 4:if(!t.i){n.D(6);break}return w(n,t.i.destroy(),6);case 6:if(!t.j){n.D(8);break}return w(n,t.j.destroy(),8);case 8:return t.l&&t.l.close(),w(n,function(){var t=new Dt,n=e.indexedDB.deleteDatabase("shaka_offline_db");return n.onblocked=function(){},n.onsuccess=function(){t.resolve()},n.onerror=function(e){t.reject(new ye(2,9,9001,n.error)),e.preventDefault()},t}(),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,w(n,t.init(),0)}})},zf("idb",function(){return bn()||!e.indexedDB?null:new Wf}),Jf.prototype.Ya=function(){return this.i},Jf.prototype.oa=function(){return this.h},Jf.prototype.key=function(){return this.l},Jf.prototype.toString=function(){return this.j},(r=_f.prototype).configure=function(){},r.start=function(e,t){var n,r,i,o,a,s,l=this;return I(function(c){switch(c.g){case 1:if(n=Zf(e),l.g=n,null==n||"manifest"!=n.g)throw new ye(2,1,9004,e);return r=new Rf,C(c),w(c,r.init(),4);case 4:return w(c,Bf(r,n.Ya(),n.oa()),5);case 5:return w(c,c.h.getManifests([n.key()]),6);case 6:return i=c.h,o=i[0],a=new Kf(n.Ya(),n.oa()),s=Yf(a,o),t.makeTextStreamsForClosedCaptions(s),c.return(s);case 2:return M(c),w(c,r.destroy(),7);case 7:T(c,0)}})},r.stop=function(){return Promise.resolve()},r.update=function(){},r.onExpirationUpdated=function(e,t){var n,r,i,o,a,s,l,c=this;return I(function(d){switch(d.g){case 1:return n=c.g,r=new Rf,x(d,2,3),w(d,r.init(),5);case 5:return w(d,Bf(r,n.Ya(),n.oa()),6);case 6:return w(d,(i=d.h).getManifests([n.key()]),7);case 7:if(o=d.h,a=o[0],s=a.sessionIds.includes(e),l=null==a.expiration||a.expiration>t,!s||!l){d.D(3);break}return w(d,i.updateManifestExpiration(n.key(),t),3);case 3:return M(d),w(d,r.destroy(),10);case 10:T(d,0);break;case 2:E(d),d.D(3)}})},bi["application/x-offline-manifest"]=function(){return new _f},H("shaka.offline.OfflineScheme",$f),$f.plugin=ep,Mr("offline",ep),cp.prototype.release=function(e){e==this.g&&(this.g=0,0<this.h.length&&this.h.shift()())},(r=dp.prototype).destroy=function(){return this.N.destroy()},r.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=Us(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ke("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),Gs(this.m,e)},r.getConfiguration=function(){var e=Xs();return Gs(e,this.m,Xs()),e},r.Mc=function(){return this.V},r.store=function(e,t,n){var r=this,i=this.getConfiguration(),o=new kf(this.V);this.re.push(o),t=function(e,t,n,r,i,o){var a,s,l,d,u,h,f,p,m,g,v,b,y;return I(function(C){switch(C.g){case 1:return kp(),s=a=null,l=new Rf,h=u=d=null,x(C,2,3),w(C,r(),5);case 5:return a=C.h,w(C,function(e,t,n,r){var i,o,a,s,l;return I(function(c){if(1==c.g)return i=null,o=e.V,a={networkingEngine:o,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){i=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},n.configure(r.manifest),wp(e),w(c,n.start(t,a),2);if(3!=c.g)return s=c.h,wp(e),l=Cp(s),w(c,Promise.all(ee(l,function(e){return e.createSegmentIndex()})),3);if(wp(e),i)throw i;return c.return(s)})}(e,t,a,i),6);case 6:if(f=C.h,wp(e),f.presentationTimeline.W()||f.presentationTimeline.Tb())throw new ye(2,9,9005,t);return w(C,function(e,t,n,r){var i;return I(function(o){switch(o.g){case 1:return(i=new Gr({Wb:e.V,onError:n,wd:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(r.drm),w(o,function(e,t,n){return e.ia=!0,e.C=[],e.L=n,Jr(e,t)}(i,t.variants,r.offline.usePersistentLicense),2);case 2:return w(o,Zr(i),3);case 3:return w(o,Kr(i),4);case 4:return o.return(i)}})}(e,f,function(e){h=h||e},i),7);case 7:if(s=C.h,wp(e),h)throw h;return w(C,function(e,t){var n,r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,C,M,T,A,j,O,P,L,N,R,D;return I(function(I){switch(I.g){case 1:return n={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter(function(e){return An(e,t,n)})}(e,t.restrictions,n),w(I,On(e,t.offline.usePersistentLicense),2);case 2:for(r=[],i=t.preferredAudioChannelCount,o=t.preferredDecodingAttributes,a=t.preferredVideoCodecs,s=t.preferredAudioCodecs,En(e,a,s,i,o),l=c(e.variants),d=l.next();!d.done;d=l.next())u=d.value,r.push(Bn(u));for(h=c(e.textStreams),f=h.next();!f.done;f=h.next())p=f.value,r.push(zn(p));for(m=c(e.imageStreams),g=m.next();!g.done;g=m.next())v=g.value,r.push(Fn(v));return w(I,t.offline.trackSelectionCallback(r),3);case 3:for(b=I.h,y=e.presentationTimeline.getDuration(),C=0,M=c(b),T=M.next();!T.done;T=M.next())A=T.value,j=A.bandwidth*y/8,C+=j;return x(I,4),w(I,t.offline.downloadSizeCallback(C),6);case 6:if(!I.h)throw new ye(2,9,9014);S(I,5);break;case 4:if((O=E(I))instanceof ye)throw O;throw new ye(2,9,9015);case 5:for(P=new Set,L=new Set,N=new Set,R=c(b),T=R.next();!T.done;T=R.next())"variant"==(D=T.value).type&&P.add(D.id),"text"==D.type&&L.add(D.id),"image"==D.type&&N.add(D.id);e.variants=e.variants.filter(function(e){return P.has(e.id)}),e.textStreams=e.textStreams.filter(function(e){return L.has(e.id)}),e.imageStreams=e.imageStreams.filter(function(e){return N.has(e.id)}),function(e){e.variants.map(function(e){return e.video});var t=new Set(e.variants.map(function(e){return e.audio}));e=e.textStreams;for(var n=c(t),r=n.next();!r.done;r=n.next())for(var i=(r=c(t)).next();!i.done;i=r.next());for(t=c(e),n=t.next();!n.done;n=t.next())for(n=c(e),r=n.next();!r.done;r=n.next());}(e),k(I)}})}(f,i),8);case 8:return w(C,l.init(),9);case 9:return wp(e),w(C,Df(l),10);case 10:return d=C.h,wp(e),p=function(e,t,n,r,i,o){var a=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=ip(t),appMetadata:n,isIncomplete:!1}}(n,t,r),s=i.offline.progressCallback;!function(e,t,n){e.Lf=t,e.Jf=n}(o,function(e,t){a.size=t,s(a,e)},function(t,n){l&&i.offline.usePersistentLicense&&d==n&&Yr(e,"cenc",t)});var l=pp(t)&&!mp(t),d=null;l&&(d=Ep.get(e.i.keySystem));for(var u=new op,h=c(t.textStreams),f=h.next();!f.done;f=h.next())u.g[f.value.id]=52;for(h=c(t.imageStreams),f=h.next();!f.done;f=h.next())sp(u,f.value);for(f=c(t.variants),h=f.next();!h.done;h=f.next())ap(u,h.value);return u=function(e,t,n){for(var r=new Map,i=Cp(n),o=new Map,a=(i=c(i)).next();!a.done;a=i.next()){var s=yp(e,t,n,a=a.value,r);o.set(a.id,s)}for(e=c(n.variants),t=e.next();!t.done;t=e.next())(t=t.value).audio&&o.get(t.audio.id).variantIds.push(t.id),t.video&&o.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(o.values()),Me:Array.from(r.values())}}(o,u,t),o=u.streams,u=u.Me,f=e.i,h=i.offline.usePersistentLicense,f&&h&&(f.initData=[]),{Pg:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.Lc(),streams:o,sessionIds:h?_r(e):[],drmInfo:f,appMetadata:r,isIncomplete:!0},Me:u}}(s,f,t,n,i,o),m=p.Pg,g=p.Me,w(C,d.oa.addManifests([m]),11);case 11:if(v=C.h,wp(e),u=v[0],wp(e),h)throw h;return w(C,function(e,t,n,r,i,o,a,s,l){var d,u;return I(function(h){switch(h.g){case 1:if(d=function(t,d){var u,h,f,p,m,g,v,b;return I(function(y){if(1==y.g){for(u=function(){wp(e)},h={},f=c(t),p=f.next();!p.done;h={bd:h.bd,Ab:h.Ab},p=f.next())h.Ab=p.value,h.bd=void 0,m=bf(h.Ab,o),g=h.Ab.i,v=h.Ab.h,b=function(e){return function(t){return e.bd=t,Promise.resolve()}}(h),Cf(i,h.Ab.groupId,m,g,v,b),Sf(i,h.Ab.groupId,function(e){return function(){var t;return I(function(i){if(1==i.g)return t=e.Ab.g,w(i,fp(n,t,{data:e.bd},u),2);r=i.h||r,k(i)})}}(h));return w(y,function(e){return I(function(t){return 1==t.g?w(t,Promise.all(e.g.values()),2):t.return(e.fc.h)})}(i),2)}return d?(wp(e),function(e,t,n,r){if(t.expiration=n.Lc(),n=_r(n),t.sessionIds=r.offline.usePersistentLicense?n:[],pp(e)&&r.offline.usePersistentLicense&&!n.length)throw new ye(2,9,9007)}(s,r,l,o),w(y,a.updateManifest(n,r),0)):y.D(0)})},u=!1,!pp(s)||!u||mp(s)){h.D(2);break}return w(h,d(t.filter(function(e){return e.h}),!0),3);case 3:wp(e),t=t.filter(function(e){return!e.h});case 2:if(u){h.D(0);break}return w(h,d(t,!1),5);case 5:wp(e),k(h)}})}(e,g,u,m,o,i,d.oa,f,s),12);case 12:return wp(e),b=new Jf("manifest",d.path.Ya,d.path.oa,u),C.return(rp(b,m));case 3:return M(C),w(C,l.destroy(),13);case 13:if(!a){C.D(14);break}return w(C,a.stop(),14);case 14:if(!s){C.D(16);break}return w(C,s.destroy(),16);case 16:T(C,0);break;case 2:if(y=E(C),null==u){C.D(18);break}return w(C,hp(u),18);case 18:throw h||y}})}(this,e,t||{},function(){var t;return I(function(o){return 1==o.g?w(o,mi(e,r.V,i.manifest.retryParameters,n||null),2):(t=o.h,o.return(Ae(t)))})},i,o);var a=new mr(t,function(){return xf(o)});return a.finally(function(){rt(r.re,o)}),a.then=function(e){return ke("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead."),a.promise.then(e)},function(e,t){var n=t.promise;return e.Uc.push(n),t.finally(function(){rt(e.Uc,n)})}(this,a)},r.Cg=function(){return ke("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported."),!1},r.remove=function(e){return xp(this,function(e,t){var n,r,i,o,a,s;return I(function(l){switch(l.g){case 1:if(kp(),null==(n=Zf(t))||"manifest"!=n.g)throw new ye(2,9,9004,t);return r=n,i=new Rf,C(l),w(l,i.init(),4);case 4:return w(l,Bf(i,r.Ya(),r.oa()),5);case 5:return w(l,(o=l.h).getManifests([r.key()]),6);case 6:return a=l.h,s=a[0],w(l,Promise.all([vp(e,s,i),bp(o,r,s)]),2);case 2:return M(l),w(l,i.destroy(),8);case 8:T(l,0)}})}(this,e))},r.eh=function(){return xp(this,(e=this,I(function(h){switch(h.g){case 1:return kp(),t=e.V,n=e.m.drm,r=new Rf,i=!1,C(h),w(h,r.init(),4);case 4:o=[],function(e,t){e.g.forEach(function(e){t(e.getEmeSessionCell())})}(r,function(e){return o.push(e)}),a=c(o),s=a.next();case 5:if(s.done){h.D(2);break}return w(h,(l=s.value).getAll(),8);case 8:return d=h.h,w(h,tp(n,t,d),9);case 9:return u=h.h,w(h,l.remove(u),10);case 10:u.length!=d.length&&(i=!0),s=a.next(),h.D(5);break;case 2:return M(h),w(h,r.destroy(),11);case 11:T(h,3);break;case 3:return h.return(!i)}})));var e,t,n,r,i,o,a,s,l,d,u},r.list=function(){return xp(this,I(function(r){switch(r.g){case 1:return kp(),e=[],t=new Rf,C(r),w(r,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach(function(e,n){e.getCells().forEach(function(e,r){t({Ya:n,oa:r},e)})})}(t,function(t,r){n=n.then(function(){return I(function(n){if(1==n.g)return w(n,r.getAllManifests(),2);n.h.forEach(function(n,r){var i=rp(new Jf("manifest",t.Ya,t.oa,r),n);e.push(i)}),k(n)})})}),w(r,n,2);case 2:return M(r),w(r,t.destroy(),6);case 6:T(r,3);break;case 3:return r.return(e)}}));var e,t,n},H("shaka.offline.Storage",dp),dp.deleteAll=function(){var e;return I(function(t){return 1==t.g?(e=new Rf,C(t),w(t,function(e){var t,n;return I(function(r){return 1==r.g?(t=Array.from(e.g.values()),(n=0<t.length)||Ff.forEach(function(e){(e=e())&&t.push(e)}),w(r,Promise.all(t.map(function(e){return e.erase()})),2)):n?r.D(0):w(r,Promise.all(t.map(function(e){return e.destroy()})),0)})}(e),2)):5!=t.g?(M(t),w(t,e.destroy(),5)):T(t,0)})},dp.prototype.list=dp.prototype.list,dp.prototype.removeEmeSessions=dp.prototype.eh,dp.prototype.remove=dp.prototype.remove,dp.prototype.getStoreInProgress=dp.prototype.Cg,dp.prototype.store=dp.prototype.store,dp.prototype.getNetworkingEngine=dp.prototype.Mc,dp.prototype.getConfiguration=dp.prototype.getConfiguration,dp.prototype.configure=dp.prototype.configure,dp.prototype.destroy=dp.prototype.destroy,dp.support=up;var Sp=new cp,Ep=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");function Mp(){}function Tp(){for(var e=c(jp),t=e.next();!t.done;t=e.next()){t=t.value;try{t.Tf()}catch(n){G("Error installing polyfill!",n)}}}function Ap(e,t){for(var n={priority:t||0,Tf:e},r=c(re(jp)),i=r.next();!i.done;i=r.next()){var o=(i=i.value).wa;if(i.item.priority<n.priority)return void jp.splice(o,0,n)}jp.push(n)}Cc.offline=up,H("shaka.polyfill",Mp),Mp.register=Ap,Mp.installAll=Tp;var jp=[];function Op(){}function Pp(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=c(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())Lp(t.value)}function Lp(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||null==e?this.removeAttribute(t):this.setAttribute(t,e)}})}function Ip(){}function Np(){kv()}function Rp(){}function Dp(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",Bp),document.addEventListener("webkitfullscreenerror",Bp),document.addEventListener("mozfullscreenchange",Bp),document.addEventListener("mozfullscreenerror",Bp),document.addEventListener("MSFullscreenChange",Bp),document.addEventListener("MSFullscreenError",Bp)}}function Bp(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function zp(){}function Fp(){}function Hp(){}function qp(){(bn()||yn()||kn("PlayStation 5")||!navigator.mediaCapabilities)&&(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Vp=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Up)}function Up(e){var t,n,r,i,o,a,s,l,c,d;return I(function(u){switch(u.g){case 1:if(t={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:e},!e)return u.return(t);if("media-source"==e.type){if(!mn()||e.video&&(n=e.video.contentType,!MediaSource.isTypeSupported(n))||e.audio&&(r=e.audio.contentType,!MediaSource.isTypeSupported(r)))return u.return(t)}else{if("file"!=e.type)return u.return(t);if(e.video&&!gn(e.video.contentType)||e.audio&&!gn(e.audio.contentType))return u.return(t)}return e.keySystemConfiguration?(i=e.keySystemConfiguration,o=[],a=[],i.audio&&(s={robustness:i.audio.robustness||"",contentType:e.audio.contentType},o.push(s)),i.video&&(l={robustness:i.video.robustness||"",contentType:e.video.contentType},a.push(l)),c={initDataTypes:[i.initDataType],distinctiveIdentifier:i.distinctiveIdentifier,persistentState:i.persistentState,sessionTypes:i.sessionTypes},o.length&&(c.audioCapabilities=o),a.length&&(c.videoCapabilities=a),x(u,3),w(u,navigator.requestMediaKeySystemAccess(i.keySystem,[c]),5)):(t.supported=!0,u.return(Promise.resolve(t)));case 5:d=u.h,S(u,4);break;case 3:E(u);case 4:d&&(t.supported=!0,t.keySystemAccess=d);case 2:return u.return(t)}})}Mp.Aria=Op,Op.install=Pp,Ap(Pp),Mp.EncryptionScheme=Ip,Ip.install=Np,Ap(Np,-2),Mp.Fullscreen=Rp,Rp.install=Dp,Ap(Dp),Mp.MathRound=zp,zp.install=Fp,Ap(Fp),Mp.MediaCapabilities=Hp,Hp.install=qp;var Vp=null;function Xp(){}function Gp(){var t=wn();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some(function(e){return e.startsWith("codecs=")})?cast.__platform__.canDisplayType(t):e(t)}}():t?(function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(/ *; */)[0].split("/")[1].toLowerCase()&&e(t)}}(),12>=t?(Wp(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):Wp()):(kn("Tizen 2")||kn("Tizen 3")||kn("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=on(t)&&e(t)}}()),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;kn("Web0S")||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),r=n.findIndex(function(e){return e.startsWith("codecs=")});if(0>r)return e(t);var i=n[r].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),o=i.findIndex(function(e){return e.startsWith("vp09")});return 0<=o&&(i[o]="vp9",n[r]='codecs="'+i.join(",")+'"',t=n.join("; ")),e(t)})}()}function Wp(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(t){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];return(n=e.apply(this,n)).abort=function(){},n}}function Jp(){}function Zp(){screen.orientation||null!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new Kp;screen.orientation=n,t(),e.addEventListener("orientationchange",function(){t();var e=new q("change");n.dispatchEvent(e)})}()}function Kp(){$.call(this),this.type="",this.angle=0}function Yp(){}function Qp(){e.HTMLVideoElement&&e.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=$p,e.MediaKeys=nm,e.MediaKeySystemAccess=tm,navigator.requestMediaKeySystemAccess=_p)}function _p(e,t){try{var n=new tm(e,t);return Promise.resolve(n)}catch(r){return Promise.reject(r)}}function $p(e){var t=this.mediaKeys;return t&&t!=e&&rm(t,null),delete this.mediaKeys,(this.mediaKeys=e)?rm(e,this):Promise.resolve()}function em(e){if(Pt(e=Ot(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=Ut(e=Ht(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=jt(e),this.dispatchEvent(t)}function tm(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(var n=c(t),r=n.next();!r.done;r=n.next()){var i=r.value;if("required"==i.persistentState)r=null;else{r={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:i.initDataTypes,sessionTypes:["temporary"],label:i.label};var o=!1,a=!1;if(i.audioCapabilities)for(var s=c(i.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(o=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(r.audioCapabilities.push(l),a=!0));if(i.videoCapabilities)for(l=(i=c(i.videoCapabilities)).next();!l.done;l=i.next())(s=l.value).contentType&&(o=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,s.contentType.split(";")[0])&&(r.videoCapabilities.push(s),a=!0));o||(a=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),r=a?r:null}if(r)return void(this.g=r)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function nm(e){this.g=new WebKitMediaKeys(e),this.h=new Dr}function rm(e,t){if(e.h.Yb(),!t)return Promise.resolve();e.h.o(t,"webkitneedkey",em);try{return ba(t,HTMLMediaElement.HAVE_METADATA,e.h,function(){t.webkitSetMediaKeys(e.g)}),Promise.resolve()}catch(n){return Promise.reject(n)}}function im(e){$.call(this),this.j=null,this.l=e,this.i=this.g=null,this.h=new Dr,this.sessionId="",this.expiration=NaN,this.closed=new Dt,this.keyStatuses=new am}function om(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new q("keystatuseschange"),e.dispatchEvent(n)}function am(){this.size=0,this.g=void 0}function sm(){}function lm(){!e.HTMLVideoElement||!e.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,e.MediaKeys=fm,e.MediaKeySystemAccess=um,navigator.requestMediaKeySystemAccess=cm,HTMLMediaElement.prototype.setMediaKeys=hm)}function cm(e,t){try{var n=new um(e,t);return Promise.resolve(n)}catch(r){return Promise.reject(r)}}function dm(e){if(e.initData){var t=new CustomEvent("encrypted");t.initDataType="cenc",t.initData=jt(function(e){if(!e)return e;var t=new Pd(e);if(1>=t.data.length)return e;e=[];for(var n={},r=(t=c(t.data)).next();!r.done;n={cd:n.cd},r=t.next())n.cd=r.value,e.some(function(e){return function(t){return Tt(t,e.cd)}}(n))||e.push(n.cd);return Qt.apply(Gt,d(e))}(e.initData)),this.dispatchEvent(t)}}function um(e,t){this.keySystem=e;for(var n=!1,r=c(t),i=r.next();!i.done;i=r.next()){var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(i=i.value).initDataTypes,sessionTypes:["temporary"],label:i.label},a=!1;if(i.audioCapabilities)for(var s=c(i.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(a=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(o.audioCapabilities.push(l),n=!0));if(i.videoCapabilities)for(l=(s=c(i.videoCapabilities)).next();!l.done;l=s.next())(l=l.value).contentType&&(a=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(o.videoCapabilities.push(l),n=!0));if(a||(n=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==i.persistentState&&(n=!1),n)return void(this.g=o)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function hm(e){var t=this.mediaKeys;return t&&t!=e&&pm(t,null),delete this.mediaKeys,(this.mediaKeys=e)?pm(e,this):Promise.resolve()}function fm(e){this.g=new MSMediaKeys(e),this.h=new Dr}function pm(e,t){if(e.h.Yb(),!t)return Promise.resolve();e.h.o(t,"msneedkey",dm);try{return ba(t,HTMLMediaElement.HAVE_METADATA,e.h,function(){t.msSetMediaKeys(e.g)}),Promise.resolve()}catch(n){return Promise.reject(n)}}function mm(e){$.call(this),this.j=null,this.l=e,this.i=this.g=null,this.h=new Dr,this.sessionId="",this.expiration=NaN,this.closed=new Dt,this.keyStatuses=new vm}function gm(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new q("keystatuseschange"),e.dispatchEvent(n)}function vm(){this.size=0,this.g=void 0}function bm(){}function ym(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=wm,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=km,e.MediaKeys=xm,e.MediaKeySystemAccess=Cm)}function wm(){return Promise.reject(Error("The key system specified is not supported."))}function km(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function xm(){throw new TypeError("Illegal constructor.")}function Cm(){throw this.keySystem="",new TypeError("Illegal constructor.")}function Sm(){}function Em(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)zm="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Tm,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Am,e.MediaKeys=Om,e.MediaKeySystemAccess=jm}}function Mm(e){return zm?zm+e.charAt(0).toUpperCase()+e.slice(1):e}function Tm(e,t){try{var n=new jm(e,t);return Promise.resolve(n)}catch(r){return Promise.reject(r)}}function Am(e){var t=this.mediaKeys;return t&&t!=e&&Pm(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Pm(e,this),Promise.resolve()}function jm(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var r=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video");for(var o=c(t),a=o.next();!a.done;a=o.next()){var s={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(a=a.value).initDataTypes,sessionTypes:["temporary"],label:a.label},l=!1;if(a.audioCapabilities)for(var d=c(a.audioCapabilities),u=d.next();!u.done;u=d.next())(u=u.value).contentType&&(l=!0,i.canPlayType(u.contentType.split(";")[0],this.g)&&(s.audioCapabilities.push(u),r=!0));if(a.videoCapabilities)for(u=(d=c(a.videoCapabilities)).next();!u.done;u=d.next())(u=u.value).contentType&&(l=!0,i.canPlayType(u.contentType,this.g)&&(s.videoCapabilities.push(u),r=!0));if(l||(r=i.canPlayType("video/mp4",this.g)||i.canPlayType("video/webm",this.g)),"required"==a.persistentState&&(n?(s.persistentState="required",s.sessionTypes=["persistent-license"]):r=!1),r)return void(this.h=s)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(n=Error(n)).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function Om(e){this.l=e,this.g=null,this.h=new Dr,this.i=[],this.j=new Map}function Pm(e,t){e.g=t,e.h.Yb();var n=zm;t&&(e.h.o(t,n+"needkey",function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=jt(t.initData),e.g.dispatchEvent(n)}),e.h.o(t,n+"keymessage",function(t){var n=Lm(e,t.sessionId);n&&(t=new q("message",t=(new Map).set("messageType",null==n.keyStatuses.g?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))}),e.h.o(t,n+"keyadded",function(t){(t=Lm(e,t.sessionId))&&(Dm(t,"usable"),t.g&&t.g.resolve(),t.g=null)}),e.h.o(t,n+"keyerror",function(t){var n=Lm(e,t.sessionId);n&&n.handleError(t)}))}function Lm(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function Im(e,t,n){$.call(this),this.j=e,this.s=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new Dt,this.keyStatuses=new Bm}function Nm(e,t,n){if(e.s)return Promise.reject(Error("The session is already initialized."));e.s=!0;try{if("persistent-license"==e.l)if(n)var r=Ot(Ut("LOAD_SESSION|"+n));else{var i=Ut("PERSISTENT|");r=Qt(i,t)}else r=Ot(t)}catch(a){return Promise.reject(a)}e.h=new Dt;var o=Mm("generateKeyRequest");try{e.j[o](e.i,r)}catch(a){if("InvalidStateError"!=a.name)return e.h=null,Promise.reject(a);new pn(function(){try{e.j[o](e.i,r)}catch(t){e.h.reject(t),e.h=null}}).U(.01)}return e.h}function Rm(e,t,n){if(e.g)e.g.then(function(){return Rm(e,t,n)}).catch(function(){return Rm(e,t,n)});else{if(e.g=t,"webkit-org.w3.clearkey"==e.i){var r=Ft(n),i=JSON.parse(r);"oct"!=i.keys[0].kty&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),r=Zt(i.keys[0].k),i=Zt(i.keys[0].kid)}else r=Ot(n),i=null;var o=Mm("addKey");try{e.j[o](e.i,r,i,e.sessionId)}catch(a){e.g.reject(a),e.g=null}}}function Dm(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new q("keystatuseschange"),e.dispatchEvent(n)}function Bm(){this.size=0,this.g=void 0}Hp.originalMcap=Vp,Ap(qp,-1),Mp.MediaSource=Xp,Xp.install=Gp,Ap(Gp),Mp.Orientation=Jp,Jp.install=Zp,g(Kp,$),Kp.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},Kp.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},Ap(Zp),Mp.PatchedMediaKeysApple=Yp,Yp.install=Qp,tm.prototype.createMediaKeys=function(){var e=new nm(this.keySystem);return Promise.resolve(e)},tm.prototype.getConfiguration=function(){return this.g},nm.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new im(this.g)},nm.prototype.setServerCertificate=function(){return Promise.resolve(!1)},g(im,$),(r=im.prototype).generateRequest=function(e,t){var n=this;this.g=new Dt;try{var r=this.l.createSession("video/mp4",Ot(t));this.j=r,this.sessionId=r.sessionId||"",this.h.o(this.j,"webkitkeymessage",function(e){n.g&&(n.g.resolve(),n.g=null),e=new q("message",e=(new Map).set("messageType",null==n.keyStatuses.g?"license-request":"license-renewal").set("message",jt(e.message))),n.dispatchEvent(e)}),this.h.o(r,"webkitkeyadded",function(){n.i&&(om(n,"usable"),n.i.resolve(),n.i=null)}),this.h.o(r,"webkitkeyerror",function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.j.error,null!=n.g)n.g.reject(e),n.g=null;else if(null!=n.i)n.i.reject(e),n.i=null;else switch(n.j.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:om(n,"output-not-allowed");break;default:om(n,"internal-error")}}),om(this,"status-pending")}catch(i){this.g.reject(i)}return this.g},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.i=new Dt;try{this.j.update(Ot(e))}catch(t){this.i.reject(t)}return this.i},r.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Yb()}catch(Dy){this.closed.reject(Dy)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=am.prototype).forEach=function(e){this.g&&e(this.g,fi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=fi.value();return!(!this.g||!Tt(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){},Ap(Qp),Mp.PatchedMediaKeysMs=sm,sm.install=lm,um.prototype.createMediaKeys=function(){var e=new fm(this.keySystem);return Promise.resolve(e)},um.prototype.getConfiguration=function(){return this.g},fm.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new mm(this.g)},fm.prototype.setServerCertificate=function(){return Promise.resolve(!1)},g(mm,$),(r=mm.prototype).generateRequest=function(e,t){var n=this;this.g=new Dt;try{this.j=this.l.createSession("video/mp4",Ot(t),null),this.h.o(this.j,"mskeymessage",function(e){n.g&&(n.g.resolve(),n.g=null),e=new q("message",e=(new Map).set("messageType",null==n.keyStatuses.g?"license-request":"license-renewal").set("message",jt(e.message))),n.dispatchEvent(e)}),this.h.o(this.j,"mskeyadded",function(){n.g?(gm(n,"usable"),n.g.resolve(),n.g=null):n.i&&(gm(n,"usable"),n.i.resolve(),n.i=null)}),this.h.o(this.j,"mskeyerror",function(){var e=Error("EME PatchedMediaKeysMs key error");if(e.errorCode=n.j.error,null!=n.g)n.g.reject(e),n.g=null;else if(null!=n.i)n.i.reject(e),n.i=null;else switch(n.j.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:gm(n,"output-not-allowed");break;default:gm(n,"internal-error")}}),gm(this,"status-pending")}catch(r){this.g.reject(r)}return this.g},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.i=new Dt;try{this.j.update(Ot(e))}catch(t){this.i.reject(t)}return this.i},r.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Yb()}catch(Dy){this.closed.reject(Dy)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=vm.prototype).forEach=function(e){this.g&&e(this.g,fi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=fi.value();return!(!this.g||!Tt(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){},Ap(lm),Mp.PatchedMediaKeysNop=bm,bm.install=ym,xm.prototype.createSession=function(){},xm.prototype.setServerCertificate=function(){},Cm.prototype.getConfiguration=function(){},Cm.prototype.createMediaKeys=function(){},Ap(ym,-10),Mp.PatchedMediaKeysWebkit=Sm,Sm.install=Em,jm.prototype.createMediaKeys=function(){var e=new Om(this.g);return Promise.resolve(e)},jm.prototype.getConfiguration=function(){return this.h},Om.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.g||document.createElement("video");return t.src||(t.src="about:blank"),e=new Im(t,this.l,e),this.i.push(e),e},Om.prototype.setServerCertificate=function(){return Promise.resolve(!1)},g(Im,$),(r=Im.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.h?(45==e.systemCode&&(t.message="Unsupported session type."),this.h.reject(t),this.h=null):e.sessionId&&this.g?(this.g.reject(t),this.g=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Dm(this,"output-restricted"):Dm(this,1==t?"expired":"internal-error"))},r.generateRequest=function(e,t){return Nm(this,t,null)},r.load=function(e){return"persistent-license"==this.l?Nm(this,null,e):Promise.reject(Error("Not a persistent session."))},r.update=function(e){var t=new Dt;return Rm(this,t,e),t},r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=Mm("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(t){}}return this.closed.resolve(),this.closed},r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(r=Bm.prototype).forEach=function(e){this.g&&e(this.g,fi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=fi.value();return!(!this.g||!Tt(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){};var zm="";function Fm(){}function Hm(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=Um,Object.defineProperty(t,"disablePictureInPicture",{get:Xm,set:Gm,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Vm,document.addEventListener("webkitpresentationmodechanged",qm,!0))}}function qm(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function Um(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Vm(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function Xm(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function Gm(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function Wm(){}function Jm(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=Zm))}function Zm(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function Km(){}function Ym(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Qm)}function Qm(){return new Promise(function(e,t){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(t,n){e({usage:t,quota:n})},t)})}function _m(){}function $m(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch(function(){}),e}}}function eg(){}function tg(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in t&&(t.getVideoPlaybackQuality=ng)}}function ng(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function rg(){}function ig(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=og;else if(6==n)t=ag;else{try{var r=!!og(1,2,"")}catch(i){r=!1}r&&(t=og)}t&&(e.VTTCue=function(e,n,r){return t(e,n,r)})}}function og(t,n,r){return new e.TextTrackCue(t,n,r)}function ag(t,n,r){return new e.TextTrackCue(t+"-"+n+"-"+r,t,n,r)}function sg(){}Ap(Em),Mp.PiPWebkit=Fm,Fm.install=Hm,Ap(Hm),Mp.RandomUUID=Wm,Wm.install=Jm,Ap(Jm),Mp.StorageEstimate=Km,Km.install=Ym,Ap(Ym),Mp.VideoPlayPromise=_m,_m.install=$m,Ap($m),Mp.VideoPlaybackQuality=eg,eg.install=tg,Ap(tg),Mp.VTTCue=rg,rg.install=ig,Ap(ig),sg.prototype.parseInit=function(){},sg.prototype.parseMedia=function(e,t){for(var n=null,r=[],i=Ft(e).split(/\r?\n/),o=(i=c(i)).next();!o.done;o=i.next())if((o=o.value)&&!/^\s+$/.test(o)&&(o=lg.exec(o))){var a=cg.exec(o[1]);o=new at(a=60*parseInt(a[1],10)+parseFloat(a[2].replace(",",".")),t.segmentEnd?t.segmentEnd:a+2,o[2]),n&&(n.endTime=a,r.push(n)),n=o}return n&&r.push(n),r},H("shaka.text.LrcTextParser",sg),sg.prototype.parseMedia=sg.prototype.parseMedia,sg.prototype.parseInit=sg.prototype.parseInit;var lg=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,cg=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function dg(){}function ug(e,t,n,r,i,o,a,s,l,d,u){var h=e.parentNode;if(e.nodeType==Node.COMMENT_NODE)return null;if(e.nodeType==Node.TEXT_NODE){if(!u)return null;var f=document.createElement("span");f.textContent=e.textContent}else f=e;for(var p=null,m=c(Bg),g=m.next();!g.done&&!(p=vg(f,"backgroundImage",r,"#",g.value)[0]);g=m.next());if(m=u,("p"==e.nodeName||p)&&(u=!0),s="default"==(f.getAttribute("xml:space")||(s?"default":"preserve")),e=[],!(g=Array.from(f.childNodes).every(function(e){return e.nodeType==Node.TEXT_NODE})))for(var v=c(f.childNodes),b=v.next();!b.done;b=v.next())(b=ug(b.value,t,n,r,i,o,a,s,l,f,u))&&e.push(b);r=null!=d,v=/\S/.test(f.textContent);var y=f.hasAttribute("begin")||f.hasAttribute("end")||f.hasAttribute("dur");if(!(y||v||"br"==f.tagName||0!=e.length||r&&!s))return null;for(v=(b=yg(f,n)).start,b=b.end;h&&h.nodeType==Node.ELEMENT_NODE&&"tt"!=h.tagName;)v=(b=bg(h,n,v,b)).start,b=b.end,h=h.parentNode;if(null==v&&(v=0),v+=t,b=null==b?1/0:b+t,!y&&0<e.length)for(v=1/0,b=0,n=(t=c(e)).next();!n.done;n=t.next())n=n.value,v=Math.min(v,n.startTime),b=Math.max(b,n.endTime);if("br"==f.tagName)return(i=new at(v,b,"")).lineBreak=!0,i;if(t="",g&&(t=f.textContent,s&&(t=(t=t.trim()).replace(/\s+/g," "))),(t=new at(v,b,t)).nestedCues=e,u||(t.isContainer=!0),l&&(t.cellResolution=l),l=vg(f,"region",o,"")[0],f.hasAttribute("region")&&l&&l.getAttribute("xml:id")){var w=l.getAttribute("xml:id");t.region=a.filter(function(e){return e.id==w})[0]}return a=l,d&&r&&!f.getAttribute("region")&&!f.getAttribute("style")&&(a=vg(d,"region",o,"")[0]),function(e,t,n,r,i,o,a){if("rtl"==fg(t,n,i,"direction",o=o||a)&&(e.direction="rtl"),"tb"==(a=fg(t,n,i,"writingMode",o))||"tblr"==a?e.writingMode="vertical-lr":"tbrl"==a?e.writingMode="vertical-rl":"rltb"==a||"rl"==a?e.direction="rtl":a&&(e.direction=ft),(a=fg(t,n,i,"textAlign",!0))?(e.positionAlign=Ng[a],e.lineAlign=Ig[a],e.textAlign=dt[a.toUpperCase()]):e.textAlign="start",(a=fg(t,n,i,"displayAlign",!0))&&(e.displayAlign=ht[a.toUpperCase()]),(a=fg(t,n,i,"color",o))&&(e.color=a),(a=fg(t,n,i,"backgroundColor",o))&&(e.backgroundColor=a),(a=fg(t,n,i,"border",o))&&(e.border=a),(a=fg(t,n,i,"fontFamily",o))&&(e.fontFamily=a),(a=fg(t,n,i,"fontWeight",o))&&"bold"==a&&(e.fontWeight=700),a=fg(t,n,i,"wrapOption",o),e.wrapLine=!a||"noWrap"!=a,(a=fg(t,n,i,"lineHeight",o))&&a.match(Eg)&&(e.lineHeight=a),(a=fg(t,n,i,"fontSize",o))&&(a.match(Eg)||a.match(Sg))&&(e.fontSize=a),(a=fg(t,n,i,"fontStyle",o))&&(e.fontStyle=xt[a.toUpperCase()]),r){a=r.getAttribute("imageType")||r.getAttribute("imagetype");var s=r.getAttribute("encoding");r=r.textContent.trim(),"PNG"==a&&"Base64"==s&&r&&(e.backgroundImage="data:image/png;base64,"+r)}(r=fg(t,n,i,"textOutline",o))&&((r=r.split(" "))[0].match(Eg)?e.textStrokeColor=e.color:(e.textStrokeColor=r[0],r.shift()),r[0]&&r[0].match(Eg)?e.textStrokeWidth=r[0]:e.textStrokeColor=""),(r=fg(t,n,i,"letterSpacing",o))&&r.match(Eg)&&(e.letterSpacing=r),(r=fg(t,n,i,"linePadding",o))&&r.match(Eg)&&(e.linePadding=r),(o=fg(t,n,i,"opacity",o))&&(e.opacity=parseFloat(o)),(n=pg(n,i,"textDecoration"))&&hg(e,n),(t=mg(t,i,"textDecoration"))&&hg(e,t)}(t,f,a,p,i,m,0==e.length),t}function hg(e,t){for(var n=c(t.split(" ")),r=n.next();!r.done;r=n.next())switch(r.value){case"underline":e.textDecoration.includes("underline")||e.textDecoration.push("underline");break;case"noUnderline":e.textDecoration.includes("underline")&&rt(e.textDecoration,"underline");break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&rt(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&rt(e.textDecoration,"overline")}}function fg(e,t,n,r,i){return i=void 0===i||i,(e=mg(e,n,r))?e:i?pg(t,n,r):null}function pg(e,t,n){if(!e)return null;var r=zd(e,Dg,n);return r||gg(e,t,n)}function mg(e,t,n){var r=zd(e,Dg,n);return r||gg(e,t,n)}function gg(e,t,n){e=vg(e,"style",t,"");for(var r=null,i=0;i<e.length;i++){var o=Bd(e[i],"urn:ebu:tt:style",n);o||(o=zd(e[i],Dg,n)),o||(o=mg(e[i],t,n)),o&&(r=o)}return r}function vg(e,t,n,r,i){var o=[];if(!e||1>n.length)return o;var a=e;for(e=null;a&&!(e=i?Bd(a,i,t):a.getAttribute(t))&&(a=a.parentNode)instanceof Element;);if(t=e)for(i=(t=c(t.split(" "))).next();!i.done;i=t.next())for(i=i.value,a=(e=c(n)).next();!a.done;a=e.next())if(r+(a=a.value).getAttribute("xml:id")==i){o.push(a);break}return o}function bg(e,t,n,r){return e=yg(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==r?r=e.end:null!=e.start&&(r+=e.start),{start:n,end:r}}function yg(e,t){var n=wg(e.getAttribute("begin"),t),r=wg(e.getAttribute("end"),t),i=wg(e.getAttribute("dur"),t);return null==r&&null!=i&&(r=n+i),{start:n,end:r}}function wg(e,t){var n=null;if(Tg.test(e)){n=Tg.exec(e);var r=Number(n[1]),i=Number(n[2]),o=Number(n[3]),a=Number(n[4]);n=(o+=(a+=(Number(n[5])||0)/t.h)/t.frameRate)+60*i+3600*r}else if(Ag.test(e))n=kg(Ag,e);else if(jg.test(e))n=kg(jg,e);else if(Og.test(e))n=Og.exec(e),n=Number(n[1])/t.frameRate;else if(Pg.test(e))n=Pg.exec(e),n=Number(n[1])/t.g;else if(Lg.test(e))n=kg(Lg,e);else if(e)throw new ye(2,2,2001,"Could not parse cue time range in TTML");return n}function kg(e,t){var n=e.exec(t);return null==n||""==n[0]?null:(Number(n[4])||0)/1e3+(Number(n[3])||0)+60*(Number(n[2])||0)+3600*(Number(n[1])||0)}function xg(e,t,n,r){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(r),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}hn["application/x-subtitle-lrc"]=function(){return new sg},dg.prototype.parseInit=function(){},dg.prototype.parseMedia=function(e,t){var n=Ft(e),r=[],i=new DOMParser,o=null;if(""==n)return r;try{o=i.parseFromString(n,"text/xml")}catch(w){throw new ye(2,2,2005,"Failed to parse TTML.")}if(o){if(n=o.getElementsByTagName("parsererror")[0])throw new ye(2,2,2005,n.textContent);var a=o.getElementsByTagName("tt")[0];if(!a)throw new ye(2,2,2005,"TTML does not contain <tt> tag.");if(!(o=a.getElementsByTagName("body")[0]))return[];var s=zd(a,Rg,"frameRate"),l=zd(a,Rg,"subFrameRate"),d=zd(a,Rg,"frameRateMultiplier"),u=zd(a,Rg,"tickRate"),h=zd(a,Rg,"cellResolution");if(n=a.getAttribute("xml:space")||"default",i=zd(a,Dg,"extent"),"default"!=n&&"preserve"!=n)throw new ye(2,2,2005,"Invalid xml:space value: "+n);n="default"==n,s=new xg(s,l,d,u),h=h&&(h=/^(\d+) (\d+)$/.exec(h))?{columns:parseInt(h[1],10),rows:parseInt(h[2],10)}:null,l=(l=a.getElementsByTagName("metadata")[0])?function(e){return Array.from(e.childNodes).filter(function(e){return e instanceof Element})}(l):[],d=Array.from(a.getElementsByTagName("style")),u=[];for(var f=c(a=Array.from(a.getElementsByTagName("region"))),p=f.next();!p.done;p=f.next()){var m=p.value;p=new Ct;var g=m.getAttribute("xml:id");if(g){p.id=g;var v,b,y=null;i&&(y=Cg.exec(i)||Mg.exec(i)),g=y?Number(y[1]):null,y=y?Number(y[2]):null,(v=pg(m,d,"extent"))&&null!=(v=(b=Cg.exec(v))||Mg.exec(v))&&(p.width=Number(v[1]),p.height=Number(v[2]),b||(null!=g&&(p.width=100*p.width/g),null!=y&&(p.height=100*p.height/y)),p.widthUnits=b||null!=g?St:0,p.heightUnits=b||null!=y?St:0),(m=pg(m,d,"origin"))&&null!=(v=(b=Cg.exec(m))||Mg.exec(m))&&(p.viewportAnchorX=Number(v[1]),p.viewportAnchorY=Number(v[2]),b||(null!=y&&(p.viewportAnchorY=100*p.viewportAnchorY/y),null!=g&&(p.viewportAnchorX=100*p.viewportAnchorX/g)),p.viewportAnchorUnits=b||null!=g?St:0)}else p=null;p&&u.push(p)}if(Rd(o,"p").length)throw new ye(2,2,2001,"<p> can only be inside <div> in TTML");for(f=(i=c(Rd(o,"div"))).next();!f.done;f=i.next())if(Rd(f.value,"span").length)throw new ye(2,2,2001,"<span> can only be inside <p> in TTML");(o=ug(o,t.periodStart,s,l,d,a,u,n,h,null,!1))&&r.push(o)}return r},H("shaka.text.TtmlTextParser",dg),dg.prototype.parseMedia=dg.prototype.parseMedia,dg.prototype.parseInit=dg.prototype.parseInit;var Cg=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Sg=/^(\d{1,2}(?:\.\d+)?|100)%$/,Eg=/^(\d+px|\d+em|\d*\.?\d+c)$/,Mg=/^(\d+)px (\d+)px$/,Tg=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ag=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,jg=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Og=/^(\d*(?:\.\d*)?)f$/,Pg=/^(\d*(?:\.\d*)?)t$/,Lg=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,Ig={left:gt,center:"center",right:"end",start:gt,end:"end"},Ng={left:"line-left",center:"center",right:"line-right"},Rg=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Dg=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Bg=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function zg(){this.C=new dg}function Fg(){}function Hg(e){for(var t=c(Object.entries(bt)),n=t.next();!n.done;n=t.next()){var r=c(n.value);n=r.next().value,r=r.next().value;var i=new at(0,0,"");i.color=r,e.set(n,i)}for(n=(t=c(Object.entries(yt))).next();!n.done;n=t.next())n=(r=c(n.value)).next().value,r=r.next().value,(i=new at(0,0,"")).backgroundColor=r,e.set(n,i)}function qg(e,t,n){0===n.size&&Hg(n),e=function(e){for(var t=[],n=-1,r="",i=0;i<e.length;i++)if("/"===e[i]){var o=e.indexOf(">",i);if(o<=i)return e;o=e.substring(i+1,o);var a=t.pop();if(!o||!a)return e;if(a===o)r+="/"+o+">";else{if(!a.startsWith("c.")||"c"!==o)return e;r+="/"+a+">"}i+=o.length+1}else"<"===e[i]?n=i+1:">"===e[i]&&0<n&&(t.push(e.substr(n,i-n)),n=-1),r+=e[i];return r}(e);var r=Yd("<span>"+e+"</span>","span");if(r){var i=[];if(1==(r=r.childNodes).length){var o=r[0];if(o.nodeType==Node.TEXT_NODE||o.nodeType==Node.CDATA_SECTION_NODE)return void(t.payload=e)}for(r=(e=c(r)).next();!r.done;r=e.next())Vg(r.value,t,i,n);t.nestedCues=i}else t.payload=e}function Ug(e,t){return e&&0<e.length?e:t}function Vg(e,t,n,r){var i=t.clone();if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName)for(var o=c(e.nodeName.split(/[ .]+/)),a=o.next();!a.done;a=o.next()){if(a=a.value,r.has(a)){var s=r.get(a);s&&(i.backgroundColor=Ug(s.backgroundColor,i.backgroundColor),i.color=Ug(s.color,i.color),i.fontFamily=Ug(s.fontFamily,i.fontFamily),i.fontSize=Ug(s.fontSize,i.fontSize),i.fontWeight=s.fontWeight,i.fontStyle=s.fontStyle,i.opacity=s.opacity,i.wrapLine=s.wrapLine)}switch(a){case"b":i.fontWeight=700;break;case"i":i.fontStyle="italic";break;case"u":i.textDecoration.push("underline")}}if(Hd(e))for(o=!0,r=c(e.textContent.split("\n")),e=r.next();!e.done;e=r.next())e=e.value,o||((o=t.clone()).lineBreak=!0,n.push(o)),0<e.length&&((o=i.clone()).payload=e,n.push(o)),o=!1;else for(e=(t=c(e.childNodes)).next();!e.done;e=t.next())Vg(e.value,i,n,r)}function Xg(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=r[1],e.textAlign="middle"==t?ct:dt[t.toUpperCase()]):(r=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==r[1]?"vertical-lr":"vertical-rl":(r=/^size:([\d.]+)%$/.exec(t))?e.size=Number(r[1]):(r=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(r=/^region:(.*)$/.exec(t))?(t=function(e,t){var n=e.filter(function(e){return e.id==t});return n.length?n[0]:null}(n,r[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=vt[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=mt,e.line=Number(n[1]),n[2]&&(e.lineAlign=vt[n[2].toUpperCase()]))}function Gg(e){if(null==(e=kh(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function Wg(){this.g=null}function Jg(e,t,n){var r,i,o;return(new Ci).box("payl",Mi(function(e){r=Ft(e)})).box("iden",Mi(function(e){i=Ft(e)})).box("sttg",Mi(function(e){o=Ft(e)})).parse(e),r?function(e,t,n,r,i){if(r=new at(r,i,""),qg(e,r,new Map),t&&(r.id=t),n)for(e=new yh(n),t=xh(e);t;)Xg(r,t,[]),wh(e),t=xh(e);return r}(r,i,o,t,n):null}function Zg(){}function Kg(e){if(null==(e=kh(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function Yg(){this.C=new Fg}function Qg(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=c((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n")+"\n\n";return t}function _g(){}function $g(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=ev(n))&&(e.color=n),(n=t.BackColour)&&(n=ev(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=700),t.Italic&&(e.fontStyle="italic"),t.Underline&&e.textDecoration.push("underline"),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=ut,e.textAlign="start";break;case 2:e.displayAlign=ut,e.textAlign=ct;break;case 3:e.displayAlign=ut,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=ct;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=ct;break;case 11:e.displayAlign="center",e.textAlign="end"}(n=t.AlphaLevel)&&(e.opacity=parseFloat(n))}function ev(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function tv(e){return 3600*((e=sv.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}hn["application/ttml+xml"]=function(){return new dg},zg.prototype.parseInit=function(e){var t=!1;if((new Ci).box("moov",Si).box("trak",Si).box("mdia",Si).box("minf",Si).box("stbl",Si).Z("stsd",Ei).box("stpp",function(e){t=!0,e.parser.stop()}).parse(e),!t)throw new ye(2,2,2007)},zg.prototype.parseMedia=function(e,t){var n=this,r=!1,i=[];if((new Ci).box("mdat",Mi(function(e){r=!0,i=i.concat(n.C.parseMedia(e,t))})).parse(e,!1),!r)throw new ye(2,2,2007);return i},H("shaka.text.Mp4TtmlParser",zg),zg.prototype.parseMedia=zg.prototype.parseMedia,zg.prototype.parseInit=zg.prototype.parseInit,hn['application/mp4; codecs="stpp"']=function(){return new zg},hn['application/mp4; codecs="stpp.ttml"']=function(){return new zg},hn['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new zg},hn['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new zg},Fg.prototype.parseInit=function(){},Fg.prototype.parseMedia=function(e,t){var n=Ft(e),r=(n=n.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(r[0]))throw new ye(2,2,2e3);if(n=t.periodStart,r[0].includes("X-TIMESTAMP-MAP")){var i=r[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),o=r[0].match(/MPEGTS:(\d+)/m);if(i&&o){if(null==(n=Gg(new yh(i[1]))))throw new ye(2,2,2e3);for(o=Number(o[1]),i=t.segmentStart;95443.7176888889<=i;)i-=95443.7176888889,o+=8589934592;n=t.periodStart+o/9e4-n}}o=[];for(var a=(i=c(r[0].split("\n"))).next();!a.done;a=i.next())if(a=a.value,/^Region:/.test(a)){a=new yh(a);var s=new Ct;xh(a),wh(a);for(var l=xh(a);l;){var d=s,u=l;(l=/^id=(.*)$/.exec(u))?d.id=l[1]:(l=/^width=(\d{1,2}|100)%$/.exec(u))?d.width=Number(l[1]):(l=/^lines=(\d+)$/.exec(u))?(d.height=Number(l[1]),d.heightUnits=2):(l=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(d.regionAnchorX=Number(l[1]),d.regionAnchorY=Number(l[2])):(l=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(d.viewportAnchorX=Number(l[1]),d.viewportAnchorY=Number(l[2])):/^scroll=up$/.exec(u)&&(d.scroll="up"),wh(a),l=xh(a)}o.push(s)}for(Hg(i=new Map),a=[],s=(r=c(r.slice(1))).next();!s.done;s=r.next()){if((1!=(s=s.value.split("\n")).length||s[0])&&!/^NOTE($|[ \t])/.test(s[0])&&"STYLE"==s[0]&&s[1].includes("::cue")){d="global",(l=s[1].match(/\((.*)\)/))&&(d=l.pop()),l=s.slice(2,-1),s[1].includes("}")&&(u=/\{(.*?)\}/.exec(s[1]))&&(l=u[1].split(";")),u=new at(0,0,"");for(var h=!1,f=0;f<l.length;f++){var p=/^\s*([^:]+):\s*(.*)/.exec(l[f]);if(p){var m=p[2].trim().replace(";","");switch(p[1].trim()){case"background-color":h=!0,u.backgroundColor=m;break;case"color":h=!0,u.color=m;break;case"font-family":h=!0,u.fontFamily=m;break;case"font-size":h=!0,u.fontSize=m;break;case"font-weight":700<=parseInt(m,10)&&(h=!0,u.fontWeight=700);break;case"font-style":switch(m){case"normal":h=!0,u.fontStyle=kt;break;case"italic":h=!0,u.fontStyle="italic";break;case"oblique":h=!0,u.fontStyle="oblique"}break;case"opacity":h=!0,u.opacity=parseFloat(m);break;case"white-space":h=!0,u.wrapLine="noWrap"!=m}}}h&&i.set(d,u)}if(f=n,1==s.length&&!s[0]||/^NOTE($|[ \t])/.test(s[0])||"STYLE"==s[0])s=null;else{if(d=null,s[0].includes("--\x3e")||(d=s[0],s.splice(0,1)),u=Gg(l=new yh(s[0])),p=kh(l,/[ \t]+--\x3e[ \t]+/g),h=Gg(l),null==u||null==p||null==h)throw new ye(2,2,2001,"Could not parse cue time range in WebVTT");for(u+=f,h+=f,f=s.slice(1).join("\n").trim(),i.has("global")?((s=i.get("global").clone()).startTime=u,s.endTime=h,s.payload=""):s=new at(u,h,""),qg(f,s,i),wh(l),u=xh(l);u;)Xg(s,u,o),wh(l),u=xh(l);null!=d&&(s.id=d)}s&&a.push(s)}return a},H("shaka.text.VttTextParser",Fg),Fg.prototype.parseMedia=Fg.prototype.parseMedia,Fg.prototype.parseInit=Fg.prototype.parseInit,hn["text/vtt"]=function(){return new Fg},hn['text/vtt; codecs="vtt"']=function(){return new Fg},hn['text/vtt; codecs="wvtt"']=function(){return new Fg},Wg.prototype.parseInit=function(e){var t=this,n=!1;if((new Ci).box("moov",Si).box("trak",Si).box("mdia",Si).Z("mdhd",function(e){e=Ho(e.reader,e.version),t.g=e.timescale}).box("minf",Si).box("stbl",Si).Z("stsd",Ei).box("wvtt",function(){n=!0}).parse(e),!this.g)throw new ye(2,2,2008);if(!n)throw new ye(2,2,2008)},Wg.prototype.parseMedia=function(e,t){if(!this.g)throw new ye(2,2,2008);var n,r=0,i=[],o=[],a=!1,s=!1,l=!1,d=null;if((new Ci).box("moof",Si).box("traf",Si).Z("tfdt",function(e){a=!0,r=Fo(e.reader,e.version).Xd}).Z("tfhd",function(e){d=zo(e.reader,e.flags).cf}).Z("trun",function(e){s=!0,i=qo(e.reader,e.version,e.flags).zf}).box("mdat",Mi(function(e){l=!0,n=e})).parse(e,!1),!l&&!a&&!s)throw new ye(2,2,2008);for(var u=r,h=new wi(n,0),f=c(i),p=f.next();!p.done;p=f.next()){var m=(p=p.value).ye||d,g=p.Cd?r+p.Cd:u;u=g+(m||0);var v=0;do{var b=h.T();v+=b;var y=null;"vttc"==Ai(h.T())?8<b&&(y=h.Lb(b-8)):h.skip(b-8),m&&y&&(b=Jg(y,t.periodStart+g/this.g,t.periodStart+u/this.g),o.push(b))}while(p.sampleSize&&v<p.sampleSize)}return o.filter(Te)},H("shaka.text.Mp4VttParser",Wg),Wg.prototype.parseMedia=Wg.prototype.parseMedia,Wg.prototype.parseInit=Wg.prototype.parseInit,hn['application/mp4; codecs="wvtt"']=function(){return new Wg},Zg.prototype.parseInit=function(){},Zg.prototype.parseMedia=function(e){var t=Ft(e).replace(/\r+/g,"");if(e=[],""==(t=t.trim()))return e;for(var n=(t=c(t.split("\n\n"))).next();!n.done;n=t.next()){var r=new yh((n=n.value.split("\n"))[0]),i=Kg(r),o=kh(r,/,/g);if(r=Kg(r),null==i||null==o||null==r)throw new ye(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new at(i,r,n.slice(1).join("\n").trim()))}return e},H("shaka.text.SbvTextParser",Zg),Zg.prototype.parseMedia=Zg.prototype.parseMedia,Zg.prototype.parseInit=Zg.prototype.parseInit,hn["text/x-subviewer"]=function(){return new Zg},Yg.prototype.parseInit=function(){},Yg.prototype.parseMedia=function(e,t){var n=Ft(e);return n=Ot(Ut(n=Qg(n))),this.C.parseMedia(n,t)},H("shaka.text.SrtTextParser",Yg),Yg.srt2webvtt=Qg,Yg.prototype.parseMedia=Yg.prototype.parseMedia,Yg.prototype.parseInit=Yg.prototype.parseInit,hn["text/srt"]=function(){return new Yg},_g.prototype.parseInit=function(){},_g.prototype.parseMedia=function(e){for(var t="",n="",r=(e=c(e=Ft(e).split(/\r?\n\s*\r?\n/))).next();!r.done;r=e.next()){var i=iv.exec(r.value);i&&(r=i[1],i=i[2],"V4 Styles"==r||"V4+ Styles"==r?t=i:"Events"==r&&(n=i))}e=[],r=null;for(var o=(t=c(t.split(/\r?\n/))).next();!o.done;o=t.next())if(i=o.value,!/^\s*;/.test(i)&&(o=ov.exec(i)))if(i=o[1].trim(),o=o[2].trim(),"Format"==i)r=o.split(av);else if("Style"==i){i=o.split(av),o={};for(var a=0;a<r.length&&a<i.length;a++)o[r[a]]=i[a];e.push(o)}for(r=[],t=null,i={},o=(n=c(n.split(/\r?\n/))).next();!o.done;i={Ud:i.Ud},o=n.next())if(o=o.value,!/^\s*;/.test(o)&&(a=ov.exec(o)))if(o=a[1].trim(),a=a[2].trim(),"Format"==o)t=a.split(av);else if("Dialogue"==o){a=a.split(av),o={};for(var s=0;s<t.length&&s<a.length;s++)o[t[s]]=a[s];a=new at(s=tv(o.Start),tv(o.End),a.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,"")),i.Ud=o.Style,(o=e.find(function(e){return function(t){return t.Name==e.Ud}}(i)))&&$g(a,o),r.push(a)}return r},H("shaka.text.SsaTextParser",_g),_g.prototype.parseMedia=_g.prototype.parseMedia,_g.prototype.parseInit=_g.prototype.parseInit;var nv,rv,iv=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,ov=/^\s*([^:]+):\s*(.*)/,av=/\s*,\s*/,sv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;function lv(){}function cv(){nv||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(nv=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=dv)}function dv(e,t){var n,r=this;return I(function(i){return 1==i.g?w(i,nv.call(r,e,t),2):yv(n=i.h)?(navigator.requestMediaKeySystemAccess=nv,i.return(n)):(navigator.requestMediaKeySystemAccess=uv,i.return(uv.call(r,e,t)))})}function uv(e,t){var n,r,i,o,a,s,l,d,u,h,f=this;return I(function(p){if(1==p.g){for(n=bv(e),r=[],i=c(t),o=i.next();!o.done;o=i.next())a=o.value,s=hv(a.videoCapabilities,n),l=hv(a.audioCapabilities,n),a.videoCapabilities&&a.videoCapabilities.length&&!s.length||a.audioCapabilities&&a.audioCapabilities.length&&!l.length||((d=Object.assign({},a)).videoCapabilities=s,d.audioCapabilities=l,r.push(d));if(!r.length)throw(u=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",u.code=DOMException.NOT_SUPPORTED_ERR,u;return w(p,nv.call(f,e,r),2)}return h=p.h,p.return(new vv(h,n))})}function hv(e,t){return e?e.filter(function(e){return!e.encryptionScheme||e.encryptionScheme==t}):e}function fv(){}function pv(){rv||navigator.mediaCapabilities&&(rv=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=mv)}function mv(e){var t,n,r=this;return I(function(i){return 1==i.g?w(i,rv.call(r,e),2):(t=i.h,e.keySystemConfiguration?(n=t.keySystemAccess)&&yv(n)?(navigator.mediaCapabilities.decodingInfo=rv,i.return(t)):(navigator.mediaCapabilities.decodingInfo=gv,i.return(gv.call(r,e))):i.return(t))})}function gv(e){var t,n,r,i,o,a,s,l,c,d=this;return I(function(u){switch(u.g){case 1:return t=null,e.keySystemConfiguration&&(n=e.keySystemConfiguration,r=n.keySystem,i=n.audio&&n.audio.encryptionScheme,o=n.video&&n.video.encryptionScheme,t=bv(r),a={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},i&&i!=t||o&&o!=t)?u.return(a):w(u,rv.call(d,e),2);case 2:if((s=u.h).keySystemAccess){s.keySystemAccess=new vv(s.keySystemAccess,t),u.D(3);break}if(!e.keySystemConfiguration){u.D(3);break}var h=e.keySystemConfiguration,f=[],p=[];return h.audio&&f.push({robustness:h.audio.robustness||"",contentType:e.audio.contentType}),h.video&&p.push({robustness:h.video.robustness||"",contentType:e.video.contentType}),h={initDataTypes:h.initDataType?[h.initDataType]:[],distinctiveIdentifier:h.distinctiveIdentifier,persistentState:h.persistentState,sessionTypes:h.sessionTypes},f.length&&(h.audioCapabilities=f),p.length&&(h.videoCapabilities=p),l=h,c=s,w(u,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[l]),5);case 5:c.keySystemAccess=u.h;case 3:return u.return(s)}})}function vv(e,t){this.h=e,this.g=t,this.keySystem=e.keySystem}function bv(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs-1-9":null}function yv(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!(!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)||void 0===e.encryptionScheme)}function wv(){}function kv(){cv(),pv()}hn["text/x-ssa"]=function(){return new _g},H("EmeEncryptionSchemePolyfill",lv),lv.install=cv,H("McEncryptionSchemePolyfill",fv),fv.install=pv,vv.prototype.getConfiguration=function(){var e=this.h.getConfiguration();if(e.videoCapabilities)for(var t=c(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.g;if(e.audioCapabilities)for(n=(t=c(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.g;return e},vv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()},H("EncryptionSchemePolyfills",wv),wv.install=kv,void 0!==n&&n.exports&&(n.exports=wv);for(var xv={ach:{u:"Lwo",A:"Acholi"},ady:{u:"Адыгэбзэ",A:"Adyghe"},af:{u:"Afrikaans",A:"Afrikaans"},"af-NA":{u:"Afrikaans (Namibia)",A:"Afrikaans (Namibia)"},"af-ZA":{u:"Afrikaans (South Africa)",A:"Afrikaans (South Africa)"},ak:{u:"Tɕɥi",A:"Akan"},ar:{u:"العربية",A:"Arabic"},"ar-AR":{u:"العربية",A:"Arabic"},"ar-MA":{u:"العربية",A:"Arabic (Morocco)"},"ar-SA":{u:"العربية (السعودية)",A:"Arabic (Saudi Arabia)"},"ay-BO":{u:"Aymar aru",A:"Aymara"},az:{u:"Azərbaycan dili",A:"Azerbaijani"},"az-AZ":{u:"Azərbaycan dili",A:"Azerbaijani"},"be-BY":{u:"Беларуская",A:"Belarusian"},bg:{u:"Български",A:"Bulgarian"},"bg-BG":{u:"Български",A:"Bulgarian"},bn:{u:"বাংলা",A:"Bengali"},"bn-IN":{u:"বাংলা (ভারত)",A:"Bengali (India)"},"bn-BD":{u:"বাংলা(বাংলাদেশ)",A:"Bengali (Bangladesh)"},"bs-BA":{u:"Bosanski",A:"Bosnian"},ca:{u:"Català",A:"Catalan"},"ca-ES":{u:"Català",A:"Catalan"},cak:{u:"Maya Kaqchikel",A:"Kaqchikel"},"ck-US":{u:"ᏣᎳᎩ (tsalagi)",A:"Cherokee"},cs:{u:"Čeština",A:"Czech"},"cs-CZ":{u:"Čeština",A:"Czech"},cy:{u:"Cymraeg",A:"Welsh"},"cy-GB":{u:"Cymraeg",A:"Welsh"},da:{u:"Dansk",A:"Danish"},"da-DK":{u:"Dansk",A:"Danish"},de:{u:"Deutsch",A:"German"},"de-AT":{u:"Deutsch (Österreich)",A:"German (Austria)"},"de-DE":{u:"Deutsch (Deutschland)",A:"German (Germany)"},"de-CH":{u:"Deutsch (Schweiz)",A:"German (Switzerland)"},dsb:{u:"Dolnoserbšćina",A:"Lower Sorbian"},el:{u:"Ελληνικά",A:"Greek"},"el-GR":{u:"Ελληνικά",A:"Greek (Greece)"},en:{u:"English",A:"English"},"en-GB":{u:"English (UK)",A:"English (UK)"},"en-AU":{u:"English (Australia)",A:"English (Australia)"},"en-CA":{u:"English (Canada)",A:"English (Canada)"},"en-IE":{u:"English (Ireland)",A:"English (Ireland)"},"en-IN":{u:"English (India)",A:"English (India)"},"en-PI":{u:"English (Pirate)",A:"English (Pirate)"},"en-UD":{u:"English (Upside Down)",A:"English (Upside Down)"},"en-US":{u:"English (US)",A:"English (US)"},"en-ZA":{u:"English (South Africa)",A:"English (South Africa)"},"en@pirate":{u:"English (Pirate)",A:"English (Pirate)"},eo:{u:"Esperanto",A:"Esperanto"},"eo-EO":{u:"Esperanto",A:"Esperanto"},es:{u:"Español",A:"Spanish"},"es-AR":{u:"Español (Argentine)",A:"Spanish (Argentina)"},"es-419":{u:"Español (Latinoamérica)",A:"Spanish (Latin America)"},"es-CL":{u:"Español (Chile)",A:"Spanish (Chile)"},"es-CO":{u:"Español (Colombia)",A:"Spanish (Colombia)"},"es-EC":{u:"Español (Ecuador)",A:"Spanish (Ecuador)"},"es-ES":{u:"Español (España)",A:"Spanish (Spain)"},"es-LA":{u:"Español (Latinoamérica)",A:"Spanish (Latin America)"},"es-NI":{u:"Español (Nicaragua)",A:"Spanish (Nicaragua)"},"es-MX":{u:"Español (México)",A:"Spanish (Mexico)"},"es-US":{u:"Español (Estados Unidos)",A:"Spanish (United States)"},"es-VE":{u:"Español (Venezuela)",A:"Spanish (Venezuela)"},et:{u:"eesti keel",A:"Estonian"},"et-EE":{u:"Eesti (Estonia)",A:"Estonian (Estonia)"},eu:{u:"Euskara",A:"Basque"},"eu-ES":{u:"Euskara",A:"Basque"},fa:{u:"فارسی",A:"Persian"},"fa-IR":{u:"فارسی",A:"Persian"},"fb-LT":{u:"Leet Speak",A:"Leet"},ff:{u:"Fulah",A:"Fulah"},fi:{u:"Suomi",A:"Finnish"},"fi-FI":{u:"Suomi",A:"Finnish"},"fo-FO":{u:"Føroyskt",A:"Faroese"},fr:{u:"Français",A:"French"},"fr-CA":{u:"Français (Canada)",A:"French (Canada)"},"fr-FR":{u:"Français (France)",A:"French (France)"},"fr-BE":{u:"Français (Belgique)",A:"French (Belgium)"},"fr-CH":{u:"Français (Suisse)",A:"French (Switzerland)"},"fy-NL":{u:"Frysk",A:"Frisian (West)"},ga:{u:"Gaeilge",A:"Irish"},"ga-IE":{u:"Gaeilge (Gaelic)",A:"Irish (Gaelic)"},gl:{u:"Galego",A:"Galician"},"gl-ES":{u:"Galego",A:"Galician"},"gn-PY":{u:"Avañe'ẽ",A:"Guarani"},"gu-IN":{u:"ગુજરાતી",A:"Gujarati"},"gx-GR":{u:"Ἑλληνική ἀρχαία",A:"Classical Greek"},he:{u:"עברית",A:"Hebrew"},"he-IL":{u:"עברית",A:"Hebrew"},hi:{u:"हिन्दी",A:"Hindi"},"hi-IN":{u:"हिन्दी",A:"Hindi"},hr:{u:"Hrvatski",A:"Croatian"},"hr-HR":{u:"Hrvatski",A:"Croatian"},hsb:{u:"Hornjoserbšćina",A:"Upper Sorbian"},ht:{u:"Kreyòl",A:"Haitian Creole"},hu:{u:"Magyar",A:"Hungarian"},"hu-HU":{u:"Magyar",A:"Hungarian"},"hy-AM":{u:"Հայերեն",A:"Armenian"},id:{u:"Bahasa Indonesia",A:"Indonesian"},"id-ID":{u:"Bahasa Indonesia",A:"Indonesian"},is:{u:"Íslenska",A:"Icelandic"},"is-IS":{u:"Íslenska (Iceland)",A:"Icelandic (Iceland)"},it:{u:"Italiano",A:"Italian"},"it-IT":{u:"Italiano",A:"Italian"},ja:{u:"日本語",A:"Japanese"},"ja-JP":{u:"日本語",A:"Japanese"},"jv-ID":{u:"Basa Jawa",A:"Javanese"},"ka-GE":{u:"ქართული",A:"Georgian"},"kk-KZ":{u:"Қазақша",A:"Kazakh"},km:{u:"ភាសាខ្មែរ",A:"Khmer"},"km-KH":{u:"ភាសាខ្មែរ",A:"Khmer"},kab:{u:"Taqbaylit",A:"Kabyle"},kn:{u:"ಕನ್ನಡ",A:"Kannada"},"kn-IN":{u:"ಕನ್ನಡ (India)",A:"Kannada (India)"},ko:{u:"한국어",A:"Korean"},"ko-KR":{u:"한국어 (韩国)",A:"Korean (Korea)"},ku:{u:"Kurdî",A:"Kurdish"},"ku-TR":{u:"Kurdî",A:"Kurdish"},la:{u:"Latin",A:"Latin"},"la-VA":{u:"Latin",A:"Latin"},lb:{u:"Lëtzebuergesch",A:"Luxembourgish"},"li-NL":{u:"Lèmbörgs",A:"Limburgish"},lt:{u:"Lietuvių",A:"Lithuanian"},"lt-LT":{u:"Lietuvių",A:"Lithuanian"},lv:{u:"Latviešu",A:"Latvian"},"lv-LV":{u:"Latviešu",A:"Latvian"},mai:{u:"मैथिली, মৈথিলী",A:"Maithili"},"mg-MG":{u:"Malagasy",A:"Malagasy"},mk:{u:"Македонски",A:"Macedonian"},"mk-MK":{u:"Македонски (Македонски)",A:"Macedonian (Macedonian)"},ml:{u:"മലയാളം",A:"Malayalam"},"ml-IN":{u:"മലയാളം",A:"Malayalam"},"mn-MN":{u:"Монгол",A:"Mongolian"},mr:{u:"मराठी",A:"Marathi"},"mr-IN":{u:"मराठी",A:"Marathi"},ms:{u:"Bahasa Melayu",A:"Malay"},"ms-MY":{u:"Bahasa Melayu",A:"Malay"},mt:{u:"Malti",A:"Maltese"},"mt-MT":{u:"Malti",A:"Maltese"},my:{u:"ဗမာစကာ",A:"Burmese"},nb:{u:"Norsk (bokmål)",A:"Norwegian (bokmal)"},"nb-NO":{u:"Norsk (bokmål)",A:"Norwegian (bokmal)"},ne:{u:"नेपाली",A:"Nepali"},"ne-NP":{u:"नेपाली",A:"Nepali"},nl:{u:"Nederlands",A:"Dutch"},"nl-BE":{u:"Nederlands (België)",A:"Dutch (Belgium)"},"nl-NL":{u:"Nederlands (Nederland)",A:"Dutch (Netherlands)"},"nn-NO":{u:"Norsk (nynorsk)",A:"Norwegian (nynorsk)"},no:{u:"Norsk",A:"Norwegian"},oc:{u:"Occitan",A:"Occitan"},"or-IN":{u:"ଓଡ଼ିଆ",A:"Oriya"},pa:{u:"ਪੰਜਾਬੀ",A:"Punjabi"},"pa-IN":{u:"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",A:"Punjabi (India)"},pl:{u:"Polski",A:"Polish"},"pl-PL":{u:"Polski",A:"Polish"},"ps-AF":{u:"پښتو",A:"Pashto"},pt:{u:"Português",A:"Portuguese"},"pt-BR":{u:"Português (Brasil)",A:"Portuguese (Brazil)"},"pt-PT":{u:"Português (Portugal)",A:"Portuguese (Portugal)"},"qu-PE":{u:"Qhichwa",A:"Quechua"},"rm-CH":{u:"Rumantsch",A:"Romansh"},ro:{u:"Română",A:"Romanian"},"ro-RO":{u:"Română",A:"Romanian"},ru:{u:"Русский",A:"Russian"},"ru-RU":{u:"Русский",A:"Russian"},"sa-IN":{u:"संस्कृतम्",A:"Sanskrit"},"se-NO":{u:"Davvisámegiella",A:"Northern Sámi"},"si-LK":{u:"පළාත",A:"Sinhala (Sri Lanka)"},sk:{u:"Slovenčina",A:"Slovak"},"sk-SK":{u:"Slovenčina (Slovakia)",A:"Slovak (Slovakia)"},sl:{u:"Slovenščina",A:"Slovenian"},"sl-SI":{u:"Slovenščina",A:"Slovenian"},"so-SO":{u:"Soomaaliga",A:"Somali"},sq:{u:"Shqip",A:"Albanian"},"sq-AL":{u:"Shqip",A:"Albanian"},sr:{u:"Српски",A:"Serbian"},"sr-RS":{u:"Српски (Serbia)",A:"Serbian (Serbia)"},su:{u:"Basa Sunda",A:"Sundanese"},sv:{u:"Svenska",A:"Swedish"},"sv-SE":{u:"Svenska",A:"Swedish"},sw:{u:"Kiswahili",A:"Swahili"},"sw-KE":{u:"Kiswahili",A:"Swahili (Kenya)"},ta:{u:"தமிழ்",A:"Tamil"},"ta-IN":{u:"தமிழ்",A:"Tamil"},te:{u:"తెలుగు",A:"Telugu"},"te-IN":{u:"తెలుగు",A:"Telugu"},tg:{u:"забо́ни тоҷикӣ́",A:"Tajik"},"tg-TJ":{u:"тоҷикӣ",A:"Tajik"},th:{u:"ภาษาไทย",A:"Thai"},"th-TH":{u:"ภาษาไทย (ประเทศไทย)",A:"Thai (Thailand)"},tl:{u:"Filipino",A:"Filipino"},"tl-PH":{u:"Filipino",A:"Filipino"},tlh:{u:"tlhIngan-Hol",A:"Klingon"},tr:{u:"Türkçe",A:"Turkish"},"tr-TR":{u:"Türkçe",A:"Turkish"},"tt-RU":{u:"татарча",A:"Tatar"},uk:{u:"Українська",A:"Ukrainian"},"uk-UA":{u:"Українська",A:"Ukrainian"},ur:{u:"اردو",A:"Urdu"},"ur-PK":{u:"اردو",A:"Urdu"},uz:{u:"O'zbek",A:"Uzbek"},"uz-UZ":{u:"O'zbek",A:"Uzbek"},vi:{u:"Tiếng Việt",A:"Vietnamese"},"vi-VN":{u:"Tiếng Việt",A:"Vietnamese"},"xh-ZA":{u:"isiXhosa",A:"Xhosa"},yi:{u:"ייִדיש",A:"Yiddish"},"yi-DE":{u:"ייִדיש (German)",A:"Yiddish (German)"},zh:{u:"中文",A:"Chinese"},"zh-HANS":{u:"中文简体",A:"Chinese Simplified"},"zh-HANT":{u:"中文繁體",A:"Chinese Traditional"},"zh-CN":{u:"中文(中国)",A:"Chinese Simplified (China)"},"zh-HK":{u:"中文(香港)",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"中文(新加坡)",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"中文(台灣)",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},Cv=c(Object.keys(xv)),Sv=Cv.next();!Sv.done;Sv=Cv.next()){var Ev=Sv.value;xv[Ev.toLowerCase()]=xv[Ev]}function Mv(e,t){var n=this;this.parent=e,this.controls=t,this.eventManager=new Dr,this.localization=this.controls.bb,this.player=this.controls.lc(),this.video=this.controls.Kb(),this.adManager=this.player.od(),this.ad=t.getAd(),this.eventManager.o(this.adManager,"ad-started",function(e){n.ad=e.ad}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.ad=null})}function Tv(e){return Av(e,"shaka-back-to-overflow-button")}function Av(e,t){var n=e.getElementsByClassName(t);return n.length?n[0]:null}function jv(e){e&&(e=Av(e,"shaka-chosen-item"))&&e.parentElement.focus()}function Ov(){var e=gs("i");return e.classList.add("material-icons-round"),e.classList.add("shaka-chosen-item"),e.textContent="done",e.ariaHidden="true",e}function Pv(e,t){e&&(t?e.classList.remove("shaka-hidden"):e.classList.add("shaka-hidden"))}function Lv(e,t){var n=Math.floor(e/3600),r=Math.floor(e/60%60),i=Math.floor(e%60);return 10>i&&(i="0"+i),i=r+":"+i,t&&(10>r&&(i="0"+i),i=n+":"+i),i}function Iv(e,t){Mv.call(this,e,t);var n=this;this.i=gs("div"),this.i.classList.add("shaka-ad-counter"),this.parent.appendChild(this.i),this.h=gs("span"),this.h.classList.add("shaka-ad-counter-span"),this.i.appendChild(this.h),this.g=new pn(function(){var e=Math.round(n.ad.getRemainingTime()),t=n.ad.getDuration();-1!=e&&-1!=t&&(0<e?(e=Lv(t-e,!1)+" / "+Lv(t,!1),1<n.ad.getSequenceLength()?n.h.textContent=e:(t=n.localization.resolve("AD_TIME"),n.h.textContent=t.replace("[AD_TIME]",e))):(n.g.stop(),n.h.textContent=""))}),this.eventManager.o(this.localization,"locale-updated",function(){}),this.eventManager.o(this.localization,"locale-changed",function(){}),this.eventManager.o(this.adManager,"ad-started",function(){n.g.Ga(),n.g.na(.5)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.g.stop(),n.h.textContent=""}),this.ad&&(this.g.Ga(),this.g.na(.5))}function Nv(e,t){Mv.call(this,e,t);var n=this;this.g=gs("div"),this.g.classList.add("shaka-ad-position"),Pv(this.g,!1),this.parent.appendChild(this.g),this.h=gs("span"),this.h.classList.add("shaka-ad-position-span"),this.g.appendChild(this.h),this.eventManager.o(this.localization,"locale-updated",function(){n.ad&&Rv(n)}),this.eventManager.o(this.localization,"locale-changed",function(){n.ad&&Rv(n)}),this.eventManager.o(this.adManager,"ad-started",function(){Rv(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.h.textContent="",Pv(n.g,!1)}),this.ad&&Rv(this)}function Rv(e){var t=e.ad.getSequenceLength();if(1<t){var n=e.ad.getPositionInSequence();e.h.textContent=e.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(n)).replace("[NUM_ADS]",String(t)),Pv(e.g,!0)}}function Dv(e,t){Mv.call(this,e,t);var n=this;this.button=vs(),this.parent.appendChild(this.button),this.eventManager.o(this.localization,"locale-updated",function(){n.g()}),this.eventManager.o(this.localization,"locale-changed",function(){n.g()}),this.eventManager.o(this.video,"play",function(){n.g(),n.h()}),this.eventManager.o(this.video,"pause",function(){n.g(),n.h()}),this.eventManager.o(this.video,"seeking",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-paused",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-resumed",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-started",function(){n.g(),n.h()}),this.eventManager.o(this.button,"click",function(){n.ad&&n.ad.isLinear()?$v(n.controls):_v(n.controls)}),this.ad&&(this.g(),this.h())}function Bv(e,t){Dv.call(this,e,t),this.button.classList.add("shaka-play-button"),this.button.classList.add("shaka-no-propagation"),this.h(),this.g()}function zv(t,n){Mv.call(this,t,n);var r=this;this.m=this.controls.m,this.h=this.controls.i,this.i=[],this.g=gs("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-context-menu"),this.g.classList.add("shaka-hidden"),this.h.appendChild(this.g),this.eventManager.o(this.h,"contextmenu",function(e){if(r.g.classList.contains("shaka-hidden")){e.preventDefault();var t=r.h.getBoundingClientRect();r.g.style.left=e.clientX-t.left+"px",r.g.style.top=e.clientY-t.top+"px",Pv(r.g,!0)}else Pv(r.g,!1)}),this.eventManager.o(e,"click",function(){Pv(r.g,!1)}),function(e){for(var t=c(e.m.contextMenuElements),n=t.next();!n.done;n=t.next()){n=n.value;var r=Hv.get(n);r?e.i.push(r.create(e.g,e.controls)):G("Unrecognized context menu element:",n)}}(this)}function Fv(e,t){Hv.set(e,t)}Mv.prototype.release=function(){this.eventManager.release(),this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null},H("shaka.ui.Element",Mv),Mv.prototype.release=Mv.prototype.release,g(Iv,Mv),Iv.prototype.release=function(){this.g.stop(),this.g=null,Mv.prototype.release.call(this)},H("shaka.ui.AdCounter",Iv),g(Nv,Mv),H("shaka.ui.AdPosition",Nv),g(Dv,Mv),Dv.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var e=this.ad.isPaused();else e=(e=this.controls).g.paused&&!e.ka;return e},Dv.prototype.g=function(){},Dv.prototype.h=function(){},H("shaka.ui.PlayButton",Dv),g(Bv,Dv),Bv.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")},Bv.prototype.g=function(){var e=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(e)},H("shaka.ui.BigPlayButton",Bv),g(zv,Mv),zv.prototype.release=function(){this.h=null;for(var e=c(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],Mv.prototype.release.call(this)},H("shaka.ui.ContextMenu",zv),zv.registerElement=Fv;var Hv=new Map;function qv(e,t,n,r){Mv.call(this,e,t);var i=this;this.container=gs("div"),this.container.classList.add("shaka-range-container"),this.container.classList.add.apply(this.container.classList,d(n)),this.g=!1,this.bar=document.createElement("input"),this.l=new pn(function(){i.onChangeEnd(),i.g=!1}),this.bar.classList.add("shaka-range-element"),this.bar.classList.add.apply(this.bar.classList,d(r)),this.bar.type="range",this.bar.step="any",this.bar.min="0",this.bar.max="1",this.bar.value="0",this.container.appendChild(this.bar),this.parent.appendChild(this.container),this.eventManager.o(this.bar,"mousedown",function(){i.controls.Ub()&&(i.g=!0,i.onChangeStart())}),this.eventManager.o(this.bar,"touchstart",function(e){i.controls.Ub()&&(i.g=!0,Uv(i,e),i.onChangeStart())}),this.eventManager.o(this.bar,"input",function(){i.onChange()}),this.eventManager.o(this.bar,"touchmove",function(e){i.g&&(Uv(i,e),i.onChange())}),this.eventManager.o(this.bar,"touchend",function(e){i.g&&(i.g=!1,Uv(i,e),i.onChangeEnd())}),this.eventManager.o(this.bar,"mouseup",function(){i.g&&(i.g=!1,i.onChangeEnd())})}function Uv(e,t){t.preventDefault();var n=t.changedTouches[0],r=e.bar.getBoundingClientRect(),i=parseFloat(e.bar.min),o=parseFloat(e.bar.max);(n=i+(o-i)/r.width*(n.clientX-r.left))<i?n=i:n>o&&(n=o),e.bar.value=n}function Vv(e,t){qv.call(this,e,t,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var n=this;this.j=gs("div"),this.j.classList.add("shaka-ad-markers"),this.container.insertBefore(this.j,this.container.childNodes[0]),this.m=this.controls.m,this.h=new pn(function(){n.video.currentTime=n.getValue()}),this.s=new pn(function(){Xv(n)}),this.B=!1,this.i=[],this.eventManager.o(this.localization,"locale-updated",function(){return Jv(n)}),this.eventManager.o(this.localization,"locale-changed",function(){return Jv(n)}),this.eventManager.o(this.adManager,"ad-started",function(){Wv(n)||Pv(n.container,!1)}),this.eventManager.o(this.adManager,"ad-stopped",function(){Wv(n)&&Pv(n.container,!0)}),this.eventManager.o(this.adManager,"ad-cue-points-changed",function(e){n.i=e.cuepoints,Gv(n)}),this.eventManager.o(this.player,"unloading",function(){n.i=[],Gv(n)}),this.setValue(this.video.currentTime),this.update(),Jv(this),this.ad&&Pv(this.container,!1)}function Xv(e){if(e.i.length){for(var t=e.player.Na(),n=t.end-t.start,r=["to right"],i=[],o=e.m.seekBarColors.adBreaks,a=!1,s=c(e.i),l=s.next();!l.done;l=s.next())if(-1!=(l=l.value).start||l.end||(a=!0),l.start>=t.start&&l.start<t.end&&!(l.end&&l.end>t.end)){var d=(l.start-t.start)/n||0,u=d+.01;l.end&&(u=(l.end-t.start)/n||0),i.push({start:d,end:u})}for(l=(t=c(i)).next();!l.done;l=t.next())n=l.value,r.push("transparent "+100*n.start+"%"),r.push(o+" "+100*n.start+"%"),r.push(o+" "+100*n.end+"%"),r.push("transparent "+100*n.end+"%");a&&(r.push("transparent 99%"),r.push(o+" 99%")),e.j.style.background="linear-gradient("+r.join(",")+")"}else e.j.style.background="transparent"}function Gv(e){Xv(e);var t=e.player.Na();t=t.end-t.start,e.player.W()&&5<t&&e.s.na(1)}function Wv(e){var t=e.player.Na();return t=t.end-t.start,!(e.player.W()&&5>t||null!=e.ad&&e.ad.isLinear())}function Jv(e){e.bar.ariaLabel=e.localization.resolve("SEEK")}function Zv(){}function Kv(t,n,r,i){$.call(this);var o=this;this.ha=!0,this.m=i,this.B=new sd(r,t,this.m.castReceiverAppId),this.Db=!0,this.g=this.B.Kb(),this.C=r,this.G=this.B.lc(),this.Ua=t,this.j=n,this.ob=this.G.od(),this.s=this.l=null,this.ka=!1,this.I=[],this.nc=[],this.Gb=!1,this.sa=new pn(function(){o.j.style.cursor="none",o.Gb=!1,tb(o)}),this.Ba=new pn(function(){o.i.removeAttribute("shown"),o.L.U(2)}),this.L=new pn(function(){for(var e=c(o.I),t=e.next();!t.done;t=e.next())Pv(t.value,!1)}),this.cb=new pn(function(){o.Ub()&&ab(o)}),this.M=null,this.J=[],this.bb=function(){var e=new Je("en");return e.ma("ar",new Map([["AD_DURATION","مدة الإعلان"],["AD_PROGRESS","الإعلان [AD_ON] من [NUM_ADS]"],["AD_TIME","الإعلان: [AD_TIME]"],["AUTO_QUALITY","تلقائي"],["BACK","رجوع"],["CAPTIONS","الترجمة والشرح"],["CAST","إرسال..."],["ENTER_LOOP_MODE","تكرار الفيديو الحالي"],["ENTER_PICTURE_IN_PICTURE",'الدخول في وضع "نافذة ضمن نافذة"'],["EXIT_FULL_SCREEN","إنهاء وضع ملء الشاشة"],["EXIT_LOOP_MODE","إيقاف تكرار الفيديو الحالي"],["EXIT_PICTURE_IN_PICTURE",'الخروج من وضع "نافذة ضمن نافذة"'],["FAST_FORWARD","تقديم سريع"],["FULL_SCREEN","ملء الشاشة"],["LANGUAGE","اللغة"],["LIVE","مباشر"],["LOOP","تكرار"],["MORE_SETTINGS","مزيد من الإعدادات"],["MULTIPLE_LANGUAGES","لغات متعددة"],["MUTE","كتم الصوت"],["NOT_APPLICABLE","غير سارٍ"],["OFF","إيقاف"],["ON","تشغيل"],["PAUSE","إيقاف مؤقت"],["PICTURE_IN_PICTURE","نافذة ضمن النافذة"],["PLAY","التشغيل"],["PLAYBACK_RATE","سرعة التشغيل"],["RESOLUTION","درجة الدقة"],["REWIND","ترجيع"],["SEEK","البحث بالتمرير"],["SKIP_AD","تخطّي الإعلان"],["SKIP_TO_LIVE","الانتقال إلى بث مباشر"],["UNDETERMINED_LANGUAGE","غير محدد"],["UNMUTE","إعادة الصوت"],["UNRECOGNIZED_LANGUAGE","غير معروف"],["VOLUME","مستوى الصوت"]])),e.ma("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung [AD_ON] von [NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zurück"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Auflösung"],["REWIND","Zurückspulen"],["SEEK","Suche"],["SKIP_AD","Überspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautstärke"]])),e.ma("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]])),e.ma("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]])),e.ma("es",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Enviar..."],["ENTER_LOOP_MODE","Reproducir en bucle el vídeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el vídeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar rápidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","Más ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["RESOLUTION","Resolución"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al vídeo en directo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.ma("es-419",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetición indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","Más opciones de configuración"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["RESOLUTION","Resolución"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisión en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.ma("fr",new Map([["AD_DURATION","Durée de l'annonce"],["AD_PROGRESS","Annonce [AD_ON] sur [NUM_ADS]"],["AD_TIME","Annonce : [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster…"],["ENTER_LOOP_MODE","Lire en boucle la vidéo en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein écran"],["EXIT_LOOP_MODE","Arrêter la lecture en boucle de la vidéo en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein écran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","Répéter"],["MORE_SETTINGS","Plus de paramètres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","Désactivée"],["ON","Activée"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["RESOLUTION","Résolution"],["REWIND","Retour arrière"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Accéder à la partie la plus récente du direct"],["UNDETERMINED_LANGUAGE","Langue indéterminée"],["UNMUTE","Réactiver le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]])),e.ma("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Più lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocità di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]])),e.ma("ja",new Map([["AD_DURATION","広告再生時間"],["AD_PROGRESS","[AD_ON] 番目の広告(全 [NUM_ADS] 個)"],["AD_TIME","広告: [AD_TIME]"],["AUTO_QUALITY","自動"],["BACK","戻る"],["CAPTIONS","字幕"],["CAST","キャスト..."],["ENTER_LOOP_MODE","現在の動画をループ再生"],["ENTER_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを開始"],["EXIT_FULL_SCREEN","全画面表示を終了"],["EXIT_LOOP_MODE","現在の動画のループ再生を停止"],["EXIT_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを終了"],["FAST_FORWARD","早送り"],["FULL_SCREEN","全画面表示"],["LANGUAGE","言語"],["LIVE","ライブ"],["LOOP","ループ"],["MORE_SETTINGS","詳細設定"],["MULTIPLE_LANGUAGES","多言語"],["MUTE","ミュート"],["NOT_APPLICABLE","該当なし"],["OFF","オフ"],["ON","オン"],["PAUSE","一時停止"],["PICTURE_IN_PICTURE","ピクチャー イン ピクチャー"],["PLAY","再生"],["PLAYBACK_RATE","再生速度"],["RESOLUTION","解像度"],["REWIND","巻き戻し"],["SEEK","シーク再生"],["SKIP_AD","広告をスキップ"],["SKIP_TO_LIVE","ライブ配信までスキップ"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","ミュートを解除"],["UNRECOGNIZED_LANGUAGE","不明"],["VOLUME","音量"]])),e.ma("ko",new Map([["AD_DURATION","광고 기간"],["AD_PROGRESS","광고 [AD_ON]/[NUM_ADS]"],["AD_TIME","광고: [AD_TIME]"],["AUTO_QUALITY","자동"],["BACK","뒤로"],["CAPTIONS","자막"],["CAST","전송..."],["ENTER_LOOP_MODE","현재 동영상 반복 재생"],["ENTER_PICTURE_IN_PICTURE","PIP 모드 시작"],["EXIT_FULL_SCREEN","전체화면 닫기"],["EXIT_LOOP_MODE","현재 동영상 반복 재생 중지"],["EXIT_PICTURE_IN_PICTURE","PIP 모드 종료"],["FAST_FORWARD","빨리 감기"],["FULL_SCREEN","전체화면"],["LANGUAGE","언어"],["LIVE","실시간"],["LOOP","반복 재생"],["MORE_SETTINGS","설정 더보기"],["MULTIPLE_LANGUAGES","여러 언어"],["MUTE","음소거"],["NOT_APPLICABLE","해당 사항 없음"],["OFF","사용 안함"],["ON","사용"],["PAUSE","일시중지"],["PICTURE_IN_PICTURE","PIP 모드"],["PLAY","재생"],["PLAYBACK_RATE","재생 속도"],["RESOLUTION","해상도"],["REWIND","되감기"],["SEEK","찾기"],["SKIP_AD","광고 건너뛰기"],["SKIP_TO_LIVE","라이브 동영상으로 건너뛰기"],["UNDETERMINED_LANGUAGE","미정"],["UNMUTE","음소거 해제"],["UNRECOGNIZED_LANGUAGE","알 수 없음"],["VOLUME","볼륨"]])),e.ma("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]])),e.ma("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama [AD_ON] z [NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesyłaj..."],["ENTER_LOOP_MODE","Odtwarzaj bieżący film w pętli"],["ENTER_PICTURE_IN_PICTURE","Włącz tryb obrazu w obrazie"],["EXIT_FULL_SCREEN","Zamknij pełny ekran"],["EXIT_LOOP_MODE","Wyłącz odtwarzanie bieżącego filmu w pętli"],["EXIT_PICTURE_IN_PICTURE","Wyłącz tryb obrazu w obrazie"],["FAST_FORWARD","Przewiń do przodu"],["FULL_SCREEN","Pełny ekran"],["LANGUAGE","Język"],["LIVE","Na żywo"],["LOOP","Odtwarzaj w pętli"],["MORE_SETTINGS","Więcej ustawień"],["MULTIPLE_LANGUAGES","Wiele języków"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wyłączone"],["ON","Włączone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w obrazie"],["PLAY","Odtwórz"],["PLAYBACK_RATE","Szybkość odtwarzania"],["RESOLUTION","Rozdzielczość"],["REWIND","Przewiń do tyłu"],["SEEK","Szukaj"],["SKIP_AD","Pomiń reklamę"],["SKIP_TO_LIVE","Przejdź do transmisji na żywo"],["UNDETERMINED_LANGUAGE","Nie określono"],["UNMUTE","Wyłącz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","Głośność"]])),e.ma("pt-BR",new Map([["AD_DURATION","Duração do anúncio"],["AD_PROGRESS","Anúncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anúncio: [AD_TIME]"],["AUTO_QUALITY","Automática"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o vídeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repetição do vídeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avançar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais definições"],["MULTIPLE_LANGUAGES","Vários idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","Não relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodução"],["RESOLUTION","Resolução"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular anúncio"],["SKIP_TO_LIVE","Pular para transmissão ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","Não reconhecido"],["VOLUME","Volume"]])),e.ma("ru",new Map([["AD_DURATION","Продолжительность рекламы"],["AD_PROGRESS","Реклама [AD_ON] из [NUM_ADS]"],["AD_TIME","Реклама: [AD_TIME]"],["AUTO_QUALITY","Авто"],["BACK","Назад"],["CAPTIONS","Субтитры"],["CAST","Транслировать..."],["ENTER_LOOP_MODE","Зациклить текущее видео"],["ENTER_PICTURE_IN_PICTURE",'Перейти в режим "Картинка в картинке"'],["EXIT_FULL_SCREEN","Обычный режим"],["EXIT_LOOP_MODE","Отменить зацикливание текущего видео"],["EXIT_PICTURE_IN_PICTURE",'Выйти из режима "Картинка в картинке"'],["FAST_FORWARD","Перемотка вперед"],["FULL_SCREEN","Полноэкранный режим"],["LANGUAGE","Язык"],["LIVE","Прямой эфир"],["LOOP","Зациклить"],["MORE_SETTINGS","Дополнительные настройки"],["MULTIPLE_LANGUAGES","Несколько языков"],["MUTE","Отключить звук"],["NOT_APPLICABLE","Неприменимо"],["OFF","Выкл."],["ON","Вкл."],["PAUSE","Пауза"],["PICTURE_IN_PICTURE","Картинка в картинке"],["PLAY","Воспроизвести"],["PLAYBACK_RATE","Скорость воспроизведения"],["RESOLUTION","Разрешение"],["REWIND","Перемотать назад"],["SEEK","Перемотка"],["SKIP_AD","Пропустить"],["SKIP_TO_LIVE","Пропустить и перейти к прямой трансляции"],["UNDETERMINED_LANGUAGE","Не указано"],["UNMUTE","Включить звук"],["UNRECOGNIZED_LANGUAGE","Не распознано"],["VOLUME","Громкость"]])),e.ma("th",new Map([["AD_DURATION","ระยะเวลาโฆษณา"],["AD_PROGRESS","โฆษณา [AD_ON] จาก [NUM_ADS] รายการ"],["AD_TIME","โฆษณา: [AD_TIME]"],["AUTO_QUALITY","อัตโนมัติ"],["BACK","กลับ"],["CAPTIONS","คำบรรยาย"],["CAST","แคสต์..."],["ENTER_LOOP_MODE","วนซ้ำวิดีโอปัจจุบัน"],["ENTER_PICTURE_IN_PICTURE","เข้าสู่การแสดงภาพซ้อนภาพ"],["EXIT_FULL_SCREEN","ออกจากการแสดงแบบเต็มหน้าจอ"],["EXIT_LOOP_MODE","หยุดวนซ้ำวิดีโอปัจจุบัน"],["EXIT_PICTURE_IN_PICTURE","ออกจากการแสดงภาพซ้อนภาพ"],["FAST_FORWARD","กรอไปข้างหน้า"],["FULL_SCREEN","เต็มหน้าจอ"],["LANGUAGE","ภาษา"],["LIVE","สด"],["LOOP","ลูป"],["MORE_SETTINGS","การตั้งค่าเพิ่มเติม"],["MULTIPLE_LANGUAGES","หลายภาษา"],["MUTE","ปิดเสียง"],["NOT_APPLICABLE","ไม่เกี่ยวข้อง"],["OFF","ปิด"],["ON","เปิด"],["PAUSE","หยุดชั่วคราว"],["PICTURE_IN_PICTURE","การแสดงภาพซ้อนภาพ"],["PLAY","เล่น"],["PLAYBACK_RATE","ความเร็วในการเล่น"],["RESOLUTION","ความละเอียด"],["REWIND","กรอกลับ"],["SEEK","ค้นหา"],["SKIP_AD","ข้ามโฆษณา"],["SKIP_TO_LIVE","ข้ามไปที่การถ่ายทอดสด"],["UNDETERMINED_LANGUAGE","ไม่กำหนด"],["UNMUTE","เปิดเสียง"],["UNRECOGNIZED_LANGUAGE","ที่ไม่รู้จัก"],["VOLUME","ระดับเสียง"]])),e.ma("tr",new Map([["AD_DURATION","Reklam süresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyazılar"],["CAST","Yayınla..."],["ENTER_LOOP_MODE","Mevcut videoyu döngüye al"],["ENTER_PICTURE_IN_PICTURE","Pencere içinde Pencere moduna gir"],["EXIT_FULL_SCREEN","Tam ekrandan çık"],["EXIT_LOOP_MODE","Mevcut videonun döngüsünü durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere İçinde Pencereden Çık"],["FAST_FORWARD","İleri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canlı"],["LOOP","Döngü"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden çok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Geçerli değil"],["OFF","Kapalı"],["ON","Açık"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere İçinde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","Çalma hızı"],["RESOLUTION","Çözünürlük"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklamı Atla"],["SKIP_TO_LIVE","Canlı yayına atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi aç"],["UNRECOGNIZED_LANGUAGE","Tanınmayan"],["VOLUME","Ses"]])),e.ma("zh",new Map([["AD_DURATION","广告持续时间"],["AD_PROGRESS","广告 [AD_ON]/[NUM_ADS]"],["AD_TIME","广告:[AD_TIME]"],["AUTO_QUALITY","自动"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投射…"],["ENTER_LOOP_MODE","循环播放当前视频"],["ENTER_PICTURE_IN_PICTURE","进入“画中画”模式"],["EXIT_FULL_SCREEN","退出全屏模式"],["EXIT_LOOP_MODE","停止循环播放当前视频"],["EXIT_PICTURE_IN_PICTURE","退出“画中画”模式"],["FAST_FORWARD","快进"],["FULL_SCREEN","全屏"],["LANGUAGE","语言"],["LIVE","直播"],["LOOP","循环播放"],["MORE_SETTINGS","更多设置"],["MULTIPLE_LANGUAGES","多种语言"],["MUTE","静音"],["NOT_APPLICABLE","不适用"],["OFF","关闭"],["ON","开启"],["PAUSE","暂停"],["PICTURE_IN_PICTURE","画中画"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["RESOLUTION","分辨率"],["REWIND","快退"],["SEEK","进度"],["SKIP_AD","跳过广告"],["SKIP_TO_LIVE","跳至当前直播"],["UNDETERMINED_LANGUAGE","未确定"],["UNMUTE","取消静音"],["UNRECOGNIZED_LANGUAGE","无法识别"],["VOLUME","音量"]])),e.ma("zh-TW",new Map([["AD_DURATION","廣告長度"],["AD_PROGRESS","廣告 [AD_ON]/[NUM_ADS]"],["AD_TIME","廣告:[AD_TIME]"],["AUTO_QUALITY","自動"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投放..."],["ENTER_LOOP_MODE","循環播放目前的影片"],["ENTER_PICTURE_IN_PICTURE","進入子母畫面"],["EXIT_FULL_SCREEN","退出全螢幕模式"],["EXIT_LOOP_MODE","停止循環播放目前的影片"],["EXIT_PICTURE_IN_PICTURE","離開子母畫面"],["FAST_FORWARD","快轉"],["FULL_SCREEN","全螢幕"],["LANGUAGE","語言"],["LIVE","直播"],["LOOP","循環播放"],["MORE_SETTINGS","顯示更多設定"],["MULTIPLE_LANGUAGES","多種語言"],["MUTE","靜音"],["NOT_APPLICABLE","不適用"],["OFF","關閉"],["ON","開啟"],["PAUSE","暫停"],["PICTURE_IN_PICTURE","子母畫面"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["RESOLUTION","解析度"],["REWIND","倒轉"],["SEEK","搜尋"],["SKIP_AD","略過廣告"],["SKIP_TO_LIVE","跳至当前直播"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","取消靜音"],["UNRECOGNIZED_LANGUAGE","無法辨識"],["VOLUME","音量"]])),e.We(navigator.languages||[]),e}(),this.h=new Dr,this.configure(this.m),function(t){t.h.o(t.G,"buffering",function(){t.ha&&Pv(t.Aa,t.G.Rc())}),t.ha&&Pv(t.Aa,t.G.Rc()),t.h.o(e,"keydown",function(n){!function(t,n){t.Ca.add(n.key);var r=t.jd();"Tab"==n.key&&(t.i.classList.add("shaka-keyboard-navigation"),tb(t),t.h.o(e,"mousedown",function(){t.h.Ta(e,"mousedown")})),"Escape"==n.key&&t.L.Ga(),r&&t.Ca.has("Tab")&&function(e,t){var n=e.I.filter(function(e){return!e.classList.contains("shaka-hidden")});if(n.length){var r=n[0];if(r.childNodes.length){for(n=r.firstElementChild;n&&n.classList.contains("shaka-hidden");)n=n.nextElementSibling;for(r=r.lastElementChild;r&&r.classList.contains("shaka-hidden");)r=r.previousElementSibling;var i=document.activeElement;e.Ca.has("Shift")?i==n&&(t.preventDefault(),r.focus()):i==r&&(t.preventDefault(),n.focus())}}}(t,n)}(t,n)}),t.h.o(e,"click",function(){return t.pc()}),t.h.o(t,"submenuopen",function(){t.pc()}),t.h.o(t.g,"play",function(){tb(t)}),t.h.o(t.g,"pause",function(){tb(t)}),t.h.o(t.j,"mousemove",function(e){eb(t,e)}),t.h.o(t.j,"touchmove",function(e){eb(t,e)},{passive:!0}),t.h.o(t.j,"touchend",function(e){eb(t,e)},{passive:!0}),t.h.o(t.j,"mouseleave",function(){t.M||t.sa.Ga()}),t.h.o(t.B,"caststatuschanged",function(){ib(t)}),t.h.o(t.j,"keydown",function(e){var n=document.activeElement,r=!(!n||!n.classList)&&n.classList.contains("shaka-volume-bar"),i=n&&n.classList&&n.classList.contains("shaka-seek-bar");if(t.i.contains(n)&&eb(t,e),t.m.enableKeyboardPlaybackControls)switch(e.key){case"ArrowLeft":t.s&&!r&&(e.preventDefault(),ob(t,t.s.getValue()-5));break;case"ArrowRight":t.s&&!r&&(e.preventDefault(),ob(t,t.s.getValue()+5));break;case"Home":t.s&&ob(t,t.G.Na().start);break;case"End":t.s&&ob(t,t.G.Na().end);break;case" ":i&&rb(t)}}),t.h.o(t.j,"keyup",function(e){t.Ca.delete(e.key)}),t.h.o(t.ob,"ad-started",function(e){t.l=e.ad,t.Gf()}),t.h.o(t.ob,"ad-stopped",function(){t.l=null,t.mf()}),screen.orientation&&t.h.o(screen.orientation,"change",function(){return I(function(e){return w(e,function(e){return I(function(t){return e.g&&0!=e.g.readyState&&!e.B.xa()&&e.m.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?w(t,e.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?w(t,document.exitFullscreen(),0):t.D(0):t.return()})}(t),0)})}),t.h.o(document,"fullscreenchange",function(){t.l&&t.l.resize(t.C.offsetWidth,t.C.offsetHeight)})}(this),this.Ca=new Set,ib(this),this.cb.na(.125),this.h.o(this.bb,"locale-changed",function(e){o.ob.setLocale(e.locales[0])})}function Yv(e){for(var t=c(e.J),n=t.next();!n.done;n=t.next())n.value.release();e.J=[]}function Qv(e,t){sb.set(e,t)}function _v(e){e.ha&&e.g.duration&&(e.G.Ue(),e.g.paused&&!e.ka?e.g.play():e.g.pause())}function $v(e){e.l&&e.l.isPaused()?e.l.play():e.l&&e.l.pause()}function eb(e,t){"mousemove"==t.type&&(e.i.classList.remove("shaka-keyboard-navigation"),tb(e)),"touchstart"==t.type||"touchmove"==t.type||"touchend"==t.type||"keyup"==t.type?e.M=Date.now():e.M+1e3<Date.now()&&(e.M=null),e.M&&"mousemove"==t.type||(e.j.style.cursor="",e.Gb=!0,e.L.stop(),e.Ub()||(ab(e),tb(e)),e.sa.stop(),"touchend"!=t.type&&"keyup"!=t.type&&e.M||e.sa.U(3))}function tb(t){var n=!!t.l&&t.l.isPaused(),r=t.g.paused&&!t.ka,i=t.i.classList.contains("shaka-keyboard-navigation");n||(!t.l||!t.l.isLinear())&&r||t.Gb||i||function(t){return!!e.matchMedia("hover: hover").matches&&t.nc.some(function(e){return e.matches(":hover")})}(t)?(ab(t),t.i.setAttribute("shown","true"),t.Ba.stop()):t.Ba.U(t.m.fadeDelay)}function nb(e){e.ha&&(e.jd()?e.L.Ga():e.m.singleClickForPlayAndPause&&rb(e))}function rb(e){e.l&&e.l.isLinear()?$v(e):_v(e)}function ib(e){var t=e.B.xa();e.dispatchEvent(new q("caststatuschanged",(new Map).set("newStatus",t))),t?e.i.setAttribute("casting","true"):e.i.removeAttribute("casting")}function ob(e,t){e.s.changeTo(t),e.Ub()&&ab(e)}function ab(e){if(e.s)if(e.s.setValue(e.g.currentTime),e.s.update(),e.s.isShowing())for(var t=c(e.I),n=t.next();!n.done;n=t.next())n.value.classList.remove("shaka-low-position");else for(n=(t=c(e.I)).next();!n.done;n=t.next())n.value.classList.add("shaka-low-position");e.dispatchEvent(new q("timeandseekrangeupdated"))}g(qv,Mv),(r=qv.prototype).release=function(){this.l&&(this.l.stop(),this.l=null),Mv.prototype.release.call(this)},r.setRange=function(e,t){this.bar.min=e,this.bar.max=t},r.onChangeStart=function(){},r.onChange=function(){},r.onChangeEnd=function(){},r.changeTo=function(e){this.g||(this.g=!0,this.onChangeStart());var t=parseFloat(this.bar.min),n=parseFloat(this.bar.max);this.bar.value=e>n?n:e<t?t:e,this.onChange(),this.l.U(.5)},r.getValue=function(){return parseFloat(this.bar.value)},r.setValue=function(e){this.g||(this.bar.value=e)},H("shaka.ui.RangeElement",qv),qv.prototype.setValue=qv.prototype.setValue,qv.prototype.getValue=qv.prototype.getValue,qv.prototype.changeTo=qv.prototype.changeTo,qv.prototype.onChangeEnd=qv.prototype.onChangeEnd,qv.prototype.onChange=qv.prototype.onChange,qv.prototype.onChangeStart=qv.prototype.onChangeStart,qv.prototype.setRange=qv.prototype.setRange,g(Vv,qv),(r=Vv.prototype).release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null),qv.prototype.release.call(this)},r.onChangeStart=function(){this.B=!this.video.paused,this.controls.He(!0),this.video.pause()},r.onChange=function(){this.video.duration&&(this.update(),this.h.U(.125))},r.onChangeEnd=function(){this.h.Ga(),this.controls.He(!1),this.B&&this.video.play()},r.isShowing=function(){return!this.container.classList.contains("shaka-hidden")},r.update=function(){var e=this.m.seekBarColors,t=this.getValue(),n=this.video.buffered.length,r=n?this.video.buffered.start(0):0,i=n?this.video.buffered.end(n-1):0,o=this.player.Na(),a=o.end-o.start;this.setRange(o.start,o.end),Wv(this)?(Pv(this.container,!0),0==n?this.container.style.background=e.base:(n=(Math.max(r,o.start)-o.start)/a||0,i=(Math.min(i,o.end)-o.start)/a||0,t=(Math.min(Math.max(t,o.start),o.end)-o.start)/a||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?e.base:e.played)+" "+100*n+"%",e.played+" "+100*n+"%",e.played+" "+100*t+"%",e.buffered+" "+100*t+"%",e.buffered+" "+100*i+"%",e.base+" "+100*i+"%"].join()+")")):Pv(this.container,!1)},H("shaka.ui.SeekBar",Vv),Zv.prototype.create=function(e,t){return new Vv(e,t)},Vv.Factory=Zv,g(Kv,$),(r=Kv.prototype).destroy=function(){var e=this;return I(function(t){switch(t.g){case 1:if(document.pictureInPictureElement!=e.C){t.D(2);break}return w(t,document.exitPictureInPicture(),2);case 2:if(e.h&&(e.h.release(),e.h=null),e.sa&&(e.sa.stop(),e.sa=null),e.Ba&&(e.Ba.stop(),e.Ba=null),e.L&&(e.L.stop(),e.L=null),e.cb&&(e.cb.stop(),e.cb=null),Yv(e),e.i&&(e.j.removeChild(e.i),e.i=null),!e.B){t.D(4);break}return w(t,e.B.destroy(),5);case 5:e.B=null;case 4:if(!e.Ua){t.D(6);break}return w(t,e.Ua.destroy(),7);case 7:e.Ua=null;case 6:e.G=null,e.C=null,e.g=null,e.bb=null,e.Ca.clear(),$.prototype.release.call(e),k(t)}})},r.Sf=function(e){this.Db=e,ib(this)},r.Og=function(){tb(this)},r.configure=function(e){this.m=e,this.B.Xe(e.castReceiverAppId),this.s&&(this.s=null),this.Eb&&(this.Eb=null),this.pb&&(this.pb=null),this.i?(bs(this.i),Yv(this)):(function(e){e.i=gs("div"),e.i.classList.add("shaka-controls-container"),e.j.appendChild(e.i),e.j.setAttribute("shaka-controls","true"),e.h.o(e.i,"touchstart",function(t){e.g.duration&&(e.Ub()?e.M=Date.now():(eb(e,t),t.preventDefault()))},{passive:!1}),e.h.o(e.i,"click",function(){nb(e)}),e.h.o(e.i,"dblclick",function(){e.m.doubleClickForFullscreen&&document.fullscreenEnabled&&e.Ne()})}(this),function(e){e.$=gs("div"),e.$.classList.add("shaka-client-side-ad-container"),Pv(e.$,!1),e.h.o(e.$,"click",function(){nb(e)}),e.j.appendChild(e.$)}(this)),this.j.classList.add("shaka-video-container"),this.C.classList.add("shaka-video"),function(e){var t=gs("div");t.classList.add("shaka-scrim-container"),e.i.appendChild(t)}(this),this.m.addBigPlayButton&&function(e){var t=gs("div");t.classList.add("shaka-play-button-container"),e.i.appendChild(t),e.Eb=new Bv(t,e),e.J.push(e.Eb)}(this),this.m.customContextMenu&&(this.pb=new zv(this.ia,this),this.J.push(this.pb)),this.Aa||function(e){e.Aa=gs("div"),e.Aa.classList.add("shaka-spinner-container"),e.j.appendChild(e.Aa);var t=gs("div");t.classList.add("shaka-spinner"),e.Aa.appendChild(t),(e=document.createElementNS("http://www.w3.org/2000/svg","svg")).classList.add("shaka-spinner-svg"),e.setAttribute("viewBox","0 0 30 30"),t.appendChild(e),(t=document.createElementNS("http://www.w3.org/2000/svg","circle")).classList.add("shaka-spinner-path"),t.setAttribute("cx","15"),t.setAttribute("cy","15"),t.setAttribute("r","14.5"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","1"),t.setAttribute("stroke-miterlimit","10"),e.appendChild(t)}(this),this.zb=gs("div"),this.zb.classList.add("shaka-server-side-ad-container"),this.i.appendChild(this.zb),function(e){e.S=gs("div"),e.S.classList.add("shaka-bottom-controls"),e.S.classList.add("shaka-no-propagation"),e.i.appendChild(e.S),e.h.o(e.S,"click",function(t){t.target.closest(".shaka-overflow-button")||e.pc()}),function(e){e.P=gs("div"),e.P.classList.add("shaka-ad-controls");var t=null!=e.l&&e.l.isLinear();Pv(e.P,t),e.S.appendChild(e.P),t=new Nv(e.P,e),e.J.push(t),t=new Iv(e.P,e),e.J.push(t)}(e),e.ia=gs("div"),e.ia.classList.add("shaka-controls-button-panel"),e.ia.classList.add("shaka-show-controls-on-mouse-over"),e.m.enableTooltips&&e.ia.classList.add("shaka-tooltips-on"),e.S.appendChild(e.ia);for(var t={},n=c(e.m.controlPanelElements),r=n.next();!r.done;t={Bc:t.Bc},r=n.next())r=r.value,sb.get(r)?("function"!=typeof(r=sb.get(r).create(e.ia,e)).release&&(ke("shaka.extern.IUIElement","Please update UI elements to have a release() method."),t.Bc=r,t.Bc.release=function(e){return function(){e.Bc.destroy&&e.Bc.destroy()}}(t)),e.J.push(r)):G("Unrecognized control panel element requested:",r)}(this),this.I=Array.from(this.j.getElementsByClassName("shaka-settings-menu")),this.I.push.apply(this.I,d(Array.from(this.j.getElementsByClassName("shaka-overflow-menu")))),function(e){if(e.m.addSeekBar)e.s=lb.create(e.S,e),e.J.push(e.s);else for(var t=(e=c(e.I)).next();!t.done;t=e.next())t.value.classList.add("shaka-low-position")}(this),this.nc=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over")),tb(this);for(var t=(e=c(this.j.getElementsByClassName("shaka-no-propagation"))).next();!t.done;t=e.next()){t=t.value;var n=function(e){return e.stopPropagation()};this.h.o(t,"click",n),this.h.o(t,"dblclick",n)}},r.De=function(e){(this.ha=e)?(this.j.setAttribute("shaka-controls","true"),this.C.tabIndex=-1,this.C.controls=!1):this.j.removeAttribute("shaka-controls"),tb(this)},r.Df=function(e){this.C.controls=e,this.C.tabIndex=e?0:-1,e&&this.De(!1)},r.getAd=function(){return this.l},r.eg=function(){return this.B},r.rg=function(){return this.bb},r.Ig=function(){return this.j},r.Kb=function(){return this.g},r.qg=function(){return this.C},r.lc=function(){return this.G},r.pg=function(){return this.Ua},r.jg=function(){return this.i},r.Ag=function(){return this.zb},r.gg=function(){return this.$},r.hg=function(){return this.m},r.Ng=function(){return this.ka},r.He=function(e){this.ka=e},r.Lg=function(){return this.Db},r.jf=function(){return this.s?this.s.getValue():this.g.currentTime},r.Ef=function(e){this.M=e},r.jd=function(){return this.I.some(function(e){return!e.classList.contains("shaka-hidden")})},r.pc=function(){this.L.Ga()},r.Ne=function(){var e,t=this;return I(function(n){switch(n.g){case 1:if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),w(n,document.exitFullscreen(),0);if(x(n,4),!document.pictureInPictureElement){n.D(6);break}return w(n,document.exitPictureInPicture(),6);case 6:return w(n,t.j.requestFullscreen({navigationUI:"hide"}),8);case 8:if(!t.m.forceLandscapeOnFullscreen||!screen.orientation){n.D(9);break}return x(n,10),w(n,screen.orientation.lock("landscape"),12);case 12:S(n,9,4);break;case 10:E(n,4);case 9:S(n,0);break;case 4:e=E(n),t.dispatchEvent(new q("error",(new Map).set("detail",e))),n.D(0)}})},r.Gf=function(){Pv(this.P,!0),Pv(this.$,!0),this.i.setAttribute("ad-active","true")},r.mf=function(){Pv(this.P,!1),Pv(this.$,!1),this.i.removeAttribute("ad-active")},r.Ub=function(){return!!this.ha&&(null!=this.i.getAttribute("shown")||null!=this.i.getAttribute("casting"))},H("shaka.ui.Controls",Kv),Kv.prototype.isOpaque=Kv.prototype.Ub,Kv.prototype.hideAdUI=Kv.prototype.mf,Kv.prototype.showAdUI=Kv.prototype.Gf,Kv.prototype.toggleFullScreen=Kv.prototype.Ne,Kv.prototype.hideSettingsMenus=Kv.prototype.pc,Kv.prototype.anySettingsMenusAreOpen=Kv.prototype.jd,Kv.prototype.setLastTouchEventTime=Kv.prototype.Ef,Kv.prototype.getDisplayTime=Kv.prototype.jf,Kv.prototype.isCastAllowed=Kv.prototype.Lg,Kv.prototype.setSeeking=Kv.prototype.He,Kv.prototype.isSeeking=Kv.prototype.Ng,Kv.prototype.getConfig=Kv.prototype.hg,Kv.prototype.getClientSideAdContainer=Kv.prototype.gg,Kv.prototype.getServerSideAdContainer=Kv.prototype.Ag,Kv.prototype.getControlsContainer=Kv.prototype.jg,Kv.prototype.getLocalPlayer=Kv.prototype.pg,Kv.prototype.getPlayer=Kv.prototype.lc,Kv.prototype.getLocalVideo=Kv.prototype.qg,Kv.prototype.getVideo=Kv.prototype.Kb,Kv.prototype.getVideoContainer=Kv.prototype.Ig,Kv.prototype.getLocalization=Kv.prototype.rg,Kv.prototype.getCastProxy=Kv.prototype.eg,Kv.prototype.getAd=Kv.prototype.getAd,Kv.prototype.setEnabledNativeControls=Kv.prototype.Df,Kv.prototype.setEnabledShakaControls=Kv.prototype.De,Kv.prototype.configure=Kv.prototype.configure,Kv.prototype.loadComplete=Kv.prototype.Og,Kv.prototype.allowCast=Kv.prototype.Sf,Kv.registerSeekBar=function(e){lb=e},Kv.registerElement=Qv,Kv.prototype.destroy=Kv.prototype.destroy;var sb=new Map,lb=new Zv;function cb(e,t){Mv.call(this,e,t);var n=this;this.m=this.controls.m,this.j=this.controls.i,this.i=[],this.g=vs(),this.g.classList.add("shaka-overflow-menu-button"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.g.textContent="more_vert",this.parent.appendChild(this.g),this.h=gs("div"),this.h.classList.add("shaka-overflow-menu"),this.h.classList.add("shaka-no-propagation"),this.h.classList.add("shaka-show-controls-on-mouse-over"),this.h.classList.add("shaka-hidden"),this.j.appendChild(this.h),function(e){for(var t=c(e.m.overflowMenuButtons),n=t.next();!n.done;n=t.next())n=n.value,fb.get(n)?(n=fb.get(n),e.i.push(n.create(e.h,e.controls))):G("Unrecognized overflow menu element requested:",n)}(this),this.eventManager.o(this.localization,"locale-updated",function(){ub(n)}),this.eventManager.o(this.localization,"locale-changed",function(){ub(n)}),this.eventManager.o(this.adManager,"ad-started",function(){n.ad&&n.ad.isLinear()&&Pv(n.g,!1)}),this.eventManager.o(this.adManager,"ad-stopped",function(){Pv(n.g,!0)}),this.eventManager.o(this.controls,"submenuopen",function(){Pv(n.h,!1)}),this.eventManager.o(this.h,"touchstart",function(e){n.controls.Ef(Date.now()),e.stopPropagation()}),this.eventManager.o(this.g,"click",function(){!function(e){if(e.controls.jd())e.controls.pc();else{Pv(e.h,!0),tb(e.controls);var t=function(e){return 0==e.classList.contains("shaka-hidden")};(function(e,t){for(var n=c(e),r=n.next();!r.done;r=n.next())if(t(r.value))return!0;return!1})(e.h.childNodes,t)&&te(e.h.childNodes,t)[0].focus()}}(n)}),ub(this),this.ad&&this.ad.isLinear()&&Pv(this.g,!1)}function db(e,t){fb.set(e,t)}function ub(e){e.g.ariaLabel=e.localization.resolve("MORE_SETTINGS")}function hb(){}g(cb,Mv),cb.prototype.release=function(){this.j=null;for(var e=c(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],Mv.prototype.release.call(this)},H("shaka.ui.OverflowMenu",cb),cb.registerElement=db,hb.prototype.create=function(e,t){return new cb(e,t)},Qv("overflow_menu",new hb);var fb=new Map;function pb(t,n){Mv.call(this,t,n);var r=this;this.g=vs(),this.g.classList.add("shaka-airplay-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.h=gs("i"),this.h.classList.add("material-icons-round"),this.h.textContent="airplay",this.g.appendChild(this.h),e.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var i=gs("label");i.classList.add("shaka-overflow-button-label"),i.classList.add("shaka-overflow-menu-only"),this.j=gs("span"),i.appendChild(this.j),this.i=gs("span"),this.i.classList.add("shaka-current-selection-span"),i.appendChild(this.i),this.g.appendChild(i),this.parent.appendChild(this.g),gb(this),mb(this),this.eventManager.o(this.localization,"locale-updated",function(){gb(r)}),this.eventManager.o(this.localization,"locale-changed",function(){gb(r)}),this.eventManager.o(this.g,"click",function(){r.controls.Kb().webkitShowPlaybackTargetPicker()}),i=this.controls.Kb(),this.eventManager.o(i,"webkitplaybacktargetavailabilitychanged",function(e){var t=r.player.kf()==wc;Pv(r.g,"available"==e.availability&&t)}),this.eventManager.o(i,"webkitcurrentplaybacktargetiswirelesschanged",function(){mb(r)})}function mb(e){var t=e.controls.Kb();e.g.ariaPressed=t&&t.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function gb(e){e.g.ariaLabel=e.localization.resolve("AIRPLAY"),e.j.textContent=e.localization.resolve("AIRPLAY")}function vb(){}function bb(e,t,n){this.h=e,this.m=yb(this),t.dataset.shakaPlayerContainer="",t.ui=this,this.$d()&&t.classList.add("shaka-mobile"),this.g=new Kv(e,t,n,this.m),this.configure({}),n.controls||e.Ke(t),t.ui=this,n.ui=this}function yb(t){var n={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop","picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},trackLabelFormat:Cb,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1};return e.WebKitPlaybackTargetAvailabilityEvent&&n.overflowMenuButtons.push("airplay"),t.$d()&&(n.addBigPlayButton=!0,n.controlPanelElements=n.controlPanelElements.filter(function(e){return"play_pause"!=e&&"volume"!=e})),n}function wb(){var e,t,n,r,i,o,a,s,l,d,u,h;return I(function(f){switch(f.g){case 1:if(Tp(),!el())return kb("shaka-ui-load-failed",Sb),f.return();if(e=document.querySelectorAll("[data-shaka-player-container]"),!(t=document.querySelectorAll("[data-shaka-player]")).length&&!e.length){f.D(2);break}if(t.length&&!e.length){for(n=c(t),r=n.next();!r.done;r=n.next())(i=r.value).ui||(o=document.createElement("div"),i.parentElement.replaceChild(o,i),o.appendChild(i),xb(o,i));f.D(2);break}a=c(e),s=a.next();case 4:if(s.done){f.D(2);break}if((l=s.value).ui){f.D(5);break}for(d=null,u=c(t),r=u.next();!r.done;r=u.next())if((h=r.value).parentElement==l){d=h;break}return d||((d=document.createElement("video")).setAttribute("playsinline",""),l.appendChild(d)),x(f,7),w(f,xb(l,d),9);case 9:S(f,5);break;case 7:return E(f),kb("shaka-ui-load-failed",Eb),f.return();case 5:s=a.next(),f.D(4);break;case 2:kb("shaka-ui-loaded"),k(f)}})}function kb(e,t){var n=null;null!=t&&(n={reasonCode:t}),n=new CustomEvent(e,{detail:n}),document.dispatchEvent(n)}function xb(e,t){var n,r,i,o,a,s,l,d;return I(function(u){switch(u.g){case 1:n=new _s(t),r=new bb(n,e,t),i="",e.dataset&&e.dataset.shakaPlayerCastReceiverId?i=e.dataset.shakaPlayerCastReceiverId:t.dataset&&t.dataset.shakaPlayerCastReceiverId&&(i=t.dataset.shakaPlayerCastReceiverId),i.length&&r.configure({castReceiverAppId:i}),t.controls&&r.g.Df(!0),(o=t.getAttribute("src"))&&((a=document.createElement("source")).setAttribute("src",o),t.appendChild(a),t.removeAttribute("src")),s=c(t.querySelectorAll("source")),l=s.next();case 2:if(l.done){u.D(0);break}return d=l.value,x(u,5),w(u,r.g.lc().load(d.getAttribute("src")),7);case 7:u.D(0);break;case 5:E(u);case 3:l=s.next(),u.D(2)}})}g(pb,Mv),H("shaka.ui.AirPlayButton",pb),vb.prototype.create=function(e,t){return new pb(e,t)},db("airplay",new vb),Qv("airplay",new vb),(r=bb.prototype).destroy=function(){var e=this;return I(function(t){return 1==t.g?e.g?w(t,e.g.destroy(),2):t.D(2):4!=t.g?(e.g=null,e.h?w(t,e.h.destroy(),4):t.D(4)):(e.h=null,void k(t))})},r.$d=function(){return!!/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)||yn()&&1<navigator.maxTouchPoints},r.getConfiguration=function(){var e=yb(this);return qs(e,this.m,yb(this),{},""),e},r.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=Us(e,t)),qs(this.m,e,yb(this),{},""),this.m.castReceiverAppId&&!this.m.overflowMenuButtons.includes("cast")&&this.m.overflowMenuButtons.push("cast"),this.g.configure(this.m),this.g.dispatchEvent(new q("uiupdated"))},r.ig=function(){return this.g},r.oh=function(e){this.g.De(e)},H("shaka.ui.Overlay",bb),bb.prototype.setEnabled=bb.prototype.oh,bb.prototype.getControls=bb.prototype.ig,bb.prototype.configure=bb.prototype.configure,bb.prototype.getConfiguration=bb.prototype.getConfiguration,bb.prototype.isMobile=bb.prototype.$d,bb.prototype.destroy=bb.prototype.destroy;var Cb=0;bb.TrackLabelFormat={LANGUAGE:Cb,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Sb=0,Eb=1;function Mb(e,t,n,r,i,o,a){function s(e,t){return e+": "+t}function l(e){return"variant"==e.type?e.audioRoles?e.audioRoles.join(", "):void 0:e.roles.join(", ")}var d=e.find(function(e){return 1==e.active}),u=Tv(t);bs(t),t.appendChild(u),u=new Map;for(var h=c(e),f=h.next();!f.done;f=h.next())f=f.value,u.has(f.language)||u.set(f.language,new Set),u.get(f.language).add(l(f));for(u=new Set,d=d?s(d.language,l(d)):"",h={},f=(e=c(e)).next();!f.done;h={$a:h.$a},f=e.next()){h.$a=f.value,f=h.$a.language;var p=h.$a.forced,m=o.resolve(Qe),g=l(h.$a),v=s(f,g);if(!u.has(v)){u.add(v);var b=vs();b.addEventListener("click",function(e){return function(){n(e.$a)}}(h));var y=gs("span");switch(b.appendChild(y),y.textContent=Tb(f,o),a){case Cb:p&&(y.textContent+=" ("+m+")");break;case 1:g?y.textContent=g:(G("Track #"+h.$a.id+" does not have a role, but the UI is configured to only show role."),y.textContent="?"),p&&(y.textContent+=" ("+m+")");break;case 2:g&&(y.textContent+=": "+g),p&&(y.textContent+=" ("+m+")");break;case 3:h.$a.label?y.textContent=h.$a.label:(G("Track #"+h.$a.id+" does not have a label, but the UI is configured to only show labels."),y.textContent="?")}r&&v==d&&(b.appendChild(Ov()),y.classList.add("shaka-chosen-item"),b.ariaSelected="true",i.textContent=y.textContent),t.appendChild(b)}}}function Tb(e,t){if(!e&&!t)return"";switch(e){case"mul":return t.resolve("MULTIPLE_LANGUAGES");case"und":return t.resolve("UNDETERMINED_LANGUAGE");case"zxx":return t.resolve("NOT_APPLICABLE")}var n=Ve(e);return e in xv?xv[e].u:n in xv?xv[n].u+" ("+e+")":t.resolve("UNRECOGNIZED_LANGUAGE")+" ("+e+")"}function Ab(e,t,n){Mv.call(this,e,t);var r=this;!function(e,t){e.button=vs(),e.button.classList.add("shaka-overflow-button"),e.icon=gs("i"),e.icon.classList.add("material-icons-round"),e.icon.textContent=t,e.button.appendChild(e.icon);var n=gs("label");n.classList.add("shaka-overflow-button-label"),n.classList.add("shaka-overflow-menu-only"),e.nameSpan=gs("span"),n.appendChild(e.nameSpan),e.currentSelection=gs("span"),e.currentSelection.classList.add("shaka-current-selection-span"),n.appendChild(e.currentSelection),e.button.appendChild(n),e.parent.appendChild(e.button)}(this,n),function(e){e.menu=gs("div"),e.menu.classList.add("shaka-no-propagation"),e.menu.classList.add("shaka-show-controls-on-mouse-over"),e.menu.classList.add("shaka-settings-menu"),e.menu.classList.add("shaka-hidden"),e.backButton=vs(),e.backButton.classList.add("shaka-back-to-overflow-button"),e.menu.appendChild(e.backButton),e.eventManager.o(e.backButton,"click",function(){e.controls.pc()});var t=gs("i");t.classList.add("material-icons-round"),t.textContent="close",e.backButton.appendChild(t),e.backSpan=gs("span"),e.backButton.appendChild(e.backSpan),e.controls.i.appendChild(e.menu)}(this),function(e){e.parent.classList.contains("shaka-overflow-menu")&&(e.backButton.firstChild.textContent="arrow_back",e.eventManager.o(e.backButton,"click",function(){Pv(e.parent,!0),e.parent.childNodes[0].focus(),tb(e.controls)}))}(this),this.eventManager.o(this.button,"click",function(){r.menu.classList.contains("shaka-hidden")?(r.controls.dispatchEvent(new q("submenuopen")),Pv(r.menu,!0),jv(r.menu)):Pv(r.menu,!1)})}function jb(e,t){Ab.call(this,e,t,"language");var n=this;this.button.classList.add("shaka-language-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-audio-languages"),this.eventManager.o(this.localization,"locale-updated",function(){Pb(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Pb(n)}),this.eventManager.o(this.player,"trackschanged",function(){var e=0<n.player.fb().length;Pv(n.button,e),Ob(n)}),this.eventManager.o(this.player,"variantchanged",function(){Ob(n)}),Pb(this),Ob(this)}function Ob(e){Mb(e.player.fb(),e.menu,function(t){e.player.Dd(t.language,t.roles[0])},!0,e.currentSelection,e.localization,e.controls.m.trackLabelFormat),jv(e.menu),e.controls.dispatchEvent(new q("languageselectionupdated")),e.button.setAttribute("shaka-status",e.currentSelection.innerText)}function Pb(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("LANGUAGE"),e.nameSpan.textContent=e.localization.resolve("LANGUAGE"),e.backSpan.textContent=e.localization.resolve("LANGUAGE")}function Lb(){}function Ib(e,t){Mv.call(this,e,t);var n=this;this.h=this.controls.B,this.g=vs(),this.g.classList.add("shaka-cast-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.i=gs("i"),this.i.classList.add("material-icons-round"),this.i.textContent="cast",this.g.appendChild(this.i);var r=gs("label");r.classList.add("shaka-overflow-button-label"),r.classList.add("shaka-overflow-menu-only"),this.l=gs("span"),r.appendChild(this.l),this.j=gs("span"),this.j.classList.add("shaka-current-selection-span"),r.appendChild(this.j),this.g.appendChild(r),this.parent.appendChild(this.g),Db(this),Nb(this),this.eventManager.o(this.localization,"locale-updated",function(){Db(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Db(n)}),this.eventManager.o(this.g,"click",function(){!function(e){var t;I(function(n){return 1==n.g?e.h.xa()?(e.h.Hf(),n.D(0)):(x(n,3),e.g.disabled=!0,w(n,e.h.cast(),5)):3!=n.g?(e.g.disabled=!1,S(n,0)):(t=E(n),e.g.disabled=!1,8004!=t.code&&e.controls.dispatchEvent(new q("error",(new Map).set("detail",t))),void k(n))})}(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){Nb(n)})}function Nb(e){var t=e.h.Te()&&e.controls.Db,n=e.h.xa();Pv(e.g,t),e.i.textContent=n?"cast_connected":"cast",t&&(e.g.ariaPressed=n?"true":"false"),Rb(e)}function Rb(e){e.j.textContent=e.h.xa()?e.h.Bd():e.localization.resolve("OFF")}function Db(e){e.g.ariaLabel=e.localization.resolve("CAST"),e.l.textContent=e.localization.resolve("CAST"),Rb(e)}function Bb(){}function zb(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-fast-forward-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status","1x"),this.g.textContent="fast_forward",this.parent.appendChild(this.g),Fb(this),this.h=this.controls.m.fastForwardRates,this.eventManager.o(this.localization,"locale-updated",function(){Fb(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Fb(n)}),this.eventManager.o(this.g,"click",function(){if(n.video.duration){var e=n.h.indexOf(n.player.Jb())+1;e=e!=n.h.length?n.h[e]:n.h[0],n.player.Pe(e),n.g.setAttribute("shaka-status",e+"x")}})}function Fb(e){e.g.ariaLabel=e.localization.resolve("FAST_FORWARD")}function Hb(){}function qb(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("shaka-fullscreen-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),document.fullscreenEnabled||this.g.classList.add("shaka-hidden"),this.g.textContent="fullscreen",this.parent.appendChild(this.g),Ub(this),this.eventManager.o(this.localization,"locale-updated",function(){Ub(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Ub(n)}),this.eventManager.o(this.g,"click",function(){return I(function(e){return w(e,n.controls.Ne(),0)})}),this.eventManager.o(document,"fullscreenchange",function(){n.g.textContent=document.fullscreenElement?"fullscreen_exit":"fullscreen",Ub(n)})}function Ub(e){e.g.ariaLabel=e.localization.resolve(document.fullscreenElement?"EXIT_FULL_SCREEN":"FULL_SCREEN")}function Vb(){}function Xb(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("shaka-loop-button"),this.g.classList.add("shaka-tooltip"),this.i=gs("i"),this.i.classList.add("material-icons-round"),this.i.textContent="repeat",this.g.appendChild(this.i);var r=gs("label");r.classList.add("shaka-overflow-button-label"),r.classList.add("shaka-overflow-menu-only"),this.j=gs("span"),this.j.textContent=this.localization.resolve("LOOP"),r.appendChild(this.j),this.l=gs("span"),this.l.classList.add("shaka-current-selection-span"),r.appendChild(this.l),this.g.appendChild(r),Gb(this),this.parent.appendChild(this.g),this.eventManager.o(this.localization,"locale-updated",function(){Gb(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Gb(n)}),this.eventManager.o(this.g,"click",function(){n.video.loop=!n.video.loop,n.h.Ga(),n.h.na(1)}),this.s=this.video.loop,this.h=new pn(function(){n.s!=n.video.loop&&(Gb(n),n.s=n.video.loop)}),this.h.na(1)}function Gb(e){e.j.textContent=e.localization.resolve("LOOP"),e.l.textContent=e.localization.resolve(e.video.loop?"ON":"OFF"),e.i.textContent=e.video.loop?"repeat_on":"repeat",e.g.ariaLabel=e.localization.resolve(e.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}function Wb(){}function Jb(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("shaka-mute-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.parent.appendChild(this.g),Zb(this),Kb(this),this.eventManager.o(this.localization,"locale-updated",function(){Zb(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Zb(n)}),this.eventManager.o(this.g,"click",function(){n.ad&&n.ad.isLinear()?n.ad.setMuted(!n.ad.isMuted()):n.video.muted=!n.video.muted}),this.eventManager.o(this.video,"volumechange",function(){Zb(n),Kb(n)}),this.eventManager.o(this.adManager,"ad-volume-changed",function(){Zb(n),Kb(n)}),this.eventManager.o(this.adManager,"ad-muted",function(){Zb(n),Kb(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.ad=null,Zb(n),Kb(n)})}function Zb(e){var t=e.ad?e.ad.isMuted()?"UNMUTE":"MUTE":e.video.muted?"UNMUTE":"MUTE";e.g.ariaLabel=e.localization.resolve(t)}function Kb(e){var t=e.ad?e.ad.isMuted()?"volume_off":"volume_up":e.video.muted?"volume_off":"volume_up";e.g.textContent=t}function Yb(){}function Qb(e,t){Mv.call(this,e,t);var n=this;this.l=this.controls.C,this.g=vs(),this.g.classList.add("shaka-pip-button"),this.g.classList.add("shaka-tooltip"),this.i=gs("i"),this.i.classList.add("material-icons-round"),this.i.textContent="picture_in_picture_alt",this.g.appendChild(this.i);var r=gs("label");r.classList.add("shaka-overflow-button-label"),r.classList.add("shaka-overflow-menu-only"),this.j=gs("span"),this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE"),r.appendChild(this.j),this.h=gs("span"),this.h.classList.add("shaka-current-selection-span"),r.appendChild(this.h),this.g.appendChild(r),_b(this),this.parent.appendChild(this.g),document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Pv(this.g,!1),this.eventManager.o(this.localization,"locale-updated",function(){_b(n)}),this.eventManager.o(this.localization,"locale-changed",function(){_b(n)}),this.eventManager.o(this.g,"click",function(){!function(e){var t;I(function(n){return 1==n.g?(x(n,2),document.pictureInPictureElement?w(n,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),w(n,e.video.requestPictureInPicture(),5))):2!=n.g?S(n,0):(t=E(n),e.controls.dispatchEvent(new q("error",(new Map).set("detail",t))),void k(n))})}(n)}),this.eventManager.o(this.l,"enterpictureinpicture",function(){n.i.textContent="branding_watermark",n.g.ariaLabel=n.localization.resolve("EXIT_PICTURE_IN_PICTURE"),n.h.textContent=n.localization.resolve("ON")}),this.eventManager.o(this.l,"leavepictureinpicture",function(){n.i.textContent="picture_in_picture_alt",n.g.ariaLabel=n.localization.resolve("ENTER_PICTURE_IN_PICTURE"),n.h.textContent=n.localization.resolve("OFF")}),this.eventManager.o(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!n.video.disablePictureInPicture&&Pv(n.g,!1):document.pictureInPictureEnabled&&!n.video.disablePictureInPicture&&Pv(n.g,!0)}),this.eventManager.o(this.player,"trackschanged",function(){!function(e){I(function(t){return!document.pictureInPictureEnabled||e.video.disablePictureInPicture?(Pv(e.g,!1),t.D(0)):e.player&&e.player.pf()?(Pv(e.g,!1),document.pictureInPictureElement?w(t,document.exitPictureInPicture(),0):t.D(0)):(Pv(e.g,!0),t.D(0))})}(n)})}function _b(e){e.j.textContent=e.localization.resolve("PICTURE_IN_PICTURE"),e.g.ariaLabel=e.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}function $b(){}function ey(e,t){Ab.call(this,e,t,"slow_motion_video");var n=this;this.button.classList.add("shaka-playbackrate-button"),this.menu.classList.add("shaka-playback-rates"),this.button.classList.add("shaka-tooltip-status"),this.eventManager.o(this.localization,"locale-updated",function(){ty(n)}),this.eventManager.o(this.localization,"locale-changed",function(){ty(n)}),this.eventManager.o(this.player,"ratechange",function(){ny(n,n.player.Jb())}),this.g=new Map(this.controls.m.playbackRates.map(function(e){return[e+"x",e]})),ty(this),function(e){for(var t={},n=c(e.g.keys()),r=n.next();!r.done;t={Cc:t.Cc},r=n.next()){t.Cc=r.value,r=vs();var i=gs("span");i.textContent=t.Cc,r.appendChild(i),e.eventManager.o(r,"click",function(t){return function(){e.video.playbackRate=e.g.get(t.Cc),e.video.defaultPlaybackRate=e.g.get(t.Cc)}}(t)),e.menu.appendChild(r)}jv(e.menu)}(this),ny(this,this.player.Jb())}function ty(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("PLAYBACK_RATE"),e.nameSpan.textContent=e.localization.resolve("PLAYBACK_RATE"),e.backSpan.textContent=e.localization.resolve("PLAYBACK_RATE")}function ny(e,t){var n=Av(e.menu,"material-icons-round shaka-chosen-item");if(n){var r=n.parentElement;r.removeAttribute("aria-selected"),r.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item"),r.removeChild(n)}(n=Array.from(e.menu.querySelectorAll("span")).find(function(n){return e.g.get(n.textContent)==t}))&&((r=n.parentElement).appendChild(Ov()),r.ariaSelected="true",n.classList.add("shaka-chosen-item")),e.currentSelection.textContent=t+"x",e.button.setAttribute("shaka-status",t+"x")}function ry(){}function iy(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("shaka-current-time"),oy(this,"0:00"),this.parent.appendChild(this.g),this.eventManager.o(this.g,"click",function(){n.player.W()&&(n.video.currentTime=n.player.Na().end)}),this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var e=n.controls.ka,t=n.controls.jf(),r=n.video.duration,i=n.player.Na(),o=i.end-i.start;n.player.W()?(r=3600<=o,1<=(t=Math.max(0,Math.floor(i.end-t)))||e?(oy(n,"- "+Lv(t,r)),n.g.disabled=!1):(oy(n,n.localization.resolve("LIVE")),n.g.disabled=!0)):(t=Lv(t,e=3600<=r),r&&(t+=" / "+Lv(r,e)),oy(n,t),n.g.disabled=!0)}),this.eventManager.o(this.player,"trackschanged",function(){n.player.W()&&(n.g.ariaLabel=n.localization.resolve("SKIP_TO_LIVE"))})}function oy(e,t){t!=e.g.textContent&&(e.g.textContent=t)}function ay(){}function sy(e,t){Ab.call(this,e,t,"settings");var n=this;this.button.classList.add("shaka-resolution-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-resolutions"),this.eventManager.o(this.localization,"locale-updated",function(){cy(n)}),this.eventManager.o(this.localization,"locale-changed",function(){cy(n)}),this.eventManager.o(this.player,"variantchanged",function(){ly(n)}),this.eventManager.o(this.player,"trackschanged",function(){ly(n)}),this.eventManager.o(this.player,"abrstatuschanged",function(){ly(n)}),ly(this),cy(this)}function ly(e){var t=e.player.fb();if(t.length&&!t[0].height)Pv(e.menu,!1),Pv(e.button,!1);else{Pv(e.button,!0),t.sort(function(e,t){return t.height-e.height});var n=t.find(function(e){return e.active});n&&(t=t.filter(function(e){return e.language==n.language&&e.channelsCount==n.channelsCount})),t=t.filter(function(e,n){return t.findIndex(function(t){return t.height==e.height})==n});var r=Tv(e.menu);bs(e.menu),e.menu.appendChild(r),r=e.player.getConfiguration().abr.enabled;for(var i={},o=c(t),a=o.next();!a.done;i={Fc:i.Fc},a=o.next()){i.Fc=a.value,(a=vs()).classList.add("explicit-resolution"),e.eventManager.o(a,"click",function(t){return function(){var n=t.Fc;e.player.configure({abr:{enabled:!1}}),e.player.Be(n,e.controls.m.clearBufferOnQualityChange)}}(i));var s=gs("span");s.textContent=i.Fc.height+"p",a.appendChild(s),r||i.Fc!=n||(a.ariaSelected="true",a.appendChild(Ov()),s.classList.add("shaka-chosen-item"),e.currentSelection.textContent=s.textContent),e.menu.appendChild(a)}(i=vs()).classList.add("shaka-enable-abr-button"),e.eventManager.o(i,"click",function(){e.player.configure({abr:{enabled:!0}}),ly(e)}),e.g=gs("span"),e.g.classList.add("shaka-auto-span"),e.g.textContent=e.localization.resolve("AUTO_QUALITY"),i.appendChild(e.g),r&&(i.ariaSelected="true",i.appendChild(Ov()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),e.menu.appendChild(i),jv(e.menu),e.controls.dispatchEvent(new q("resolutionselectionupdated"))}}function cy(e){e.button.ariaLabel=e.localization.resolve("RESOLUTION"),e.backButton.ariaLabel=e.localization.resolve("RESOLUTION"),e.backSpan.textContent=e.localization.resolve("RESOLUTION"),e.nameSpan.textContent=e.localization.resolve("RESOLUTION"),e.g.textContent=e.localization.resolve("AUTO_QUALITY"),e.player.getConfiguration().abr.enabled&&(e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY"))}function dy(){}function uy(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-rewind-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status",this.localization.resolve("OFF")),this.g.textContent="fast_rewind",this.parent.appendChild(this.g),hy(this),this.h=this.controls.m.rewindRates,this.eventManager.o(this.localization,"locale-updated",function(){hy(n)}),this.eventManager.o(this.localization,"locale-changed",function(){hy(n)}),this.eventManager.o(this.g,"click",function(){if(n.video.duration){var e=n.h.indexOf(n.player.Jb())+1;e=e!=n.h.length?n.h[e]:n.h[0],n.player.Pe(e),n.g.setAttribute("shaka-status",e+"x")}})}function hy(e){e.g.ariaLabel=e.localization.resolve("REWIND")}function fy(){}function py(e,t){Mv.call(this,e,t);var n=this;this.j=gs("div"),this.j.classList.add("shaka-skip-ad-container"),this.parent.appendChild(this.j),this.h=gs("div"),this.h.classList.add("shaka-skip-ad-counter"),Pv(this.h,!1),this.j.appendChild(this.h),this.g=vs(),this.g.classList.add("shaka-skip-ad-button"),this.g.disabled=!0,Pv(this.g,!1),this.g.classList.add("shaka-no-propagation"),this.j.appendChild(this.g),my(this),this.i=new pn(function(){var e=Math.round(n.ad.getTimeUntilSkippable());0<e?n.h.textContent=e:(n.i.stop(),Pv(n.h,!1))}),this.eventManager.o(this.localization,"locale-updated",function(){my(n)}),this.eventManager.o(this.localization,"locale-changed",function(){my(n)}),this.eventManager.o(this.adManager,"ad-started",function(){gy(n)}),this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){n.ad.canSkipNow()&&(n.g.disabled=!1,n.i.stop(),Pv(n.h,!1))}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.i.stop(),n.g.disabled=!0,Pv(n.g,!1),Pv(n.h,!1)}),this.eventManager.o(this.g,"click",function(){n.ad.skip()}),this.ad&&gy(this)}function my(e){e.g.textContent=e.localization.resolve("SKIP_AD")}function gy(e){e.ad.isSkippable()&&(Pv(e.g,!0),Pv(e.h,!0),e.h.textContent="",e.i.Ga(),e.i.na(.5))}function vy(e,t){Dv.call(this,e,t),this.button.classList.add("shaka-small-play-button"),this.button.classList.add("material-icons-round"),this.button.classList.add("shaka-tooltip"),this.h(),this.g()}function by(){}function yy(e,t){Mv.call(this,e,t);var n=gs("div");n.classList.add("shaka-spacer"),n.ariaHidden="true",this.parent.appendChild(n)}function wy(){}function ky(e,t){function n(e){return Lv(s.h[e],!1)+" (m)"}function r(e){return Math.round(s.h[e]/1e3)+" (kbits/s)"}function i(e){return s.h[e].toFixed(2)+" (s)"}function o(e){return s.h[e]+" (frames)"}function a(e){return s.h[e]+" (px)"}Mv.call(this,e,t);var s=this;this.i=vs(),this.i.classList.add("shaka-statistics-button"),this.j=gs("i"),this.j.classList.add("material-icons-round"),this.j.textContent="insert_chart_outlined",this.i.appendChild(this.j);var l=gs("label");l.classList.add("shaka-overflow-button-label"),this.B=gs("span"),l.appendChild(this.B),this.s=gs("span"),this.s.classList.add("shaka-current-selection-span"),l.appendChild(this.s),this.i.appendChild(l),this.parent.appendChild(this.i),this.g=gs("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-show-controls-on-mouse-over"),this.g.classList.add("shaka-statistics-container"),this.g.classList.add("shaka-hidden"),this.controls.i.appendChild(this.g),this.I=[],this.J=["stateHistory","switchHistory"],this.h=this.player.getStats(),this.C={},this.G={width:a,height:a,completionPercent:function(e){return s.h[e]+" (%)"},bufferingTime:i,drmTimeSeconds:i,licenseTime:i,liveLatency:i,loadLatency:i,manifestTimeSeconds:i,estimatedBandwidth:r,streamBandwidth:r,maxSegmentDuration:n,pauseTime:n,playTime:n,corruptedFrames:o,decodedFrames:o,droppedFrames:o},this.l=new pn(function(){s.h=s.player.getStats();for(var e=c(s.I),t=e.next();!t.done;t=e.next())t=t.value,s.C[t].textContent=s.G[t](t)}),xy(this),function(e){for(var t=c(e.controls.m.statisticsList),n=t.next();!n.done;n=t.next())if((n=n.value)in e.h&&!e.J.includes(n)){var r=e.g,i=r.appendChild,o=e,a=gs("div"),s=gs("label");s.textContent=n+":",a.appendChild(s),(s=gs("span")).textContent=o.G[n](n),a.appendChild(s),o.C[n]=s,i.call(r,a),e.I.push(n)}else G("Unrecognized statistic element:",n)}(this),this.eventManager.o(this.localization,"locale-updated",function(){xy(s)}),this.eventManager.o(this.localization,"locale-changed",function(){xy(s)}),this.eventManager.o(this.i,"click",function(){Pv(s.parent,!1),s.g.classList.contains("shaka-hidden")?(s.j.textContent="insert_chart",s.l.na(.1),Pv(s.g,!0)):(s.j.textContent="insert_chart_outlined",s.l.stop(),Pv(s.g,!1)),xy(s)})}function xy(e){e.B.textContent=e.localization.resolve("STATISTICS"),e.i.ariaLabel=e.localization.resolve("STATISTICS"),e.s.textContent=e.localization.resolve(e.g.classList.contains("shaka-hidden")?"OFF":"ON")}function Cy(){}function Sy(e,t){Ab.call(this,e,t,"closed_caption");var n=this;this.button.classList.add("shaka-caption-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-text-languages"),this.player&&this.player.Vb()?this.button.ariaPressed="true":this.button.ariaPressed="false",function(e){var t=vs();t.ariaSelected="true",e.menu.appendChild(t),t.appendChild(Ov()),e.g=gs("span"),e.g.classList.add("shaka-auto-span"),t.appendChild(e.g)}(this),this.eventManager.o(this.localization,"locale-updated",function(){Ty(n),My(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Ty(n),My(n)}),this.eventManager.o(this.player,"texttrackvisibility",function(){Ey(n),My(n)}),this.eventManager.o(this.player,"textchanged",function(){My(n)}),this.eventManager.o(this.player,"trackschanged",function(){Ay(n)}),Ey(this),Ty(this),My(this),Ay(this)}function Ey(e){e.player.Vb()?(e.icon.textContent="closed_caption_disabled",e.button.ariaPressed="true"):(e.icon.textContent="closed_caption",e.button.ariaPressed="false"),e.controls.dispatchEvent(new q("captionselectionupdated"))}function My(e){var t=e.player.vb();Mb(t,e.menu,function(t){return function(e,t){return I(function(n){return e.player.Ae(t),w(n,e.player.Je(!0),0)})}(e,t)},e.player.Vb(),e.currentSelection,e.localization,e.controls.m.trackLabelFormat),(t=vs()).classList.add("shaka-turn-captions-off-button"),e.eventManager.o(t,"click",function(){e.player.Je(!1),My(e)}),t.appendChild(e.g),e.menu.appendChild(t),e.player.Vb()||(t.ariaSelected="true",t.appendChild(Ov()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("OFF")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),jv(e.menu),e.controls.dispatchEvent(new q("captionselectionupdated"))}function Ty(e){e.button.ariaLabel=e.localization.resolve("CAPTIONS"),e.backButton.ariaLabel=e.localization.resolve("BACK"),e.nameSpan.textContent=e.localization.resolve("CAPTIONS"),e.backSpan.textContent=e.localization.resolve("CAPTIONS"),e.g.textContent=e.localization.resolve("OFF")}function Ay(e){var t=0<e.player.vb().length;Pv(e.button,t),My(e)}function jy(){}function Oy(e,t){qv.call(this,e,t,["shaka-volume-bar-container"],["shaka-volume-bar"]);var n=this;this.m=this.controls.m,this.eventManager.o(this.video,"volumechange",function(){return Py(n)}),this.eventManager.o(this.adManager,"ad-volume-changed",function(){return Ly(n)}),this.eventManager.o(this.adManager,"ad-muted",function(){return Ly(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){return Py(n)}),this.eventManager.o(this.localization,"locale-updated",function(){return Ny(n)}),this.eventManager.o(this.localization,"locale-changed",function(){return Ny(n)}),Py(this),Ny(this),this.ad&&this.onChange()}function Py(e){e.video.muted?e.setValue(0):e.setValue(e.video.volume),Iy(e)}function Ly(e){var t=e.ad.getVolume();e.setValue(t),Iy(e)}function Iy(e){var t=e.m.volumeBarColors,n=["to right"];n.push(t.level+100*e.getValue()+"%"),n.push(t.base+100*e.getValue()+"%"),n.push(t.base+"100%"),e.container.style.background="linear-gradient("+n.join(",")+")"}function Ny(e){e.bar.ariaLabel=e.localization.resolve("VOLUME")}function Ry(){}bb.FailReasonCode={NO_BROWSER_SUPPORT:Sb,PLAYER_FAILED_TO_LOAD:Eb},"complete"==document.readyState?I(function(e){if(1==e.g)return w(e,Promise.resolve(),2);wb(),k(e)}):e.addEventListener("load",wb),g(Ab,Mv),H("shaka.ui.SettingsMenu",Ab),g(jb,Ab),H("shaka.ui.AudioLanguageSelection",jb),Lb.prototype.create=function(e,t){return new jb(e,t)},db("language",new Lb),Qv("language",new Lb),g(Ib,Mv),H("shaka.ui.CastButton",Ib),Bb.prototype.create=function(e,t){return new Ib(e,t)},db("cast",new Bb),Qv("cast",new Bb),g(zb,Mv),H("shaka.ui.FastForwardButton",zb),Hb.prototype.create=function(e,t){return new zb(e,t)},Qv("fast_forward",new Hb),g(qb,Mv),H("shaka.ui.FullscreenButton",qb),Vb.prototype.create=function(e,t){return new qb(e,t)},Qv("fullscreen",new Vb),g(Xb,Mv),Xb.prototype.release=function(){this.h.stop(),this.h=null,Mv.prototype.release.call(this)},H("shaka.ui.LoopButton",Xb),Wb.prototype.create=function(e,t){return new Xb(e,t)},db("loop",new Wb),Qv("loop",new Wb),Fv("loop",new Wb),g(Jb,Mv),H("shaka.ui.MuteButton",Jb),Yb.prototype.create=function(e,t){return new Jb(e,t)},Qv("mute",new Yb),g(Qb,Mv),H("shaka.ui.PipButton",Qb),$b.prototype.create=function(e,t){return new Qb(e,t)},db("picture_in_picture",new $b),Qv("picture_in_picture",new $b),Fv("picture_in_picture",new $b),g(ey,Ab),H("shaka.ui.PlaybackRateSelection",ey),ry.prototype.create=function(e,t){return new ey(e,t)},db("playback_rate",new ry),Qv("playback_rate",new ry),g(iy,Mv),H("shaka.ui.PresentationTimeTracker",iy),ay.prototype.create=function(e,t){return new iy(e,t)},Qv("time_and_duration",new ay),g(sy,Ab),H("shaka.ui.ResolutionSelection",sy),dy.prototype.create=function(e,t){return new sy(e,t)},db("quality",new dy),Qv("quality",new dy),g(uy,Mv),H("shaka.ui.RewindButton",uy),fy.prototype.create=function(e,t){return new uy(e,t)},Qv("rewind",new fy),g(py,Mv),py.prototype.release=function(){this.i.stop(),this.i=null,Mv.prototype.release.call(this)},H("shaka.ui.SkipAdButton",py),g(vy,Dv),vy.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"},vy.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var e=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(e)}},H("shaka.ui.SmallPlayButton",vy),by.prototype.create=function(e,t){return new vy(e,t)},Qv("play_pause",new by),g(yy,Mv),H("shaka.ui.Spacer",yy),wy.prototype.create=function(e,t){return new yy(e,t)},Qv("spacer",new wy),g(ky,Mv),ky.prototype.release=function(){this.l.stop(),this.l=null,Mv.prototype.release.call(this)},H("shaka.ui.StatisticsButton",ky),Cy.prototype.create=function(e,t){return new ky(e,t)},db("statistics",new Cy),Fv("statistics",new Cy),g(Sy,Ab),H("shaka.ui.TextSelection",Sy),jy.prototype.create=function(e,t){return new Sy(e,t)},db("captions",new jy),Qv("captions",new jy),g(Oy,qv),Oy.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume)},H("shaka.ui.VolumeBar",Oy),Ry.prototype.create=function(e,t){return new Oy(e,t)},Qv("volume",new Ry)}.call(t,e,e,void 0),t.shaka)s[n]=t.shaka[n]}();var d=["src","config","chromeless","className"];function u(e,n){var a=e.src,s=e.config,l=e.chromeless,u=e.className,h=i(e,d),f=t.default.useRef(null),p=t.default.useRef(null),m=o(t.default.useState(null),2),g=m[0],v=m[1],b=o(t.default.useState(null),2),y=b[0],w=b[1];return t.default.useEffect(function(){var e=new c.Player(p.current);if(v(e),!l){var t=new c.ui.Overlay(e,f.current,p.current);w(t)}return function(){e.destroy()}},[]),t.default.useEffect(function(){g&&s&&g.configure(s)},[g,s]),t.default.useEffect(function(){g&&a&&g.load(a)},[g,a]),t.default.useImperativeHandle(n,function(){return{get player(){return g},get ui(){return y},get videoElement(){return p.current}}},[g,y]),t.default.createElement("div",{ref:f,className:u},t.default.createElement("video",r({ref:p,style:{maxWidth:"100%",width:"100%"}},h)))}return Bj=t.default.forwardRef(u)}();const Hj=sl(Fj),qj="_vod-player_1lmjo_1",Uj="_vod-player__player_1lmjo_13",Vj=({attachmentId:e})=>{const[r,i]=n.useState(null),[o,a]=n.useState(!1),s=n.useRef(!0),l=n.useRef(null),c=async()=>{try{const t=await fetch(`/v1/attachments/${e}/vod`,{method:"GET",credentials:"include",headers:{Accept:"*/*"}});if(!t.ok)throw new Error("Не удалось получить VOD ссылку");const n=await t.json();if(!s.current)return;if(n.ready){const e=new URL(n.url,window.location.origin).toString();i(e)}else l.current=setTimeout(()=>{c()},3e3)}catch(t){if(!s.current)return;a(!0)}};return n.useEffect(()=>(s.current=!0,i(null),a(!1),c(),()=>{s.current=!1,l.current&&clearTimeout(l.current)}),[e]),o?t.jsx("div",{className:"vod-player__status vod-player__status--error",children:"❌ Video loading error"}):r?t.jsx("div",{className:qj,children:t.jsx(Hj,{autoPlay:!0,className:Uj,src:r})}):t.jsx(Dj,{c:"white"})},Xj=({attachment:e,onClose:r,translation:s,isVideo:l})=>{const{t:c}=i.useTranslation(),[d,u]=n.useState(null),[h,f]=n.useState(!1);n.useEffect(()=>{e.id&&!l?async function(e){f(!0);const t=await fetch(`/v1/attachments/${e}`,{method:"GET"});if(!t.ok)throw f(!1),new Error(`Ошибка при загрузке: ${t.statusText}`);const n=await t.blob();u(window.URL.createObjectURL(n)),f(!1)}(e.id):u(e.Url||null)},[e.Url,e.id,l]);const p=n.useCallback(t=>{t.stopPropagation(),d&&(e.id?aa(d,e.originalFileName||"file"):sa(d,"file"))},[e.id,e.originalFileName,d]);return t.jsxs(t.Fragment,{children:[t.jsxs(o.Flex,{justify:"space-between",align:"center",pos:"absolute",top:0,left:0,right:0,gap:8,py:16,px:24,style:{background:"linear-gradient(rgb(16, 18, 20), rgba(14, 22, 36, 0)) 0px center no-repeat",zIndex:99},children:[t.jsxs(o.Flex,{align:"center",gap:12,miw:0,children:[t.jsx(o.Flex,{justify:"center",align:"center",gap:8,style:{flexShrink:0,width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"var(--mantine-color-blue-5)",color:"var(--mantine-color-white)"},children:l?t.jsx(a.IconVideo,{size:18}):t.jsx(a.IconPhoto,{size:18})}),t.jsxs(o.Stack,{gap:0,miw:0,children:[e.originalFileName&&t.jsx(o.Text,{size:"md",c:"white",truncate:"end",children:e.originalFileName}),e.fileSize?t.jsxs(o.Text,{size:"sm",c:"dark.1",truncate:"end",children:[e.contentType," / ",Nj(e.fileSize)]}):null]})]}),t.jsxs(o.Flex,{gap:4,children:[t.jsx(o.Tooltip,{label:s?s.download:c("common.action.download"),openDelay:200,keepMounted:!1,children:t.jsx(o.ActionIcon,{size:"lg",variant:"subtle",color:"gray.0",onClick:p,children:t.jsx(a.IconDownload,{})})}),t.jsx(o.Tooltip,{label:s?s.close:c("common.action.close"),openDelay:200,keepMounted:!1,children:t.jsx(o.ActionIcon,{size:"lg",variant:"subtle",color:"gray.0",onClick:r,children:t.jsx(a.IconX,{})})})]})]}),t.jsx(o.Flex,{justify:"center",align:"center",styles:{root:{width:"100%",height:"100%",minHeight:320}},children:h?t.jsx(o.Flex,{dir:"column",children:t.jsx(Dj,{})}):d||l?l?t.jsx(Vj,{attachmentId:e.id}):t.jsx(o.Image,{mah:"100dvh",fit:"contain",maw:"100%",w:"initial",src:d}):t.jsx(o.Text,{c:"red",children:s?s.errorFile:c("notification.error.getFile")})})]})},Gj=n.memo(({attachments:e,onOpenChange:r,opened:i,setShowAttach:s,showAttach:l,translation:c})=>{const{isFirst:d,isLast:u,currentIndex:h}=n.useMemo(()=>{var t,n;return{isFirst:(null==(t=e[0])?void 0:t.Url)===(null==l?void 0:l.Url),isLast:(null==(n=e[e.length-1])?void 0:n.Url)===(null==l?void 0:l.Url),currentIndex:e.findIndex(e=>e.Url===(null==l?void 0:l.Url))}},[e,null==l?void 0:l.Url]);if(!e.length||!l)return null;const f=Lj(l.contentType,l.originalFileName);return t.jsx(o.Modal,{transitionProps:{duration:0},zIndex:203,styles:{content:{backgroundColor:"var(--mantine-color-dark-8)"},body:{height:"100%"}},withCloseButton:!1,opened:i,onClose:()=>null==r?void 0:r(!1),fullScreen:!0,children:t.jsxs(o.Flex,{align:"center",styles:{root:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},children:[l&&t.jsx(t.Fragment,{children:t.jsx(Xj,{attachment:l,isVideo:f,onClose:()=>r(!1),translation:c})}),!d&&!f&&t.jsx(o.ActionIcon,{variant:"white",color:"dark",autoContrast:!0,radius:"xl",size:36,pos:"absolute",top:"calc(50% - 18px)",left:"16px",onClick:()=>{s&&e[h-1]&&s(e[h-1])},children:t.jsx(a.IconChevronLeft,{})}),!u&&!f&&t.jsx(o.ActionIcon,{variant:"white",color:"dark",autoContrast:!0,radius:"xl",size:36,pos:"absolute",top:"calc(50% - 18px)",right:"16px",onClick:()=>{s&&e[h+1]&&s(e[h+1])},children:t.jsx(a.IconChevronRight,{})})]})})}),Wj=ot(()=>({opened:!1,src:""})),Jj=()=>{Wj.setState({opened:!1})},Zj=n.memo(()=>{const{src:e,opened:r}=Wj(),{t:s}=i.useTranslation(),l=n.useCallback(t=>{var n;t.stopPropagation(),null==(n=window.open(e,"_blank"))||n.focus()},[e]);return t.jsx(o.Modal,{transitionProps:{duration:0},styles:{content:{backgroundColor:"var(--mantine-color-dark-8)"},body:{height:"100%"}},withCloseButton:!1,opened:r,onClose:Jj,fullScreen:!0,children:t.jsx(o.Flex,{align:"center",styles:{root:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},children:t.jsxs(t.Fragment,{children:[t.jsxs(o.Flex,{justify:"space-between",align:"center",pos:"absolute",top:0,left:0,right:0,gap:8,py:16,px:24,style:{background:"linear-gradient(rgb(16, 18, 20), rgba(14, 22, 36, 0)) 0px center no-repeat",zIndex:99},children:[t.jsxs(o.Flex,{align:"center",gap:12,miw:0,children:[t.jsx(o.Flex,{justify:"center",align:"center",gap:8,style:{flexShrink:0,width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"var(--mantine-color-blue-5)",color:"var(--mantine-color-white)"},children:t.jsx(a.IconPhoto,{size:18})}),t.jsx(o.Stack,{gap:0,miw:0,children:t.jsx(o.Text,{size:"md",c:"white",truncate:"end",maw:300,children:e})})]}),t.jsxs(o.Flex,{gap:4,children:[t.jsx(o.Tooltip,{label:s("common.action.download"),openDelay:200,keepMounted:!1,children:t.jsx(o.ActionIcon,{size:"lg",variant:"subtle",color:"gray.0",onClick:l,children:t.jsx(a.IconDownload,{})})}),t.jsx(o.Tooltip,{label:s("common.action.close"),openDelay:200,keepMounted:!1,children:t.jsx(o.ActionIcon,{size:"lg",variant:"subtle",color:"gray.0",onClick:Jj,children:t.jsx(a.IconX,{})})})]})]}),t.jsx(o.Flex,{justify:"center",align:"center",styles:{root:{width:"100%",height:"100%",minHeight:320}},children:t.jsx(o.Image,{mah:"100dvh",fit:"contain",maw:"100%",w:"initial",src:e})})]})})})}),Kj={close:a.IconX,message:a.IconMessage,reply:a.IconArrowBackUp,filter:a.IconFilter,messages:a.IconMessages,emoji:a.IconMoodSmile,"dots-vertical":a.IconDotsVertical,"shield-check":a.IconShieldCheckFilled,reOpen:a.IconReload,send:a.IconSend,paperclip:a.IconPaperclip,"check-mark":a.IconCheck,doubleChevrons:a.IconChevronsRight,"close-panel":a.IconLayoutSidebarLeftExpand},Yj=({name:e,iconStyle:n,...r})=>{const i=Kj[e]||Kj.bullet;return t.jsx(o.Flex,{gap:0,justify:"center",align:"center",...r,children:t.jsx(i,{size:18,stroke:2,style:n,...r})})},Qj="_commentPluginCommentsPanelSidebar_gdfwu_12",_j="_commentPluginThreadWrapper_gdfwu_32",$j="_commentsBodyWrapper_gdfwu_36",eO="_commentsPanelBody_gdfwu_40",tO="_commentPluginImagePreviewList_gdfwu_46",nO="_commentPluginCommentsPanelList_gdfwu_50",rO="_commentPluginImagePreviewItem_gdfwu_54",iO="_commentPluginCommentsPanelEmpty_gdfwu_60",oO="_commentPluginGeneralCommentWrapper_gdfwu_64",aO="_commentPluginCommentsPanel_gdfwu_12",sO="_commentPluginCommentsPanelListThreadEditor_gdfwu_86",lO="_commentPluginImagePreviewContainer_gdfwu_94",cO="_commentPluginImagePreviewImage_gdfwu_98",dO="_commentPluginInputFooterContainer_gdfwu_109",uO="_edited_gdfwu_177",hO="_commentPluginEditorContainer_gdfwu_183",fO="_commentPluginCommentsPanelListDetails_gdfwu_191",pO="_commentPluginCommentsPanelListCommentAuthor_gdfwu_197",mO="_commentPluginCommentsPanelListCommentTime_gdfwu_201",gO="_commentPluginCommentsPanelListThread_gdfwu_86",vO="_commentPluginCommentsPanelListThreadComments_gdfwu_211",bO="_commentPluginThreadContainer_gdfwu_215",yO="_commentPluginShowMoreBtn_gdfwu_219",wO="_commentPluginCommentsPanelListThreadQuoteBox_gdfwu_247",kO="_commentPluginCommentsPanelListThreadQuote_gdfwu_247",xO="_commentPluginCommentsPanelListThreadQuoteText_gdfwu_265",CO="_commentPluginCommentsPanelReactionsContainer_gdfwu_294",SO="_commentPluginCommentsPanelListContentContainer_gdfwu_307",EO="_commentPluginFilePreviewList_gdfwu_352",MO="_commentPluginFilePreviewItem_gdfwu_352",TO="_threadActionIcon_gdfwu_417",AO="_commentPluginCommentsPanelActionContainer_gdfwu_423",jO="_commentEmojiPopupIcon_gdfwu_484",OO="_commentPluginCommentsPanelListThreadAccepted_gdfwu_495",PO="_commentsHeaderTitle_gdfwu_502",LO="_commentsHeaderWrapper_gdfwu_528",IO="_commentPluginThreadEditorControls_gdfwu_610",NO="_commentSubmitButton_gdfwu_615",RO="_threadEditorControlsUpload_gdfwu_620",DO="_threadEditorControlsFileInput_gdfwu_628",BO="_threadEditorControlsActionIcon_gdfwu_642",zO="_commentPluginCommentThreadResponses_gdfwu_652",FO="_guest_gdfwu_672",HO="_commentPluginImagePreviewWrapper_gdfwu_727",qO="_commentPluginImagePreviewRemoveButton_gdfwu_751",UO="_commentPluginFilePreviewContainer_gdfwu_774",VO="_commentPluginFileCard_gdfwu_584",XO="_commentPluginFileCardIcon_gdfwu_838",GO="_commentPluginFileCardInfo_gdfwu_846",WO="_commentPluginFileCardName_gdfwu_854",JO="_commentPluginFileCardSize_gdfwu_863",ZO="_commentPluginCommentsPanelEmptyTitle_gdfwu_1079";function KO(e){setTimeout(()=>{const t=document.querySelector(e);t&&t.scrollTo({top:0,behavior:"smooth"})},100)}const YO=(e,t)=>{switch(e){case"thread":return t.deleteModal.description.thread;case"general":return t.deleteModal.description.general;default:return t.deleteModal.description.comment}},QO=(e,t)=>{switch(e){case"thread":return t.deleteModal.title.thread;case"general":return t.deleteModal.title.general;default:return t.deleteModal.title.comment}};function _O(e){setTimeout(()=>{const t=null==e?void 0:e.current;if(!t)return;const n=t.firstElementChild;if(!n)return;const r=function(e){let t=null==e?void 0:e.parentElement;for(;t;){const e=getComputedStyle(t);if(/(auto|scroll)/.test(e.overflowY))return t;t=t.parentElement}return window}(t),i=n.getBoundingClientRect(),o=r instanceof Window?document.documentElement.getBoundingClientRect():r.getBoundingClientRect();i.top>=o.top&&i.top<o.bottom-100||(r instanceof Window?n.scrollIntoView({behavior:"smooth",block:"start"}):r.scrollTo({top:n.offsetTop+300,behavior:"smooth"}))},100)}function $O(e,t,n,r){e(e=>{if("boolean"==typeof n||"string"==typeof n)return e[t]===n?e:(_O(r),{...e,[t]:n});if(!n)return"boolean"==typeof e[t]?{...e,[t]:!e[t]}:e;if(Array.isArray(e[t])){r&&_O(r);const i=e[t],o=n,a=i.some(e=>e.userId===o.userId)?i.filter(e=>e.userId!==o.userId):[...i,o];return{...e,[t]:a}}return e})}const eP=function(){const e=navigator.userAgentData;return(null==e?void 0:e.platform)?e.platform:navigator.platform?navigator.platform:navigator.userAgent||""}(),tP=/Mac|macOS|iPod|iPhone|iPad/.test(eP);function nP(e,t,n){return e&&t?n.inputEditor.clearModal.description.both:e?n.inputEditor.clearModal.description.text:t?n.inputEditor.clearModal.description.files:n.inputEditor.clearModal.description.empty}const rP=(e,t=!1)=>{const n=e.type.startsWith("image/");return{id:e.id?e.id:t?`temp-${crypto.randomUUID()}`:crypto.randomUUID(),file:e,isImage:n,src:n?URL.createObjectURL(e):""}},iP=ot(e=>({workspaceMembers:[],currentUser:void 0,showComments:!1,adminPermission:!1,commentOptions:void 0,getEditor:void 0,selectMarkNode:()=>{},isSidebar:!0,isGuest:!1,commentsLocales:{title:"",edited:"",filter:{resolved:"",open:"",all:"",selectUsers:"",searchPlaceholder:"",emptyPlaceholder:"",byStatus:"",byPerson:""},generalComment:"",addComment:"",replyComment:"",inputEditor:{uploadFiles:"",sendMessage:"",editMessage:"",clear:"",clearModal:{title:"",description:{both:"",text:"",files:"",empty:""}},discardModal:{title:"",description:"",labels:{confirm:"",cancel:""}},cancelCommentModal:{description:""}},notifications:{title:"",description:"",options:{all:"",replies:""},uploadMessages:{tooManyFiles:"",fileTooLarge:"",fileLimit:""}},actionTooltips:{resolve:"",reopen:"",addReaction:"",reactionLimit:"",reply:""},menuActions:{edit:"",delete:"",download:""},deleteModal:{title:{thread:"",general:"",comment:""},description:{thread:"",general:"",comment:""},actions:{cancel:"",delete:"",remove:""}},repliesToggle:{show_one:"",show_other:"",hide:""},emptyState:{all:"",resolved:"","not-resolved":"",userFilter:""}},initializeComments:t=>{e(()=>{var e,n;return{workspaceMembers:t.workspaceMembers||[],currentUser:t.currentUser,showComments:t.showComments??!1,adminPermission:null==(e=t.commentOptions)?void 0:e.adminPermission,commentOptions:t.commentOptions,getEditor:t.getEditor,selectMarkNode:t.selectMarkNode,isSidebar:t.isSidebar,isGuest:null==(n=t.commentOptions)?void 0:n.isGuest,commentsLocales:t.commentsLocales??{title:"",edited:"",filter:{resolved:"",open:"",all:"",selectUsers:"",searchPlaceholder:"",emptyPlaceholder:"",byStatus:"",byPerson:""},generalComment:"",addComment:"",replyComment:"",inputEditor:{uploadFiles:"",sendMessage:"",editMessage:"",clear:"",clearModal:{title:"",description:{both:"",text:"",files:"",empty:""}},discardModal:{title:"",description:"",labels:{confirm:"",cancel:""}},cancelCommentModal:{description:""}},notifications:{title:"",description:"",options:{all:"",replies:""},uploadMessages:{tooManyFiles:"",fileTooLarge:"",fileLimit:""}},actionTooltips:{resolve:"",reopen:"",addReaction:"",reactionLimit:"",reply:""},menuActions:{edit:"",delete:"",download:""},deleteModal:{title:{thread:"",general:"",comment:""},description:{thread:"",general:"",comment:""},actions:{cancel:"",delete:"",remove:""}},repliesToggle:{show_one:"",show_other:"",hide:""},emptyState:{all:"",resolved:"","not-resolved":"",userFilter:""}}}})}})),oP=({commentsFilter:e,listRef:n})=>{const r=iP(e=>e.commentsLocales).emptyState[e.resolved];return t.jsxs("div",{ref:n,className:iO,children:[t.jsx(Yj,{name:"messages",color:"#ADB5BD",size:24}),t.jsx("div",{className:ZO,children:r})]})},aP=({commentsFilter:e,setCommentsFilter:n,listRef:r})=>{var i,a,s;const l=iP(e=>e.commentsLocales),c=iP(e=>e.isSidebar);return t.jsx(o.Tabs,{value:e.resolved,onChange:e=>{e&&$O(n,"resolved",e,r)},variant:"pills",color:"light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-3))",styles:{list:{gap:4},tab:{color:"light-dark(black, var(--mantine-color-gray-3))"},root:{marginBottom:16,marginTop:6,marginLeft:4}},children:t.jsxs(o.Tabs.List,{children:[t.jsx(o.Tabs.Tab,{value:"not-resolved",children:null==(i=l.filter)?void 0:i.open}),t.jsx(o.Tabs.Tab,{value:"resolved",children:null==(a=l.filter)?void 0:a.resolved}),!c&&t.jsx(o.Divider,{mx:"2px",my:-2,size:"xs",orientation:"vertical",color:"light-dark(#DEE2E6, var(--mantine-color-gray-7))"}),t.jsx(o.Tabs.Tab,{value:"all",children:null==(s=l.filter)?void 0:s.all})]})})},sP=({commentsFilter:e,setCommentsFilter:n,commentValue:r,updateThreadId:i,listRef:a,setCommentValue:s,submitAddComment:l})=>{const c=iP(e=>{var t;return null==(t=e.commentOptions)?void 0:t.setShowComments}),{getEditor:d,isSidebar:u,isGuest:h}=iP.getState(),f=iP(e=>e.commentsLocales);return t.jsxs(t.Fragment,{children:[u&&t.jsxs("div",{className:LO,children:[t.jsxs("div",{className:PO,children:[t.jsx(o.ActionIcon,{color:"black",size:"md","aria-label":"Close",variant:"transparent",onClick:()=>c&&c(!1),children:t.jsx(Yj,{size:20,name:"close-panel"})}),t.jsx(NU,{commentsFilter:e,setCommentsFilter:n})]}),t.jsx(o.Divider,{my:"md"})]}),t.jsxs("div",{className:$j,children:[t.jsx(aP,{listRef:a,commentsFilter:e,setCommentsFilter:n}),!h&&t.jsx("div",{className:oO,children:t.jsx(xP,{commentValue:r,setCommentValue:s,handleBlur:()=>{s({files:[],value:""})},autoFocus:!1,isGeneral:!0,updateThreadId:i,submitAddComment:l,placeholder:f.generalComment,children:({onSubmit:e,handleBlur:t,autoFocus:n,setCommentValue:r,commentValue:i,registerClearEditor:o,editorRef:a})=>null==d?void 0:d({onSubmit:e,handleBlur:t,autoFocus:n,setCommentValue:r,commentValue:i,registerClearEditor:o,editorRef:a})})})]})]})},lP=({handleEditClick:e,commentOrThread:n,deleteCommentOrThread:r,hasPermission:i})=>{const s=iP(e=>e.commentsLocales);return t.jsxs(o.Menu,{shadow:"md",width:200,children:[t.jsx(o.Menu.Target,{children:t.jsx(o.ActionIcon,{color:"black",size:16,"aria-label":"Settings",className:TO,variant:"transparent",children:t.jsx(Yj,{name:"dots-vertical"})})}),t.jsxs(o.Menu.Dropdown,{children:[i&&t.jsx(o.Menu.Item,{onClick:()=>e(n),leftSection:t.jsx(a.IconPencil,{size:16}),children:s.menuActions.edit}),t.jsx(o.Menu.Item,{color:"red",onClick:()=>{wP({title:QO(n.type,s),labels:{cancel:s.deleteModal.actions.cancel,confirm:s.deleteModal.actions.remove},children:YO(n.type,s),onConfirm:()=>{r(n)}})},leftSection:t.jsx(a.IconTrash,{size:16}),children:s.menuActions.delete})]})]})},cP={transition:"fade",duration:300},dP=["e=%F0%9F%91%8D","e=%F0%9F%91%8E","e=%E2%9C%8D%EF%B8%8F","e=%F0%9F%98%80","e=%F0%9F%94%A5"],uP=({accepted:e,showEmojiPicker:r,setShowEmojiPicker:i,resolveThreat:s,commentOrThread:c,commentSelected:d,handleBlur:u,hasPermission:h,toggleRepliesInput:f,deleteCommentOrThread:p,handleEditClick:m,handleReactionClick:g})=>{const[v,b]=n.useState(null),y=iP(e=>e.commentsLocales),w=iP(e=>e.adminPermission),k=l.useClickOutside(()=>i(!1));return t.jsx("div",{className:AO,style:{...r&&{opacity:1}},ref:r?k:null,children:r?t.jsxs(t.Fragment,{children:[dP.map((e,n)=>t.jsx(o.ActionIcon,{color:"black",size:16,className:TO,variant:"transparent",onClick:()=>g(e),children:t.jsx(_,{icon:e,fallback:t.jsx(a.IconFile,{size:"1em"})})},n)),t.jsx($e,{onChange:e=>{e.startsWith("c=")&&!e.includes("&")?b(e):(g(e),i(!1))},showIcons:!0,value:v,position:"left-start",showColors:!0,withinPortal:!0,popoverProps:{transitionProps:cP},children:t.jsx(o.Tooltip,{label:y.actionTooltips.addReaction,children:t.jsx(o.ActionIcon,{color:"black",size:20,className:jO,variant:"transparent",children:t.jsx(Yj,{name:"emoji"})})})})]}):t.jsxs(t.Fragment,{children:[h&&t.jsx(o.Tooltip,{label:e?y.actionTooltips.reopen:y.actionTooltips.resolve,children:t.jsx(o.ActionIcon,{color:"black",size:16,className:`${TO} resolve`,variant:"transparent",onClick:e=>{d&&e.stopPropagation(),u(e),s(c)},children:t.jsx(Yj,{name:""+(e?"reOpen":"check-mark")})})},e.toString()),t.jsx(o.Tooltip,{label:y.actionTooltips.addReaction,children:t.jsx(o.ActionIcon,{color:"black",disabled:!1,size:16,className:TO,variant:"transparent",onClick:()=>i(!0),children:t.jsx(Yj,{name:"emoji"})})}),!e&&t.jsx(o.Tooltip,{label:y.actionTooltips.reply,children:t.jsx(o.ActionIcon,{color:"black",size:"xs",className:`${TO} reply`,variant:"transparent",onClick:e=>{d&&e.stopPropagation(),f(c.id,e)},children:t.jsx(Yj,{name:"messages"})})}),(w||h)&&t.jsx(lP,{hasPermission:h,commentOrThread:c,deleteCommentOrThread:p,handleEditClick:m})]})})},hP=({onDownload:e,onDelete:n,iconColor:r="light-dark(black, #E0E0E0)",hasPermission:i,locales:s})=>{const l=iP(e=>e.commentsLocales),c=s??l;return t.jsxs(o.Menu,{radius:"md",width:190,position:"bottom-end",withArrow:!0,children:[t.jsx(o.Menu.Target,{children:t.jsx(o.ActionIcon,{size:24,variant:"subtle",color:r,radius:6,children:t.jsx(a.IconDotsVertical,{})})}),t.jsxs(o.Menu.Dropdown,{children:[t.jsx(o.Menu.Item,{"data-ignore-blur":"true",leftSection:t.jsx(a.IconDownload,{size:16}),onClick:e,children:c.menuActions.download}),i&&t.jsx(o.Menu.Item,{"data-ignore-blur":"true",leftSection:t.jsx(a.IconTrash,{size:16}),color:"red",onClick:n,children:c.menuActions.delete})]})]})},fP=e=>!!e&&e.startsWith("temp-"),pP=({files:e,hasPermission:r,removeImage:a,showLoading:s=!1,locales:c})=>{const[d,{open:u,close:h}]=l.useDisclosure(!1),[f,p]=n.useState(null),{isSidebar:m,adminPermission:g}=iP(e=>e),{t:v}=i.useTranslation(),b=m?{download:v("editor.gallery.download"),close:v("editor.gallery.close"),errorFile:v("editor.gallery.errorFile")}:void 0,y=n.useMemo(()=>e.filter(e=>e.isImage),[e]),w=n.useMemo(()=>e.filter(e=>!e.isImage),[e]),k=n.useMemo(()=>y.map(e=>({id:e.id,Url:e.src,contentType:"image"})),[y]),x=e=>{const t=URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download=e.name,document.body.appendChild(n),n.click(),setTimeout(()=>{URL.revokeObjectURL(t),document.body.removeChild(n)},200)},C=e.every(e=>e.id);return 0===y.length&&0===w.length?null:t.jsxs("div",{className:lO,children:[y.length>0&&t.jsx("ul",{className:tO,children:y.map(({src:e,id:n,file:i},l)=>{const d=n??l,h=fP(d)&&s;return t.jsxs("li",{className:rO,children:[t.jsxs("div",{className:HO,children:[t.jsx("img",{crossOrigin:"anonymous",src:e,onClick:()=>{C&&(p({Url:e,id:n,contentType:"image"}),u())},alt:`Uploaded-${l}`,className:`${cO} ${C?"enable":""}`}),t.jsx("div",{className:qO,children:t.jsx(hP,{onDelete:()=>a(d),onDownload:()=>x(i),iconColor:"white",hasPermission:g||!!r,locales:c})})]}),t.jsx(o.LoadingOverlay,{visible:h,loaderProps:{size:20}})]},d)})}),w.length>0&&t.jsx("div",{className:UO,children:t.jsx("ul",{className:EO,children:w.map(({file:e,id:n},i)=>{const l=n??i,d=fP(l)&&s;return t.jsxs("li",{className:MO,children:[t.jsxs("div",{className:VO,title:e.name,children:[t.jsx("div",{className:XO,children:NP(DP(e.type),!1,32)}),t.jsxs("div",{className:GO,children:[t.jsx("div",{className:WO,children:e.name}),t.jsxs("div",{className:JO,children:[(e.size/1024).toFixed(1)," KB"]})]}),t.jsx(hP,{onDelete:()=>a(l),onDownload:()=>x(e),hasPermission:g||!!r,locales:c})]}),t.jsx(o.LoadingOverlay,{visible:d,loaderProps:{size:20}})]},l)})})}),C&&t.jsx(Gj,{showAttach:f,setShowAttach:p,opened:d,onOpenChange:e=>{e?u():h()},attachments:k,translation:b})]})};function mP(e,t,n){return ls(new Date(e),"dd/MM/yyyy, HH:mm")+(t?` (${n.edited})`:"")}function gP(e,t,n){var r,i,o;if(t)return null==(r=e.repliesToggle)?void 0:r.hide;const a=1===n?"show_one":"show_other";return null==(o=null==(i=e.repliesToggle)?void 0:i[a])?void 0:o.replace("{{count}}",String(n))}const vP=({commentOrThread:e,handleClickThread:r,markNodeMap:i,parentThreadOrGeneral:s,submitAddComment:l,removeCommentReactions:c,updateThreadId:d,addCommentReaction:u,deleteCommentImage:h,activeIDs:f,updateCommentTextOrImage:p,resolveThreat:m,toggleRepliesInput:g,locales:v,deleteCommentOrThread:b,replyInput:y})=>{const[w,k]=n.useState({replyList:[],editCommentId:"",editedContent:""}),[x,C]=n.useState({value:"",files:[]}),[S,E]=n.useState(!1),{workspaceMembers:M,currentUser:T,getEditor:A,isGuest:j,adminPermission:O}=iP(),{colorScheme:P}=o.useMantineColorScheme(),L="dark"===P,I=f&&f[0]===e.id,N=(null==T?void 0:T.id)===e.authorId,R=w.replyList.includes(e.id),D=e.id.includes("temp"),B="comment"!==e.type&&e.children?e.children.filter(e=>!e.deleted):[],z=R?B:B.slice(0,1),F=e.id===y,H=()=>{k(e=>({...e,editCommentId:""})),C({value:"",files:[]}),g("")},q=async t=>{const n=(e=>{const t=e.split("/");return t[t.length-1]})(String(t)),r=1===((null==e?void 0:e.files)||[]).length,i=((null==e?void 0:e.text)||"").replace(/<[^>]*>/g,"").replace(/\s| /g,"");r&&0===i.length?b(e,s):s?h(n,s.id,null==e?void 0:e.id):h(n,null==e?void 0:e.id)},U="comment"!==e.type&&"ACCEPTED"===e.resolution,V=e.id,X=((null==e?void 0:e.reactions)||[]).reduce((e,t)=>(e[t.reaction]||(e[t.reaction]={count:0,id:t.id,authors:new Set}),e[t.reaction].count+=1,e[t.reaction].authors.add(t.userId),e),{}),G=t=>{var n;const{isDuplicateReaction:r,hasTempReaction:i}=e.reactions.reduce((e,{reaction:n,userId:r,id:i})=>(n===t&&r===(null==T?void 0:T.id)&&(i.startsWith("temp")?e.hasTempReaction=!0:e.isDuplicateReaction=!0),e),{isDuplicateReaction:!1,hasTempReaction:!1});if(!i){if(r){const r=null==(n=e.reactions.find(({reaction:e,userId:n})=>e===t&&n===(null==T?void 0:T.id)))?void 0:n.id;s?c(r,s,e):c(r,e,s)}else u(t,e,s);E(!1)}},W=t=>{const n=new Set(t.files.map(e=>e.id)),r=t.files.filter(e=>{var t;return null==(t=e.id)?void 0:t.startsWith("temp-")}),i={deletedFile:e.files.filter(e=>!!e.id&&!n.has(e.id)),newFiles:r},o={value:t.value,restore:e.text!==t.value};p(o,i,w.editCommentId,null==s?void 0:s.id),H()},J=null==M?void 0:M.find(t=>t.userId===e.authorId),Z=J?{id:J.userId,name:J.name,email:J.email,avatar:J.avatarUrl}:{id:e.authorId,name:"Deleted user",email:"",avatar:""};return t.jsxs("li",{onMouseDown:r,"data-id":e.id,className:`${gO} ${(null==i?void 0:i.has(V))?"interactive":""} ${f?-1===f.indexOf(V)?"":"active":""}\n ${U?`${OO}`:""}`,children:[t.jsxs("div",{className:bO,children:[t.jsx(Ni,{user:Z}),t.jsxs("div",{className:_j,children:[t.jsxs("div",{className:wO,children:[t.jsxs("div",{className:fO,children:[t.jsx("span",{className:pO,children:Z.name}),t.jsx("span",{className:mO,children:mP(e.timeStamp??0,e.edited,v)})]}),!D&&(O||!j)&&t.jsx(uP,{hasPermission:N,accepted:U,showEmojiPicker:S,setShowEmojiPicker:E,resolveThreat:m,commentOrThread:e,commentSelected:I,handleBlur:H,toggleRepliesInput:g,deleteCommentOrThread:b,handleEditClick:e=>{y&&g(""),k(t=>({...t,editCommentId:e.id,editedContent:e.text})),C({value:e.text,files:e.files})},handleReactionClick:G})]}),t.jsxs("div",{className:SO,children:["thread"===e.type&&t.jsx("blockquote",{className:kO,children:t.jsx("span",{className:xO,children:e.quote})}),w.editCommentId!==e.id&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"doc-space-styles-provider",children:t.jsx("div",{className:zO,dangerouslySetInnerHTML:{__html:e.text}})}),e.files&&e.files.length&&w.editCommentId!==e.id?t.jsx(pP,{hasPermission:N,removeImage:q,files:e.files,showLoading:!D}):null]}),w.editCommentId!==e.id&&t.jsx("div",{className:`${CO} ${j?FO:""}`,children:Object.entries(X).map(([e,n],r)=>{const i=n.authors.has((null==T?void 0:T.id)||""),o=L?"rgba(67, 155, 255, 0.24)":"rgba(35, 131, 226, 0.14)";return t.jsxs("div",{style:{background:i&&o||void 0},onClick:j?void 0:()=>G(e),children:[t.jsx(_,{size:16,fz:16,icon:e,fallback:t.jsx(a.IconFile,{size:"16px"})},r),t.jsx("span",{children:n.count})]},r)})})]})]})]}),w.editCommentId===e.id&&t.jsx(xP,{commentValue:x,setCommentValue:C,isEditInput:!0,updateThreadId:d,removeCommentImage:q,setCommentActions:k,submitAddComment:l||(()=>{}),handleEditComment:W,handleBlur:H,placeholder:v.replyComment,children:({onSubmit:t,handleBlur:n,autoFocus:r,setCommentValue:i,commentValue:o,registerClearEditor:a,editorRef:s})=>null==A?void 0:A({onSubmit:t,handleBlur:n,autoFocus:r,setCommentValue:i,commentValue:o,initialContent:e.text,registerClearEditor:a,editorRef:s})}),t.jsx(o.LoadingOverlay,{visible:D}),z.length?t.jsx("ul",{className:vO,children:z.map(n=>{const r=n.id;return t.jsx(vP,{commentOrThread:n,locales:v,deleteCommentOrThread:()=>b(n,e),deleteCommentImage:h,addCommentReaction:u,removeCommentReactions:c,updateCommentTextOrImage:p,toggleRepliesInput:g,parentThreadOrGeneral:e},n.clientKey??r)})}):null,!U&&F&&t.jsx(xP,{commentValue:x,setCommentValue:C,thread:e,isEditInput:!1,updateThreadId:d,removeCommentImage:q,setCommentActions:k,submitAddComment:l||(()=>{}),handleEditComment:W,handleBlur:H,placeholder:v.replyComment,children:({onSubmit:e,handleBlur:t,autoFocus:n,setCommentValue:r,commentValue:i,registerClearEditor:o,editorRef:a})=>null==A?void 0:A({onSubmit:e,handleBlur:t,autoFocus:n,setCommentValue:r,commentValue:i,registerClearEditor:o,editorRef:a})}),"comment"!==e.type&&B.length-1>0?t.jsx(o.Button,{onClick:()=>((e,t=!1)=>{w.replyList.includes(e)&&t||k(t=>({...t,replyList:t.replyList.includes(e)?t.replyList.filter(t=>t!==e):[...t.replyList,e]}))})(e.id),variant:"default",fullWidth:!0,radius:"sm",className:yO,children:gP(v,R,B.length-1)}):null]},e.clientKey??e.id)};function bP({activeIDs:e,comments:r,deleteCommentOrThread:i,listRef:o,addCommentReaction:a,updateThreadId:s,submitAddComment:l,deleteCommentImage:c,removeCommentReactions:d,markNodeMap:u,resolveThreat:h,updateCommentTextOrImage:f}){const{selectMarkNode:p}=iP(),[m,g]=n.useState(0),[v,b]=n.useState(""),y=iP(e=>e.commentsLocales);n.useEffect(()=>{const e=setTimeout(()=>{g(m+1)},1e4);return()=>{clearTimeout(e)}},[m]);const w=e=>{b(t=>t===e?"":e)};return t.jsx("ul",{className:nO,ref:o,children:r.map(n=>{const r=n.id;if("thread"===n.type||"general"===n.type){const o=t=>{if(!t.target||"thread"!==n.type)return;const i=null==u?void 0:u.get(r);if(void 0!==i&&(null===e||-1===e.indexOf(r))){const e=document.activeElement;null==p||p(i,e)}};return t.jsx(vP,{commentOrThread:n,locales:y,deleteCommentOrThread:i,deleteCommentImage:c,addCommentReaction:a,removeCommentReactions:d,handleClickThread:o,markNodeMap:u,replyInput:v,updateThreadId:s,toggleRepliesInput:w,updateCommentTextOrImage:f,resolveThreat:h,activeIDs:e,submitAddComment:l},n.clientKey??r)}})})}const yP=({onSubmit:e,handleFileChange:n,disabledSubmitButton:r,disabledUploadButton:i,isFloatInput:a=!1,setIsSubmitting:s,isSubmitting:l,handleClearInput:c,locales:d})=>{var u,h,f,p;const m=iP(e=>e.commentsLocales),g=d??m,v=E.useRef(null);return t.jsxs("div",{className:IO,children:[!r&&!a&&t.jsx(o.Tooltip,{label:null==(u=g.inputEditor)?void 0:u.clear,children:t.jsx(o.ActionIcon,{color:"#495057",onClick:c,size:22,"aria-label":"Clear",variant:"transparent",tabIndex:-1,children:t.jsx(Yj,{name:"close"})})}),t.jsxs("div",{className:RO,style:{position:"relative"},onClick:()=>{var e;i||null==(e=v.current)||e.click()},children:[t.jsx(o.Tooltip,{label:i?null==(f=null==(h=g.notifications)?void 0:h.uploadMessages)?void 0:f.fileLimit:null==(p=g.inputEditor)?void 0:p.uploadFiles,children:t.jsx(o.ActionIcon,{color:"#495057",size:16,"aria-label":"Upload File",variant:"transparent",tabIndex:-1,disabled:i,className:BO,children:t.jsx(Yj,{name:"paperclip"})})}),t.jsx("input",{ref:v,type:"file",multiple:!0,disabled:i,onChange:e=>{e.target.files&&(n(Array.from(e.target.files)),e.target.value="")},className:DO,tabIndex:-1},i.toString())]}),t.jsx(o.Tooltip,{label:tP?"⌘ + Enter":"Ctrl + Enter",children:t.jsx(o.ActionIcon,{color:"#000000",size:22,"aria-label":"Submit",className:NO,variant:"outline",tabIndex:-1,onClick:async()=>{if(!l){s(!0);try{e()}catch(t){}finally{s(!1)}}},disabled:r,children:t.jsx(Yj,{name:"send"})})})]})},wP=e=>{const t=e.onConfirm,{isLoading:n,...r}=e,i=g.modals.openConfirmModal({keepMounted:!1,centered:!0,confirmProps:{color:"red",fullWidth:!0,loading:n},cancelProps:{fullWidth:!0},groupProps:{wrap:"nowrap"},onClose:()=>{var e;window.removeEventListener("keydown",o),null==(e=r.onClose)||e.call(r)},...r}),o=e=>{var r;const o=null==(r=document.activeElement)?void 0:r.tagName;"Enter"!==e.key||"TEXTAREA"===o||"INPUT"===o||n||(e.preventDefault(),null==t||t(),g.modals.close(i))};window.addEventListener("keydown",o)};function kP({children:e,onSubmit:r,handleBlur:i,autoFocus:o=!0,registerClearEditor:a}){const s=n.useRef(null);return n.useEffect(()=>{const e=s.current;e&&o&&setTimeout(()=>{e.focus(()=>({defaultSelection:"rootEnd"}))},0)},[o]),n.useEffect(()=>{const e=e=>{const t=e.target,n=s.current;if(n&&t&&(t.classList.contains(dO)||t.classList.contains("editor-scroller")||t.classList.contains("doc-space-styles-provider"))){if(t.querySelector(`.${tO}`)||t.querySelector(`.${UO}`))return;setTimeout(()=>{n.focus(()=>({defaultSelection:"rootEnd"}))},0)}};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),n.useEffect(()=>{const e=s.current;if(!e)return;null==a||a(()=>{e.update(()=>{const t=e._editorState._nodeMap.get("root");if(!t)return;t.clear();const n=e._nodes.get("paragraph");if(!n)return;const r=new n.klass;t.append(r),r.select()})});const t=t=>{"Enter"===t.code&&!t.shiftKey&&document.activeElement===e.getRootElement()&&(r(),setTimeout(()=>{e.blur()}))};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[r,i,a]),t.jsx(t.Fragment,{children:e(s)})}const xP=({submitAddComment:e,commentValue:r,thread:i,setCommentValue:o,handleBlur:a,autoFocus:s=!0,provideCommentOptions:l,removeCommentImage:c,handleEditComment:d,isEditInput:u=!1,isGeneral:h,updateThreadId:f,setCommentActions:p,updateLocation:m,getSelectionText:g,children:v,providedUser:b,placeholder:y,composerLocales:w})=>{const k=n.useRef(null),x=n.useMemo(()=>({container:document.createElement("div"),elements:[]}),[]),C=n.useMemo(()=>u?{...r}:null,[u]),[S,M]=E.useState(!1),T=n.useRef(r),A=n.useRef(null),j=n.useRef(!1),O=iP(e=>e.commentsLocales),P=w??O,{currentUser:L,commentOptions:I}=iP(),N=b??L,R=l??I,D=n.useRef(null),B=y??(null==P?void 0:P.addComment),z=!h&&!i&&!u;n.useLayoutEffect(()=>{if(!m)return;m(k.current,D,x);const e=x.container,t=document.body;return null!==t?(t.appendChild(e),()=>{t.removeChild(e)}):void 0},[m,x.container,x]),n.useEffect(()=>{if(!m)return;const e=()=>{m(k.current,D,x)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[x,m]),n.useEffect(()=>{if(!h)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)};function e(e){const t=e.target;if(k.current&&k.current.contains(t))return;if(t.closest(".mantine-Popover-dropdown")||t.closest(".floating-text-format-popup")||u&&t.closest("[data-ignore-blur='true']")||!u&&t.closest(".tabler-icon-messages")||t.closest('[data-menu-dropdown="true"]')||t.closest(".mantine-Modal-content"))return;const n=!!C&&JSON.stringify(C)!==JSON.stringify(T.current);return n&&!j.current&&u?(j.current=!0,void wP({title:P.inputEditor.discardModal.title,children:P.inputEditor.discardModal.description,labels:{confirm:P.inputEditor.discardModal.labels.confirm,cancel:P.inputEditor.discardModal.labels.cancel},onConfirm:()=>{a()},onClose:()=>{j.current=!1}})):z&&(""!==T.current.value.trim()||T.current.files.length>0)?(j.current=!0,e.stopPropagation(),e.preventDefault(),void wP({title:P.inputEditor.discardModal.title,children:P.inputEditor.cancelCommentModal.description,labels:{confirm:P.inputEditor.discardModal.labels.confirm,cancel:P.inputEditor.discardModal.labels.cancel},onConfirm:()=>{a()},onClose:()=>{j.current=!1}})):void(n||a())}},[a,h,u,C]);const F=async()=>{var t;const n=T.current;if(!n.value.trim()&&!n.files.length)return;const r=i?i.id:null==R?void 0:R.pageId,o=n.files.length>0,s=i?"COMMENT":"PAGE",l=h?"REVIEW":"FAQ",c="temp-"+Date.now()+"-"+Math.random().toString(36).substring(2,9),d="FAQ"===l?i?"comment":"thread":"general",u=JSON.stringify(null==R?void 0:R.workspaceInfo);let m=g?g(D.current):"";m.length>100&&(m=m.slice(0,99)+"…");const v={id:c,quote:"thread"===d?m:"general"===d?u:"",deleted:!1,type:d,clientKey:crypto.randomUUID(),resolution:null,edited:!1,text:n.value,reactions:[],files:n.files,authorId:(null==N?void 0:N.id)||"",timeStamp:performance.timeOrigin+performance.now(),children:[]};"FAQ"===l?i?(e(v,!1,i,D.current),p(e=>({...e,replyList:[...e.replyList,i.id]}))):(KO('ul[class*="commentPluginCommentsPanelList"]'),e(v,!0,void 0,D.current)):(KO('ul[class*="commentPluginCommentsPanelList"]'),null==(t=A.current)||t.call(A),e(v,!0)),a(),D.current=null;try{await(null==R?void 0:R.commentActions.submitCommentApi({text:n.value,commentType:l,parentType:s,parentId:r,onSuccess:async e=>{const t=e.id,r=e.updatedAt;let a=[];if(o){const e=await(async(e,t,n)=>t.length?(await Promise.all(t.map(t=>new Promise((r,i)=>{n({file:t.file,commentId:e,onSuccess:e=>{r(e)},onError:e=>{i(null)}})})))).filter(e=>null!==e):[])(t,n.files,R.commentActions.uploadCommentFileApi);a=e.map(e=>rP(e))}f&&f(c,t,r,d,a.flat(),i)}}))}catch(b){}},H=()=>{u?null==d||d(T.current):F()};n.useEffect(()=>{T.current=r},[r]);const q=""!==r.value||r.files.length>0,V=10===r.files.length;return t.jsx("div",{ref:k,className:`${sO} ${u?uO:""}`,children:t.jsxs("div",{className:hO,style:{"--placeholder-text":`"${B}..."`},children:[t.jsx(kP,{onSubmit:H,handleBlur:a,autoFocus:s,registerClearEditor:e=>{A.current=e},children:e=>"function"==typeof v?v({onSubmit:H,handleBlur:a,autoFocus:s,setCommentValue:o,commentValue:r,editorRef:e}):v}),t.jsxs("div",{className:dO,children:[t.jsx(pP,{hasPermission:!0,removeImage:e=>{const t="string"==typeof e;if(t&&c&&!u){c(e);const t=r.files.filter(e=>"file"in e);return void o(e=>({...e,files:t}))}o(n=>{const r=t?n.files.filter(t=>t.id!==e):n.files.filter((t,n)=>n!==e);return{...n,files:r}})},files:r.files,locales:P}),t.jsx(yP,{handleClearInput:()=>{var e,t;const n=Boolean(null==(e=r.value)?void 0:e.trim()),i=Boolean(null==(t=r.files)?void 0:t.length);wP({title:P.inputEditor.clearModal.title,labels:{confirm:P.deleteModal.actions.remove,cancel:P.deleteModal.actions.cancel},children:nP(n,i,P),onConfirm:()=>{var e;o({files:[],value:""}),null==(e=A.current)||e.call(A)}})},disabledSubmitButton:!q,disabledUploadButton:V,handleFileChange:e=>{e&&0!==e.length&&o(t=>{var n,r,i,o;const a=t.files||[],s=10-a.length,l=[],c=[];e.forEach(e=>{e.size<=5242880?l.push(e):c.push(e)}),c.length>0&&U({message:null==(r=null==(n=null==P?void 0:P.notifications)?void 0:n.uploadMessages)?void 0:r.fileTooLarge}),l.length>s&&U({message:null==(o=null==(i=null==P?void 0:P.notifications)?void 0:i.uploadMessages)?void 0:o.tooManyFiles});const d=l.slice(0,s).map(e=>rP(e,!0));return 0===d.length?t:{...t,files:[...a,...d]}})},onSubmit:H,locales:P,isFloatInput:z,isSubmitting:S,setIsSubmitting:M})]})]})})},CP=ot(()=>({opened:!1,submitFunc:()=>{},title:"",description:"",submitLabel:"",hideGeneratedCode:!1,pinLength:4})),SP=()=>{CP.setState({opened:!1})},EP=()=>{const{submitFunc:e,description:r,submitLabel:i,hideGeneratedCode:a,pinLength:s=4}=CP(),[l,c]=n.useState(""),[d,h]=n.useState(""),f=n.useRef(null),p=n.useMemo(()=>l.length<s||!a&&l!==d,[l,s,a,d]),m=u.useForm({initialValues:{pinCode:""}});return n.useEffect(()=>{const e=Math.floor(1e3+9e3*Math.random()).toString();h(e)},[]),n.useEffect(()=>{const e=setTimeout(()=>{f.current&&f.current.focus()},1);return()=>clearTimeout(e)},[]),t.jsxs(o.Box,{children:[t.jsx(o.Text,{c:"dimmed",fz:12,mt:19,lh:"14px",children:r}),t.jsx("form",{onSubmit:m.onSubmit(()=>{e(l,d)}),children:t.jsxs(o.Stack,{gap:0,children:[t.jsx(o.Flex,{justify:"center",align:"center",children:!a&&t.jsx(o.Text,{size:"xl",fw:600,style:{letterSpacing:"5px"},fz:32,my:12,children:d})}),t.jsx(o.Flex,{justify:"center",align:"center",mb:"md",children:t.jsx(o.PinInput,{ref:f,length:s,value:l,onChange:c,styles:{pinInput:{marginTop:"12px"}},type:"number",radius:"sm",placeholder:"○",size:"sm",gap:"md"})}),t.jsx(o.Flex,{justify:"flex-end",mt:"md",children:t.jsx(o.Button,{fullWidth:!0,w:"auto",type:"submit",size:"sm",disabled:p,children:i})})]})})]})},MP=(e,t)=>e.filter(e=>!!e&&"object"==typeof e).flatMap(e=>{const n=MP(e.children??[],t);return t.includes(e.type)?{...e,children:n}:n}),TP=["yellow","blue","green","teal","orange","grape","cyan","lime","pink","red","violet","indigo"],AP=ot(()=>({opened:!1})),jP={documents:"#F03E3E",images:"#FF6F00",other:"#868E96",archives:"#9B14EA",audio:"#0CA678",code:"#1C7ED6",videos:"#FAB005"},OP="_image_945jb_1",PP={ru:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-ru'%20viewBox='0%200%20640%20480'%3e%3cpath%20fill='%23fff'%20d='M0%200h640v160H0z'/%3e%3cpath%20fill='%230039a6'%20d='M0%20160h640v160H0z'/%3e%3cpath%20fill='%23d52b1e'%20d='M0%20320h640v160H0z'/%3e%3c/svg%3e",en:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-us'%20viewBox='0%200%20640%20480'%3e%3cpath%20fill='%23bd3d44'%20d='M0%200h640v480H0'/%3e%3cpath%20stroke='%23fff'%20stroke-width='37'%20d='M0%2055.3h640M0%20129h640M0%20203h640M0%20277h640M0%20351h640M0%20425h640'/%3e%3cpath%20fill='%23192f5d'%20d='M0%200h364.8v258.5H0'/%3e%3cmarker%20id='us-a'%20markerHeight='30'%20markerWidth='30'%3e%3cpath%20fill='%23fff'%20d='m14%200%209%2027L0%2010h28L5%2027z'/%3e%3c/marker%3e%3cpath%20fill='none'%20marker-mid='url(%23us-a)'%20d='m0%200%2016%2011h61%2061%2061%2061%2060L47%2037h61%2061%2060%2061L16%2063h61%2061%2061%2061%2060L47%2089h61%2061%2060%2061L16%20115h61%2061%2061%2061%2060L47%20141h61%2061%2060%2061L16%20166h61%2061%2061%2061%2060L47%20192h61%2061%2060%2061L16%20218h61%2061%2061%2061%2060z'/%3e%3c/svg%3e",es:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-es'%20viewBox='0%200%20640%20480'%3e%3cpath%20fill='%23AA151B'%20d='M0%200h640v480H0z'/%3e%3cpath%20fill='%23F1BF00'%20d='M0%20120h640v240H0z'/%3e%3cpath%20fill='%23ad1519'%20d='m127.3%20213.3-.8-.1-1-1-.7-.4-.6-.8s-.7-1.1-.4-2q.5-1.2%201.4-1.5l1.5-.5%201-.4%201.3-.3.5-.3%201-.2%201-.2%201.6.1h4.8c.4%200%201.2.3%201.4.4l2%20.7c.5.1%201.6.3%202.2.6q.8.5%201.1%201l.5%201v1.1l-.5.8-.6%201-.8.6s-.5.5-1%20.4-4.8-.8-7.6-.8-7.3.9-7.3.9'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='m127.3%20213.3-.8-.1-1-1-.7-.4-.6-.8s-.7-1.1-.4-2q.5-1.2%201.4-1.5l1.5-.5%201-.4%201.3-.3.5-.3%201-.2%201-.2%201.6.1h4.8c.4%200%201.2.3%201.4.4l2%20.7c.5.1%201.6.3%202.2.6q.8.5%201.1%201l.5%201v1.1l-.5.8-.6%201-.8.6s-.5.5-1%20.4-4.8-.8-7.6-.8-7.3.9-7.3.9z'/%3e%3cpath%20fill='%23c8b100'%20d='M133.3%20207q.1-2.1%201.3-2.3%201.3.1%201.4%202.4c0%201.3-.6%202.4-1.4%202.4s-1.3-1.1-1.3-2.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M133.3%20207q.1-2.1%201.3-2.3%201.3.1%201.4%202.4c0%201.3-.6%202.4-1.4%202.4s-1.3-1.1-1.3-2.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M134%20207q0-2%20.7-2.1c.3%200%20.6%201%20.6%202.1q0%202-.6%202.2c-.4%200-.6-1-.6-2.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134%20207q0-2%20.7-2.1c.3%200%20.6%201%20.6%202.1q0%202-.6%202.2c-.4%200-.6-1-.6-2.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M133.8%20204.5q.1-.7.8-.8%201%200%201%20.8-.1.8-1%20.9c-.9.1-.8-.4-.8-.9'/%3e%3cpath%20fill='%23c8b100'%20d='M135.3%20204.2v.6h-1.4v-.6h.5V203h-.7v-.6h.7v-.5h.5v.5h.6v.6h-.6v1.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M135.3%20204.2v.6h-1.4v-.6h.5V203h-.7v-.6h.7v-.5h.5v.5h.6v.6h-.6v1.2h.4'/%3e%3cpath%20fill='%23c8b100'%20d='M135.9%20204.2v.6h-2.5v-.6h1V203h-.7v-.6h.7v-.5h.5v.5h.6v.6h-.6v1.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M135.9%20204.2v.6h-2.5v-.6h1V203h-.7v-.6h.7v-.5h.5v.5h.6v.6h-.6v1.2h1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.9%20203.7q.6.2.6.8-.1.8-.8.9-1%200-1-.9%200-.6.7-.8'/%3e%3cpath%20fill='%23c8b100'%20d='M134.7%20213.2H130v-1.1l-.3-1.2-.2-1.5c-1.3-1.7-2.5-2.8-2.9-2.5q.1-.5.5-.7c1.1-.7%203.5%201%205.2%203.6l.5.7h3.8l.4-.7c1.8-2.7%204.1-4.3%205.2-3.6q.4.2.5.7c-.4-.3-1.6.8-2.9%202.5l-.2%201.5-.2%201.2-.1%201.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.7%20213.2H130v-1.1l-.3-1.2-.2-1.5c-1.3-1.7-2.5-2.8-2.9-2.5q.1-.5.5-.7c1.1-.7%203.5%201%205.2%203.6l.5.7h3.8l.4-.7c1.8-2.7%204.1-4.3%205.2-3.6q.4.2.5.7c-.4-.3-1.6.8-2.9%202.5l-.2%201.5-.2%201.2-.1%201.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M126.8%20206.8c1-.5%203%201.1%204.6%203.6m11-3.6c-.8-.5-2.8%201.1-4.5%203.6'/%3e%3cpath%20fill='%23c8b100'%20d='m127.8%20215.3-.5-1a27%2027%200%200%201%2014.7%200l-.5.8-.3.8a23%2023%200%200%200-6.6-.8c-2.6%200-5.2.3-6.5.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m127.8%20215.3-.5-1a27%2027%200%200%201%2014.7%200l-.5.8-.3.8a23%2023%200%200%200-6.6-.8c-2.6%200-5.2.3-6.5.8l-.3-.6'/%3e%3cpath%20fill='%23c8b100'%20d='M134.6%20217.7c2.4%200%205-.4%205.9-.6q1-.3%201-.8%200-.3-.4-.4c-1.4-.5-4-.8-6.5-.8s-5%20.3-6.4.8q-.3%200-.4.3%200%20.6%201%20.9c1%20.2%203.5.6%205.8.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.6%20217.7c2.4%200%205-.4%205.9-.6q1-.3%201-.8%200-.3-.4-.4c-1.4-.5-4-.8-6.5-.8s-5%20.3-6.4.8q-.3%200-.4.3%200%20.6%201%20.9c1%20.2%203.5.6%205.8.6z'/%3e%3cpath%20fill='%23c8b100'%20d='m142.1%20213.2-.5-.5s-.6.3-1.3.2c-.6%200-.9-1-.9-1s-.7.7-1.3.7-1-.6-1-.6-.7.5-1.3.4-1.2-.8-1.2-.8-.6.8-1.2.8c-.6.1-1-.5-1-.5s-.4.6-1.1.7-1.4-.6-1.4-.6-.5.7-1%201c-.5%200-1.2-.4-1.2-.4l-.2.5-.3.1.2.5a27%2027%200%200%201%207.2-.9q4.5%200%207.4%201z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m142.1%20213.2-.5-.5s-.6.3-1.3.2c-.6%200-.9-1-.9-1s-.7.7-1.3.7-1-.6-1-.6-.7.5-1.3.4-1.2-.8-1.2-.8-.6.8-1.2.8c-.6.1-1-.5-1-.5s-.4.6-1.1.7-1.4-.6-1.4-.6-.5.7-1%201c-.5%200-1.2-.4-1.2-.4l-.2.5-.3.1.2.5a27%2027%200%200%201%207.2-.9q4.5%200%207.4%201z'/%3e%3cpath%20fill='%23c8b100'%20d='M134.7%20210.7h.2v.4q0%201%201%201a1%201%200%200%200%201-.7l.2-.3v.4q.3.8%201.1.8%201%200%201-1v-.1l.4-.4.2.5-.1.4a1%201%200%200%200%201%201q.6%200%20.9-.5l.2-.2v.3q0%20.5.4.7l1-.4.7-.7v.4s-.5.8-1%201q-.3.4-.8.3-.5%200-.7-.6-.3.3-.7.2-1%200-1.4-.8-.5.5-1.1.5a2%202%200%200%201-1.2-.6l-1%20.4a2%202%200%200%201-1.3-.6%201.6%201.6%200%200%201-2.4.2%202%202%200%200%201-1.2.6l-1.1-.5q-.4.8-1.4.8l-.7-.2q-.2.5-.7.6t-.9-.2l-1-1%20.1-.5.8.7q.8.5.9.4.4-.1.4-.7v-.3l.2.2q.3.5.9.5a1%201%200%200%200%201-1v-.9l.4.4v.1q.1%201%201%201t1.1-.9v-.3l.2.3q.3.6%201%20.7%201%200%201.1-1v-.3h.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.7%20210.7h.2v.4q0%201%201%201a1%201%200%200%200%201-.7l.2-.3v.4q.3.8%201.1.8%201%200%201-1v-.1l.4-.4.2.5-.1.4a1%201%200%200%200%201%201q.6%200%20.9-.5l.2-.2v.3q0%20.5.4.7l1-.4.7-.7v.4s-.5.8-1%201q-.3.4-.8.3-.5%200-.7-.6-.3.3-.7.2-1%200-1.4-.8-.5.5-1.1.5a2%202%200%200%201-1.2-.6l-1%20.4a2%202%200%200%201-1.3-.6%201.6%201.6%200%200%201-2.4.2%202%202%200%200%201-1.2.6l-1.1-.5q-.4.8-1.4.8l-.7-.2q-.2.5-.7.6t-.9-.2l-1-1%20.1-.5.8.7q.8.5.9.4.4-.1.4-.7v-.3l.2.2q.3.5.9.5a1%201%200%200%200%201-1v-.9l.4.4v.1q.1%201%201%201t1.1-.9v-.3l.2.3q.3.6%201%20.7%201%200%201.1-1v-.3h.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M134.6%20213.3q-4.5%200-7.3%201l-.3-.2.1-.3a27%2027%200%200%201%207.5-1q4.6%200%207.6%201l.1.3-.3.2a27%2027%200%200%200-7.4-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M134.6%20213.3q-4.5%200-7.3%201l-.3-.2.1-.3a27%2027%200%200%201%207.5-1q4.6%200%207.6%201l.1.3-.3.2a27%2027%200%200%200-7.4-1z'/%3e%3cpath%20fill='%23fff'%20d='M131.8%20214.4q0-.4.5-.4a.4.4%200%200%201%20.4.4q0%20.3-.4.4a.4.4%200%200%201-.5-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M131.8%20214.4q0-.4.5-.4a.4.4%200%200%201%20.4.4q0%20.3-.4.4a.4.4%200%200%201-.5-.4z'/%3e%3cpath%20fill='%23ad1519'%20d='M134.7%20214.5h-1q-.2%200-.3-.3l.3-.3h2l.2.3-.3.3h-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.7%20214.5h-1q-.2%200-.3-.3l.3-.3h2l.2.3-.3.3h-1'/%3e%3cpath%20fill='%23058e6e'%20d='M130%20214.9h-.7q-.2%200-.3-.2l.2-.3.7-.1.7-.1q.3%200%20.4.2a.3.3%200%200%201-.3.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M130%20214.9h-.7q-.2%200-.3-.2l.2-.3.7-.1.7-.1q.3%200%20.4.2a.3.3%200%200%201-.3.4h-.7'/%3e%3cpath%20fill='%23ad1519'%20d='m127.3%20215.3.3-.4h.7l-.4.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m127.3%20215.3.3-.4h.7l-.4.6-.6-.2'/%3e%3cpath%20fill='%23fff'%20d='M136.6%20214.4q0-.4.4-.4a.4.4%200%200%201%20.5.4.4.4%200%200%201-.5.4.4.4%200%200%201-.4-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M136.6%20214.4q0-.4.4-.4a.4.4%200%200%201%20.5.4.4.4%200%200%201-.5.4.4.4%200%200%201-.4-.4z'/%3e%3cpath%20fill='%23058e6e'%20d='M139.3%20214.9h.6a.3.3%200%200%200%20.4-.2l-.3-.3-.6-.1-.7-.1q-.3%200-.4.2%200%20.3.3.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M139.3%20214.9h.6a.3.3%200%200%200%20.4-.2l-.3-.3-.6-.1-.7-.1q-.3%200-.4.2%200%20.3.3.4h.7'/%3e%3cpath%20fill='%23ad1519'%20d='m142%20215.4-.3-.5h-.7l.3.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m142%20215.4-.3-.5h-.7l.3.6.6-.1'/%3e%3cpath%20fill='%23ad1519'%20d='M134.6%20217.1a25%2025%200%200%201-6-.6%2026%2026%200%200%201%2012.1%200q-2.5.6-6%20.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M134.6%20217.1a25%2025%200%200%201-6-.6%2026%2026%200%200%201%2012.1%200q-2.5.6-6%20.6z'/%3e%3cpath%20fill='%23c8b100'%20d='m142%20212-.1-.3q-.3%200-.4.2%200%20.4.2.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m142%20212-.1-.3q-.3%200-.4.2%200%20.4.2.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M137.3%20211.2q0-.3-.2-.4l-.2.3q0%20.3.2.4l.3-.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M137.3%20211.2q0-.3-.2-.4l-.2.3q0%20.3.2.4l.3-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m132%20211.2.1-.4q.3%200%20.3.3t-.2.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m132%20211.2.1-.4q.3%200%20.3.3t-.2.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m127.3%20212%20.1-.3q.3%200%20.4.2%200%20.4-.2.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m127.3%20212%20.1-.3q.3%200%20.4.2%200%20.4-.2.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m134.6%20208.5-.8.5.6%201.3.2.1.2-.1.7-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m134.6%20208.5-.8.5.6%201.3.2.1.2-.1.7-1.3-.9-.5'/%3e%3cpath%20fill='%23c8b100'%20d='m132.8%20210.5.4.5%201.3-.4.1-.2-.1-.2-1.3-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m132.8%20210.5.4.5%201.3-.4.1-.2-.1-.2-1.3-.3-.4.6'/%3e%3cpath%20fill='%23c8b100'%20d='m136.4%20210.5-.3.5-1.3-.4-.2-.2.2-.2%201.3-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m136.4%20210.5-.3.5-1.3-.4-.2-.2.2-.2%201.3-.3.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m129.3%20209-.7.7.9%201%20.2.1.1-.1.3-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m129.3%20209-.7.7.9%201%20.2.1.1-.1.3-1.3-.8-.3'/%3e%3cpath%20fill='%23c8b100'%20d='m128%20211.2.4.5%201.2-.6v-.2l-.1-.2-1.3-.1-.3.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m128%20211.2.4.5%201.2-.6v-.2l-.1-.2-1.3-.1-.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m131.5%20210.5-.3.6H130l-.2-.2.1-.3%201.2-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m131.5%20210.5-.3.6H130l-.2-.2.1-.3%201.2-.6.5.5'/%3e%3cpath%20fill='%23c8b100'%20d='M126.6%20211.4v.6l-1.4.2-.2-.1v-.2l1-.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M126.6%20211.4v.6l-1.4.2-.2-.1v-.2l1-.9.6.4'/%3e%3cpath%20fill='%23c8b100'%20d='M129.2%20210.9q0-.5.5-.5t.5.5l-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M129.2%20210.9q0-.5.5-.5t.5.5l-.5.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m140%20209%20.7.7-.9%201-.2.1-.1-.1-.3-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m140%20209%20.7.7-.9%201-.2.1-.1-.1-.3-1.3.8-.3'/%3e%3cpath%20fill='%23c8b100'%20d='m141.4%20211.2-.5.5-1.2-.6v-.2l.1-.2%201.3-.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m141.4%20211.2-.5.5-1.2-.6v-.2l.1-.2%201.3-.1.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m137.8%20210.5.3.6h1.3l.2-.2-.1-.3-1.2-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m137.8%20210.5.3.6h1.3l.2-.2-.1-.3-1.2-.6-.5.5'/%3e%3cpath%20fill='%23c8b100'%20d='m142.5%20211.4.1.6%201.3.2.2-.1v-.2l-1-.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m142.5%20211.4.1.6%201.3.2.2-.1v-.2l-1-.9-.6.4'/%3e%3cpath%20fill='%23c8b100'%20d='m134.2%20210.4.4-.4q.5%200%20.5.4l-.5.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m134.2%20210.4.4-.4q.5%200%20.5.4l-.5.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M139.1%20210.9q.1-.5.5-.5l.5.5-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M139.1%20210.9q.1-.5.5-.5l.5.5-.5.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m124.8%20212.2-.6-.7c-.2-.2-.7-.3-.7-.3q0-.2.6-.3l.4.2v-.2s.3%200%20.4.3v1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m124.8%20212.2-.6-.7c-.2-.2-.7-.3-.7-.3q0-.2.6-.3l.4.2v-.2s.3%200%20.4.3v1z'/%3e%3cpath%20fill='%23c8b100'%20d='M124.8%20212q.3-.3.5%200t.2.5l-.5-.1q-.3-.2-.2-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M124.8%20212q.3-.3.5%200t.2.5l-.5-.1q-.3-.2-.2-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='m144.3%20212.2.6-.7.7-.3q0-.2-.6-.3l-.4.2v-.2s-.3%200-.4.3v.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m144.3%20212.2.6-.7.7-.3q0-.2-.6-.3l-.4.2v-.2s-.3%200-.4.3v.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M144.3%20212q-.1-.3-.5%200-.3.2-.1.5l.5-.1q.3-.2.1-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M144.3%20212q-.1-.3-.5%200-.3.2-.1.5l.5-.1q.3-.2.1-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M124%20223h21.4v-5.5H124z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M124%20223h21.4v-5.5H124z'/%3e%3cpath%20fill='%23c8b100'%20d='M126.2%20226.8h16.9a1.4%201.4%200%200%201-1-1.2q.1-1%201-1.3h-16.9q1%20.3%201%201.3a1.3%201.3%200%200%201-1%201.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M126.2%20226.8h16.9a1.4%201.4%200%200%201-1-1.2q.1-1%201-1.3h-16.9q1%20.3%201%201.3a1.3%201.3%200%200%201-1%201.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M126.6%20226.8h16q1%200%201%20.7t-1%20.8h-16q-.9-.1-1-.8%200-1%201-.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M126.6%20226.8h16q1%200%201%20.7t-1%20.8h-16q-.9-.1-1-.8%200-1%201-.8z'/%3e%3cpath%20fill='%23c8b100'%20d='M126.6%20223h16q1%20.1%201%20.7t-1%20.6h-16q-.9%200-1-.6.1-.5%201-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M126.6%20223h16q1%20.1%201%20.7t-1%20.6h-16q-.9%200-1-.6.1-.5%201-.6z'/%3e%3cpath%20fill='%23005bbf'%20d='M149.6%20317.4q-2.2%200-3.7-.8a8%208%200%200%200-3.8-.8q-2.1%200-3.7.8a8%208%200%200%201-3.8.8q-2.3%200-3.7-.8a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8%208%208%200%200%201-3.8.8v2.4q2.3%200%203.8-.9a8%208%200%200%201%203.7-.8q2.2%200%203.7.8c1.5.8%202.2.9%203.7.9a8%208%200%200%200%203.8-.9q1.6-.8%203.7-.8%202.3%200%203.8.8c1.5.8%202.2.9%203.7.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20317.4q-2.2%200-3.7-.8a8%208%200%200%200-3.8-.8q-2.1%200-3.7.8a8%208%200%200%201-3.8.8q-2.3%200-3.7-.8a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8%208%208%200%200%201-3.8.8v2.4q2.3%200%203.8-.9a8%208%200%200%201%203.7-.8q2.2%200%203.7.8c1.5.8%202.2.9%203.7.9a8%208%200%200%200%203.8-.9q1.6-.8%203.7-.8%202.3%200%203.8.8c1.5.8%202.2.9%203.7.9z'/%3e%3cpath%20fill='%23ccc'%20d='M149.6%20319.8a8%208%200%200%201-3.7-.9%208%208%200%200%200-3.8-.8q-2.1%200-3.7.8c-1.6.8-2.3.9-3.8.9s-2.8-.4-3.7-.9a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v2.3q2.3%200%203.8-.9a8%208%200%200%201%203.7-.7q2.2%200%203.7.7a8%208%200%200%200%207.5%200%209%209%200%200%201%207.5.1%208%208%200%200%200%203.7.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20319.8a8%208%200%200%201-3.7-.9%208%208%200%200%200-3.8-.8q-2.1%200-3.7.8c-1.6.8-2.3.9-3.8.9s-2.8-.4-3.7-.9a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v2.3q2.3%200%203.8-.9a8%208%200%200%201%203.7-.7q2.2%200%203.7.7a8%208%200%200%200%207.5%200%209%209%200%200%201%207.5.1%208%208%200%200%200%203.7.8v-2.3'/%3e%3cpath%20fill='%23005bbf'%20d='M149.6%20322a7%207%200%200%201-3.7-.8%208%208%200%200%200-3.8-.7q-2.1%200-3.7.7-1.5.9-3.8.9c-2.3%200-2.8-.4-3.7-.9a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v2.3q2.3%200%203.8-.9a10%2010%200%200%201%207.4%200%207%207%200%200%200%203.7.9%208%208%200%200%200%203.8-.8q1.6-.8%203.7-.8%202.3%200%203.8.8c1.5.8%202.2.8%203.7.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20322a7%207%200%200%201-3.7-.8%208%208%200%200%200-3.8-.7q-2.1%200-3.7.7-1.5.9-3.8.9c-2.3%200-2.8-.4-3.7-.9a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v2.3q2.3%200%203.8-.9a10%2010%200%200%201%207.4%200%207%207%200%200%200%203.7.9%208%208%200%200%200%203.8-.8q1.6-.8%203.7-.8%202.3%200%203.8.8c1.5.8%202.2.8%203.7.8V322'/%3e%3cpath%20fill='%23ccc'%20d='M149.6%20326.7a8%208%200%200%201-3.7-.8q-1.6-.8-3.7-.8a8%208%200%200%200-3.8.8q-1.5.8-3.8.8a7%207%200%200%201-3.7-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.7.8c-1.5.8-2.3.8-3.8.8v-2.3a8%208%200%200%200%203.8-.9%2010%2010%200%200%201%207.4%200%208%208%200%200%200%203.7.9%208%208%200%200%200%203.8-.8q1.5-.8%203.8-.8t3.7.8c1.5.8%202.3.8%203.7.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20326.7a8%208%200%200%201-3.7-.8q-1.6-.8-3.7-.8a8%208%200%200%200-3.8.8q-1.5.8-3.8.8a7%207%200%200%201-3.7-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.7.8c-1.5.8-2.3.8-3.8.8v-2.3a8%208%200%200%200%203.8-.9%2010%2010%200%200%201%207.4%200%208%208%200%200%200%203.7.9%208%208%200%200%200%203.8-.8q1.5-.8%203.8-.8t3.7.8c1.5.8%202.3.8%203.7.8v2.3'/%3e%3cpath%20fill='%23005bbf'%20d='M149.6%20329a8%208%200%200%201-3.7-.8q-1.6-.8-3.7-.8a8%208%200%200%200-3.8.8q-1.5.8-3.8.8a7%207%200%200%201-3.7-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.7.8c-1.5.8-2.3.8-3.8.8v-2.3a8%208%200%200%200%203.8-.8q1.5-.8%203.7-.8t3.7.7a8%208%200%200%200%207.5%200q1.5-.6%203.8-.7t3.7.8c1.5.8%202.2.8%203.7.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20329a8%208%200%200%201-3.7-.8q-1.6-.8-3.7-.8a8%208%200%200%200-3.8.8q-1.5.8-3.8.8a7%207%200%200%201-3.7-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.7.8c-1.5.8-2.3.8-3.8.8v-2.3a8%208%200%200%200%203.8-.8q1.5-.8%203.7-.8t3.7.7a8%208%200%200%200%207.5%200q1.5-.6%203.8-.7t3.7.8c1.5.8%202.2.8%203.7.8z'/%3e%3cpath%20fill='%23c8b100'%20d='m126.2%20308%20.2.5c0%201.5-1.3%202.6-2.7%202.6h22a3%203%200%200%201-2.7-2.6v-.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='m126.2%20308%20.2.5c0%201.5-1.3%202.6-2.7%202.6h22a3%203%200%200%201-2.7-2.6v-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M126.6%20306.5h16q1%200%201%20.8%200%20.6-1%20.7h-16q-.9%200-1-.8.1-.6%201-.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M126.6%20306.5h16q1%200%201%20.8%200%20.6-1%20.7h-16q-.9%200-1-.8.1-.6%201-.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M123.7%20316.7h22V311h-22z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M123.7%20316.7h22V311h-22z'/%3e%3cpath%20fill='%23ad1519'%20d='M122%20286.7c-2.2%201.2-3.7%202.5-3.4%203.2q.2.8%201.8%201.6c1.5%201.1%202.5%203%201.7%204a5.5%205.5%200%200%200-.1-8.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M122%20286.7c-2.2%201.2-3.7%202.5-3.4%203.2q.2.8%201.8%201.6c1.5%201.1%202.5%203%201.7%204a5.5%205.5%200%200%200-.1-8.8z'/%3e%3cpath%20fill='%23ccc'%20d='M126.8%20305.6h15.6V229h-15.6v76.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M138%20229.2v76.3m1.7-76.3v76.3m-12.9%200h15.6v-76.4h-15.6v76.5z'/%3e%3cpath%20fill='%23ad1519'%20d='M158.4%20257.7a50%2050%200%200%200-23.3-2c-9.4%201.6-16.5%205.3-15.9%208.4v.2l-3.5-8.2c-.6-3.3%207.2-7.5%2017.6-9.2a43%2043%200%200%201%209.2-.7c6.6%200%2012.4.8%2015.8%202.1v9.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M158.4%20257.7a50%2050%200%200%200-23.3-2c-9.4%201.6-16.5%205.3-15.9%208.4v.2l-3.5-8.2c-.6-3.3%207.2-7.5%2017.6-9.2a43%2043%200%200%201%209.2-.7c6.6%200%2012.4.8%2015.8%202.1v9.4'/%3e%3cpath%20fill='%23ad1519'%20d='M126.8%20267.3c-4.3-.3-7.3-1.4-7.6-3.2q-.3-2.2%203.8-4.5l3.8.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M126.8%20267.3c-4.3-.3-7.3-1.4-7.6-3.2q-.3-2.2%203.8-4.5l3.8.3v7.4'/%3e%3cpath%20fill='%23ad1519'%20d='M142.5%20261.5q4.1.6%205.7%201.9l.1.2c.5%201-1.9%203-5.9%205.4v-7.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M142.5%20261.5q4.1.6%205.7%201.9l.1.2c.5%201-1.9%203-5.9%205.4v-7.5'/%3e%3cpath%20fill='%23ad1519'%20d='M117.1%20282c-.4-1.2%203.8-3.6%209.8-5.8l7.8-3.2c8.3-3.7%2014.4-7.9%2013.6-9.4v-.2c.4.4%201%208%201%208%20.8%201.3-4.8%205.5-12.4%209.1-2.5%201.2-7.6%203-10%204-4.4%201.4-8.7%204.3-8.3%205.3l-1.5-7.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M117.1%20282c-.4-1.2%203.8-3.6%209.8-5.8l7.8-3.2c8.3-3.7%2014.4-7.9%2013.6-9.4v-.2c.4.4%201%208%201%208%20.8%201.3-4.8%205.5-12.4%209.1-2.5%201.2-7.6%203-10%204-4.4%201.4-8.7%204.3-8.3%205.3l-1.5-7.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M125.8%20254c1.9-.6%203.1-1.5%202.5-3q-.6-1.3-2.8-.6l-2.6%201%202.3%205.8.8-.3.8-.3zm-1.2-2.7.7-.3q1-.3%201.4.8.4.8-.5%201.5l-.6.3zm7.3-2.5-.9.3h-.8l1.3%206.1%204.3-.8-.2-.4v-.4l-2.5.6zm8.4%205.2q1.2-3.3%202.7-6.4h-1l-1.8%204.6-2.4-4.3-1%20.1h-1l3.5%206zm8.8-4.7.4-.9a3%203%200%200%200-1.7-.6q-2.6%200-2.8%201.7c-.2%202.1%203.2%202%203%203.4q-.2%201-1.4.8-1.3%200-1.4-1.2h-.3l-.4%201.1a4%204%200%200%200%201.8.6q2.7.2%203.2-1.7c.2-2-3.3-2.1-3.1-3.4q0-.8%201.3-.7%201%200%201.2.9z'/%3e%3cpath%20fill='%23ad1519'%20d='M277.9%20211.6s-.7.8-1.3.9c-.5%200-1.1-.5-1.1-.5s-.5.5-1%20.6-1.4-.6-1.4-.6l-1%201-1.1-.3c-.1-.1-.3.4-.7.6h-.4l-.6-.4-.7-.7-.5-.3-.4-1v-.5q0-1%202.2-1.7a4%204%200%200%201%202%200q.9-.8%203-.8c2.1%200%202.4.3%203%20.7a6%206%200%200%201%202.9-.7q2.1%200%203%20.8.8-.3%202%200%202.2.6%202.2%201.7v.5l-.4%201-.6.3-.6.7-.6.3s-.3.2-.4%200q-.6-.3-.7-.5c-.1-.2-.6.4-1%20.2s-1-1-1-1-.9.8-1.4.7c-.6-.1-1-.6-1-.6s-.7.6-1.2.5-1.2-.9-1.2-.9'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.9%20211.6s-.7.8-1.3.9c-.5%200-1.1-.5-1.1-.5s-.5.5-1%20.6-1.4-.6-1.4-.6l-1%201-1.1-.3c-.1-.1-.3.4-.7.6h-.4l-.6-.4-.7-.7-.5-.3-.4-1v-.5q0-1%202.2-1.7a4%204%200%200%201%202%200q.9-.8%203-.8c2.1%200%202.4.3%203%20.7a6%206%200%200%201%202.9-.7q2.1%200%203%20.8.8-.3%202%200%202.2.6%202.2%201.7v.5l-.4%201-.6.3-.6.7-.6.3s-.3.2-.4%200q-.6-.3-.7-.5c-.1-.2-.6.4-1%20.2s-1-1-1-1-.9.8-1.4.7c-.6-.1-1-.6-1-.6s-.7.6-1.2.5-1.2-.9-1.2-.9z'/%3e%3cpath%20fill='%23c8b100'%20d='M276.5%20207.6c0-1%20.6-2%201.3-2s1.3%201%201.3%202-.5%201.8-1.3%201.8q-1.2-.1-1.3-1.9'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M276.5%20207.6c0-1%20.6-2%201.3-2s1.3%201%201.3%202-.5%201.8-1.3%201.8q-1.2-.1-1.3-1.9z'/%3e%3cpath%20fill='%23c8b100'%20d='M277.3%20207.6q0-1.7.5-1.8.6.2.7%201.8c.1%201.6-.3%201.7-.6%201.7q-.6-.2-.6-1.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.3%20207.6q0-1.7.5-1.8.6.2.7%201.8c.1%201.6-.3%201.7-.6%201.7q-.6-.2-.6-1.8z'/%3e%3cpath%20fill='%23c8b100'%20d='m271%20215.3-.5-1a27%2027%200%200%201%2014.8%200l-.6.8-.3.8a23%2023%200%200%200-6.6-.8c-2.6%200-5.2.3-6.6.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m271%20215.3-.5-1a27%2027%200%200%201%2014.8%200l-.6.8-.3.8a23%2023%200%200%200-6.6-.8c-2.6%200-5.2.3-6.6.8l-.2-.6'/%3e%3cpath%20fill='%23c8b100'%20d='M277.8%20217.7c2.4%200%205-.4%205.9-.6q1-.3%201-.8%200-.3-.4-.4a24%2024%200%200%200-6.5-.8c-2.5%200-5%20.3-6.4.8q-.3%200-.4.3%200%20.6%201%20.9c1%20.2%203.5.6%205.8.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.8%20217.7c2.4%200%205-.4%205.9-.6q1-.3%201-.8%200-.3-.4-.4a24%2024%200%200%200-6.5-.8c-2.5%200-5%20.3-6.4.8q-.3%200-.4.3%200%20.6%201%20.9c1%20.2%203.5.6%205.8.6z'/%3e%3cpath%20fill='%23fff'%20d='M283.5%20208.4q0-.3.4-.4.5%200%20.5.4t-.5.4a.4.4%200%200%201-.4-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M283.5%20208.4q0-.3.4-.4.5%200%20.5.4t-.5.4a.4.4%200%200%201-.4-.4zm-.2-1.4a.4.4%200%200%201%20.4-.4q.4%200%20.4.4t-.4.4a.4.4%200%200%201-.4-.4zm-1.1-1q0-.3.4-.3t.4.4-.4.4a.4.4%200%200%201-.4-.5zm-1.4-.4q0-.3.4-.4.5%200%20.5.4t-.4.4q-.5-.1-.5-.4zm-1.4%200q0-.3.5-.3t.4.4q0%20.3-.4.4a.4.4%200%200%201-.5-.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linecap='round'%20stroke-width='.3'%20d='m287.8%20211.2.2-1a2.7%202.7%200%200%200-2.7-2.8q-.8%200-1.3.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m283%20209.2.2-.8q-.2-1.8-2.5-2-1%200-1.6.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M288.2%20210q0-.5.4-.5t.4.4-.4.4q-.5%200-.4-.4zm-.2-1.6q0-.3.4-.4a.4.4%200%200%201%20.5.4q0%20.3-.4.4-.5%200-.5-.4zm-1-1.1a.4.4%200%200%201%20.5-.4q.3%200%20.4.4a.4.4%200%200%201-.4.4.4.4%200%200%201-.5-.4zm-1.3-.7q0-.4.5-.4t.4.4q0%20.5-.4.5a.4.4%200%200%201-.5-.5zm-1.4.1q0-.3.5-.4.6%200%20.4.4t-.4.4q-.4-.1-.5-.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m285.3%20213.2-.5-.5s-.6.3-1.3.2c-.6%200-.9-1-.9-1s-.7.7-1.3.7-1-.6-1-.6-.7.5-1.3.4-1.2-.8-1.2-.8-.6.8-1.2.8c-.6.1-1-.5-1-.5s-.3.6-1.1.7-1.4-.6-1.4-.6-.4.7-1%201c-.5%200-1.2-.4-1.2-.4l-.1.5-.3.1.1.5a27%2027%200%200%201%207.3-.9q4.3%200%207.3%201l.2-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m285.3%20213.2-.5-.5s-.6.3-1.3.2c-.6%200-.9-1-.9-1s-.7.7-1.3.7-1-.6-1-.6-.7.5-1.3.4-1.2-.8-1.2-.8-.6.8-1.2.8c-.6.1-1-.5-1-.5s-.3.6-1.1.7-1.4-.6-1.4-.6-.4.7-1%201c-.5%200-1.2-.4-1.2-.4l-.1.5-.3.1.1.5a27%2027%200%200%201%207.3-.9q4.3%200%207.3%201l.2-.6z'/%3e%3cpath%20fill='%23fff'%20d='M271.3%20208.4q0-.3.4-.4.5%200%20.4.4a.4.4%200%200%201-.4.4.4.4%200%200%201-.4-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M271.3%20208.4q0-.3.4-.4.5%200%20.4.4a.4.4%200%200%201-.4.4.4.4%200%200%201-.4-.4zm.2-1.4q0-.4.4-.4t.5.4q0%20.5-.5.4a.4.4%200%200%201-.4-.4zm1-1q.1-.3.5-.3t.5.4q0%20.3-.5.4a.4.4%200%200%201-.4-.5zm1.4-.4q0-.3.5-.4.6%200%20.4.4t-.4.4q-.4-.1-.5-.4zm1.4%200q0-.3.5-.3.3%200%20.4.4%200%20.3-.4.4a.4.4%200%200%201-.5-.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linecap='round'%20stroke-width='.3'%20d='m267.8%20211.2-.2-1a2.7%202.7%200%200%201%202.7-2.8q.8%200%201.4.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m272.7%20209.2-.3-.8c0-1%201.2-2%202.6-2a3%203%200%200%201%201.5.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M266.6%20210q0-.5.4-.5t.4.4a.4.4%200%200%201-.4.4q-.3%200-.4-.4zm.1-1.6q.1-.3.5-.4.5%200%20.4.4t-.4.4q-.4-.1-.4-.4zm1-1.1q0-.4.5-.4a.4.4%200%200%201%20.4.4.4.4%200%200%201-.4.4.4.4%200%200%201-.5-.4zm1.3-.7q0-.4.5-.4.3%200%20.4.4%200%20.5-.4.5a.4.4%200%200%201-.5-.5zm1.4.1q0-.3.5-.4a.4.4%200%200%201%20.4.4.4.4%200%200%201-.4.4q-.5%200-.5-.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M277.9%20210.7h.2v.4q.1%201%201%201a1%201%200%200%200%201-.7l.2-.3v.4q.3.8%201.1.8%201%200%201-1v-.1l.4-.4.2.5-.1.4a1%201%200%200%200%201%201q.6%200%20.9-.5l.2-.2v.3q0%20.5.4.7l1-.4c1-.5.7-.7.7-.7v.4s-.5.8-1%201q-.3.4-.8.3-.5%200-.7-.6l-.7.2q-1%200-1.4-.8l-1.1.5q-.8%200-1.2-.6l-1%20.4q-.9%200-1.4-.6-.4.6-1.2.6-.6%200-1-.4a2%202%200%200%201-1.3.6q-.6%200-1.1-.5-.4.8-1.4.8-.4%200-.7-.2-.2.5-.7.6t-.9-.2l-1-1%20.1-.5.8.7q.8.5.9.4.4-.1.4-.7v-.3l.2.2q.3.5.9.5a1%201%200%200%200%201-1v-.9l.4.4v.1q.1%201%201%201t1.1-.9v-.3l.2.3q.4.6%201%20.7%201%200%201.1-1v-.3h.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.9%20210.7h.2v.4q.1%201%201%201a1%201%200%200%200%201-.7l.2-.3v.4q.3.8%201.1.8%201%200%201-1v-.1l.4-.4.2.5-.1.4a1%201%200%200%200%201%201q.6%200%20.9-.5l.2-.2v.3q0%20.5.4.7l1-.4c1-.5.7-.7.7-.7v.4s-.5.8-1%201q-.3.4-.8.3-.5%200-.7-.6l-.7.2q-1%200-1.4-.8l-1.1.5q-.8%200-1.2-.6l-1%20.4q-.9%200-1.4-.6-.4.6-1.2.6-.6%200-1-.4a2%202%200%200%201-1.3.6q-.6%200-1.1-.5-.4.8-1.4.8-.4%200-.7-.2-.2.5-.7.6t-.9-.2l-1-1%20.1-.5.8.7q.8.5.9.4.4-.1.4-.7v-.3l.2.2q.3.5.9.5a1%201%200%200%200%201-1v-.9l.4.4v.1q.1%201%201%201t1.1-.9v-.3l.2.3q.4.6%201%20.7%201%200%201.1-1v-.3h.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M277.8%20213.3q-4.5%200-7.3%201l-.3-.2.1-.3q3-1%207.5-1t7.6%201l.1.3-.3.2a27%2027%200%200%200-7.4-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.8%20213.3q-4.5%200-7.3%201l-.3-.2.1-.3q3-1%207.5-1t7.6%201l.1.3-.3.2a27%2027%200%200%200-7.4-1z'/%3e%3cpath%20fill='%23fff'%20d='M275%20214.4q0-.4.5-.4a.4.4%200%200%201%20.4.4.4.4%200%200%201-.4.4q-.5%200-.5-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M275%20214.4q0-.4.5-.4a.4.4%200%200%201%20.4.4.4.4%200%200%201-.4.4q-.5%200-.5-.4z'/%3e%3cpath%20fill='%23ad1519'%20d='M277.9%20214.5h-1q-.2%200-.3-.3l.3-.3h2l.2.3-.3.3h-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.9%20214.5h-1q-.2%200-.3-.3l.3-.3h2l.2.3-.3.3h-1'/%3e%3cpath%20fill='%23058e6e'%20d='M273.2%20214.9h-.6a.3.3%200%200%201-.4-.2l.3-.3.6-.1.7-.1q.3%200%20.4.2a.3.3%200%200%201-.3.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M273.2%20214.9h-.6a.3.3%200%200%201-.4-.2l.3-.3.6-.1.7-.1q.3%200%20.4.2a.3.3%200%200%201-.3.4h-.7'/%3e%3cpath%20fill='%23ad1519'%20d='m270.5%20215.3.3-.4h.7l-.4.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m270.5%20215.3.3-.4h.7l-.4.6-.6-.2'/%3e%3cpath%20fill='%23fff'%20d='M279.8%20214.4q0-.4.4-.4t.5.4q0%20.3-.5.4a.4.4%200%200%201-.4-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M279.8%20214.4q0-.4.4-.4t.5.4q0%20.3-.5.4a.4.4%200%200%201-.4-.4z'/%3e%3cpath%20fill='%23058e6e'%20d='M282.5%20214.9h.7l.3-.2-.2-.3-.7-.1-.7-.1q-.3%200-.4.2%200%20.3.3.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M282.5%20214.9h.7l.3-.2-.2-.3-.7-.1-.7-.1q-.3%200-.4.2%200%20.3.3.4h.7'/%3e%3cpath%20fill='%23ad1519'%20d='m285.1%20215.4-.2-.5h-.7l.3.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m285.1%20215.4-.2-.5h-.7l.3.6.6-.1'/%3e%3cpath%20fill='%23ad1519'%20d='M277.8%20217.1a25%2025%200%200%201-6-.6%2025%2025%200%200%201%206-.7q3.6%200%206.1.7-2.5.6-6%20.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M277.8%20217.1a25%2025%200%200%201-6-.6%2025%2025%200%200%201%206-.7q3.6%200%206.1.7-2.5.6-6%20.6z'/%3e%3cpath%20fill='%23c8b100'%20d='m285.2%20212-.1-.3q-.3%200-.4.2l.1.4q.3%200%20.4-.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m285.2%20212-.1-.3q-.3%200-.4.2l.1.4q.3%200%20.4-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M280.6%20211.2q0-.3-.3-.4l-.2.3q0%20.3.2.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M280.6%20211.2q0-.3-.3-.4l-.2.3q0%20.3.2.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M275.2%20211.2q0-.3.2-.4l.3.3-.2.4q-.3%200-.3-.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M275.2%20211.2q0-.3.2-.4l.3.3-.2.4q-.3%200-.3-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m270.5%20212%20.1-.3q.3%200%20.4.2l-.1.4q-.3%200-.4-.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m270.5%20212%20.1-.3q.3%200%20.4.2l-.1.4q-.3%200-.4-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m277.8%20208.5-.8.5.6%201.3.2.1.3-.1.6-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m277.8%20208.5-.8.5.6%201.3.2.1.3-.1.6-1.3-.9-.5'/%3e%3cpath%20fill='%23c8b100'%20d='m276%20210.5.4.5%201.3-.4.1-.2-.1-.2-1.3-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m276%20210.5.4.5%201.3-.4.1-.2-.1-.2-1.3-.3-.4.6'/%3e%3cpath%20fill='%23c8b100'%20d='m279.6%20210.5-.3.5-1.3-.4-.1-.2v-.2l1.4-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m279.6%20210.5-.3.5-1.3-.4-.1-.2v-.2l1.4-.3.4.6'/%3e%3cpath%20fill='%23c8b100'%20d='m272.5%20209-.7.7.9%201%20.2.1.2-.1.2-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m272.5%20209-.7.7.9%201%20.2.1.2-.1.2-1.3-.8-.3'/%3e%3cpath%20fill='%23c8b100'%20d='m271.1%20211.2.5.5%201.2-.6v-.2l-.1-.2-1.3-.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m271.1%20211.2.5.5%201.2-.6v-.2l-.1-.2-1.3-.1-.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m274.7%20210.5-.3.6h-1.3l-.2-.2.1-.3%201.2-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m274.7%20210.5-.3.6h-1.3l-.2-.2.1-.3%201.2-.6.5.5'/%3e%3cpath%20fill='%23c8b100'%20d='M269.8%20211.4v.6l-1.4.2-.2-.1v-.2l1-.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M269.8%20211.4v.6l-1.4.2-.2-.1v-.2l1-.9.6.4'/%3e%3cpath%20fill='%23c8b100'%20d='M272.4%20210.9q0-.5.5-.5l.5.5-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M272.4%20210.9q0-.5.5-.5l.5.5-.5.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m283.2%20209%20.7.7-.9%201-.2.1-.1-.1-.3-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m283.2%20209%20.7.7-.9%201-.2.1-.1-.1-.3-1.3.8-.3'/%3e%3cpath%20fill='%23c8b100'%20d='m284.6%20211.2-.5.5-1.2-.6v-.2l.1-.2%201.3-.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m284.6%20211.2-.5.5-1.2-.6v-.2l.1-.2%201.3-.1.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m281%20210.5.3.6h1.3l.2-.2-.1-.3-1.2-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m281%20210.5.3.6h1.3l.2-.2-.1-.3-1.2-.6-.5.5'/%3e%3cpath%20fill='%23c8b100'%20d='M285.7%20211.4v.6l1.4.2.2-.1v-.2l-1-.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M285.7%20211.4v.6l1.4.2.2-.1v-.2l-1-.9-.6.4'/%3e%3cpath%20fill='%23c8b100'%20d='M277.4%20210.4q0-.3.5-.4.4%200%20.4.4t-.4.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.4%20210.4q0-.3.5-.4.4%200%20.4.4t-.4.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M282.3%20210.9q.1-.5.5-.5t.5.5q0%20.6-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M282.3%20210.9q.1-.5.5-.5t.5.5q0%20.6-.5.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M277%20205.4q.1-.8.8-.8%201%200%201%20.8c0%20.8-.5.8-1%20.8a1%201%200%200%201-.8-.8'/%3e%3cpath%20fill='%23c8b100'%20d='M278.5%20205.1v.6H277v-.6h.4v-1.3h-.5v-.5h.5v-.6h.6v.6h.6v.6h-.6v1.2h.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M278.5%20205.1v.6H277v-.6h.4v-1.3h-.5v-.5h.5v-.6h.6v.6h.6v.6h-.6v1.2h.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M279%20205.1v.6h-2.4v-.6h1v-1.3h-.7v-.5h.6v-.6h.6v.6h.6v.6h-.6v1.2h1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M278.1%20204.6q.6.1.6.8t-.9.8a1%201%200%200%201-.8-.8q0-.6.6-.8'/%3e%3cpath%20fill='%23c8b100'%20d='m268%20212.2-.6-.7-.7-.3q0-.2.6-.3.3%200%20.4.2v-.2s.3%200%20.4.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m268%20212.2-.6-.7-.7-.3q0-.2.6-.3.3%200%20.4.2v-.2s.3%200%20.4.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M268%20212q.3-.3.5%200%20.4.2.1.5l-.5-.1q-.2-.2%200-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M268%20212q.3-.3.5%200%20.4.2.1.5l-.5-.1q-.2-.2%200-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='m287.5%20212.2.6-.7c.2-.2.7-.3.7-.3q0-.2-.6-.3l-.4.2v-.2s-.3%200-.4.3v.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m287.5%20212.2.6-.7c.2-.2.7-.3.7-.3q0-.2-.6-.3l-.4.2v-.2s-.3%200-.4.3v.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M287.5%20212q-.2-.3-.5%200t-.1.5l.5-.1q.3-.2.1-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M287.5%20212q-.2-.3-.5%200t-.1.5l.5-.1q.3-.2.1-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M267.2%20223h21.4v-5.5h-21.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M267.2%20223h21.4v-5.5h-21.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M286.3%20226.8h-16.9q1-.4%201-1.2%200-1-1-1.3h17-.1q-1%20.3-1%201.3%200%20.8%201%201.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M286.3%20226.8h-16.9q1-.4%201-1.2%200-1-1-1.3h17-.1q-1%20.3-1%201.3%200%20.8%201%201.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M269.9%20226.8h16q1%200%201%20.7t-1%20.8h-16q-1-.1-1-.8.1-1%201-.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M269.9%20226.8h16q1%200%201%20.7t-1%20.8h-16q-1-.1-1-.8.1-1%201-.8z'/%3e%3cpath%20fill='%23c8b100'%20d='M269.9%20223h16q1%20.1%201%20.7t-1%20.6h-16q-1%200-1-.6t1-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M269.9%20223h16q1%20.1%201%20.7t-1%20.6h-16q-1%200-1-.6t1-.6z'/%3e%3cpath%20fill='%23005bbf'%20d='M263%20317.4q2.1%200%203.7-.8a8%208%200%200%201%203.7-.8q2.2%200%203.8.8c1.6.8%202.3.8%203.7.8q2.3%200%203.8-.8a8%208%200%200%201%203.6-.8%208%208%200%200%201%203.7.8q1.6.8%203.8.8v2.4a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.8q-2.2%200-3.6.8-1.5.8-3.8.9a8%208%200%200%201-3.7-.9%208%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v-2.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20317.4q2.1%200%203.7-.8a8%208%200%200%201%203.7-.8q2.2%200%203.8.8c1.6.8%202.3.8%203.7.8q2.3%200%203.8-.8a8%208%200%200%201%203.6-.8%208%208%200%200%201%203.7.8q1.6.8%203.8.8v2.4a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.8q-2.2%200-3.6.8-1.5.8-3.8.9a8%208%200%200%201-3.7-.9%208%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v-2.4z'/%3e%3cpath%20fill='%23ccc'%20d='M263%20319.8q2.1%200%203.7-.9c1.6-.9%202.3-.8%203.7-.8q2.2%200%203.8.8c1.6.8%202.3.9%203.7.9a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.8q2.3%200%203.7.8%201.6.8%203.8.9v2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.8-3.8.9a7%207%200%200%201-3.7-.9q-1.5-.6-3.8-.7a8%208%200%200%200-3.7.7%208%208%200%200%201-3.8.9v-2.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20319.8q2.1%200%203.7-.9c1.6-.9%202.3-.8%203.7-.8q2.2%200%203.8.8c1.6.8%202.3.9%203.7.9a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.8q2.3%200%203.7.8%201.6.8%203.8.9v2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.8-3.8.9a7%207%200%200%201-3.7-.9q-1.5-.6-3.8-.7a8%208%200%200%200-3.7.7%208%208%200%200%201-3.8.9v-2.3'/%3e%3cpath%20fill='%23005bbf'%20d='M263%20322q2.1%200%203.7-.8%201.6-.6%203.7-.7%202.2%200%203.8.7c1.6.7%202.3.9%203.7.9a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.8%208%208%200%200%201%203.7.8q1.6.8%203.8.9v2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.9-3.8.9t-3.7-.8a8%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.8V322'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20322q2.1%200%203.7-.8%201.6-.6%203.7-.7%202.2%200%203.8.7c1.6.7%202.3.9%203.7.9a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.8%208%208%200%200%201%203.7.8q1.6.8%203.8.9v2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.9-3.8.9t-3.7-.8a8%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.8V322'/%3e%3cpath%20fill='%23ccc'%20d='M263%20326.7a8%208%200%200%200%203.7-.8q1.6-.8%203.7-.8%202.2%200%203.8.8c1.6.8%202.3.8%203.7.8q2.3%200%203.8-.9a8%208%200%200%201%203.6-.7q2.3%200%203.7.8a8%208%200%200%200%203.8.8v-2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.8-3.8.9t-3.7-.8a8%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.8v2.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20326.7a8%208%200%200%200%203.7-.8q1.6-.8%203.7-.8%202.2%200%203.8.8c1.6.8%202.3.8%203.7.8q2.3%200%203.8-.9a8%208%200%200%201%203.6-.7q2.3%200%203.7.8a8%208%200%200%200%203.8.8v-2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.8-3.8.9t-3.7-.8a8%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.8v2.3'/%3e%3cpath%20fill='%23005bbf'%20d='M263%20329a8%208%200%200%200%203.7-.8q1.6-.8%203.7-.8%202.2%200%203.8.8c1.6.8%202.3.8%203.7.8a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.7q2.3%200%203.7.8%201.6.8%203.8.8v-2.3a8%208%200%200%201-3.8-.8%208%208%200%200%200-3.7-.8%208%208%200%200%200-3.6.7%208%208%200%200%201-3.8.9q-2.2%200-3.7-.8t-3.8-.8q-2.1%200-3.7.8c-1.6.8-2.3.8-3.8.8v2.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20329a8%208%200%200%200%203.7-.8q1.6-.8%203.7-.8%202.2%200%203.8.8c1.6.8%202.3.8%203.7.8a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.7q2.3%200%203.7.8%201.6.8%203.8.8v-2.3a8%208%200%200%201-3.8-.8%208%208%200%200%200-3.7-.8%208%208%200%200%200-3.6.7%208%208%200%200%201-3.8.9q-2.2%200-3.7-.8t-3.8-.8q-2.1%200-3.7.8c-1.6.8-2.3.8-3.8.8v2.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m286.3%20308-.1.5c0%201.5%201.2%202.6%202.7%202.6h-22c1.5%200%202.7-1.2%202.7-2.6l-.1-.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='m286.3%20308-.1.5c0%201.5%201.2%202.6%202.7%202.6h-22c1.5%200%202.7-1.2%202.7-2.6l-.1-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M269.9%20306.5h16q1%200%201%20.8%200%20.6-1%20.7h-16q-1%200-1-.8.1-.6%201-.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M269.9%20306.5h16q1%200%201%20.8%200%20.6-1%20.7h-16q-1%200-1-.8.1-.6%201-.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M266.9%20316.7h22V311h-22z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M266.9%20316.7h22V311h-22z'/%3e%3cpath%20fill='%23ad1519'%20d='M290.6%20286.7c2.1%201.2%203.6%202.5%203.4%203.2q-.2.8-1.8%201.6c-1.6%201.1-2.5%203-1.8%204a5.5%205.5%200%200%201%20.2-8.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M290.6%20286.7c2.1%201.2%203.6%202.5%203.4%203.2q-.2.8-1.8%201.6c-1.6%201.1-2.5%203-1.8%204a5.5%205.5%200%200%201%20.2-8.8z'/%3e%3cpath%20fill='%23ccc'%20d='M270.1%20305.6h15.6V229h-15.6v76.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M281.4%20229.1v76.3m1.8-76.3v76.3m-13%20.2h15.5V229h-15.6v76.5z'/%3e%3cpath%20fill='%23ad1519'%20d='M254.2%20257.7a50%2050%200%200%201%2023.3-2c9.3%201.6%2016.4%205.3%2015.9%208.4v.2l3.5-8.2c.6-3.3-7.3-7.5-17.6-9.2a54%2054%200%200%200-9.2-.7c-6.7%200-12.4.8-15.9%202.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M254.2%20257.7a50%2050%200%200%201%2023.3-2c9.3%201.6%2016.4%205.3%2015.9%208.4v.2l3.5-8.2c.6-3.3-7.3-7.5-17.6-9.2a54%2054%200%200%200-9.2-.7c-6.7%200-12.4.8-15.9%202.1v9.4'/%3e%3cpath%20fill='%23ad1519'%20d='M285.7%20267.3c4.4-.3%207.3-1.4%207.7-3.2q.2-2.2-3.8-4.5l-3.9.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M285.7%20267.3c4.4-.3%207.3-1.4%207.7-3.2q.2-2.2-3.8-4.5l-3.9.3v7.4'/%3e%3cpath%20fill='%23ad1519'%20d='M270%20261.5a13%2013%200%200%200-5.7%201.9v.2c-.5%201%201.8%203%205.8%205.4v-7.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M270%20261.5a13%2013%200%200%200-5.7%201.9v.2c-.5%201%201.8%203%205.8%205.4v-7.5'/%3e%3cpath%20fill='%23ad1519'%20d='M295.4%20282c.4-1.2-3.8-3.6-9.7-5.8-2.8-1-5-2-7.8-3.2-8.3-3.7-14.4-7.9-13.6-9.4v-.2c-.4.4-1%208-1%208-.8%201.3%204.8%205.5%2012.4%209.1%202.4%201.2%207.6%203%2010%204%204.3%201.4%208.7%204.3%208.3%205.3l1.4-7.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M295.4%20282c.4-1.2-3.8-3.6-9.7-5.8-2.8-1-5-2-7.8-3.2-8.3-3.7-14.4-7.9-13.6-9.4v-.2c-.4.4-1%208-1%208-.8%201.3%204.8%205.5%2012.4%209.1%202.4%201.2%207.6%203%2010%204%204.3%201.4%208.7%204.3%208.3%205.3l1.4-7.7z'/%3e%3cpath%20fill='%23c8b100'%20d='m263.9%20254.4%202.1-6.6h-.5l-.5.1-1.4%204.8q-1.6-2-2.7-4.1l-1%20.2h-1l4%205.7h.5zm6-6.6h-1.8v6.2h4.2v-.7h-2.6zm6.8%201%202%20.3v-.7l-5.8-.5v.8h2l-.4%205.6h1.6l.5-5.4m2.4%206%20.8.2.8.2.7-2.9.6%201.2.8%202.1%201%20.2q.6%200%201%20.3l-.3-.7-1.3-2.9q1.6%200%202.1-1.2.3-.8-.7-1.5-.8-.4-1.7-.5l-2.4-.5zm3-5.2c.7.2%201.5.3%201.5%201v.5q-.5%201.3-2%20.9zm8%207-.2%202%20.8.5.9.5.5-7-.7-.3-6.1%203.8.5.3.4.2%201.7-1.2%202.3%201.3zm-1.7-1.5%202-1.4-.2%202.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M182.2%20192.4c0-1%201-2%202-2s2.2%201%202.2%202c0%201.1-1%202-2.1%202a2%202%200%200%201-2.1-2z'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.3'%20d='M205.7%20175.4c6.3%200%2012%201%2015.7%202.4a32%2032%200%200%200%2014.6%202.3c2.7%200%206.5.8%2010.3%202.4a27%2027%200%200%201%207.4%204.7l-1.5%201.4-.4%203.8-4.1%204.7-2%201.8-5%203.9-2.5.2-.7%202.1-31.6-3.7-31.7%203.7-.8-2.1-2.5-.2-4.9-4-2-1.7-4.1-4.7-.5-3.8-1.5-1.4a28%2028%200%200%201%207.5-4.7%2026%2026%200%200%201%2010.2-2.4q3%20.3%206.6-.2a30%2030%200%200%200%208-2q5.6-2.4%2015.5-2.5z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M206.2%20217.1c-11.8%200-22.4-1.4-29.9-3.6a1%201%200%200%201-.8-1.2q0-.8.8-1.2a109%20109%200%200%201%2029.9-3.6c11.7%200%2022.3%201.4%2029.8%203.6a1.3%201.3%200%200%201%200%202.4c-7.5%202.2-18%203.6-29.8%203.6'/%3e%3cpath%20fill='%23ad1519'%20d='M206.1%20215.6c-10.6%200-20.2-1.2-27.5-3.1%207.3-2%2016.9-3%2027.5-3.1a115%20115%200%200%201%2027.6%203c-7.3%202-17%203.2-27.6%203.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M206.9%20215.7v-6.3m-1.7%206.3v-6.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M203.6%20215.7v-6.3m-1.6%206.3v-6.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M200.6%20215.7v-6.3m-2.8%205.9v-5.7m1.3%205.8v-6m-3.8%205.6v-5.2m1.3%205.4v-5.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M192%20214.8V210m1%204.7V210m1.2%205v-5m-3.4%204.7v-4.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M189.7%20214.5v-4.2m-1.2%204.1v-4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.6'%20d='M186%20214v-3m1.3%203.2v-3.5m-2.5%203.1V211'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.7'%20d='M183.7%20213.6v-2.3m-1.3%202v-1.8m-1.2%201.6v-1.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.9'%20d='M179.8%20212.8v-.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M213.7%20215.3v-5.8m-2.9%206v-6.1m-2.1%206.2v-6.3'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M206%20207.4a108%20108%200%200%200-30%203.9c.6-.3.5-1-.3-3-1-2.5-2.4-2.4-2.4-2.4%208.3-2.5%2020-4%2032.8-4a123%20123%200%200%201%2033%204s-1.5-.1-2.5%202.3q-1.2%202.8-.2%203c-7.5-2.2-18.4-3.7-30.3-3.7'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M206.1%20201.9c-12.9%200-24.5%201.5-32.8%204a1%201%200%200%201-1.3-.6%201%201%200%200%201%20.7-1.3%20121%20121%200%200%201%2033.4-4.2c13.2%200%2025.2%201.7%2033.5%204.2q1%20.4.7%201.3t-1.3.6c-8.4-2.5-20-4-32.9-4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M206.1%20215.6c-10.6%200-20.2-1.2-27.5-3.1%207.3-2%2016.9-3%2027.5-3.1a115%20115%200%200%201%2027.6%203c-7.3%202-17%203.2-27.6%203.2z'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M197%20204.8q0-.9%201-1%20.9.1%201%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='M206.1%20205.6H203a1%201%200%200%201%200-2h6.4q.9.1%201%201%200%201.2-1%201h-3.2'/%3e%3cpath%20fill='%23058e6e'%20stroke='%23000'%20stroke-width='.4'%20d='m190.3%20206.5-2.3.2q-.9%200-1.2-.8a1%201%200%200%201%201-1.1l2.2-.3%202.4-.3q.9%200%201.1.9%200%20.9-.9%201l-2.3.4'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M181%20206.7q.1-1%201.1-1t1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='m174%20208.5%201.2-1.6%203.3.4-2.6%202-1.8-.8'/%3e%3cpath%20fill='%23058e6e'%20stroke='%23000'%20stroke-width='.4'%20d='m222%20206.5%202.3.2q.9%200%201.1-.8a1%201%200%200%200-.9-1.1l-2.2-.3-2.4-.3a1%201%200%200%200-1.1.9q0%20.9.9%201l2.3.4'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M213.3%20204.8q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1m15.8%201.9q.1-1%201-1t1.1%201q0%20.9-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='m238.2%20208.5-1.1-1.6-3.3.4%202.6%202%201.8-.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M177.3%20212.8c7.4-2.1%2017.6-3.4%2028.8-3.4%2011.3%200%2021.4%201.3%2028.9%203.4'/%3e%3cpath%20fill='%23c8b100'%20d='m182.3%20183.8%201.4%201%202-3.2a7%207%200%200%201-3.6-7.2c.2-4.1%205.2-7.6%2011.7-7.6q5%20.1%208.5%202.4l.2-1.8a17%2017%200%200%200-8.7-2.1c-7.4%200-13.2%204.1-13.5%209.1a9%209%200%200%200%203%207.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='m182.3%20183.8%201.4%201%202-3.2a7%207%200%200%201-3.6-7.2c.2-4.1%205.2-7.6%2011.7-7.6q5%20.1%208.5%202.4l.2-1.8a17%2017%200%200%200-8.7-2.1c-7.4%200-13.2%204.1-13.5%209.1a9%209%200%200%200%203%207.6l-1%201.8'/%3e%3cpath%20fill='%23c8b100'%20d='M182.4%20183.8a9%209%200%200%201-4-7.3q.2-5%205.3-8a9%209%200%200%200-3.4%206.8%209%209%200%200%200%203%206.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M182.4%20183.8a9%209%200%200%201-4-7.3q.2-5%205.3-8a9%209%200%200%200-3.4%206.8%209%209%200%200%200%203%206.7l-.9%201.8'/%3e%3cpath%20fill='%23c8b100'%20d='M160.1%20187.1a9%209%200%200%201-2.3-5.9q0-2%201-3.8c2-4.2%208.4-7.2%2016-7.2q3%200%205.9.6l-1%201.4a26%2026%200%200%200-4.9-.4c-7%200-12.8%202.7-14.5%206.3a7%207%200%200%200-.7%203.1%207%207%200%200%200%202.7%205.6l-2.6%204.1-1.3-1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M160.1%20187.1a9%209%200%200%201-2.3-5.9q0-2%201-3.8c2-4.2%208.4-7.2%2016-7.2q3%200%205.9.6l-1%201.4a26%2026%200%200%200-4.9-.4c-7%200-12.8%202.7-14.5%206.3a7%207%200%200%200-.7%203.1%207%207%200%200%200%202.7%205.6l-2.6%204.1-1.3-1z'/%3e%3cpath%20fill='%23c8b100'%20d='M162.7%20173.3a11%2011%200%200%200-4%204.1%209%209%200%200%200-.9%203.8q.1%203.5%202.3%205.9l-1.5%202.5a10%2010%200%200%201-2.3-6.5c0-4%202.5-7.5%206.4-9.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M162.7%20173.3a11%2011%200%200%200-4%204.1%209%209%200%200%200-.9%203.8q.1%203.5%202.3%205.9l-1.5%202.5a10%2010%200%200%201-2.3-6.5c0-4%202.5-7.5%206.4-9.8z'/%3e%3cpath%20fill='%23c8b100'%20d='M206%20164.4c1.7%200%203.2%201.1%203.5%202.6q.4%202.1.4%204.5v1.1c.1%203.3.6%206.3%201.3%208.1l-5.2%205-5.2-5c.7-1.8%201.2-4.8%201.3-8.1v-1.1q0-2.4.4-4.5c.3-1.5%201.8-2.6%203.5-2.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M206%20164.4c1.7%200%203.2%201.1%203.5%202.6q.4%202.1.4%204.5v1.1c.1%203.3.6%206.3%201.3%208.1l-5.2%205-5.2-5c.7-1.8%201.2-4.8%201.3-8.1v-1.1q0-2.4.4-4.5c.3-1.5%201.8-2.6%203.5-2.6z'/%3e%3cpath%20fill='%23c8b100'%20d='M206%20166q1.6.1%201.8%201.4.3%201.8.4%204.2v1q.2%205%201.2%207.7l-3.4%203.2-3.4-3.2q1-2.7%201.2-7.7v-1l.4-4.2a2%202%200%200%201%201.8-1.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M206%20166q1.6.1%201.8%201.4.3%201.8.4%204.2v1q.2%205%201.2%207.7l-3.4%203.2-3.4-3.2q1-2.7%201.2-7.7v-1l.4-4.2a2%202%200%200%201%201.8-1.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m229.7%20183.8-1.3%201-2-3.2a7%207%200%200%200%203.6-6.3v-.9c-.2-4.1-5.3-7.6-11.7-7.6a15%2015%200%200%200-8.5%202.4l-.2-1.8a17%2017%200%200%201%208.7-2.1c7.4%200%2013.2%204.1%2013.4%209.1a9%209%200%200%201-3%207.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='m229.7%20183.8-1.3%201-2-3.2a7%207%200%200%200%203.6-6.3v-.9c-.2-4.1-5.3-7.6-11.7-7.6a15%2015%200%200%200-8.5%202.4l-.2-1.8a17%2017%200%200%201%208.7-2.1c7.4%200%2013.2%204.1%2013.4%209.1a9%209%200%200%201-3%207.6l1%201.8'/%3e%3cpath%20fill='%23c8b100'%20d='M229.6%20183.8a9%209%200%200%200%204.1-7.3c0-3.2-2.1-6.1-5.3-8a9%209%200%200%201%203.4%206.8%209%209%200%200%201-3.2%206.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M229.6%20183.8a9%209%200%200%200%204.1-7.3c0-3.2-2.1-6.1-5.3-8a9%209%200%200%201%203.4%206.8%209%209%200%200%201-3.2%206.7l1%201.8'/%3e%3cpath%20fill='%23c8b100'%20d='M252%20187.1a9%209%200%200%200%202.2-5.9%209%209%200%200%200-.9-3.8c-2-4.2-8.4-7.2-16-7.2a29%2029%200%200%200-6%20.6l1%201.4a25%2025%200%200%201%205-.4c7%200%2012.8%202.7%2014.4%206.3q.7%201.5.7%203.1a7%207%200%200%201-2.6%205.6l2.5%204.1%201.3-1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M252%20187.1a9%209%200%200%200%202.2-5.9%209%209%200%200%200-.9-3.8c-2-4.2-8.4-7.2-16-7.2a29%2029%200%200%200-6%20.6l1%201.4a25%2025%200%200%201%205-.4c7%200%2012.8%202.7%2014.4%206.3q.7%201.5.7%203.1a7%207%200%200%201-2.6%205.6l2.5%204.1%201.3-1z'/%3e%3cpath%20fill='%23c8b100'%20d='M249.3%20173.3a11%2011%200%200%201%204%204.1%209%209%200%200%201%20.9%203.8%209%209%200%200%201-2.3%205.9l1.6%202.5a10%2010%200%200%200%202.3-6.5c0-4-2.6-7.5-6.5-9.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M249.3%20173.3a11%2011%200%200%201%204%204.1%209%209%200%200%201%20.9%203.8%209%209%200%200%201-2.3%205.9l1.6%202.5a10%2010%200%200%200%202.3-6.5c0-4-2.6-7.5-6.5-9.8z'/%3e%3cpath%20fill='%23fff'%20d='M204.2%20181.4q.1-1.7%201.8-1.8c1.7-.1%201.9.8%201.9%201.8s-.9%201.7-1.9%201.7a2%202%200%200%201-1.8-1.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M204.2%20181.4q.1-1.7%201.8-1.8c1.7-.1%201.9.8%201.9%201.8s-.9%201.7-1.9%201.7a2%202%200%200%201-1.8-1.7z'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M204.2%20178q.1-1.7%201.8-1.8c1.7-.1%201.9.8%201.9%201.8s-.9%201.7-1.9%201.7a2%202%200%200%201-1.8-1.7m.4-3.7q.1-1.2%201.4-1.3%201.4.1%201.5%201.3-.1%201.3-1.5%201.4c-1.4.1-1.4-.6-1.4-1.4m.4-3.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1m.2-2.8q.1-.8.8-.8t.9.8q0%20.7-.9.8a1%201%200%200%201-.8-.8'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='m206.2%20191.8%201.2.2a4.6%204.6%200%200%200%204.5%206%205%205%200%200%200%204.4-3c.1%200%20.5-1.7.7-1.7s.1%201.8.2%201.7c.3%202.3%202.4%203.8%204.7%203.8a4.6%204.6%200%200%200%204.7-5l1.5-1.5.7%202a4%204%200%200%200-.4%201.9%204.4%204.4%200%200%200%204.5%204.2q2.5%200%203.8-1.9l.9-1.2v1.5c0%201.5.6%202.8%202%203%200%200%201.7.1%204-1.6%202.1-1.7%203.3-3.1%203.3-3.1l.2%201.7s-1.8%202.8-3.8%204c-1%20.6-2.7%201.3-4%201q-2.1-.5-3-2.6a7%207%200%200%201-3.3%201%207%207%200%200%201-6.1-3.7%207%207%200%200%201-10.4-.3%207%207%200%200%201-4.6%201.8%207%207%200%200%201-5.7-3%207%207%200%200%201-5.7%203%207%207%200%200%201-4.7-1.8%207%207%200%200%201-10.4.3%207%207%200%200%201-6%203.7%207%207%200%200%201-3.4-1q-.8%202.1-3%202.7c-1.2.2-2.9-.5-4-1.1-2-1.2-3.8-4-3.8-4l.2-1.7s1.2%201.4%203.4%203.1%203.9%201.6%203.9%201.6c1.4-.2%202-1.5%202-3v-1.5l1%201.2a5%205%200%200%200%203.7%202c2.5%200%204.5-2%204.5-4.3a4%204%200%200%200-.4-2l.8-1.9%201.5%201.5v.6c0%202.4%202%204.4%204.6%204.4%202.4%200%204.4-1.5%204.7-3.8%200%200%200-1.6.2-1.7s.6%201.7.7%201.6a5%205%200%200%200%204.5%203.1%204.6%204.6%200%200%200%204.5-6l1.2-.2'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M238.6%20197.7q.4-1.4-.6-1.8-.9-.2-1.5%201.1-.4%201.4.6%201.8.9.2%201.5-1.1m-20.5-4c0-.8-.3-1.6-1-1.6q-.8%200-1.2%201.4%200%201.3.9%201.6%201-.1%201.3-1.4m-23.9%200c0-.8.4-1.6%201-1.6q1%200%201.2%201.4%200%201.3-.9%201.6-1-.1-1.2-1.4m-20.6%204q-.3-1.4.6-1.8%201-.2%201.5%201.1t-.5%201.8q-1%20.2-1.6-1.1'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M182.7%20184a5%205%200%200%201%202.2%202.9s0-.3.6-.6%201-.3%201-.3l-.1%201.3-.3%202.2-.7%201.6a2%202%200%200%200-1.5-.4%202%202%200%200%200-1.2.9s-.7-.6-1.2-1.3l-1.1-2-.7-1.1s.5-.2%201.1%200q.9.1.8.2a5%205%200%200%201%201-3.4m.4%209.8-.6-1q0-.7.3-1.2s-.9-.5-1.8-.7c-.7-.2-2-.2-2.3-.2h-1l.2.5.5.7a5%205%200%200%200-3%202%205%205%200%200%200%203.5%201l-.2.8v.6l1-.4c.3-.1%201.5-.5%202-1%20.8-.4%201.5-1.1%201.5-1.1m2.7-.5.2-1.1-.6-1%201.4-1.3%202-.9%201.1-.4v.6l-.2.8a5%205%200%200%201%203.4%201%205%205%200%200%201-2.9%202l.7%201.2h-1c-.4%200-1.6%200-2.3-.2l-1.8-.7'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='M182.2%20192.4c0-1%201-2%202-2s2.2%201%202.2%202c0%201.1-1%202-2.1%202a2%202%200%200%201-2.1-2'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M206.1%20180.8a6%206%200%200%201%201.9%203.7s.2-.3.9-.5q1.1-.3%201.2-.2l-.5%201.4-.8%202.4-1%201.7a2%202%200%200%200-1.7-.7q-1%200-1.6.7-.2-.1-1-1.7l-.8-2.4-.5-1.4%201.2.2q1%20.4.9.5.2-2.2%201.8-3.7'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M204.6%20191.8a2%202%200%200%201-.5-1.2q0-.8.4-1.3s-.8-.7-1.8-1c-.7-.4-2-.7-2.5-.7l-1.2-.2.2.6.4.9a6%206%200%200%200-3.7%201.7q1.6%201.5%203.7%201.6l-.4%201-.2.6%201.2-.2c.4-.1%201.8-.4%202.5-.7%201-.4%201.9-1%201.9-1m3%200a2%202%200%200%200%20.1-2.6s.9-.7%201.8-1a8%208%200%200%201%202.5-.7l1.2-.3-.1.7-.4.9q2.2.2%203.6%201.7a6%206%200%200%201-3.6%201.6l.5%201.6-1.2-.2-2.5-.7c-1-.4-1.8-1-1.8-1m22-8a5%205%200%200%200-2.2%203l-.7-.6-1-.3.2%201.3c0%20.3%200%201.3.3%202.2q.4%201.6.6%201.6a2%202%200%200%201%201.5-.4q.9.2%201.3.9l1.1-1.3q1-1.4%201.1-2l.7-1.1s-.4-.2-1%200l-1%20.2a5%205%200%200%200-1-3.4m-.3%209.8q.5-.4.6-1l-.2-1.2s.8-.5%201.7-.7c.7-.2%202-.2%202.3-.2h1.1l-.3.5-.4.7a5%205%200%200%201%202.9%202%205%205%200%200%201-3.5%201l.2.8v.6l-1-.4c-.3-.1-1.4-.5-2-1-.8-.4-1.4-1.1-1.4-1.1m-2.8-.5-.2-1.1q0-.7.6-1s-.6-.8-1.4-1.3c-.6-.4-1.7-.8-2-.9l-1-.4v.6l.2.8a5%205%200%200%200-3.5%201q1%201.4%203%202l-.5.7-.3.5h1c.4%200%201.7%200%202.3-.2l1.8-.7'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='M226%20192.4c0-1%201-2%202-2s2.1%201%202.1%202a2%202%200%200%201-2%202%202%202%200%200%201-2.1-2m23.2%204.4c-.4-.5-1.4-.4-2.2.2q-1.2%201.2-.5%202.2%201%20.8%202.3-.3c.7-.6%201-1.6.5-2'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='m246.3%20198%20.7-1c.7-.6%201.8-.7%202.3-.2l.1.2s1-2%202.3-2.6%203.4-.5%203.4-.5a3%203%200%200%200-2.9-2.8%203%203%200%200%200-2.4%201l-.2-1s-1.3.3-1.9%201.8%200%203.6%200%203.6-.3-.9-.7-1.5a8%208%200%200%200-2.4-1.6l-1.3-.7-.1.5v.8a8%208%200%200%200-3.7.5%205%205%200%200%200%202.5%202.2l-.8.7-.4.5%201.3.2%202.5.2%201.7-.2m-80.3%200q0-.6-.7-1c-.7-.7-1.7-.8-2.2-.3l-.2.3s-1-2-2.3-2.7-3.3-.5-3.3-.5a3%203%200%200%201%202.8-2.8q1.6%200%202.4%201l.2-1s1.3.3%202%201.8c.5%201.5-.1%203.6-.1%203.6s.3-.9.8-1.5a8%208%200%200%201%202.4-1.6l1.3-.7v1.3a8%208%200%200%201%203.7.5%205%205%200%200%201-2.5%202.2l.8.7.4.5-1.2.2-2.6.2-1.7-.2'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='M163%20196.8q1-.7%202.4.3%201.2%201%20.4%202c-.5.6-1.5.5-2.2-.2s-1-1.6-.5-2m41-6.3q.2-1.8%202-2c1.8-.2%202.1.9%202.1%202%200%201-1%202-2%202a2%202%200%200%201-2.1-2'/%3e%3cpath%20fill='%23005bbf'%20stroke='%23000'%20stroke-width='.3'%20d='M201.8%20160.6c0-2.2%201.9-4%204.3-4s4.2%201.8%204.2%204-1.9%204-4.3%204a4%204%200%200%201-4.2-4'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.3'%20d='M205%20149.3v2.2h-2.4v2.2h2.3v6.3H202l-.2.6q0%20.9.3%201.6h7.9q.3-.7.3-1.6l-.2-.6h-2.8v-6.3h2.3v-2.2h-2.3v-2.2z'/%3e%3cpath%20fill='%23ccc'%20d='M206.5%20330.6a82%2082%200%200%201-35.5-8.2%2023%2023%200%200%201-12.8-20.4v-32h96.4v32a23%2023%200%200%201-12.8%2020.4%2081%2081%200%200%201-35.3%208.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M206.5%20330.6a82%2082%200%200%201-35.5-8.2%2023%2023%200%200%201-12.8-20.4v-32h96.4v32a23%2023%200%200%201-12.8%2020.4%2081%2081%200%200%201-35.3%208.2z'/%3e%3cpath%20fill='%23ccc'%20d='M206.3%20270h48.3v-53.5h-48.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M206.3%20270h48.3v-53.5h-48.3z'/%3e%3cpath%20fill='%23ad1519'%20d='M206.3%20302c0%2012.6-10.7%2022.9-24%2022.9s-24.2-10.3-24.2-23v-32h48.2v32'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.5'%20d='M168.6%20320.9c1.5.8%203.6%202%205.8%202.6l-.1-54.7h-5.7z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.5'%20d='M158%20301.6a24%2024%200%200%200%205.5%2015v-47.5h-5.4z'/%3e%3cpath%20fill='%23c7b500'%20stroke='%23000'%20stroke-width='.5'%20d='M179.4%20324.7a27%2027%200%200%200%205.6%200v-55.9h-5.6v56z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.5'%20d='M190%20323.5a19%2019%200%200%200%205.8-2.5v-52.2H190z'/%3e%3cpath%20fill='%23ad1519'%20d='M158.1%20270h48.2v-53.5H158z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M158.1%20270h48.2v-53.5H158z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.5'%20d='M201%20316c2.4-2%204.6-6.8%205.4-12.2l.1-35H201l.1%2047.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M206.3%20302c0%2012.6-10.7%2022.9-24%2022.9s-24.2-10.3-24.2-23v-32h48.2v32'/%3e%3cpath%20fill='%23ad1519'%20d='M254.6%20270v32c0%2012.6-10.8%2022.9-24.1%2022.9s-24.2-10.3-24.2-23v-32h48.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M254.6%20270v32c0%2012.6-10.8%2022.9-24.1%2022.9s-24.2-10.3-24.2-23v-32h48.3'/%3e%3cpath%20fill='%23c8b100'%20d='m215.1%20294.1.1.5q-.1%201-1.1%201a1%201%200%200%201-1.1-1v-.5h-1.5a2.5%202.5%200%200%200%201.8%202.9v3.9h1.6V297a3%203%200%200%200%201.7-1.6h4.4v-1.2zm21.8%200v1.2h-4l-.3.6%204.6%205.2-1.2%201-4.6-5.3-.2.1v8.7h-1.6V297h-.2l-4.8%205.2-1.2-1%204.7-5.3-.2-.4h-4V294h13zm2.6%200v1.2h4.4q.5%201.2%201.7%201.6v3.9h1.6V297a3%203%200%200%200%201.8-2.4v-.5h-1.6l.1.5q-.1%201-1%201-1.1%200-1.2-1l.1-.5zm-6.7%2022.1a16%2016%200%200%200%203.7-1l.8%201.4a18%2018%200%200%201-4.3%201.2%203%203%200%200%201-2.6%202%203%203%200%200%201-2.5-2%2018%2018%200%200%201-4.6-1.2l.8-1.4q2%20.8%204%201a3%203%200%200%201%201.5-1.3v-6.7h1.6v6.7q1.1.3%201.6%201.4zm-11-2.2-.8%201.4a17%2017%200%200%201-3.6-3.1q-1.4.3-2.5-.5a2.4%202.4%200%200%201-.3-3.5l.1-.1a15%2015%200%200%201-1.3-4.8h1.7a13%2013%200%200%200%201%204q.8%200%201.4.2l4.1-4.5%201.3%201-4.1%204.5q.8%201.5-.1%202.8a15%2015%200%200%200%203.1%202.6m-6-4.8q.6-.7%201.5%200c.9.7.5%201%20.1%201.4a1%201%200%200%201-1.6.1%201%201%200%200%201%200-1.5m-2.2-4.5-1.6-.3-.3-4.3%201.7-.6v2.5q0%201.4.2%202.7m1.4-5.3%201.7.4v2.2c0-.8.3%202.1.3%202.1l-1.7.6-.3-2.7zm5.6%2013.7a16%2016%200%200%200%204.8%202.6l.4-1.6a14%2014%200%200%201-4-2zm-.8%201.4a17%2017%200%200%200%204.8%202.6l-1.2%201.1a19%2019%200%200%201-4-2zm2.2-9.4%201.6.7%203-3.3-1-1.4zm-1.3-1-1-1.4%203-3.3%201.6.7zm18.1%209.9.8%201.4a17%2017%200%200%200%203.6-3.1q1.4.3%202.5-.5a2.4%202.4%200%200%200%20.3-3.5l-.1-.1a15%2015%200%200%200%201.3-4.8h-1.7a13%2013%200%200%201-1%204l-1.4.2-4.1-4.5-1.3%201%204.1%204.5a2.4%202.4%200%200%200%20.1%202.8%2015%2015%200%200%201-3.1%202.6m6-4.8a1%201%200%200%200-1.5%200%201%201%200%200%200-.1%201.4%201%201%200%200%200%201.6.1%201%201%200%200%200%200-1.5m2.2-4.5%201.6-.3.3-4.3-1.7-.6v2.5q0%201.5-.2%202.8zm-1.4-5.3-1.7.4v2.2c0-.8-.3%202.1-.3%202.1l1.7.6.3-2.7zm-5.6%2013.7a16%2016%200%200%201-4.8%202.6l-.4-1.6a14%2014%200%200%200%204-2zm.8%201.4a17%2017%200%200%201-4.8%202.6l1.2%201.1a19%2019%200%200%200%204-2zm-2.2-9.4-1.6.7-2.9-3.3%201-1.4zm1.3-1%201-1.4-3-3.3-1.6.7zm-20.1-8.7.5%201.6h4.5l.5-1.6zm21.1%200-.5%201.6h-4.5l-.5-1.6zm-11.6%2021.9q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1%201a1%201%200%200%201-1.2-1m1.9-7.8%201.7-.4v-4.3l-1.7-.5zm-1.6%200-1.7-.4v-4.3l1.7-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M211.5%20294.2q.4-1.5%201.8-2V287h1.6v5.3q1.3.5%201.7%201.6h4.4v.3h-6a1%201%200%200%200-1-.6q-.6%200-1%20.6zm12.2%200v-.3h4.1l.2-.3-5-5.7%201.2-1%205%205.6.2-.1V285h1.6v7.3h.3l4.9-5.5%201.2%201-4.9%205.5.3.6h4v.3zm21.6%200a1%201%200%200%201%201-.6q.7%200%201%20.6h1.6q-.4-1.5-1.8-2V287h-1.6v5.3q-1.2.4-1.7%201.6h-4.4v.3zm-30.2-15%206%206.8%201.3-1-6.1-6.7.3-.6h4.4V276h-4.4a3%203%200%200%200-2.5-1.7%202.6%202.6%200%200%200-2.7%202.5%203%203%200%200%200%201.8%202.4v5.2h1.6v-5.2zm32%200v5.3h-1.7v-5.2l-.4-.2-6%206.8-1.3-1%206.2-6.9-.1-.3h-4.5V276h4.5a3%203%200%200%201%202.4-1.7%202.6%202.6%200%200%201%202.7%202.5%202.5%202.5%200%200%201-1.9%202.4zm-16.1%200v3.3h-1.7v-3.2a3%203%200%200%201-1.7-1.6h-4V276h4a3%203%200%200%201%202.5-1.7q2%20.1%202.5%201.7h4v1.6h-4a3%203%200%200%201-1.6%201.6m-17.8%204-1.7.4v4.3l1.7.5zm1.6%200%201.7.4v4.3l-1.7.5zm30.6%200-1.7.4v4.3l1.7.5zm1.6%200%201.7.4v4.3l-1.7.5zm-25.5.8%201.6-.7%202.9%203.3-1%201.4zm-1.3%201-1%201.4%203%203.3%201.6-.7zm18.5-1.1-1.6-.7-3%203.3%201%201.4zm1.2%201%201%201.4-3%203.3-1.5-.7zm-20.3%209%20.5-1.6h4.5l.5%201.6zm-6.7-17q0-1%201.2-1a1%201%200%200%201%201%201q0%201-1%201a1%201%200%200%201-1.2-1m12.1.8-.5%201.6H220l-.5-1.6zm0-1.6-.5-1.6H220l-.5%201.6zm15.7%2017.8-.5-1.6h-4.5l-.5%201.6zm4.4-17q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1%201a1%201%200%200%201-1.2-1m-16.1%200q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1.1%201a1%201%200%200%201-1.1-1m6.2.8.5%201.6h4.6l.5-1.6zm0-1.6.5-1.6h4.6l.5%201.6zm-5.9%205-1.7.5v4.3l1.7.5V281m1.7%200%201.6.5v4.3l-1.6.5z'/%3e%3cpath%20fill='none'%20stroke='%23c8b100'%20stroke-width='.3'%20d='M232.7%20316.3a16%2016%200%200%200%203.7-1.1l.8%201.4a18%2018%200%200%201-4.3%201.2%203%203%200%200%201-2.6%202%203%203%200%200%201-2.5-2%2018%2018%200%200%201-4.6-1.2l.8-1.4q2%20.8%204%201a3%203%200%200%201%201.5-1.3v-6.7h1.6v6.7q1.1.3%201.6%201.4zm-4.7-20.4-.2-.5h-4V294h4l.2-.4-5-5.6%201.2-1%205%205.5h.2V285h1.7v7.3h.2l4.9-5.5%201.2%201-4.9%205.5.3.6h4v1.5h-4q0%20.3-.3.5l4.7%205.3-1.3%201-4.6-5.3-.2.1v8.7h-1.6V297l-.2-.1-4.8%205.3-1.2-1%204.7-5.3m-12.8-16.7%206%206.8%201.3-1-6.1-6.7.3-.6h4.4V276h-4.4a3%203%200%200%200-2.5-1.7%202.6%202.6%200%200%200-2.6%202.5%203%203%200%200%200%201.7%202.4v5.2h1.6v-5.2zm6.5%2034.8-.8%201.4a17%2017%200%200%201-3.6-3.1q-1.4.3-2.5-.5a2.4%202.4%200%200%201-.3-3.5l.1-.1a15%2015%200%200%201-1.2-4.8h1.6a13%2013%200%200%200%201%204q.8%200%201.4.2l4.1-4.5%201.3%201-4.1%204.5q.8%201.5-.1%202.8a15%2015%200%200%200%203.1%202.6zm-8.4-13.1V297a3%203%200%200%201-1.8-2.4q.2-1.6%201.8-2.4V287h1.6v5.3q1.3.4%201.7%201.6h4.4v1.5h-4.4a3%203%200%200%201-1.6%201.6v3.9h-1.7m2.3%208.3q.7-.7%201.6%200c.9.7.5%201%20.1%201.4a1%201%200%200%201-1.6.1%201%201%200%200%201%200-1.5zm-2-4.5-1.7-.3-.3-4.3%201.7-.6v2.5q0%201.4.3%202.7zm1.4-5.3%201.6.4v2.2c0-.8.3%202.1.3%202.1l-1.7.6-.3-2.7v-2.6zm5.5%2013.7a16%2016%200%200%200%204.8%202.6l.4-1.6a14%2014%200%200%201-4-2l-1.2%201m-.8%201.4a17%2017%200%200%200%204.8%202.6l-1.2%201.1a19%2019%200%200%201-4-2l.4-1.7'/%3e%3cpath%20fill='none'%20stroke='%23c8b100'%20stroke-width='.3'%20d='m221.9%20305.1%201.6.7%203-3.3-1-1.4-3.6%204m-1.3-1-1-1.4%203-3.3%201.6.7-3.6%204m-7.6-9.5q.1-1%201-1%201.1.1%201.2%201-.1%201-1.1%201.1a1%201%200%200%201-1.1-1zm25.7%2019.4.8%201.4a17%2017%200%200%200%203.6-3.1q1.4.3%202.6-.5a2.4%202.4%200%200%200%20.2-3.5l-.1-.1a15%2015%200%200%200%201.3-4.8h-1.7a13%2013%200%200%201-1%204l-1.4.2-4.1-4.5-1.3%201%204.1%204.5a2.4%202.4%200%200%200%20.1%202.8%2015%2015%200%200%201-3%202.6zm8.4-13.1V297a3%203%200%200%200%201.8-2.4q0-1.6-1.8-2.4V287h-1.6v5.3q-1.2.4-1.7%201.6h-4.4v1.5h4.4q.5%201.2%201.7%201.6v3.9zm-2.3%208.3a1%201%200%200%200-1.6%200%201%201%200%200%200-.1%201.4%201%201%200%200%200%201.6.1%201%201%200%200%200%200-1.5zm2-4.5%201.7-.3.3-4.3-1.7-.6v2.5q0%201.4-.2%202.7zm-1.3-5.3-1.7.4v2.2c0-.8-.3%202.1-.3%202.1l1.7.6.3-2.7v-2.6m1.6-20.1v5.2h-1.6v-5.2l-.4-.2-6%206.8-1.2-1%206-7v-.2h-4.5V276h4.4a3%203%200%200%201%202.5-1.7%202.6%202.6%200%200%201%202.6%202.5%203%203%200%200%201-1.8%202.4zm-16%200v3.2h-1.7v-3.2a3%203%200%200%201-1.7-1.6h-4V276h4q.7-1.6%202.5-1.7c1.8-.1%202.2.7%202.5%201.7h4v1.6h-4a3%203%200%200%201-1.6%201.6zm8.8%2033.8a16%2016%200%200%201-4.8%202.6l-.4-1.6a14%2014%200%200%200%204-2l1.2%201m.8%201.4a17%2017%200%200%201-4.8%202.6l1.2%201.1a19%2019%200%200%200%204-2l-.4-1.7m-27.4-31.4-1.7.5v4.3l1.7.5v-5.2m1.7%200%201.6.4v4.3l-1.6.5V283m30.5%200-1.7.5v4.3l1.7.5V283'/%3e%3cpath%20fill='none'%20stroke='%23c8b100'%20stroke-width='.3'%20d='m247.1%20283.1%201.7.5v4.3l-1.7.5V283m-8.6%2022-1.6.7-2.9-3.3%201-1.4%203.5%204m1.3-1%201-1.4-3-3.3-1.6.7%203.6%204m-18.2-20%201.6-.7%203%203.3-1%201.4-3.6-4m-1.3%201-1%201.4%203%203.3%201.6-.7-3.6-4m18.5-1.1-1.6-.7-3%203.3%201%201.4%203.6-4m1.2%201%201%201.4-3%203.2-1.5-.6%203.5-4m-20.3%209%20.5-1.6h4.5l.5%201.6h-5.5m0%201.5.5%201.6h4.5l.5-1.6h-5.5M213%20277q0-1%201.2-1%201%200%201%201c0%201-.4%201-1%201a1%201%200%200%201-1.2-1zm12.1.8-.5%201.6h-4.5l-.5-1.6h5.5m0-1.6-.5-1.6h-4.5l-.5%201.6h5.5m20.1%2018.5q.1-.9%201.1-1%201%20.1%201.1%201-.1%201-1%201.1a1%201%200%200%201-1.2-1zm-4.4-.7-.5-1.6h-4.5l-.5%201.6h5.5m0%201.5-.5%201.6h-4.5l-.5-1.6h5.5m-11.6%2021.9q.1-1%201.1-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.2-1zm1.9-7.8%201.7-.4v-4.3l-1.7-.5v5.2m-1.6%200-1.7-.4v-4.3l1.7-.5v5.2m15.7-32.6q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1%201a1%201%200%200%201-1.2-1zm-16.1%200q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1%201a1%201%200%200%201-1.2-1zm6.2.8.5%201.6h4.6l.5-1.6h-5.5m0-1.6.4-1.6h4.6l.5%201.6h-5.5m-6%205-1.6.5v4.3l1.6.5V281m1.7%200%201.6.5v4.3l-1.6.5V281'/%3e%3cpath%20fill='%23058e6e'%20d='M227.7%20294.7a2.6%202.6%200%200%201%202.6-2.5%202.6%202.6%200%200%201%202.6%202.5%202.6%202.6%200%200%201-2.6%202.4c-1.4%200-2.6-1-2.6-2.4'/%3e%3cpath%20fill='%23db4446'%20d='M230.9%20229.7v-.6l.1-.3-2.3-.1a6%206%200%200%201-2.3-1.2q-1-1-1.6-1.2c-1.3-.2-2.3.4-2.3.4s1%20.4%201.7%201.3%201.5%201.3%201.8%201.4c.6.2%202.6%200%203.1.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M230.9%20229.7v-.6l.1-.3-2.3-.1a6%206%200%200%201-2.3-1.2q-1-1-1.6-1.2c-1.3-.2-2.3.4-2.3.4s1%20.4%201.7%201.3%201.5%201.3%201.8%201.4c.6.2%202.6%200%203.1.1z'/%3e%3cpath%20fill='%23ed72aa'%20stroke='%23000'%20stroke-width='.4'%20d='M238.1%20227.5v1.4c.2.6-.1%201.2%200%201.5q0%20.5.3.9l.2.9-.7-.5-.6-.4v1l.6%201.1%201%201.3c.2.5.1%201.4.1%201.4s-.4-.7-.8-.8l-1.2-.7s.7.8.7%201.5l-.3%201.6c-.1.2-.3-.7-.8-1.1l-1-.9s.4%201.2.4%202v2.3l-.9-1-1-.7c0-.2.5.6.6%201.1s.3%202.3%201.8%204.5c1%201.3%202.3%203.6%205.3%202.9s1.9-4.8%201.3-6.7a17%2017%200%200%201-1-4.6c0-.8.6-2.9.5-3.3a8%208%200%200%201%20.2-3.1l.9-2.3.4-1.3.1-1.3.7%201.3.1%201.5s.1-1%201-1.6%201.8-1.1%202-1.4l.3-.5c-.1%200%200%201.8-.6%202.6l-1.7%202s.7-.3%201.2-.3h.9s-.6.4-1.4%201.6c-.8%201-.5%201.2-1%202.1s-1%201-1.7%201.5c-1%20.8-.5%204.2-.4%204.7.2.5%202%204.5%202%205.5s.2%203.2-1.5%204.6c-1.1%201-3%201-3.4%201.2-.4.3-1.2%201.1-1.2%202.8s.6%202%201%202.4c.6.5%201.2.2%201.3.6l.5.7q.3.3.2.8c0%20.3-.8%201.1-1.1%201.7l-.8%202.4c0%20.2-.1%201%20.1%201.3%200%200%20.9%201%20.3%201.2-.4.2-.8-.2-1-.2l-.9.5q-.3-.1-.4-.8l-.1-.7q-.3%200-.4.5c0%20.2%200%20.8-.3.8l-.8-.5c-.2%200-.8-.2-.8-.4q.1-.6.7-1%20.8-.1.5-.5t-.7%200c-.3.4-.8%200-.7-.2v-.8c0-.2-.4-.5.1-.8s.8.2%201.4.1q.8%200%201-.6.3-.6-.2-1.4l-.9-.8-.3-.9v2.2l-.7-.8c-.3-.3-.6-1.3-.6-1.3v1.3l.2.8c-.1.1-.8-.7-1-.8l-1-1-.4-1.4v-1.5l.4-1h-1.4c-.7%200-1.2-.3-1.5.2q-.4.8.2%202.8.5%201.8.4%202.1l-.7.8h-.9l-1.2-.3h-1.3l-1.1-.3c-.3.1-.8.3-.6.7q.1.8-.5.7l-.9-.2q-.8%200-.8-.4t.4-.7q.3-.5%200-.5h-.6q-.3.4-.8.4-.3-.1-.4-1c-.1-.9-.7-1.2%200-1.1.5%200%201.3.4%201.4%200q.2-.4-.2-.7c-.4-.3-.8-.4-.3-.7l.7-.5c.1-.2.4-.8.7-.6.6.2%200%20.7.6%201.3s1%201%202%20.8q1.4%200%201.3-.5l-.1-1v-1s-.4.3-.5.6l-.4.8v-2l-.2-.8-.3.9-.1%201s-.7-.5-.5-1.5l.1-2c.2-.3.7-1.5%202-1.6h2.6l2-.3s-2.8-1.4-3.5-1.9a10%2010%200%200%201-2-2l-.6-1.6s-.5%200-1%20.3l-1.2%201-.7%201%20.1-1.2v-.8s-.4%201.2-1%201.7l-1.4%201v-.8l.2-1s-.4.8-1.1%201c-.7%200-1.8%200-1.9.4q.2.8%200%201.4c0%20.3-.4.5-.4.5l-.8-.4-.7.2c-.1.1-.3-.4-.2-.7s.7-.6.5-.8l-.8.2c-.3.1-.8.3-.8-.2q.2-.6%200-1%200-.4.2-.6l1.2-.1q0-.4-.8-.6-1-.2-.5-.8.3-.2.5-.6c.1-.2.2-.7.7-.5.5.3.4.8%201%201a4%204%200%200%200%202-.2l1.5-1%201.5-1-1-.8q-.5-.7-1-1l-1.8-.6-1.7-.5.8-.3q.4-.5.8-.6h.3-1.4c-.3-.1-1-.6-1.3-.6l-.8.1s.8-.4%201.4-.5l1-.1s-.9-.3-1.1-.6l-.6-1q-.2-.3-.6-.5l-1%20.3q-.6%200-.6-.6l-.1-.5c-.2-.3-.6-.8-.2-1h1.4q-.2-.4-.8-.8c-.4-.2-1-.5-.7-.8l.8-.5c.2-.3.3-1%20.7-.7.4.2.8%201.2%201.1%201.1s.3-.8.3-1c0-.4%200-1%20.2-.9l1%20.5q.8-.1%201%20.2%200%20.5-.6%201-.4.6-.3%201.4.4%201%201.2%201.4t1.7.9c.5.3%201.7%201.2%202.1%201.3l.8.4s.5-.2%201.1-.2%202.1%200%202.6-.2%201.3-.6%201-1c-.1-.6-1.3-1-1.2-1.4q0-.5%201.2-.4c.8%200%201.8.1%202-1q.5-1.4-.8-1.8c-1-.2-1.8-.2-2-1q-.4-1-.2-1.1.3-.3%201.4-.4%201.3%200%201.9-.2l.6-.9c.3-.2%201.4-.4%201.4-.4s1.4.7%202.7%201.7l2.2%202.1'/%3e%3cpath%20d='m228.1%20226.8-.2-.6v-.3s.8%200%20.7.3q0%20.2-.3.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m228.1%20226.8-.2-.6v-.3s.8%200%20.7.3q0%20.2-.3.3z'/%3e%3cpath%20d='M232%20225.4v-.4s.7%200%201%20.3c.5.4.9%201%20.9%201l-.8-.4h-.5l-.3-.1v-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M232%20225.4v-.4s.7%200%201%20.3c.5.4.9%201%20.9%201l-.8-.4h-.5l-.3-.1v-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m237.3%20231.3-.4-.7-.3-.4'/%3e%3cpath%20fill='%23db4446'%20d='M217.4%20226.6s.5.4.8.4h.8s.2-.5.1-.8c-.2-1.2-1.2-1.4-1.2-1.4s.3.7.1%201z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M217.4%20226.6s.5.4.8.4h.8s.2-.5.1-.8c-.2-1.2-1.2-1.4-1.2-1.4s.3.7.1%201z'/%3e%3cpath%20fill='%23db4446'%20d='M215.2%20227.6s-.4-.7-1.3-.6-1.4.8-1.4.8h1.2c.3.3.4%201%20.4%201l.7-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M215.2%20227.6s-.4-.7-1.3-.6-1.4.8-1.4.8h1.2c.3.3.4%201%20.4%201l.7-.6z'/%3e%3cpath%20fill='%23db4446'%20d='M214.2%20230.6s-.8.1-1.2.6-.3%201.3-.3%201.3.4-.5.9-.5l1%20.2-.1-.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M214.2%20230.6s-.8.1-1.2.6-.3%201.3-.3%201.3.4-.5.9-.5l1%20.2-.1-.8z'/%3e%3cpath%20d='m228.2%20230.5.3-.5.3.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m228.2%20230.5.3-.5.3.5h-.7'/%3e%3cpath%20d='m229%20230.5.3-.5.4.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m229%20230.5.3-.5.4.5h-.8'/%3e%3cpath%20d='m228.6%20227.3.8.3-.7.4-.1-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m228.6%20227.3.8.3-.7.4-.1-.6'/%3e%3cpath%20d='m229.5%20227.6.7.2-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m229.5%20227.6.7.2-.5.4-.2-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M224.2%20233.7s-.7.2-1%20.6q-.4.9-.3%201c.1.1.6-.5%201.5-.3l1.2.3%201.3-.3s-.7.8-.7%201.3l.2%201.1c0%20.7-.6%201.6-.6%201.6l1-.3%201.7-.8.9-1s-.2%201%200%201.4l.2%201.6.8-.6q.5-.2.9-.7l.3-1s0%20.8.4%201.3l.6%201.6s.3-.8.6-1.1l.7-1-.1-.9.4.8m-11%20.6s.5-.8%201-1l1.1-.8.9-.4m1%205%201.3-.8%201-1'/%3e%3cpath%20fill='%23db4446'%20d='M216.6%20240.4s-.4-.5-1.1-.3c-.7%200-1.2.9-1.2.9s.6-.2%201-.1.6.4.6.4l.4-.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M216.6%20240.4s-.4-.5-1.1-.3c-.7%200-1.2.9-1.2.9s.6-.2%201-.1.6.4.6.4l.4-.4z'/%3e%3cpath%20fill='%23db4446'%20d='M215.8%20243.2s-.6%200-1.1.3c-.5.4-.5%201.2-.5%201.2s.4-.4.8-.3l.9.2v-.6c.2-.4-.1-.8-.1-.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M215.8%20243.2s-.6%200-1.1.3c-.5.4-.5%201.2-.5%201.2s.4-.4.8-.3l.9.2v-.6c.2-.4-.1-.8-.1-.8z'/%3e%3cpath%20fill='%23db4446'%20d='M217.2%20245.8s0%20.8.3%201.3c.4.5%201.1.5%201.1.5l-.3-.7.3-.8q.1-.1-.7-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M217.2%20245.8s0%20.8.3%201.3c.4.5%201.1.5%201.1.5l-.3-.7.3-.8q.1-.1-.7-.3zm16%201.3s2%201.2%201.9%202.2c0%201-1%202.3-1%202.3'/%3e%3cpath%20fill='%23db4446'%20d='M224.2%20252.6s-.4-.6-1.1-.6-1.4.7-1.4.7.8-.1%201%20.2l.5.6.5-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M224.2%20252.6s-.4-.6-1.1-.6-1.4.7-1.4.7.8-.1%201%20.2l.5.6.5-.3z'/%3e%3cpath%20fill='%23db4446'%20d='M222.2%20255.3s-1-.1-1.4.3-.4%201.3-.4%201.3.6-.6%201-.5q.9.1%201%20.3v-.7l-.3-.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M222.2%20255.3s-1-.1-1.4.3-.4%201.3-.4%201.3.6-.6%201-.5q.9.1%201%20.3v-.7l-.3-.7z'/%3e%3cpath%20fill='%23db4446'%20d='M224%20258.1s-.3.7%200%201.1%201%20.8%201%20.8-.3-.4-.2-.8c.1-.3.7-.8.7-.8l-1.4-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M224%20258.1s-.3.7%200%201.1%201%20.8%201%20.8-.3-.4-.2-.8c.1-.3.7-.8.7-.8l-1.4-.2z'/%3e%3cpath%20fill='%23db4446'%20d='M236%20259.3s-.8-.2-1.2%200c-.5.3-.8%201.4-.8%201.4s.7-.6%201.2-.5q.9.1%201%20.3v-.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M236%20259.3s-.8-.2-1.2%200c-.5.3-.8%201.4-.8%201.4s.7-.6%201.2-.5q.9.1%201%20.3v-.8z'/%3e%3cpath%20fill='%23db4446'%20d='M236.4%20262.2s-.6.6-.4%201.1l.6%201s0-.7.2-1l1-.3-.7-.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M236.4%20262.2s-.6.6-.4%201.1l.6%201s0-.7.2-1l1-.3-.7-.5z'/%3e%3cpath%20fill='%23db4446'%20d='M239.4%20263s-.3.8.2%201.3l1%20.5q-.2-.3-.2-1.1.3-.7.5-.7l-.8-.2-.7.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M239.4%20263s-.3.8.2%201.3l1%20.5q-.2-.3-.2-1.1.3-.7.5-.7l-.8-.2-.7.3z'/%3e%3cpath%20fill='%23ffd691'%20stroke='%23000'%20stroke-width='.5'%20d='M208.8%20316.4q3%201%203%203.8c0%202.3-2.2%204-5%204-3%200-5.3-1.7-5.3-4%200-1.7%201-3.6%203-3.8l-.2-.4-.7-.7h1.2l.8.5.5-.7.6-.5.6.6.3.5.7-.4.8-.3s0%20.4-.2.7l-.1.7'/%3e%3cpath%20fill='%23058e6e'%20stroke='%23000'%20stroke-width='.5'%20d='M206.3%20326.7s-3.8-2.6-5.5-3c-2-.4-4.5%200-5.5%200%200%200%201.2.8%201.8%201.4.5.5%202.3%201.5%203.3%201.8%203%20.8%206-.2%206-.2m1%20.2s2.4-2.5%205-2.9c3-.4%205%20.3%206.2.6l-1.5.8c-.5.3-2%201.5-4%201.6-2%200-4.4-.3-4.8-.2l-.9.1'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.5'%20d='M206.7%20323.8a5%205%200%200%201%200-7.1%205%205%200%200%201%201.5%203.5%205%205%200%200%201-1.5%203.6'/%3e%3cpath%20fill='%23058e6e'%20stroke='%23000'%20stroke-width='.5'%20d='M205.7%20329s.6-1.5.6-2.7l-.1-2.1h.8s.3%201.1.3%202l-.1%202.4-.7.1-.8.3'/%3e%3cpath%20fill='%23fff'%20d='M254%20190.7q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M254%20190.7q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M255.4%20188.2q.1-1%201.1-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M255.4%20188.2q.1-1%201.1-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M256.4%20185.2q.1-.9%201-1%201%20.1%201.1%201c.1.9-.5%201-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M256.4%20185.2q.1-.9%201-1%201%20.1%201.1%201c.1.9-.5%201-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M256.5%20182q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M256.5%20182q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M255.7%20179q.1-1%201-1%201.1%200%201.2%201c.1%201-.5%201-1.1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M255.7%20179q.1-1%201-1%201.1%200%201.2%201c.1%201-.5%201-1.1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M254.1%20176.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M254.1%20176.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M252%20173.8q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M252%20173.8q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M249.4%20171.8q.1-.9%201.1-1a1%201%200%200%201%200%202q-1%200-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M249.4%20171.8q.1-.9%201.1-1a1%201%200%200%201%200%202q-1%200-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M246.5%20170.3q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M246.5%20170.3q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M243.3%20169.1q.1-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M243.3%20169.1q.1-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M239.9%20168.5q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M239.9%20168.5q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M236.6%20168.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M236.6%20168.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M233.3%20168.5q.1-1%201-1t1.1%201c.1%201-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M233.3%20168.5q.1-1%201-1t1.1%201c.1%201-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M230.1%20168.5q.1-1%201-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M230.1%20168.5q.1-1%201-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M231.7%20171.2q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1m.6%203.1q0-1%201-1c1%200%201%20.4%201%201q0%20.9-1%201a1%201%200%200%201-1-1m0%203q.2-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1m-1%202.8q.1-.9%201-1%201%20.1%201.1%201%200%201-1%201a1%201%200%200%201-1-1m-1.9%202.6q.1-.9%201-1%201.1.1%201.2%201%200%201.2-1.1%201-1%200-1-1'/%3e%3cpath%20fill='%23fff'%20d='M227.6%20166.5q.1-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M227.6%20166.5q.1-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M224.8%20165q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M224.8%20165q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M221.6%20164q.1-1%201-1t1.1%201q-.1.9-1%201-1-.1-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M221.6%20164q.1-1%201-1t1.1%201q-.1.9-1%201-1-.1-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M218.3%20163.4q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M218.3%20163.4q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M215%20163.5q.1-1%201.1-1t1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M215%20163.5q.1-1%201.1-1t1%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M211.7%20164q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M211.7%20164q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M208.6%20165.1q.1-.9%201-1%201%20.1%201.1%201c.1.9-.5%201-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M208.6%20165.1q.1-.9%201-1%201%20.1%201.1%201c.1.9-.5%201-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M156%20190.7q0-.9%201-1c1-.1%201%20.5%201%201q0%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M156%20190.7q0-.9%201-1c1-.1%201%20.5%201%201q0%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M154.5%20188.2q.1-1%201-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M154.5%20188.2q.1-1%201-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M153.5%20185.2q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M153.5%20185.2q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M153.4%20182q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M153.4%20182q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M154.2%20179q.1-1%201-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M154.2%20179q.1-1%201-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M155.8%20176.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M155.8%20176.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M158%20173.8q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M158%20173.8q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M160.5%20171.8q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M160.5%20171.8q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M163.5%20170.3q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M163.5%20170.3q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M166.6%20169.1q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M166.6%20169.1q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M170%20168.5q.1-.9%201.1-1a1%201%200%200%201%200%202q-1%200-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M170%20168.5q.1-.9%201.1-1a1%201%200%200%201%200%202q-1%200-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M173.4%20168.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M173.4%20168.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M176.6%20168.5q.1-1%201-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M176.6%20168.5q.1-1%201-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M179.8%20168.5q.1-1%201-1%201.1%200%201.2%201c.1%201-.5%201-1.1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M179.8%20168.5q.1-1%201-1%201.1%200%201.2%201c.1%201-.5%201-1.1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M178.2%20171.2q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1m-.7%203.1q0-1%201-1c1%200%201%20.4%201%201q0%20.9-1%201a1%201%200%200%201-1-1m-.2%203q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1m.9%202.8q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1.1-1m1.8%202.6q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='%23fff'%20d='M182.3%20166.5q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M182.3%20166.5q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M185.2%20165q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M185.2%20165q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M188.3%20164q.1-1%201-1t1.1%201q0%20.9-1%201c-1%20.1-1-.5-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M188.3%20164q.1-1%201-1t1.1%201q0%20.9-1%201c-1%20.1-1-.5-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M191.6%20163.4q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M191.6%20163.4q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M194.9%20163.5q0-1%201-1c1%200%201%20.4%201%201q0%20.9-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M194.9%20163.5q0-1%201-1c1%200%201%20.4%201%201q0%20.9-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M198.2%20164q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M198.2%20164q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M201.3%20165.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M201.3%20165.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M174.7%20228.9h-1v-1h-1.5v3.6h1.6v2.5h-3.4v7h1.8v14.3h-3.5v7.3h27.2v-7.3h-3.5V241h1.8v-7h-3.4v-2.5h1.6V228h-1.6v.9h-.8v-1h-1.6v1h-1.1v-1h-1.6v3.6h1.6v2.5H184v-7.8h1.7v-3.5H184v.9h-1v-1h-1.5v1h-.9v-1H179v3.6h1.7v7.8h-3.3v-2.5h1.6V228h-1.6v.9h-.9v-1h-1.8zm-6%2033.7H196m-27.3-1.8H196m-27.3-1.8H196m-27.3-1.7H196m-27.3-2H196m-23.8-1.6h20.2m-20.2-1.8h20.2m-20.2-2h20.2m-20.2-1.7h20.2m-20.2-1.8h20.2m-20.2-1.8h20.2m-20.2-1.7h20.2m-22-1.8h23.8m-23.8-1.8h23.8m-23.8-1.8h23.8m-23.8-1.8h23.8m-20.4-1.7h17m-10.2-1.8h3.4m-3.4-1.8h3.4m-3.4-1.8h3.4m-3.4-1.7h3.4m-5.1-2.2h6.8m-12%207.5h3.6m-5-2.2h6.6m-6.7%2032.6v-1.8m0-1.8v-1.7m-1.8%201.7v1.8m3.4%200V259m1.7%203.6v-1.8m0-1.8v-1.7m0-2v-1.6m0-1.8v-2m-1.7%207.4v-2m-3.4%202v-2m7%200v2m1.5-2v-1.6m-5.1-1.8v1.8m3.5-1.8v1.8m3.3-1.8v1.8M179%20252v-2m1.7-1.7v1.7m0-5.3v1.8m-1.7-3.6v1.8m1.7-3.5v1.7m-3.3-1.7v1.7m-3.5-1.7v1.7m-1.6-3.5v1.8m3.3-1.8v1.8m3.4-1.8v1.8m1.7-3.6v1.8m-3.3-1.8v1.8m-3.5-1.8v1.8m-1.6-3.6v1.8m6.7-1.8v1.8m-3.4-5.3v1.8m15.3-1.8h-3.5m5-2.2h-6.6m6.7%2032.6v-1.8m0-1.8v-1.7m1.8%201.7v1.8m-3.4%200V259m-1.7%203.6v-1.8m0-1.8v-1.7m0-2v-1.6m0-1.8v-2m1.7%207.4v-2m3.4%202v-2m-7%200v2m-1.5-2v-1.6m5.1-1.8v1.8m-3.5-1.8v1.8m-3.3-1.8v1.8m1.7-1.8v-2m-1.7-1.7v1.7m0-5.3v1.8m1.7-3.6v1.8m-1.7-3.5v1.7m3.3-1.7v1.7m3.5-1.7v1.7m1.6-3.5v1.8m-3.3-1.8v1.8m-3.4-1.8v1.8m-1.7-3.6v1.8m3.3-1.8v1.8m3.5-1.8v1.8m1.6-3.6v1.8m-6.7-1.8v1.8m3.4-5.3v1.8m-7%2018v-2m0-5.4v-1.8m0%205.4v-1.8m0-5.3v-1.8m0-1.8v-1.7m0-3.6v-1.8m0-1.7v-1.8m-8.3%204.6h3.5m3.3-5.3h3.4m3.3%205.3h3.5'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M186.8%20262.6v-4.7c0-.8-.4-3.5-4.6-3.5-4%200-4.4%202.7-4.4%203.5v4.7z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='m179.3%20258.2-2.2-.3c0-.9.2-2.2.9-2.6l2%201.5c-.3.2-.7%201-.7%201.4zm6%200%202.2-.3c0-.9-.2-2.2-.9-2.6l-2%201.5c.3.2.7%201%20.7%201.4zm-2.2-2.3%201-2-2-.4-1.7.4%201.1%202zm-4.2-5.5v-4.9c0-1.3-1-2.4-2.5-2.4s-2.4%201-2.4%202.4v4.9zm6.8%200v-4.9c0-1.3%201-2.4%202.5-2.4s2.4%201%202.4%202.4v4.9zm-1.7-12%20.4-4.4h-4.2l.2%204.4zm3.3%200-.4-4.4h4.4l-.5%204.4zm-10%200%20.2-4.4h-4.2l.5%204.4z'/%3e%3cpath%20fill='%230039f0'%20d='M185.3%20262.6v-4c0-.7-.5-2.7-3.1-2.7-2.4%200-2.9%202-2.9%202.7v4zm-6.9-12.7v-4.2c0-1-.6-2.2-2-2.2s-2%201.1-2%202.2v4.3h4zm7.8%200v-4.2c0-1%20.7-2.2%202-2.2s2%201.1%202%202.2v4.3h-4z'/%3e%3cpath%20fill='%23ad1519'%20d='M190.8%20269.8c0-9.7%207-17.6%2015.6-17.6s15.6%207.9%2015.6%2017.6-7%2017.5-15.6%2017.5-15.6-7.8-15.6-17.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.6'%20d='M190.8%20269.8c0-9.7%207-17.6%2015.6-17.6s15.6%207.9%2015.6%2017.6-7%2017.5-15.6%2017.5-15.6-7.8-15.6-17.5z'/%3e%3cpath%20fill='%23005bbf'%20d='M195.4%20269.7c0-7%205-12.8%2011-12.8s11%205.7%2011%2012.8-5%2013-11%2013-11-5.8-11-13'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.6'%20d='M195.4%20269.7c0-7%205-12.8%2011-12.8s11%205.7%2011%2012.8-5%2013-11%2013-11-5.8-11-13z'/%3e%3cpath%20fill='%23c8b100'%20d='M201.2%20260.9s-1.3%201.4-1.3%202.7a6%206%200%200%200%20.6%202.4q-.4-.8-1.4-.8-1.3.1-1.4%201.3l.2.8.5.9q.2-.5%201-.5%201.1%200%201%201v.2h-1.2v1h1l-.8%201.5%201-.4.8.9.8-.9%201%20.4-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.6%200%201%20.6l.4-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.3q-1%200-1.4.9s.6-1.2.6-2.5-1.4-2.7-1.4-2.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M201.2%20260.9s-1.3%201.4-1.3%202.7a6%206%200%200%200%20.6%202.4q-.4-.8-1.4-.8-1.3.1-1.4%201.3l.2.8.5.9q.2-.5%201-.5%201.1%200%201%201v.2h-1.2v1h1l-.8%201.5%201-.4.8.9.8-.9%201%20.4-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.6%200%201%20.6l.4-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.3q-1%200-1.4.9s.6-1.2.6-2.5-1.4-2.7-1.4-2.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M199.2%20269.9h4.1v-1h-4.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M199.2%20269.9h4.1v-1h-4.1z'/%3e%3cpath%20fill='%23c8b100'%20d='M211.4%20260.9s-1.3%201.4-1.3%202.7.6%202.4.6%202.4q-.3-.8-1.4-.8-1.3.1-1.4%201.3l.2.8.5.9q.3-.5%201-.5a1%201%200%200%201%201%201v.2h-1.2v1h1l-.8%201.5%201-.4.8.9.8-.9%201%20.4-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.7%200%201%20.6l.4-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.3q-1%200-1.4.9s.6-1.2.6-2.5-1.4-2.7-1.4-2.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M211.4%20260.9s-1.3%201.4-1.3%202.7.6%202.4.6%202.4q-.3-.8-1.4-.8-1.3.1-1.4%201.3l.2.8.5.9q.3-.5%201-.5a1%201%200%200%201%201%201v.2h-1.2v1h1l-.8%201.5%201-.4.8.9.8-.9%201%20.4-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.7%200%201%20.6l.4-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.3q-1%200-1.4.9s.6-1.2.6-2.5-1.4-2.7-1.4-2.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M209.4%20269.9h4.1v-1h-4.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M209.4%20269.9h4.1v-1h-4.1z'/%3e%3cpath%20fill='%23c8b100'%20d='M206.3%20269.6s-1.3%201.5-1.3%202.8.6%202.4.6%202.4q-.3-.8-1.4-.9-1.3.1-1.4%201.4l.2.7.5%201q.2-.6%201-.6a1%201%200%200%201%201%201v.3h-1.2v1h1l-.8%201.5%201-.4.8.9.8-1%201%20.5-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.6%200%20.9.6l.5-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.4q-1%200-1.4%201s.6-1.2.6-2.5-1.4-2.7-1.4-2.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M206.3%20269.6s-1.3%201.5-1.3%202.8.6%202.4.6%202.4q-.3-.8-1.4-.9-1.3.1-1.4%201.4l.2.7.5%201q.2-.6%201-.6a1%201%200%200%201%201%201v.3h-1.2v1h1l-.8%201.5%201-.4.8.9.8-1%201%20.5-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.6%200%20.9.6l.5-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.4q-1%200-1.4%201s.6-1.2.6-2.5-1.4-2.7-1.4-2.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M204.3%20278.6h4.1v-1h-4.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M204.3%20278.6h4.1v-1h-4.1z'/%3e%3cpath%20fill='%23c8b100'%20d='M237.6%20223.4h-.3l-.3.4q-.4.3-.8%200l-.1-.4h-.5q-.4-.3-.1-.7v-.5h-.3l-.1.2q-.3.4-.7.2v-.2h-.3c-.5.2-.7-1-.7-1.2l-.2.2s.2.7.1%201.2l-.3%201.2a9%209%200%200%201%202.9%201.6%209%209%200%200%201%202.2%202.3l1.2-.5c.6-.2%201.3-.2%201.3-.2l.2-.2c-.3%200-1.5.1-1.5-.4v-.2h-.2q-.3-.3%200-.7l.2-.1v-.3h-.3l-.2.1q-.4.5-.8%200l-.1-.4h-.5q-.4-.3%200-.8l.2-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M237.6%20223.4h-.3l-.3.4q-.4.3-.8%200l-.1-.4h-.5q-.4-.3-.1-.7v-.5h-.3l-.1.2q-.3.4-.7.2v-.2h-.3c-.5.2-.7-1-.7-1.2l-.2.2s.2.7.1%201.2l-.3%201.2a9%209%200%200%201%202.9%201.6%209%209%200%200%201%202.2%202.3l1.2-.5c.6-.2%201.3-.2%201.3-.2l.2-.2c-.3%200-1.5.1-1.5-.4v-.2h-.2q-.3-.3%200-.7l.2-.1v-.3h-.3l-.2.1q-.4.5-.8%200l-.1-.4h-.5q-.4-.3%200-.8l.2-.3z'/%3e%3cpath%20d='M235.4%20224h.2v.3h-.1q-.1-.1%200-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M235.4%20224h.2v.3h-.1q-.1-.1%200-.2z'/%3e%3cpath%20d='m236.3%20224.8-.3-.2v-.2h.1l.4.3.3.2v.2h-.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='m236.3%20224.8-.3-.2v-.2h.1l.4.3.3.2v.2h-.2l-.3-.3'/%3e%3cpath%20d='m234.6%20223.7-.2-.2s-.1%200%200-.1l.3.1.3.1v.2h-.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='m234.6%20223.7-.2-.2s-.1%200%200-.1l.3.1.3.1v.2h-.1l-.3-.1'/%3e%3cpath%20d='M233.7%20223h.2v.2h-.2s-.1-.1%200-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M233.7%20223h.2v.2h-.2s-.1-.1%200-.2z'/%3e%3cpath%20d='M237.3%20225.5v-.2h-.3l.1.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M237.3%20225.5v-.2h-.3l.1.2z'/%3e%3cpath%20d='m237.9%20226.2.2.2h.1v-.2l-.2-.2-.2-.2h-.1v.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='m237.9%20226.2.2.2h.1v-.2l-.2-.2-.2-.2h-.1v.2l.2.2'/%3e%3cpath%20d='M238.8%20227v-.3h-.3v.2h.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M238.8%20227v-.3h-.3v.2h.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M236.2%20221.1h-.6l-.1.9v.1h.2l.7-.5-.3-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M236.2%20221.1h-.6l-.1.9v.1h.2l.7-.5-.3-.5'/%3e%3cpath%20fill='%23c8b100'%20d='M234.6%20221.6v.5l.9.1h.1v-.2l-.5-.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M234.6%20221.6v.5l.9.1h.1v-.2l-.5-.7-.5.3'/%3e%3cpath%20fill='%23c8b100'%20d='m236.4%20222.6-.4.3-.6-.7v-.1h1.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m236.4%20222.6-.4.3-.6-.7v-.1h1.1v.5'/%3e%3cpath%20fill='%23c8b100'%20d='M235.3%20222h.4v.3h-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M235.3%20222h.4v.3h-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m233.2%20221.1-.2-.7-.4-.4s.4-.2.8.1%200%20.9%200%20.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m233.2%20221.1-.2-.7-.4-.4s.4-.2.8.1%200%20.9%200%20.9z'/%3e%3cpath%20fill='%23c8b100'%20d='m234.2%20221.4-.4.4-.6-.6v-.2h1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m234.2%20221.4-.4.4-.6-.6v-.2h1v.4'/%3e%3cpath%20fill='%23c8b100'%20d='m233.1%20221%20.3-.1v.3q0%20.3-.2.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m233.1%20221%20.3-.1v.3q0%20.3-.2.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M238.3%20222.5h-.5l-.3.7v.2h.2l.8-.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M238.3%20222.5h-.5l-.3.7v.2h.2l.8-.4-.2-.5'/%3e%3cpath%20fill='%23c8b100'%20d='M236.7%20222.8v.5l.8.2h.1v-.2l-.4-.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M236.7%20222.8v.5l.8.2h.1v-.2l-.4-.7-.5.2'/%3e%3cpath%20fill='%23c8b100'%20d='m238.4%20224-.5.2-.4-.7v-.2h.1l.9.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m238.4%20224-.5.2-.4-.7v-.2h.1l.9.2-.1.5'/%3e%3cpath%20fill='%23c8b100'%20d='M237.3%20223.2h.4v.4h-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M237.3%20223.2h.4v.4h-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m240.2%20224.3.1.5-.8.3h-.2v-.2l.4-.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m240.2%20224.3.1.5-.8.3h-.2v-.2l.4-.8.5.2'/%3e%3cpath%20fill='%23c8b100'%20d='m240%20225.8-.5.1-.3-.8v-.1h.2l.8.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m240%20225.8-.5.1-.3-.8v-.1h.2l.8.3-.1.5'/%3e%3cpath%20fill='%23c8b100'%20d='m238.6%20224.3-.2.5.9.3h.1v-.1l-.3-.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m238.6%20224.3-.2.5.9.3h.1v-.1l-.3-.8-.5.1'/%3e%3cpath%20fill='%23c8b100'%20d='M239.5%20225.2v-.3h-.4v.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M239.5%20225.2v-.3h-.4v.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M240.8%20227h.8l.5.3s.1-.4-.3-.7c-.3-.3-.8.2-.8.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M240.8%20227h.8l.5.3s.1-.4-.3-.7c-.3-.3-.8.2-.8.2z'/%3e%3cpath%20fill='%23c8b100'%20d='m240.3%20226.1-.3.5.8.5v-.1h.2l-.1-1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m240.3%20226.1-.3.5.8.5v-.1h.2l-.1-1-.6.1'/%3e%3cpath%20fill='%23c8b100'%20d='M241%20227s.1-.1%200-.2h-.3q-.3%200-.1.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M241%20227s.1-.1%200-.2h-.3q-.3%200-.1.2zm38-21.9v.6h-2.4v-.6h1v-1.3h-.7v-.5h.6v-.6h.6v.6h.6v.6h-.6v1.2h1'/%3e%3cpath%20fill='none'%20d='M134.4%20217.1v-1.2m-.4%201.2v-1.2m-.2%201.2v-1.2m-.3%201.2v-1.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M133.2%20217.1v-1.2m-.5%201.1v-1m.2%201v-1m-.7%201v-1m.2%201v-1m-.9%201v-1m.2%201v-1m.3%201v-1m-.7%201v-1m-.3.9v-.8m-.1.8v-.8m-.5.7v-.6m.2.6v-.6m-.4.5v-.5m-.2.5v-.4m-.3.3v-.3m-.3.3v-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M129.2%20216.6v-.2'/%3e%3cpath%20fill='none'%20d='M135.7%20217v-1m-.5%201v-1m-.4%201.2V216m143%201.1V216m-.4%201.1V216m-.3%201.1V216m-.3%201.2V216'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M276.6%20217.1V216m-.6%201v-1m.3%201v-1m-.8%201v-1m.3%201v-1m-.9%201v-1m.2%201v-1m.2%201v-1m-.6%201v-1m-.3.9v-.8m-.2.8v-.8m-.4.7v-.6m.2.6v-.6m-.5.6v-.6m-.2.5v-.4m-.3.4v-.4m-.2.3v-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M272.6%20216.6v-.2'/%3e%3cpath%20fill='none'%20d='M279.1%20217v-1m-.6%201v-1m-.4%201.1V216'/%3e%3c/svg%3e"},LP=[{value:"ru",label:"Русский (Россия)"},{value:"en",label:"English (US)"},{value:"es",label:"Español (España)"}],IP=e=>{const t=n.useRef(0);n.useEffect(()=>{if(!e)return;t.current=window.scrollY;const n=e=>e.preventDefault();window.addEventListener("wheel",n,{passive:!1}),window.addEventListener("touchmove",n,{passive:!1});const{style:r}=document.body,i={position:r.position,top:r.top,left:r.left,right:r.right,overflowY:r.overflowY,width:r.width};return r.position="fixed",r.top=`-${t.current}px`,r.left="0",r.right="0",r.overflowY="scroll",r.width="100%",()=>{Object.assign(r,i),window.scrollTo(0,t.current),window.removeEventListener("wheel",n),window.removeEventListener("touchmove",n)}},[e])},NP=(e,n,r=16)=>{if(n)return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23868E96'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.5%204.5C4.36739%204.5%204.24021%204.55268%204.14645%204.64645C4.05268%204.74021%204%204.86739%204%205V10.5C4%2010.6326%204.05268%2010.7598%204.14645%2010.8536C4.24021%2010.9473%204.36739%2011%204.5%2011H11.5C11.6326%2011%2011.7598%2010.9473%2011.8536%2010.8536C11.9473%2010.7598%2012%2010.6326%2012%2010.5V6.5C12%206.36739%2011.9473%206.24021%2011.8536%206.14645C11.7598%206.05268%2011.6326%206%2011.5%206H8C7.86739%206%207.74021%205.94732%207.64645%205.85355L6.29289%204.5H4.5ZM3.43934%203.93934C3.72064%203.65804%204.10218%203.5%204.5%203.5H6.5C6.63261%203.5%206.75979%203.55268%206.85355%203.64645L8.20711%205H11.5C11.8978%205%2012.2794%205.15804%2012.5607%205.43934C12.842%205.72064%2013%206.10217%2013%206.5V10.5C13%2010.8978%2012.842%2011.2794%2012.5607%2011.5607C12.2794%2011.842%2011.8978%2012%2011.5%2012H4.5C4.10217%2012%203.72064%2011.842%203.43934%2011.5607C3.15804%2011.2794%203%2010.8978%203%2010.5V5C3%204.60218%203.15804%204.22064%203.43934%203.93934Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});switch(e){case"documents":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23F59F00'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.93934%203.93934C4.22064%203.65804%204.60218%203.5%205%203.5H11C11.3978%203.5%2011.7794%203.65804%2012.0607%203.93934C12.342%204.22064%2012.5%204.60217%2012.5%205V8.5C12.5%208.63261%2012.4473%208.75979%2012.3536%208.85355L8.85355%2012.3536C8.75979%2012.4473%208.63261%2012.5%208.5%2012.5H5C4.60217%2012.5%204.22064%2012.342%203.93934%2012.0607C3.65804%2011.7794%203.5%2011.3978%203.5%2011V5C3.5%204.60218%203.65804%204.22064%203.93934%203.93934ZM5%204.5C4.86739%204.5%204.74021%204.55268%204.64645%204.64645C4.55268%204.74021%204.5%204.86739%204.5%205V11C4.5%2011.1326%204.55268%2011.2598%204.64645%2011.3536C4.74021%2011.4473%204.86739%2011.5%205%2011.5H8V9C8%208.73478%208.10536%208.48043%208.29289%208.29289C8.48043%208.10536%208.73478%208%209%208H11.5V5C11.5%204.86739%2011.4473%204.74021%2011.3536%204.64645C11.2598%204.55268%2011.1326%204.5%2011%204.5H5ZM10.7929%209H9V10.7929L10.7929%209Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"media":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23B25BE4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%205C5%204.44772%205.44772%204%206%204H10C10.5523%204%2011%204.44772%2011%205V11C11%2011.5523%2010.5523%2012%2010%2012H6C5.44772%2012%205%2011.5523%205%2011V5ZM10%205H6V11H10V5ZM2.5%205.5C2.5%205.22386%202.72386%205%203%205H3.5C3.76522%205%204.01957%205.10536%204.20711%205.29289C4.39464%205.48043%204.5%205.73478%204.5%206V10C4.5%2010.2652%204.39464%2010.5196%204.20711%2010.7071C4.01957%2010.8946%203.76522%2011%203.5%2011H3C2.72386%2011%202.5%2010.7761%202.5%2010.5C2.5%2010.2239%202.72386%2010%203%2010H3.5V6H3C2.72386%206%202.5%205.77614%202.5%205.5ZM11.7929%205.29289C11.9804%205.10536%2012.2348%205%2012.5%205H13C13.2761%205%2013.5%205.22386%2013.5%205.5C13.5%205.77614%2013.2761%206%2013%206H12.5V10H13C13.2761%2010%2013.5%2010.2239%2013.5%2010.5C13.5%2010.7761%2013.2761%2011%2013%2011H12.5C12.2348%2011%2011.9804%2010.8946%2011.7929%2010.7071C11.6054%2010.5196%2011.5%2010.2652%2011.5%2010V6C11.5%205.73478%2011.6054%205.48043%2011.7929%205.29289Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"diagram":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%230CA678'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.5%204.5C5.22386%204.5%205%204.72386%205%205C5%205.27614%205.22386%205.5%205.5%205.5C5.77614%205.5%206%205.27614%206%205C6%204.72386%205.77614%204.5%205.5%204.5ZM4%205C4%204.17157%204.67157%203.5%205.5%203.5C6.32843%203.5%207%204.17157%207%205C7%205.63317%206.60769%206.17471%206.05289%206.39482C6.121%206.64444%206.25318%206.8745%206.43934%207.06066C6.72064%207.34196%207.10218%207.5%207.5%207.5H9.08535C9.29127%206.9174%209.84689%206.5%2010.5%206.5C11.3284%206.5%2012%207.17157%2012%208C12%208.82843%2011.3284%209.5%2010.5%209.5C9.84689%209.5%209.29127%209.0826%209.08535%208.5H7.5C6.95596%208.5%206.4302%208.32267%206%208.00001V9.58535C6.5826%209.79127%207%2010.3469%207%2011C7%2011.8284%206.32843%2012.5%205.5%2012.5C4.67157%2012.5%204%2011.8284%204%2011C4%2010.3469%204.4174%209.79127%205%209.58535V6.41465C4.4174%206.20873%204%205.65311%204%205ZM10.5%207.5C10.2239%207.5%2010%207.72386%2010%208C10%208.27614%2010.2239%208.5%2010.5%208.5C10.7761%208.5%2011%208.27614%2011%208C11%207.72386%2010.7761%207.5%2010.5%207.5ZM5.5%2010.5C5.22386%2010.5%205%2010.7239%205%2011C5%2011.2761%205.22386%2011.5%205.5%2011.5C5.77614%2011.5%206%2011.2761%206%2011C6%2010.7239%205.77614%2010.5%205.5%2010.5Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"archieve":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%232ABFD6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.5%204C5.36739%204%205.24022%204.05268%205.14645%204.14645C5.05268%204.24021%205%204.36739%205%204.5L5%2011.5007C4.99987%2011.5886%205.02291%2011.675%205.0668%2011.7512C5.11069%2011.8273%205.17388%2011.8905%205.25%2011.9345C5.48915%2012.0726%205.57108%2012.3784%205.43301%2012.6175C5.29494%2012.8566%204.98915%2012.9386%204.75%2012.8005C4.52165%2012.6687%204.33208%2012.479%204.20041%2012.2505C4.06881%2012.0222%203.99969%2011.7632%204%2011.4997C4%2011.4998%204%2011.4995%204%2011.4997V4.5C4%204.10218%204.15804%203.72064%204.43934%203.43934C4.72065%203.15804%205.10218%203%205.5%203H9C9.13261%203%209.25979%203.05268%209.35355%203.14645L11.8536%205.64645C11.9473%205.74021%2012%205.86739%2012%206V11.5C12%2011.8978%2011.842%2012.2794%2011.5607%2012.5607C11.2794%2012.842%2010.8978%2013%2010.5%2013H10C9.72386%2013%209.5%2012.7761%209.5%2012.5C9.5%2012.2239%209.72386%2012%2010%2012H10.5C10.6326%2012%2010.7598%2011.9473%2010.8536%2011.8536C10.9473%2011.7598%2011%2011.6326%2011%2011.5V6.20711L8.79289%204H7.5C7.77614%204%208%204.22386%208%204.5C8%204.77614%207.77614%205%207.5%205H7C6.72386%205%206.5%204.77614%206.5%204.5C6.5%204.22386%206.72386%204%207%204H5.5ZM7.5%205.5C7.5%205.22386%207.72386%205%208%205H8.5C8.77614%205%209%205.22386%209%205.5C9%205.77614%208.77614%206%208.5%206H8C7.72386%206%207.5%205.77614%207.5%205.5ZM6.5%206.5C6.5%206.22386%206.72386%206%207%206H7.5C7.77614%206%208%206.22386%208%206.5C8%206.77614%207.77614%207%207.5%207H7C6.72386%207%206.5%206.77614%206.5%206.5ZM7.5%207.5C7.5%207.22386%207.72386%207%208%207H8.5C8.77614%207%209%207.22386%209%207.5C9%207.77614%208.77614%208%208.5%208H8C7.72386%208%207.5%207.77614%207.5%207.5ZM6.5%208.5C6.5%208.22386%206.72386%208%207%208H7.5C7.77614%208%208%208.22386%208%208.5C8%208.77614%207.77614%209%207.5%209H7C6.72386%209%206.5%208.77614%206.5%208.5ZM7.5%209.5C7.5%209.22386%207.72386%209%208%209H8.5C8.77614%209%209%209.22386%209%209.5C9%209.77614%208.77614%2010%208.5%2010H8C7.72386%2010%207.5%209.77614%207.5%209.5ZM7.5%2011C7.36739%2011%207.24022%2011.0527%207.14645%2011.1464C7.05268%2011.2402%207%2011.3674%207%2011.5V12.5H8V11.5C8%2011.3674%207.94732%2011.2402%207.85355%2011.1464C7.75978%2011.0527%207.63261%2011%207.5%2011ZM6.43934%2010.4393C6.72064%2010.158%207.10217%2010%207.5%2010C7.89783%2010%208.27936%2010.158%208.56066%2010.4393C8.84196%2010.7206%209%2011.1022%209%2011.5V12.5C9%2012.7652%208.89464%2013.0196%208.70711%2013.2071C8.51957%2013.3946%208.26522%2013.5%208%2013.5H7C6.73478%2013.5%206.48043%2013.3946%206.29289%2013.2071C6.10536%2013.0196%206%2012.7652%206%2012.5V11.5C6%2011.1022%206.15804%2010.7206%206.43934%2010.4393Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"presentation":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='2'%20y='1'%20width='20'%20height='22'%20rx='3'%20fill='%23F76707'/%3e%3cpath%20d='M19%2012C19%2010.8953%2018.7386%209.80634%2018.237%208.82207C17.7355%207.8378%2017.0082%206.98619%2016.1145%206.33688L12%2012H19Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2017.8C15.2033%2017.8%2017.8%2015.2033%2017.8%2012C17.8%208.79675%2015.2033%206.2%2012%206.2C8.79675%206.2%206.2%208.79675%206.2%2012C6.2%2015.2033%208.79675%2017.8%2012%2017.8ZM12%2019C15.866%2019%2019%2015.866%2019%2012C19%208.13401%2015.866%205%2012%205C8.13401%205%205%208.13401%205%2012C5%2015.866%208.13401%2019%2012%2019Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"sheet":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='2'%20y='1'%20width='20'%20height='22'%20rx='3'%20fill='%2337B24D'/%3e%3cpath%20d='M4%208.6C4%208.26863%204.26863%208%204.6%208H19.4C19.7314%208%2020%208.26863%2020%208.6C20%208.93137%2019.7314%209.2%2019.4%209.2H4.6C4.26863%209.2%204%208.93137%204%208.6Z'%20fill='white'/%3e%3cpath%20d='M8.6%2020C8.26863%2020%208%2019.7314%208%2019.4L8%204.6C8%204.26863%208.26863%204%208.6%204C8.93137%204%209.2%204.26863%209.2%204.6L9.2%2019.4C9.2%2019.7314%208.93137%2020%208.6%2020Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"docx":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15019_244)'%3e%3cg%20filter='url(%23filter0_d_15019_244)'%3e%3cg%20filter='url(%23filter1_i_15019_244)'%3e%3cpath%20d='M3.47998%204.64008C3.47998%203.22623%204.62613%202.08008%206.03998%202.08008H20.92C22.3338%202.08008%2023.48%203.22623%2023.48%204.64008V8.80008H3.47998V4.64008Z'%20fill='%231C7ED6'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_i_15019_244)'%3e%3crect%20x='3.47998'%20y='8.80005'%20width='20'%20height='6.56'%20fill='%23228BE6'/%3e%3c/g%3e%3cg%20filter='url(%23filter3_i_15019_244)'%3e%3cpath%20d='M3.47998%2015.3601H23.48V19.5201C23.48%2020.934%2022.3338%2022.0801%2020.92%2022.0801H6.03998C4.62613%2022.0801%203.47998%2020.934%203.47998%2019.5201V15.3601Z'%20fill='%2337A1FD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_15019_244'%20x='2.19998'%20y='1.44008'%20width='22.56'%20height='22.56'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='0.64'/%3e%3cfeGaussianBlur%20stdDeviation='0.64'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.156194%200%200%200%200%200.851969%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_15019_244'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_15019_244'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_i_15019_244'%20x='2.67998'%20y='1.28008'%20width='20.8'%20height='7.51997'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-0.8'%20dy='-0.8'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.405194%200%200%200%200%200%200%200%200%200%200.517269%200%200%200%200.35%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_244'/%3e%3c/filter%3e%3cfilter%20id='filter2_i_15019_244'%20x='1.87998'%20y='7.20005'%20width='21.6'%20height='8.16006'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-1.6'%20dy='-1.6'/%3e%3cfeGaussianBlur%20stdDeviation='1.6'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.0337715%200%200%200%200%200.42674%200%200%200%200%200.748258%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_244'/%3e%3c/filter%3e%3cfilter%20id='filter3_i_15019_244'%20x='1.87998'%20y='13.7601'%20width='21.6'%20height='8.31997'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-1.6'%20dy='-1.6'/%3e%3cfeGaussianBlur%20stdDeviation='1.6'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.0530908%200%200%200%200%200.470824%200%200%200%200%200.888558%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_244'/%3e%3c/filter%3e%3cclipPath%20id='clip0_15019_244'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(0.439941)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",w:r,h:r});case"pptx":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15019_265)'%3e%3cg%20filter='url(%23filter0_d_15019_265)'%3e%3cg%20filter='url(%23filter1_i_15019_265)'%3e%3cpath%20d='M23.6001%2012.0801C23.6001%2013.3933%2023.3414%2014.6937%2022.8389%2015.9069C22.3363%2017.1202%2021.5998%2018.2226%2020.6712%2019.1511C19.7426%2020.0797%2018.6402%2020.8163%2017.4269%2021.3189C16.2137%2021.8214%2014.9133%2022.0801%2013.6001%2022.0801L13.6001%2012.0801L23.6001%2012.0801Z'%20fill='%23FAB005'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_i_15019_265)'%3e%3cpath%20d='M13.6001%202.08008C14.9133%202.08008%2016.2137%202.33874%2017.4269%202.84128C18.6402%203.34383%2019.7426%204.08042%2020.6712%205.00901C21.5998%205.9376%2022.3363%207.03999%2022.8389%208.25324C23.3414%209.4665%2023.6001%2010.7669%2023.6001%2012.0801L13.6001%2012.0801L13.6001%202.08008Z'%20fill='%23FAB005'%20fill-opacity='0.12'/%3e%3c/g%3e%3cg%20filter='url(%23filter3_i_15019_265)'%3e%3cpath%20d='M13.6001%2022.0801C12.2869%2022.0801%2010.9865%2021.8214%209.77326%2021.3189C8.56001%2020.8163%207.45761%2020.0797%206.52903%2019.1511C5.60044%2018.2226%204.86385%2017.1202%204.3613%2015.9069C3.85875%2014.6937%203.6001%2013.3933%203.6001%2012.0801C3.6001%2010.7669%203.85876%209.4665%204.3613%208.25324C4.86385%207.03999%205.60044%205.93759%206.52903%205.00901C7.45762%204.08042%208.56001%203.34383%209.77326%202.84128C10.9865%202.33873%2012.2869%202.08008%2013.6001%202.08008L13.6001%2012.0801L13.6001%2022.0801Z'%20fill='%23F59F00'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_15019_265'%20x='2.3201'%20y='1.44008'%20width='22.56'%20height='22.56'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='0.64'/%3e%3cfeGaussianBlur%20stdDeviation='0.64'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.520654%200%200%200%200%200.260327%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_15019_265'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_15019_265'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_i_15019_265'%20x='12.0001'%20y='10.4801'%20width='11.6'%20height='11.6'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-1.6'%20dy='-1.6'/%3e%3cfeGaussianBlur%20stdDeviation='2.4'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%200.35%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_265'/%3e%3c/filter%3e%3cfilter%20id='filter2_i_15019_265'%20x='12.0001'%20y='2.08008'%20width='11.6'%20height='11.6'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-1.6'%20dy='1.6'/%3e%3cfeGaussianBlur%20stdDeviation='2.4'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%200.533333%200%200%200%200%200%200%200%200%200.45%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_265'/%3e%3c/filter%3e%3cfilter%20id='filter3_i_15019_265'%20x='3.6001'%20y='0.480078'%20width='13.2'%20height='21.6'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='3.2'%20dy='-1.6'/%3e%3cfeGaussianBlur%20stdDeviation='1.6'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_265'/%3e%3c/filter%3e%3cclipPath%20id='clip0_15019_265'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(0.560059)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",w:r,h:r});case"xlsx":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15019_253)'%3e%3cg%20filter='url(%23filter0_d_15019_253)'%3e%3cg%20filter='url(%23filter1_i_15019_253)'%3e%3crect%20x='3.04004'%20y='8.63989'%20width='10'%20height='6.64'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_i_15019_253)'%3e%3cpath%20d='M3.04004%204.47992C3.04004%203.06607%204.18619%201.91992%205.60004%201.91992H13.12V15.1999H3.04004V4.47992Z'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter3_i_15019_253)'%3e%3cpath%20d='M13.04%201.91992H20.48C21.8939%201.91992%2023.04%203.06607%2023.04%204.47992V8.63992H13.04V1.91992Z'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter4_i_15019_253)'%3e%3cpath%20d='M13.04%2015.2H23.04V19.28C23.04%2020.6938%2021.8939%2021.84%2020.48%2021.84H13.04V15.2Z'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter5_i_15019_253)'%3e%3cpath%20d='M3.04004%2015.2H13.04V21.84H5.60004C4.18619%2021.84%203.04004%2020.6938%203.04004%2019.28V15.2Z'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter6_i_15019_253)'%3e%3crect%20x='13.04'%20y='8.63989'%20width='10'%20height='6.64'%20fill='%2300A840'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_15019_253'%20x='1.76004'%20y='1.27992'%20width='22.56'%20height='22.4799'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='0.64'/%3e%3cfeGaussianBlur%20stdDeviation='0.64'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.482731%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_15019_253'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_15019_253'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_i_15019_253'%20x='3.04004'%20y='6.23989'%20width='11.6'%20height='9.03989'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.5%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter2_i_15019_253'%20x='3.04004'%20y='-2.08008'%20width='13.2801'%20height='17.28'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='3.2'%20dy='-4'/%3e%3cfeGaussianBlur%20stdDeviation='2.8'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.6%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter3_i_15019_253'%20x='13.04'%20y='-0.480078'%20width='11.6'%20height='9.11997'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.6%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter4_i_15019_253'%20x='13.04'%20y='12.8'%20width='11.6'%20height='9.03989'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.4%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter5_i_15019_253'%20x='3.04004'%20y='12.8'%20width='11.6'%20height='9.03989'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.4%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter6_i_15019_253'%20x='13.04'%20y='6.23989'%20width='11.6'%20height='9.03989'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.5%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cclipPath%20id='clip0_15019_253'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",w:r,h:r});default:return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H20C22.2091%200%2024%201.79086%2024%204V20C24%2022.2091%2022.2091%2024%2020%2024H4C1.79086%2024%200%2022.2091%200%2020V4Z'%20fill='%23868E96'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.83325%205.33317C7.61224%205.33317%207.40028%205.42097%207.244%205.57725C7.08772%205.73353%206.99992%205.94549%206.99992%206.1665V17.8332C6.99992%2018.0542%207.08772%2018.2661%207.244%2018.4224C7.40028%2018.5787%207.61224%2018.6665%207.83325%2018.6665H16.1666C16.3876%2018.6665%2016.5996%2018.5787%2016.7558%2018.4224C16.9121%2018.2661%2016.9999%2018.0542%2016.9999%2017.8332V9.49984H14.4999C14.0579%209.49984%2013.634%209.32424%2013.3214%209.01168C13.0088%208.69912%2012.8333%208.2752%2012.8333%207.83317V5.33317H7.83325ZM14.4999%206.51168L15.8214%207.83317H14.4999V6.51168ZM6.06548%204.39874C6.53433%203.9299%207.17021%203.6665%207.83325%203.6665H13.6666C13.8876%203.6665%2014.0996%203.7543%2014.2558%203.91058L18.4225%208.07725C18.5788%208.23353%2018.6666%208.44549%2018.6666%208.6665V17.8332C18.6666%2018.4962%2018.4032%2019.1321%2017.9344%2019.6009C17.4655%2020.0698%2016.8296%2020.3332%2016.1666%2020.3332H7.83325C7.17021%2020.3332%206.53433%2020.0698%206.06548%2019.6009C5.59664%2019.1321%205.33325%2018.4962%205.33325%2017.8332V6.1665C5.33325%205.50346%205.59664%204.86758%206.06548%204.39874ZM11.2603%2010.4692C11.587%2010.3449%2011.9398%2010.3049%2012.2861%2010.3528C12.6324%2010.4007%2012.9611%2010.535%2013.2418%2010.7433C13.5226%2010.9515%2013.7465%2011.2271%2013.8928%2011.5446C14.0391%2011.8621%2014.1031%2012.2113%2014.079%2012.5601C14.0549%2012.9089%2013.9435%2013.2459%2013.7549%2013.5403C13.5663%2013.8347%2013.3067%2014.0768%2012.9999%2014.2445C12.6932%2014.4122%2012.3492%2014.5%2011.9996%2014.4998C11.5394%2014.4996%2011.1664%2014.1263%2011.1667%2013.6661C11.1669%2013.2058%2011.5402%2012.8329%2012.0004%2012.8332C12.0703%2012.8332%2012.1391%2012.8156%2012.2005%2012.7821C12.2618%2012.7486%2012.3138%2012.7001%2012.3515%2012.6413C12.3892%2012.5824%2012.4115%2012.515%2012.4163%2012.4452C12.4211%2012.3755%2012.4083%2012.3056%2012.3791%2012.2421C12.3498%2012.1786%2012.305%2012.1235%2012.2489%2012.0819C12.1927%2012.0402%2012.127%2012.0133%2012.0577%2012.0038C11.9885%2011.9942%2011.9179%2012.0022%2011.8526%2012.027C11.7872%2012.0519%2011.7292%2012.0928%2011.6838%2012.1459C11.3849%2012.496%2010.8589%2012.5374%2010.5089%2012.2386C10.1589%2011.9397%2010.1174%2011.4137%2010.4163%2011.0637C10.6433%2010.7979%2010.9335%2010.5934%2011.2603%2010.4692ZM11.9999%2015.3332C12.4602%2015.3332%2012.8333%2015.7063%2012.8333%2016.1665V16.1748C12.8333%2016.6351%2012.4602%2017.0082%2011.9999%2017.0082C11.5397%2017.0082%2011.1666%2016.6351%2011.1666%2016.1748V16.1665C11.1666%2015.7063%2011.5397%2015.3332%2011.9999%2015.3332Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r})}},RP=(e,t)=>e===t,DP=(e,t="SAAS")=>{if(e.includes("text"))return"documents";if(e.includes("image")||e.includes("video"))return"media";switch(e.toLowerCase()){case"application/pdf":case"application/msword":case"application/rtf":case"application/excel":return"documents";case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return RP(t,"SAAS")?"documents":"xlsx";case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return RP(t,"SAAS")?"documents":"docx";case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return RP(t,"SAAS")?"presentation":"pptx";case"application/slides":case"audio/mpeg":return"media";case"flow":return"diagram";case"archieve":case"application/zip":return"archieve";case"folder":return"folder";default:return"other"}},BP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#9B14EA"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.83325 5.33317C7.61224 5.33317 7.40028 5.42097 7.244 5.57725C7.08772 5.73353 6.99992 5.94549 6.99992 6.1665L6.99992 17.8344C6.9997 17.9809 7.03811 18.1248 7.11126 18.2518C7.18441 18.3787 7.28972 18.4841 7.41659 18.5573C7.81516 18.7874 7.95173 19.2971 7.72161 19.6957C7.49149 20.0942 6.98183 20.2308 6.58325 20.0007C6.20266 19.781 5.88672 19.4648 5.66727 19.084C5.44793 18.7035 5.33273 18.2719 5.33325 17.8326C5.33325 17.8329 5.33325 17.8324 5.33325 17.8326V6.1665C5.33325 5.50346 5.59665 4.86758 6.06549 4.39874C6.53433 3.9299 7.17021 3.6665 7.83325 3.6665H13.6666C13.8876 3.6665 14.0996 3.7543 14.2558 3.91058L18.4225 8.07725C18.5788 8.23353 18.6666 8.44549 18.6666 8.6665V17.8332C18.6666 18.4962 18.4032 19.1321 17.9344 19.6009C17.4655 20.0698 16.8296 20.3332 16.1666 20.3332H15.3333C14.873 20.3332 14.4999 19.9601 14.4999 19.4998C14.4999 19.0396 14.873 18.6665 15.3333 18.6665H16.1666C16.3876 18.6665 16.5996 18.5787 16.7558 18.4224C16.9121 18.2661 16.9999 18.0542 16.9999 17.8332V9.01168L13.3214 5.33317H11.1666C11.6268 5.33317 11.9999 5.70627 11.9999 6.1665C11.9999 6.62674 11.6268 6.99984 11.1666 6.99984H10.3333C9.87301 6.99984 9.49992 6.62674 9.49992 6.1665C9.49992 5.70627 9.87301 5.33317 10.3333 5.33317H7.83325ZM11.1666 7.83317C11.1666 7.37293 11.5397 6.99984 11.9999 6.99984H12.8333C13.2935 6.99984 13.6666 7.37293 13.6666 7.83317C13.6666 8.29341 13.2935 8.6665 12.8333 8.6665H11.9999C11.5397 8.6665 11.1666 8.29341 11.1666 7.83317ZM9.49992 9.49984C9.49992 9.0396 9.87301 8.6665 10.3333 8.6665H11.1666C11.6268 8.6665 11.9999 9.0396 11.9999 9.49984C11.9999 9.96007 11.6268 10.3332 11.1666 10.3332H10.3333C9.87301 10.3332 9.49992 9.96007 9.49992 9.49984ZM11.1666 11.1665C11.1666 10.7063 11.5397 10.3332 11.9999 10.3332H12.8333C13.2935 10.3332 13.6666 10.7063 13.6666 11.1665C13.6666 11.6267 13.2935 11.9998 12.8333 11.9998H11.9999C11.5397 11.9998 11.1666 11.6267 11.1666 11.1665ZM9.49992 12.8332C9.49992 12.3729 9.87301 11.9998 10.3333 11.9998H11.1666C11.6268 11.9998 11.9999 12.3729 11.9999 12.8332C11.9999 13.2934 11.6268 13.6665 11.1666 13.6665H10.3333C9.87301 13.6665 9.49992 13.2934 9.49992 12.8332ZM11.1666 14.4998C11.1666 14.0396 11.5397 13.6665 11.9999 13.6665H12.8333C13.2935 13.6665 13.6666 14.0396 13.6666 14.4998C13.6666 14.9601 13.2935 15.3332 12.8333 15.3332H11.9999C11.5397 15.3332 11.1666 14.9601 11.1666 14.4998ZM11.1666 16.9998C10.9456 16.9998 10.7336 17.0876 10.5773 17.2439C10.421 17.4002 10.3333 17.6122 10.3333 17.8332V19.4998H11.9999V17.8332C11.9999 17.6122 11.9121 17.4002 11.7558 17.2439C11.5996 17.0876 11.3876 16.9998 11.1666 16.9998ZM9.39882 16.0654C9.86766 15.5966 10.5035 15.3332 11.1666 15.3332C11.8296 15.3332 12.4655 15.5966 12.9344 16.0654C13.4032 16.5342 13.6666 17.1701 13.6666 17.8332V19.4998C13.6666 19.9419 13.491 20.3658 13.1784 20.6783C12.8659 20.9909 12.4419 21.1665 11.9999 21.1665H10.3333C9.89123 21.1665 9.4673 20.9909 9.15474 20.6783C8.84218 20.3658 8.66659 19.9419 8.66659 19.4998V17.8332C8.66659 17.1701 8.92998 16.5342 9.39882 16.0654Z",fill:"white"})),zP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#0CA678"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6.16667C10.4529 6.16667 8.96917 6.78125 7.87521 7.87521C6.78125 8.96917 6.16667 10.4529 6.16667 12V12.1423C6.42732 12.0501 6.7078 12 7 12H7.83333C9.21405 12 10.3333 13.1193 10.3333 14.5V17C10.3333 18.3807 9.21405 19.5 7.83333 19.5H7C5.61929 19.5 4.5 18.3807 4.5 17V12C4.5 10.0109 5.29018 8.10322 6.6967 6.6967C8.10322 5.29018 10.0109 4.5 12 4.5C13.9891 4.5 15.8968 5.29018 17.3033 6.6967C18.7098 8.10322 19.5 10.0109 19.5 12V17C19.5 18.3807 18.3807 19.5 17 19.5H16.1667C14.786 19.5 13.6667 18.3807 13.6667 17V14.5C13.6667 13.1193 14.786 12 16.1667 12H17C17.2922 12 17.5727 12.0501 17.8333 12.1423V12C17.8333 10.4529 17.2188 8.96917 16.1248 7.87521C15.0308 6.78125 13.5471 6.16667 12 6.16667ZM17.8333 14.5C17.8333 14.0398 17.4602 13.6667 17 13.6667H16.1667C15.7064 13.6667 15.3333 14.0398 15.3333 14.5V17C15.3333 17.4602 15.7064 17.8333 16.1667 17.8333H17C17.4602 17.8333 17.8333 17.4602 17.8333 17V14.5ZM6.16667 14.5V17C6.16667 17.4602 6.53976 17.8333 7 17.8333H7.83333C8.29357 17.8333 8.66667 17.4602 8.66667 17V14.5C8.66667 14.0398 8.29357 13.6667 7.83333 13.6667H7C6.53976 13.6667 6.16667 14.0398 6.16667 14.5Z",fill:"white"})),FP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#1C7ED6"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8689 4.52508C14.3154 4.6367 14.5868 5.08915 14.4752 5.53564L11.1419 18.869C11.0302 19.3155 10.5778 19.5869 10.1313 19.4753C9.68481 19.3637 9.41334 18.9112 9.52496 18.4648L12.8583 5.13142C12.9699 4.68492 13.4224 4.41345 13.8689 4.52508ZM8.42267 8.07761C8.74811 8.40305 8.74811 8.93068 8.42267 9.25612L5.67859 12.0002L8.42267 14.7443C8.74811 15.0697 8.74811 15.5973 8.42267 15.9228C8.09723 16.2482 7.5696 16.2482 7.24416 15.9228L3.91083 12.5895C3.58539 12.264 3.58539 11.7364 3.91083 11.4109L7.24416 8.07761C7.5696 7.75217 8.09723 7.75217 8.42267 8.07761ZM15.5775 8.07761C15.9029 7.75217 16.4306 7.75217 16.756 8.07761L20.0893 11.4109C20.4148 11.7364 20.4148 12.264 20.0893 12.5895L16.756 15.9228C16.4306 16.2482 15.9029 16.2482 15.5775 15.9228C15.2521 15.5973 15.2521 15.0697 15.5775 14.7443L18.3216 12.0002L15.5775 9.25612C15.2521 8.93068 15.2521 8.40305 15.5775 8.07761Z",fill:"white"})),HP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#F03E3E"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.23223 5.23223C5.70107 4.76339 6.33696 4.5 7 4.5H17C17.663 4.5 18.2989 4.76339 18.7678 5.23223C19.2366 5.70107 19.5 6.33696 19.5 7V12.8333C19.5 13.0543 19.4122 13.2663 19.2559 13.4226L13.4226 19.2559C13.2663 19.4122 13.0543 19.5 12.8333 19.5H7C6.33696 19.5 5.70107 19.2366 5.23223 18.7678C4.76339 18.2989 4.5 17.663 4.5 17V7C4.5 6.33696 4.76339 5.70107 5.23223 5.23223ZM7 6.16667C6.77899 6.16667 6.56702 6.25446 6.41074 6.41074C6.25446 6.56702 6.16667 6.77899 6.16667 7V17C6.16667 17.221 6.25446 17.433 6.41074 17.5893C6.56702 17.7455 6.77899 17.8333 7 17.8333H12V13.6667C12 13.2246 12.1756 12.8007 12.4882 12.4882C12.8007 12.1756 13.2246 12 13.6667 12H17.8333V7C17.8333 6.77899 17.7455 6.56702 17.5893 6.41074C17.433 6.25446 17.221 6.16667 17 6.16667H7ZM16.6548 13.6667H13.6667V16.6548L16.6548 13.6667Z",fill:"white"})),qP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#FF6F00"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.83333 6.16667C6.91286 6.16667 6.16667 6.91286 6.16667 7.83333V12.4882L8.07741 10.5774L8.08885 10.5662C8.59083 10.0832 9.22016 9.77512 9.91667 9.77512C10.6132 9.77512 11.2425 10.0832 11.7445 10.5662L11.7559 10.5774L13.6667 12.4882L13.9107 12.2441L13.9222 12.2329C14.4242 11.7498 15.0535 11.4418 15.75 11.4418C16.4465 11.4418 17.0758 11.7498 17.5778 12.2329L17.5893 12.2441L17.8333 12.4882V7.83333C17.8333 6.91286 17.0871 6.16667 16.1667 6.16667H7.83333ZM19.5 14.4992V7.83333C19.5 5.99238 18.0076 4.5 16.1667 4.5H7.83333C5.99238 4.5 4.5 5.99238 4.5 7.83333V14.4999C4.5 14.4998 4.5 14.5 4.5 14.4999V16.1667C4.5 18.0076 5.99238 19.5 7.83333 19.5H16.1667C18.0076 19.5 19.5 18.0076 19.5 16.1667V14.5008C19.5 14.5003 19.5 14.4997 19.5 14.4992ZM17.8333 14.8452L16.417 13.4288C16.1609 13.1844 15.93 13.1084 15.75 13.1084C15.57 13.1084 15.3391 13.1844 15.083 13.4288L14.8452 13.6667L15.9226 14.7441C16.248 15.0695 16.248 15.5972 15.9226 15.9226C15.5972 16.248 15.0695 16.248 14.7441 15.9226L10.5836 11.7621C10.3276 11.5177 10.0966 11.4418 9.91667 11.4418C9.73671 11.4418 9.50575 11.5177 9.24971 11.7621L6.16667 14.8452V16.1667C6.16667 17.0871 6.91286 17.8333 7.83333 17.8333H16.1667C17.0871 17.8333 17.8333 17.0871 17.8333 16.1667V14.8452ZM13.6667 8.66667C13.6667 8.20643 14.0398 7.83333 14.5 7.83333H14.5083C14.9686 7.83333 15.3417 8.20643 15.3417 8.66667C15.3417 9.1269 14.9686 9.5 14.5083 9.5H14.5C14.0398 9.5 13.6667 9.1269 13.6667 8.66667Z",fill:"white"})),UP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#868E96"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.83325 5.33317C7.61224 5.33317 7.40028 5.42097 7.244 5.57725C7.08772 5.73353 6.99992 5.94549 6.99992 6.1665V17.8332C6.99992 18.0542 7.08772 18.2661 7.244 18.4224C7.40028 18.5787 7.61224 18.6665 7.83325 18.6665H16.1666C16.3876 18.6665 16.5996 18.5787 16.7558 18.4224C16.9121 18.2661 16.9999 18.0542 16.9999 17.8332V9.49984H14.4999C14.0579 9.49984 13.634 9.32424 13.3214 9.01168C13.0088 8.69912 12.8333 8.2752 12.8333 7.83317V5.33317H7.83325ZM14.4999 6.51168L15.8214 7.83317H14.4999V6.51168ZM6.06548 4.39874C6.53433 3.9299 7.17021 3.6665 7.83325 3.6665H13.6666C13.8876 3.6665 14.0996 3.7543 14.2558 3.91058L18.4225 8.07725C18.5788 8.23353 18.6666 8.44549 18.6666 8.6665V17.8332C18.6666 18.4962 18.4032 19.1321 17.9344 19.6009C17.4655 20.0698 16.8296 20.3332 16.1666 20.3332H7.83325C7.17021 20.3332 6.53433 20.0698 6.06548 19.6009C5.59664 19.1321 5.33325 18.4962 5.33325 17.8332V6.1665C5.33325 5.50346 5.59664 4.86758 6.06548 4.39874ZM11.2603 10.4692C11.587 10.3449 11.9398 10.3049 12.2861 10.3528C12.6324 10.4007 12.9611 10.535 13.2418 10.7433C13.5226 10.9515 13.7465 11.2271 13.8928 11.5446C14.0391 11.8621 14.1031 12.2113 14.079 12.5601C14.0549 12.9089 13.9435 13.2459 13.7549 13.5403C13.5663 13.8347 13.3067 14.0768 12.9999 14.2445C12.6932 14.4122 12.3492 14.5 11.9996 14.4998C11.5394 14.4996 11.1664 14.1263 11.1667 13.6661C11.1669 13.2058 11.5402 12.8329 12.0004 12.8332C12.0703 12.8332 12.1391 12.8156 12.2005 12.7821C12.2618 12.7486 12.3138 12.7001 12.3515 12.6413C12.3892 12.5824 12.4115 12.515 12.4163 12.4452C12.4211 12.3755 12.4083 12.3056 12.3791 12.2421C12.3498 12.1786 12.305 12.1235 12.2489 12.0819C12.1927 12.0402 12.127 12.0133 12.0577 12.0038C11.9885 11.9942 11.9179 12.0022 11.8526 12.027C11.7872 12.0519 11.7292 12.0928 11.6838 12.1459C11.3849 12.496 10.8589 12.5374 10.5089 12.2386C10.1589 11.9397 10.1174 11.4137 10.4163 11.0637C10.6433 10.7979 10.9335 10.5934 11.2603 10.4692ZM11.9999 15.3332C12.4602 15.3332 12.8333 15.7063 12.8333 16.1665V16.1748C12.8333 16.6351 12.4602 17.0082 11.9999 17.0082C11.5397 17.0082 11.1666 16.6351 11.1666 16.1748V16.1665C11.1666 15.7063 11.5397 15.3332 11.9999 15.3332Z",fill:"white"})),VP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#FAB005"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6.16667C6.53976 6.16667 6.16667 6.53976 6.16667 7V7.83333H7.83333V6.16667H7ZM7 4.5C5.61929 4.5 4.5 5.61929 4.5 7V17C4.5 18.3807 5.61929 19.5 7 19.5H17C18.3807 19.5 19.5 18.3807 19.5 17V7C19.5 5.61929 18.3807 4.5 17 4.5H7ZM9.5 6.16667V11.1667H14.5V6.16667H9.5ZM16.1667 6.16667V7.83333H17.8333V7C17.8333 6.53976 17.4602 6.16667 17 6.16667H16.1667ZM17.8333 9.5H16.1667V11.1667H17.8333V9.5ZM17.8333 12.8333H16.1667V14.5H17.8333V12.8333ZM17.8333 16.1667H16.1667V17.8333H17C17.4602 17.8333 17.8333 17.4602 17.8333 17V16.1667ZM14.5 17.8333V12.8333H9.5V17.8333H14.5ZM7.83333 17.8333V16.1667H6.16667V17C6.16667 17.4602 6.53976 17.8333 7 17.8333H7.83333ZM6.16667 14.5H7.83333V12.8333H6.16667V14.5ZM6.16667 11.1667H7.83333V9.5H6.16667V11.1667Z",fill:"white"})),XP=({category:e})=>{const{t:n}=i.useTranslation("settingsPage"),r=(e=>{switch(e){case"archives":return BP;case"audio":return zP;case"code":return FP;case"documents":return HP;case"images":return qP;case"videos":return VP;default:return UP}})(e.type);return t.jsxs(o.Flex,{h:48,w:"100%",justify:"space-between",align:"center",px:16,style:{border:"1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4))",borderRadius:"var(--mantine-radius-md)"},children:[t.jsxs(o.Flex,{align:"center",gap:8,children:[t.jsx(r,{width:24,height:24}),t.jsx(o.Text,{fz:14,children:n(`workspace.categories.${e.type}`)})]}),t.jsxs(o.Text,{c:"dimmed",fz:14,children:[e.percentage,"% (",Nt(e.usedKb),")"]})]})},GP={documents:0,images:1,videos:2,audio:3,code:4,archives:5,other:6};var WP=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),JP="-ms-",ZP="-moz-",KP="-webkit-",YP="comm",QP="rule",_P="decl",$P="@keyframes",eL=Math.abs,tL=String.fromCharCode,nL=Object.assign;function rL(e){return e.trim()}function iL(e,t,n){return e.replace(t,n)}function oL(e,t){return e.indexOf(t)}function aL(e,t){return 0|e.charCodeAt(t)}function sL(e,t,n){return e.slice(t,n)}function lL(e){return e.length}function cL(e){return e.length}function dL(e,t){return t.push(e),e}var uL=1,hL=1,fL=0,pL=0,mL=0,gL="";function vL(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:uL,column:hL,length:a,return:""}}function bL(e,t){return nL(vL("",null,null,"",null,null,0),e,{length:-e.length},t)}function yL(){return mL=pL>0?aL(gL,--pL):0,hL--,10===mL&&(hL=1,uL--),mL}function wL(){return mL=pL<fL?aL(gL,pL++):0,hL++,10===mL&&(hL=1,uL++),mL}function kL(){return aL(gL,pL)}function xL(){return pL}function CL(e,t){return sL(gL,e,t)}function SL(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function EL(e){return uL=hL=1,fL=lL(gL=e),pL=0,[]}function ML(e){return gL="",e}function TL(e){return rL(CL(pL-1,OL(91===e?e+2:40===e?e+1:e)))}function AL(e){for(;(mL=kL())&&mL<33;)wL();return SL(e)>2||SL(mL)>3?"":" "}function jL(e,t){for(;--t&&wL()&&!(mL<48||mL>102||mL>57&&mL<65||mL>70&&mL<97););return CL(e,xL()+(t<6&&32==kL()&&32==wL()))}function OL(e){for(;wL();)switch(mL){case e:return pL;case 34:case 39:34!==e&&39!==e&&OL(mL);break;case 40:41===e&&OL(e);break;case 92:wL()}return pL}function PL(e,t){for(;wL()&&e+mL!==57&&(e+mL!==84||47!==kL()););return"/*"+CL(t,pL-1)+"*"+tL(47===e?e:wL())}function LL(e){for(;!SL(kL());)wL();return CL(e,pL)}function IL(e){return ML(NL("",null,null,null,[""],e=EL(e),0,[0],e))}function NL(e,t,n,r,i,o,a,s,l){for(var c=0,d=0,u=a,h=0,f=0,p=0,m=1,g=1,v=1,b=0,y="",w=i,k=o,x=r,C=y;g;)switch(p=b,b=wL()){case 40:if(108!=p&&58==aL(C,u-1)){-1!=oL(C+=iL(TL(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=TL(b);break;case 9:case 10:case 13:case 32:C+=AL(p);break;case 92:C+=jL(xL()-1,7);continue;case 47:switch(kL()){case 42:case 47:dL(DL(PL(wL(),xL()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=lL(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:-1==v&&(C=iL(C,/\f/g,"")),f>0&&lL(C)-u&&dL(f>32?BL(C+";",r,n,u-1):BL(iL(C," ","")+";",r,n,u-2),l);break;case 59:C+=";";default:if(dL(x=RL(C,t,n,c,d,i,s,y,w=[],k=[],u),o),123===b)if(0===d)NL(C,t,x,x,w,o,u,s,k);else switch(99===h&&110===aL(C,3)?100:h){case 100:case 108:case 109:case 115:NL(e,x,x,r&&dL(RL(e,x,x,0,0,i,s,y,i,w=[],u),k),i,k,u,s,r?w:k);break;default:NL(C,x,x,x,[""],k,0,s,k)}}c=d=f=0,m=v=1,y=C="",u=a;break;case 58:u=1+lL(C),f=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==yL())continue;switch(C+=tL(b),b*m){case 38:v=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(lL(C)-1)*v,v=1;break;case 64:45===kL()&&(C+=TL(wL())),h=kL(),d=u=lL(y=C+=LL(xL())),b++;break;case 45:45===p&&2==lL(C)&&(m=0)}}return o}function RL(e,t,n,r,i,o,a,s,l,c,d){for(var u=i-1,h=0===i?o:[""],f=cL(h),p=0,m=0,g=0;p<r;++p)for(var v=0,b=sL(e,u+1,u=eL(m=a[p])),y=e;v<f;++v)(y=rL(m>0?h[v]+" "+b:iL(b,/&\f/g,h[v])))&&(l[g++]=y);return vL(e,t,n,0===i?QP:s,l,c,d)}function DL(e,t,n){return vL(e,t,n,YP,tL(mL),sL(e,2,-2),0)}function BL(e,t,n,r){return vL(e,t,n,_P,sL(e,0,r),sL(e,r+1,-1),r)}function zL(e,t){for(var n="",r=cL(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function FL(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _P:return e.return=e.return||e.value;case YP:return"";case $P:return e.return=e.value+"{"+zL(e.children,r)+"}";case QP:e.value=e.props.join(",")}return lL(n=zL(e.children,r))?e.return=e.value+"{"+n+"}":""}function HL(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var qL=function(e,t,n){for(var r=0,i=0;r=i,i=kL(),38===r&&12===i&&(t[n]=1),!SL(i);)wL();return CL(e,pL)},UL=function(e,t){return ML(function(e,t){var n=-1,r=44;do{switch(SL(r)){case 0:38===r&&12===kL()&&(t[n]=1),e[n]+=qL(pL-1,t,n);break;case 2:e[n]+=TL(r);break;case 4:if(44===r){e[++n]=58===kL()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=tL(r)}}while(r=wL());return e}(EL(e),t))},VL=new WeakMap,XL=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||VL.get(n))&&!r){VL.set(e,!0);for(var i=[],o=UL(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},GL=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function WL(e,t){switch(function(e,t){return 45^aL(e,0)?(((t<<2^aL(e,0))<<2^aL(e,1))<<2^aL(e,2))<<2^aL(e,3):0}(e,t)){case 5103:return KP+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return KP+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return KP+e+ZP+e+JP+e+e;case 6828:case 4268:return KP+e+JP+e+e;case 6165:return KP+e+JP+"flex-"+e+e;case 5187:return KP+e+iL(e,/(\w+).+(:[^]+)/,KP+"box-$1$2"+JP+"flex-$1$2")+e;case 5443:return KP+e+JP+"flex-item-"+iL(e,/flex-|-self/,"")+e;case 4675:return KP+e+JP+"flex-line-pack"+iL(e,/align-content|flex-|-self/,"")+e;case 5548:return KP+e+JP+iL(e,"shrink","negative")+e;case 5292:return KP+e+JP+iL(e,"basis","preferred-size")+e;case 6060:return KP+"box-"+iL(e,"-grow","")+KP+e+JP+iL(e,"grow","positive")+e;case 4554:return KP+iL(e,/([^-])(transform)/g,"$1"+KP+"$2")+e;case 6187:return iL(iL(iL(e,/(zoom-|grab)/,KP+"$1"),/(image-set)/,KP+"$1"),e,"")+e;case 5495:case 3959:return iL(e,/(image-set\([^]*)/,KP+"$1$`$1");case 4968:return iL(iL(e,/(.+:)(flex-)?(.*)/,KP+"box-pack:$3"+JP+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+KP+e+e;case 4095:case 3583:case 4068:case 2532:return iL(e,/(.+)-inline(.+)/,KP+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lL(e)-1-t>6)switch(aL(e,t+1)){case 109:if(45!==aL(e,t+4))break;case 102:return iL(e,/(.+:)(.+)-([^]+)/,"$1"+KP+"$2-$3$1"+ZP+(108==aL(e,t+3)?"$3":"$2-$3"))+e;case 115:return~oL(e,"stretch")?WL(iL(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==aL(e,t+1))break;case 6444:switch(aL(e,lL(e)-3-(~oL(e,"!important")&&10))){case 107:return iL(e,":",":"+KP)+e;case 101:return iL(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+KP+(45===aL(e,14)?"inline-":"")+"box$3$1"+KP+"$2$3$1"+JP+"$2box$3")+e}break;case 5936:switch(aL(e,t+11)){case 114:return KP+e+JP+iL(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return KP+e+JP+iL(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return KP+e+JP+iL(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return KP+e+JP+e+e}return e}var JL,ZL,KL=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case _P:e.return=WL(e.value,e.length);break;case $P:return zL([bL(e,{value:iL(e.value,"@","@"+KP)})],r);case QP:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zL([bL(e,{props:[iL(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return zL([bL(e,{props:[iL(t,/:(plac\w+)/,":"+KP+"input-$1")]}),bL(e,{props:[iL(t,/:(plac\w+)/,":-moz-$1")]}),bL(e,{props:[iL(t,/:(plac\w+)/,JP+"input-$1")]})],r)}return""})}}],YL=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||KL,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,d,u,h=[FL,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=(c=[XL,GL].concat(o,h),d=cL(c),function(e,t,n,r){for(var i="",o=0;o<d;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,zL(IL(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new WP({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};function QL(){return QL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QL.apply(null,arguments)}!function(){if(ZL)return JL;ZL=1;var e=Al(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;JL=function e(t,r,i){if("string"!=typeof r){if(u){var h=d(r);h&&h!==u&&e(t,h,i)}var f=s(r);l&&(f=f.concat(l(r)));for(var p=o(t),m=o(r),g=0;g<f.length;++g){var v=f[g];if(!(n[v]||i&&i[v]||m&&m[v]||p&&p[v])){var b=c(r,v);try{a(t,v,b)}catch(y){}}}}return t}}();function _L(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var $L=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},eI=function(e,t,n){$L(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var tI={animationIterationCount:1,aspectRatio: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,scale: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},nI=/[A-Z]|^ms/g,rI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iI=function(e){return 45===e.charCodeAt(1)},oI=function(e){return null!=e&&"boolean"!=typeof e},aI=HL(function(e){return iI(e)?e:e.replace(nI,"-$&").toLowerCase()}),sI=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(rI,function(e,t,n){return cI={name:t,styles:n,next:cI},t})}return 1===tI[e]||iI(e)||"number"!=typeof t||0===t?t:t+"px"};function lI(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return cI={name:i.name,styles:i.styles,next:cI},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)cI={name:a.name,styles:a.styles,next:cI},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=lI(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":oI(s)&&(r+=aI(o)+":"+sI(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=lI(e,t,a);switch(o){case"animation":case"animationName":r+=aI(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)oI(a[c])&&(r+=aI(o)+":"+sI(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=cI,l=n(e);return cI=s,lI(e,t,l)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var cI,dI=/label:\s*([^\s;{]+)\s*(;|$)/g;function uI(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";cI=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=lI(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=lI(n,t,e[a]),r)i+=o[a]}dI.lastIndex=0;for(var s,l="";null!==(s=dI.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:cI}}var hI=!!E.useInsertionEffect&&E.useInsertionEffect||function(e){return e()},fI=E.createContext("undefined"!=typeof HTMLElement?YL({key:"css"}):null);fI.Provider;var pI,mI,gI=function(e){return n.forwardRef(function(t,r){var i=n.useContext(fI);return e(t,i,r)})},vI=E.createContext({}),bI={}.hasOwnProperty,yI="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wI=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $L(t,n,r),hI(function(){return eI(t,n,r)}),null},kI=gI(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[yI],o=[r],a="";"string"==typeof e.className?a=_L(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=uI(o,void 0,E.useContext(vI));a+=t.key+"-"+s.name;var l={};for(var c in e)bI.call(e,c)&&"css"!==c&&c!==yI&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),E.createElement(E.Fragment,null,E.createElement(wI,{cache:t,serialized:s,isStringTag:"string"==typeof i}),E.createElement(i,l))}),xI=function(e,t){var n=arguments;if(null==t||!bI.call(t,"css"))return E.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=kI,i[1]=function(e,t){var n={};for(var r in t)bI.call(t,r)&&(n[r]=t[r]);return n[yI]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return E.createElement.apply(null,i)};function CI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return uI(t)}pI=xI||(xI={}),mI||(mI=pI.JSX||(pI.JSX={}));var SI=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,EI=HL(function(e){return SI.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),MI=function(e){return"theme"!==e},TI=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?EI:MI},AI=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},jI=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $L(t,n,r),hI(function(){return eI(t,n,r)}),null},OI=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=AI(t,n,o),l=s||TI(a),c=!l("as");return function(){var d=arguments,u=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var h=d[0];u.push(h[0]);for(var f=d.length,p=1;p<f;p++)u.push(d[p],h[p])}var m=gI(function(e,t,n){var r=c&&e.as||a,o="",d=[],h=e;if(null==e.theme){for(var f in h={},e)h[f]=e[f];h.theme=E.useContext(vI)}"string"==typeof e.className?o=_L(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var p=uI(u.concat(d),t.registered,h);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?TI(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=o,n&&(g.ref=n),E.createElement(E.Fragment,null,E.createElement(jI,{cache:t,serialized:p,isStringTag:"string"==typeof r}),E.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,QL({},n,r,{shouldForwardProp:AI(m,r,!0)})).apply(void 0,u)},m}}.bind(null);["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){OI[e]=OI(e)});const PI={ROW:"data-row",CELL:"data-cell",ROOT:"data-root",COLUMN_ALIGN:"data-al",SCROLLED:"data-scrolled",SORTABLE:"data-sortable",RESIZER:"data-resizer",RESIZER_SIDE:"data-side",ROW_SELECTED:"data-sel",ROW_CHILD:"data-child",SORTED:"data-sorted",HEADER_CELL:"data-header",INNER:"data-inner",AUTOSIZE:"data-autosize",PANEL_SIDE:"data-side",HEADER_GRID:"data-header-grid",VIRTUAL_CONTAINER:"data-virtual",BASE:"data-base",HEADERS:"data-headers",HEADER_GROUP:"data-header-group"},LI="__checkbox__",II="__expand__",NI="__aggregation__",RI=n.createContext(null),DI=()=>n.useContext(RI);var BI;(e=>{e.parse=e=>{if(p.isNil(e))return NaN;if("number"==typeof e&&!isNaN(e))return e;const t="string"==typeof e?parseFloat(e):NaN;return isNaN(t)?NaN:t},e.isPositive=t=>(0,e.isNumber)(t)&&t>0,e.isNegative=t=>(0,e.isNumber)(t)&&t<0,e.getDynamic=(t,n)=>{const r=(0,e.parse)(t);return(0,e.isNumber)(r)?(0,e.isPositive)(r)?n?"negative":"positive":(0,e.isNegative)(r)?n?"positive":"negative":"neutral":null},e.isNumber=e=>"number"==typeof e&&!isNaN(e),e.format=(t,n={})=>{const{locale:r="en-US",invalidValue:i="n/a",style:o,currency:a,decimal:s,minimumFractionDigits:l,maximumFractionDigits:c,divide:d,short:u,...h}=n,f=(0,e.parse)(t);if(isNaN(f))return i;const p=new Intl.NumberFormat(r,{style:o,..."currency"===o?{currency:a||"USD",currencyDisplay:"symbol"}:{},minimumFractionDigits:l??(s?2:0),maximumFractionDigits:c??(s?2:0),notation:u?"compact":void 0,compactDisplay:u?"short":void 0,...h});try{return p.format(d?f/100:f)}catch{return i}},e.formatCurrency=(t,n)=>(0,e.format)(t,{style:"currency",...n}),e.formatPercents=(t,n)=>(0,e.format)(t,{style:"percent",...n}),e.dynamicTypesList=["positive","negative","neutral"];const t={currency:e.formatCurrency,number:e.format,percent:e.formatPercents};e.round=(e,t=-2,n="round")=>{if(e=Number(e),t%1!=0||Number.isNaN(e))return NaN;if(0===t)return Math[n](e);const[r,i=0]=e.toString().split("e"),o=Math[n](Number(`${r}e${Number(i)-t}`)),[a,s=0]=o.toString().split("e");return Number(`${a}e${+s+t}`)},e.formatByType=(e,n,r)=>t[e](n,r),e.getCurrencySymbol=(e,t="en-US")=>{const n=new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"symbol"}).formatToParts(1).find(e=>"currency"===e.type);return(null==n?void 0:n.value)||""}})(BI||(BI={}));const zI=e=>({render:(t,n)=>{const r=new Date(n);return xa(r)?ls(r,(null==e?void 0:e.format)??"MMM dd, yyyy"):null},exportSettings:{value:(t,n)=>{const r=new Date(n);return xa(r)?ls(r,(null==e?void 0:e.format)??"yyyy-MM-dd"):null}}}),FI=(e={decimal:!0})=>({align:"right",render:(t,n)=>BI.format(n,e),exportSettings:{value:(t,n)=>p.round(BI.parse(n),e.decimal?2:0).toString()}}),HI=(e={decimal:!0})=>({align:"right",render:(t,n)=>n?"x"+BI.format(n,e):"",exportSettings:{value:(e,t)=>p.round(BI.parse(t),2).toString()}}),qI=(e={decimal:!0})=>({align:"right",render:(t,n)=>BI.formatPercents(n,e),exportSettings:{value:(t,n)=>p.round(BI.parse(n),e.decimal?2:0).toString()}}),UI=e=>({align:"right",render:(t,n)=>BI.formatCurrency(n,e),exportSettings:{value:(e,t)=>p.round(BI.parse(t),2).toString()}}),VI=e=>{let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return("0000000"+(t>>>0).toString(16)).slice(-8)},XI=e=>{let t={};return"object"==typeof e?"number"===e.type?t=FI(e):"currency"===e.type?t=UI(e):"percent"===e.type?t=qI(e):"ratio"===e.type?t=HI(e):"date"===e.type&&(t=zI(e)):"number"===e?t=FI():"currency"===e?t=UI():"percent"===e?t=qI():"ratio"===e?t=HI():"date"===e&&(t=zI()),t},GI=e=>e===II||e===LI;const WI={resizable:!0,exportable:!0,sortable:!0,management:{show:!0}},JI=(e,t)=>({...WI,...XI((null==t?void 0:t.type)??e.type),...p.assignWith({},e,t,(e,t)=>void 0===t?e:t),computedWidth:null==t?void 0:t.computedWidth,setWidth:null==t?void 0:t.setWidth,get finalWidth(){return this.setWidth??this.computedWidth},get id(){return VI(this.field)}}),ZI=e=>({gridTemplateColumns:e.map(e=>`var(--col-${VI(e.field)})`).join(" "),"--col-count":e.length}),KI=({expanded:e,api:n,pinned:r})=>({id:II,field:II,width:40,headerStyle:{padding:0},cellStyle:{padding:0},pinned:r?"left":void 0,align:"center",exportable:!1,sortable:!1,resizable:!1,header:null,render:r=>{if(!Array.isArray(r.__children))return t.jsx(t.Fragment,{});const i=null==e?void 0:e.includes(r.id);return t.jsx(o.ActionIcon,{onClick:()=>n.toggleRowExpand(r.id),size:"xs",variant:"subtle",children:i?t.jsx(a.IconChevronDown,{size:16}):t.jsx(a.IconChevronRight,{size:16})})}}),YI=({selected:e,api:n,pinned:r})=>({id:LI,field:LI,width:40,headerStyle:{padding:0},cellStyle:{padding:0},pinned:r?"left":void 0,align:"center",exportable:!1,sortable:!1,resizable:!1,header:t.jsx(QI,{}),render:r=>{const i=e.includes(r.id);return t.jsx(o.Checkbox,{size:"xs",checked:i,onChange:()=>{i?n.unselectRow(r.id):n.selectRow(r.id)}})}}),QI=()=>{const{useStore:e,api:n}=DI(),{allSelected:r,hasSelected:i}=e(fN);return t.jsx(o.Checkbox,{size:"xs",checked:i,indeterminate:i&&!r,onChange:()=>{i?n.unselectVisibleRows():n.selectVisibleRows()}})},_I=(e,n,r)=>e.map(e=>{const{aggregation:i,field:o,type:a}=e;return{...e,render:()=>{var e;if(!i)return null;if(i.render)return t.jsx(eN,{children:null==(e=i.render)?void 0:e.call(i,r)});const s=p.get(n,o),l=XI(a);return l.render?t.jsx(eN,{children:l.render(n,s)}):"object"==typeof s?null:t.jsx(eN,{children:s})}}}),$I=(e,t)=>{const n=e.aggregation;if(!n)return null;if(n.render)return null;const r=t.map(t=>p.get(t,e.field)).map(BI.parse).filter(e=>!isNaN(e));if("sum"===n.type)return r.reduce((e,t)=>e+t,0);if("avg"===n.type)return r.reduce((e,t)=>e+t,0)/r.length;if("min"===n.type)return Math.min(...r);if("max"===n.type)return Math.max(...r);if("count"===n.type){return t.map(t=>p.get(t,e.field)).filter(e=>!p.isNil(e)).length}return null},eN=OI.div``,tN=[],nN=ra([e=>e.props.rows,e=>e.pinnedTop,e=>e.pinnedBottom],(e,t,n)=>{const r=[],i=[],o=[];for(const a of e)t.includes(a.id)?r.push(a):n.includes(a.id)?i.push(a):o.push(a);return{topRows:r,bottomRows:i,baseRows:o}}),rN=ra([nN,e=>e.search,e=>e.props.searching],({baseRows:e},t,n)=>{if(!n)return e;const r=t.trim().toLowerCase();if(!r)return e;return e.map(e=>({row:e,searchString:Object.values(e).filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase())})).filter(({searchString:e})=>e.some(e=>e.includes(r))).map(e=>e.row)}),iN=ra([rN,e=>e.props.sorting,e=>e.sort],(e,t,n)=>t&&n?e.toSorted((e,t)=>{const r="asc"===n.sort?e:t,i="asc"===n.sort?t:e,o=p.get(r,n.field),a=p.get(i,n.field);if(o===a)return 0;const s="asc"===n.sort?1:-1;return null==o&&null!=a?s:null==a&&null!=o?-s:"number"==typeof o&&"number"==typeof a?o-a:"bigint"==typeof o&&"bigint"==typeof a?Number(o-a):"boolean"==typeof o&&"boolean"==typeof a?Number(o)-Number(a):"string"==typeof o&&"string"==typeof a?o.localeCompare(a):"object"==typeof o&&"object"==typeof a?o instanceof Date&&a instanceof Date?o.getTime()-a.getTime():JSON.stringify(o).localeCompare(JSON.stringify(a)):0}):e),oN=ra([iN,e=>e.props.pagination,e=>e.expanded,e=>e.pageSize,e=>e.page],(e,t,n,r,i)=>{const o=p.chunk(e,r),a=t?o[i]||tN:e;const s={};return a.forEach(e=>{s[e.id]={main:!0}}),{rows:function e(t){return t.flatMap(t=>{const r=[t],i=t.__children;return n.includes(t.id)&&Array.isArray(i)&&i.length>0&&r.push(...e(i)),r})}(a),meta:s}}),aN=ra([e=>e.props.rowCount,iN,e=>e.pageSize],(e,t,n)=>{const r=e??t.length;return{pageCount:Math.ceil(r/n),rowCount:r}}),sN=ra([e=>e.props.selection,e=>e.selected,e=>e.props.expanding,e=>e.expanded,e=>e.props.columns,e=>e.columnsState,e=>e.api,e=>e.columnsOrder],(e,t,n,r,i,o,a,s)=>{const l=i.some(e=>"left"===e.pinned),c=[...new Set(s.filter(e=>!GI(e)))].map(e=>i.find(t=>t.field===e&&!t.ignoreOrder)).filter(Boolean),d=i.filter(e=>!c.find(t=>t.field===e.field));return[...e?[YI({selected:t,pinned:l,api:a})]:[],...n?[KI({expanded:r,pinned:l,api:a})]:[],...c,...d].map(e=>JI(e,o[e.field]))}),lN=ra([sN],e=>{const t=e.filter(e=>!e.hidden);return t.every(e=>GI(e.field))?[]:t}),cN=ra([lN],e=>({left:e.filter(e=>"left"===e.pinned),base:e.filter(e=>!e.pinned),right:e.filter(e=>"right"===e.pinned)})),dN=ra([sN],e=>e.reduce((e,t)=>(e[t.field]=t,e[VI(t.field)]=t,e),{})),uN=ra([lN,e=>e.props.rowHeight,e=>e.props.headerHeight],(e,t,n)=>({...e.reduce((e,t)=>("number"==typeof t.finalWidth&&(e[`--col-${t.id}`]=t.finalWidth+"px"),e),{}),"--left-cols-width":`${e.filter(e=>"left"===e.pinned).reduce((e,t)=>e+(t.finalWidth||0),0)}px`,"--base-cols-width":`${e.filter(e=>!e.pinned).reduce((e,t)=>e+(t.finalWidth||0),0)}px`,"--right-cols-width":`${e.filter(e=>"right"===e.pinned).reduce((e,t)=>e+(t.finalWidth||0),0)}px`,"--loader-offset":`${n}px`,"--row-height":`${t}px`,"--header-height":`${n}px`})),hN=ra([oN,lN,e=>e.props.loading,e=>e.search],({rows:e},t,n,r)=>({zeroRows:!n&&!e.length,zeroColumns:!t.length,hasSearch:!!r.trim()})),fN=ra([oN,e=>e.selected],({rows:e},t)=>({allSelected:e.every(e=>t.includes(e.id)),hasSelected:e.some(e=>t.includes(e.id))})),pN=ra([oN,cN],({rows:e},{base:t,left:n,right:r})=>{const i={id:NI};for(const o of n)p.set(i,o.field,$I(o,e));for(const o of t)p.set(i,o.field,$I(o,e));for(const o of r)p.set(i,o.field,$I(o,e));return{aggregatedRow:i,left:_I(n,i,e),base:_I(t,i,e),right:_I(r,i,e),get hasAggregation(){return this.left.some(e=>e.aggregation)||this.base.some(e=>e.aggregation)||this.right.some(e=>e.aggregation)}}}),mN=({column:e,sort:r,style:i})=>{const s=n.useRef(null),l=n.useMemo(()=>e.resizable?t.jsx(vN,{[PI.RESIZER_SIDE]:e.pinned,[PI.RESIZER]:VI(e.field),children:t.jsx(gN,{children:t.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",className:"resizeBtn",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.5 4.625C6.12132 4.625 6.625 4.12132 6.625 3.5C6.625 2.87868 6.12132 2.375 5.5 2.375C4.87868 2.375 4.375 2.87868 4.375 3.5C4.375 4.12132 4.87868 4.625 5.5 4.625ZM9.5 4.625C10.1213 4.625 10.625 4.12132 10.625 3.5C10.625 2.87868 10.1213 2.375 9.5 2.375C8.87868 2.375 8.375 2.87868 8.375 3.5C8.375 4.12132 8.87868 4.625 9.5 4.625ZM10.625 7.5C10.625 8.12132 10.1213 8.625 9.5 8.625C8.87868 8.625 8.375 8.12132 8.375 7.5C8.375 6.87868 8.87868 6.375 9.5 6.375C10.1213 6.375 10.625 6.87868 10.625 7.5ZM5.5 8.625C6.12132 8.625 6.625 8.12132 6.625 7.5C6.625 6.87868 6.12132 6.375 5.5 6.375C4.87868 6.375 4.375 6.87868 4.375 7.5C4.375 8.12132 4.87868 8.625 5.5 8.625ZM10.625 11.5C10.625 12.1213 10.1213 12.625 9.5 12.625C8.87868 12.625 8.375 12.1213 8.375 11.5C8.375 10.8787 8.87868 10.375 9.5 10.375C10.1213 10.375 10.625 10.8787 10.625 11.5ZM5.5 12.625C6.12132 12.625 6.625 12.1213 6.625 11.5C6.625 10.8787 6.12132 10.375 5.5 10.375C4.87868 10.375 4.375 10.8787 4.375 11.5C4.375 12.1213 4.87868 12.625 5.5 12.625Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})})}):null,[e.field,e.pinned,e.resizable]),c=e.sortField||e.field,d=(null==r?void 0:r.field)===c,u=n.useMemo(()=>e.sortable&&d?t.jsx(o.ActionIcon,{variant:"subtle",size:"sm",color:"gray",style:{flexShrink:0},children:"desc"===(null==r?void 0:r.sort)?t.jsx(a.IconSortDescending,{size:16}):t.jsx(a.IconSortAscending,{size:16})}):null,[e.sortable,null==r?void 0:r.sort,d]);return t.jsxs(bN,{[PI.COLUMN_ALIGN]:e.align,[PI.SORTABLE]:e.sortable,[PI.SORTED]:d,[PI.HEADER_CELL]:VI(e.field),style:{...e.headerStyle,...i},ref:s,children:["right"===e.pinned&&l,"right"===e.align&&u,t.jsx(yN,{style:e.headerContentStyle,children:e.header}),"right"!==e.align&&u,"right"!==e.pinned&&l]})},gN=OI.div`
|
|
6
|
+
`,bj=Object.assign(mj,{ColorCircle:gj}),yj={initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:0},transition:{duration:.3,ease:"easeOut"}};var wj,kj={exports:{}};var xj=(wj||(wj=1,function(e){e.exports=function(){var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",s="day",l="week",c="month",d="quarter",u="year",h="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),o=n-i<0,a=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:l,d:s,D:h,h:a,m:o,s:i,ms:r,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=g;var k="$isDayjsObject",x=function(e){return e instanceof M||!(!e||!e[k])},C=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=t.split("-");if(!i&&a.length>1)return e(a[0])}else{var s=t.name;w[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},S=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new M(n)},E=b;E.l=C,E.i=x,E.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var M=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[k]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return!(this.$d.toString()===f)},v.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return S(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<S(e)},v.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!E.u(t)||t,d=E.p(e),f=function(e,t){var i=E.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return E.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case u:return r?f(1,0):f(31,11);case c:return r?f(1,g):f(0,g+1);case l:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return f(r?v-w:v+(6-w),g);case s:case h:return p(b+"Hours",0);case a:return p(b+"Minutes",1);case o:return p(b+"Seconds",2);case i:return p(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=E.p(e),d="set"+(this.$u?"UTC":""),f=(n={},n[s]=d+"Date",n[h]=d+"Date",n[c]=d+"Month",n[u]=d+"FullYear",n[a]=d+"Hours",n[o]=d+"Minutes",n[i]=d+"Seconds",n[r]=d+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===c||l===u){var m=this.clone().set(h,1);m.$d[f](p),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[E.p(e)]()},v.add=function(r,d){var h,f=this;r=Number(r);var p=E.p(d),m=function(e){var t=S(f);return E.w(t.date(t.date()+Math.round(e*r)),f)};if(p===c)return this.set(c,this.$M+r);if(p===u)return this.set(u,this.$y+r);if(p===s)return m(1);if(p===l)return m(7);var g=(h={},h[o]=t,h[a]=n,h[i]=e,h)[p]||1,v=this.$d.getTime()+r*g;return E.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=E.z(this),o=this.$H,a=this.$m,s=this.$M,l=n.weekdays,c=n.months,d=n.meridiem,u=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},h=function(e){return E.s(o%12||12,e,"0")},p=d||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return u(n.monthsShort,s,c,3);case"MMMM":return u(c,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return u(n.weekdaysMin,t.$W,l,2);case"ddd":return u(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return E.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,f){var p,m=this,g=E.p(h),v=S(r),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,w=function(){return E.m(m,v)};switch(g){case u:p=w()/12;break;case c:p=w();break;case d:p=w()/3;break;case l:p=(y-b)/6048e5;break;case s:p=(y-b)/864e5;break;case a:p=y/n;break;case o:p=y/t;break;case i:p=y/e;break;default:p=y}return f?p:E.a(p)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return w[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),T=M.prototype;return S.prototype=T,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",s],["$M",c],["$y",u],["$D",h]].forEach(function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),S.extend=function(e,t){return e.$i||(e(t,M,S),e.$i=!0),S},S.locale=C,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=w[y],S.Ls=w,S.p={},S}()}(kj)),kj.exports);const Cj=sl(xj),Sj={filterPill:"_filterPill_1t38n_1",filterPillLabel:"_filterPillLabel_1t38n_9"},Ej=({setSelectedFilter:e,selectedFilter:r})=>{const{t:s,i18n:l}=i.useTranslation("searchPage"),[c,d]=n.useState([null,null]),[u,h]=n.useState("updatedAt"),f=()=>{e(e=>({...e,range:null})),d([null,null])},p=[{icon:t.jsx(a.IconCalendarEvent,{}),text:s("searchModal.filters.date.today"),range:{createdAtFrom:Cj().startOf("day").valueOf(),createdAtTo:Cj().endOf("day").valueOf()}},{icon:t.jsx(a.IconCalendarEvent,{}),text:s("searchModal.filters.date.last7day"),range:{createdAtFrom:Cj().subtract(7,"days").startOf("day").valueOf(),createdAtTo:Cj().endOf("day").valueOf()}},{icon:t.jsx(a.IconCalendarEvent,{}),text:s("searchModal.filters.date.last30day"),range:{createdAtFrom:Cj().subtract(30,"days").startOf("day").valueOf(),createdAtTo:Cj().endOf("day").valueOf()}}];return t.jsxs(o.Popover,{transitionProps:{duration:150,transition:"fade-down"},withArrow:!0,position:"bottom-start",radius:"md",children:[t.jsx(o.Popover.Target,{children:t.jsxs(o.Pill,{classNames:{root:Sj.filterPill,label:Sj.filterPillLabel},styles:{root:{background:Object.keys((null==r?void 0:r.range)||{}).length?"#228BE61F":"transparent"}},radius:"lg",children:[t.jsx(a.IconCalendarEvent,{size:16}),c[0]&&c[1]?`${Cj(c[0]).format("DD MMM YYYY")} — ${Cj(c[1]).format("DD MMM YYYY")}`:s("searchModal.filters.date.title"),t.jsx(a.IconChevronDown,{size:16})]})}),t.jsx(o.Popover.Dropdown,{p:4,w:270,children:t.jsxs(o.Flex,{gap:0,direction:"column",justify:"start",children:[t.jsxs(o.Flex,{justify:"space-between",w:"100%",children:[t.jsx(o.Select,{comboboxProps:{withinPortal:!1},w:150,classNames:{input:Sj.selectInput},styles:{root:{paddingInline:0,paddingLeft:3},input:{color:"gray",fontSize:12}},defaultValue:u,variant:"unstyled",withCheckIcon:!1,value:u,leftSection:t.jsx(a.IconClockEdit,{size:12}),rightSection:t.jsx(a.IconChevronDown,{size:12}),fz:"xs",px:12,c:"dimmed",onChange:e=>h(t=>e||t),data:[{value:"createdAt",label:s("searchModal.filters.date.created")},{value:"updatedAt",label:s("searchModal.filters.date.edited")}]}),t.jsx(o.Button,{px:12,w:"30%",variant:"subtle",style:{alignSelf:"flex-start"},onClick:f,children:s("clear")})]}),t.jsx(o.Divider,{w:"100%"}),p.map(n=>t.jsx(o.Button,{h:32,fullWidth:!0,leftSection:n.icon,variant:"subtle",fz:"sm",color:"system",onClick:()=>(t=>{var n,i;if((null==(n=null==r?void 0:r.range)?void 0:n.createdAtFrom)===t.createdAtFrom&&(null==(i=null==r?void 0:r.range)?void 0:i.createdAtTo)===t.createdAtTo)f();else{const n=t.createdAtFrom?new window.Date(t.createdAtFrom):null,r=t.createdAtTo?new window.Date(t.createdAtTo):null;d([n,r]),e(e=>({...e,range:{createdAtFrom:t.createdAtFrom||0,createdAtTo:t.createdAtTo||0}}))}})(n.range),styles:{section:{width:16,height:16},inner:{justifyContent:"flex-start"}},children:n.text},n.text)),t.jsx(o.Divider,{w:"100%"}),t.jsx(y.DatePicker,{pt:16,type:"range",value:c,locale:l.language,onChange:t=>{d(t),e(e=>{var n,r;return{...e,range:{createdAtFrom:(null==(n=t[0])?void 0:n.getTime())||0,createdAtTo:(null==(r=t[1])?void 0:r.getTime())||0}}})},allowSingleDateInRange:!0})]})})]})},Mj=({setSelectedFilter:e,selectedFilter:r})=>{var s;const{t:c}=i.useTranslation("searchPage"),[d,{close:u,open:h}]=l.useDisclosure(!1),f=n.useRef(null),p=[{value:"name",text:c("searchModal.filters.sort.matches"),order:"desc"},{value:"createdAt",text:c("searchModal.filters.sort.createdNew"),order:"desc"},{value:"createdAt",text:c("searchModal.filters.sort.createdOld"),order:"asc"},{value:"updatedAt",text:c("searchModal.filters.sort.editedNew"),order:"desc"},{value:"updatedAt",text:c("searchModal.filters.sort.editedOld"),order:"asc"}],m=null==(s=null==r?void 0:r.sort)?void 0:s[0],g=m?Object.keys(m)[0]:null,v=(null==m?void 0:m[g||""])??null,b=p.find(e=>e.value===g&&e.order===(null==v?void 0:v.order));return t.jsx("div",{ref:f,style:{height:22},children:t.jsxs(o.Popover,{clickOutsideEvents:["mouseup","touchend"],withArrow:!0,position:"bottom-start",radius:"md",opened:d,onClose:u,transitionProps:{duration:150,transition:"fade-down"},children:[t.jsx(o.Popover.Target,{children:t.jsxs(o.Pill,{onClick:d?u:h,classNames:{root:Sj.filterPill,label:Sj.filterPillLabel},styles:{root:{background:b?"#228BE61F":"transparent"}},radius:"lg",children:[t.jsx(a.IconArrowsSort,{size:14}),b?b.text:c("searchModal.filters.sort.title"),t.jsx(a.IconChevronDown,{size:16})]})}),t.jsx(o.Popover.Dropdown,{p:4,children:t.jsx(o.Flex,{direction:"column",justify:"start",children:p.map(n=>t.jsx(o.Button,{onClick:()=>(t=>{u(),e(e=>{var n;const r=null==(n=e.sort)?void 0:n[0],i=r?Object.keys(r)[0]:null,o=i?r[i].order:null;return i===t.value&&o===t.order?{...e,sort:[]}:{...e,sort:[{[t.value]:{order:t.order}}]}})})(n),h:32,fullWidth:!0,fz:"sm",variant:"subtle",color:"system",styles:{inner:{justifyContent:"flex-start"}},children:n.text},n.text))})})]})})},Tj=({setSelectedFilter:e,selectedFilter:r,allowedTypes:s})=>{var c,d;const{t:u}=i.useTranslation("searchPage"),h=n.useRef(null),[f,{close:p,open:m}]=l.useDisclosure(!1);n.useEffect(()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&p()};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p]);const g=[{value:"PAGE",text:u("searchModal.filters.type.page"),icon:t.jsx(a.IconFileText,{size:16})},{value:"PROJECT",text:u("searchModal.filters.type.project"),icon:t.jsx(a.IconSquareCheck,{size:16})},{value:"FLOW",text:u("searchModal.filters.type.flow"),icon:t.jsx(a.IconGitMerge,{size:16})},{value:"FORM",text:u("searchModal.filters.type.forms"),icon:t.jsx(a.IconForms,{size:16})},{value:"FOLDER",text:u("searchModal.filters.type.cloud"),icon:t.jsx(a.IconCloudComputing,{size:16})}];return t.jsx("div",{ref:h,style:{height:22},children:t.jsxs(o.Popover,{withArrow:!0,position:"bottom-start",radius:"md",transitionProps:{duration:150,transition:"fade-down"},opened:f,withinPortal:!1,onClose:p,closeOnClickOutside:!0,children:[t.jsx(o.Popover.Target,{children:t.jsxs(o.Pill,{onClick:f?p:m,classNames:{root:Sj.filterPill,label:Sj.filterPillLabel},styles:{root:{background:(null==r?void 0:r.type)?"#228BE61F":"transparent"}},children:[(null==r?void 0:r.type)?null==(c=g.find(e=>e.value===r.type))?void 0:c.icon:t.jsx(a.IconFileUnknown,{size:16}),(null==r?void 0:r.type)?null==(d=g.find(e=>e.value===r.type))?void 0:d.text:u("searchModal.filters.type.title"),t.jsx(a.IconChevronDown,{size:16})]})}),t.jsx(o.Popover.Dropdown,{p:4,children:t.jsxs(o.Flex,{direction:"column",justify:"start",gap:0,children:[t.jsx(o.FocusTrap.InitialFocus,{}),g.filter(e=>null==s?void 0:s.includes(e.value)).map(n=>t.jsx(o.FocusTrap,{active:!0,children:t.jsx(o.Button,{onClick:t=>{var i;t.stopPropagation(),t.preventDefault(),i=n.value,p(),(null==r?void 0:r.type)!==i?e(e=>({...e,type:i})):e(e=>({...e,type:r.type}))},h:32,fullWidth:!0,fz:"sm",variant:"subtle",color:"system",leftSection:n.icon,styles:{inner:{justifyContent:"flex-start"}},children:n.text},n.text)}))]})})]})})},Aj=ot(()=>({opened:!1})),jj=()=>{Aj.setState({opened:!1})},Oj=()=>{const{t:e}=i.useTranslation("searchPage"),n=[{symbol:'" "',description:e("searchModal.help.exactPhrase"),example:'"exact phrase"'},{symbol:"*",description:e("searchModal.help.wildcard"),example:"report*",w:20},{symbol:"?",description:e("searchModal.help.singleCharacter"),example:"file_?",w:20},{symbol:"AND",description:e("searchModal.help.andOperator"),example:"task AND report"},{symbol:"+",description:e("searchModal.help.plusOperator"),example:"task +report",w:20},{symbol:"OR",description:e("searchModal.help.orOperator"),example:"task OR report",w:27},{symbol:"/",description:e("searchModal.help.slashOperator"),example:"task /report",w:20},{symbol:"NOT",description:e("searchModal.help.notOperator"),example:"task NOT report"},{symbol:"-",description:e("searchModal.help.minusOperator"),example:"draft -report",w:20},{symbol:"( )",description:e("searchModal.help.parentheses"),example:"(task OR project) AND report"}];return t.jsxs(o.Stack,{gap:"sm",children:[t.jsx(o.Text,{size:"xs",c:"dimmed",children:e("searchModal.help.description")}),t.jsx(o.Stack,{gap:0,pb:12,px:8,children:n.map((e,n)=>t.jsxs(o.Group,{h:48,children:[t.jsx(Tt,{bbw:3,br:6,miw:e.w,fz:12,value:e.symbol,c:"system"}),t.jsx(o.Text,{size:"sm",style:{flex:1},children:e.description}),t.jsx(o.Text,{size:"xs",children:e.example})]},n))})]})},Pj=n.memo(()=>{const{t:e}=i.useTranslation("searchPage"),n=Aj(e=>e.opened);return t.jsx(o.Modal,{opened:n,title:e("searchModal.help.title"),onClose:jj,size:531,radius:"md",centered:!0,styles:{title:{fontSize:14},header:{fontSize:14,padding:"0px 12px 0px 12px"},body:{padding:"0px 12px 0px 12px"}},children:t.jsx(Oj,{})})}),Lj=(e,t)=>{if(!t||!e)return!1;const n=Ij(t);return(!((()=>{if("undefined"==typeof navigator||!navigator.userAgent)return!1;const e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")})()||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes("firefox"))||"webm"!==n)&&(e.startsWith("video")||"application/octet-stream"===e&&("mp4"===n||"mov"===n||"webm"===n||"ogv"===n)||"video/quicktime"===e)},Ij=e=>{var t;return null==(t=e.split(".").pop())?void 0:t.toLowerCase()},Nj=(e,t=2)=>{if(!+e)return"0 Bytes";const n=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,r)).toFixed(n))} ${["Bytes","KB","MB","GB"][r]}`},Rj={logo:"_logo_flxan_1",shadow:"_shadow_flxan_13"},Dj=({c:e})=>{const n=zt();return t.jsxs(o.Box,{className:Rj.wrapper,children:[t.jsx("div",{className:Rj.logo,children:t.jsx(Ft,{isLink:!1,c:e||(n?"white":"black"),minified:!0})}),t.jsx("div",{className:Rj.shadow})]})};var Bj,zj;var Fj=function(){if(zj)return Bj;function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}zj=1;var t=e(n);function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==al?al:"undefined"!=typeof self?self:{},c={};s=c,function(){var e="undefined"!=typeof window?window:l,t={};for(var n in function(e,t,n){var r;function i(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var o="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e},a=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var r=0;r<n.length;++r){var i=n[r];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{for(var n=a,r=e.split("."),i=0;i<r.length-1;i++){var s=r[i];if(!(s in n))break e;n=n[s]}(s=t(i=n[r=r[r.length-1]]))!=i&&null!=s&&o(n,r,{configurable:!0,writable:!0,value:s})}}function l(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function c(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:i(e)}}function d(e){if(!(e instanceof Array)){e=c(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}s("Symbol",function(e){function t(e,t){this.g=e,o(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0;return function e(i){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(i||"")+"_"+r++,i)}}),s("Symbol.iterator",function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var r=a[t[n]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&o(r.prototype,e,{configurable:!0,writable:!0,value:function(){return l(i(this))}})}return e});var u,h="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)u=Object.setPrototypeOf;else{var f;e:{var p={};try{p.__proto__={a:!0},f=p.a;break e}catch(Dy){}f=!1}u=f?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var m=u;function g(e,t){if(e.prototype=h(t.prototype),e.prototype.constructor=e,m)m(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var r=Object.getOwnPropertyDescriptor(t,n);r&&Object.defineProperty(e,n,r)}else e[n]=t[n];e.Wi=t.prototype}function v(){this.B=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.s=0,this.G=this.i=null}function b(e){if(e.B)throw new TypeError("Generator is already running");e.B=!0}function y(e,t){e.i={ef:t,qf:!0},e.g=e.s||e.j}function w(e,t,n){return e.g=n,{value:t}}function k(e){e.g=0}function x(e,t,n){e.s=t,null!=n&&(e.j=n)}function C(e){e.s=0,e.j=2}function S(e,t,n){e.g=t,e.s=n||0}function E(e,t){e.s=t||0;var n=e.i.ef;return e.i=null,n}function M(e){e.G=[e.i],e.s=0,e.j=0}function T(e,t){var n=e.G.splice(0)[0];(n=e.i=e.i||n)?n.qf?e.g=e.s||e.j:null!=n.D&&e.j<n.D?(e.g=n.D,e.i=null):e.g=e.j:e.g=t}function A(e){this.g=new v,this.h=e}function j(e,t,n,r){try{var i=t.call(e.g.l,n);if(!(i instanceof Object))throw new TypeError("Iterator result "+i+" is not an object");if(!i.done)return e.g.B=!1,i;var o=i.value}catch(a){return e.g.l=null,y(e.g,a),O(e)}return e.g.l=null,r.call(e.g,o),O(e)}function O(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.B=!1,{value:t.value,done:!1}}catch(n){e.g.h=void 0,y(e.g,n)}if(e.g.B=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.qf)throw t.ef;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function P(e){this.next=function(t){return b(e.g),e.g.l?t=j(e,e.g.l.next,t,e.g.C):(e.g.C(t),t=O(e)),t},this.throw=function(t){return b(e.g),e.g.l?t=j(e,e.g.l.throw,t,e.g.C):(y(e.g,t),t=O(e)),t},this.return=function(t){return function(e,t){b(e.g);var n=e.g.l;return n?j(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),O(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function L(e,t){var n=new P(new A(t));return m&&e.prototype&&m(n,e.prototype),n}function I(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise(function(r,i){!function e(o){o.done?r(o.value):Promise.resolve(o.value).then(t,n).then(e,i)}(e.next())})}(new P(new A(e)))}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function R(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}function D(e,t,n){e instanceof String&&(e=String(e));for(var r=e.length,i=0;i<r;i++){var o=e[i];if(t.call(n,o,i,e))return{wa:i,v:o}}return{wa:-1,v:void 0}}function B(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}v.prototype.C=function(e){this.h=e},v.prototype.return=function(e){this.i={return:e},this.g=this.j},v.prototype.D=function(e){this.g=e},s("Promise",function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.B=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(n){t.reject(n)}}function n(){this.g=null}function r(e){return e instanceof t?e:new t(function(t){t(e)})}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i(function(){t.l()})}this.g.push(e)};var i=a.setTimeout;n.prototype.i=function(e){i(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(r){this.j(r)}}}this.g=null},n.prototype.j=function(e){this.i(function(){throw e})},t.prototype.j=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.L),reject:e(this.l)}},t.prototype.L=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.P(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.J(e):this.s(e)}},t.prototype.J=function(e){var t=void 0;try{t=e.then}catch(n){return void this.l(n)}"function"==typeof t?this.S(t,e):this.s(e)},t.prototype.l=function(e){this.C(2,e)},t.prototype.s=function(e){this.C(1,e)},t.prototype.C=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.M(),this.G()},t.prototype.M=function(){var e=this;i(function(){if(e.I()){var t=a.console;void 0!==t&&t.error(e.i)}},1)},t.prototype.I=function(){if(this.B)return!1;var e=a.CustomEvent,t=a.Event,n=a.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=a.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.G=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)o.h(this.g[e]);this.g=null}};var o=new n;return t.prototype.P=function(e){var t=this.j();e.ld(t.resolve,t.reject)},t.prototype.S=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(r){n.reject(r)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(n){o(n)}}:t}var i,o,a=new t(function(e,t){i=e,o=t});return this.ld(r(e,i),r(n,o)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.ld=function(e,t){function n(){switch(r.h){case 1:e(r.i);break;case 2:t(r.i);break;default:throw Error("Unexpected state: "+r.h)}}var r=this;null==this.g?o.h(n):this.g.push(n),this.B=!0},t.resolve=r,t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var i=c(e),o=i.next();!o.done;o=i.next())r(o.value).ld(t,n)})},t.all=function(e){var n=c(e),i=n.next();return i.done?r([]):new t(function(e,t){function o(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).ld(o(a.length-1),t),i=n.next()}while(!i.done)})},t}),s("WeakMap",function(e){function t(e){if(this.g=(l+=Math.random()+1).toString(),e){e=c(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function r(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function i(e){if(!N(e,s)){var t=new n;o(e,s,{value:t})}}function a(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&i(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}),n=Object.seal({}),r=new e([[t,2],[n,3]]);return 2==r.get(t)&&3==r.get(n)&&(r.delete(t),r.set(n,4),!r.has(t)&&4==r.get(n))}catch(i){return!1}}())return e;var s="$jscomp_hidden_"+Math.random();a("freeze"),a("preventExtensions"),a("seal");var l=0;return t.prototype.set=function(e,t){if(!r(e))throw Error("Invalid WeakMap key");if(i(e),!N(e,s))throw Error("WeakMap key fail: "+e);return e[s][this.g]=t,this},t.prototype.get=function(e){return r(e)&&N(e,s)?e[s][this.g]:void 0},t.prototype.has=function(e){return r(e)&&N(e,s)&&N(e[s],this.g)},t.prototype.delete=function(e){return!!(r(e)&&N(e,s)&&N(e[s],this.g))&&delete e[s][this.g]},t}),s("Map",function(e){function t(){var e={};return e.wb=e.next=e.head=e}function n(e,t){var n=e.g;return l(function(){if(n){for(;n.head!=e.g;)n=n.wb;for(;n.next!=n.head;)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}})}function r(e,t){var n=t&&typeof t;"object"==n||"function"==n?o.has(t)?n=o.get(t):(n=""+ ++a,o.set(t,n)):n="p_"+t;var r=e.h[n];if(r&&N(e.h,n))for(var i=0;i<r.length;i++){var s=r[i];if(t!=t&&s.key!=s.key||t===s.key)return{id:n,list:r,index:i,Ea:s}}return{id:n,list:r,index:-1,Ea:void 0}}function i(e){if(this.h={},this.g=t(),this.size=0,e){e=c(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&"s"==i.value[1]&&!((i=r.next()).done||4!=i.value[0].x||"t"!=i.value[1]||!r.next().done)}catch(o){return!1}}())return e;var o=new WeakMap;i.prototype.set=function(e,t){var n=r(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.Ea?n.Ea.value=t:(n.Ea={next:this.g,wb:this.g.wb,head:this.g,key:e,value:t},n.list.push(n.Ea),this.g.wb.next=n.Ea,this.g.wb=n.Ea,this.size++),this},i.prototype.delete=function(e){return!(!(e=r(this,e)).Ea||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.Ea.wb.next=e.Ea.next,e.Ea.next.wb=e.Ea.wb,e.Ea.head=null,this.size--,0))},i.prototype.clear=function(){this.h={},this.g=this.g.wb=t(),this.size=0},i.prototype.has=function(e){return!!r(this,e).Ea},i.prototype.get=function(e){return(e=r(this,e).Ea)&&e.value},i.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},i.prototype.keys=function(){return n(this,function(e){return e.key})},i.prototype.values=function(){return n(this,function(e){return e.value})},i.prototype.forEach=function(e,t){for(var n,r=this.entries();!(n=r.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},i.prototype[Symbol.iterator]=i.prototype.entries;var a=0;return i}),s("Array.prototype.keys",function(e){return e||function(){return R(this,function(e){return e})}}),s("Set",function(e){function t(e){if(this.g=new Map,e){e=c(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var r=n.entries(),i=r.next();return!i.done&&i.value[0]==t&&i.value[1]==t&&!(i=r.next()).done&&i.value[0]!=t&&4==i.value[0].x&&i.value[1]==i.value[0]&&r.next().done}catch(o){return!1}}()?e:(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach(function(r){return e.call(t,r,r,n)})},t)}),s("Array.from",function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var r=[],i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof i){e=i.call(e);for(var o=0;!(i=e.next()).done;)r.push(t.call(n,i.value,o++))}else for(i=e.length,o=0;o<i;o++)r.push(t.call(n,e[o],o));return r}}),s("Array.prototype.findIndex",function(e){return e||function(e,t){return D(this,e,t).wa}}),s("Object.is",function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}}),s("Array.prototype.includes",function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var r=n.length,i=t||0;for(0>i&&(i=Math.max(i+r,0));i<r;i++){var o=n[i];if(o===e||Object.is(o,e))return!0}return!1}}),s("String.prototype.includes",function(e){return e||function(e,t){return-1!==B(this,e,"includes").indexOf(e,t||0)}}),s("Array.prototype.find",function(e){return e||function(e,t){return D(this,e,t).v}}),s("String.prototype.startsWith",function(e){return e||function(e,t){for(var n=B(this,e,"startsWith"),r=n.length,i=e.length,o=Math.max(0,Math.min(0|t,n.length)),a=0;a<i&&o<r;)if(n[o++]!=e[a++])return!1;return a>=i}});var z="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(r)for(var i in r)N(r,i)&&(e[i]=r[i])}return e};s("Object.assign",function(e){return e||z}),s("Array.prototype.values",function(e){return e||function(){return R(this,function(e,t){return t})}}),s("Promise.prototype.finally",function(e){return e||function(e){return this.then(function(t){return Promise.resolve(e()).then(function(){return t})},function(t){return Promise.resolve(e()).then(function(){throw t})})}}),s("Array.prototype.entries",function(e){return e||function(){return R(this,function(e,t){return[e,t]})}}),s("String.prototype.repeat",function(e){return e||function(e){var t=B(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}}),s("Number.isNaN",function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}}),s("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)N(e,t)&&n.push(e[t]);return n}}),s("Math.log2",function(e){return e||function(e){return Math.log(e)/Math.LN2}}),s("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)N(e,t)&&n.push([t,e[t]]);return n}});var F=this||self;function H(e,t){var n,r=e.split("."),i=F;r[0]in i||void 0===i.execScript||i.execScript("var "+r[0]);for(;r.length&&(n=r.shift());)r.length||void 0===t?i=i[n]&&i[n]!==Object.prototype[n]?i[n]:i[n]={}:i[n]=t}function q(t,n){if(n)if(n instanceof Map)for(var r=c(n.keys()),i=r.next();!i.done;i=r.next())i=i.value,Object.defineProperty(this,i,{value:n.get(i),writable:!0,enumerable:!0});else for(r in n)Object.defineProperty(this,r,{value:n[r],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function U(e){var t,n=new q(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}function V(){}function X(){}function G(){}function W(e,t){for(var n=[],r=1;r<arguments.length;++r)n[r-1]=arguments[r];Z.has(e)||(Z.add(e),G.apply(V,d(n)))}function J(){}q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},q.prototype.stopImmediatePropagation=function(){this.g=!0},q.prototype.stopPropagation=function(){},H("shaka.util.FakeEvent",q);var Z=new Set;if(e.console&&e.console.log.bind){var K={},Y=(K[1]=function(){}.bind(),K[2]=function(){}.bind(),K[3]=function(){}.bind(),K[4]=function(){}.bind(),K[5]=function(){}.bind(),K[6]=function(){}.bind(),K);G=Y[2],X=Y[1]}function Q(){this.g={}}function _(e,t){for(var n in e.g)t(n,e.g[n])}function $(){this.ea=new Q,this.hd=this}function ee(e,t){for(var n=[],r=c(e),i=r.next();!i.done;i=r.next())n.push(t(i.value));return n}function te(e,t){for(var n=[],r=c(e),i=r.next();!i.done;i=r.next())t(i=i.value)&&n.push(i);return n}(r=Q.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},r.get=function(e){return(e=this.g[e])?e.slice():null},r.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter(function(e){return e!=t}),0==this.g[e].length&&delete this.g[e])},r.size=function(){return Object.keys(this.g).length},r.keys=function(){return Object.keys(this.g)},$.prototype.addEventListener=function(e,t){this.ea&&this.ea.push(e,t)},$.prototype.removeEventListener=function(e,t){this.ea&&this.ea.remove(e,t)},$.prototype.dispatchEvent=function(e){if(!this.ea)return!0;var t=this.ea.get(e.type)||[],n=this.ea.get("All");for(n&&(t=t.concat(n)),n=(t=c(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.hd,e.currentTarget=this.hd;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(r){}if(e.g)break}return e.defaultPrevented},$.prototype.release=function(){this.ea=null};var ne=function e(t){var n;return L(e,function(e){return 1==e.g&&(n=0),3!=e.g?n<t?w(e,n,3):e.D(0):(n++,e.D(2))})},re=function e(t){var n,r,i,o,a,s;return L(e,function(e){return 1==e.g&&(n=-1,i=r=void 0,o=c(t),a=o.next()),5!=e.g?a.done?-1==n?e.D(0):w(e,{wa:n,Yg:r,item:i,next:void 0},0):(s=a.value,0<=n?w(e,{wa:n,item:i,Yg:r,next:s},5):e.D(5)):(n++,r=i,i=s,a=o.next(),e.D(2))})},ie=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function oe(e){var t;e instanceof oe?(ae(this,e.ab),this.$b=e.$b,this.eb=e.eb,se(this,e.vc),this.Sa=e.Sa,le(this,e.g.clone()),this.Pb=e.Pb):e&&(t=String(e).match(ie))?(ae(this,t[1]||"",!0),this.$b=ce(t[2]||""),this.eb=ce(t[3]||"",!0),se(this,t[4]),this.Sa=ce(t[5]||"",!0),le(this,t[6]||"",!0),this.Pb=ce(t[7]||"")):this.g=new ve(null)}function ae(e,t,n){e.ab=n?ce(t,!0):t,e.ab&&(e.ab=e.ab.replace(/:$/,""))}function se(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.vc=t}else e.vc=null}function le(e,t,n){t instanceof ve?e.g=t:(n||(t=de(t,me)),e.g=new ve(t))}function ce(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function de(e,t,n){return null!=e?(e=encodeURI(e).replace(t,ue),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ue(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(r=oe.prototype).ab="",r.$b="",r.eb="",r.vc=null,r.Sa="",r.Pb="",r.toString=function(){var e=[],t=this.ab;if(t&&e.push(de(t,he,!0),":"),t=this.eb){e.push("//");var n=this.$b;n&&e.push(de(n,he,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.vc)&&e.push(":",String(t))}return(t=this.Sa)&&(this.eb&&"/"!=t.charAt(0)&&e.push("/"),e.push(de(t,"/"==t.charAt(0)?pe:fe,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.Pb)&&e.push("#",de(t,ge)),e.join("")},r.resolve=function(e){var t=this.clone();"data"===t.ab&&(t=new oe);var n=!!e.ab;n?ae(t,e.ab):n=!!e.$b,n?t.$b=e.$b:n=!!e.eb,n?t.eb=e.eb:n=null!=e.vc;var r=e.Sa;if(n)se(t,e.vc);else if(n=!!e.Sa){if("/"!=r.charAt(0))if(this.eb&&!this.Sa)r="/"+r;else{var i=t.Sa.lastIndexOf("/");-1!=i&&(r=t.Sa.substr(0,i+1)+r)}if(".."==r||"."==r)r="";else if(-1!=r.indexOf("./")||-1!=r.indexOf("/.")){i=0==r.lastIndexOf("/",0),r=r.split("/");for(var o=[],a=0;a<r.length;){var s=r[a++];"."==s?i&&a==r.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),i&&a==r.length&&o.push("")):(o.push(s),i=!0)}r=o.join("/")}}return n?t.Sa=r:n=""!==e.g.toString(),n?le(t,e.g.clone()):n=!!e.Pb,n&&(t.Pb=e.Pb),t},r.clone=function(){return new oe(this)};var he=/[#\/\?@]/g,fe=/[#\?:]/g,pe=/[#\?]/g,me=/[#\?@]/g,ge=/#/g;function ve(e){this.g=e||null}function be(e){if(!e.Ja&&(e.Ja={},e.nd=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];o=decodeURIComponent(o.replace(/\+/g," ")),i=i||"",e.add(o,decodeURIComponent(i.replace(/\+/g," ")))}}function ye(e,t,n,r){for(var i=[],o=3;o<arguments.length;++o)i[o-3]=arguments[o];this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1}function we(e,t){this.g=e,this.h=t}function ke(e,t){var n=new we(4,0),r=Se,i=r.g,o=n.h-i.h;(0<(n.g-i.g||o)?r.i:r.h)(r.g,n,e,t)}function xe(e,t,n,r){G([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",r].join(" "))}function Ce(e,t,n,r){X([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",r].join(""))}(r=ve.prototype).Ja=null,r.nd=null,r.add=function(e,t){be(this),this.g=null;var n=this.Ja.hasOwnProperty(e)&&this.Ja[e];return n||(this.Ja[e]=n=[]),n.push(t),this.nd++,this},r.set=function(e,t){return be(this),this.g=null,this.Ja.hasOwnProperty(e)?this.Ja[e]=[t]:this.add(e,t),this},r.toString=function(){if(this.g)return this.g;if(!this.Ja)return"";var e,t=[];for(e in this.Ja)for(var n=encodeURIComponent(e),r=this.Ja[e],i=0;i<r.length;i++){var o=n;""!==r[i]&&(o+="="+encodeURIComponent(r[i])),t.push(o)}return this.g=t.join("&")},r.clone=function(){var e=new ve;if(e.g=this.g,this.Ja){var t,n={};for(t in this.Ja)n[t]=this.Ja[t].concat();e.Ja=n,e.nd=this.nd}return e},ye.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},H("shaka.util.Error",ye),ye.Severity={RECOVERABLE:1,CRITICAL:2},ye.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},ye.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004},we.prototype.toString=function(){return"v"+this.g+"."+this.h};var Se=null;function Ee(e,t){return e.concat(t)}function Me(){}function Te(e){return null!=e}function Ae(e){var t=Object.create(e.prototype||Object.prototype);try{var n=e.call(t);n||(ke("Factories requiring new","Factories should be plain functions"),n=t)}catch(r){ke("Factories requiring new","Factories should be plain functions"),n=new e}return n}function je(e,t){if(0==t.length)return e;var n=t.map(function(e){return new oe(e)});return e.map(function(e){return new oe(e)}).map(function(e){return n.map(function(t){return e.resolve(t)})}).reduce(Ee,[]).map(function(e){return e.toString()})}function Oe(e,t){return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:t||[],keyIds:new Set}}function Pe(e,t){if(1==t.length)return t[0];var n=Le(e,t);if(null!=n)return n;throw new ye(2,4,4025,t)}function Le(e,t){for(var n=c(Re[e]),r=n.next();!r.done;r=n.next()){r=r.value;for(var i=c(t),o=i.next();!o.done;o=i.next())if(o=o.value,r.test(o.trim()))return o.trim()}return e==Ie?"":null}var Ie="text",Ne={mb:"video",Nb:"audio",ua:Ie,Gc:"image",Ah:"application"},Re={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function De(){}function Be(e,t){return e=He(e),t=He(t),e.split("-")[0]==t.split("-")[0]}function ze(e,t){e=He(e),t=He(t);var n=e.split("-"),r=t.split("-");return n[0]==r[0]&&1==n.length&&2==r.length}function Fe(e,t){e=He(e),t=He(t);var n=e.split("-"),r=t.split("-");return 2==n.length&&2==r.length&&n[0]==r[0]}function He(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=We.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function qe(e,t){var n=Ve(e),r=Ve(t);return e!=n&&t!=r&&n==r}function Ue(e,t){return e=He(e),(t=He(t))==e?4:ze(t,e)?3:Fe(t,e)?2:ze(e,t)?1:0}function Ve(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),We.get(e)||e}function Xe(e){return e.language?He(e.language):e.audio&&e.audio.language?He(e.audio.language):e.video&&e.video.language?He(e.video.language):"und"}function Ge(e,t){for(var n=He(e),r=new Set,i=c(t),o=i.next();!o.done;o=i.next())r.add(He(o.value));for(o=(i=c(r)).next();!o.done;o=i.next())if((o=o.value)==n)return o;for(o=(i=c(r)).next();!o.done;o=i.next())if(ze(o=o.value,n))return o;for(o=(i=c(r)).next();!o.done;o=i.next())if(Fe(o=o.value,n))return o;for(o=(r=c(r)).next();!o.done;o=r.next())if(ze(n,o=o.value))return o;return null}H("shaka.util.LanguageUtils",De),De.findClosestLocale=Ge,De.getLocaleForVariant=Xe,De.getLocaleForText=function(e){return He(e.language||"und")},De.getBase=Ve,De.relatedness=Ue,De.areSiblings=qe,De.normalize=He,De.isSiblingOf=Fe,De.isParentOf=ze,De.areLanguageCompatible=Be,De.areLocaleCompatible=function(e,t){return(e=He(e))==(t=He(t))};var We=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Je(e){$.call(this),this.j=He(e),this.i=new Map,this.g=new Set,this.h=new Map}function Ze(e){for(var t=e.h,n=e.j,r=e.g,i=new Set,o={},a=c(r),s=a.next();!s.done;o={ec:o.ec},s=a.next()){o.ec=s.value,i.add(o.ec),i.add(Ve(o.ec)),(s=te(t.keys(),function(e){return function(t){return qe(t,e.ec)}}(o))).sort();var l=c(s);for(s=l.next();!s.done;s=l.next())i.add(s.value);for((s=te(t.keys(),function(e){return function(t){return Ve(t)==e.ec}}(o))).sort(),s=(l=c(s)).next();!s.done;s=l.next())i.add(s.value)}for(i.add(n),n=[],s=(i=c(i)).next();!s.done;s=i.next())(s=t.get(s.value))&&n.push(s);for(n.reverse(),e.i.clear(),s=(t=c(n)).next();!s.done;s=t.next())s.value.forEach(function(t,n){e.i.set(n,t)});for(t=e.i.keys(),i=new Set,s=(n=c(e.g)).next();!s.done;s=n.next())Ke(s=e.h.get(s.value)||new Map,t,i);0<i.size&&(r=(new Map).set("locales",Array.from(r)).set("missing",Array.from(i)),e.dispatchEvent(new q("missing-localizations",r)))}function Ke(e,t,n){for(var r=(t=c(t)).next();!r.done;r=t.next())r=r.value,e.get(r)||n.add(r)}g(Je,$),(r=Je.prototype).release=function(){$.prototype.release.call(this)},r.We=function(e){var t=this;this.g.clear();for(var n=(e=c(e)).next();!n.done;n=e.next())this.g.add(He(n.value));Ze(this),(e=te(this.g,function(e){return!t.h.has(e)})).length&&this.dispatchEvent(new q("unknown-locales",(new Map).set("locales",e))),e=te(this.g,function(e){return t.h.has(e)}),e=(new Map).set("locales",e.length?e:[this.j]),this.dispatchEvent(new q("locale-changed",e))},r.ma=function(e,t,n){e=He(e),void 0===n&&(n=Ye);var r=this.h.get(e)||new Map;return t.forEach(function(e,t){r.has(t)&&n!=Ye||r.set(t,e)}),this.h.set(e,r),Ze(this),this.dispatchEvent(new q("locale-updated")),this},r.hh=function(e){for(var t=c(e.keys()),n=t.next();!n.done;n=t.next())n=n.value,e.set(n,this.resolve(n))},r.resolve=function(e){var t=this.i.get(e);return t||(e=(new Map).set("locales",Array.from(this.g)).set("missing",e),this.dispatchEvent(new q("unknown-localization",e)),"")},H("shaka.ui.Localization",Je),Je.prototype.resolve=Je.prototype.resolve,Je.prototype.resolveDictionary=Je.prototype.hh,Je.prototype.insert=Je.prototype.ma,Je.prototype.changeLocale=Je.prototype.We,Je.prototype.release=Je.prototype.release;var Ye=1;Je.ConflictResolution={USE_OLD:0,USE_NEW:Ye},Je.UNKNOWN_LOCALES="unknown-locales",Je.UNKNOWN_LOCALIZATION="unknown-localization",Je.MISSING_LOCALIZATIONS="missing-localizations",Je.LOCALE_CHANGED="locale-changed",Je.LOCALE_UPDATED="locale-updated";var Qe="SUBTITLE_FORCED";function _e(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function $e(e,t,n){var r=Math.pow(e.g,t);n=n*(1-r)+r*e.h,isNaN(n)||(e.h=n,e.i+=t)}function et(e){return e.h/(1-Math.pow(e.g,e.i))}function tt(){this.h=new _e(2),this.j=new _e(5),this.g=0,this.i=128e3,this.l=16e3}function nt(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function rt(e,t){var n=e.indexOf(t);-1<n&&e.splice(n,1)}function it(e,t,n){if(n||(n=nt),e.length!=t.length)return!1;t=t.slice();for(var r={},i=(e=c(e)).next();!i.done;r={Ld:r.Ld},i=e.next()){if(r.Ld=i.value,-1==(i=t.findIndex(function(e){return function(t){return n(e.Ld,t)}}(r))))return!1;t[i]=t[t.length-1],t.pop()}return 0==t.length}function ot(e,t,n){if(n||(n=nt),e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function at(e,t,n){this.startTime=e,this.direction=ft,this.endTime=t,this.payload=n,this.region=new Ct,this.position=null,this.positionAlign=lt,this.size=0,this.textAlign=ct,this.writingMode=pt,this.lineInterpretation=mt,this.line=null,this.lineHeight="",this.lineAlign=gt,this.displayAlign=ut,this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=wt,this.fontStyle=kt,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.spacer=this.lineBreak=this.isContainer=!1,this.cellResolution={columns:32,rows:15}}function st(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!ot(e.nestedCues,t.nestedCues,st))return!1}else if("region"==n||"cellResolution"==n){for(var r in e[n])if(e[n][r]!=t[n][r])return!1}else if(Array.isArray(e[n])){if(!ot(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}tt.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},tt.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(et(this.h),et(this.j))},at.prototype.clone=function(){var e,t=new at(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},H("shaka.text.Cue",at);var lt="auto";at.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:lt};var ct="center",dt={LEFT:"left",RIGHT:"right",CENTER:ct,START:"start",END:"end"};at.textAlign=dt;var ut="after",ht={BEFORE:"before",CENTER:"center",AFTER:ut};at.displayAlign=ht;var ft="ltr";at.direction={HORIZONTAL_LEFT_TO_RIGHT:ft,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var pt="horizontal-tb";at.writingMode={HORIZONTAL_TOP_TO_BOTTOM:pt,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var mt=0;at.lineInterpretation={LINE_NUMBER:mt,PERCENTAGE:1};var gt="start",vt={CENTER:"center",START:gt,END:"end"};at.lineAlign=vt;var bt={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};at.defaultTextColor=bt;var yt={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};at.defaultTextBackgroundColor=yt;var wt=400;at.fontWeight={NORMAL:wt,BOLD:700};var kt="normal",xt={NORMAL:kt,ITALIC:"italic",OBLIQUE:"oblique"};function Ct(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=St,this.scroll=Et}at.fontStyle=xt,at.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},H("shaka.text.CueRegion",Ct);var St=1;Ct.units={PX:0,PERCENTAGE:St,LINES:2};var Et="";function Mt(){}function Tt(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(At(e)==At(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;for(var n=Ot(e),r=Ot(t),i=c(ne(e.byteLength)),o=i.next();!o.done;o=i.next())if(n[o=o.value]!=r[o])return!1;return!0}function At(e){return e instanceof ArrayBuffer?e:e.buffer}function jt(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function Ot(e,t,n){return Lt(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function Pt(e,t,n){return Lt(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function Lt(e,t,n,r){var i=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,i)),new r(At(e),t,Math.min(t+Math.max(n,0),i)-t)}function It(){}Ct.scrollMode={NONE:Et,UP:"up"},H("shaka.util.BufferUtils",Mt),Mt.toDataView=Pt,Mt.toUint8=Ot,Mt.toArrayBuffer=jt,Mt.equal=Tt,H("shaka.dependencies",It),It.has=function(e){return Rt.has(e)},It.add=function(e,t){if(!Nt[e])throw Error(e+" is not supported");Rt.set(e,function(){return t})};var Nt={muxjs:"muxjs"};It.Allowed=Nt;var Rt=new Map([["muxjs",function(){return e.muxjs}]]);function Dt(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function Bt(e){this.h=e,this.g=void 0}function zt(){}function Ft(e){return e?(239==(e=Ot(e))[0]&&187==e[1]&&191==e[2]&&(e=e.subarray(3)),(e=(new TextDecoder).decode(e)).includes("�")&&X('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),e):""}function Ht(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new ye(2,2,2004);var r=Math.floor(e.byteLength/2);n=new Uint16Array(r),e=Pt(e);for(var i=(r=c(ne(r))).next();!i.done;i=r.next())n[i=i.value]=e.getUint16(2*i,t);return Xt.value()(n)}function qt(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=Ot(e);if(239==n[0]&&187==n[1]&&191==n[2])return Ft(n);if(254==n[0]&&255==n[1])return Ht(n.subarray(2),!1);if(255==n[0]&&254==n[1])return Ht(n.subarray(2),!0);if(0==n[0]&&0==n[2])return Ht(e,!1);if(0==n[1]&&0==n[3])return Ht(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return Ft(e);throw new ye(2,2,2003)}function Ut(e){return jt((new TextEncoder).encode(e))}function Vt(e,t){for(var n=new ArrayBuffer(2*e.length),r=new DataView(n),i=c(re(e)),o=i.next();!o.done;o=i.next())o=o.value,r.setUint16(2*o.wa,o.item.charCodeAt(0),t);return n}Dt.prototype.resolve=function(){},Dt.prototype.reject=function(){},Bt.prototype.value=function(){return null==this.g&&(this.g=this.h()),this.g},H("shaka.util.StringUtils",zt),zt.resetFromCharCode=function(){Xt.g=void 0},zt.toUTF16=Vt,zt.toUTF8=Ut,zt.fromBytesAutoDetect=qt,zt.fromUTF16=Ht,zt.fromUTF8=Ft;var Xt=new Bt(function(){function e(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(n){return!1}}for(var t={Bb:65536};0<t.Bb;(t={Bb:t.Bb}).Bb/=2)if(e(t.Bb))return function(e){return function(t){for(var n="",r=0;r<t.length;r+=e.Bb)n+=String.fromCharCode.apply(null,t.subarray(r,r+e.Bb));return n}}(t);return null});function Gt(){}function Wt(e){return e=Ot(e),e=Xt.value()(e),btoa(e)}function Jt(e,t){t=null==t||t;var n=Wt(e).replace(/\+/g,"-").replace(/\//g,"_");return t?n:n.replace(/[=]*$/,"")}function Zt(t){var n=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));t=new Uint8Array(n.length);for(var r=(n=c(re(n))).next();!r.done;r=n.next())t[(r=r.value).wa]=r.item.charCodeAt(0);return t}function Kt(t){for(var n=t.length/2,r=new Uint8Array(n),i=(n=c(ne(n))).next();!i.done;i=n.next())r[i=i.value]=e.parseInt(t.substr(2*i,2),16);return r}function Yt(e){var t=Ot(e);e="";for(var n=(t=c(t)).next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function Qt(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];var r=0,i=c(t);for(n=i.next();!n.done;n=i.next())r+=n.value.byteLength;for(r=new Uint8Array(r),i=0,n=(t=c(t)).next();!n.done;n=t.next())n=n.value,r.set(Ot(n),i),i+=n.byteLength;return r}function _t(){var e=this;this.B=Rt.get("muxjs")(),this.g=new this.B.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.h=null,this.s=[],this.j=[],this.i=[],this.l=!1,this.g.on("data",function(t){e.j=t.captions,e.i=t.metadata,e.s.push(Qt(t.initSegment,t.data))}),this.g.on("done",function(){var t={data:Qt.apply(Gt,d(e.s)),captions:e.j,metadata:e.i};e.h.resolve(t),e.l=!1})}function $t(e,t){if(!Rt.get("muxjs")()||!en(e))return!1;if(t)return MediaSource.isTypeSupported(tn(t,e));var n=tn("audio",e),r=tn("video",e);return MediaSource.isTypeSupported(n)||MediaSource.isTypeSupported(r)}function en(e){return"mp2t"==e.toLowerCase().split(";")[0].split("/")[1]}function tn(e,t){var n=t.replace(/mp2t/i,"mp4");"audio"==e&&(n=n.replace("video","audio"));var r=/avc1\.(66|77|100)\.(\d+)/.exec(n);if(r){var i="avc1.",o=r[1],a=Number(r[2]);i=("66"==o?i+"4200":"77"==o?i+"4d00":i+"6400")+(a>>4).toString(16),i+=(15&a).toString(16),n=n.replace(r[0],i)}return n}function nn(e,t){var n=e;return t&&(n+='; codecs="'+t+'"'),n}function rn(e,t,n){return e=nn(e,t),Rt.get("muxjs")()&&en(e)?tn(n,e):e}function on(e){var t=(e=e.split("."))[0];return e.pop(),t}function an(e){return(e=e.split(/ *; */)).shift(),(e=e.find(function(e){return e.startsWith("codecs=")}))?e.split("=")[1].replace(/^"|"$/g,""):""}function sn(e){this.C=null,this.i=e,this.j=this.G=0,this.l=1/0,this.h=this.g=null,this.B="",this.s=new Map}function ln(e){return!(!hn[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function cn(e,t,n){if(e.B=t,t=e.s.get(t))for(var r=c(t.keys()),i=r.next();!i.done;i=r.next())(i=t.get(i.value).filter(function(e){return e.endTime<=n}))&&e.i.append(i)}function dn(e,t,n){t.startTime+=n,t.endTime+=n;for(var r=(t=c(t.nestedCues)).next();!r.done;r=t.next())dn(e,r.value,n)}function un(e,t,n,r,i){for(var o=n+" "+r,a=new Map,s=(t=c(t)).next();!s.done;s=t.next()){var l=s.value;s=l.stream,l=l.cue,a.has(s)||a.set(s,new Map),a.get(s).has(o)||a.get(s).set(o,[]),dn(e,l,i),l.startTime>=e.j&&l.startTime<e.l&&(a.get(s).get(o).push(l),s==e.B&&e.i.append([l]))}for(o=(i=c(a.keys())).next();!o.done;o=i.next())for(o=o.value,e.s.has(o)||e.s.set(o,new Map),s=(t=c(a.get(o).keys())).next();!s.done;s=t.next())s=s.value,l=a.get(o).get(s),e.s.get(o).set(s,l);e.g=null==e.g?Math.max(n,e.j):Math.min(e.g,Math.max(n,e.j)),e.h=Math.max(e.h,Math.min(r,e.l))}H("shaka.util.Uint8ArrayUtils",Gt),Gt.concat=Qt,Gt.toHex=Yt,Gt.fromHex=Kt,Gt.fromBase64=Zt,Gt.toBase64=Jt,Gt.toStandardBase64=Wt,Gt.equal=function(e,t){return ke("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead."),Tt(e,t)},_t.prototype.destroy=function(){return this.g.dispose(),this.g=null,Promise.resolve()},(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),sn.prototype.destroy=function(){return this.i=this.C=null,this.s.clear(),Promise.resolve()},sn.prototype.remove=function(e,t){var n=this;return I(function(r){if(1==r.g)return w(r,Promise.resolve(),2);!n.i||!n.i.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),k(r)})},H("shaka.text.TextEngine",sn),sn.prototype.destroy=sn.prototype.destroy,sn.findParser=function(e){return hn[e]},sn.unregisterParser=function(e){delete hn[e]},sn.registerParser=function(e,t){hn[e]=t};var hn={};function fn(e){this.h=e,this.g=null}function pn(e){this.h=e,this.g=null}function mn(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function gn(e){return""!=xn().canPlayType(e)}function vn(){return kn("Tizen")}function bn(){return kn("CrKey")}function yn(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!vn()}function wn(){if(!yn())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function kn(e){return(navigator.userAgent||"").includes(e)}function xn(){return Sn||(Cn||(Cn=new pn(function(){Sn=null})),(Sn=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Sn=document.createElement("video")),Cn.U(1),Sn)}fn.prototype.U=function(t){var n=this;this.stop();var r=!0,i=null;return this.g=function(){e.clearTimeout(i),r=!1},i=e.setTimeout(function(){r&&n.h()},1e3*t),this},fn.prototype.stop=function(){this.g&&(this.g(),this.g=null)},pn.prototype.Ga=function(){return this.stop(),this.h(),this},pn.prototype.U=function(e){var t=this;return this.stop(),this.g=new fn(function(){t.h()}).U(e),this},pn.prototype.na=function(e){var t=this;return this.stop(),this.g=new fn(function(){t.g.U(e),t.h()}).U(e),this},pn.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},H("shaka.util.Timer",pn),pn.prototype.stop=pn.prototype.stop,pn.prototype.tickEvery=pn.prototype.na,pn.prototype.tickAfter=pn.prototype.U,pn.prototype.tickNow=pn.prototype.Ga;var Cn=null,Sn=null;function En(e,t,n,r,i){var o=e.variants;(t.length||n.length)&&(o=function(e,t,n){for(var r={},i=(t=c(t)).next();!i.done;r={Wd:r.Wd},i=t.next())if(r.Wd=i.value,i=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.Wd)}}(r)),i.length){e=i;break}for(r={},n=c(n),t=n.next();!t.done;r={Id:r.Id},t=n.next())if(r.Id=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.Id)}}(r)),t.length){e=t;break}return e}(o,t,n)),t=function(e){for(var t=new Q,n=(e=c(e)).next();!n.done;n=e.next()){var r=Tn(n=n.value);t.push(r,n)}return t}(o=Gn(o,r)),t=function(e){var t=0,n=new Map,r=e.size();return _(e,function(e,i){for(var o=c(i),a=o.next();!a.done;a=o.next()){var s=(a=a.value).video;if(s&&s.width&&s.height){s=s.width*s.height*(s.frameRate||1),n.has(s)||n.set(s,new Q);var l=n.get(s);l.push(e,a),l.size()===r&&(t=Math.max(t,s))}}}),t?n.get(t):e}(t);var a=function(e,t){for(var n=c(t),r=n.next();!r.done;r=n.next())if((r=r.value)==Qn||r==_n){if(1==(e=Mn(e,r)).size())return e.keys()[0]}else if(r==$n)break;return function(e){var t="",n=1/0;return _(e,function(e,r){for(var i=0,o=0,a=c(r),s=a.next();!s.done;s=a.next())i+=s.value.bandwidth||0,++o;(i/=o)<n&&(t=e,n=i)}),t}(e)}(t,i);e.variants=e.variants.filter(function(e){return Tn(e)==a})}function Mn(e,t){var n=0,r=new Q;return _(e,function(e,i){for(var o=0,a=0,s=c(i),l=s.next();!l.done;l=s.next())(l=l.value).decodingInfos.length&&(o+=l.decodingInfos[0][t]?1:0,a++);(o/=a)>n?(r.g={},r.push(e,i),n=o):o==n&&r.push(e,i)}),r}function Tn(e){var t="";e.video&&(t=on(e.video.codecs));var n="";return e.audio&&(n=on(e.audio.codecs)),t+"-"+n}function An(e,t,n){function r(e,t,n){return e>=t&&e<=n}var i=e.video;return!(i&&i.width&&i.height&&(!r(i.width,t.minWidth,Math.min(t.maxWidth,n.width))||!r(i.height,t.minHeight,Math.min(t.maxHeight,n.height))||!r(i.width*i.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!r(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!r(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function jn(e,t){return I(function(n){if(1==n.g)return w(n,On(t,0<t.offlineSessionIds.length),2);Rn(e,t),function(e){e.textStreams=e.textStreams.filter(function(e){return ln(nn(e.mimeType,e.codecs))})}(t),function(e){e.imageStreams=e.imageStreams.filter(function(e){var t=["image/svg+xml","image/png","image/jpeg"];return(kn("Web0S")||vn()||bn())&&t.push("image/webp"),t.includes(e.mimeType)})}(t),k(n)})}function On(e,t){return I(function(n){if(1==n.g)return w(n,Pn(e.variants,t,!1),2);e.variants=e.variants.filter(function(e){var t=e.video;if(t){var n=Nn(t.codecs);if(t.codecs.includes(",")){var r=t.codecs.split(",");if(n=Pe("video",r),r=Pe("audio",r),r=rn(t.mimeType,r,"audio"),!MediaSource.isTypeSupported(r))return!1}if(n=rn(t.mimeType,n,"video"),!MediaSource.isTypeSupported(n))return!1}return!((n=e.audio)&&(r=In(n.codecs),n=rn(n.mimeType,r,"audio"),!MediaSource.isTypeSupported(n)))&&(kn("Xbox One")&&t&&(t.width&&1920<t.width||t.height&&1080<t.height)&&t.codecs.includes("avc1.")?(Zn(e),!1):((t=e.decodingInfos.some(function(e){return e.supported}))||Zn(e),t))}),k(n)})}function Pn(e,t,n){var r,i,o,a,s,l,d,u,h,f;return I(function(p){if(e.some(function(e){return e.decodingInfos.length}))return p.return();for(r=navigator.mediaCapabilities,i=[],o=function(e,t){var n;return I(function(i){return 1==i.g?(x(i,2),w(i,r.decodingInfo(t),4)):2!=i.g?(n=i.h,e.decodingInfos.push(n),S(i,0)):(E(i),JSON.stringify(t),void k(i))})},a=c(e),s=a.next();!s.done;s=a.next())for(l=s.value,d=Ln(l,t,n),u=c(d),h=u.next();!h.done;h=u.next())f=h.value,i.push(o(l,f));return w(p,Promise.all(i),0)})}function Ln(e,t,n){var r=e.audio,i=e.video;if(n={type:n?"file":"media-source"},i){var o=i.codecs;if(i.codecs.includes(",")){var a=i.codecs.split(",");o=Nn(o=Pe("video",a)),a=Pe("audio",a),a=rn(i.mimeType,a,"audio"),n.audio={contentType:a,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1}}if(o=Nn(o),o=rn(i.mimeType,o,"video"),n.video={contentType:o,width:i.width||1,height:i.height||1,bitrate:i.bandwidth||e.bandwidth||1,framerate:i.frameRate||1},i.hdr)switch(i.hdr){case"SDR":n.video.transferFunction="srgb";break;case"PQ":n.video.transferFunction="pq";break;case"HLG":n.video.transferFunction="hlg"}}if(r&&(o=In(r.codecs),o=rn(r.mimeType,o,"audio"),n.audio={contentType:o,channels:r.channelsCount||2,bitrate:r.bandwidth||e.bandwidth||1,samplerate:r.audioSamplingRate||1,spatialRendering:r.spatialAudio}),!(a=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[n];e=[],o=new Map;for(var s=(a=c(a)).next();!s.done;s=a.next()){var l=s.value;o.get(l.keySystem)||o.set(l.keySystem,[]),o.get(l.keySystem).push(l)}a=t?"required":"optional",t=t?["persistent-license"]:["temporary"];for(var d=(l=c(o.keys())).next();!d.done;d=l.next()){var u=d.value;d=Object.assign({},n);var h=o.get(u);for(u={keySystem:u,initDataType:"cenc",persistentState:a,distinctiveIdentifier:"optional",sessionTypes:t},s=(h=c(h)).next();!s.done;s=h.next()){if((s=s.value).initData&&s.initData.length){for(var f=new Set,p=c(s.initData),m=p.next();!m.done;m=p.next())f.add(m.value.initDataType);u.initDataType=s.initData[0].initDataType}s.distinctiveIdentifierRequired&&(u.distinctiveIdentifier="required"),s.persistentStateRequired&&(u.persistentState="required"),s.sessionType&&(u.sessionTypes=[s.sessionType]),r&&(u.audio?u.audio.robustness=u.audio.robustness||s.audioRobustness:u.audio={robustness:s.audioRobustness}),i&&(u.video?u.video.robustness=u.video.robustness||s.videoRobustness:u.video={robustness:s.videoRobustness})}d.keySystemConfiguration=u,e.push(d)}return e}function In(e){return vn()&&"ac-3"==e.toLowerCase()?"ec-3":e}function Nn(e){return"vp9"==e?"vp09.00.10.08":e}function Rn(e,t){t.variants=t.variants.filter(function(t){var n=t.audio;return t=t.video,!(n&&e&&e.audio&&!Dn(n,e.audio)||t&&e&&e.video&&!Dn(t,e.video))})}function Dn(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function Bn(e){var t=e.audio,n=e.video,r=t?t.codecs:null,i=n?n.codecs:null,o=[];i&&o.push(i),r&&o.push(r);var a=[];n&&a.push(n.mimeType),t&&a.push(t.mimeType),a=a[0]||null;var s=[];t&&s.push(t.kind),n&&s.push(n.kind),s=s[0]||null;var l=new Set;if(t)for(var d=c(t.roles),u=d.next();!u.done;u=d.next())l.add(u.value);if(n)for(u=(d=c(n.roles)).next();!u.done;u=d.next())l.add(u.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:s,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a,codecs:o.join(", "),audioCodec:r,videoCodec:i,primary:e.primary,roles:Array.from(l),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.label=t.label,e.audioRoles=t.roles),e}function zn(e){return{id:e.id,active:!1,type:Ie,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null}}function Fn(e){var t=e.width||null,n=e.height||null,r=null;e.segmentIndex&&(r=e.segmentIndex.get(0));var i=e.tilesLayout;return r&&(i=r.tilesLayout||i),i&&null!=t&&(t/=Number(i.split("x")[0])),i&&null!=n&&(n/=Number(i.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:i||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId}}function Hn(e){return e.__shaka_id||(e.__shaka_id=Yn++),e.__shaka_id}function qn(e){var t=Vn(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="application/cea-608"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function Un(e){var t=Vn(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function Vn(e){return{id:Hn(e),active:!1,type:"",bandwidth:0,language:He(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null}}function Xn(e){return e.allowedByApplication&&e.allowedByKeySystem}function Gn(e,t){for(var n=e.filter(function(e){return e.audio&&e.audio.channelsCount}),r=new Map,i=(n=c(n)).next();!i.done;i=n.next()){var o=(i=i.value).audio.channelsCount;r.has(o)||r.set(o,[]),r.get(o).push(i)}return 0==(n=Array.from(r.keys())).length?e:(i=n.filter(function(e){return e<=t})).length?r.get(Math.max.apply(Math,d(i))):r.get(Math.min.apply(Math,d(n)))}function Wn(e,t,n,r){var i=e,o=e.filter(function(e){return e.primary});o.length&&(i=o);var a=i.length?i[0].language:"";if(i=i.filter(function(e){return e.language==a}),t){var s=Ge(He(t),e.map(function(e){return e.language}));s&&(i=e.filter(function(e){return He(e.language)==s}))}if(i=i.filter(function(e){return e.forced==r}),n){if((e=Jn(i,n)).length)return e}else if((e=i.filter(function(e){return 0==e.roles.length})).length)return e;return(e=i.map(function(e){return e.roles}).reduce(Ee,[])).length?Jn(i,e[0]):i}function Jn(e,t){return e.filter(function(e){return e.roles.includes(t)})}function Zn(e){var t=[];return e.audio&&t.push(Kn(e.audio)),e.video&&t.push(Kn(e.video)),t.join(", ")}function Kn(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}var Yn=0,Qn="smooth",_n="powerEfficient",$n="bandwidth";function er(){var e=this;this.j=null,this.h=!1,this.g=new tt,navigator.connection&&navigator.connection.addEventListener("change",function(){if(e.m.useNetworkInformation&&e.h){e.g=new tt,e.m&&e.g.configure(e.m.advanced);var t=e.chooseVariant();t&&e.j(t)}}),this.i=[],this.s=1,this.B=!1,this.m=this.l=null}function tr(e){var t=e.m.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&e.m.useNetworkInformation&&(t=1e6*navigator.connection.downlink),t}function nr(e,t){return e&&(t=t.filter(function(t){return An(t,e,{width:1/0,height:1/0})})),t.sort(function(e,t){return e.bandwidth-t.bandwidth})}function rr(e,t){this.h=e,this.g=new Set([e]);for(var n=c(t=t||[]),r=n.next();!r.done;r=n.next())this.add(r.value)}function ir(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var r=t.audio;n=!((!(!n.channelsCount||!r.channelsCount||2<n.channelsCount||2<r.channelsCount)||n.channelsCount==r.channelsCount)&&or(n,r)&&ar(n.roles,r.roles))}return!n&&(n=e.video&&t.video)&&(n=!(or(n=e.video,r=t.video)&&ar(n.roles,r.roles))),!n}function or(e,t){if(e.mimeType!=t.mimeType)return!1;var n=e.codecs.split(",").map(function(e){return on(e)}),r=t.codecs.split(",").map(function(e){return on(e)});if(n.length!=r.length)return!1;n.sort(),r.sort();for(var i=c(ne(n.length)),o=i.next();!o.done;o=i.next())if(n[o=o.value]!=r[o])return!1;return!0}function ar(e,t){var n=new Set(e),r=new Set(t);if(n.delete("main"),r.delete("main"),n.size!=r.size)return!1;for(var i=(n=c(n)).next();!i.done;i=n.next())if(!r.has(i.value))return!1;return!0}function sr(e){this.g=e,this.h=new lr(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"")}function lr(e,t,n,r){this.i=e,this.j=t,this.g=n,this.h=void 0===r?"":r}function cr(){this.g=hr,this.h=(new Map).set(hr,2).set(ur,1)}function dr(e,t,n){e.h.set(hr,n).set(ur,t)}(r=er.prototype).stop=function(){this.j=null,this.h=!1,this.i=[],this.s=1,this.l=null},r.init=function(e){this.j=e},r.chooseVariant=function(){var e=nr(this.m.restrictions,this.i),t=this.g.getBandwidthEstimate(tr(this));this.i.length&&!e.length&&(e=[(e=nr(null,this.i))[0]]);for(var n=e[0]||null,r=(e=c(re(e))).next();!r.done;r=e.next()){var i=r.value;r=i.item;var o=isNaN(this.s)?1:Math.abs(this.s);i=o*(i.next||{bandwidth:1/0}).bandwidth/this.m.bandwidthUpgradeTarget,t>=o*r.bandwidth/this.m.bandwidthDowngradeTarget&&t<=i&&(n=r)}return this.l=Date.now(),n},r.enable=function(){this.h=!0},r.disable=function(){this.h=!1},r.segmentDownloaded=function(e,t){var n=this.g;if(!(t<n.l)){var r=8e3*t/e,i=e/1e3;n.g+=t,$e(n.h,i,r),$e(n.j,i,r)}if(null!=this.l&&this.h)e:{if(this.B){if(Date.now()-this.l<1e3*this.m.switchInterval)break e}else{if(!((n=this.g).g>=n.i))break e;this.B=!0}n=this.chooseVariant(),this.g.getBandwidthEstimate(tr(this)),n&&this.j(n)}},r.getBandwidthEstimate=function(){return this.g.getBandwidthEstimate(this.m.defaultBandwidthEstimate)},r.setVariants=function(e){this.i=e},r.playbackRateChanged=function(e){this.s=e},r.configure=function(e){this.m=e,this.g&&this.m&&this.g.configure(this.m.advanced)},H("shaka.abr.SimpleAbrManager",er),er.prototype.configure=er.prototype.configure,er.prototype.playbackRateChanged=er.prototype.playbackRateChanged,er.prototype.setVariants=er.prototype.setVariants,er.prototype.getBandwidthEstimate=er.prototype.getBandwidthEstimate,er.prototype.segmentDownloaded=er.prototype.segmentDownloaded,er.prototype.disable=er.prototype.disable,er.prototype.enable=er.prototype.enable,er.prototype.chooseVariant=er.prototype.chooseVariant,er.prototype.init=er.prototype.init,er.prototype.stop=er.prototype.stop,rr.prototype.add=function(e){return!!ir(this.h,e)&&(this.g.add(e),!0)},rr.prototype.values=function(){return this.g.values()},sr.prototype.create=function(e){var t=this,n=e.filter(function(e){return ir(t.g,e)});return n.length?new rr(n[0],n):this.h.create(e)},lr.prototype.create=function(e){var t=[];t=function(e,t){var n=He(t),r=Ge(n,e.map(function(e){return Xe(e)}));return r?e.filter(function(e){return r==Xe(e)}):[]}(e,this.i);var n=e.filter(function(e){return e.primary});for(e=function(e,t){return e.filter(function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)})}(t=t.length?t:n.length?n:e,this.j),e.length&&(t=e),this.g&&(e=Gn(t,this.g)).length&&(t=e),this.h&&(e=function(e,t){return e.filter(function(e){return!!e.audio&&e.audio.label.toLowerCase()==t.toLowerCase()})}(t,this.h),e.length&&(t=e)),e=new rr(t[0]),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,ir(e.h,n)&&e.add(n);return e};var ur=0,hr=1;function fr(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4};this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.B=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.s=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function pr(e){var t,n;return I(function(r){if(1==r.g){if(e.g>=e.l){if(!e.i)throw new ye(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?r.return():(n=e.h*(1+(2*Math.random()-1)*e.B),w(r,new Promise(function(e){new pn(e).U(n/1e3)}),2))}e.h*=e.s,k(r)})}function mr(e,t){this.promise=e,this.i=t,this.g=!1}function gr(e){return new mr(Promise.reject(e),function(){return Promise.resolve()})}function vr(){var e=Promise.reject(new ye(2,7,7001));return e.catch(function(){}),new mr(e,function(){return Promise.resolve()})}function br(e){return new mr(Promise.resolve(e),function(){return Promise.resolve()})}function yr(e){return new mr(e,function(){return e.catch(function(){})})}function wr(e){return new mr(Promise.all(e.map(function(e){return e.promise})),function(){return Promise.all(e.map(function(e){return e.abort()}))})}function kr(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var r=n.constructor==Array;if(n.constructor!=Object&&!r)return null;t.add(n);var i,o=r?[]:{};for(i in n)o[i]=e(n[i]);return r&&(o.length=n.length),o}}(e)}function xr(e){var t,n={};for(t in e)n[t]=e[t];return n}function Cr(){this.g=[]}function Sr(e,t){e.g.push(t.finally(function(){rt(e.g,t)}))}function Er(e,t,n){$.call(this),this.i=!1,this.s=new Cr,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.C=n||null,this.B=!1}function Mr(e,t,n,r){n=n||Lr;var i=Ir[e];(!i||n>=i.priority)&&(Ir[e]={priority:n,Xg:t,Zg:void 0!==r&&r})}function Tr(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,streamDataCallback:void 0===n?null:n}}function Ar(e,t,n,r,i,o,a){e.B&&(n.uris[i]=n.uris[i].replace("http://","https://"));var s=new oe(n.uris[i]),l=s.ab,c=!1;l||(ae(s,l=(l=location.protocol).slice(0,-1)),n.uris[i]=s.toString()),l=l.toLowerCase();var d=(l=Ir[l])?l.Xg:null;if(!d)return gr(new ye(2,1,1e3,s));var u,h=l.Zg,f=null,p=null,m=!1,g=!1;return yr(pr(r)).va(function(){if(e.i)return vr();u=Date.now();var r=d(n.uris[i],n,t,function(n,r,i){f&&f.stop(),p&&p.U(s/1e3),e.l&&t==Pr&&(e.l(n,r),c=!0,a.g=i)},function(r){e.j&&e.j(r,n,t),g=!0});if(!h)return r;var o=n.retryParameters.connectionTimeout;o&&(f=new pn(function(){m=!0,r.abort()})).U(o/1e3);var s=n.retryParameters.stallTimeout;return s&&(p=new pn(function(){m=!0,r.abort()})),r}).va(function(r){f&&f.stop(),p&&p.stop(),null==r.timeMs&&(r.timeMs=Date.now()-u);var i={response:r,Kg:c};return!g&&e.j&&e.j(r.headers,n,t),i},function(s){if(f&&f.stop(),p&&p.stop(),e.C){var l=null,c=0;s instanceof ye&&(l=s,1001==s.code&&(c=s.data[1])),e.C(n,l,c,m)}if(e.i)return vr();if(m&&(s=new ye(1,1,1003,n.uris[i],t)),s instanceof ye){if(7001==s.code)throw s;if(1010==s.code)throw o;if(1==s.severity)return l=new q("retry",l=(new Map).set("error",s)),e.dispatchEvent(l),i=(i+1)%n.uris.length,Ar(e,t,n,r,i,s,a)}throw s})}function jr(){this.g=0}function Or(e,t,n){mr.call(this,e,t),this.h=n}mr.prototype.abort=function(){return this.g=!0,this.i()},mr.prototype.finally=function(e){return this.promise.then(function(){return e(!0)},function(){return e(!1)}),this},mr.prototype.va=function(e,t){function n(n){return function(s){if(i.g&&n)o.reject(a);else{var l=n?e:t;l?r=function(e,t,n){try{var r=e(t);return r&&r.promise&&r.abort?(n.resolve(r.promise),function(){return r.abort()}):(n.resolve(r),function(){return Promise.resolve(r).then(function(){},function(){})})}catch(i){return n.reject(i),function(){return Promise.resolve()}}}(l,s,o):(n?o.resolve:o.reject)(s)}}}function r(){return o.reject(a),i.abort()}var i=this,o=new Dt,a=new ye(2,7,7001);return this.promise.then(n(!0),n(!1)),new mr(o,function(){return r()})},H("shaka.util.AbortableOperation",mr),mr.prototype.chain=mr.prototype.va,mr.prototype.finally=mr.prototype.finally,mr.all=wr,mr.prototype.abort=mr.prototype.abort,mr.notAbortable=yr,mr.completed=br,mr.aborted=vr,mr.failed=gr,Cr.prototype.destroy=function(){for(var e=[],t=c(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch(function(){}),e.push(n.abort());return this.g=[],Promise.all(e)},g(Er,$),(r=Er.prototype).Ee=function(e){this.B=e},r.$g=function(e){this.g.add(e)},r.qh=function(e){this.g.delete(e)},r.Vf=function(){this.g.clear()},r.ah=function(e){this.h.add(e)},r.rh=function(e){this.h.delete(e)},r.Wf=function(){this.h.clear()},r.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),$.prototype.release.call(this),this.s.destroy()},r.request=function(e,t){var n=this,r=new jr;if(this.i){var i=Promise.reject(new ye(2,7,7001));return i.catch(function(){}),new Or(i,function(){return Promise.resolve()},r)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?kr(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=kr(t.uris),i=function(e,t,n){for(var r=br(void 0),i={},o=(e=c(e.g)).next();!o.done;i={Rd:i.Rd},o=e.next())i.Rd=o.value,r=r.va(function(e){return function(){return n.body&&(n.body=jt(n.body)),e.Rd(t,n)}}(i));return r.va(void 0,function(e){if(e instanceof ye&&7001==e.code)throw e;throw new ye(2,1,1006,e)})}(this,e,t);var o=i.va(function(){return Ar(n,e,t,new fr(t.retryParameters,!1),0,null,r)}),a=o.va(function(t){return function(e,t,n){for(var r=br(void 0),i={},o=(e=c(e.h)).next();!o.done;i={Sd:i.Sd},o=e.next())i.Sd=o.value,r=r.va(function(e){return function(){var r=n.response;return r.data&&(r.data=jt(r.data)),e.Sd(t,r)}}(i));return r.va(function(){return n},function(e){var t=2;if(e instanceof ye){if(7001==e.code)throw e;t=e.severity}throw new ye(t,1,1007,e)})}(n,e,t)}),s=Date.now(),l=0;i.promise.then(function(){l=Date.now()-s},function(){});var d=0;o.promise.then(function(){d=Date.now()},function(){});var u=a.va(function(t){var r=Date.now()-d,i=t.response;return i.timeMs+=l,i.timeMs+=r,t.Kg||!n.l||i.fromCache||e!=Pr||n.l(i.timeMs,i.data.byteLength),i},function(e){throw e&&(e.severity=2),e});return i=new Or(u.promise,function(){return u.abort()},r),Sr(this.s,i),i},H("shaka.net.NetworkingEngine",Er),Er.prototype.request=Er.prototype.request,Er.prototype.destroy=Er.prototype.destroy,Er.makeRequest=Tr,Er.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},Er.prototype.clearAllResponseFilters=Er.prototype.Wf,Er.prototype.unregisterResponseFilter=Er.prototype.rh,Er.prototype.registerResponseFilter=Er.prototype.ah,Er.prototype.clearAllRequestFilters=Er.prototype.Vf,Er.prototype.unregisterRequestFilter=Er.prototype.qh,Er.prototype.registerRequestFilter=Er.prototype.$g,Er.unregisterScheme=function(e){delete Ir[e]},Er.registerScheme=Mr,Er.prototype.setForceHTTPS=Er.prototype.Ee,Er.NumBytesRemainingClass=jr,g(Or,mr),Er.PendingRequest=Or;var Pr=1;Er.RequestType={MANIFEST:0,SEGMENT:Pr,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var Lr=3;Er.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Lr};var Ir={};function Nr(e){this.g=!1,this.h=new Dt,this.i=e}function Rr(e,t){if(e.g){if(t instanceof ye&&7003==t.code)throw t;throw new ye(2,7,7003,t)}}function Dr(){this.g=new Q}function Br(e,t,n,r){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(null==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter(function(e){return!n.has(e)}),function(e){var t=zr;if(null==t){t=!1;try{var n={},r={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",r),Object.defineProperty(n,"capture",r),r=function(){},e.addEventListener("test",r,n),e.removeEventListener("test",r,n)}catch(i){t=!1}zr=t}return t||!1}(e)?t:t.capture||!1}(e,r),this.target.addEventListener(t,n,this.g)}Nr.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then(function(){e.h.resolve()},function(){e.h.resolve()}))},(r=Dr.prototype).release=function(){this.Yb(),this.g=null},r.o=function(e,t,n,r){this.g&&(e=new Br(e,t,n,r),this.g.push(t,e))},r.Qa=function(e,t,n,r){var i=this;this.o(e,t,function r(o){i.Ta(e,t,r),n(o)},r)},r.Ta=function(e,t,n){if(this.g)for(var r=this.g.get(t)||[],i=(r=c(r)).next();!i.done;i=r.next())(i=i.value).target!=e||n!=i.listener&&n||(i.Ta(),this.g.remove(t,i))},r.Yb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,d(t.g[e]));for(n=(t=c(n)).next();!n.done;n=t.next())n.value.Ta();this.g.g={}}},H("shaka.util.EventManager",Dr),Dr.prototype.removeAll=Dr.prototype.Yb,Dr.prototype.unlisten=Dr.prototype.Ta,Dr.prototype.listenOnce=Dr.prototype.Qa,Dr.prototype.listen=Dr.prototype.o,Dr.prototype.release=Dr.prototype.release,Br.prototype.Ta=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var zr=void 0;function Fr(){}function Hr(e){return new oe(e=qt(e)).eb}function qr(e,t,n){function r(e){Pt(o).setUint32(a,e.byteLength,!0),a+=4,o.set(Ot(e),a),a+=e.byteLength}if(!n||!n.byteLength)throw new ye(2,6,6015);var i;i="string"==typeof t?Vt(t,!0):t,e=Vt(e=qt(e),!0);var o=new Uint8Array(12+e.byteLength+i.byteLength+n.byteLength),a=0;return r(e),r(i),r(n),o}function Ur(e){for(var t=new Map,n=c(Object.keys(e)),r=n.next();!r.done;r=n.next())r=r.value,t.set(r,e[r]);return t}function Vr(e){var t={};return e.forEach(function(e,n){t[n]=e}),t}function Xr(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=c(e),r=n.next();!r.done;r=n.next()){var i=c(r.value);if(r=i.next().value,i=i.next().value,!t.has(r))return!1;if((r=t.get(r))!=i||null==r)return!1}return!0}function Gr(e,t){var n=this;t=void 0===t?1:t,this.F=e,this.G=new Set,this.g=this.s=null,this.ia=this.ea=!1,this.I=0,this.i=null,this.h=new Dr,this.j=new Map,this.C=[],this.B=new Dt,this.m=null,this.l=function(t){n.B.reject(t),e.onError(t)},this.ka=new Map,this.$=new Map,this.P=new pn(function(){return function(e){var t=e.ka,n=e.$;n.clear(),t.forEach(function(e,t){return n.set(t,e)}),(t=Array.from(n.values())).length&&t.every(function(e){return"expired"==e})&&e.l(new ye(2,6,6014)),e.F.wd(Vr(n))}(n)}),this.L=!1,this.J=[],this.M=!1,this.ha=new pn(function(){!function(e){e.j.forEach(function(t,n){var r=t.pe,i=n.expiration;isNaN(i)&&(i=1/0),i!=r&&(e.F.onExpirationUpdated(n.sessionId,i),t.pe=i)})}(n)}).na(t),this.B.catch(function(){}),this.N=new Nr(function(){return function(e){return I(function(t){switch(t.g){case 1:return e.h.release(),e.h=null,e.B.reject(),e.ha.stop(),e.ha=null,e.P.stop(),e.P=null,w(t,ii(e),2);case 2:if(!e.g){t.D(3);break}return x(t,4),w(t,e.g.setMediaKeys(null),6);case 6:S(t,5);break;case 4:E(t);case 5:e.g=null;case 3:e.i=null,e.G.clear(),e.s=null,e.C=[],e.m=null,e.l=function(){},e.F=null,e.S=!1,k(t)}})}(n)}),this.S=!1}function Wr(e,t,n){return e.C=n,e.L=0<n.length,Jr(e,t)}function Jr(t,n){var r,i,o,a,s,l,d,u,h,f,p,m;return I(function(g){if(1==g.g){if(r=function(t){if(0==(t=Ur(t.m.clearKeys)).size)return null;var n=[],r=[];t.forEach(function(e,t){var i=Kt(t),o=Kt(e);i={kty:"oct",kid:Jt(i,!1),k:Jt(o,!1)},n.push(i),r.push(i.kid)}),t=JSON.stringify({keys:n});var i=JSON.stringify({kids:r});return i=[{initData:Ot(Ut(i)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:i,keyIds:new Set(r)}}(t))for(i=c(n),o=i.next();!o.done;o=i.next())(a=o.value).video&&(a.video.drmInfos=[r]),a.audio&&(a.audio.drmInfos=[r]);for((s=n.some(function(e){return!!(e.video&&e.video.drmInfos.length||e.audio&&e.audio.drmInfos.length)}))||(l=Ur(t.m.servers),function(e,t){var n=[];t.forEach(function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var r=c(e),i=r.next();!i.done;i=r.next())(i=i.value).video&&(i.video.drmInfos=n),i.audio&&(i.audio.drmInfos=n)}(n,l)),d=c(n),o=d.next();!o.done;o=d.next())for(u=o.value,h=ai(u),f=c(h),p=f.next();!p.done;p=f.next())ci(p.value,Ur(t.m.servers),Ur(t.m.advanced||{}));return w(g,Pn(n,t.L,t.S),2)}return s||Object.keys(t.m.servers).length?(m=$r(t,void 0,n),g.return(s?m:m.catch(function(){}))):(t.ea=!0,g.return(Promise.resolve()))})}function Zr(e){var t,n;return I(function(r){switch(r.g){case 1:if(!e.s||!e.i)return r.return();if(!e.i.serverCertificateUri||e.i.serverCertificate&&e.i.serverCertificate.length){r.D(2);break}return t=Tr([e.i.serverCertificateUri],e.m.retryParameters),x(r,3),w(r,e.F.Wb.request(5,t).promise,5);case 5:n=r.h,e.i.serverCertificate=Ot(n.data),S(r,4);break;case 3:throw new ye(2,6,6017,E(r));case 4:if(e.N.g)return r.return();case 2:return e.i.serverCertificate&&e.i.serverCertificate.length?(x(r,6),w(r,e.s.setServerCertificate(e.i.serverCertificate),8)):r.return();case 8:S(r,0);break;case 6:throw new ye(2,6,6004,E(r).message)}})}function Kr(e){for(var t=(e.i?e.i.initData:[])||[],n=c(t),r=n.next();!r.done;r=n.next())Yr(e,(r=r.value).initDataType,r.initData);for(r=(n=c(e.C)).next();!r.done;r=n.next())ei(e,r.value);return t.length||e.C.length||e.B.resolve(),e.B}function Yr(e,t,n){for(var r=e.j.values(),i=(r=c(r)).next();!i.done;i=r.next())if(Tt(n,i.value.initData)&&!kn("Tizen 2"))return;!function(e,t,n,r){try{var i=e.s.createSession(r)}catch(o){return void e.l(new ye(2,6,6005,o.message))}e.h.o(i,"message",function(t){e.g&&e.m.delayLicenseRequestUntilPlayed&&e.g.paused&&!e.M?e.J.push(t):ni(e,t)}),e.h.o(i,"keystatuseschange",function(t){return ri(e,t)}),e.j.set(i,{initData:n,loaded:!1,pe:1/0,jb:null,type:r});try{n=e.m.initDataTransform(n,t,e.i)}catch(o){return t=o,o instanceof ye||(t=new ye(2,6,6016,o)),void e.l(t)}e.m.logLicenseExchange&&Jt(n),i.generateRequest(t,n).catch(function(t){if(!e.N.g){e.j.delete(i);var n=t.errorCode;if(n&&n.systemCode){var r=n.systemCode;0>r&&(r+=Math.pow(2,32)),r="0x"+r.toString(16)}e.l(new ye(2,6,6006,t.message,t,r))}})}(e,t,n,e.i.sessionType)}function Qr(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function _r(e){return e=ee(e=e.j.keys(),function(e){return e.sessionId}),Array.from(e)}function $r(e,t,n){var r,i,o,a,s,l,d,u,h,f,p,m,g;return I(function(v){switch(v.g){case 1:if(r=new Map,n.length){i=function(e,t,n){for(var r=c(t),i=r.next();!i.done;i=r.next()){var o=c(ai(i.value));for(i=o.next();!i.done;i=o.next())i=i.value,n.has(i.keySystem)||n.set(i.keySystem,[]),n.get(i.keySystem).push(i)}if(1==n.size&&n.has(""))throw new ye(2,6,6e3);for(r={},e=c(e.m.preferredKeySystems),i=e.next();!i.done;r={Pd:r.Pd},i=e.next())for(r.Pd=i.value,o=c(t),i=o.next();!i.done;i=o.next())if(i=i.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.Pd}}(r)))return i.keySystemAccess;for(e=c([!0,!1]),i=e.next();!i.done;i=e.next())for(r=i.value,o=c(t),i=o.next();!i.done;i=o.next()){var a=c(i.value.decodingInfos);for(i=a.next();!i.done;i=a.next()){var s=i.value;if(s.supported&&s.keySystemAccess){var l=c(i=n.get(s.keySystemAccess.keySystem));for(i=l.next();!i.done;i=l.next())if(!!i.value.licenseServerUri==r)return s.keySystemAccess}}}return null}(e,n,r),v.D(2);break}return w(v,function(e,t){var n,r,i,o,a,s,l,d,u,h,f,p,m,g,v;return I(function(b){switch(b.g){case 1:if(1==t.size&&t.has(""))throw new ye(2,6,6e3);for(r=c(t.values()),i=r.next();!i.done;i=r.next())0==(o=i.value).audioCapabilities.length&&delete o.audioCapabilities,0==o.videoCapabilities.length&&delete o.videoCapabilities;a=c(e.m.preferredKeySystems),s=a.next();case 2:if(s.done){b.D(4);break}if(l=s.value,!t.has(l)){b.D(3);break}return d=t.get(l),x(b,6),w(b,navigator.requestMediaKeySystemAccess(l,[d]),8);case 8:return n=b.h,b.return(n);case 6:E(b);case 7:Rr(e.N);case 3:s=a.next(),b.D(2);break;case 4:u=c([!0,!1]),h=u.next();case 9:if(h.done){b.D(11);break}f=h.value,p=c(t.keys()),s=p.next();case 12:if(s.done){h=u.next(),b.D(9);break}if(m=s.value,g=t.get(m),v=g.drmInfos.some(function(e){return!!e.licenseServerUri}),v!=f){b.D(13);break}return x(b,15),w(b,navigator.requestMediaKeySystemAccess(m,[g]),17);case 17:return n=b.h,b.return(n);case 15:E(b);case 16:Rr(e.N);case 13:s=p.next(),b.D(12);break;case 11:return b.return(n)}})}(e,t),3);case 3:i=v.h;case 2:if(!(o=i))throw new ye(2,6,6001);for(Rr(e.N),x(v,4),e.G.clear(),a=o.getConfiguration(),s=a.audioCapabilities||[],l=a.videoCapabilities||[],d=c(s),u=d.next();!u.done;u=d.next())h=u.value,e.G.add(h.contentType.toLowerCase());for(f=c(l),u=f.next();!u.done;u=f.next())p=u.value,e.G.add(p.contentType.toLowerCase());if(n.length){var b=o.keySystem,y=r.get(o.keySystem),k=[],C=[],M=[],T=[],A=new Set;li(y,k,M,C,T,A);var j=e.L?"persistent-license":"temporary";for(b={keySystem:b,licenseServerUri:k[0],distinctiveIdentifierRequired:y[0].distinctiveIdentifierRequired,persistentStateRequired:y[0].persistentStateRequired,sessionType:y[0].sessionType||j,audioRobustness:y[0].audioRobustness||"",videoRobustness:y[0].videoRobustness||"",serverCertificate:M[0],serverCertificateUri:C[0],initData:T,keyIds:A},k=(y=c(y)).next();!k.done;k=y.next())(k=k.value).distinctiveIdentifierRequired&&(b.distinctiveIdentifierRequired=k.distinctiveIdentifierRequired),k.persistentStateRequired&&(b.persistentStateRequired=k.persistentStateRequired);y=b}else y=o.keySystem,b=t.get(o.keySystem),k=[],C=[],M=[],T=[],A=new Set,li(b.drmInfos,k,M,C,T,A),y={keySystem:y,licenseServerUri:k[0],distinctiveIdentifierRequired:"required"==b.distinctiveIdentifier,persistentStateRequired:"required"==b.persistentState,sessionType:b.sessionTypes[0]||"temporary",audioRobustness:(b.audioCapabilities?b.audioCapabilities[0].robustness:"")||"",videoRobustness:(b.videoCapabilities?b.videoCapabilities[0].robustness:"")||"",serverCertificate:M[0],serverCertificateUri:C[0],initData:T,keyIds:A};if(e.i=y,!e.i.licenseServerUri)throw new ye(2,6,6012,e.i.keySystem);return w(v,o.createMediaKeys(),6);case 6:return m=v.h,Rr(e.N),e.s=m,e.ea=!0,w(v,Zr(e),7);case 7:Rr(e.N),S(v,0);break;case 4:if(g=E(v),Rr(e.N,g),e.i=null,e.G.clear(),g instanceof ye)throw g;throw new ye(2,6,6002,g.message)}})}function ei(e,t){var n,r,i,o,a;return I(function(s){switch(s.g){case 1:try{n=e.s.createSession("persistent-license")}catch(l){return r=new ye(2,6,6005,l.message),e.l(r),s.return(Promise.reject(r))}return e.h.o(n,"message",function(t){e.g&&e.m.delayLicenseRequestUntilPlayed&&e.g.paused&&!e.M?e.J.push(t):ni(e,t)}),e.h.o(n,"keystatuseschange",function(t){return ri(e,t)}),i={initData:null,loaded:!1,pe:1/0,jb:null,type:"persistent-license"},e.j.set(n,i),x(s,2),w(s,n.load(t),4);case 4:return o=s.h,Rr(e.N),o?(i.loaded=!0,si(e)&&e.B.resolve(),s.return(n)):(e.j.delete(n),e.l(new ye(2,6,6013)),s.return(Promise.resolve()));case 2:a=E(s),Rr(e.N,a),e.j.delete(n),e.l(new ye(2,6,6005,a.message));case 3:return s.return(Promise.resolve())}})}function ti(e,t,n){return"skd"==t&&(t=n.serverCertificate,e=qr(e,n=Hr(e),t)),e}function ni(e,t){var n,r,i,o,a,s,l,d,u,h,f,p;I(function(m){switch(m.g){case 1:return n=t.target,e.m.logLicenseExchange&&Jt(t.message),r=e.j.get(n),i=e.i.licenseServerUri,o=e.m.advanced[e.i.keySystem],"individualization-request"==t.messageType&&o&&o.individualizationServer&&(i=o.individualizationServer),(a=Tr([i],e.m.retryParameters)).body=t.message,a.method="POST",a.licenseRequestType=t.messageType,a.sessionId=n.sessionId,Qr(e.i.keySystem)&&function(e){var t=Ht(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=c((t=(new DOMParser).parseFromString(t,"application/xml")).getElementsByTagName("HttpHeader")),r=n.next();!r.done;r=n.next())r=r.value,e.headers[r.getElementsByTagName("name")[0].textContent]=r.getElementsByTagName("value")[0].textContent;e.body=Zt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(a),s=Date.now(),x(m,2),w(m,e.F.Wb.request(2,a).promise,4);case 4:l=m.h,S(m,3);break;case 2:return d=E(m),u=new ye(2,6,6007,d),e.l(u),r&&r.jb&&r.jb.reject(u),m.return();case 3:return e.N.g?m.return():(e.I+=(Date.now()-s)/1e3,e.m.logLicenseExchange&&Jt(l.data),x(m,5),w(m,n.update(l.data),7));case 7:S(m,6);break;case 5:return h=E(m),f=new ye(2,6,6008,h.message),e.l(f),r&&r.jb&&r.jb.reject(f),m.return();case 6:p=new q("drmsessionupdate"),e.F.onEvent(p),r&&(r.jb&&r.jb.resolve(),new pn(function(){r.loaded=!0,si(e)&&e.B.resolve()}).U(ui)),k(m)}})}function ri(e,t){var n=t.target,r=e.j.get(n),i=!1;n.keyStatuses.forEach(function(t,n){if("string"==typeof n){var o=n;n=t,t=o}if(Qr(e.i.keySystem)&&16==n.byteLength&&navigator.userAgent.match(/Edge?\//)){var a=(o=Pt(n)).getUint32(0,!0),s=o.getUint16(4,!0),l=o.getUint16(6,!0);o.setUint32(0,a,!1),o.setUint16(4,s,!1),o.setUint16(6,l,!1)}"status-pending"!=t&&(r.loaded=!0),"expired"==t&&(i=!0),o=Yt(n),e.ka.set(o,t)});var o=n.expiration-Date.now();(0>o||i&&1e3>o)&&r&&!r.jb&&(e.j.delete(n),n.close().catch(function(){})),si(e)&&(e.B.resolve(),e.P.U(hi))}function ii(e){var t;return I(function(n){return t=Array.from(e.j.entries()),e.j.clear(),w(n,Promise.all(t.map(function(t){var n=(t=c(t)).next().value,r=t.next().value;return I(function(t){return 1==t.g?(x(t,2),e.ia||e.C.includes(n.sessionId)||"persistent-license"!==r.type?w(t,function(e){var t;return I(function(n){return 1==n.g?(t=new Promise(function(e,t){new pn(t).U(di)}),x(n,2),w(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?S(n,0):(E(n),void k(n))})}(n),5):w(t,n.remove(),5)):2!=t.g?S(t,0):(E(t),void k(t))})})),0)})}function oi(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],r=c(e),i=r.next();!i.done;i=r.next()){i=i.value;for(var o={},a=c(t),s=a.next();!s.done;o={Za:o.Za},s=a.next())if(s=s.value,i.keySystem==s.keySystem){o.Za=[],o.Za=o.Za.concat(i.initData||[]),o.Za=o.Za.concat(s.initData||[]),o.Za=o.Za.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Za.findIndex(function(e){return e.keyId===t.keyId})}}(o)),a=i.keyIds&&s.keyIds?new Set([].concat(d(i.keyIds),d(s.keyIds))):i.keyIds||s.keyIds,n.push({keySystem:i.keySystem,licenseServerUri:i.licenseServerUri||s.licenseServerUri,distinctiveIdentifierRequired:i.distinctiveIdentifierRequired||s.distinctiveIdentifierRequired,persistentStateRequired:i.persistentStateRequired||s.persistentStateRequired,videoRobustness:i.videoRobustness||s.videoRobustness,audioRobustness:i.audioRobustness||s.audioRobustness,serverCertificate:i.serverCertificate||s.serverCertificate,serverCertificateUri:i.serverCertificateUri||s.serverCertificateUri,initData:o.Za,keyIds:a});break}}return n}function ai(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function si(e){return function(e,t){for(var n=c(e),r=n.next();!r.done;r=n.next())if(!t(r.value))return!1;return!0}(e=e.j.values(),function(e){return e.loaded})}function li(e,t,n,r,i,o){for(var a={},s=(e=c(e)).next();!s.done;a={La:a.La},s=e.next()){if(a.La=s.value,t.includes(a.La.licenseServerUri)||t.push(a.La.licenseServerUri),r.includes(a.La.serverCertificateUri)||r.push(a.La.serverCertificateUri),a.La.serverCertificate&&(n.some(function(e){return function(t){return Tt(t,e.La.serverCertificate)}}(a))||n.push(a.La.serverCertificate)),a.La.initData){s={};for(var l=c(a.La.initData),d=l.next();!d.done;s={dd:s.dd},d=l.next())s.dd=d.value,i.some(function(e){return function(t){var n=e.dd;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&Tt(t.initData,n.initData)}}(s))||i.push(s.dd)}if(a.La.keyIds)for(l=(s=c(a.La.keyIds)).next();!l.done;l=s.next())o.add(l.value)}}function ci(t,n,r){!t.keySystem||"org.w3.clearkey"==t.keySystem&&t.licenseServerUri||(n.size&&(n=n.get(t.keySystem)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(r=r.get(t.keySystem))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=r.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=r.persistentStateRequired),t.videoRobustness||(t.videoRobustness=r.videoRobustness),t.audioRobustness||(t.audioRobustness=r.audioRobustness),t.serverCertificate||(t.serverCertificate=r.serverCertificate),r.sessionType&&(t.sessionType=r.sessionType),t.serverCertificateUri||(t.serverCertificateUri=r.serverCertificateUri)),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==t.keySystem&&(t.keySystem="com.chromecast.playready"))}H("shaka.util.FairPlayUtils",Fr),Fr.initDataTransform=qr,Fr.defaultGetContentId=Hr,(r=Gr.prototype).destroy=function(){return this.N.destroy()},r.configure=function(e){this.m=e},r.Hc=function(e){var t,n=this;return I(function(r){if(1==r.g)return n.s?(n.g=e,n.h.Qa(n.g,"play",function(){for(var e=c(n.J),t=e.next();!t.done;t=e.next())ni(n,t.value);n.M=!0,n.J=[]}),"webkitCurrentPlaybackTargetIsWireless"in n.g&&n.h.o(n.g,"webkitcurrentplaybacktargetiswirelesschanged",function(){return ii(n)}),w(r,n.g.setMediaKeys(n.s).catch(function(e){return Promise.reject(new ye(2,6,6003,e.message))}),2)):(n.h.Qa(e,"encrypted",function(){n.l(new ye(2,6,6010))}),r.return());Rr(n.N),Kr(n),n.i.initData.length||n.C.length||(t=function(e){return Yr(n,e.initDataType,Ot(e.initData))},n.h.o(n.g,"encrypted",t)),k(r)})},r.Lc=function(){for(var e=1/0,t=this.j.keys(),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},r.qd=function(){return Vr(this.$)};var di=1,ui=5,hi=.5,fi=new Bt(function(){return jt(new Uint8Array([0]))});function pi(){}function mi(e,t,n,r){var i,o,a,s;return I(function(l){if(1==l.g)return r&&(i=bi[r.toLowerCase()])?l.return(i):(o=vi(e))&&(a=yi[o])?l.return(a):r?l.D(2):w(l,gi(e,t,n),3);if(2!=l.g&&(r=l.h)&&(s=bi[r]))return l.return(s);throw new ye(2,4,4e3,e)})}function gi(e,t,n){var r,i,o;return I(function(a){return 1==a.g?((r=Tr([e],n)).method="HEAD",w(a,t.request(0,r).promise,2)):(i=a.h,o=i.headers["content-type"],a.return(o?o.toLowerCase().split(";").shift():""))})}function vi(e){return 1==(e=new oe(e).Sa.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}H("shaka.media.ManifestParser",pi),pi.unregisterParserByMime=function(e){delete bi[e]},pi.registerParserByMime=function(e,t){bi[e]=t},pi.registerParserByExtension=function(e,t){yi[e]=t};var bi={},yi={};function wi(e,t){this.X=Pt(e),this.h=t==xi,this.g=0}function ki(){return new ye(2,3,3e3)}(r=wi.prototype).Ia=function(){return this.g<this.X.byteLength},r.qa=function(){return this.g},r.og=function(){return this.X.byteLength},r.ra=function(){try{var e=this.X.getUint8(this.g);return this.g+=1,e}catch(t){throw ki()}},r.wc=function(){try{var e=this.X.getUint16(this.g,this.h);return this.g+=2,e}catch(t){throw ki()}},r.T=function(){try{var e=this.X.getUint32(this.g,this.h);return this.g+=4,e}catch(t){throw ki()}},r.wf=function(){try{var e=this.X.getInt32(this.g,this.h);return this.g+=4,e}catch(t){throw ki()}},r.xc=function(){try{if(this.h)var e=this.X.getUint32(this.g,!0),t=this.X.getUint32(this.g+4,!0);else t=this.X.getUint32(this.g,!1),e=this.X.getUint32(this.g+4,!1)}catch(n){throw ki()}if(2097151<t)throw new ye(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},r.Lb=function(e){if(this.g+e>this.X.byteLength)throw ki();var t=Ot(this.X,this.g,e);return this.g+=e,t},r.skip=function(e){if(this.g+e>this.X.byteLength)throw ki();this.g+=e},r.yf=function(e){if(this.g<e)throw ki();this.g-=e},r.seek=function(e){if(0>e||e>this.X.byteLength)throw ki();this.g=e},r.Wc=function(){for(var e=this.g;this.Ia()&&0!=this.X.getUint8(this.g);)this.g+=1;return e=Ot(this.X,e,this.g-e),this.g+=1,Ft(e)},H("shaka.util.DataViewReader",wi),wi.prototype.readTerminatedString=wi.prototype.Wc,wi.prototype.seek=wi.prototype.seek,wi.prototype.rewind=wi.prototype.yf,wi.prototype.skip=wi.prototype.skip,wi.prototype.readBytes=wi.prototype.Lb,wi.prototype.readUint64=wi.prototype.xc,wi.prototype.readInt32=wi.prototype.wf,wi.prototype.readUint32=wi.prototype.T,wi.prototype.readUint16=wi.prototype.wc,wi.prototype.readUint8=wi.prototype.ra,wi.prototype.getLength=wi.prototype.og,wi.prototype.getPosition=wi.prototype.qa,wi.prototype.hasMoreData=wi.prototype.Ia;var xi=1;function Ci(){this.i=[],this.h=[],this.g=!1}function Si(e){for(var t=ji(e);e.reader.Ia()&&!e.parser.g;)e.parser.yd(e.start+t,e.reader,e.partialOkay)}function Ei(e){for(var t=ji(e),n=e.reader.T(),r=(n=c(ne(n))).next();!r.done&&(e.parser.yd(e.start+t,e.reader,e.partialOkay),!e.parser.g);r=n.next());}function Mi(e){return function(t){e(t.reader.Lb(t.reader.X.byteLength-t.reader.qa()))}}function Ti(e){for(var t=0,n=(e=c(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function Ai(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function ji(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}wi.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:xi},(r=Ci.prototype).box=function(e,t){var n=Ti(e);return this.i[n]=Oi,this.h[n]=t,this},r.Z=function(e,t){var n=Ti(e);return this.i[n]=Pi,this.h[n]=t,this},r.stop=function(){this.g=!0},r.parse=function(e,t,n){for(e=new wi(e,0),this.g=!1;e.Ia()&&!this.g;)this.yd(0,e,t,n)},r.yd=function(e,t,n,r){var i=t.qa();if(r&&i+8>t.X.byteLength)this.g=!0;else{var o=t.T(),a=t.T(),s=!1;switch(o){case 0:o=t.X.byteLength-i;break;case 1:if(r&&t.qa()+8>t.X.byteLength)return void(this.g=!0);o=t.xc(),s=!0}var l=this.h[a];if(l){var c=null,d=null;if(this.i[a]==Pi){if(r&&t.qa()+4>t.X.byteLength)return void(this.g=!0);c=(d=t.T())>>>24,d&=16777215}a=i+o,n&&a>t.X.byteLength&&(a=t.X.byteLength),r&&a>t.X.byteLength?this.g=!0:(r=a-t.qa(),l({parser:this,partialOkay:n||!1,version:c,flags:d,reader:t=new wi(t=0<r?t.Lb(r):new Uint8Array(0),0),size:o,start:i+e,has64BitSize:s}))}else t.skip(Math.min(i+o-t.qa(),t.X.byteLength-t.qa()))}},H("shaka.util.Mp4Parser",Ci),Ci.headerSize=ji,Ci.typeToString=Ai,Ci.allData=Mi,Ci.sampleDescription=Ei,Ci.children=Si,Ci.prototype.parseNext=Ci.prototype.yd,Ci.prototype.parse=Ci.prototype.parse,Ci.prototype.stop=Ci.prototype.stop,Ci.prototype.fullBox=Ci.prototype.Z,Ci.prototype.box=Ci.prototype.box;var Oi=0,Pi=1;function Li(e,t,n,r,i){var o=Ni.value(),a=e.subarray(n.start,n.start+n.size),s=Pt(a),l=new Uint8Array(n.size+o.byteLength);for(l.set(a,0),(a=Pt(l)).setUint32(4,i),l.set(o,n.size),i=s.getUint32(4),a.setUint32(n.size+16,i),Ii(l,0,l.byteLength),i=new Uint8Array(e.byteLength+l.byteLength),n=kn("Xbox One")?n.start:n.start+n.size,o=e.subarray(n),i.set(e.subarray(0,n)),i.set(l,n),i.set(o,n+l.byteLength),r=(e=c(r)).next();!r.done;r=e.next())Ii(i,(r=r.value).start,r.size+l.byteLength);return l=Pt(i,t.start),t=ji(t),e=l.getUint32(t),l.setUint32(t,e+1),i}function Ii(e,t,n){0!=(t=(e=Pt(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var Ni=new Bt(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Ri(e,t,n,r,i){if(r>=i)return null;for(var o=-1,a=-1,s=0;s<n.length;s++)if(n[s].some(function(e){return null!=e&&""!=e.g.trim()})){o=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some(function(e){return null!=e&&""!=e.g.trim()})){a=s;break}if(-1===o||-1===a)return null;for(var l=s=!1,c="white",d="black",u=Di(r,i,s,l,c,d);o<=a;o++){for(var h=n[o],f=-1,p=-1,m=0;m<h.length;m++)if(null!=h[m]&&""!==h[m].g.trim()){f=m;break}for(m=h.length-1;0<=m;m--)if(null!=h[m]&&""!==h[m].g.trim()){p=m;break}if(-1===f||-1===p)h=Bi(r,i),e.nestedCues.push(h);else{for(;f<=p;f++)if(m=h[f]){var g=m.l,v=m.i,b=m.j,y=m.h;g==s&&v==l&&b==c&&y==d||(u.payload&&e.nestedCues.push(u),u=Di(r,i,g,v,b,y),s=g,l=v,c=b,d=y),u.payload+=m.g}else u.payload+=" ";u.payload&&e.nestedCues.push(u),o!==a&&(u=Bi(r,i),e.nestedCues.push(u)),u=Di(r,i,s,l,c,d)}}return e.nestedCues.length?{cue:e,stream:t}:null}function Di(e,t,n,r,i,o){return e=new at(e,t,""),n&&e.textDecoration.push("underline"),r&&(e.fontStyle="italic"),e.color=i,e.backgroundColor=o,e}function Bi(e,t){var n=new at(e,t,"");return n.lineBreak=!0,n}function zi(e,t,n,r,i){this.g=e,this.l=t,this.i=n,this.h=r,this.j=i}function Fi(e,t){this.i=[],this.g=1,this.h=0,this.G=e,this.C=t,this.j=this.s=!1,this.l="white",this.B="black",qi(this)}function Hi(e,t,n){return Ri(new at(t,n,""),"CC"+(e.G<<1|e.C+1),e.i,t,n)}function qi(e){Xi(e,0,15),e.g=1}function Ui(e,t,n){if(!(32>n||127<n)){var r="";switch(t){case Gi:r=Ki.has(n)?Ki.get(n):String.fromCharCode(n);break;case Wi:r=Yi.get(n);break;case Ji:e.i[e.g].pop(),r=Qi.get(n);break;case Zi:e.i[e.g].pop(),r=_i.get(n)}r&&e.i[e.g].push(new zi(r,e.s,e.j,e.B,e.l))}}function Vi(e,t,n,r){if(t>=n)for(--r;0<=r;r--)e.i[t+r]=e.i[n+r].map(function(e){return e});else for(var i=0;i<r;i++)e.i[t+i]=e.i[n+i].map(function(e){return e})}function Xi(e,t,n){for(var r=0;r<=n;r++)e.i[t+r]=[]}var Gi=0,Wi=1,Ji=2,Zi=3,Ki=new Map([[39,"’"],[42,"á"],[92,"é"],[92,"é"],[94,"í"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"█"]]),Yi=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"™"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à"],[57,"⠀"],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),Qi=new Map([[32,"Á"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ü"],[37,"ü"],[38,"‘"],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"℠"],[45,"·"],[46,"“"],[47,"”"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"Î"],[56,"Ï"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),_i=new Map([[32,"Ã"],[33,"ã"],[34,"Í"],[35,"Ì"],[36,"ì"],[37,"Ò"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"¥"],[54,"¤"],[55,"│"],[56,"Å"],[57,"å"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"┐"],[62,"└"],[63,"┘"]]);function $i(e,t){this.h=ro,this.B=new Fi(e,t),this.i=new Fi(e,t),this.l=new Fi(e,t),this.g=this.i,this.j=0,this.s=null}function eo(e,t,n){e.g=e.i;var r=e.g,i=null;return e.h!==oo&&e.h!==ao&&(i=Hi(r,e.j,n),(n=e.i).g=0<n.h?n.h:0,Xi(n,0,15),(n=e.l).g=0<n.h?n.h:0,Xi(n,0,15),r.g=15),e.h=oo,r.h=t,i}function to(e){e.h=io,e.g=e.l,e.g.h=0}function no(e){W("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.B,e.h=ao}var ro=0,io=1,oo=3,ao=4,so="black green blue cyan red yellow magenta black".split(" "),lo="white green blue cyan red yellow magenta white_italics".split(" ");function co(){this.l=!1,this.I=this.L=0,this.J=bo,this.i=[],this.g=this.h=this.j=0,this.G=this.B=!1,this.C="white",this.s="black",uo(this)}function uo(e){e.i=[];for(var t=0;15>t;t++)e.i.push(ho())}function ho(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function fo(e,t){po(e)&&(e.i[e.h][e.g]=new zi(t,e.G,e.B,e.s,e.C),e.g++)}function po(e){var t=e.g<e.I&&0<=e.g;return e.h<e.L&&0<=e.h&&t}function mo(e,t,n){var r=new at(e.j,t,"");return r.textAlign=e.J===go?"left":e.J===vo?"right":ct,(n=Ri(r,"svc"+n,e.i,e.j,t))&&(e.j=t),n}co.prototype.isVisible=function(){return this.l};var go=0,vo=1,bo=2;function yo(){this.i=[],this.h=null,this.g=0}function wo(e,t){3===t.type?(e.g=2*(63&t.value)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),0===e.g&&(e.i.push(new ko(e.h)),e.h=null,e.g=0))}function ko(e){this.g=0,this.h=e}function xo(e){if(!e.Ia())throw new ye(2,2,3e3);return e.h[e.g++]}function Co(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function So(e,t,n,r){if(128<=n&&135>=n)r=7&n,e.h[r]&&(e.g=e.h[r]);else{if(136===n){n=xo(t).value,t=null;for(var i=(n=c(Eo(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=mo(i,r,e.i)),uo(i);return t}if(137===n)for(t=xo(t).value,n=(t=c(Eo(e,t))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=r),n.l=!0;else{if(138===n){for(n=xo(t).value,t=null,i=(n=c(Eo(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()&&(t=mo(i,r,e.i)),i.l=!1;return t}if(139===n){for(n=xo(t).value,t=null,i=(n=c(Eo(e,n))).next();!i.done;i=n.next())(i=e.h[i.value]).isVisible()?t=mo(i,r,e.i):i.j=r,i.l=!i.l;return t}if(140===n)return Mo(e,t=xo(t).value,r);if(143===n)return r=Mo(e,255,r),To(e),r;if(144===n)t.skip(1),r=xo(t).value,e.g&&(e.g.B=0<(128&r),e.g.G=0<(64&r));else if(145===n)r=xo(t).value,n=xo(t).value,t.skip(1),e.g&&(t=Ao((48&n)>>4,(12&n)>>2,3&n),e.g.C=Ao((48&r)>>4,(12&r)>>2,3&r),e.g.s=t);else if(146===n)r=xo(t).value,t=xo(t).value,e.g&&((e=e.g).h=15&r,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),r=xo(t).value,t.skip(1),e.g&&(e.g.J=3&r);else if(152<=n&&159>=n){if(n=(15&n)-8,!(i=null!==e.h[n])){var o=new co;o.j=r,e.h[n]=o}r=xo(t).value,xo(t),xo(t),o=xo(t).value;var a=xo(t).value;t=xo(t).value,i&&!(7&t)||((t=e.h[n]).h=0,t.g=0,t.G=!1,t.B=!1,t.C="white",t.s="black"),(t=e.h[n]).l=0<(32&r),t.L=1+(15&o),t.I=1+(63&a),e.g=e.h[n]}}}return null}ko.prototype.Ia=function(){return this.g<this.h.length},ko.prototype.qa=function(){return this.g},ko.prototype.skip=function(e){if(this.g+e>this.h.length)throw new ye(2,2,3e3);this.g+=e};var Eo=function e(t,n){var r;return L(e,function(e){return 1==e.g&&(r=0),5!=e.g?8>r?1&~n||!t.h[r]?e.D(5):w(e,r,5):e.D(0):(n>>=1,r++,e.D(2))})};function Mo(e,t,n){for(var r=null,i=(t=c(Eo(e,t))).next();!i.done;i=t.next()){i=i.value;var o=e.h[i];o.isVisible()&&(r=mo(o,n,e.i)),e.h[i]=null}return r}function To(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function Ao(e,t,n){var r={0:0,1:0,2:1,3:1};return Oo[(e=r[e])<<2|(t=r[t])<<1|(n=r[n])]}var jo=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),Oo="black blue green cyan red magenta yellow white".split(" ");function Po(){this.h=[],this.g=[],this.i=new yo,this.l=0,this.C=new Map([["CC1",new $i(0,0)],["CC2",new $i(0,1)],["CC3",new $i(1,0)],["CC4",new $i(1,1)]]),this.B=this.s=0,this.j=new Map,Lo(this)}function Lo(e){e.s=0,e.B=0;for(var t=(e=c(e.C.values())).next();!t.done;t=e.next())(t=t.value).h=2,t.g=t.i,t.s=null,qi(t.i),qi(t.l),qi(t.B)}function Io(e,t){var n=t.type;if(16==(112&t.Wa)){var r=t.Wa>>3&1;0===n?e.s=r:e.B=r}if(n=e.C.get("CC"+(n<<1|(n?e.B:e.s)+1)),255===t.Wa&&255===t.rb||!t.Wa&&!t.rb||!Ro(t.Wa)||!Ro(t.rb))return 45<=++e.l&&Lo(e),null;if(e.l=0,t.Wa&=127,t.rb&=127,!t.Wa&&!t.rb)return null;if(r=null,16==(112&t.Wa))e:{var i=t.Wa;if(r=t.rb,n.s===(i<<8|r))n.s=null;else if(n.s=i<<8|r,16==(240&i)&&64==(192&r)){i=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&i)<<1|r>>5&1];var o=(30&r)>>1,a="white",s=!1;if(7>o?a=lo[o]:7===o&&(s=!0),r=!(1&~r),n.h!==ao){if(o=n.g,n.h===oo&&i!==o.g){var l=1+i-o.h;Vi(o,l,1+o.g-o.h,o.h),Xi(o,0,l-1),Xi(o,i+1,15-i)}o.g=i,n.g.s=r,n.g.j=s,n.g.l=a,n.g.B="black"}}else if(17==(247&i)&&32==(240&r))n.g.s=!1,n.g.j=!1,n.g.l="white",Ui(n.g,Gi,32),a=!1,"white_italics"===(i=lo[(14&r)>>1])&&(i="white",a=!0),n.g.s=!(1&~r),n.g.j=a,n.g.l=i;else if(16==(247&i)&&32==(240&r)||23==(247&i)&&45==(255&r))a="black",!(7&i)&&(a=so[(14&r)>>1]),n.g.B=a;else if(17==(247&i)&&48==(240&r))Ui(n.g,Wi,r);else if(18==(246&i)&&32==(224&r))Ui(n.g,1&i?Zi:Ji,r);else if(20==(246&i)&&32==(240&r)){switch(r=t.pts,i=null,t.rb){case 32:to(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:i=eo(n,2,r);break;case 38:i=eo(n,3,r);break;case 39:i=eo(n,4,r);break;case 40:Ui(n.g,Gi,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=r;break;case 42:qi(n.B),no(n);break;case 43:no(n);break;case 44:i=n.i,a=null,n.h!==ao&&(a=Hi(i,n.j,r)),Xi(i,0,15),i=a;break;case 45:i=n.g,n.h!==oo?i=null:(a=Hi(i,n.j,r),Vi(i,(s=i.g-i.h+1)-1,s,i.h),Xi(i,0,s-1),Xi(i,i.g,15-i.g),n.j=r,i=a);break;case 46:Xi(n.l,0,15);break;case 47:i=null,n.h!==ao&&(i=Hi(n.i,n.j,r)),a=n.l,n.l=n.i,n.i=a,to(n),n.j=r}r=i;break e}r=null}else i=t.rb,Ui(n.g,Gi,t.Wa),Ui(n.g,Gi,i);return r}function No(e,t){var n=[];try{for(;t.Ia();){var r=xo(t).value,i=(224&r)>>5,o=31&r;if(7===i&&0!=o&&(i=63&xo(t).value),0!=i){e.j.has(i)||e.j.set(i,new Co(i));for(var a=e.j.get(i),s=t.qa();t.qa()-s<o;){var l=xo(i=t),c=l.value,d=l.pts;if(16===c&&(c=c<<16|xo(i).value),0<=c&&31>=c){var u=d;if(a.g){var h=a.g;switch(i=null,c){case 8:!po(h)||0>=h.g&&0>=h.h||(0>=h.g?(h.g=h.I-1,h.h--):h.g--,h.i[h.h][h.g]=null);break;case 13:if(h.isVisible()&&(i=mo(h,u,a.i)),h.h+1>=h.L){u=h;for(var f=0,p=1;15>p;p++,f++)u.i[f]=u.i[p];for(p=0;1>p;p++,f++)u.i[f]=ho()}else h.h++;h.g=0;break;case 14:h.isVisible()&&(i=mo(h,u,a.i)),h.i[h.h]=ho(),h.g=0;break;case 12:h.isVisible()&&(i=mo(h,u,a.i)),uo(h),(u=h).h=0,u.g=0}var m=i}else m=null}else if(128<=c&&159>=c)m=So(a,i,c,d);else{if(4096<=c&&4127>=c)8<=(u=255&c)&&15>=u?i.skip(1):16<=u&&23>=u?i.skip(2):24<=u&&31>=u&&i.skip(3);else if(4224<=c&&4255>=c)128<=(u=255&c)&&135>=u?i.skip(4):136<=u&&143>=u&&i.skip(5);else if(32<=c&&127>=c)i=c,a.g&&fo(a.g,127===i?"♪":String.fromCharCode(i));else if(160<=c&&255>=c)a.g&&fo(a.g,String.fromCharCode(c));else if(4128<=c&&4223>=c){if(i=255&c,a.g)if(jo.has(i)){var g=jo.get(i);fo(a.g,g)}else fo(a.g,"_")}else 4256<=c&&4351>=c&&a.g&&fo(a.g,160!=(255&c)?"_":"[CC]");m=null}(i=m)&&n.push(i)}}}}catch(v){if(!(v instanceof ye&&3e3===v.code))throw v;W("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function Ro(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function Do(){}var Bo=function e(t,n){var r,i,o,a;return L(e,function(e){if(1==e.g){for(var t=n,s=0,l=0;l<t.length;)2==s&&3==t[l]?(s=0,(t=[].concat(d(t))).splice(l,1),t=new Uint8Array(t)):0==t[l]?s++:s=0,l++;r=t,i=0}if(4!=e.g){if(!(i<r.length))return e.D(0);for(o=0;255==r[i];)o+=255,i++;for(o+=r[i++],a=0;255==r[i];)a+=255,i++;return a+=r[i++],4!=o?e.D(4):w(e,r.subarray(i,i+a),4)}return i+=a,e.D(2)})};function zo(e,t){var n=null,r=null,i=e.T();return 1&t&&e.skip(8),2&t&&e.skip(4),8&t&&(n=e.T()),16&t&&(r=e.T()),{trackId:i,cf:n,Yf:r}}function Fo(e,t){return{Xd:1==t?e.xc():e.T()}}function Ho(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),{timescale:e.T()}}function qo(e,t,n){var r=e.T(),i=[];1&n&&e.skip(4),4&n&&e.skip(4);for(var o=c(ne(r)),a=o.next();!a.done;a=o.next())a={ye:null,sampleSize:null,Cd:null},256&n&&(a.ye=e.T()),512&n&&(a.sampleSize=e.T()),1024&n&&e.skip(4),2048&n&&(a.Cd=0==t?e.T():e.wf()),i.push(a);return{Vi:r,zf:i}}function Uo(){this.j=new Do,this.i=new Map,this.h=this.g=0}function Vo(){this.h=new Uo,this.g=new Po}function Xo(e,t){for(var n=e.h.parse(t),r=(n=c(n)).next();!r.done;r=n.next()){var i=r.value,o=Ot(i.Wg);if(0<o.length&&(r=e.g,i=i.pts,181===(o=new wi(o,0)).ra()&&49===o.wc()&&1195456820===o.T()&&3===o.ra())){var a=o.ra();if(64&a){a&=31,o.skip(1);for(var s=0;s<a;s++){var l=o.ra(),u=(4&l)>>2,h=o.ra(),f=o.ra();u&&(0==(l&=3)||1===l?r.h.push({pts:i,type:l,Wa:h,rb:f,order:r.h.length}):(r.g.push({pts:i,type:l,value:h,order:r.g.length}),r.g.push({pts:i,type:2,value:f,order:r.g.length})))}}}}return function(e){function t(e,t){return e.pts-t.pts||e.order-t.order}var n=[];e.h.sort(t),e.g.sort(t);for(var r=c(e.h),i=r.next();!i.done;i=r.next())(i=Io(e,i.value))&&n.push(i);for(i=(r=c(e.g)).next();!i.done;i=r.next())wo(e.i,i.value);for(i=(r=c(e.i.i)).next();!i.done;i=r.next())i=No(e,i.value),n.push.apply(n,d(i));return e.i.i=[],e.h=[],e.g=[],n}(e.g)}function Go(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function Wo(e,t,n){return n=void 0===n?0:n,!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t+n>=e.start(0)}function Jo(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,r=c(Zo(e)),i=r.next();!i.done;i=r.next()){var o=i.value;i=o.start,(o=o.end)>t&&(n+=o-Math.max(i,t))}return n}function Zo(e){if(!e)return[];for(var t=[],n=c(ne(e.length)),r=n.next();!r.done;r=n.next())r=r.value,t.push({start:e.start(r),end:e.end(r)});return t}function Ko(e,t,n,r){var i=this;this.g=e,this.s=n,this.j={},this.L={},this.i=null,this.M=r||function(){},this.l={},this.h=new Dr,this.C={},this.G=t,this.I=new Dt,this.B=function(e,t){var n=new MediaSource;return e.h.Qa(n,"sourceopen",function(){URL.revokeObjectURL(e.J),t.resolve()}),e.J=ca(n),e.g.src=e.J,n}(this,this.I),this.N=new Nr(function(){return function(e){var t,n,r,i,o,a,s;return I(function(l){if(1==l.g){for(n in t=[],e.l)for(r=e.l[n],i=r[0],e.l[n]=r.slice(0,1),i&&t.push(i.p.catch(Me)),o=c(r.slice(1)),a=o.next();!a.done;a=o.next())a.value.p.reject(new ye(2,7,7003,void 0));for(s in e.i&&t.push(e.i.destroy()),e.s&&t.push(e.s.destroy()),e.C)t.push(e.C[s].destroy());return w(l,Promise.all(t),2)}e.h&&(e.h.release(),e.h=null),e.g&&(e.g.removeAttribute("src"),e.g.load(),e.g=null),e.B=null,e.i=null,e.s=null,e.j={},e.C={},e.G=null,e.l={},k(l)})}(i)}),this.J=""}function Yo(e,t){e.i||(e.i=new sn(e.s)),"application/cea-608"!=t&&"application/cea-708"!=t&&(e.i.C=Ae(hn[t]))}function Qo(e){return!e.B||"ended"==e.B.readyState}function _o(e,t){if(t==Ie)var n=e.i.g;else n=!(n=ea(e,t))||1==n.length&&1e-6>n.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function $o(e,t){return t==Ie?e.i.h:Go(ea(e,t))}function ea(e,t){try{return e.j[t].buffered}catch(n){return null}}function ta(e,t,n,r,i,o){var a,s,l,d,u,h,f,p;return I(function(m){return 1==m.g?t==(a=Ne).ua?w(m,function(e,t,n,r){var i,o,a;return I(function(s){return 1==s.g?w(s,Promise.resolve(),2):e.C&&e.i?null==n||null==r?(e.C.parseInit(Ot(t)),s.return()):(i={periodStart:e.G,segmentStart:n,segmentEnd:r},o=e.C.parseMedia(Ot(t),i),a=o.filter(function(t){return t.startTime>=e.j&&t.startTime<e.l}),e.i.append(a),null==e.g&&(e.g=Math.max(n,e.j)),e.h=Math.min(r,e.l),void k(s)):s.return()})}(e.i,n,r,i),0):e.C[t]?w(m,function(e,t){e.l=!0,e.h=new Dt,e.s=[],e.j=[],e.i=[];var n=Ot(t);return e.g.push(n),e.g.flush(),e.l&&e.h.reject(new ye(2,3,3018)),e.h}(e.C[t],n),10):o?(e.i||Yo(e,"text/vtt"),null==r&&null==i?e.G.init(n):(s=Xo(e.G,n)).length&&(l=e.j[a.mb].timestampOffset,un(e.i,s,r,i,l)),n=la(e,n,r,t),w(m,ia(e,t,function(){e.j[t].appendBuffer(n)}),0)):(n=la(e,n,r,t),w(m,ia(e,t,function(){e.j[t].appendBuffer(n)}),0)):(d=m.h,e.i||Yo(e,"text/vtt"),d.metadata&&(u=e.j[t].timestampOffset,e.M(d.metadata,u,i)),d.captions&&d.captions.length&&(h=e.j[a.mb].timestampOffset,f=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())n=n.value,t.push({stream:n.stream,cue:new at(n.startTime,n.endTime,n.text)});return t}(d.captions),un(e.i,f,r,i,h)),p=d.data,p=la(e,p,r,t),w(m,ia(e,t,function(){e.j[t].appendBuffer(p)}),0))})}function na(e,t){return I(function(n){return t==Ne.ua?e.i?w(n,e.i.remove(0,1/0),0):n.return():w(n,ia(e,t,function(){var n=e.B.duration;0>=n?ra(e,t):e.j[t].remove(0,n)}),0)})}function ra(e,t){var n=e.l[t][0];n&&(n.p.resolve(),aa(e,t))}function ia(e,t,n){return Rr(e.N),n={start:n,p:new Dt},e.l[t].push(n),1==e.l[t].length&&sa(e,t),n.p}function oa(e,t){var n,r,i,o,a;return I(function(s){switch(s.g){case 1:for(i in Rr(e.N),n=[],r={},e.j)r.Dc=new Dt,o={start:function(e){return function(){return e.Dc.resolve()}}(r),p:r.Dc},e.l[i].push(o),n.push(r.Dc),1==e.l[i].length&&o.start(),r={Dc:r.Dc};return x(s,2),w(s,Promise.all(n),4);case 4:S(s,3);break;case 2:throw E(s);case 3:try{t()}catch(l){throw new ye(2,3,3015,l)}finally{for(a in e.j)aa(e,a)}k(s)}})}function aa(e,t){e.l[t].shift(),sa(e,t)}function sa(e,t){var n=e.l[t][0];if(n)try{n.start()}catch(r){"QuotaExceededError"==r.name?n.p.reject(new ye(2,3,3017,t)):n.p.reject(new ye(2,3,3015,r)),aa(e,t)}}function la(e,t,n,r){var i=e.g.mediaKeys;return null==n&&i&&(vn()||kn("Xbox One"))&&"mp4"==e.L[r].split(";")[0].split("/")[1]&&(t=function(e){function t(){i=!0}function n(e){o.push(e),Si(e)}e=Ot(e);var r,i=!1,o=[],a=[];if((new Ci).box("moov",n).box("trak",n).box("mdia",n).box("minf",n).box("stbl",n).Z("stsd",function(e){r=e,o.push(e),Ei(e)}).Z("encv",t).Z("enca",t).Z("avc1",function(e){a.push({box:e,Sc:1701733238})}).Z("avc3",function(e){a.push({box:e,Sc:1701733238})}).Z("ac-3",function(e){a.push({box:e,Sc:1701733217})}).Z("ec-3",function(e){a.push({box:e,Sc:1701733217})}).Z("mp4a",function(e){a.push({box:e,Sc:1701733217})}).parse(e),i)return e;if(0==a.length||!r)throw Yt(e),new ye(2,3,3019);a.reverse();for(var s=c(a),l=s.next();!l.done;l=s.next())l=l.value,e=Li(e,r,l.box,o,l.Sc);return e}(t)),t}Uo.prototype.init=function(e){var t=this,n=[],r=[];if((new Ci).box("moov",Si).box("mvex",Si).Z("trex",function(e){var n=e.reader;n.skip(4),n.skip(4),e=n.T(),n=n.T(),t.g=e,t.h=n}).box("trak",Si).Z("tkhd",function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.T(),n.push(e)}).box("mdia",Si).Z("mdhd",function(e){e=Ho(e.reader,e.version),r.push(e.timescale)}).parse(e,!0),!n.length||!r.length||n.length!=r.length)throw new ye(2,2,2010);n.forEach(function(e,n){t.i.set(e,r[n])})},Uo.prototype.parse=function(e){var t=this,n=[],r=this.g,i=this.h,o=[],a=null,s=9e4;return(new Ci).box("moof",Si).box("traf",Si).Z("trun",function(e){o=qo(e.reader,e.version,e.flags).zf}).Z("tfhd",function(e){e=zo(e.reader,e.flags),r=e.cf||t.g,i=e.Yf||t.h,e=e.trackId,t.i.has(e)&&(s=t.i.get(e))}).Z("tfdt",function(e){a=Fo(e.reader,e.version).Xd}).box("mdat",function(e){if(null===a)throw new ye(2,2,2010);e=e.reader;var l=a,d=s,u=r,h=i,f=o,p=0,m=h;for(f.length&&(m=f[0].sampleSize||h);e.Ia();){var g=e.T();if(6==(31&e.ra())){var v=0;f.length>p&&(v=f[p].Cd||0),v=(l+v)/d;for(var b=c(Bo(t.j,e.Lb(g-1))),y=b.next();!y.done;y=b.next())n.push({Wg:y.value,pts:v})}else e.skip(g-1);0==(m-=g+4)&&(l=f.length>p?l+(f[p].ye||u):l+u,p++,m=f.length>p&&f[p].sampleSize||h)}}).parse(e,!1),n},Vo.prototype.init=function(e){this.h.init(e)},(r=Ko.prototype).destroy=function(){return this.N.destroy()},r.init=function(e,t){var n,r,i,o,a,s,l,d=this;return I(function(u){if(1==u.g)return n=Ne,w(u,d.I,2);for(r={},i=c(e.keys()),o=i.next();!o.done;r={Oa:r.Oa},o=i.next())r.Oa=o.value,a=e.get(r.Oa),s=nn(a.mimeType,a.codecs),r.Oa==n.ua?Yo(d,s):(!t&&MediaSource.isTypeSupported(s)||!$t(s,r.Oa)||(d.C[r.Oa]=new _t,s=tn(r.Oa,s)),l=d.B.addSourceBuffer(s),d.h.o(l,"error",function(e){return function(){d.l[e.Oa][0].p.reject(new ye(2,3,3014,d.g.error?d.g.error.code:0))}}(r)),d.h.o(l,"updateend",function(e){return function(){return ra(d,e.Oa)}}(r)),d.j[r.Oa]=l,d.L[r.Oa]=s,d.l[r.Oa]=[]);k(u)})},r.Ib=function(){var e={total:Zo(this.g.buffered),audio:Zo(ea(this,"audio")),video:Zo(ea(this,"video")),text:[]};if(this.i){var t=this.i.g,n=this.i.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},r.remove=function(e,t,n){var r=this;return I(function(i){return w(i,e==Ne.ua?r.i.remove(t,n):ia(r,e,function(){n<=t?ra(r,e):r.j[e].remove(t,n)}),0)})},r.flush=function(e){var t=this;return I(function(n){return e==Ne.ua?n.return():w(n,ia(t,e,function(){t.g.currentTime-=.001,ra(t,e)}),0)})},r.endOfStream=function(e){var t=this;return I(function(n){return w(n,oa(t,function(){Qo(t)||(e?t.B.endOfStream(e):t.B.endOfStream())}),0)})},r.ib=function(e){var t=this;return I(function(n){return w(n,oa(t,function(){t.B.duration=e}),0)})},r.getDuration=function(){return this.B.duration};var ca=e.URL.createObjectURL;function da(e,t,n,r){this.Ma=e,this.Ka=t,this.Da=n,this.ge=void 0===r?null:r}function ua(e,t,n,r,i,o,a,s,l,c,d,u){c=void 0===c?[]:c,this.startTime=e,this.l=this.endTime=t,this.j=n,this.Ka=r,this.Da=i,this.g=o,this.timestampOffset=a,this.appendWindowStart=s,this.appendWindowEnd=l,this.h=c,this.tilesLayout=void 0===d?"":d,this.i=void 0===u?null:u}function ha(e,t,n){this.j=e,this.zd=t,this.s=this.l=1/0,this.g=1,this.h=this.i=null,this.B=0,this.C=!0,this.G=0,this.I=void 0===n||n,this.J=0}function fa(e,t){this.j=e,this.s=ma(e),this.g=e.g.currentTime,this.l=Date.now()/1e3,this.h=!1,this.B=t,this.i=function(){}}function pa(e){this.g=e}function ma(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime;for(var n=(e=c(Zo(e.g.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function ga(e,t,n,r,i){var o=this;this.g=e,this.G=t,this.m=n,this.C=i,this.h=new Dr,this.B=!1,this.I=e.readyState,this.j=!1,this.i=r,this.s=!1,this.h.o(e,"waiting",function(){return va(o)}),this.l=new pn(function(){va(o)}).na(.25)}function va(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.B)return}else e.B=!1;if(!e.g.paused||0==e.g.currentTime&&(e.g.autoplay||0!=e.g.currentTime)){var t;if(e.g.readyState!=e.I&&(e.j=!1,e.I=e.g.readyState),!(t=!e.i)){var n=(t=e.i).j,r=ma(n),i=n.g.currentTime,o=Date.now()/1e3;t.g==i&&t.s==r||(t.l=o,t.g=i,t.s=r,t.h=!1),(r=(i=o-t.l)>=t.B&&r&&!t.h)&&(t.i(t.g,i),t.h=!0,t.g=n.g.currentTime),t=!r}if(t){i=e.m.smallGapLimit;var a=e.g.currentTime;if(n=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=Zo(e).findIndex(function(e,r,i){return e.start>t&&(0==r||i[r-1].end-t<=n)}))?e:null}(t=e.g.buffered,a,e.m.gapDetectionThreshold),!(null==n||0==n&&!e.s||(r=t.start(n),r>=e.G.sb()))){var s=r-a;i=s<=i,o=!1,.001>s||(i||e.j||(e.j=!0,(a=new q("largegap",a=(new Map).set("currentTime",a).set("gapSize",s))).cancelable=!0,e.C(a),e.m.jumpLargeGaps&&!a.defaultPrevented&&(o=!0)),!i&&!o)||(0!=n&&t.end(n-1),e.g.currentTime=r)}}}}}function ba(e,t,n,r){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?r():(t=ya.value().get(t),n.Qa(e,t,r))}da.prototype.Oc=function(){return this.Ka},da.prototype.Kc=function(){return this.Da},H("shaka.media.InitSegmentReference",da),da.prototype.getEndByte=da.prototype.Kc,da.prototype.getStartByte=da.prototype.Oc,(r=ua.prototype).Ma=function(){return this.j()},r.Bg=function(){return this.startTime},r.mg=function(){return this.endTime},r.Oc=function(){return this.Ka},r.Kc=function(){return this.Da},r.Hg=function(){return this.tilesLayout},r.Gg=function(){return this.i},H("shaka.media.SegmentReference",ua),ua.prototype.getTileDuration=ua.prototype.Gg,ua.prototype.getTilesLayout=ua.prototype.Hg,ua.prototype.getEndByte=ua.prototype.Kc,ua.prototype.getStartByte=ua.prototype.Oc,ua.prototype.getEndTime=ua.prototype.mg,ua.prototype.getStartTime=ua.prototype.Bg,ua.prototype.getUris=ua.prototype.Ma,(r=ha.prototype).getDuration=function(){return this.l},r.vg=function(){return this.g},r.ib=function(e){this.l=e},r.zg=function(){return this.j},r.Cf=function(e){this.B=e},r.Zc=function(e){this.C=e},r.Ie=function(e){this.s=e},r.nh=function(e){this.zd=e},r.lg=function(){return this.zd},r.tc=function(e){if(0!=e.length){var t=e[e.length-1].endTime;this.me(e[0].startTime),this.g=e.reduce(function(e,t){return Math.max(e,t.endTime-t.startTime)},this.g),this.h=Math.max(this.h,t),null!=this.j&&this.I&&(this.j=(Date.now()+this.B)/1e3-this.h-this.g)}},r.me=function(e){this.i=null==this.i?e:Math.min(this.i,e)},r.le=function(e){this.g=Math.max(this.g,e)},r.offset=function(e){null!=this.i&&(this.i+=e),null!=this.h&&(this.h+=e)},r.W=function(){return 1/0==this.l&&!this.C},r.Tb=function(){return 1/0!=this.l&&!this.C},r.ub=function(){return Math.max(this.G,this.Qb()-this.s)},r.Ff=function(e){this.G=e},r.Qb=function(){return this.W()||this.Tb()?Math.min(Math.max(0,(Date.now()+this.B)/1e3-this.g-this.j)+this.J,this.l):this.h||this.l},r.Nc=function(e){var t=Math.max(this.i,this.G);return 1/0==this.s?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.Qb()-this.s+e,this.sb()))},r.mc=function(){return this.Nc(0)},r.sb=function(){return Math.max(0,this.Qb()-(this.W()||this.Tb()?this.zd:0))},r.Kf=function(){return!(null==this.j||null!=this.h&&this.I)},r.Bf=function(e){this.J=e},H("shaka.media.PresentationTimeline",ha),ha.prototype.setAvailabilityTimeOffset=ha.prototype.Bf,ha.prototype.usingPresentationStartTime=ha.prototype.Kf,ha.prototype.getSeekRangeEnd=ha.prototype.sb,ha.prototype.getSeekRangeStart=ha.prototype.mc,ha.prototype.getSafeSeekRangeStart=ha.prototype.Nc,ha.prototype.getSegmentAvailabilityEnd=ha.prototype.Qb,ha.prototype.setUserSeekStart=ha.prototype.Ff,ha.prototype.getSegmentAvailabilityStart=ha.prototype.ub,ha.prototype.isInProgress=ha.prototype.Tb,ha.prototype.isLive=ha.prototype.W,ha.prototype.offset=ha.prototype.offset,ha.prototype.notifyMaxSegmentDuration=ha.prototype.le,ha.prototype.notifyMinSegmentStartTime=ha.prototype.me,ha.prototype.notifySegments=ha.prototype.tc,ha.prototype.getDelay=ha.prototype.lg,ha.prototype.setDelay=ha.prototype.nh,ha.prototype.setSegmentAvailabilityDuration=ha.prototype.Ie,ha.prototype.setStatic=ha.prototype.Zc,ha.prototype.setClockOffset=ha.prototype.Cf,ha.prototype.getPresentationStartTime=ha.prototype.zg,ha.prototype.setDuration=ha.prototype.ib,ha.prototype.getMaxSegmentDuration=ha.prototype.vg,ha.prototype.getDuration=ha.prototype.getDuration,fa.prototype.release=function(){this.j=null,this.i=function(){}},ga.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.l&&(this.l.stop(),this.l=null),this.i&&(this.i.release(),this.i=null),this.g=this.G=this.C=null},ga.prototype.qe=function(){this.s=!0,va(this)};var ya=new Bt(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function wa(e,t,n){var r=this;this.g=e,this.l=t,this.j=n,this.s=!1,this.h=new Dr,this.i=new Ea(e),ba(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Ca(r,r.j)})}function ka(e){return e.s?e.g.currentTime:e.j}function xa(e,t){0<e.g.readyState?Ma(e.i,t):ba(e.g,HTMLMediaElement.HAVE_METADATA,e.h,function(){Ca(e,e.j)})}function Ca(e,t){.001>Math.abs(e.g.currentTime-t)?Sa(e):(e.h.Qa(e.g,"seeking",function(){Sa(e)}),Ma(e.i,0==e.g.currentTime?t:e.g.currentTime))}function Sa(e){e.s=!0,e.h.o(e.g,"seeking",function(){return e.l()})}function Ea(e){var t=this;this.h=e,this.s=10,this.l=this.j=this.i=0,this.g=new pn(function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)})}function Ma(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.s,e.h.currentTime=t,e.g.na(.1)}function Ta(e){var t=this;this.g=e,this.j=!1,this.i=null,this.h=new Dr,ba(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.h,function(){null==t.i||0==t.i?t.j=!0:(t.h.Qa(t.g,"seeking",function(){t.j=!0}),t.g.currentTime=Math.max(0,t.g.currentTime+t.i))})}function Aa(e,t,n,r,i,o){var a=this;this.i=e,this.g=t.presentationTimeline,this.J=t.minBufferTime||0,this.m=n,this.G=i,this.C=null,this.j=new ga(e,t.presentationTimeline,n,function(e,t){if(!t.stallEnabled)return null;var n=t.stallSkip,r=new fa(new pa(e),t.stallThreshold);return function(e,t){e.i=t}(r,function(){n?e.currentTime+=n:(e.pause(),e.play())}),r}(e,n),o),this.h=new wa(e,function(){var e=a.j;e.B=!0,e.s=!1,e.j=!1;var t=ka(a.h);return e=Oa(a,t),.001<Math.abs(e-t)&&(t=Date.now()/1e3,!a.C||a.C<t-1)?(a.C=t,xa(a.h,e),e=void 0):(a.G(),e=void 0),e},function(e,t){return null==t?t=1/0>e.g.getDuration()?e.g.mc():e.g.sb():0>t&&(t=e.g.sb()+t),ja(e,Pa(e,t))}(this,r)),this.B=new pn(function(){if(0!=a.i.readyState&&!a.i.paused){var e=ka(a.h),t=a.g.mc(),n=a.g.sb();3>n-t&&(t=n-3),e<t&&(e=Oa(a,e),a.i.currentTime=e)}}).na(.25)}function ja(e,t){var n=e.g.getDuration();return t>=n?n-e.m.durationBackoff:t}function Oa(e,t){var n=Math.max(e.J,e.m.rebufferingGoal),r=e.m.safeSeekOffset,i=e.g.mc(),o=e.g.sb(),a=e.g.getDuration();3>o-i&&(i=o-3);var s=e.g.Nc(n),l=e.g.Nc(r);return n=e.g.Nc(n+r),t>=a?ja(e,t):t>o?o:t<i?Wo(e.i.buffered,l)?l:n:t>=s||Wo(e.i.buffered,t)?t:n}function Pa(e,t){var n=e.g.mc();return t<n||t>(n=e.g.sb())?n:t}function La(e){this.R=e,this.g=null,this.h=0,this.i=!1}function Ia(e,t,n){return new La([new ua(e,e+t,function(){return n},0,null,null,e,e,e+t)])}function Na(e,t,n){this.i=e,this.h=t,this.g=n}function Ra(){La.call(this,[]),this.j=[]}function Da(e){var t=this;this.g=e,this.j=!1,this.i=this.g.sd(),this.h=new pn(function(){t.g.uf(.25*t.i)})}function Ba(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.sd()!=t&&e.g.Ge(t))}catch(n){}e.h.na(.25),0!=e.g.sd()&&e.g.Ge(0)}function za(e){var t=this;this.h=e,this.g=new Set,this.i=new pn(function(){Fa(t,!1)}).na(.25)}function Fa(e,t){for(var n=c(e.g),r=n.next();!r.done;r=n.next())r.value.j(e.h.currentTime,t)}function Ha(e){$.call(this),this.g=new Map,this.h=e}function qa(e){$.call(this);var t=this;this.g=new Set,this.i=e,this.h=new pn(function(){for(var e=t.i(),n=c(t.g),r=n.next();!r.done;r=n.next())(r=r.value).endTime<e.start&&(t.g.delete(r),r=new q("regionremove",new Map([["region",r]])),t.dispatchEvent(r))}).na(2)}function Ua(e){$.call(this);var t=this;this.i=e,this.g=new Map,this.l=[{cc:null,bc:Ga,Sb:function(e,n){return Va(t,"enter",e,n)}},{cc:Xa,bc:Ga,Sb:function(e,n){return Va(t,"enter",e,n)}},{cc:Wa,bc:Ga,Sb:function(e,n){return Va(t,"enter",e,n)}},{cc:Ga,bc:Xa,Sb:function(e,n){return Va(t,"exit",e,n)}},{cc:Ga,bc:Wa,Sb:function(e,n){return Va(t,"exit",e,n)}},{cc:Xa,bc:Wa,Sb:function(e,n){return Va(t,"skip",e,n)}},{cc:Wa,bc:Xa,Sb:function(e,n){return Va(t,"skip",e,n)}}],this.h=new Dr,this.h.o(this.i,"regionremove",function(e){t.g.delete(e.region)})}function Va(e,t,n,r){t=new q(t,new Map([["region",n],["seeking",r]])),e.dispatchEvent(t)}wa.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.l=function(){},this.g=null},Ea.prototype.release=function(){this.g&&(this.g.stop(),this.g=null),this.h=null},Ta.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.g=null},Ta.prototype.s=function(e){this.i=this.j?this.i:e},Ta.prototype.l=function(){return(this.j?this.g.currentTime:this.i)||0},Ta.prototype.I=function(){},Aa.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.B&&(this.B.stop(),this.B=null),this.i=this.h=this.g=this.m=null,this.G=function(){}},Aa.prototype.s=function(e){xa(this.h,e)},Aa.prototype.l=function(){var e=ka(this.h);return 0<this.i.readyState&&!this.i.paused?Pa(this,e):e},Aa.prototype.I=function(){this.j.qe()},(r=La.prototype).destroy=function(){return ke("shaka.media.SegmentIndex","Please use release() instead of destroy()."),this.release(),Promise.resolve()},r.release=function(){this.i||(this.R=[],this.g&&this.g.stop(),this.g=null)},r.Qg=function(){this.i=!0},r.find=function(e){for(var t=this.R.length-1,n=t;0<=n;--n){var r=this.R[n],i=n<t?this.R[n+1].startTime:r.endTime;if(e>=r.startTime&&e<i)return n+this.h}return this.R.length&&e<this.R[0].startTime?this.h:null},r.get=function(e){return 0==this.R.length||0>(e-=this.h)||e>=this.R.length?null:this.R[e]},r.offset=function(e){if(!this.i)for(var t=c(this.R),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.timestampOffset+=e},r.rc=function(e){!this.i&&e.length&&(this.R=this.R.filter(function(t){return t.startTime<e[0].startTime}),this.R.push.apply(this.R,d(e)))},r.sc=function(e,t){var n=this;e=e.filter(function(e){return e.endTime>t&&(0==n.R.length||e.endTime>n.R[0].startTime)}),this.rc(e),this.Ob(t)},r.Ob=function(e){if(!this.i){var t=this.R.length;this.R=this.R.filter(function(t){return t.endTime>e}),this.h+=t-this.R.length}},r.Hb=function(e,t,n){if(n=void 0!==n&&n,!this.i){for(;this.R.length&&this.R[this.R.length-1].startTime>=t;)this.R.pop();for(;this.R.length&&this.R[0].endTime<=e;)this.R.shift(),n||this.h++;0!=this.R.length&&(e=this.R[this.R.length-1],this.R[this.R.length-1]=new ua(e.startTime,t,e.j,e.Ka,e.Da,e.g,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.h,e.tilesLayout,e.i))}},r.Ed=function(e,t){var n=this;this.i||(this.g&&this.g.stop(),this.g=new pn(function(){var e=t();e?n.R.push.apply(n.R,d(e)):(n.g.stop(),n.g=null)}),this.g.na(e))},La.prototype[Symbol.iterator]=function(){return this.kc(0)},La.prototype.kc=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),r=-1;if(n&&0<n.h.length)for(var i=n.h.length-1;0<=i;--i){var o=n.h[i];if(e>=o.startTime&&e<o.endTime){t++,r=i-1;break}}return new Na(this,t,r)},H("shaka.media.SegmentIndex",La),La.forSingleSegment=Ia,La.prototype.getIteratorForTime=La.prototype.kc,La.prototype.updateEvery=La.prototype.Ed,La.prototype.fit=La.prototype.Hb,La.prototype.evict=La.prototype.Ob,La.prototype.mergeAndEvict=La.prototype.sc,La.prototype.merge=La.prototype.rc,La.prototype.offset=La.prototype.offset,La.prototype.get=La.prototype.get,La.prototype.find=La.prototype.find,La.prototype.markImmutable=La.prototype.Qg,La.prototype.release=La.prototype.release,La.prototype.destroy=La.prototype.destroy,Na.prototype.seek=function(e){return ke("shaka.media.SegmentIterator","Please use SegmentIndex.getIteratorForTime instead of seek()."),(e=this.i.kc(e))?(this.h=e.h,this.g=e.g):(this.h=Number.MAX_VALUE,this.g=0),this.next().value},Na.prototype.current=function(){var e=this.i.get(this.h);return e&&0<e.h.length&&e.Ma().length&&this.g>=e.h.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0<e.h.length?e.h[this.g]:e},Na.prototype.next=function(){var e=this.i.get(this.h);return e&&0<e.h.length?(this.g++,e.Ma().length&&this.g==e.h.length&&(this.h++,this.g=0)):(this.h++,this.g=0),{value:e=this.current(),done:!e}},H("shaka.media.SegmentIterator",Na),Na.prototype.next=Na.prototype.next,Na.prototype.current=Na.prototype.current,Na.prototype.seek=Na.prototype.seek,g(Ra,La),(r=Ra.prototype).clone=function(){var e=new Ra;return e.j=this.j.slice(),e},r.release=function(){for(var e=c(this.j),t=e.next();!t.done;t=e.next())t.value.release();this.j=[]},r.find=function(e){for(var t=0,n=c(this.j),r=n.next();!r.done;r=n.next()){var i=(r=r.value).find(e);if(null!=i)return i+t;t+=r.h+r.R.length}return null},r.get=function(e){for(var t=0,n=c(this.j),r=n.next();!r.done;r=n.next()){var i=(r=r.value).get(e-t);if(i)return i;t+=r.h+r.R.length}return null},r.offset=function(){},r.rc=function(){},r.Ob=function(){},r.sc=function(){},r.Hb=function(){},r.Ed=function(){},H("shaka.media.MetaSegmentIndex",Ra),Ra.prototype.updateEvery=Ra.prototype.Ed,Ra.prototype.fit=Ra.prototype.Hb,Ra.prototype.mergeAndEvict=Ra.prototype.sc,Ra.prototype.evict=Ra.prototype.Ob,Ra.prototype.merge=Ra.prototype.rc,Ra.prototype.offset=Ra.prototype.offset,Ra.prototype.get=Ra.prototype.get,Ra.prototype.find=Ra.prototype.find,Ra.prototype.release=Ra.prototype.release,Da.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},Da.prototype.set=function(e){this.i=e,Ba(this)},Da.prototype.pd=function(){return this.g.pd()},za.prototype.release=function(){this.i.stop();for(var e=c(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},g(Ha,$),Ha.prototype.release=function(){this.g.clear(),$.prototype.release.call(this)},Ha.prototype.j=function(e){for(var t=c(this.g.values()),n=t.next();!n.done;n=t.next()){e:{for(var r=(n=n.value).Vc,i=r.length-1;0<=i;i--){var o=r[i];if(o.position<=e){r=o.ge;break e}}r=null}if((i=r)&&(i=!((i=n.$e)===r||i&&r&&i.bandwidth==r.bandwidth&&i.audioSamplingRate==r.audioSamplingRate&&i.codecs==r.codecs&&i.contentType==r.contentType&&i.frameRate==r.frameRate&&i.height==r.height&&i.mimeType==r.mimeType&&i.channelsCount==r.channelsCount&&i.pixelAspectRatio==r.pixelAspectRatio&&i.width==r.width)),i)e:{if(i=e,o=r.contentType,(o=this.h()[o])&&0<o.length){var a=o[o.length-1].end;if(i>=o[0].start&&i<a){i=!0;break e}}i=!1}i&&(n.$e=r,JSON.stringify(r),n=new q("qualitychange",new Map([["quality",r],["position",e]])),this.dispatchEvent(n))}},g(qa,$),qa.prototype.release=function(){this.g.clear(),this.h.stop(),$.prototype.release.call(this)},g(Ua,$),Ua.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,$.prototype.release.call(this)},Ua.prototype.j=function(e,t){for(var n=c(this.i.g),r=n.next();!r.done;r=n.next()){r=r.value;var i=this.g.get(r),o=e<r.startTime?Xa:e>r.endTime?Wa:Ga;this.g.set(r,o);for(var a=c(this.l),s=a.next();!s.done;s=a.next())(s=s.value).cc==i&&s.bc==o&&s.Sb(r,t)}};var Xa=1,Ga=2,Wa=3;function Ja(e,t,n,r,i){return e=Tr(e,r,i),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Za(e,t){var n=this;this.F=t,this.H=e,this.m=null,this.l=1,this.i=this.h=null,this.g=new Map,this.s=!1,this.B=null,this.j=!1,this.N=new Nr(function(){return function(e){var t,n,r,i;return I(function(o){if(1==o.g){for(t=[],n=c(e.g.values()),r=n.next();!r.done;r=n.next())as(i=r.value),t.push(ss(i));return w(o,Promise.all(t),2)}e.g.clear(),e.F=null,e.H=null,e.m=null,k(o)})}(n)})}function Ka(e,t){var n=e.g.get("video");if(n){var r=n.stream;if(r)if(t){var i=r.trickModeVideo;i&&!n.Zb&&(_a(e,i,!1,0,!1),n.Zb=r)}else(r=n.Zb)&&(n.Zb=null,_a(e,r,!0,0,!1))}}function Ya(e,t,n,r,i){n=void 0!==n&&n,r=void 0===r?0:r,i=void 0!==i&&i,e.h=t,e.s&&(t.video&&_a(e,t.video,n,r,i),t.audio&&_a(e,t.audio,n,r,i))}function Qa(e,t){e.i=t,e.s&&_a(e,t,!0,0,!1)}function _a(e,t,n,r,i){var o=e.g.get(t.type);o||t.type!=Ie?o&&(o.Zb&&(t.trickModeVideo?(o.Zb=t,t=t.trickModeVideo):o.Zb=null),o.stream!=t||i)&&(t.type==Ie&&Yo(e.F.Y,nn(t.mimeType,t.codecs)),o.stream.closeSegmentIndex&&o.stream.closeSegmentIndex(),o.stream=t,o.za=null,n&&(o.Ic?o.Hd=!0:o.hb?(o.ac=!0,o.md=r,o.Hd=!0):(as(o),is(e,o,!0,r).catch(function(t){e.F&&e.F.onError(t)}))),function(e,t){var n,r;return I(function(i){if(1==i.g)return t.Ra?(n=t.stream,r=t.Ra,n.segmentIndex?i.D(2):w(i,n.createSegmentIndex(),2)):i.return();if(t.Ra!=r||t.stream!=n)return i.return();var o=e.F.rd(),a=$o(e.F.Y,t.type),s=t.stream.segmentIndex.find(t.Xa?t.Xa.endTime:o),l=null==s?null:t.stream.segmentIndex.get(s);s=l&&l.Da?l.Da-l.Ka:null,l&&!s&&(s=(l.endTime-l.startTime)*(t.stream.bandwidth||0)/8),s?((l=l.g)&&(s+=(l.Da?l.Da-l.Ka:null)||0),o=8*s/(l=e.F.getBandwidthEstimate())<(a||0)-o-Math.max(e.H.minBufferTime||0,e.m.rebufferingGoal)||t.Ra.h.g>s):o=!1,o&&t.Ra.abort(),k(i)})}(e,o).catch(function(t){e.F&&e.F.onError(t)})):function(e,t){var n,r,i,o;I(function(a){switch(a.g){case 1:return n=Ne,x(a,2),w(a,na(e.F.Y,n.ua),4);case 4:S(a,3);break;case 2:r=E(a),e.F&&e.F.onError(r);case 3:i=nn(t.mimeType,t.codecs),Yo(e.F.Y,i),(e.F.Y.s.isTextVisible()||e.m.alwaysStreamText)&&(o=es(t),e.g.set(n.ua,o),os(e,o,0)),k(a)}})}(e,t)}function $a(e,t){t.Ic||t.ac||(t.hb?(t.ac=!0,t.md=0):null==_o(e.F.Y,t.type)?null==t.kb&&os(e,t,0):(as(t),is(e,t,!1,0).catch(function(t){e.F&&e.F.onError(t)})))}function es(e){return{stream:e,type:e.type,za:null,Xa:null,td:null,ee:null,ce:null,be:null,Zb:null,endOfStream:!1,hb:!1,kb:null,ac:!1,md:0,Hd:!1,Ic:!1,ve:!1,Pc:!1,Ra:null}}function ts(e,t,n,r,i,o){var a;return I(function(s){return 1==s.g?(a=r.closedCaptions&&0<r.closedCaptions.size,(null!=r.emsgSchemeIdUris&&0<r.emsgSchemeIdUris.length||e.m.dispatchAllEmsgBoxes)&&(new Ci).Z("emsg",function(t){var n=r.emsgSchemeIdUris;if(0===t.version)var o=t.reader.Wc(),a=t.reader.Wc(),s=t.reader.T(),l=t.reader.T(),c=t.reader.T(),d=t.reader.T(),u=i.startTime+l/s;else s=t.reader.T(),l=(u=t.reader.xc()/s+i.timestampOffset)-i.startTime,c=t.reader.T(),d=t.reader.T(),o=t.reader.Wc(),a=t.reader.Wc();t=t.reader.Lb(t.reader.X.byteLength-t.reader.qa()),(n&&n.includes(o)||e.m.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==o?e.F.Vg():(n=(new Map).set("detail",{startTime:u,endTime:u+c/s,schemeIdUri:o,value:a,timescale:s,presentationTimeDelta:l,eventDuration:c,id:d,messageData:t}),n=new q(Yl,n),e.F.onEvent(n)))}).parse(o),w(s,function(e,t,n){var r,i,o;return I(function(a){if(1==a.g)return r=Math.max(e.m.bufferBehind,e.H.presentationTimeline.g),null==(i=_o(e.F.Y,t.type))||.01>=(o=n-i-r)?a.return():w(a,e.F.Y.remove(t.type,i,i+o),2);Rr(e.N),k(a)})}(e,t,n),2)):3!=s.g?(Rr(e.N),w(s,ta(e.F.Y,t.type,o,i.startTime,i.endTime,a),3)):(Rr(e.N),void k(s))})}function ns(e){return e&&e.type==Ie&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function rs(e,t,n,r){var i,o,a,s,l;return I(function(c){return 1==c.g?(i=Pr,o=Ja(n.Ma(),n.Ka,n.Da,e.m.retryParameters,r),a=t.stream,e.F.modifySegmentRequest(o,{type:a.type,init:n instanceof da,duration:n.endTime-n.startTime,mimeType:a.mimeType,codecs:a.codecs,bandwidth:a.bandwidth}),s=e.F.Wb.request(i,o),t.Ra=s,w(c,s.promise,2)):(l=c.h,t.Ra=null,c.return(l.data))})}function is(e,t,n,r){var i,o;return I(function(a){return 1==a.g?(t.ac=!1,t.Hd=!1,t.md=0,t.Ic=!0,t.Xa=null,t.td=null,t.za=null,r?(i=e.F.rd(),o=e.F.Y.getDuration(),w(a,e.F.Y.remove(t.type,i+r,o),3)):w(a,na(e.F.Y,t.type),4)):3!=a.g?(Rr(e.N),n?w(a,e.F.Y.flush(t.type),3):a.D(3)):(Rr(e.N),t.Ic=!1,t.endOfStream=!1,os(e,t,0),void k(a))})}function os(e,t,n){var r=t.type;(r!=Ie||e.g.has(r))&&(t.kb=new fn(function(){var n;return I(function(r){return 1==r.g?(x(r,2),w(r,e.Tc(t),4)):2!=r.g?S(r,0):(n=E(r),e.F&&e.F.onError(n),void k(r))})}).U(n))}function as(e){null!=e.kb&&(e.kb.stop(),e.kb=null)}function ss(e){return I(function(t){return e.Ra?w(t,e.Ra.abort(),0):t.D(0)})}function ls(e,t){return I(function(n){if(1==n.g)return w(n,pr(e.B),2);Rr(e.N),e.F.onError(t),t.handled||e.m.failureCallback(t),k(n)})}function cs(e,t){var n={K:null,mimeType:null,startTime:null,Le:NaN,uri:null},r=this;this.j=t,this.i=e,this.l=n,this.B=null,this.s=[],this.h=this.g=null,this.C=Promise.resolve().then(function(){return function(e){return I(function(t){if(e.N.g)t=t.D(0);else{if(0==e.s.length||e.g&&!e.g.Rb)var n=!1;else{e.g&&(e.g.gb.Xb(),e.g=null);var r=(n=e.s.shift()).create(e.l);r?(n.gb.uc(),e.g={node:r.node,payload:r.payload,Rb:r.Rb,gb:n.gb}):n.gb.xd(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return I(function(r){switch(r.g){case 1:return e.i=e.j.xg(e.i,e.l,e.g.node,e.g.payload),x(r,2),e.h=e.j.$f(e.i,e.l,e.g.payload),w(r,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.gb.vd(),e.g=null),S(r,0);break;case 2:return 7001==(t=E(r)).code?e.g.gb.Xb():e.g.gb.onError(t),e.g=null,e.h=null,n=e,w(r,e.j.handleError(e.l,t),5);case 5:n.i=r.h,k(r)}})}(e):(e.j.Tg(e.i),e.B=new Dt,n=e.B),t=w(t,n,1)}return t})}(r)}),this.N=new Nr(function(){return function(e){var t,n;return I(function(r){if(1==r.g)return e.h&&e.h.abort(),us(e),w(r,e.C,2);for(e.g&&e.g.gb.Xb(),t=c(e.s),n=t.next();!n.done;n=t.next())n.value.gb.Xb();e.g=null,e.s=[],e.j=null,k(r)})}(r)})}function ds(e,t){var n={uc:function(){},vd:function(){},Xb:function(){},onError:function(){},xd:function(){},Ui:function(){}};return e.s.push({create:t,gb:n}),e.h&&e.h.abort(),us(e),n}function us(e){e.B&&(e.B.resolve(),e.B=null)}function hs(e){this.g=null;for(var t=c(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function fs(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(n){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function ps(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var r=c(Array.from(e.cues)),i=r.next();!i.done;i=r.next())(i=i.value)&&t(i)&&e.removeCue(i);e.mode=n}function ms(){}function gs(e){return document.createElement(e)}function vs(){return document.createElement("button")}function bs(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ys(t,n){var r=this;this.s=!1,this.l=[],this.g=t,this.C=n,this.i=gs("div"),this.i.classList.add("shaka-text-container"),this.i.style.textAlign="center",this.i.style.display="flex",this.i.style.flexDirection="column",this.i.style.alignItems="center",this.i.style.justifyContent="flex-end",this.C.appendChild(this.i),this.G=new pn(function(){ks(r)}).na(.25),this.j=new Map,this.h=new Dr,this.h.o(document,"fullscreenchange",function(){ks(r,!0)}),this.B=null,"ResizeObserver"in e&&(this.B=new ResizeObserver(function(){ks(r,!0)}),this.B.observe(this.i))}function ws(e,t,n,r,i){for(var o=!1,a=[],s=[],l=(t=c(t)).next();!l.done;l=t.next()){l=l.value,i.push(l);var d=e.j.get(l),u=l.startTime<=r&&l.endTime>r,h=d?d.Mf:null;d&&(a.push(d.Ze),u||(o=!0,e.j.delete(l),d=null)),u&&(s.push(l),d||(xs(e,l,i),h=(d=e.j.get(l)).Mf,o=!0)),0<l.nestedCues.length&&h&&ws(e,l.nestedCues,h,r,i),i.pop()}if(o){for(i=(r=c(a)).next();!i.done;i=r.next())n.removeChild(i.value);for(s.sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime}),l=(s=c(s)).next();!l.done;l=s.next())r=e.j.get(l.value),n.appendChild(r.Ze)}}function ks(e,t){if(e.i){var n=e.g.currentTime;if((!e.s||void 0!==t&&t)&&0<e.j.size&&(bs(e.i),e.j.clear()),e.s){for(var r=new Map,i=c(e.j.keys()),o=i.next();!o.done;o=i.next())o=o.value,r.set(o,e.j.get(o));ws(e,e.l,e.i,n,[])}}}function xs(e,t,n){var r=1<n.length,i=r?"span":"div";(t.lineBreak||t.spacer)&&(t.spacer&&ke("shaka.extern.Cue","Please use lineBreak instead of spacer."),i="br"),r=!r&&0<t.nestedCues.length;var o=gs(i);"br"!=i&&function(e,t,n,r,i){var o=t.style,a=0==n.nestedCues.length,s=1<r.length;o.whiteSpace="pre-wrap";var l=n.payload.replace(/\s+$/g,function(e){return" ".repeat(e.length)});if(o.webkitTextStrokeColor=n.textStrokeColor,o.webkitTextStrokeWidth=n.textStrokeWidth,o.color=n.color,o.direction=n.direction,o.opacity=n.opacity,o.paddingLeft=Cs(n.linePadding,n,e.C),o.paddingRight=Cs(n.linePadding,n,e.C),n.backgroundImage)o.backgroundImage="url('"+n.backgroundImage+"')",o.backgroundRepeat="no-repeat",o.backgroundSize="contain",o.backgroundPosition="center";else{if(n.nestedCues.length)var c=t;else c=gs("span"),t.appendChild(c);n.border&&(c.style.border=n.border),i||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var r=t(e[n]);if(r||0===r)return r}return null}(r,function(e){return e.backgroundColor}))?c.style.backgroundColor=t:l&&(c.style.backgroundColor="rgba(0, 0, 0, 0.8)")),l&&(c.textContent=l)}s&&!r[r.length-1].isContainer?o.display="inline":(o.display="flex",o.flexDirection="column",o.alignItems="center",o.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),a||(o.margin="0"),o.fontFamily=n.fontFamily,o.fontWeight=n.fontWeight.toString(),o.fontStyle=n.fontStyle,o.letterSpacing=n.letterSpacing,o.fontSize=Cs(n.fontSize,n,e.C),n.line?1==n.lineInterpretation&&(o.position="absolute",o.left="0",o.top="0",n.writingMode==pt?(o.width="100%",n.lineAlign==gt?o.top=n.line+"%":"end"==n.lineAlign&&(o.bottom=n.line+"%")):"vertical-lr"==n.writingMode?(o.height="100%",n.lineAlign==gt?o.left=n.line+"%":"end"==n.lineAlign&&(o.right=n.line+"%")):(o.height="100%",n.lineAlign==gt?o.right=n.line+"%":"end"==n.lineAlign&&(o.left=n.line+"%"))):n.region&&n.region.id&&(e=n.region.widthUnits==St?"%":"px",r=n.region.viewportAnchorUnits==St?"%":"px",o.height=n.region.height+(n.region.heightUnits==St?"%":"px"),o.width=n.region.width+e,o.position="absolute",o.top=n.region.viewportAnchorY+r,o.left=n.region.viewportAnchorX+r),o.lineHeight=n.lineHeight,n.position&&(n.writingMode==pt?o.paddingLeft=n.position:o.paddingTop=n.position),"line-left"==n.positionAlign?o.cssFloat="left":"line-right"==n.positionAlign&&(o.cssFloat="right"),o.textAlign=n.textAlign,o.textDecoration=n.textDecoration.join(" "),o.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&o.writingMode==n.writingMode||(o.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==pt?o.width=n.size+"%":o.height=n.size+"%")}(e,o,t,n,r),n=o,r&&((n=gs("span")).classList.add("shaka-text-wrapper"),n.style.backgroundColor=t.backgroundColor,o.appendChild(n)),e.j.set(t,{Ze:o,Mf:n})}function Cs(e,t,n){var r=(r=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(r[1]),ph:r[2]}:null;if(!r)return e;var i=r.value;switch(r.ph){case"%":return i/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*i/t.cellResolution.rows+"px";default:return e}}function Ss(e,t){this.F=e,this.m=t,this.h="",this.l=void 0,this.g=!1,this.j=!0,this.i=!1}function Es(e,t,n){try{if(e.m.enabled){var r={d:1e3*n.duration,st:e.F.W()?Fs:zs};r.ot=function(e){var t=e.type;return e.init?Rs:"video"==t?e.codecs.includes(",")?Ns:Is:"audio"==t?Ls:"text"==t?"application/mp4"===e.mimeType?Bs:Ds:void 0}(n);var i=r.ot===Is||r.ot===Ls||r.ot===Ns||r.ot===Bs;i&&(r.bl=function(e,t){var n=e.F.Ib()[t];if(!n.length)return NaN;var r=e.F.kg();return(n=n.find(function(e){return e.start<=r&&e.end>=r}))?1e3*(n.end-r):NaN}(e,n.type)),n.bandwidth&&(r.br=n.bandwidth/1e3),i&&r.ot!==Bs&&(r.tb=function(e,t){var n=e.F.fb();if(!n.length)return NaN;for(var r=n[0],i=(n=c(n)).next();!i.done;i=n.next())"variant"===(i=i.value).type&&i.bandwidth>r.bandwidth&&(r=i);switch(t){case Is:return r.videoBandwidth||NaN;case Ls:return r.audioBandwidth||NaN;default:return r.bandwidth}}(e,r.ot)/1e3),As(e,t,r)}}catch(o){W("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",o)}}function Ms(e,t){try{if(!e.m.enabled)return t;var n=Ts(e);return n.ot=Ds,n.su=!0,Os(t,js(n))}catch(r){return W("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",r),t}}function Ts(t){return t.h||(t.h=t.m.sessionId||e.crypto.randomUUID()),{v:1,sf:t.l,sid:t.h,cid:t.m.contentId,mtp:t.F.getBandwidthEstimate()/1e3}}function As(e,t,n){n=void 0===n?{}:n;var r=void 0===r?e.m.useHeaders:r;if(e.m.enabled){Object.assign(n,Ts(e)),n.pr=e.F.Jb();var i=n.ot===Is||n.ot===Ns;if(e.i&&i&&(n.bs=!0,n.su=!0,e.i=!1),null==n.su&&(n.su=e.j),r)e=function(e){for(var t=Object.keys(e),n={},r=["Object","Request","Session","Status"],i=[{},{},{},{}],o={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},a=(t=c(t)).next();!a.done;a=t.next())a=a.value,i[null!=o[a]?o[a]:1][a]=e[a];for(e=0;e<i.length;e++)(o=js(i[e]))&&(n["CMCD-"+r[e]]=o);return n}(n),Object.keys(e).length&&Object.assign(t.headers,e);else{var o=js(n);o&&(t.uris=t.uris.map(function(e){return Os(e,o)}))}}}function js(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}function r(e){return!Number.isNaN(e)&&null!=e&&""!==e&&!1!==e}for(var i=[],o={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},a=Object.keys(e||{}).sort(),s=(a=c(a)).next();!s.done;s=a.next()){var l=e[s=s.value];if(r(l)&&("v"!==s||1!==l)&&("pr"!=s||1!==l)){var d,u=o[s];u&&(l=u(l)),d="string"==(u=typeof l)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(l):"boolean"===u?s:"symbol"===u?s+"="+l.description:s+"="+l,i.push(d)}}return i.join(",")}function Os(e,t){if(!t||e.includes("offline:"))return e;var n=new oe(e);return n.g.set("CMCD",t),n.toString()}Za.prototype.destroy=function(){return this.N.destroy()},Za.prototype.configure=function(e){this.m=e,this.B=new fr({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor},!0)},Za.prototype.start=function(){var e=this;return I(function(t){if(1==t.g)return w(t,function(e){var t,n,r,i,o,a,s,l,d,u;return I(function(h){if(1==h.g){if(t=Ne,!e.h)throw new ye(2,5,5006);return n=new Map,r=new Set,e.h.audio&&(n.set(t.Nb,e.h.audio),r.add(e.h.audio)),e.h.video&&(n.set(t.mb,e.h.video),r.add(e.h.video)),e.i&&(n.set(t.ua,e.i),r.add(e.i)),i=e.F.Y,o=e.m.forceTransmuxTS,w(h,i.init(n,o),2)}Rr(e.N);var f=e.H.presentationTimeline.getDuration();for(1/0>f?e.F.Y.ib(f):e.F.Y.ib(Math.pow(2,32)),a=c(n.keys()),s=a.next();!s.done;s=a.next())l=s.value,d=n.get(l),e.g.has(l)||(u=es(d),e.g.set(l,u),os(e,u,0));k(h)})}(e),2);Rr(e.N),e.s=!0,k(t)})},Za.prototype.Tc=function(t){var n,r,i,o,a,s=this;return I(function(l){switch(l.g){case 1:if(Rr(s.N),t.hb||null==t.kb||t.Ic)return l.return();if(t.kb=null,!t.ac){l.D(2);break}return w(l,is(s,t,t.Hd,t.md),3);case 3:return l.return();case 2:if(t.stream.segmentIndex){l.D(4);break}return n=t.stream,w(l,t.stream.createSegmentIndex(),5);case 5:if(n!=t.stream)return n.closeSegmentIndex&&n.closeSegmentIndex(),null==t.kb&&os(s,t,0),l.return();case 4:x(l,6),r=function(t,n){if(ns(n))return function(e,t){var n=$o(e,"video")||0;cn(e.i,t,n)}(t.F.Y,n.stream.originalId||""),null;n.type==Ie&&function(e){e.i&&cn(e.i,"",0)}(t.F.Y);var r=t.F.rd(),i=n.Xa?n.Xa.endTime:r,o=function(e,t,n){return t==Ie?null==(e=e.i).h||e.h<n?0:e.h-Math.max(n,e.g):Jo(e=ea(e,t),n)}(t.F.Y,n.type,r),a=Math.max(t.H.minBufferTime||0,t.m.rebufferingGoal,t.m.bufferingGoal)*t.l;if(1e-6>t.H.presentationTimeline.getDuration()-i)return n.endOfStream=!0,"video"==n.type&&(r=t.g.get(Ie))&&ns(r)&&(r.endOfStream=!0),null;if(n.endOfStream=!1,o>=a)return t.m.updateIntervalSeconds/2;if(o=$o(t.F.Y,n.type),o=function(e,t,n,r){if(t.za)return t.za.current();if(t.Xa||r)return t.za=t.stream.segmentIndex.kc(t.Xa?t.Xa.endTime:r),t.za&&t.za.next().value;e=e.m.inaccurateManifestTolerance,r=Math.max(n-e,0);var i=null;return e&&(t.za=t.stream.segmentIndex.kc(r),i=t.za&&t.za.next().value),i||(t.za=t.stream.segmentIndex.kc(n),i=t.za&&t.za.next().value),i}(t,n,r,o),!o)return t.m.updateIntervalSeconds;a=1/0;for(var s=Array.from(t.g.values()),l=(s=c(s)).next();!l.done;l=s.next())ns(l=l.value)||l.za&&!l.za.current()||(a=Math.min(a,l.Xa?l.Xa.endTime:r));return i>=a+t.H.presentationTimeline.g?t.m.updateIntervalSeconds:(function(t,n,r,i){var o,a,s,l,c,d,u,h,f,p,m;return I(function(g){switch(g.g){case 1:return o=Ne,a=n.stream,s=n.za,n.hb=!0,x(g,2),w(g,function(e,t,n){var r,i,o,a,s,l,c;return I(function(d){return r=[],i=Math.max(0,n.appendWindowStart-.1),o=n.appendWindowEnd+.01,(a=n.timestampOffset)==t.ee&&i==t.ce&&o==t.be||(s=function(){var n;return I(function(r){if(1==r.g)return x(r,2),t.ce=i,t.be=o,t.ee=a,w(r,function(e,t,n,r,i){return I(function(o){return t==Ne.ua?(e.i.G=n,function(e,t,n){e.j=t,e.l=n}(e.i,r,i),o.return()):w(o,Promise.all([ia(e,t,function(){var n=e.j[t].appendWindowStart,r=e.j[t].appendWindowEnd;e.j[t].abort(),e.j[t].appendWindowStart=n,e.j[t].appendWindowEnd=r,ra(e,t)}),ia(e,t,function(){var r=n;0>r&&(r+=.001),e.j[t].timestampOffset=r,ra(e,t)}),ia(e,t,function(){e.j[t].appendWindowStart=0,e.j[t].appendWindowEnd=i,e.j[t].appendWindowStart=r,ra(e,t)})]),0)})}(e.F.Y,t.type,a,i,o),4);if(2!=r.g)return S(r,0);throw n=E(r),t.ce=null,t.be=null,t.ee=null,n})},r.push(s())),!function(e,t){return e&&t?e.Oc()==t.Oc()&&e.Kc()==t.Kc()&&ot(e.Ma(),t.Ma()):e==t}(n.g,t.td)&&(t.td=n.g)&&(l=rs(e,t,n.g),c=function(){var n,r,i;return I(function(o){switch(o.g){case 1:return x(o,2),w(o,l,4);case 4:return n=o.h,Rr(e.N),r=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,w(o,ta(e.F.Y,t.type,n,null,null,r),5);case 5:S(o,0);break;case 2:throw i=E(o),t.td=null,i}})},e.F.Ug(n.startTime,n.g),r.push(c())),w(d,Promise.all(r),0)})}(t,n,i),4);case 4:return Rr(t.N),t.j?g.return():(l="video/mp4"==a.mimeType||"audio/mp4"==a.mimeType,c=e.ReadableStream,t.m.lowLatencyMode&&c&&l?(u=new Uint8Array(0),h=function(e){var o,s,l;return I(function(c){return Rr(t.N),t.j?c.return():(u=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(u,e),o=!1,s=0,(new Ci).box("mdat",function(e){s=e.size+e.start,o=!0}).parse(u,!1,!0),o?(l=u.subarray(0,s),u=u.subarray(s),w(c,ts(t,n,r,a,i,l),0)):c.D(0))})},w(g,rs(t,n,i,h),6)):w(g,rs(t,n,i),7));case 7:return d=g.h,Rr(t.N),t.j?g.return():n.ac?(n.hb=!1,os(t,n,0),g.return()):w(g,ts(t,n,r,a,i,d),6);case 6:if(Rr(t.N),t.j)return g.return();n.Xa=i,s.next(),n.hb=!1,n.ve=!1,f=t.F.Y.Ib(),p=f[n.type],JSON.stringify(p),n.ac||t.F.qe(),os(t,n,0),S(g,0);break;case 2:if(m=E(g),Rr(t.N,m),t.j)return g.return();if(n.hb=!1,7001==m.code)n.hb=!1,n.kb=null,os(t,n,0),g.D(0);else if(n.type==o.ua&&t.m.ignoreTextStreamFailures)t.g.delete(o.ua),g.D(0);else if(3017==m.code)(function(e,t,n){if(!Array.from(e.g.values()).some(function(e){return e!=t&&e.ve})){var r=Math.round(100*e.l);if(20<r)e.l-=.2;else{if(!(4<r))return t.Pc=!0,e.j=!0,void e.F.onError(n);e.l-=.04}t.ve=!0}os(e,t,4)})(t,n,m),g.D(0);else{if(1001!=m.code||!m.data||404!=m.data[1])return n.Pc=!0,m.severity=2,w(g,ls(t,m),0);n.hb=!1,n.kb=null,os(t,n,1),g.D(0)}}})}(t,n,r,o).catch(function(){}),null)}(s,t),null!=r&&(os(s,t,r),t.Pc=!1),S(l,7);break;case 6:return i=E(l),w(l,ls(s,i),8);case 8:return l.return();case 7:if(o=Array.from(s.g.values()),!s.s||!o.every(function(e){return e.endOfStream})){l.D(0);break}return w(l,s.F.Y.endOfStream(),10);case 10:Rr(s.N),0!=(a=s.F.Y.getDuration())&&a<s.H.presentationTimeline.getDuration()&&s.H.presentationTimeline.ib(a),k(l)}})},cs.prototype.destroy=function(){return this.N.destroy()},(r=hs.prototype).remove=function(e,t){return!!this.g&&(ps(this.g,function(n){return n.startTime<t&&n.endTime>e}),!0)},r.append=function(e){function t(e){var n=[],r=700<=e.fontWeight,i="italic"==e.fontStyle,o=e.textDecoration.includes("underline");return r&&n.push("b"),i&&n.push("i"),o&&n.push("u"),r=n.reduce(function(e,t){return e+"<"+t+">"},""),n=n.reduceRight(function(e,t){return e+"</"+t+">"},""),e.lineBreak||e.spacer?(e.spacer&&ke("shaka.extern.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(t).join(""):r+e.payload+n}var n=e.map(function(e){if(e.nestedCues.length){var n=e.clone();return n.nestedCues=[],n.payload=t(e),n}return e}),r=[];e=this.g.cues?Array.from(this.g.cues):[];for(var i={},o=(n=c(n)).next();!o.done;i={dc:i.dc},o=n.next())i.dc=o.value,e.some(function(e){return function(t){return t.startTime==e.dc.startTime&&t.endTime==e.dc.endTime&&t.text==e.dc.payload}}(i))||(o=fs(i.dc))&&r.push(o);for(i=(e=c(e=r.slice().sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?r.indexOf(t)-r.indexOf(e):r.indexOf(e)-r.indexOf(t)}))).next();!i.done;i=e.next())this.g.addCue(i.value)},r.destroy=function(){return this.g&&(ps(this.g,function(){return!0}),this.g.mode="disabled"),this.g=null,Promise.resolve()},r.isTextVisible=function(){return"showing"==this.g.mode},r.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},H("shaka.text.SimpleTextDisplayer",hs),hs.prototype.setTextVisibility=hs.prototype.setTextVisibility,hs.prototype.isTextVisible=hs.prototype.isTextVisible,hs.prototype.destroy=hs.prototype.destroy,hs.prototype.append=hs.prototype.append,hs.prototype.remove=hs.prototype.remove,H("shaka.util.Dom",ms),ms.removeAllChildren=bs,(r=ys.prototype).append=function(e){for(var t=[].concat(d(this.l)),n={},r=(e=c(e)).next();!r.done;n={$c:n.$c},r=e.next())n.$c=r.value,t.some(function(e){return function(t){return st(t,e.$c)}}(n))||this.l.push(n.$c);ks(this)},r.destroy=function(){this.C.removeChild(this.i),this.i=null,this.s=!1,this.l=[],this.G&&this.G.stop(),this.j.clear(),this.h&&(this.h.release(),this.h=null),this.B&&(this.B.disconnect(),this.B=null)},r.remove=function(e,t){if(!this.i)return!1;var n=this.l.length;return this.l=this.l.filter(function(n){return n.startTime<e||n.endTime>=t}),ks(this,n>this.l.length),!0},r.isTextVisible=function(){return this.s},r.setTextVisibility=function(e){this.s=e},H("shaka.text.UITextDisplayer",ys),ys.prototype.setTextVisibility=ys.prototype.setTextVisibility,ys.prototype.isTextVisible=ys.prototype.isTextVisible,ys.prototype.remove=ys.prototype.remove,ys.prototype.destroy=ys.prototype.destroy,ys.prototype.append=ys.prototype.append,H("shaka.text.WebVttGenerator",function(){});var Ps="m",Ls="a",Is="v",Ns="av",Rs="i",Ds="c",Bs="tt",zs="v",Fs="l";function Hs(){}function qs(e,t,n,r,i){var o,a=i in r,s=!0;for(o in t){var l=i+"."+o,c=a?r[i]:n[o];a||o in n?void 0===t[o]?void 0===c||a?delete e[o]:e[o]=kr(c):c.constructor==Object&&t[o]&&t[o].constructor==Object?(e[o]||(e[o]=kr(c)),l=qs(e[o],t[o],c,r,l),s=s&&l):typeof t[o]!=typeof c||null==t[o]||"function"!=typeof t[o]&&t[o].constructor!=c.constructor?(X("Invalid config, wrong type for "+l),s=!1):("function"==typeof n[o]&&n[o].length!=t[o].length&&G("Unexpected number of arguments for "+l),e[o]=t[o]):(X("Invalid config, unrecognized key "+l),s=!1)}return s}function Us(e,t){for(var n={},r=n,i=0,o=0;!(0>(i=e.indexOf(".",i)));)0!=i&&"\\"==e[i-1]||(r[o=e.substring(o,i).replace(/\\\./g,".")]={},r=r[o],o=i+1),i+=1;return r[e.substring(o).replace(/\\\./g,".")]=t,n}function Vs(){}function Xs(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:ti,logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[]},n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"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:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return e}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,useFullSegmentsForStartTime:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E"}},r={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return[e]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1};(navigator.userAgent.match(/Edge\//)||vn()||bn())&&(r.gapDetectionThreshold=.5),(kn("Web0S")||vn()||bn())&&(r.stallSkip=0);var i={trackSelectionCallback:function(e){return I(function(t){return t.return(e)})},downloadSizeCallback:function(e){var t;return I(function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?w(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))})},progressCallback:function(e,t){return[e,t]},usePersistentLicense:!0},o={drm:t,manifest:n,streaming:r,offline:i,abrFactory:function(){return new er},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};return i.trackSelectionCallback=function(e){return I(function(t){return t.return(function(e,t){var n=e.filter(function(e){return"variant"==e.type}),r=[],i=Ge(t,n.map(function(e){return e.language}));i&&(r=n.filter(function(e){return He(e.language)==i})),0==r.length&&(r=n.filter(function(e){return e.primary})),0==r.length&&(n.map(function(e){return e.language}),r=n);var o=r.filter(function(e){return e.height&&480>=e.height});if(o.length&&(o.sort(function(e,t){return t.height-e.height}),r=o.filter(function(e){return e.height==o[0].height})),n=[],r.length){var a=Math.floor(r.length/2);r.sort(function(e,t){return e.bandwidth-t.bandwidth}),n.push(r[a])}for(r=c(e),a=r.next();!a.done;a=r.next())(a=a.value).type!=Ie&&"image"!=a.type||n.push(a);return n}(e,o.preferredAudioLanguage))})},o}function Gs(e,t,n){var r={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return qs(e,t,n||Xs(),r,"")}function Ws(){this.g=null,this.h=[]}function Js(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function Zs(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var r=c(e.h),i=r.next();!i.done;i=r.next())n+=(i=i.value).state==t?i.duration:0;return n}function Ks(){this.i=this.h=null,this.g=[]}function Ys(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function Qs(){this.B=this.C=this.L=this.I=this.s=this.j=this.J=this.l=this.i=this.M=this.P=this.S=this.G=this.ea=NaN,this.g=new Ws,this.h=new Ks}function _s(t,n){$.call(this);var r=this;this.l=bc,this.Db=this.g=null,this.ha=!1,this.h=new Dr,this.nc=this.B=this.bb=this.H=this.Eb=this.C=this.i=this.ia=this.P=this.Gb=this.L=this.zb=this.J=this.Ca=this.I=this.M=this.s=this.V=null,this.se=1e9,this.m=pl(this),this.oe={width:1/0,height:1/0},this.j=null,this.sa=new lr(this.m.preferredAudioLanguage,this.m.preferredVariantRole,this.m.preferredAudioChannelCount),this.Aa=this.m.preferredTextLanguage,this.ob=this.m.preferredTextRole,this.cb=this.m.preferForcedSubs,this.Zd=[],this.pb=null,n&&n(this),this.V=function(e){return new Er(function(t,n){e.B&&e.B.segmentDownloaded(t,n)},function(t,n,r){t=(new Map).set("headers",t).set("request",n).set("requestType",r),e.dispatchEvent($s(Zl,t))},function(t,n,r,i){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",r).set("aborted",i),e.dispatchEvent($s(Jl,t))})}(this),this.V.Ee(this.m.streaming.forceHTTPS),this.G=null,Sc&&(this.G=Ae(Sc)),this.h.o(e,"online",function(){r.we()}),this.Pa={name:"detach"},this.qb={name:"attach"},this.$={name:"unload"},this.ue={name:"manifest-parser"},this.ke={name:"manifest"},this.Ba={name:"media-source"},this.ae={name:"drm-engine"},this.S={name:"load"},this.xe={name:"src-equals-drm-engine"},this.Ua={name:"src-equals"};var i=new Map;i.set(this.qb,function(e,t){return yr(function(e,t,n){return null==t.K&&(t.K=n.K,e.h.o(t.K,"error",function(){var t=Ll(e);t&&Ol(e,t)})),e.g=t.K,Promise.resolve()}(r,e,t))}),i.set(this.Pa,function(e){return e.K&&(r.h.Ta(e.K,"error"),e.K=null),r.G&&r.G.release(),r.g=null,yr(e=Promise.resolve())}),i.set(this.$,function(e){return yr(tl(r,e))}),i.set(this.Ba,function(e){return e=function(e,t){var n,r,i,o;return I(function(a){if(1==a.g)return n=new Vo,r=e.m.textDisplayFactory,i=Ae(r),e.fe=r,o=function(e,t,n,r){return new Ko(e,t,n,r)}(t.K,n,i,function(t,n,r){for(var i=(t=c(t)).next();!i.done;i=t.next())if((i=i.value).data&&i.cueTime&&i.frames){for(var o=i.cueTime+n,a=r,s=c(i.frames),l=s.next();!l.done;l=s.next())nl(e,o,a,"ID3",l.value);e.G&&e.G.onHlsTimedMetadata(i,o)}}),w(a,o.I,2);e.M=o,k(a)})}(r,e),yr(e)}),i.set(this.ue,function(e,t){var n=function(e,t,n){var r,i,o,a;return I(function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,r=t.uri,i=e.V,e.bb=r,o=e,w(s,mi(r,i,e.m.manifest.retryParameters,t.mimeType),2);o.Eb=s.h,e.C=Ae(e.Eb),a=kr(e.m.manifest),n.K&&"AUDIO"===n.K.nodeName&&(a.disableVideo=!0),e.C.configure(a),k(s)})}(r,e,t);return yr(n)}),i.set(this.ke,function(e){return function(e,t){var n=t.uri,r=e.V;e.Gb=new qa(function(){return e.Na()}),e.Gb.addEventListener("regionadd",function(t){t=t.region,Pl(e,dc,t),e.G&&e.G.onDashTimedMetadata(t)}),e.ia=null,e.m.streaming.observeQualityChanges&&(e.ia=new Ha(function(){return e.Ib()}),e.ia.addEventListener("qualitychange",function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.codecs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent($s(nc,n))}));var i,o,a,s,l={networkingEngine:r,modifyManifestRequest:function(t,n){var r=e.P;try{r.m.enabled&&(r.l=n.format,As(r,t,{ot:Ps,su:!r.g}))}catch(s){W("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",s)}},modifySegmentRequest:function(t,n){Es(e.P,t,n)},filter:function(t){return ml(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,r=c(t.textStreams),i=r.next();!i.done;i=r.next())"application/cea-608"!=(i=i.value).mimeType&&"application/cea-708"!=i.mimeType||n.add(i.originalId);for(r=c(t.variants),i=r.next();!i.done;i=r.next())if((i=i.value.video)&&i.closedCaptions)for(var o=c(i.closedCaptions.keys()),a=o.next();!a.done;a=o.next())if(a=a.value,!n.has(a)){var s=a.startsWith("CC")?"application/cea-608":"application/cea-708",l=new Ra;s={id:e.se++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:l,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:i.closedCaptions.get(a),label:null,type:Ie,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:i.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},t.textStreams.push(s),n.add(a)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.Gb;e:{for(var r=c(n.g),i=r.next();!i.done;i=r.next())if((i=i.value).schemeIdUri==t.schemeIdUri&&i.id==t.id&&i.startTime==t.startTime&&i.endTime==t.endTime){r=i;break e}r=null}null==r&&(n.g.add(t),t=new q("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return Ol(e,t)},isLowLatencyMode:function(){return e.m.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.m.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)}},d=Date.now()/1e3;return new mr(I(function(t){if(1==t.g)return i=e,w(t,e.C.start(n,l),2);if(i.H=t.h,o=$s(tc),e.dispatchEvent(o),0==e.H.variants.length)throw new ye(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.H),a=Date.now()/1e3,s=a-d,e.j.J=s,k(t)}),function(){return e.C.stop()})}(r,e)}),i.set(this.ae,function(e){return e=function(e,t){var n,r;return I(function(i){return 1==i.g?(n=Date.now()/1e3,r=!0,e.s=il(e,{Wb:e.V,onError:function(t){Ol(e,t)},wd:function(t){Il(e,t)},onExpirationUpdated:function(t,n){Nl(e,t,n)},onEvent:function(t){e.dispatchEvent(t),t.type==Kl&&r&&(r=!1,e.j.j=Date.now()/1e3-n)}}),e.s.configure(e.m.drm),w(i,Wr(e.s,e.H.variants,e.H.offlineSessionIds),2)):3!=i.g?w(i,e.s.Hc(t.K),3):w(i,ml(e,e.H),0)})}(r,e),yr(e)}),i.set(this.S,function(e,t){return yr(function(e,t,n){var r,i,o,a,s,l,d,u,h,f;return I(function(p){switch(p.g){case 1:if(t.startTime=n.startTime,null!=e.pb&&(t.startTime=e.pb,e.pb=null),r=t.K,i=t.uri,e.bb=i,e.J=new Da({sd:function(){return t.K.playbackRate},pd:function(){return t.K.defaultPlaybackRate},Ge:function(e){t.K.playbackRate=e},uf:function(e){t.K.currentTime+=e}}),o=function(){return yl(e)},a=function(){return bl(e)},e.h.o(r,"playing",o),e.h.o(r,"pause",o),e.h.o(r,"ended",o),e.h.o(r,"ratechange",a),s=e.m.abrFactory,e.B&&e.nc==s||(e.nc=s,e.B=Ae(s),"function"!=typeof e.B.playbackRateChanged&&(ke("AbrManager","Please use an AbrManager with playbackRateChanged function."),e.B.playbackRateChanged=function(){}),e.B.configure(e.m.abr)),e.sa=new lr(e.m.preferredAudioLanguage,e.m.preferredVariantRole,e.m.preferredAudioChannelCount),e.Aa=e.m.preferredTextLanguage,e.ob=e.m.preferredTextRole,e.cb=e.m.preferForcedSubs,Rl(e.H.presentationTimeline,e.m.playRangeStart,e.m.playRangeEnd),e.B.init(function(t,n,r){e.i&&t!=e.i.h&&xl(e,t,!0,void 0!==n&&n,void 0===r?0:r)}),e.I=function(e,t){return new Aa(e.g,e.H,e.m.streaming,t,function(){if(e.Ca&&Fa(e.Ca,!0),e.i)for(var t=e.i,n=t.F.rd(),r=t.m.smallGapLimit,i=c(t.g.keys()),o=i.next();!o.done;o=i.next()){o=o.value;var a=t.g.get(o);a.za=null;var s=t.F.Y;if(!(s=o==Ie?null!=(s=s.i).g&&null!=s.h&&n>=s.g&&n<s.h:Wo(s=ea(s,o),n,r))&&((null!=$o(t.F.Y,o)||a.hb)&&$a(t,a),a.Ra&&(a.Ra.abort(),a.Ra=null),o===Ie))for((o=t.F.Y.G.g).l=0,o.h=[],o.g=[],(a=o.i).i=[],a.h=[],a.g=0,Lo(o),a=(o=c(o.j.values())).next();!a.done;a=o.next())To(a.value)}e.L&&al(e)},function(t){return e.dispatchEvent(t)})}(e,t.startTime),e.Ca=function(e){var t=new Ua(e.Gb);t.addEventListener("enter",function(t){Pl(e,uc,t.region)}),t.addEventListener("exit",function(t){Pl(e,hc,t.region)}),t.addEventListener("skip",function(t){var n=t.region;t.seeking||(Pl(e,uc,n),Pl(e,hc,n))});var n=new za(e.g);return n.g.add(t),e.ia&&n.g.add(e.ia),n}(e),l=Math.max(e.H.minBufferTime,e.m.streaming.rebufferingGoal),ol(e,l),En(e.H,e.m.preferredVideoCodecs,e.m.preferredAudioCodecs,e.m.preferredAudioChannelCount,e.m.preferredDecodingAttributes),e.i=function(e){return new Za(e.H,{rd:function(){return e.I.l()},getBandwidthEstimate:function(){return e.B.getBandwidthEstimate()},modifySegmentRequest:function(t,n){Es(e.P,t,n)},Y:e.M,Wb:e.V,onError:function(t){return Ol(e,t)},onEvent:function(t){return e.dispatchEvent(t)},Vg:function(){e.C&&e.C.update&&e.C.update()},qe:function(){e.I&&e.I.I(),al(e)},Ug:function(t,n){var r=n.ge;r&&e.ia&&function(e,t,n){var r=function(e,t){var n=e.g.get(t);return n||(n={Vc:[],$e:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){var n=e.h()[t.contentType];if(n&&0<n.length){var r=n[0].start,i=n[n.length-1].end,o=t.Vc;t.Vc=o.filter(function(e,t){return!(e.position<=r&&t+1<o.length&&o[t+1].position<=r||e.position>=i)})}else t.Vc=[]}(e,r),e={ge:t,position:n},0<=(t=(r=r.Vc).findIndex(function(e){return e.position>=n}))?r.splice(t,r[t].position==n?1:0,e):r.push(e)}(e.ia,r,t)}})}(e),e.i.configure(e.m.streaming),e.l=yc,e.dispatchEvent($s(sc)),d=null,e.fb().find(function(e){return e.active})){p.D(2);break}if(d=wl(e)?e.B.chooseVariant():null,xl(e,d,!0,!1,0),!e.m.streaming.startAtSegmentBoundary){p.D(3);break}return u=e.I.l(),w(p,function(e,t){var n,r,i,o,a;return I(function(s){return 1==s.g?(n=e.audio,r=e.video,i=function(e,t){var n,r;return I(function(i){return 1==i.g?e?w(i,e.createSegmentIndex(),2):i.return(null):(n=e.segmentIndex[Symbol.iterator]().seek(t))?(r=n.startTime,i.return(r)):i.return(null)})},w(s,i(n,t),2)):3!=s.g?(o=s.h,w(s,i(r,t),3)):null!=(a=s.h)&&null!=o?s.return(Math.max(a,o)):null!=a?s.return(a):null!=o?s.return(o):s.return(t)})}(d,u),4);case 4:h=p.h,e.I.s(h);case 3:Sl(e,null,Bn(d));case 2:return e.vb().find(function(e){return e.active})||((f=Wn(e.H.textStreams,e.Aa,e.ob,e.cb)[0]||null)&&Ys(e.j.h,f,!0),d&&(f?(d.audio&&function(e,t,n){return e=He(e.m.preferredTextLanguage),t=He(t.language),Be(n=He(n.language),e)&&!Be(t,n)}(e,d.audio,f)&&(e.ha=!0),e.ha&&e.M.s.setTextVisibility(!0),Al(e)):e.ha=!1),f&&(e.m.streaming.alwaysStreamText||e.Vb())&&Qa(e.i,f)),w(p,e.i.start(),5);case 5:e.m.abr.enabled&&(e.B.enable(),jl(e)),Rn(e.i?e.i.h:null,e.H),Bl(e.H),El(e),wl(e),e.H.variants.some(function(e){return e.primary}),e.h.Qa(r,"loadedmetadata",function(){e.j.l=Date.now()/1e3-n.Le}),k(p)}})}(r,e,t))}),i.set(this.xe,function(e,t){var n=function(e,t,n){var r,i,o,a,s,l,c;return I(function(d){return 1==d.g?(r=Ne,i=Date.now()/1e3,o=!0,e.s=il(e,{Wb:e.V,onError:function(t){Ol(e,t)},wd:function(t){Il(e,t)},onExpirationUpdated:function(t,n){Nl(e,t,n)},onEvent:function(t){e.dispatchEvent(t),t.type==Kl&&o&&(o=!1,e.j.j=Date.now()/1e3-i)}}),e.s.configure(e.m.drm),a=n.uri||"",s=vi(a),"application/x-mpegurl"==(l=Ec[s])&&yn()&&(l="application/vnd.apple.mpegurl"),l||(l="video/mp4"),c={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:l,codecs:n.mimeType?an(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:r.mb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.s.S=!0,w(d,Wr(e.s,[c],[]),2)):w(d,e.s.Hc(t.K),0)})}(r,e,t);return yr(n)}),i.set(this.Ua,function(e,t){return function(e,t,n){function r(){return yl(e)}t.uri=n.uri,t.startTime=n.startTime,e.bb=t.uri,e.I=new Ta(t.K),null!=t.startTime&&e.I.s(t.startTime),e.J=new Da({sd:function(){return t.K.playbackRate},pd:function(){return t.K.defaultPlaybackRate},Ge:function(e){t.K.playbackRate=e},uf:function(e){t.K.currentTime+=e}}),ol(e,e.m.streaming.rebufferingGoal),e.h.o(t.K,"playing",r),e.h.o(t.K,"pause",r),e.h.o(t.K,"ended",r),e.h.o(t.K,"ratechange",function(){return bl(e)}),"none"!=e.g.preload&&e.h.Qa(e.g,"loadedmetadata",function(){e.j.l=Date.now()/1e3-n.Le}),e.g.audioTracks&&(e.h.o(e.g.audioTracks,"addtrack",function(){return El(e)}),e.h.o(e.g.audioTracks,"removetrack",function(){return El(e)}),e.h.o(e.g.audioTracks,"change",function(){return El(e)})),e.g.textTracks&&(e.h.o(e.g.textTracks,"addtrack",function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){"metadata"==t.kind&&(t.mode="hidden",e.h.o(t,"cuechange",function(){if(t.activeCues)for(var n=c(t.activeCues),r=n.next();!r.done;r=n.next())r=r.value,nl(e,r.startTime,r.endTime,r.type,r.value),e.G&&e.G.onCueMetadataChange(r.value)}),new pn(function(){for(var t=function(e){return Array.from(e.g.textTracks).filter(function(e){return"metadata"==e.kind})}(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"}).Ga().U(.5))}(e,t);break;case"chapters":rl(e,t);break;default:El(e)}}),e.h.o(e.g.textTracks,"removetrack",function(){return El(e)}),e.h.o(e.g.textTracks,"change",function(){return El(e)}));var i=vi(t.uri);t.K.src=function(e,t,n){try{if(!e.m.enabled)return t;var r=Ts(e);e:{switch(n){case"video/webm":case"video/mp4":var i=Ns;break e;case"application/x-mpegurl":i=Ps;break e}i=void 0}return r.ot=i,r.su=!0,Os(t,js(r))}catch(a){return W("CMCD_SRC_ERROR","Could not generate src CMCD data.",a),t}}(e.P,t.uri,Ec[i]),(vn()||kn("Web0S"))&&t.K.load(),e.l=wc,e.dispatchEvent($s(sc));var o=new Dt;ba(e.g,HTMLMediaElement.HAVE_METADATA,e.h,function(){o.resolve()});var a=!1;return e.Zd.push(function(){a=!0}),ba(e.g,HTMLMediaElement.HAVE_CURRENT_DATA,e.h,function(){return I(function(t){return 1==t.g?a?t.return():(function(e){var t=e.m.preferredAudioLanguage;if(""!=t){e.Dd(t);var n=e.m.preferredVariantRole;""!=n&&e.Dd(t,n)}}(e),ll(e).find(function(e){return"disabled"!=e.mode})?t.D(2):w(t,new Promise(function(t){e.h.Qa(e.g.textTracks,"change",t),new pn(t).U(1)}),2)):a?t.return():(function(e){var t=e.m.preferredTextLanguage,n=e.m.preferForcedSubs;if(""!=t){e.ze(t,"",n);var r=e.m.preferredTextRole;""!=r&&e.ze(t,r,n)}}(e),void k(t))})}),e.g.error?o.reject(Ll(e)):"none"==e.g.preload&&(G('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),o.resolve()),e.h.Qa(e.g,"error",function(){o.reject(Ll(e))}),new mr(o,function(){return o.reject(new ye(2,7,7001)),Promise.resolve()})}(r,e,t)}),this.ka=new cs(this.Pa,{xg:function(e,t,n,i){var o=null;return e==r.Pa&&(o=n==r.Pa?r.Pa:r.qb),e==r.qb&&(o=n==r.Pa||t.K!=i.K?r.Pa:n==r.qb?r.qb:n==r.Ba||n==r.S?r.Ba:n==r.Ua?r.xe:null),e==r.Ba&&(o=n==r.S&&t.K==i.K?r.ue:r.$),e==r.ue&&(o=Ul(r.S,r.ke,r.$,n,t,i)),e==r.ke&&(o=Ul(r.S,r.ae,r.$,n,t,i)),e==r.ae&&(o=Ul(r.S,r.S,r.$,n,t,i)),e==r.xe&&(o=n==r.Ua&&t.K==i.K?r.Ua:r.$),e!=r.S&&e!=r.Ua||(o=r.$),e==r.$&&(o=i.K&&t.K==i.K?r.qb:r.Pa),o},$f:function(e,t,n){return r.dispatchEvent($s(ic,(new Map).set("state",e.name))),i.get(e)(t,n)},handleError:function(e){return I(function(t){return 1==t.g?w(t,tl(r,e),2):t.return(e.K?r.qb:r.Pa)})},Tg:function(e){r.dispatchEvent($s(oc,(new Map).set("state",e.name)))}}),t&&this.Hc(t,!0)}function $s(e,t){return new q(e,t)}function el(){if(e.Promise||G("A Promise implementation or polyfill is required"),e.TextDecoder&&e.TextEncoder||G("A TextDecoder/TextEncoder implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&e.TextDecoder&&e.TextEncoder&&Array.prototype.forEach)||kn("Trident/"))return!1;var t=wn();return!(t&&12>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!mn()||gn("application/x-mpegurl"))}function tl(e,t){var n,r,i,o,a,s,l,d,u;return I(function(h){switch(h.g){case 1:return e.l!=vc&&(e.l=bc),n=e.Zd.map(function(e){return e()}),e.Zd=[],w(h,Promise.all(n),2);case 2:if(e.dispatchEvent($s(pc)),t.mimeType=null,t.startTime=null,t.uri=null,t.K&&(e.h.Ta(t.K,"loadedmetadata"),e.h.Ta(t.K,"playing"),e.h.Ta(t.K,"pause"),e.h.Ta(t.K,"ended"),e.h.Ta(t.K,"ratechange")),e.Ca&&(e.Ca.release(),e.Ca=null),e.zb&&(e.zb.stop(),e.zb=null),!e.C){h.D(3);break}return w(h,e.C.stop(),4);case 4:e.C=null,e.Eb=null;case 3:if(!e.B){h.D(5);break}return w(h,e.B.stop(),5);case 5:if(!e.i){h.D(7);break}return w(h,e.i.destroy(),8);case 8:e.i=null;case 7:if(e.J&&(e.J.release(),e.J=null),e.I&&(e.I.release(),e.I=null),!e.M){h.D(9);break}return w(h,e.M.destroy(),10);case 10:e.M=null;case 9:if(e.G&&e.G.onAssetUnload(),!t.K||!t.K.src){h.D(11);break}return w(h,new Promise(function(e){return new pn(e).U(.1)}),12);case 12:for(t.K.removeAttribute("src"),t.K.load();t.K.lastChild;)t.K.removeChild(t.K.firstChild);case 11:if(!e.s){h.D(13);break}return w(h,e.s.destroy(),14);case 14:e.s=null;case 13:if(e.bb=null,e.L=null,e.H){for(r=c(e.H.variants),i=r.next();!i.done;i=r.next())for(o=i.value,a=c([o.audio,o.video]),s=a.next();!s.done;s=a.next())(l=s.value)&&l.segmentIndex&&l.segmentIndex.release();for(d=c(e.H.textStreams),s=d.next();!s.done;s=d.next())(u=s.value).segmentIndex&&u.segmentIndex.release()}e.H=null,e.j=new Qs,e.fe=null,vl(e),k(h)}})}function nl(e,t,n,r,i){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",r).set("payload",i),e.dispatchEvent($s(rc,t))}function rl(e,t){t&&"chapters"==t.kind&&(t.mode="hidden",new pn(function(){for(var t=cl(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"}).Ga().U(.5))}function il(e,t){return new Gr(t,e.m.drm.updateExpirationTime)}function ol(e,t){e.L=new cr,e.L.g=ur,dr(e.L,t,Math.min(.5,t/2)),vl(e),e.zb=new pn(function(){al(e)}).na(.25)}function al(e){switch(e.l){case wc:if(e.g.ended)var t=!0;else{var n=Go(e.g.buffered);t=null!=n&&n>=e.g.duration-1}break;case yc:e:if(e.g.ended||Qo(e.M))t=!0;else{if(e.H.presentationTimeline.W()){n=e.H.presentationTimeline.Qb();var r=Go(e.g.buffered);if(null!=r&&r>=n){t=!0;break e}}t=!1}break;default:t=!1}r=Jo(e.g.buffered,e.g.currentTime);var i=t,o=(n=e.L).h.get(n.g);t=n.g,r=i||r>=o?hr:ur,n.g=r,t!=r&&vl(e)}function sl(e){if(e.C){var t=kr(e.m.manifest);e.g&&"AUDIO"===e.g.nodeName&&(t.disableVideo=!0),e.C.configure(t)}if(e.s&&e.s.configure(e.m.drm),e.i){e.i.configure(e.m.streaming);try{gl(e,e.H)}catch(o){Ol(e,o)}e.B&&wl(e),!(t=e.i.h)||t.allowedByApplication&&t.allowedByKeySystem||kl(e)}if(e.V&&e.V.Ee(e.m.streaming.forceHTTPS),e.M&&(t=e.m.textDisplayFactory,e.fe!=t)){var n=Ae(t),r=e.M,i=r.s;r.s=n,i&&(n.setTextVisibility(i.isTextVisible()),i.destroy()),r.i&&(r.i.i=n),e.fe=t,e.i&&(n=(t=e.i).g.get(Ie))&&_a(t,n.stream,!0,0,!0)}e.B&&(e.B.configure(e.m.abr),e.m.abr.enabled?e.B.enable():e.B.disable(),jl(e)),e.L&&(t=e.m.streaming.rebufferingGoal,e.H&&(t=Math.max(t,e.H.minBufferTime)),dr(e.L,t,Math.min(.5,t/2))),e.H&&Rl(e.H.presentationTimeline,e.m.playRangeStart,e.m.playRangeEnd)}function ll(e){return Array.from(e.g.textTracks).filter(function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label})}function cl(e){return Array.from(e.g.textTracks).filter(function(e){return"chapters"==e.kind})}function dl(e,t){var n,r;return I(function(i){switch(i.g){case 1:return n=vi(t),(r=Mc[n])?i.return(r):(x(i,2),w(i,gi(t,e.V,e.m.streaming.retryParameters),4));case 4:r=i.h,S(i,3);break;case 2:E(i);case 3:if(r)return i.return(r);throw new ye(1,2,2011,n)}})}function ul(e,t,n,r,i,o,a){var s,l,c,d;return I(function(u){if(1==u.g)return"text/vtt"!=i||a.length?w(u,hl(e,t,e.V,e.m.streaming.retryParameters),3):u.D(2);2!=u.g&&(s=u.h,l=fl(e,s,i,a),c=new Blob([l],{type:"text/vtt"}),t=ca(c),i="text/vtt"),(d=document.createElement("track")).src=Ms(e.P,t),d.label=o,d.kind=r,d.srclang=n,e.g.getAttribute("crossorigin")||e.g.setAttribute("crossorigin","anonymous"),e.g.appendChild(d),k(u)})}function hl(e,t,n,r){var i,o,a;return I(function(s){if(1==s.g){i=Pr,(o=Tr([t],r)).method="GET";var l=e.P;try{l.m.enabled&&As(l,o,{ot:Ds,su:!0})}catch(c){W("CMCD_TEXT_ERROR","Could not generate text CMCD data.",c)}return w(s,n.request(i,o).promise,2)}return a=s.h,s.return(a.data)})}function fl(e,t,n,r){var i=hn[n];if(i)return n=i(),e={periodStart:0,segmentStart:0,segmentEnd:e.g.duration},t=Ot(t),function(e,t){function n(e){for(var n=e,r=c(t),i=r.next();!i.done;i=r.next())(i=i.value).end&&i.start<e&&(n+=i.end-i.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(r=Math.floor(n/60%60))?"0":"")+r+":"+(10>(i=Math.floor(n%60))?"0":"")+i+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}function r(e){var t=[],n=700<=e.fontWeight,i="italic"==e.fontStyle,o=e.textDecoration.includes("underline");return n&&t.push("b"),i&&t.push("i"),o&&t.push("u"),n=t.reduce(function(e,t){return e+"<"+t+">"},""),t=t.reduceRight(function(e,t){return e+"</"+t+">"},""),e.lineBreak||e.spacer?(e.spacer&&ke("shaka.text.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(r).join(""):n+e.payload+t}for(var i=e.map(function(e){if(e.nestedCues.length){var t=e.clone();return t.nestedCues=[],t.payload=r(e),t}return e}),o="WEBVTT\n\n",a=(i=c(i)).next();!a.done;a=i.next())o+=n((a=a.value).startTime)+" --\x3e "+n(a.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case ct:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(a)+"\n",o+=a.payload+"\n\n";return o}(t=n.parseMedia(t,e),r);throw new ye(2,2,2014,n)}function pl(e){var t=Xs();return t.streaming.failureCallback=function(t){e.W()&&[1001,1002,1003].includes(t.code)&&(t.severity=1,e.we())},t.textDisplayFactory=function(){return e.Db?new ys(e.g,e.Db):new hs(e.g)},t}function ml(e,t){return I(function(n){if(1==n.g)return w(n,function(e,t){return I(function(n){if(1==n.g)return w(n,jn(e.i?e.i.h:null,t),2);Bl(t),k(n)})}(e,t),2);gl(e,t),k(n)})}function gl(e,t){if(e.l!=vc){for(var n=e.m.restrictions,r=e.oe,i=!1,o=c(t.variants),a=o.next();!a.done;a=o.next()){var s=(a=a.value).allowedByApplication;a.allowedByApplication=An(a,n,r),s!=a.allowedByApplication&&(i=!0)}if(i&&e.i&&El(e),(n=e.s?e.s.i:null)&&e.s.s)for(i=(r=c(t.variants)).next();!i.done;i=r.next())for(o=(i=c(((i=i.value).video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[]))).next();!o.done;o=i.next())if((o=o.value).keySystem==n.keySystem)for(a=(o=c(o.initData||[])).next();!a.done;a=o.next())a=a.value,Yr(e.s,a.initDataType,a.initData);Dl(e,t)}}function vl(e){var t=e.Rc();if(e.j&&e.L&&e.I){var n=e.J;n.j=t,Ba(n),e.P&&(n=e.P,t||n.g||(n.g=!0),n.g&&t&&(n.i=!0),n.j=t),yl(e)}t=(new Map).set("buffering",t),e.dispatchEvent($s(Wl,t))}function bl(e){var t=e.g.playbackRate;0!=t&&(e.J&&e.J.set(t),t=$s(ac),e.dispatchEvent(t))}function yl(e){if(e.j&&e.L){var t=e.j.g;e.L.g==ur?Js(t,"buffering"):e.g.paused?Js(t,"paused"):e.g.ended?Js(t,"ended"):Js(t,"playing")}}function wl(e){try{Dl(e,e.H)}catch(n){return Ol(e,n),!1}var t=e.H.variants.filter(function(e){return Xn(e)});return t=e.sa.create(t),e.B.setVariants(Array.from(t.values())),!0}function kl(e){var t;(t=wl(e)?e.B.chooseVariant():null)&&xl(e,t,!0,!0,0)}function xl(e,t,n,r,i){var o=e.i.h;if(t==o)r&&Ya(e.i,t,r,i,!0);else{var a=e.j.h;a.h!=t&&(a.h=t,a.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),Ya(e.i,t,r,i),r=null,o&&(r=Bn(o)),t=Bn(t),n?Sl(e,r,t):Ml(e,r,t)}}function Cl(e,t){var n=Array.from(e.g.audioTracks).find(function(e){return e.enabled});t.enabled=!0,t.id!==n.id&&(n.enabled=!1),Ml(e,n=Un(n),Un(t))}function Sl(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),zl(e,t=$s(Gl,t))}function El(e){zl(e,$s(fc))}function Ml(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),zl(e,t=$s(mc,t))}function Tl(e){zl(e,$s(lc))}function Al(e){zl(e,$s(cc))}function jl(e){var t=(new Map).set("newStatus",e.m.abr.enabled);zl(e,$s(Xl,t))}function Ol(e,t){if(e.l!=vc){var n=$s(Ql,(new Map).set("detail",t));e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function Pl(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent($s(t,n))}function Ll(e){if(!e.g.error)return null;var t=e.g.error.code;if(1==t)return null;var n=e.g.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new ye(2,3,3016,t,n,e.g.error.message)}function Il(e,t){if(e.i){var n=Object.keys(t),r=1==n.length&&"00"==n[0],i=!1;if(n.length)for(var o=(n=c(e.H.variants)).next();!o.done;o=n.next()){var a=[];(o=o.value).audio&&a.push(o.audio),o.video&&a.push(o.video);for(var s=(a=c(a)).next();!s.done;s=a.next()){var l=s.value;if(s=o.allowedByKeySystem,l.keyIds.size){o.allowedByKeySystem=!0;for(var d=(l=c(l.keyIds)).next();!d.done;d=l.next())d=d.value,d=t[r?"00":d],o.allowedByKeySystem=o.allowedByKeySystem&&!!d&&!xc.includes(d)}s!=o.allowedByKeySystem&&(i=!0)}}i&&wl(e),(r=e.i.h)&&!r.allowedByKeySystem&&kl(e),i&&El(e)}}function Nl(e,t,n){e.C&&e.C.onExpirationUpdated&&e.C.onExpirationUpdated(t,n),t=$s(_l),e.dispatchEvent(t)}function Rl(e,t,n){0<t&&(e.W()||e.Ff(t)),n<(t=e.getDuration())&&(e.W()||e.ib(n))}function Dl(e,t){var n=e.s?e.s.qd():{},r=Object.keys(n);r=r.length&&"00"==r[0];for(var i=!1,o=!1,a=new Set,s=new Set,l=c(t.variants),d=l.next();!d.done;d=l.next()){var u=[];(d=d.value).audio&&u.push(d.audio),d.video&&u.push(d.video);for(var h=(u=c(u)).next();!h.done;h=u.next())if((h=h.value).keyIds.size)for(var f=(h=c(h.keyIds)).next();!f.done;f=h.next()){f=f.value;var p=n[r?"00":f];p?xc.includes(p)&&s.add(p):a.add(f)}d.allowedByApplication?d.allowedByKeySystem&&(i=!0):o=!0}if(!i)throw new ye(2,4,4012,n={hasAppRestrictions:o,missingKeys:Array.from(a),restrictedKeyStatuses:Array.from(s)})}function Bl(e){if(!e.variants.some(Xn))throw new ye(2,4,4032)}function zl(e,t){I(function(n){if(1==n.g)return w(n,Promise.resolve(),2);e.l!=vc&&e.dispatchEvent(t),k(n)})}function Fl(e){for(var t=new Set,n=(e=c(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(He(n.language)):t.add("und");return t}function Hl(e){for(var t=new Map,n=new Map,r=(e=c(e)).next();!r.done;r=e.next()){var i="und",o=[];(r=r.value).language&&(i=He(r.language)),(o="variant"==r.type?r.audioRoles:r.roles)&&o.length||(o=[""]),t.has(i)||t.set(i,new Set);for(var a=(o=c(o)).next();!a.done;a=o.next())a=a.value,t.get(i).add(a),r.label&&(n.has(i)||n.set(i,new Map),n.get(i).set(a,r.label))}var s=[];return t.forEach(function(e,t){for(var r=c(e),i=r.next();!i.done;i=r.next()){i=i.value;var o=null;n.has(t)&&n.get(t).has(i)&&(o=n.get(t).get(i)),s.push({language:t,role:i,label:o})}}),s}function ql(){return new ye(2,7,7e3)}function Ul(e,t,n,r,i,o){return r==e&&i.K==o.K&&i.uri==o.uri&&i.mimeType==o.mimeType?t:n}function Vl(e){return new Promise(function(t,n){e.Xb=function(){return n(ql())},e.vd=function(){return t()},e.onError=function(e){return n(e)},e.xd=function(){return n(ql())}})}H("shaka.util.CmcdManager.StreamingFormat",{Hh:"d",Vh:"h",Ci:"s",ki:"o"}),H("shaka.util.ConfigUtils",Hs),Hs.convertToConfigObject=Us,Hs.mergeConfigObjects=qs,H("shaka.util.PlayerConfiguration",Vs),Vs.mergeConfigObjects=Gs,g(_s,$),(r=_s.prototype).destroy=function(){var e,t=this;return I(function(n){switch(n.g){case 1:return t.l==vc?n.return():(t.l=vc,e=ds(t.ka,function(){return{node:t.Pa,payload:{K:null,mimeType:null,startTime:null,Le:NaN,uri:null},Rb:!1}}),w(n,new Promise(function(t){e.uc=function(){},e.vd=function(){t()},e.Xb=function(){t()},e.onError=function(){t()},e.xd=function(){t()}}),2));case 2:return w(n,t.ka.destroy(),3);case 3:if(t.h&&(t.h.release(),t.h=null),t.nc=null,t.B=null,t.m=null,t.j=null,t.Db=null,t.P=null,!t.V){n.D(4);break}return w(n,t.V.destroy(),5);case 5:t.V=null;case 4:$.prototype.release.call(t),k(n)}})},r.Hc=function(e,t){if(t=void 0===t||t,this.l==vc)return Promise.reject(ql());var n={K:null,mimeType:null,startTime:null,Le:NaN,uri:null};n.K=e,mn()||(t=!1);var r=t?this.Ba:this.qb,i=ds(this.ka,function(){return{node:r,payload:n,Rb:!1}});return i.uc=function(){},Vl(i)},r.detach=function(){var e=this;if(this.l==vc)return Promise.reject(ql());var t=ds(this.ka,function(){return{node:e.Pa,payload:{K:null,mimeType:null,startTime:null,Le:NaN,uri:null},Rb:!1}});return t.uc=function(){},Vl(t)},r.Qe=function(e){var t=this;if(e=void 0===e||e,this.l==vc)return Promise.reject(ql());mn()||(e=!1);var n={K:null,mimeType:null,startTime:null,Le:NaN,uri:null},r=ds(this.ka,function(r){var i=r.K&&e?t.Ba:r.K?t.qb:t.Pa;return n.K=r.K,{node:i,payload:n,Rb:!1}});return r.uc=function(){},Vl(r)},r.vh=function(e){this.pb=e},r.load=function(e,t,n){var r=this;if(this.pb=null,this.l==vc)return Promise.reject(ql());this.dispatchEvent($s(ec));var i={K:null,mimeType:null,startTime:null,Le:NaN,uri:null};i.uri=e,i.Le=Date.now()/1e3,n&&(i.mimeType=n),void 0!==t&&(i.startTime=t);var o=function(e,t){if(!mn())return!0;var n=t.mimeType,r=t.uri||"";if(n||(n=vi(r),n=Ec[n]),n){if(""==(t.K||xn()).canPlayType(n))return!1;if(!mn()||!(n in bi)&&!(vi(r)in yi)||e.m.streaming.preferNativeHls)return!0;if(yn())return e.m.streaming.useNativeHlsOnSafari}return!1}(this,i)?this.Ua:this.S,a=ds(this.ka,function(e){return null==e.K?null:(i.K=e.K,{node:o,payload:i,Rb:!0})});return this.j=new Qs,this.P=function(e){return new Ss({getBandwidthEstimate:function(){return e.B?e.B.getBandwidthEstimate():NaN},Ib:function(){return e.Ib()},kg:function(){return e.g?e.g.currentTime:0},fb:function(){return e.fb()},Jb:function(){return e.Jb()},W:function(){return e.W()}},e.m.cmcd)}(this),a.uc=function(){},new Promise(function(e,t){a.xd=function(){return t(new ye(2,7,7002))},a.vd=function(){e(),r.dispatchEvent($s($l))},a.Xb=function(){return t(ql())},a.onError=function(e){return t(e)}})},r.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=Us(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ke("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01));var n=Gs(this.m,e,pl(this));return sl(this),n},r.getConfiguration=function(){var e=pl(this);return Gs(e,this.m,pl(this)),e},r.dg=function(){if(this.g){var e=this.g.buffered.length;e=e?this.g.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.g.currentTime+t,this.Na().end)))return 1;if(!(e<=this.g.currentTime)&&e<t)return(e-this.g.currentTime)/(t-this.g.currentTime)}return 0},r.gh=function(){for(var e in this.m)delete this.m[e];Gs(this.m,pl(this),pl(this)),sl(this)},r.kf=function(){return this.l},r.wg=function(){return this.g},r.Mc=function(){return this.V},r.Yd=function(){return this.bb},r.od=function(){return this.G?this.G:null},r.W=function(){return this.H?this.H.presentationTimeline.W():!(!this.g||!this.g.src)&&1/0==this.g.duration},r.Tb=function(){return!!this.H&&this.H.presentationTimeline.Tb()},r.pf=function(){if(this.H){var e=this.H.variants;return!!e.length&&!e[0].video}return!(!this.g||!this.g.src)&&(this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight)},r.Na=function(){if(this.H){var e=this.H.presentationTimeline;return{start:e.mc(),end:e.sb()}}return this.g&&this.g.src&&(e=this.g.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},r.Jg=function(){this.W()&&(this.g.currentTime=this.Na().end)},r.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},r.drmInfo=function(){return this.s?this.s.i:null},r.Lc=function(){return this.s?this.s.Lc():1/0},r.qd=function(){return this.s?this.s.qd():{}},r.Rc=function(){return!!this.L&&this.L.g==ur},r.Jb=function(){return this.g?this.J?this.J.i:1:0},r.Pe=function(e){0==e?G("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.J.set(e),this.l==yc&&(this.B.playbackRateChanged(e),Ka(this.i,1<Math.abs(e))))},r.Ue=function(){var e=this.J.pd();this.l==wc&&this.J.set(e),this.l==yc&&(this.J.set(e),this.B.playbackRateChanged(e),Ka(this.i,!1))},r.fb=function(){if(this.H){for(var e=this.i?this.i.h:null,t=[],n=0,r=c(this.H.variants),i=r.next();!i.done;i=r.next())if(Xn(i=i.value)){var o=Bn(i);o.active=i==e,o.active||1==n||null==e||i.video!=e.video||i.audio!=e.audio||(o.active=!0),o.active&&n++,t.push(o)}return t}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(e){return Un(e)}):[]},r.vb=function(){if(this.H){for(var e=this.i?this.i.i:null,t=[],n=c(this.H.textStreams),r=n.next();!r.done;r=n.next()){var i=zn(r=r.value);i.active=r==e,t.push(i)}return t}return this.g&&this.g.src&&this.g.textTracks?ll(this).map(function(e){return qn(e)}):[]},r.ng=function(){return this.H?this.H.imageStreams.map(function(e){return Fn(e)}):[]},r.Fg=function(e,t){var n,r,i,o,a,s,l,c,d,u,h,f,p,m,g,v,b,y,k=this;return I(function(x){return 1==x.g?k.H?(n=k.H.imageStreams.find(function(t){return t.id==e}))?n.segmentIndex?x.D(3):w(x,n.createSegmentIndex(),3):x.return(null):x.D(2):2!=x.g?null==(r=n.segmentIndex.find(t))?x.return(null):(i=n.segmentIndex.get(r),o=i.tilesLayout||n.tilesLayout,(a=/(\d+)x(\d+)/.exec(o))?(s=n.width||0,l=n.height||0,c=parseInt(a[1],10),d=parseInt(a[2],10),u=s/c,h=l/d,f=c*d,p=i.l-i.startTime,m=i.i||p/f,g=i.startTime,b=v=0,1<f&&(y=Math.floor((t-i.startTime)/m),g=i.startTime+y*m,v=y%c*u,b=Math.floor(y/c)*h),x.return({imageHeight:l,imageWidth:s,height:h,positionX:v,positionY:b,startTime:g,duration:m,uris:i.Ma(),width:u})):x.return(null)):x.return(null)})},r.Ae=function(e){if(this.H&&this.i){var t=this.H.textStreams.find(function(t){return t.id==e.id});t&&t!=this.i.i&&(Ys(this.j.h,t,!1),Qa(this.i,t),Tl(this),this.Aa=t.language)}else if(this.g&&this.g.src&&this.g.textTracks){for(var n=(t=c(t=ll(this))).next();!n.done;n=t.next())Hn(n=n.value)==e.id?n.mode=this.ha?"showing":"hidden":n.mode="disabled";Tl(this)}},r.Be=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.H&&this.i){this.m.abr.enabled&&G("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var r=this.H.variants.find(function(t){return t.id==e.id});r&&Xn(r)&&(xl(this,r,!1,t,n),this.sa=new sr(r),wl(this))}else if(this.g&&this.g.audioTracks)for(n=(t=c(t=Array.from(this.g.audioTracks))).next();!n.done;n=t.next())if(Hn(n=n.value)==e.id){Cl(this,n);break}},r.cg=function(){return Hl(this.fb())},r.Eg=function(){return Hl(this.vb())},r.ag=function(){return Array.from(Fl(this.fb()))},r.Dg=function(){return Array.from(Fl(this.vb()))},r.Dd=function(e,t){if(this.H&&this.I){this.sa=new lr(e,t||"",0,"");for(var n=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},r=this.i.h,i=this.sa.create(this.H.variants),o=null,a=(i=c(i.values())).next();!a.done;a=i.next())a=a.value,(!o||n(o,r)>n(a,r))&&(o=a);o?(n=Bn(o),this.Be(n,!0)):kl(this)}else if(this.g&&this.g.audioTracks){for(i=Array.from(this.g.audioTracks),n=He(e),o=r=null,a=(i=c(i)).next();!a.done;a=i.next()){var s=Un(a=a.value);He(s.language)==n&&(r=a,t?s.roles.includes(t)&&(o=a):0==s.roles.length&&(o=a))}o?Cl(this,o):r&&Cl(this,r)}},r.ze=function(e,t,n){if(n=void 0!==n&&n,this.H&&this.I)this.Aa=e,this.ob=t||"",this.cb=n,(e=Wn(this.H.textStreams,this.Aa,this.ob,this.cb)[0]||null)&&e!=this.i.i&&(Ys(this.j.h,e,!1),this.m.streaming.alwaysStreamText||this.Vb())&&(Qa(this.i,e),Tl(this));else{var r=He(e);(e=this.vb().find(function(e){return He(e.language)==r&&(!t||e.roles.includes(t))&&e.forced==n}))&&this.Ae(e)}},r.ih=function(e){if(this.H&&this.I){for(var t=null,n=c(this.H.variants),r=n.next();!r.done;r=n.next())if((r=r.value).audio.label==e){t=r;break}null!=t&&(this.sa=new lr(t.language,"",0,e),kl(this))}},r.Vb=function(){var e=this.ha;return this.M?this.M.s.isTextVisible():this.g&&this.g.src&&this.g.textTracks?ll(this).some(function(e){return"showing"==e.mode}):e},r.hf=function(){return this.g&&this.g.src&&this.g.textTracks?cl(this).map(function(e){return qn(e)}):[]},r.fg=function(e){var t=He(e),n=cl(this).filter(function(e){return He(e.language)==t});if(!n||!n.length)return[];e=[];for(var r=(n=c(n)).next();!r.done;r=n.next())if((r=r.value)&&r.cues)for(var i=(r=c(r.cues)).next();!i.done;i=r.next())i=i.value,e.push({title:i.text,startTime:i.startTime,endTime:i.endTime});return e},r.Je=function(e){if(e=!!e,this.ha!=e){if(this.ha=e,this.l==yc)this.M.s.setTextVisibility(e),this.m.streaming.alwaysStreamText||(e?this.i.i||0<(e=Wn(this.H.textStreams,this.Aa,this.ob,this.cb)).length&&(Qa(this.i,e[0]),Tl(this)):function(e){var t=e.g.get(Ie);t&&(as(t),ss(t).catch(function(){}),e.g.delete(Ie)),e.i=null}(this.i));else if(this.g&&this.g.src&&this.g.textTracks)for(var t=ll(this),n=(t=c(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");Al(this)}},r.yg=function(){if(!this.W())return null;var e=this.ka.l,t=0;if(this.I)t=this.I.l();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.H?new Date(1e3*(this.H.presentationTimeline.j+t)):this.g&&this.g.getStartDate?(e=this.g.getStartDate(),isNaN(e.getTime())?null:new Date(e.getTime()+1e3*t)):null},r.lf=function(){if(!this.W())return null;if(this.H)return new Date(1e3*this.H.presentationTimeline.j);if(this.g&&this.g.getStartDate){var e=this.g.getStartDate();return isNaN(e.getTime())?null:e}return null},r.Ib=function(){if(this.l==yc)return this.M.Ib();var e={total:[],audio:[],video:[],text:[]};return this.l==wc&&(e.total=Zo(this.g.buffered)),e},r.getStats=function(){if(this.l!=yc&&this.l!=wc)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};yl(this);var e=this.g,t=e.currentTime/e.duration;if(!isNaN(t)){var n=this.j;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}e.getVideoPlaybackQuality&&(e=e.getVideoPlaybackQuality(),n=this.j,t=Number(e.totalVideoFrames),n.S=Number(e.droppedVideoFrames),n.P=t,this.j.M=Number(e.corruptedVideoFrames)),e=this.s&&(e=this.s).I?e.I:NaN,this.j.s=e,this.l==yc&&((e=this.i.h)&&(this.j.C=(this.J?this.J.i:1)*e.bandwidth),e&&e.video&&(n=this.j,t=e.video.height||NaN,n.ea=e.video.width||NaN,n.G=t),this.W()&&(e=this.lf().valueOf()+1e3*this.Na().end,this.j.I=(Date.now()-e)/1e3),this.H&&this.H.presentationTimeline&&(this.j.L=this.H.presentationTimeline.g),e=this.B.getBandwidthEstimate(),this.j.B=e);var r=this.j;e=r.ea,n=r.G,t=r.C;for(var i=r.P,o=r.S,a=r.M,s=r.B,l=r.i,d=r.l,u=r.J,h=r.j,f=Zs(r.g,"playing"),p=Zs(r.g,"paused"),m=Zs(r.g,"buffering"),g=r.s,v=r.I,b=r.L,y=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],r=c(e.h),i=r.next();!i.done;i=r.next())n.push(t(i.value));return e.g&&n.push(t(e.g)),n}(r.g),w=[],k=(r=c(r.h.g)).next();!k.done;k=r.next())k=k.value,w.push({timestamp:k.timestamp,id:k.id,type:k.type,fromAdaptation:k.fromAdaptation,bandwidth:k.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:i,droppedFrames:o,corruptedFrames:a,estimatedBandwidth:s,completionPercent:l,loadLatency:d,manifestTimeSeconds:u,drmTimeSeconds:h,playTime:f,pauseTime:p,bufferingTime:m,licenseTime:g,liveLatency:v,maxSegmentDuration:b,stateHistory:y,switchHistory:w}},r.addTextTrack=function(e,t,n,r,i,o,a){if(a=void 0!==a&&a,ke("addTextTrack","Please use an addTextTrackAsync."),this.l!=yc&&this.l!=wc)throw new ye(1,7,7004);if(!r){var s=vi(e);if(!(r=Mc[s]))throw new ye(1,2,2011,s)}if(this.l==wc){if("text/vtt"!=r)throw new ye(1,2,2013,r);if(a&&(n="forced"),(r=document.createElement("track")).src=Ms(this.P,e),r.label=o||"",r.kind=n,r.srclang=t,this.g.getAttribute("crossorigin")||this.g.setAttribute("crossorigin","anonymous"),this.g.appendChild(r),e=this.vb().find(function(e){return e.language==t&&e.label==(o||"")&&e.kind==n}))return El(this),e;throw new ye(1,2,2012)}if(1/0==(s=this.H.presentationTimeline.getDuration()))throw new ye(1,4,4033);if(!ln(nn((e={id:this.se++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ia(0,s,[e]),mimeType:r||"",codecs:i||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:o||null,type:Ie,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!a,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}).mimeType,e.codecs)))throw new ye(2,2,2014,r);return this.H.textStreams.push(e),El(this),zn(e)},r.Rf=function(e,t,n,r,i,o,a){a=void 0!==a&&a;var s,l,c,d,u,h,f,p,m,g=this;return I(function(v){switch(v.g){case 1:if(g.l!=yc&&g.l!=wc)throw new ye(1,7,7004);if(r){v.D(2);break}return w(v,dl(g,e),3);case 3:r=v.h;case 2:if(s=[],g.G)try{s=g.G.getServerSideCuePoints()}catch(b){}if(g.l!=wc){v.D(4);break}return a&&(n="forced"),w(v,ul(g,e,t,n,r,o||"",s),5);case 5:if(l=g.vb(),c=l.find(function(e){return e.language==t&&e.label==(o||"")&&e.kind==n}))return El(g),v.return(c);throw new ye(1,2,2012);case 4:if(d=Ne,1/0==(u=g.H.presentationTimeline.getDuration()))throw new ye(1,4,4033);if(!s.length){v.D(6);break}return w(v,hl(g,e,g.V,g.m.streaming.retryParameters),7);case 7:h=v.h,f=fl(g,h,r,s),p=new Blob([f],{type:"text/vtt"}),e=ca(p),r="text/vtt";case 6:if(m={id:g.se++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ia(0,u,[e]),mimeType:r||"",codecs:i||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:o||null,type:d.ua,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!a,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},!ln(nn(m.mimeType,m.codecs)))throw new ye(2,2,2014,r);return g.H.textStreams.push(m),El(g),v.return(zn(m))}})},r.Qf=function(e,t,n){var r,i,o,a,s,l,d,u=this;return I(function(h){switch(h.g){case 1:if(u.l!=yc&&u.l!=wc)throw new ye(1,7,7004);if(n){h.D(2);break}return w(h,dl(u,e),3);case 3:n=h.h;case 2:if(r=[],u.G)try{r=u.G.getServerSideCuePoints()}catch(f){}return w(h,ul(u,e,t,"chapters",n,"",r),4);case 4:if(i=u.hf(),o=i.find(function(e){return e.language==t})){for(a=cl(u),s=c(a),l=s.next();!l.done;l=s.next())d=l.value,rl(u,d);return h.return(o)}throw new ye(1,2,2012)}})},r.Fe=function(e,t){this.oe.width=e,this.oe.height=t},r.we=function(){if(this.l==yc){var e=this.i;if(e.N.g)e=!1;else if(e.j)e=!1;else{for(var t=c(e.g.values()),n=t.next();!n.done;n=t.next())(n=n.value).Pc&&(n.Pc=!1,os(e,n,.1));e=!0}}else e=!1;return e},r.sg=function(){return G("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.H},r.ug=function(){return this.Eb},r.Ke=function(e){this.Db=e},H("shaka.Player",_s),_s.prototype.setVideoContainer=_s.prototype.Ke,_s.prototype.getManifestParserFactory=_s.prototype.ug,_s.prototype.getManifest=_s.prototype.sg,_s.prototype.retryStreaming=_s.prototype.we,_s.prototype.setMaxHardwareResolution=_s.prototype.Fe,_s.prototype.addChaptersTrack=_s.prototype.Qf,_s.prototype.addTextTrackAsync=_s.prototype.Rf,_s.prototype.addTextTrack=_s.prototype.addTextTrack,_s.prototype.getStats=_s.prototype.getStats,_s.prototype.getBufferedInfo=_s.prototype.Ib,_s.prototype.getPresentationStartTimeAsDate=_s.prototype.lf,_s.prototype.getPlayheadTimeAsDate=_s.prototype.yg,_s.prototype.setTextTrackVisibility=_s.prototype.Je,_s.prototype.getChapters=_s.prototype.fg,_s.prototype.getChaptersTracks=_s.prototype.hf,_s.prototype.isTextTrackVisible=_s.prototype.Vb,_s.prototype.selectVariantsByLabel=_s.prototype.ih,_s.prototype.selectTextLanguage=_s.prototype.ze,_s.prototype.selectAudioLanguage=_s.prototype.Dd,_s.prototype.getTextLanguages=_s.prototype.Dg,_s.prototype.getAudioLanguages=_s.prototype.ag,_s.prototype.getTextLanguagesAndRoles=_s.prototype.Eg,_s.prototype.getAudioLanguagesAndRoles=_s.prototype.cg,_s.prototype.selectVariantTrack=_s.prototype.Be,_s.prototype.selectTextTrack=_s.prototype.Ae,_s.prototype.getThumbnails=_s.prototype.Fg,_s.prototype.getImageTracks=_s.prototype.ng,_s.prototype.getTextTracks=_s.prototype.vb,_s.prototype.getVariantTracks=_s.prototype.fb,_s.prototype.cancelTrickPlay=_s.prototype.Ue,_s.prototype.trickPlay=_s.prototype.Pe,_s.prototype.getPlaybackRate=_s.prototype.Jb,_s.prototype.isBuffering=_s.prototype.Rc,_s.prototype.getKeyStatuses=_s.prototype.qd,_s.prototype.getExpiration=_s.prototype.Lc,_s.prototype.drmInfo=_s.prototype.drmInfo,_s.prototype.keySystem=_s.prototype.keySystem,_s.prototype.goToLive=_s.prototype.Jg,_s.prototype.seekRange=_s.prototype.Na,_s.prototype.isAudioOnly=_s.prototype.pf,_s.prototype.isInProgress=_s.prototype.Tb,_s.prototype.isLive=_s.prototype.W,_s.prototype.getAdManager=_s.prototype.od,_s.prototype.getAssetUri=_s.prototype.Yd,_s.prototype.getNetworkingEngine=_s.prototype.Mc,_s.prototype.getMediaElement=_s.prototype.wg,_s.prototype.getLoadMode=_s.prototype.kf,_s.prototype.resetConfiguration=_s.prototype.gh,_s.prototype.getBufferFullness=_s.prototype.dg,_s.prototype.getConfiguration=_s.prototype.getConfiguration,_s.prototype.configure=_s.prototype.configure,_s.prototype.load=_s.prototype.load,_s.prototype.updateStartTime=_s.prototype.vh,_s.prototype.unload=_s.prototype.Qe,_s.prototype.detach=_s.prototype.detach,_s.prototype.attach=_s.prototype.Hc,_s.probeSupport=function(e){var t,n,r,i,o;return e=void 0===e||e,I(function(a){if(1==a.g)return t={},e?w(a,function(){var e,t,n,r,i,o;return I(function(a){return 1==a.g?(e="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),n=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],r=new Map,i=function(e){var t,i,o;return I(function(a){switch(a.g){case 1:return x(a,2),w(a,navigator.requestMediaKeySystemAccess(e,n),4);case 4:return t=a.h,o=!!(i=t.getConfiguration().sessionTypes)&&i.includes("persistent-license"),kn("Tizen 3")&&(o=!1),r.set(e,{persistentState:o}),w(a,t.createMediaKeys(),5);case 5:S(a,0);break;case 2:E(a),r.set(e,null),k(a)}})},o=e.map(function(e){return i(e)}),w(a,Promise.all(o),2)):a.return(Vr(r))})}(),3):a.D(2);2!=a.g&&(t=a.h);var s={};if(mn()){for(var l in bi)s[l]=!0;for(var d in yi)s[d]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};for(var u=(d=c(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!u.done;u=d.next())s[u=u.value]=mn()?!!bi[u]:gn(u);for(var h in l)s[h]=mn()?!!yi[h]:gn(l[h]);for(n=s,s={},l=(h=c('video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(","))).next();!l.done;l=h.next())s[l=l.value]=mn()?!!ln(l)||MediaSource.isTypeSupported(l)||$t(l):gn(l),s[d=l.split(";")[0]]=s[d]||s[l];for(o in r={manifest:n,media:s,drm:t},i=Cc)r[o]=i[o]();return a.return(r)})},_s.isBrowserSupported=el,_s.setAdManagerFactory=function(e){Sc=e},_s.registerSupportPlugin=function(e,t){Cc[e]=t},_s.prototype.destroy=_s.prototype.destroy;var Xl="abrstatuschanged",Gl="adaptation",Wl="buffering",Jl="downloadfailed",Zl="downloadheadersreceived",Kl="drmsessionupdate",Yl="emsg",Ql="error",_l="expirationupdated",$l="loaded",ec="loading",tc="manifestparsed",nc="mediaqualitychanged",rc="metadata",ic="onstatechange",oc="onstateidle",ac="ratechange",sc="streaming",lc="textchanged",cc="texttrackvisibility",dc="timelineregionadded",uc="timelineregionenter",hc="timelineregionexit",fc="trackschanged",pc="unloading",mc="variantchanged",gc={Ch:Xl,Dh:Gl,Eh:Wl,Ih:Jl,Jh:Zl,Kh:Kl,Rh:Yl,Error:Ql,Sh:_l,Yh:"largegap",Zh:$l,$h:ec,di:tc,ei:nc,Metadata:rc,li:ic,mi:oc,xi:ac,Ei:"sessiondata",Fi:sc,Gi:lc,Hi:cc,Ii:dc,Ji:uc,Ki:hc,Li:fc,Pi:pc,Ri:mc},vc=0,bc=1,yc=2,wc=3;_s.LoadMode={DESTROYED:vc,NOT_LOADED:bc,MEDIA_SOURCE:yc,SRC_EQUALS:wc},_s.version="v3.3.2";var kc=["3","3"];Se=new function(e){this.g=e,this.i=xe,this.h=Ce}(new we(Number(kc[0]),Number(kc[1])));var xc=["output-restricted","internal-error"],Cc={},Sc=null,Ec={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Mc={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Tc(){this.h=[],this.j=this.i=this.g=0}function Ac(e,t){var n=this;this.i=e,this.g=t,this.j=!1,this.l=this.g.getVolume(),this.h=new Dr,this.h.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){n.j=!0}),this.h.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){n.j=!1})}function jc(t,n,r,i){var o=this;this.B=t,this.g=n,this.C=null,this.G=NaN,this.j=i,this.s=null,this.h=new Dr,google.ima.settings.setLocale(r),(t=new google.ima.AdDisplayContainer(this.B,this.g)).initialize(),this.l=new google.ima.AdsLoader(t),this.l.getSettings().setPlayerType("shaka-player"),this.l.getSettings().setPlayerVersion("v3.3.2"),this.i=null,this.h.Qa(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(t){!function(n,r){n.j(new q("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-n.G))),n.i=r.getAdsManager(n.g),n.j(new q("ima-ad-manager-loaded",(new Map).set("imaAdManager",n.i)));var i=n.i.getCuePoints();if(i.length){for(var o=[],a=(i=c(i)).next();!a.done;a=i.next())o.push({start:a.value,end:null});n.j(new q("ad-cue-points-changed",(new Map).set("cuepoints",o)))}!function(e){function t(t,n){var r=(new Map).set("originalEvent",t);e.j(new q(n,r))}e.h.o(e.i,google.ima.AdErrorEvent.Type.AD_ERROR,function(t){Oc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(t){Pc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.STARTED,function(t){Pc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.FIRST_QUARTILE,function(e){t(e,"ad-first-quartile")}),e.h.o(e.i,google.ima.AdEvent.Type.MIDPOINT,function(e){t(e,"ad-midpoint")}),e.h.o(e.i,google.ima.AdEvent.Type.THIRD_QUARTILE,function(e){t(e,"ad-third-quartile")}),e.h.o(e.i,google.ima.AdEvent.Type.COMPLETE,function(e){t(e,"ad-complete")}),e.h.o(e.i,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(t){Lc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(t){Lc(e,t)}),e.h.o(e.i,google.ima.AdEvent.Type.SKIPPED,function(e){t(e,"ad-skipped")}),e.h.o(e.i,google.ima.AdEvent.Type.VOLUME_CHANGED,function(e){t(e,"ad-volume-changed")}),e.h.o(e.i,google.ima.AdEvent.Type.VOLUME_MUTED,function(e){t(e,"ad-muted")}),e.h.o(e.i,google.ima.AdEvent.Type.PAUSED,function(n){e.s.j=!0,t(n,"ad-paused")}),e.h.o(e.i,google.ima.AdEvent.Type.RESUMED,function(n){e.s.j=!1,t(n,"ad-resumed")}),e.h.o(e.i,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(e){t(e,"ad-skip-state-changed")}),e.h.o(e.i,google.ima.AdEvent.Type.CLICK,function(e){t(e,"ad-clicked")}),e.h.o(e.i,google.ima.AdEvent.Type.AD_PROGRESS,function(e){t(e,"ad-progress")}),e.h.o(e.i,google.ima.AdEvent.Type.AD_BUFFERING,function(e){t(e,"ad-buffering")}),e.h.o(e.i,google.ima.AdEvent.Type.IMPRESSION,function(e){t(e,"ad-impression")}),e.h.o(e.i,google.ima.AdEvent.Type.DURATION_CHANGE,function(e){t(e,"ad-duration-changed")}),e.h.o(e.i,google.ima.AdEvent.Type.USER_CLOSE,function(e){t(e,"ad-closed")}),e.h.o(e.i,google.ima.AdEvent.Type.LOADED,function(e){t(e,"ad-loaded")}),e.h.o(e.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(e){t(e,"all-ads-completed")}),e.h.o(e.i,google.ima.AdEvent.Type.LINEAR_CHANGED,function(e){t(e,"ad-linear-changed")}),e.h.o(e.i,google.ima.AdEvent.Type.AD_METADATA,function(e){t(e,"ad-metadata")}),e.h.o(e.i,google.ima.AdEvent.Type.LOG,function(e){t(e,"ad-recoverable-error")}),e.h.o(e.i,google.ima.AdEvent.Type.AD_BREAK_READY,function(e){t(e,"ad-break-ready")}),e.h.o(e.i,google.ima.AdEvent.Type.INTERACTION,function(e){t(e,"ad-interaction")})}(n);try{n.i.init(n.g.offsetWidth,n.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),n.h.o(n.g,"loadeddata",function(){n.i.resize(n.g.offsetWidth,n.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in e&&(n.C=new ResizeObserver(function(){n.i.resize(n.g.offsetWidth,n.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),n.C.observe(n.g)),n.i.start()}catch(t){Lc(n,null)}}(o,t)}),this.h.o(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(e){Oc(o,e)}),this.g.onended=function(){o.l.contentComplete()}}function Oc(e,t){t.getError(),Lc(e,null),e.j(new q("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function Pc(e,t){var n=t.getAd();e.s=new Ac(n,e.i),n=(new Map).set("ad",e.s).set("sdkAdObject",n).set("originalEvent",t),e.j(new q("ad-started",n)),e.s.isLinear()&&(e.B.setAttribute("ad-active","true"),e.g.pause())}function Lc(e,t){e.j(new q("ad-stopped",(new Map).set("originalEvent",t))),e.s.isLinear()&&(e.B.removeAttribute("ad-active"),e.g.play())}function Ic(e,t){this.i=e,this.h=null,this.g=t}function Nc(e,t,n,r){var i=this;this.C=e,this.g=t,this.l=null,this.M=NaN,this.j=r,this.L=!1,this.G=this.s=this.B=null,this.I="",this.J=[],this.h=new Dr,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.i=new google.ima.dai.api.StreamManager(this.g,this.C,e),this.j(new q("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.i))),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.LOADED,function(e){!function(e,t){e.j(new q("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.M)));var n=t.getStreamData().url;e.l.resolve(n),e.l=null,e.L||e.h.o(e.g,"seeked",function(){var t=e.g.currentTime;if(0!=t){e.i.streamTimeForContentTime(t);var n=e.i.previousCuePointForStreamTime(t);n&&!n.played&&(e.B=t,e.g.currentTime=n.start)}})}(i,e)}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.ERROR,function(){i.I.length?i.l.resolve(i.I):i.l.reject("IMA Stream request returned an error and there was no backup asset uri provided."),i.l=null}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.STARTED,function(e){e=e.getAd(),i.s=new Ic(e,i.g),i.G&&(i.s.h=i.G),i.j(new q("ad-started",(new Map).set("ad",i.s))),i.C.setAttribute("ad-active","true")}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){i.C.removeAttribute("ad-active");var e=i.g.currentTime;i.B&&i.B>e&&(i.g.currentTime=i.B,i.B=null)}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(e){i.G=e.getStreamData().adProgressData,i.s&&(i.s.h=i.G)}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){i.j(new q("ad-first-quartile"))}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){i.j(new q("ad-midpoint"))}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){i.j(new q("ad-third-quartile"))}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){i.j(new q("ad-complete")),i.j(new q("ad-stopped")),i.C.removeAttribute("ad-active"),i.s=null}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){i.j(new q("ad-skipped")),i.j(new q("ad-stopped"))}),this.h.o(this.i,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(e){var t=e.getStreamData();e=[];for(var n=(t=c(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});i.J=e,i.j(new q("ad-cue-points-changed",(new Map).set("cuepoints",e)))})}function Rc(){$.call(this),this.g=this.h=null,this.j=new Tc,this.i=navigator.language}function Dc(e){return JSON.stringify(e,function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof q){var n={};for(i in t){var r=t[i];r&&"object"==typeof r?"detail"==i&&(n[i]=r):i in Event||(n[i]=r)}return n}if(t instanceof Error){var i=new Set(["name","message","stack"]);for(n in t)i.add(n);for(n=(r=c(Object.getOwnPropertyNames(t))).next();!n.done;n=r.next())i.add(n.value);for(r={},n=(i=c(i)).next();!n.done;n=i.next())r[n=n.value]=t[n];i={__type__:"Error",contents:r}}else if(t instanceof TimeRanges)for(i={__type__:"TimeRanges",length:t.length,start:[],end:[]},r=(n=c(Zo(t))).next();!r.done;r=n.next()){var o=(r=r.value).end;i.start.push(r.start),i.end.push(o)}else i=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return i}})}function Bc(e){return JSON.parse(e,function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){n=t.contents;var r,i=Error(n.message);for(r in n)i[r]=n[r];n=i}else n=t;return n})}(r=Ac.prototype).getDuration=function(){return this.i.getDuration()},r.getMinSuggestedDuration=function(){return this.i.getMinSuggestedDuration()},r.getRemainingTime=function(){return this.g.getRemainingTime()},r.isPaused=function(){return this.j},r.isSkippable=function(){return 0<=this.i.getSkipTimeOffset()},r.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return this.g.getAdSkippableState()},r.skip=function(){return this.g.skip()},r.pause=function(){return this.g.pause()},r.play=function(){return this.g.resume()},r.getVolume=function(){return this.g.getVolume()},r.setVolume=function(e){return this.g.setVolume(e)},r.isMuted=function(){return 0==this.g.getVolume()},r.isLinear=function(){return this.i.isLinear()},r.resize=function(e,t){this.g.resize(e,t,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},r.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},r.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},r.release=function(){this.g=this.i=null},H("shaka.ads.ClientSideAd",Ac),Ac.prototype.release=Ac.prototype.release,Ac.prototype.getPositionInSequence=Ac.prototype.getPositionInSequence,Ac.prototype.getSequenceLength=Ac.prototype.getSequenceLength,Ac.prototype.setMuted=Ac.prototype.setMuted,Ac.prototype.resize=Ac.prototype.resize,Ac.prototype.isLinear=Ac.prototype.isLinear,Ac.prototype.isMuted=Ac.prototype.isMuted,Ac.prototype.setVolume=Ac.prototype.setVolume,Ac.prototype.getVolume=Ac.prototype.getVolume,Ac.prototype.play=Ac.prototype.play,Ac.prototype.pause=Ac.prototype.pause,Ac.prototype.skip=Ac.prototype.skip,Ac.prototype.canSkipNow=Ac.prototype.canSkipNow,Ac.prototype.getTimeUntilSkippable=Ac.prototype.getTimeUntilSkippable,Ac.prototype.isSkippable=Ac.prototype.isSkippable,Ac.prototype.isPaused=Ac.prototype.isPaused,Ac.prototype.getRemainingTime=Ac.prototype.getRemainingTime,Ac.prototype.getMinSuggestedDuration=Ac.prototype.getMinSuggestedDuration,Ac.prototype.getDuration=Ac.prototype.getDuration,jc.prototype.stop=function(){this.i&&this.i.stop(),this.B&&bs(this.B)},jc.prototype.release=function(){this.stop(),this.C&&this.C.disconnect(),this.h&&this.h.release(),this.i&&this.i.destroy(),this.l.destroy()},(r=Ic.prototype).getDuration=function(){return this.h?this.h.duration:-1},r.getMinSuggestedDuration=function(){return this.getDuration()},r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1},r.isPaused=function(){return this.g.paused},r.isSkippable=function(){return this.i.isSkippable()},r.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},r.skip=function(){this.g.currentTime+=this.getRemainingTime()},r.pause=function(){return this.g.pause()},r.play=function(){return this.g.play()},r.getVolume=function(){return this.g.volume},r.setVolume=function(e){this.g.volume=e},r.isMuted=function(){return this.g.muted},r.isLinear=function(){return!0},r.resize=function(){},r.setMuted=function(e){this.g.muted=e},r.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},r.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},r.release=function(){this.g=this.h=this.i=null},H("shaka.ads.ServerSideAd",Ic),Ic.prototype.release=Ic.prototype.release,Ic.prototype.getPositionInSequence=Ic.prototype.getPositionInSequence,Ic.prototype.getSequenceLength=Ic.prototype.getSequenceLength,Ic.prototype.setMuted=Ic.prototype.setMuted,Ic.prototype.resize=Ic.prototype.resize,Ic.prototype.isLinear=Ic.prototype.isLinear,Ic.prototype.isMuted=Ic.prototype.isMuted,Ic.prototype.setVolume=Ic.prototype.setVolume,Ic.prototype.getVolume=Ic.prototype.getVolume,Ic.prototype.play=Ic.prototype.play,Ic.prototype.pause=Ic.prototype.pause,Ic.prototype.skip=Ic.prototype.skip,Ic.prototype.canSkipNow=Ic.prototype.canSkipNow,Ic.prototype.getTimeUntilSkippable=Ic.prototype.getTimeUntilSkippable,Ic.prototype.isSkippable=Ic.prototype.isSkippable,Ic.prototype.isPaused=Ic.prototype.isPaused,Ic.prototype.getRemainingTime=Ic.prototype.getRemainingTime,Ic.prototype.getMinSuggestedDuration=Ic.prototype.getMinSuggestedDuration,Ic.prototype.getDuration=Ic.prototype.getDuration,Nc.prototype.stop=function(){this.I="",this.B=null,this.J=[]},Nc.prototype.release=function(){this.stop(),this.h&&this.h.release()},Nc.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.i.onTimedMetadata(t)}},g(Rc,$),(r=Rc.prototype).setLocale=function(e){this.i=e},r.initClientSide=function(t,n){var r=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new ye(2,10,1e4);this.h&&this.h.release(),this.h=new jc(t,n,this.i,function(e){if(e&&e.type)switch(e.type){case"ads-loaded":r.j.h.push(e.loadTime);break;case"ad-started":r.j.g++;break;case"ad-complete":r.j.i++;break;case"ad-skipped":r.j.j++}r.dispatchEvent(e)})},r.release=function(){this.h&&(this.h.release(),this.h=null),this.g&&(this.g.release(),this.g=null),$.prototype.release.call(this)},r.onAssetUnload=function(){this.h&&this.h.stop(),this.g&&this.g.stop(),this.dispatchEvent(new q("ad-stopped")),this.j=new Tc},r.requestClientSideAds=function(e){if(!this.h)throw new ye(1,10,10001);var t=this.h;t.G=Date.now()/1e3,t.l.requestAds(e)},r.initServerSide=function(t,n){var r=this;if(!e.google||!google.ima||!google.ima.dai)throw new ye(2,10,10002);this.g&&this.g.release(),this.g=new Nc(t,n,this.i,function(e){if(e&&e.type)switch(e.type){case"ads-loaded":r.j.h.push(e.loadTime);break;case"ad-started":r.j.g++;break;case"ad-complete":r.j.i++;break;case"ad-skipped":r.j.j++}r.dispatchEvent(e)})},r.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new ye(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;(n.mpt||n.mpv)&&G('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v3.3.2";var r=t;return(n=this.g).l?n=Promise.reject(new ye(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.L=!0),n.l=new Dt,n.i.requestStream(e),n.I=r||"",n.M=Date.now()/1e3,n=n.l),n},r.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new ye(1,10,10003);(e.mpt||e.mpv)&&G('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v3.3.2",this.g.i.replaceAdTagParameters(e)},r.getServerSideCuePoints=function(){if(!this.g)throw new ye(1,10,10003);return this.g.J},r.getStats=function(){var e=this.j;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},r.onDashTimedMetadata=function(e){if(this.g&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.g.i.processMetadata(t,n,e.startTime)}},r.onHlsTimedMetadata=function(e,t){this.g&&this.g.i.processMetadata("ID3",e.data,t)},r.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},H("shaka.ads.AdManager",Rc),Rc.prototype.onCueMetadataChange=Rc.prototype.onCueMetadataChange,Rc.prototype.onHlsTimedMetadata=Rc.prototype.onHlsTimedMetadata,Rc.prototype.onDashTimedMetadata=Rc.prototype.onDashTimedMetadata,Rc.prototype.getStats=Rc.prototype.getStats,Rc.prototype.getServerSideCuePoints=Rc.prototype.getServerSideCuePoints,Rc.prototype.replaceServerSideAdTagParameters=Rc.prototype.replaceServerSideAdTagParameters,Rc.prototype.requestServerSideStream=Rc.prototype.requestServerSideStream,Rc.prototype.initServerSide=Rc.prototype.initServerSide,Rc.prototype.requestClientSideAds=Rc.prototype.requestClientSideAds,Rc.prototype.onAssetUnload=Rc.prototype.onAssetUnload,Rc.prototype.release=Rc.prototype.release,Rc.prototype.initClientSide=Rc.prototype.initClientSide,Rc.prototype.setLocale=Rc.prototype.setLocale,Rc.ADS_LOADED="ads-loaded",Rc.AD_STARTED="ad-started",Rc.AD_FIRST_QUARTILE="ad-first-quartile",Rc.AD_MIDPOINT="ad-midpoint",Rc.AD_THIRD_QUARTILE="ad-third-quartile",Rc.AD_COMPLETE="ad-complete",Rc.AD_STOPPED="ad-stopped",Rc.AD_SKIPPED="ad-skipped",Rc.AD_VOLUME_CHANGED="ad-volume-changed",Rc.AD_MUTED="ad-muted",Rc.AD_PAUSED="ad-paused",Rc.AD_RESUMED="ad-resumed",Rc.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",Rc.CUEPOINTS_CHANGED="ad-cue-points-changed",Rc.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",Rc.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",Rc.AD_CLICKED="ad-clicked",Rc.AD_PROGRESS="ad-progress",Rc.AD_BUFFERING="ad-buffering",Rc.AD_IMPRESSION="ad-impression",Rc.AD_DURATION_CHANGED="ad-duration-changed",Rc.AD_CLOSED="ad-closed",Rc.AD_LOADED="ad-loaded",Rc.ALL_ADS_COMPLETED="all-ads-completed",Rc.AD_LINEAR_CHANGED="ad-linear-changed",Rc.AD_METADATA="ad-metadata",Rc.AD_RECOVERABLE_ERROR="ad-recoverable-error",Rc.AD_BREAK_READY="ad-break-ready",Rc.AD_INTERACTION="ad-interaction",Sc=function(){return new Rc};var zc="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Fc="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Hc=["loop","playbackRate"],qc=["pause","play"],Uc={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Vc={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Xc=[["getConfiguration","configure"]],Gc=[["isTextTrackVisible","setTextTrackVisibility"]],Wc="addChaptersTrack addTextTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),Jc=["attach","detach","load","unload"];function Zc(e,t,n,r,i,o){var a=this;this.M=e,this.j=new pn(t),this.$=n,this.G=!1,this.C=r,this.L=i,this.S=o,this.h=this.s=!1,this.ea="",this.B=null,this.I=function(){return $c(a)},this.J=function(e,t){var n=Bc(t);switch(n.type){case"event":var r=n.targetName;n=U(n.event),a.C(r,n);break;case"update":for(var i in r=n.update)for(var o in n=a.g[i]||{},r[i])n[o]=r[i][o];a.G&&(a.$(),a.G=!1);break;case"asyncComplete":if(i=n.id,n=n.error,o=a.i[i],delete a.i[i],o)if(n){for(r in i=new ye(n.severity,n.category,n.code),n)i[r]=n[r];o.reject(i)}else o.resolve()}},this.g={video:{},player:{}},this.P=0,this.i={},this.l=null,od.add(this)}function Kc(e,t,n){id=n,n.addUpdateListener(e.I),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.J),$c(e),td(e,{type:"init",initState:t,appData:e.B}),e.l.resolve()}function Yc(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new ye(2,8,n,t))}function Qc(e,t){var n=e.S();e.l=new Dt,e.G=!0,Kc(e,n,t)}function _c(e){var t=id;t.removeUpdateListener(e.I),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.J)}function $c(e){var t=!!id&&"connected"==id.status;if(e.h&&!t){for(var n in e.L(),e.g)e.g[n]={};ed(e)}e.h=t,e.ea=t?id.receiver.friendlyName:"",e.j.Ga()}function ed(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new ye(1,7,7e3))}}function td(e,t){var n=Dc(t),r=id;try{r.sendMessage("urn:x-cast:com.google.shaka.v2",n,function(){},J)}catch(i){throw n=new ye(2,8,8005,i),r=new q("error",(new Map).set("detail",n)),e.C("player",r),e.ic(),n}}(r=Zc.prototype).destroy=function(){return od.delete(this),ed(this),id&&_c(this),this.j&&(this.j.stop(),this.j=null),this.L=this.C=null,this.h=this.s=!1,this.J=this.I=this.l=this.i=this.g=this.B=null,Promise.resolve()},r.xa=function(){return this.h},r.Bd=function(){return this.ea},r.init=function(){if(this.M.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.s=!0,this.j.Ga();var t=new chrome.cast.SessionRequest(this.M);t=new chrome.cast.ApiConfig(t,function(e){for(var t=c(od),n=t.next();!n.done;n=t.next())Qc(n.value,e)},function(e){for(var t=c(od),n=t.next();!n.done;n=t.next())n=n.value,rd="available"==e,n.j.Ga()},"origin_scoped"),chrome.cast.initialize(t,function(){},function(){}),rd&&this.j.U(nd),(t=id)&&t.status!=chrome.cast.SessionStatus.STOPPED?Qc(this,t):id=null}else e.__onGCastApiAvailable||(e.__onGCastApiAvailable=ad),e.__onGCastApiAvailable!=ad&&G("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")},r.Ce=function(e){this.B=e,this.h&&td(this,{type:"appData",appData:this.B})},r.cast=function(e){var t=this;return I(function(n){if(!t.s)throw new ye(1,8,8e3);if(!rd)throw new ye(1,8,8001);if(t.h)throw new ye(1,8,8002);return t.l=new Dt,chrome.cast.requestSession(function(n){return Kc(t,e,n)},function(e){return Yc(t,e)}),w(n,t.l,0)})},r.ic=function(){if(this.h){if(ed(this),id){_c(this);try{id.stop(function(){},function(){})}catch(Dy){}id=null}$c(this)}},r.get=function(e,t){var n=this;if("video"==e){if(qc.includes(t))return function(r){for(var i=[],o=0;o<arguments.length;++o)i[o]=arguments[o];return n.xf.apply(n,[e,t].concat(d(i)))}}else if("player"==e){if(Vc[t]&&!this.get("player","isLive")())return function(){};if(Wc.includes(t))return function(r){for(var i=[],o=0;o<arguments.length;++o)i[o]=arguments[o];return n.xf.apply(n,[e,t].concat(d(i)))};if(Jc.includes(t))return function(r){for(var i=[],o=0;o<arguments.length;++o)i[o]=arguments[o];return n.dh.apply(n,[e,t].concat(d(i)))};if(Uc[t])return function(){return n.g[e][t]}}return this.g[e][t]},r.set=function(e,t,n){this.g[e][t]=n,td(this,{type:"set",targetName:e,property:t,value:n})},r.xf=function(e,t,n){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];td(this,{type:"call",targetName:e,methodName:t,args:r})},r.dh=function(e,t,n){for(var r=[],i=2;i<arguments.length;++i)r[i-2]=arguments[i];i=new Dt;var o=this.P.toString();this.P++,this.i[o]=i;try{td(this,{type:"asyncCall",targetName:e,methodName:t,args:r,id:o})}catch(a){i.reject(a)}return i};var nd=.02,rd=!1,id=null,od=new Set;function ad(e){if(e)for(var t=(e=c(od)).next();!t.done;t=e.next())t.value.init()}function sd(e,t,n){$.call(this);var r=this;this.j=e,this.i=t,this.h=this.B=this.l=this.C=this.s=null,this.I=n,this.G=new Map,this.g=new Zc(n,function(){return dd(r)},function(){return ud(r)},function(e,t){return pd(r,e,t)},function(){return hd(r)},function(){return cd(r)}),function(e){e.g.init(),e.h=new Dr;for(var t=c(zc),n=t.next();!n.done;n=t.next())e.h.o(e.j,n.value,function(t){e.g.xa()||(t=U(t),e.l.dispatchEvent(t))});for(var r in gc)e.h.o(e.i,gc[r],function(t){e.g.xa()||e.B.dispatchEvent(t)});for(var i in e.s={},t={},e.j)t.zc=i,Object.defineProperty(e.s,t.zc,{configurable:!1,enumerable:!0,get:function(t){return function(){return fd(e,t.zc)}}(t),set:function(t){return function(n){var r=t.zc;e.g.xa()?e.g.set("video",r,n):e.j[r]=n}}(t)}),t={zc:t.zc};e.C={},ld(e,function(t){Object.defineProperty(e.C,t,{configurable:!1,enumerable:!0,get:function(){return function(e,t){if(e.G.has(t)&&(t=e.G.get(t)),"addEventListener"==t)return function(t,n,r){return e.B.addEventListener(t,n,r)};if("removeEventListener"==t)return function(t,n,r){return e.B.removeEventListener(t,n,r)};if("getMediaElement"==t)return function(){return e.s};if("getSharedConfiguration"==t)return e.g.get("player","getConfiguration");if("getNetworkingEngine"==t)return function(){return e.i.Mc()};if("getDrmEngine"==t)return function(){return e.i.s};if("getAdManager"==t)return function(){return e.i.od()};if("setVideoContainer"==t)return function(t){return e.i.Ke(t)};if(e.g.xa()){if("getManifest"==t||"drmInfo"==t)return function(){return G(t+"() does not work while casting!"),null};if("attach"==t||"detach"==t)return function(){return G(t+"() does not work while casting!"),Promise.resolve()}}return e.g.xa()&&0==Object.keys(e.g.g.video).length&&Uc[t]||!e.g.xa()?e.i[t].bind(e.i):e.g.get("player",t)}(e,t)}})}),function(e){var t=new Map;ld(e,function(n,r){if(t.has(r)){var i=t.get(r);n.length<i.length?e.G.set(n,i):e.G.set(i,n)}else t.set(r,n)})}(e),e.l=new $,e.l.hd=e.s,e.B=new $,e.B.hd=e.C}(this)}function ld(e,t){function n(e){return"constructor"!=e&&"function"==typeof r[e]&&!i.has(e)}var r=e.i,i=new Set;for(o in r)n(o)&&(i.add(o),t(o,r[o]));for(var o=Object.getPrototypeOf(r),a=Object.getPrototypeOf({});o&&o!=a;){for(var s=c(Object.getOwnPropertyNames(o)),l=s.next();!l.done;l=s.next())n(l=l.value)&&(i.add(l),t(l,r[l]));o=Object.getPrototypeOf(o)}}function cd(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.i.Yd(),startTime:null};e.j.pause();for(var n=c(Hc),r=n.next();!r.done;r=n.next())r=r.value,t.video[r]=e.j[r];for(e.j.ended||(t.startTime=e.j.currentTime),r=(n=c(Xc)).next();!r.done;r=n.next()){var i=r.value;r=i[1],i=e.i[i[0]](),t.player[r]=i}for(r=(n=c(Gc)).next();!r.done;r=n.next())r=(i=r.value)[1],i=e.i[i[0]](),t.playerAfterLoad[r]=i;return t}function dd(e){var t=new q("caststatuschanged");e.dispatchEvent(t)}function ud(e){var t=new q(e.s.paused?"pause":"play");e.l.dispatchEvent(t)}function hd(e){for(var t=c(Xc),n=t.next();!n.done;n=t.next()){var r=n.value;n=r[1],r=e.g.get("player",r[0])(),e.i[n](r)}var i=e.g.get("player","getAssetUri")();n=e.g.get("video","ended"),t=Promise.resolve();var o=e.j.autoplay;r=null,n||(r=e.g.get("video","currentTime")),i&&(e.j.autoplay=!1,t=e.i.load(i,r));var a={};for(r=(n=c(Hc)).next();!r.done;r=n.next())r=r.value,a[r]=e.g.get("video",r);t.then(function(){if(e.j){for(var t=c(Hc),n=t.next();!n.done;n=t.next())n=n.value,e.j[n]=a[n];for(n=(t=c(Gc)).next();!n.done;n=t.next()){var r=n.value;n=r[1],r=e.g.get("player",r[0])(),e.i[n](r)}e.j.autoplay=o,i&&e.j.play()}},function(t){t=(new Map).set("detail",t),t=new q(Ql,t),e.i.dispatchEvent(t)})}function fd(e,t){if("addEventListener"==t)return function(t,n,r){return e.l.addEventListener(t,n,r)};if("removeEventListener"==t)return function(t,n,r){return e.l.removeEventListener(t,n,r)};if(e.g.xa()&&0==Object.keys(e.g.g.video).length){var n=e.j[t];if("function"!=typeof n)return n}return e.g.xa()?e.g.get("video",t):("function"==typeof(n=e.j[t])&&(n=n.bind(e.j)),n)}function pd(e,t,n){e.g.xa()&&("video"==t?e.l.dispatchEvent(n):"player"==t&&e.B.dispatchEvent(n))}function md(e,t,n,r){$.call(this);var i=this;this.g=e,this.i=t,this.h=new Dr,this.P={video:e,player:t},this.J=n||function(){},this.S=r||function(e){return e},this.j=null,this.L=!1,this.B=!0,this.s=0,this.I=!1,this.G=!0,this.C=this.l=null,this.M=new pn(function(){yd(i)}),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return gd(e)},t.onSenderDisconnected=function(){return gd(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&Cd(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),Cd(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.C=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.C.onMessage=function(t){return function(e,t){var n=Bc(t.data);switch(n.type){case"PLAY":e.g.play(),Sd(e);break;case"PAUSE":e.g.pause(),Sd(e);break;case"SEEK":var r=n.currentTime,i=n.resumeState;null!=r&&(e.g.currentTime=Number(r)),i&&"PLAYBACK_START"==i?(e.g.play(),Sd(e)):i&&"PLAYBACK_PAUSE"==i&&(e.g.pause(),Sd(e));break;case"STOP":e.i.Qe().then(function(){e.i&&Sd(e)});break;case"GET_STATUS":kd(e,Number(n.requestId));break;case"VOLUME":r=(i=n.volume).level,i=i.muted;var o=e.g.volume,a=e.g.muted;null!=r&&(e.g.volume=Number(r)),null!=i&&(e.g.muted=i),o==e.g.volume&&a==e.g.muted||Sd(e);break;case"LOAD":e.s=0,e.I=!1,e.G=!1,r=n.media,i=n.currentTime,o=e.S(r.contentId),a=n.autoplay||!0,e.J(r.customData),a&&(e.g.autoplay=!0),e.i.load(o,i).then(function(){e.i&&kd(e)}).catch(function(t){var r="LOAD_FAILED";7==t.category&&7e3==t.code&&(r="LOAD_CANCELLED"),Cd(e,{requestId:Number(n.requestId),type:r},e.C)});break;default:Cd(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.C)}}(e,t)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n=Bc(t.data);switch(n.type){case"init":e.s=0,e.I=!1,e.G=!0,function(e,t,n){var r,i,o,a,s,l,c,d,u,h,f;I(function(p){switch(p.g){case 1:for(r in t.player)i=t.player[r],e.i[r](i);return e.J(n),o=e.g.autoplay,t.manifest?(e.g.autoplay=!1,x(p,5),w(p,e.i.load(t.manifest,t.startTime),7)):w(p,Promise.resolve(),3);case 7:S(p,3);break;case 5:return a=E(p),s=Ql,l=(new Map).set("detail",a),c=new q(s,l),e.i&&e.i.dispatchEvent(c),p.return();case 3:if(!e.i)return p.return();for(d in t.video)u=t.video[d],e.g[d]=u;for(h in t.playerAfterLoad)f=t.playerAfterLoad[h],e.i[h](f);e.g.autoplay=o,t.manifest&&(e.g.play(),Sd(e)),k(p)}})}(e,n.initState,n.appData),yd(e);break;case"appData":e.J(n.appData);break;case"set":var r=n.targetName,i=n.property;if(n=n.value,"video"==r){var o=cast.receiver.CastReceiverManager.getInstance();if("volume"==i){o.setSystemVolumeLevel(n);break}if("muted"==i){o.setSystemVolumeMuted(n);break}}e.P[r][i]=n;break;case"call":(r=e.P[n.targetName])[n.methodName].apply(r,n.args);break;case"asyncCall":r=n.targetName,i=n.methodName,"player"==r&&"load"==i&&(e.s=0,e.I=!1);var a=n.id,s=t.senderId;n=(o=e.P[r])[i].apply(o,n.args),"player"==r&&"load"==i&&(n=n.then(function(){e.G=!0})),n.then(function(){return xd(e,s,a,null)},function(t){return xd(e,s,a,t)})}}(e,t)},t.start();for(var n=(t=c(zc)).next();!n.done;n=t.next())e.h.o(e.g,n.value,function(t){return bd(e,"video",t)});for(var r in gc)e.h.o(e.i,gc[r],function(t){return bd(e,"player",t)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.i.Fe(3840,2160):e.i.Fe(1920,1080),e.h.o(e.g,"loadeddata",function(){e.I=!0}),e.h.o(e.i,"loading",function(){e.B=!1,vd(e)}),e.h.o(e.g,"playing",function(){e.B=!1,vd(e)}),e.h.o(e.g,"pause",function(){vd(e)}),e.h.o(e.i,"unloading",function(){e.B=!0,vd(e)}),e.h.o(e.g,"ended",function(){new pn(function(){e.g&&e.g.ended&&(e.B=!0,vd(e))}).U(Md)})}(this)}function gd(e){e.s=0,e.G=!0,e.L=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,vd(e)}function vd(e){var t;I(function(n){return 1==n.g?w(n,Promise.resolve(),2):e.i?(t=new q("caststatuschanged"),e.dispatchEvent(t),wd(e)||Sd(e),void k(n)):n.return()})}function bd(e,t,n){e.i&&(yd(e),Cd(e,{type:"event",targetName:t,event:n},e.l))}function yd(e){e.M.U(Ed);for(var t={video:{},player:{}},n=c(Fc),r=n.next();!r.done;r=n.next())r=r.value,t.video[r]=e.g[r];if(e.i.W())for(var i in Vc)0==e.s%Vc[i]&&(t.player[i]=e.i[i]());for(var o in Uc)0==e.s%Uc[o]&&(t.player[o]=e.i[o]());(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),e.I&&(e.s+=1),Cd(e,{type:"update",update:t},e.l),wd(e)}function wd(e){return!(!e.G||!e.g.duration&&!e.i.W()||(kd(e),e.G=!1,0))}function kd(e,t){var n={contentId:e.i.Yd(),streamType:e.i.W()?"LIVE":"BUFFERED",contentType:""};e.i.W()||(n.duration=e.g.duration),e.j&&(n.metadata=e.j),Sd(e,void 0===t?0:t,n)}function xd(e,t,n,r){e.i&&Cd(e,{type:"asyncComplete",id:n,error:r},e.l,t)}function Cd(e,t,n,r){e.L&&(e=Dc(t),r?n.getCastChannel(r).send(e):n.broadcast(e))}function Sd(e,t,n){n=void 0===n?null:n;var r={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.B?Td:e.i.Rc()?jd:e.g.paused?Od:Ad,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(r.media=n),Cd(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[r]},e.C)}g(sd,$),(r=sd.prototype).destroy=function(e){return e&&this.g.ic(),this.h&&(this.h.release(),this.h=null),e=[],this.i&&(e.push(this.i.destroy()),this.i=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.C=this.s=this.j=null,$.prototype.release.call(this),Promise.all(e)},r.Kb=function(){return this.s},r.lc=function(){return this.C},r.Te=function(){return this.g.s&&rd},r.xa=function(){return this.g.xa()},r.Bd=function(){return this.g.Bd()},r.cast=function(){var e,t=this;return I(function(n){return 1==n.g?(e=cd(t),w(n,t.g.cast(e),2)):t.i?w(n,t.i.Qe(),0):n.return()})},r.Ce=function(e){this.g.Ce(e)},r.Hf=function(){!function(e){if(e.h){var t=e.S();chrome.cast.requestSession(function(n){return Kc(e,t,n)},function(t){return Yc(e,t)})}}(this.g)},r.ic=function(){this.g.ic()},r.Xe=function(e){var t=this;return I(function(n){if(1==n.g)return e==t.I?n.return():(t.I=e,t.g.ic(),w(n,t.g.destroy(),2));t.g=null,t.g=new Zc(e,function(){return dd(t)},function(){return ud(t)},function(e,n){return pd(t,e,n)},function(){return hd(t)},function(){return cd(t)}),t.g.init(),k(n)})},H("shaka.cast.CastProxy",sd),sd.prototype.changeReceiverId=sd.prototype.Xe,sd.prototype.forceDisconnect=sd.prototype.ic,sd.prototype.suggestDisconnect=sd.prototype.Hf,sd.prototype.setAppData=sd.prototype.Ce,sd.prototype.cast=sd.prototype.cast,sd.prototype.receiverName=sd.prototype.Bd,sd.prototype.isCasting=sd.prototype.xa,sd.prototype.canCast=sd.prototype.Te,sd.prototype.getPlayer=sd.prototype.lc,sd.prototype.getVideo=sd.prototype.Kb,sd.prototype.destroy=sd.prototype.destroy,g(md,$),(r=md.prototype).isConnected=function(){return this.L},r.Mg=function(){return this.B},r.lh=function(e){this.j=e},r.Xf=function(){this.j=null},r.mh=function(e){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.j.title=e},r.kh=function(e){this.j||(this.j={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.j.images=[{url:e}]},r.jh=function(e){this.j||(this.j={}),this.j.artist=e,this.j.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},r.destroy=function(){var e,t=this;return I(function(n){if(1==n.g)return t.h&&(t.h.release(),t.h=null),e=[],t.i&&(e.push(t.i.destroy()),t.i=null),t.M&&(t.M.stop(),t.M=null),t.g=null,t.P=null,t.J=null,t.L=!1,t.B=!0,t.l=null,t.C=null,$.prototype.release.call(t),w(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),k(n)})},H("shaka.cast.CastReceiver",md),md.prototype.destroy=md.prototype.destroy,md.prototype.setContentArtist=md.prototype.jh,md.prototype.setContentImage=md.prototype.kh,md.prototype.setContentTitle=md.prototype.mh,md.prototype.clearContentMetadata=md.prototype.Xf,md.prototype.setContentMetadata=md.prototype.lh,md.prototype.isIdle=md.prototype.Mg,md.prototype.isConnected=md.prototype.isConnected;var Ed=.5,Md=5,Td="IDLE",Ad="PLAYING",jd="BUFFERING",Od="PAUSED";function Pd(e){var t=this;this.g=[],this.h=[],this.data=[],(new Ci).box("moov",Si).Z("pssh",function(e){if(!(1<e.version)){var n=Ot(e.reader.X,-12,e.size);if(t.data.push(n),t.g.push(Yt(e.reader.Lb(16))),0<e.version){n=e.reader.T();for(var r=(n=c(ne(n))).next();!r.done;r=n.next())r=Yt(e.reader.Lb(16)),t.h.push(r)}}}).parse(e)}function Ld(e,t){var n=e.length,r=t.length+16+n,i=new Uint8Array(r),o=Pt(i),a=0;return o.setUint32(a,r),a+=4,o.setUint32(a,1886614376),a+=4,o.setUint32(a,0),a+=4,i.set(t,a),a+=t.length,o.setUint32(a,n),i.set(e,a+4),i}function Id(e,t){var n=Rd(e,t);return 1!=n.length?null:n[0]}function Nd(e,t,n){return 1!=(e=Dd(e,t,n)).length?null:e[0]}function Rd(e,t){return Array.from(e.childNodes).filter(function(e){return e instanceof Element&&e.tagName==t})}function Dd(e,t,n){return Array.from(e.childNodes).filter(function(e){return e instanceof Element&&e.localName==n&&e.namespaceURI==t})}function Bd(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function zd(e,t,n){for(var r=(t=c(t)).next();!r.done;r=t.next())if(r=r.value,e.hasAttributeNS(r,n))return e.getAttributeNS(r,n);return null}function Fd(e){return Array.from(e.childNodes).every(Hd)?e.textContent.trim():null}function Hd(e){return e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE}function qd(e,t,n,r){r=void 0===r?null:r;var i=null;return null!=(e=e.getAttribute(t))&&(i=n(e)),null==i?r:i}function Ud(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:Math.floor(e/1e3)):null}function Vd(e){return e&&(e=/^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$/.exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function Xd(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null):null):null}function Gd(e){return 0==(e=Number(e))%1?e:null}function Wd(e){return 0==(e=Number(e))%1&&0<e?e:null}function Jd(e){return 0==(e=Number(e))%1&&0<=e?e:null}function Zd(e){return e=Number(e),isNaN(e)?null:e}function Kd(e){var t;return e=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e),isNaN(e)?null:e}function Yd(e,t){var n=new DOMParser,r=null;try{r=n.parseFromString(e,"text/xml")}catch(i){return null}return!(n=r.documentElement)||n.getElementsByTagName("parsererror").length||r.documentElement.tagName!=t?null:n}function Qd(e,t){try{return Yd(Ft(e),t)}catch(n){return null}}function _d(e,t,n){var r=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())(n=eu(n.value))&&t.push(n);return t}(e),i=null;e=[];var o=[],a=new Set(r.map(function(e){return e.keyId}));if(a.delete(null),1<a.size)throw new ye(2,4,4010);if(t||(o=r.filter(function(e){return"urn:mpeg:dash:mp4protection:2011"!=e.Af||(i=e.init||i,!1)})).length&&(e=function(e,t,n){for(var r=[],i=(t=c(t)).next();!i.done;i=t.next()){var o,a=n[(i=i.value).Af];if(a)o=(o=Nd(i.node,"urn:microsoft:playready","pro"))?[{initData:Ld(o=Zt(o.textContent),new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149])),initDataType:"cenc",keyId:i.keyId}]:null,o=Oe(a,i.init||e||o),(a=nu.get(a))&&(o.licenseServerUri=a(i)),r.push(o)}return r}(i,o,n),0==e.length&&(e=[Oe("",i)])),r.length&&(t||!o.length))for(e=[],n=(t=c(Object.values(n))).next();!n.done;n=t.next())"org.w3.clearkey"!=(n=n.value)&&e.push(Oe(n,i));if(a=Array.from(a)[0]||null)for(n=(t=c(e)).next();!n.done;n=t.next())for(r=(n=c(n.value.initData)).next();!r.done;r=n.next())r.value.keyId=a;return{bf:a,Si:i,drmInfos:e,gf:!0}}function $d(e){return(e=Nd(e.node,"urn:microsoft:playready","pro"))&&(e=function(e){var t=0,n=Pt(e),r=n.getUint32(t,!0);if(r!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){r=n.getUint16(e,!0),e+=2;var i=n.getUint16(e,!0);if(e+=2,1&i||i+e>n.byteLength){n=[];break e}var o=Ot(n,e,i);t.push({type:r,value:o}),e+=i}n=t}return n}(e=Zt(e.textContent)).filter(function(e){return e.type===tu})[0])&&(e=Yd(e=Ht(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=c(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=c(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""}function eu(e){var t=e.getAttribute("schemeIdUri"),n=Bd(e,"urn:mpeg:cenc:2013","default_KID"),r=Dd(e,"urn:mpeg:cenc:2013","pssh").map(Fd);if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new ye(2,4,4009);var i=[];try{i=r.map(function(e){return{initDataType:"cenc",initData:Zt(e),keyId:null}})}catch(o){throw new ye(2,4,4007)}return{node:e,Af:t,keyId:n,init:0<i.length?i:null}}var tu=1,nu=(new Map).set("com.widevine.alpha",function(e){return(e=Nd(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""}).set("com.microsoft.playready",$d).set("com.microsoft.playready.recommendation",$d).set("com.microsoft.playready.software",$d).set("com.microsoft.playready.hardware",$d);function ru(t,n,r,i,o){var a={RepresentationID:n,Number:r,Bandwidth:i,Time:o};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(t,n,r,i){if("$$"==t)return"$";var o=a[n];if(null==o)return t;switch("RepresentationID"==n&&r&&(r=void 0),"Time"==n&&(o=Math.round(o)),i){case void 0:case"d":case"i":case"u":t=o.toString();break;case"o":t=o.toString(8);break;case"x":t=o.toString(16);break;case"X":t=o.toString(16).toUpperCase();break;default:t=o.toString()}return r=e.parseInt(r,10)||1,Array(Math.max(0,r-t.length)+1).join("0")+t})}function iu(e,t){var n=ou(e,t,"timescale"),r=1;n&&(r=Wd(n)||1);var i=ou(e,t,"duration");n=Wd(i||""),"image"==e.O.contentType&&(n=Zd(i||"")),n&&(n/=r);var o=ou(e,t,"startNumber");i=Number(ou(e,t,"presentationTimeOffset"))||0;var a=Jd(o||"");null!=o&&null!=a||(a=1);var s=au(e,t,"SegmentTimeline");if(o=null,s){o=r;var l=e.ba.duration||1/0,d=Rd(s,"S");s=[];for(var u=-i,h=(d=c(re(d))).next();!h.done;h=d.next()){var f=(h=h.value).item,p=h.next,m=qd(f,"t",Jd);h=qd(f,"d",Jd);var g=qd(f,"r",Gd);if(null!=m&&(m-=i),!h)break;if(f=null!=m?m:u,0>(m=g||0))if(p){if(null==(p=qd(p,"t",Jd)))break;if(f>=p)break;m=Math.ceil((p-f)/h)-1}else{if(1/0==l)break;if(f/o>=l)break;m=Math.ceil((l*o-f)/h)-1}for(0<s.length&&f!=u&&(s[s.length-1].end=f/o),m=(p=c(ne(m+1))).next();!m.done;m=p.next())u=f+h,s.push({start:f/o,end:u/o,sh:f}),f=u}o=s}return{timescale:r,Fa:n,yc:a,xb:i/r||0,Re:i,timeline:o}}function ou(e,t,n){return[t(e.O),t(e.Ha),t(e.ya)].filter(Te).map(function(e){return e.getAttribute(n)}).reduce(function(e,t){return e||t})}function au(e,t,n){return[t(e.O),t(e.Ha),t(e.ya)].filter(Te).map(function(e){return Id(e,n)}).reduce(function(e,t){return e||t})}function su(e,t,n,r,i,o){if(o=void 0===o?0:o,Bd(e,"http://www.w3.org/1999/xlink","href")){var a=function(e,t,n,r,i,o){for(var a=Bd(e,"http://www.w3.org/1999/xlink","href"),s=Bd(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",l=c(Array.from(e.attributes)),d=l.next();!d.done;d=l.next())"http://www.w3.org/1999/xlink"==(d=d.value).namespaceURI&&e.removeAttributeNS(d.namespaceURI,d.localName);if(5<=o)return gr(new ye(2,4,4028));if("onLoad"!=s)return gr(new ye(2,4,4027));var u=je([r],[a]);return i.request(0,Tr(u,t)).va(function(r){if(!(r=Qd(r.data,e.tagName)))return gr(new ye(2,4,4001,a));for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);for(;r.childNodes.length;){var s=r.childNodes[0];r.removeChild(s),e.appendChild(s)}for(s=(r=c(Array.from(r.attributes))).next();!s.done;s=r.next())e.setAttributeNode(s.value.cloneNode(!1));return su(e,t,n,u[0],i,o+1)})}(e,t,n,r,i,o);return n&&(a=a.va(void 0,function(){return su(e,t,n,r,i,o)})),a}a=[];for(var s=c(Array.from(e.childNodes)),l=s.next();!l.done;l=s.next())(l=l.value)instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Bd(l,"http://www.w3.org/1999/xlink","href")?e.removeChild(l):"SegmentTimeline"!=l.tagName&&a.push(su(l,t,n,r,i,o)));return wr(a).va(function(){return e})}function lu(e,t,n,r,i,o,a){var s,l=(new Ci).Z("sidx",function(e){s=function(e,t,n,r,i,o,a){var s=[];a.reader.skip(4);var l=a.reader.T();if(0==l)throw new ye(2,3,3005);if(0==a.version)var d=a.reader.T(),u=a.reader.T();else d=a.reader.xc(),u=a.reader.xc();a.reader.skip(2);var h=a.reader.wc();for(e=e+a.size+u,h=c(ne(h)),u=h.next();!u.done;u=h.next()){var f=a.reader.T();u=(2147483648&f)>>>31,f&=2147483647;var p=a.reader.T();if(a.reader.skip(4),1==u)throw new ye(2,3,3006);s.push(new ua(d/l+n,(d+p)/l+n,function(){return o},e,e+f-1,t,n,r,i)),d+=p,e+=f}return a.parser.stop(),s}(t,r,i,o,a,n,e)});if(e&&l.parse(e),s)return s;throw new ye(2,3,3004)}function cu(e){this.h=Pt(e),this.g=new wi(this.h,0)}function du(e){var t=uu(e);if(7<t.length)throw new ye(2,3,3002);for(var n=0,r=(t=c(t)).next();!r.done;r=t.next())n=256*n+r.value;t=uu(e);e:{for(var i=(r=c(hu)).next();!i.done;i=r.next())if(Tt(t,new Uint8Array(i.value))){r=!0;break e}r=!1}if(r)t=e.h.byteLength-e.g.qa();else{if(8==t.length&&224&t[1])throw new ye(2,3,3001);r=0;for(var o=(i=c(re(t))).next();!o.done;o=i.next()){var a=(o=o.value).item;r=0==o.wa?a&(1<<8-t.length)-1:256*r+a}t=r}return t=e.g.qa()+t<=e.h.byteLength?t:e.h.byteLength-e.g.qa(),r=Pt(e.h,e.g.qa(),t),e.g.skip(t),new fu(n,r)}function uu(e){var t=e.g.qa(),n=e.g.ra();if(0==n)throw new ye(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),Ot(e.h,t,n)}cu.prototype.Ia=function(){return this.g.Ia()};var hu=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function fu(e,t){this.id=e,this.g=t}function pu(e){if(8<e.g.byteLength)throw new ye(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new ye(2,3,3001);for(var t=0,n=c(ne(e.g.byteLength)),r=n.next();!r.done;r=n.next())t=256*t+(r=e.g.getUint8(r.value));return t}function mu(e){var t=new cu(e.g);if(179!=(e=du(t)).id)throw new ye(2,3,3013);if(e=pu(e),183!=(t=du(t)).id)throw new ye(2,3,3012);t=new cu(t.g);for(var n=0;t.Ia();){var r=du(t);if(241==r.id){n=pu(r);break}}return{uh:e,bh:n}}function gu(e,t){var n=au(e,t,"Initialization");if(!n)return null;var r=e.O.Va,i=n.getAttribute("sourceURL");i&&(r=je(e.O.Va,[i])),i=0;var o=null;return(n=qd(n,"range",Xd))&&(i=n.start,o=n.end),new da(function(){return r},i,o,xu(e))}function vu(e,t){var n=Number(ou(e,yu,"presentationTimeOffset"))||0,r=ou(e,yu,"timescale"),i=1;r&&(i=Wd(r)||1);var o=n/i||0,a=gu(e,yu);!function(e,t){if(ku(e,t),!wu(e))throw new ye(2,4,4002)}(e,a);var s=xr(e);return{jc:function(){var e=au(s,yu,"RepresentationIndex"),n=s.O.Va;return e&&(e=e.getAttribute("sourceURL"))&&(n=je(s.O.Va,[e])),e=wu(s),bu(s,t,a,n,e.start,e.end,o)}}}function bu(e,t,n,r,i,o,a){var s,l,c,d,u,h,f,p,m,g,v,b,y,k,x;return I(function(C){if(1==C.g)return s=e.presentationTimeline,l=!e.Fb||!e.ba.rf,c=e.ba.start,d=e.ba.duration,u=e.O.mimeType.split("/")[1],f=null,p=[(h=t)(r,i,o),"webm"==u?h(n.Ma(),n.Ka,n.Da):null],h=null,w(C,Promise.all(p),2);if(m=C.h,g=m[0],v=m[1]||null,y=c-a,k=c,x=d?c+d:1/0,"mp4"==u)var S=lu(g,i,r,n,y,k,x);else{if(440786851!=du(S=new cu(v)).id)throw new ye(2,3,3008);var E=du(S);if(408125543!=E.id)throw new ye(2,3,3009);S=E.g.byteOffset,E=new cu(E.g);for(var M=null;E.Ia();){var T=du(E);if(357149030==T.id){M=T;break}}if(!M)throw new ye(2,3,3010);for(M=new cu(M.g),T=1e6,E=null;M.Ia();){var A=du(M);if(2807729==A.id)T=pu(A);else if(17545==A.id)if(4==A.g.byteLength)E=A.g.getFloat32(0);else{if(8!=A.g.byteLength)throw new ye(2,3,3003);E=A.g.getFloat64(0)}}if(null==E)throw new ye(2,3,3011);if(E*=M=T/1e9,475249515!=(T=du(new cu(g))).id)throw new ye(2,3,3007);S=function(e,t,n,r,i,o,a,s,l){function c(){return i}var d=[];e=new cu(e.g);for(var u=null,h=null;e.Ia();){var f=du(e);if(187==f.id){var p=mu(f);p&&(f=n*p.uh,p=t+p.bh,null!=u&&d.push(new ua(u+a,f+a,c,h,p-1,o,a,s,l)),u=f,h=p)}}return null!=u&&d.push(new ua(u+a,r+a,c,h,null,o,a,s,l)),d}(T,S,M,E,r,n,y,k,x)}return b=S,s.tc(b),f=new La(b),l&&f.Hb(k,x,!0),C.return(f)})}function yu(e){return e.Xc}function wu(e){var t=au(e,yu,"RepresentationIndex");return e=Xd((e=ou(e,yu,"indexRange"))||""),t&&(e=qd(t,"range",Xd,e)),e}function ku(e,t){var n=e.O.mimeType.split("/")[1];if(e.O.contentType!=Ie&&"mp4"!=n&&"webm"!=n)throw new ye(2,4,4006);if("webm"==n&&!t)throw new ye(2,4,4005)}function xu(e){var t=e.O;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.ud,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null}}function Cu(e,t){var n=gu(e,Su),r=function(e){var t=function(e){return[e.O.Mb,e.Ha.Mb,e.ya.Mb].filter(Te).map(function(e){return Rd(e,"SegmentURL")}).reduce(function(e,t){return 0<e.length?e:t}).map(function(t){return t.getAttribute("indexRange")&&!e.nf&&(e.nf=!0),{Sg:t.getAttribute("media"),start:(t=qd(t,"mediaRange",Xd,{start:0,end:null})).start,end:t.end}})}(e),n=(e=iu(e,Su)).yc;0==n&&(n=1);var r=0;return e.Fa?r=e.Fa*(n-1):e.timeline&&0<e.timeline.length&&(r=e.timeline[0].start),{Fa:e.Fa,startTime:r,yc:n,xb:e.xb,timeline:e.timeline,qc:t}}(e);if(!r.Fa&&!r.timeline&&1<r.qc.length)throw new ye(2,4,4002);if(!r.Fa&&!e.ba.duration&&!r.timeline&&1==r.qc.length)throw new ye(2,4,4002);if(r.timeline&&0==r.timeline.length)throw new ye(2,4,4002);var i=null,o=null;e.ya.id&&e.O.id&&(o=t[e.ya.id+","+e.O.id])&&(i=o.segmentIndex);var a=function(e,t,n,r,i){var o=r.qc.length;r.timeline&&r.timeline.length!=r.qc.length&&(o=Math.min(r.timeline.length,r.qc.length));for(var a=e-r.xb,s=t?e+t:1/0,l=[],d=r.startTime,u={},h=(o=c(ne(o))).next();!h.done;u={Nd:u.Nd},h=o.next()){h=h.value;var f=r.qc[h];u.Nd=je(n,[f.Sg]);var p=void 0;p=null!=r.Fa?d+r.Fa:r.timeline?r.timeline[h].end:d+t,l.push(new ua(e+d,e+p,function(e){return function(){return e.Nd}}(u),f.start,f.end,i,a,e,s)),d=p}return l}(e.ba.start,e.ba.duration,e.O.Va,r,n);return n=!i,i?i.sc(a,e.presentationTimeline.ub()):i=new La(a),e.presentationTimeline.tc(a),e.Fb&&e.ba.rf||i.Hb(e.ba.start,e.ba.duration?e.ba.start+e.ba.duration:1/0,n),o&&(o.segmentIndex=i),{jc:function(){return i&&0!=i.R.length||i.rc(a),Promise.resolve(i)}}}function Su(e){return e.Mb}function Eu(e,t,n,r,i,o){var a=function(e){var t=ou(e,Mu,"initialization");if(!t)return null;var n=e.O.id,r=e.bandwidth||null,i=e.O.Va;return new da(function(){var e=ru(t,n,null,r,null);return je(i,[e])},0,null,xu(e))}(e),s=function(e){var t=iu(e,Mu),n=ou(e,Mu,"media");return e=ou(e,Mu,"index"),{Fa:t.Fa,timescale:t.timescale,yc:t.yc,xb:t.xb,Re:t.Re,timeline:t.timeline,je:n,Qc:e}}(e);!function(e){var t=e.Qc?1:0;if(t+=e.timeline?1:0,0==(t+=e.Fa?1:0))throw new ye(2,4,4002);if(1!=t&&(e.Qc&&(e.timeline=null),e.Fa=null),!e.Qc&&!e.je)throw new ye(2,4,4002)}(s);var l=xr(e);if(s.Qc)return ku(e,a),{jc:function(){var e=ru(s.Qc,l.O.id,null,l.bandwidth||null,null);return e=je(l.O.Va,[e]),bu(l,t,a,e,0,null,s.xb)}};if(s.Fa)return r||(e.presentationTimeline.le(s.Fa),e.presentationTimeline.me(e.ba.start)),{jc:function(){return function(e,t,n,r,i){function o(e){var n=(e-p)*f,i=n+t.xb,o=n+d;return n=o+f,(o=new ua(o,Math.min(n,s()),function(){var t=ru(g,b,e,v,i*m);return je(y,[t])},0,null,r,w,d,s())).l=n,o}function a(){var e=[Math.max(l.ub(),d),Math.min(l.Qb(),s())].map(function(e){return e-d});return[Math.ceil(e[0]/f),Math.ceil(e[1]/f)-1].map(function(e){return e+p})}function s(){var e=null!=u&&i[u]||h;return e?d+e:1/0}var l=e.presentationTimeline,d=e.ba.start,u=e.ya.id,h=e.ba.duration,f=t.Fa,p=t.yc,m=t.timescale,g=t.je,v=e.bandwidth||null,b=e.O.id,y=e.O.Va,w=d-t.xb,k=a();e=e.Fb?Math.max(k[0],k[1]-n+1):k[0],k=k[1],n=[];for(var x=e;x<=k;++x){var C=o(x);n.push(C)}var S=new La(n);if(n=l.Qb()<s(),x=l.W(),n||x){var E=Math.max(e,k+1);S.Ed(f,function(){var e=l.ub();S.Ob(e);var t=c(a());t.next(),t=t.next().value;for(var n=[];E<=t;){var r=o(E);n.push(r),E++}return e>s()&&!n.length?null:n})}return Promise.resolve(S)}(l,s,i,a,o)}};var d=null;r=r=null,e.ya.id&&e.O.id&&(r=n[r=e.ya.id+","+e.O.id])&&(d=r.segmentIndex);var u=function(e,t,n){var r=e.ba.start,i=e.ba.duration,o=r-t.xb;i=i?r+i:1/0;for(var a=[],s={},l=c(re(t.timeline)),d=l.next();!d.done;s={Md:s.Md,Qd:s.Qd,Td:s.Td,Jd:s.Jd,Vd:s.Vd,Kd:s.Kd},d=l.next()){var u=(d=d.value).item,h=u.start,f=u.sh;u=u.end,s.Td=d.wa+t.yc,s.Vd=f+t.Re,s.Qd=e.O.id,s.Jd=e.bandwidth||null,s.Md=t.je,s.Kd=e.O.Va,a.push(new ua(r+h,r+u,function(e){return function(){var t=ru(e.Md,e.Qd,e.Td,e.Jd||null,e.Vd);return je(e.Kd,[t]).map(function(e){return e.toString()})}}(s),0,null,n,o,r,i))}return a}(l,s,a);n=e.ba.start;var h=e.ba.duration?e.ba.start+e.ba.duration:1/0,f=1/0!=h;return d?(f&&new La(u).Hb(n,h,!0),d.sc(u,e.presentationTimeline.ub())):d=new La(u),e.presentationTimeline.tc(u),f&&d.Hb(n,h),r&&e.Fb&&(r.segmentIndex=d),{jc:function(){return d&&0!=d.R.length||d.rc(u),Promise.resolve(d)}}}function Mu(e){return e.Yc}function Tu(){this.l=[],this.g=[],this.h=[],this.j=[],this.i=[],this.s=new Set}function Au(e,t,n){var r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,x,C,S,E,M,T,A,j,O,P,L,N,R,D,B;return I(function(I){switch(I.g){case 1:if(r=Ne,function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],r=c((t=t.value).kd),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.channelsCount==s.channelsCount&&i.language==s.language&&i.bandwidth==s.bandwidth&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&it(i.roles,s.roles)&&i.audioSamplingRate==s.audioSamplingRate&&i.primary==s.primary&&(o=!0);o||n.push(i)}t.kd=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],r=c((t=t.value).Gd),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.frameRate==s.frameRate&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&i.label==s.label&&it(i.roles,s.roles)&&Xr(i.closedCaptions,s.closedCaptions)&&i.bandwidth==s.bandwidth&&(o=!0);o||n.push(i)}t.Gd=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],r=c((t=t.value).textStreams),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.language==s.language&&i.label==s.label&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&it(i.roles,s.roles)&&(o=!0);o||n.push(i)}t.textStreams=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],r=c((t=t.value).imageStreams),i=r.next();!i.done;i=r.next()){i=i.value;for(var o=!1,a=c(n),s=a.next();!s.done;s=a.next())s=s.value,i.id!=s.id&&i.width==s.width&&i.codecs==s.codecs&&i.mimeType==s.mimeType&&(o=!0);o||n.push(i)}t.imageStreams=n}}(t),!n&&1==t.length){i=t[0],e.g=i.kd,e.h=i.Gd,e.j=i.textStreams,e.i=i.imageStreams,I.D(2);break}for(o=-1,a=c(re(t)),s=a.next();!s.done;s=a.next())l=s.value,d=l.wa,u=l.item,e.s.has(u.id)||(e.s.add(u.id),-1==o&&(o=d));if(-1==o)return I.return();for(h=t.map(function(e){return e.kd}),f=t.map(function(e){return e.Gd}),p=t.map(function(e){return e.textStreams}),m=t.map(function(e){return e.imageStreams}),g=c(p),v=g.next();!v.done;v=g.next())v.value.push(Ju(r.ua));for(b=c(m),y=b.next();!y.done;y=b.next())y.value.push(Ju(r.Gc));return w(I,Ou(e.g,h,o,Nu,Du),3);case 3:return w(I,Ou(e.h,f,o,Nu,Du),4);case 4:return w(I,Ou(e.j,p,o,Nu,Du),5);case 5:return w(I,Ou(e.i,m,o,Nu,Du),2);case 2:if(x=0,C=[],e.h.length&&e.g.length)for(j=c(e.g),O=j.next();!O.done;O=j.next())for(P=O.value,L=c(e.h),N=L.next();!N.done;N=L.next())R=N.value,D=oi(P.drmInfos,R.drmInfos),P.drmInfos.length&&R.drmInfos.length&&!D.length||(B=x++,C.push({id:B,language:P.language,primary:P.primary,audio:P,video:R,bandwidth:(P.bandwidth||0)+(R.bandwidth||0),drmInfos:D,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(S=e.h.concat(e.g),E=c(S),M=E.next();!M.done;M=E.next())T=M.value,A=x++,C.push({id:A,language:T.language,primary:T.primary,audio:T.type==r.Nb?T:null,video:T.type==r.mb?T:null,bandwidth:T.bandwidth||0,drmInfos:T.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});e.l=C,k(I)}})}function ju(e){var t,n,r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,k,x,C,S,E,M;return I(function(T){switch(T.g){case 1:if(t=Ne,1==e.length)return T.return(e[0]);for(n=e.map(function(e){return e.filter(function(e){return e.type==t.Nb})}),r=e.map(function(e){return e.filter(function(e){return e.type==t.mb})}),i=e.map(function(e){return e.filter(function(e){return e.type==t.ua})}),o=e.map(function(e){return e.filter(function(e){return e.type==t.Gc})}),a=c(i),s=a.next();!s.done;s=a.next())s.value.push(Wu(t.ua));for(l=c(o),d=l.next();!d.done;d=l.next())d.value.push(Wu(t.Gc));return w(T,Ou([],n,0,Ru,Bu),2);case 2:return u=T.h,w(T,Ou([],r,0,Ru,Bu),3);case 3:return h=T.h,w(T,Ou([],i,0,Ru,Bu),4);case 4:return f=T.h,w(T,Ou([],o,0,Ru,Bu),5);case 5:if(p=T.h,m=0,h.length&&u.length)for(y=c(u),k=y.next();!k.done;k=y.next())for(x=k.value,C=c(h),S=C.next();!S.done;S=C.next())E=S.value,M=m++,E.variantIds.push(M),x.variantIds.push(M);else for(g=h.concat(u),v=c(g),b=v.next();!b.done;b=v.next())b.value.variantIds=[m++];return T.return(h.concat(u).concat(f).concat(p))}})}function Ou(e,t,n,r,i){var o,a,s,l,d,u,h,f,p,m,g,v,b,y,k,x,C,S,E,M,T,A;return I(function(j){switch(j.g){case 1:for(o=Ne,a=[],s=c(re(t)),l=s.next();!l.done;l=s.next())d=l.value,u=d.wa,h=d.item,u>=n?a.push(new Set(h)):a.push(new Set);f=c(e),p=f.next();case 2:if(p.done){j.D(4);break}return w(j,function(e,t,n,r,i){return I(function(o){return 1==o.g?(zu(t,e),e.matchedStreams?e.segmentIndex?w(o,Pu(e,n),2):o.D(2):o.return(!1)):(Iu(e,n,r,i),o.return(!0))})}(p.value,t,n,i,a),5);case 5:if(!j.h)throw new ye(2,4,4037);p=f.next(),j.D(2);break;case 4:for(m=c(a),g=m.next();!g.done;g=m.next())for(v=g.value,b=c(v),y=b.next();!y.done;y=b.next())k=y.value,(x=Lu(k,t,r,i,a))&&e.push(x);for(C=c(a),g=C.next();!g.done;g=C.next())for(S=g.value,E={},M=c(S),y=M.next();!y.done;E={Cb:E.Cb},y=M.next())if(E.Cb=y.value,T=E.Cb.type==o.ua&&!E.Cb.language,A=E.Cb.type==o.Gc&&!E.Cb.tilesLayout,!T&&!A&&e.some(function(e){return function(t){return t.mimeType==e.Cb.mimeType&&on(t.codecs)==on(e.Cb.codecs)}}(E)))throw new ye(2,4,4037);return j.return(e)}})}function Pu(e,t){var n,r,i,o,a,s,l,d,u,h;return I(function(f){if(1==f.g){for(n=[],r=e.matchedStreams,i=c(r),o=i.next();!o.done;o=i.next())a=o.value,n.push(a.createSegmentIndex()),a.trickModeVideo&&!a.trickModeVideo.segmentIndex&&n.push(a.trickModeVideo.createSegmentIndex());return w(f,Promise.all(n),2)}if(e.segmentIndex instanceof Ra)for(s=c(re(r)),l=s.next();!l.done;l=s.next())d=l.value,u=d.wa,(h=d.item).segmentIndex&&u>=t&&e.segmentIndex.j.push(h.segmentIndex);k(f)})}function Lu(e,t,n,r,i){var o=n(e);return zu(t,o),o.createSegmentIndex&&(o.createSegmentIndex=function(){return I(function(e){return o.segmentIndex?e.D(0):(o.segmentIndex=new Ra,w(e,Pu(o,0),0))})}),o.matchedStreams?(Iu(o,0,r,i),o):null}function Iu(e,t,n,r){for(var i=c(re(e.matchedStreams)),o=i.next();!o.done;o=i.next()){var a=o.value;if(o=a.wa,a=a.item,o>=t){n(e,a);var s=!0;"audio"==e.type&&0==Ue(e.language,a.language)&&(s=!1),s&&r[o].delete(a)}}}function Nu(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=c(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=null,t.trickModeVideo=null,t}function Ru(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function Du(e,t){var n,r;e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris)))),e.keyIds=(n=e.keyIds,r=t.keyIds,new Set([].concat(d(n),d(r)))),null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||"");var i=oi(e.drmInfos,t.drmInfos);if(t.drmInfos.length&&e.drmInfos.length&&!i.length)throw new ye(2,4,4038);if(e.drmInfos=i,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var o=(i=c(t.closedCaptions)).next();!o.done;o=i.next()){var a=c(o.value);o=a.next().value,a=a.next().value,e.closedCaptions.set(o,a)}}t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Nu(t.trickModeVideo),e.trickModeVideo.createSegmentIndex=function(){return e.trickModeVideo.segmentIndex=e.segmentIndex.clone(),Promise.resolve()}),Du(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&Du(e.trickModeVideo,t)}function Bu(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;if(n=new Set([].concat(d(e.keyIds),d(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,d(t.segments)),t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var r=(n=c(t.closedCaptions)).next();!r.done;r=n.next()){var i=c(r.value);r=i.next().value,i=i.next().value,e.closedCaptions.set(r,i)}}}function zu(e,t){for(var n=[],r=c(e),i=r.next();!i.done;i=r.next()){for(var o=t,a={audio:Fu,video:Fu,text:Hu,image:qu}[o.type],s={audio:Uu,video:Vu,text:Xu,image:Gu}[o.type],l=null,d=(i=c(i.value)).next();!d.done;d=i.next())!a(o,d=d.value)||l&&!s(o,l,d)||(l=d);if(!(o=l))return;n.push(o)}t.matchedStreams=n}function Fu(e,t){var n;if(!(n=t.mimeType!=e.mimeType||on(t.codecs)!=on(e.codecs))&&(n=e.drmInfos)){n=e.drmInfos;var r=t.drmInfos;n=!(!n.length||!r.length||0<oi(n,r).length)}return!n}function Hu(e,t){return!!e.language&&(!t.language||0!=Ue(e.language,t.language)&&t.kind==e.kind)}function qu(e){return!!e.tilesLayout}function Uu(e,t,n){if(e.id==n.id)return!0;var r=Ue(e.language,t.language),i=Ue(e.language,n.language);return i>r||!(i<r)&&(!(t.primary||!n.primary)||!(t.primary&&!n.primary)&&(e.roles.length?(r=t.roles.filter(function(t){return e.roles.includes(t)}),(i=n.roles.filter(function(t){return e.roles.includes(t)})).length>r.length||!(i.length<r.length)&&n.roles.length<t.roles.length):!(n.roles.length||!t.roles.length)||!(n.roles.length&&!t.roles.length)&&((r=Zu(e.channelsCount,t.channelsCount,n.channelsCount))==Yu||r!=_u&&((r=Zu(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==Yu||r!=_u&&!(!e.bandwidth||Ku(e.bandwidth,t.bandwidth,n.bandwidth)!=Yu)))))}function Vu(e,t,n){if(e.id==n.id)return!0;var r=Zu(e.width*e.height,t.width*t.height,n.width*n.height);if(r==Yu)return!0;if(r==_u)return!1;if(e.frameRate){if((r=Zu(e.frameRate,t.frameRate,n.frameRate))==Yu)return!0;if(r==_u)return!1}return!(!e.bandwidth||Ku(e.bandwidth,t.bandwidth,n.bandwidth)!=Yu)}function Xu(e,t,n){if(e.id==n.id)return!0;var r=Ue(e.language,t.language),i=Ue(e.language,n.language);if(i>r)return!0;if(i<r)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(e.roles.length){if(r=t.roles.filter(function(t){return e.roles.includes(t)}),(i=n.roles.filter(function(t){return e.roles.includes(t)})).length>r.length)return!0;if(i.length<r.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function Gu(e,t,n){return e.id==n.id||Zu(e.width*e.height,t.width*t.height,n.width*n.height)==Yu}function Wu(e){return{id:0,originalId:"",primary:!1,type:e,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function Ju(e){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new La([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function Zu(e,t,n){if(t==e&&e!=n)return _u;if(n==e&&e!=t)return Yu;if(t>e){if(n<=e||n-e<t-e)return Yu;if(n-e>t-e)return _u}else{if(n>e)return _u;if(e-n<e-t)return Yu;if(e-n>e-t)return _u}return Qu}function Ku(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?Yu:t<e?_u:Qu}Tu.prototype.release=function(){for(var e=c(this.g.concat(this.h,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.g=[],this.h=[],this.j=[],this.i=[],this.l=[]};var Yu=1,Qu=0,_u=-1;function $u(){var e=this;this.F=this.m=null,this.h=[],this.H=null,this.G=1,this.yb={},this.L={},this.g=new Tu,this.C=0,this.I=new _e(5),this.B=new pn(function(){e.Tc()}),this.i=new Cr,this.j=null,this.J=[],this.l=1/0,this.s=!1}function eh(e){var t,n,r,i,o,a,s;return I(function(l){return 1==l.g?(t=Tr(e.h,e.m.retryParameters),n=e.F.networkingEngine,e.F.modifyManifestRequest(t,{format:"d"}),r=Date.now(),i=n.request(0,t),Sr(e.i,i),w(l,i.promise,2)):3!=l.g?(o=l.h,e.F?(o.uri&&!e.h.includes(o.uri)&&e.h.unshift(o.uri),w(l,function(e,t,n){var r,i,o,a;return I(function(s){if(1==s.g){if(!(r=Qd(t,"MPD")))throw new ye(2,4,4001,n);return e.m.dash.disableXlinkProcessing?s.return(th(e,r,n)):(i=e.m.dash.xlinkFailGracefully,o=su(r,e.m.retryParameters,i,n,e.F.networkingEngine),Sr(e.i,o),w(s,o.promise,2))}return a=s.h,s.return(th(e,a,n))})}(e,o.data,o.uri),3)):l.return(0)):(a=Date.now(),s=(a-r)/1e3,$e(e.I,1,s),l.return(s))})}function th(e,t,n){var r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,C,M,T,A,j,O,P,L,N,R,D,B,z;return I(function(F){switch(F.g){case 1:if((r=e.m.dash.manifestPreprocessor)&&r(t),i=[n],0<(o=Rd(t,"Location").map(Fd).filter(Te)).length&&(a=je(i,o),i=e.h=a),s=Rd(t,"BaseURL"),l=s.map(Fd),d=je(i,l),u=0,s&&s.length&&(u=qd(s[0],"availabilityTimeOffset",Zd)||0),h=e.m.dash.ignoreMinBufferTime,f=0,h||(f=qd(t,"minBufferTime",Vd)||0),e.C=qd(t,"minimumUpdatePeriod",Vd,-1),p=qd(t,"availabilityStartTime",Ud),m=qd(t,"timeShiftBufferDepth",Vd),g=e.m.dash.ignoreSuggestedPresentationDelay,v=null,g||(v=qd(t,"suggestedPresentationDelay",Vd)),b=e.m.dash.ignoreMaxSegmentDuration,y=null,b||(y=qd(t,"maxSegmentDuration",Vd)),C=t.getAttribute("type")||"static",e.H)for(M=e.H.presentationTimeline,T=c(Object.values(e.yb)),A=T.next();!A.done;A=T.next())(j=A.value).segmentIndex&&j.segmentIndex.Ob(M.ub());else O=e.m.defaultPresentationDelay||1.5*f,M=new ha(p,null!=v?v:O,e.m.dash.autoCorrectDrift);return M.Zc("static"==C),M.W()&&!isNaN(e.m.availabilityWindowOverride)&&(m=e.m.availabilityWindowOverride),null==m&&(m=1/0),M.Ie(m),P=t.getAttribute("profiles")||"",L={Fb:"static"!=C,presentationTimeline:M,ya:null,ba:null,Ha:null,O:null,bandwidth:0,nf:!1,hc:u,profiles:P.split(",")},N=function(e,t,n,r){var i=qd(r,"mediaPresentationDuration",Vd),o=[],a=0;r=Rd(r,"Period");for(var s=c(re(r)),l=s.next();!l.done;l=s.next()){var d=l.value;l=d.wa;var u=d.item,h=d.next;d=qd(u,"start",Vd,a);var f=u.id,p=qd(u,"duration",Vd),m=null;if(h){var g=qd(h,"start",Vd);null!=g&&(m=g-d)}else null!=i&&(m=i-d);if(null==m&&(m=p),!(null!==e.j&&null!==f&&null!==d&&d<e.j)||e.J.includes(f)||l+1==r.length){if(null!==d&&(null===e.j||d>e.j)&&(e.j=d),a=nh(e,t,n,{start:d,duration:m,node:u,rf:null==m||!h}),o.push(a),t.ya.id&&m&&(e.L[t.ya.id]=m),null==m){a=null;break}a=d+m}}return e.J=o.map(function(e){return e.id}),null!=i?{periods:o,duration:i,df:!1}:{periods:o,duration:a,df:!0}}(e,L,d,t),R=N.duration,D=N.periods,"static"!=C&&N.df||M.ib(R||1/0),e.l&&!e.s&&e.F.isAutoLowLatencyMode()&&(e.F.enableLowLatencyMode(),e.s=e.F.isLowLatencyMode()),e.s?M.Bf(e.l):e.l&&G("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),M.le(y||1),w(F,Au(e.g,D,L.Fb),2);case 2:if(e.H){e.H.variants=e.g.l,e.H.textStreams=e.g.j.slice(),e.H.imageStreams=e.g.i,e.F.filter(e.H),F.D(3);break}if(e.H={presentationTimeline:M,variants:e.g.l,textStreams:e.g.j.slice(),imageStreams:e.g.i,offlineSessionIds:[],minBufferTime:f||0},!M.Kf()){F.D(3);break}return B=Rd(t,"UTCTiming"),w(F,function(e,t,n){var r,i,o,a,s,l,d,u;return I(function(h){switch(h.g){case 1:r=n.map(function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}}),i=e.m.dash.clockSyncUri,!r.length&&i&&r.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:i}),o=c(r),a=o.next();case 2:if(a.done){h.D(4);break}switch(s=a.value,x(h,5),l=s.scheme,d=s.value,l){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return h.D(7);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":return h.D(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return u=Date.parse(d),h.return(isNaN(u)?0:u-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":G("NTP UTCTiming scheme is not supported");break;default:G("Unrecognized scheme in UTCTiming element",l)}h.D(9);break;case 7:return w(h,ah(e,t,d,"HEAD"),10);case 10:return h.return(h.h);case 8:return w(h,ah(e,t,d,"GET"),11);case 11:return h.return(h.h);case 9:S(h,3);break;case 5:E(h);case 3:a=o.next(),h.D(2);break;case 4:return G("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),h.return(0)}})}(e,d,B),5);case 5:if(z=F.h,!e.F)return F.return();M.Cf(z);case 3:e.F.makeTextStreamsForClosedCaptions(e.H),k(F)}})}function nh(e,t,n,r){t.ya=oh(r.node,null,n),t.ba=r,t.ya.hc=t.hc,t.ya.id||(t.ya.id="__shaka_period_"+r.start);var i=Rd(r.node,"EventStream");n=t.presentationTimeline.ub();for(var o=(i=c(i)).next();!o.done;o=i.next())sh(e,r.start,r.duration,o.value,n);if(n=Rd(r.node,"AdaptationSet").map(function(n){return function(e,t,n){function r(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.Ha=oh(n,t.ya,null);var i,o=!1,a=Rd(n,"Role"),s=a.map(function(e){return e.getAttribute("value")}).filter(Te),l=void 0,u=t.Ha.contentType==Ie;u&&(l="subtitle");for(var h=(a=c(a)).next();!h.done;h=a.next()){var f=(h=h.value).getAttribute("schemeIdUri");if(null==f||"urn:mpeg:dash:role:2011"==f)switch(h=h.getAttribute("value"),h){case"main":o=!0;break;case"caption":case"subtitle":l=h}}f=Rd(n,"EssentialProperty"),a=null,h=!1;for(var p=(f=c(f)).next();!p.done;p=f.next()){var m=(p=p.value).getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==m?a=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==m?i=r(parseInt(p.getAttribute("value"),10)):h=!0}for(f=c(f=Rd(n,"SupplementalProperty")),p=f.next();!p.done;p=f.next())"urn:mpeg:mpegB:cicp:TransferCharacteristics"==(p=p.value).getAttribute("schemeIdUri")&&(i=r(parseInt(p.getAttribute("value"),10)));f=Rd(n,"Accessibility");var g=new Map;for(f=c(f),p=f.next();!p.done;p=f.next())if(m=p.value,p=m.getAttribute("schemeIdUri"),m=m.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=m)for(var v=c(m=m.split(";")),b=v.next();!b.done;b=v.next()){var y=b.value,x=b=void 0;y.includes("=")?(b=(y=y.split("="))[0].startsWith("CC")?y[0]:"CC"+y[0],x=y[1]||"und"):(b="CC"+p,2==m.length?p+=2:p++,x=y),g.set(b,He(x))}else g.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=m)for(m=c(m.split(";")),b=m.next();!b.done;b=m.next())b=b.value,y=v=void 0,b.includes("=")?(b=b.split("="),v="svc"+b[0],y=b[1].split(",")[0].split(":").pop()):(v="svc"+p,p++,y=b),g.set(v,He(y));else g.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=m&&(s.push(m),"captions"==m&&(l="caption"));if(h)return null;var C=_d(h=Rd(n,"ContentProtection"),e.m.dash.ignoreDrmInfo,e.m.dash.keySystemsByURI),S=He(n.getAttribute("lang")||"und"),E=n.getAttribute("label");if((h=Rd(n,"Label"))&&h.length&&((h=h[0]).textContent&&(E=h.textContent)),h=Rd(n,"Representation"),n=h.map(function(n){return(n=function(e,t,n,r,i,o,a,s,l,c){if(t.O=oh(c,t.Ha,null),e.l=Math.min(e.l,t.O.hc),!function(e){var t=e.Xc?1:0;return t+=e.Mb?1:0,0==(t+=e.Yc?1:0)?e.contentType==Ie||"application"==e.contentType:(1!=t&&(e.Xc&&(e.Mb=null),e.Yc=null),!0)}(t.O))return null;var d=t.ba.start;t.bandwidth=qd(c,"bandwidth",Wd)||0;var u=t.O.contentType,h=u==Ie||"application"==u;u="image"==u;try{var f=function(t,n,r){return function(e,t,n,r){var i,o,a,s,l;return I(function(c){return 1==c.g?(i=Pr,o=Ja(t,n,r,e.m.retryParameters),a=e.F.networkingEngine,s=a.request(i,o),Sr(e.i,s),w(c,s.promise,2)):(l=c.h,c.return(l.data))})}(e,t,n,r)};if(t.O.Xc)var p=vu(t,f);else if(t.O.Mb)p=Cu(t,e.yb);else if(t.O.Yc)p=Eu(t,f,e.yb,!!e.H,e.m.dash.initialSegmentLimit,e.L);else{var m=t.O.Va,g=t.ba.duration||0;p={jc:function(){return Promise.resolve(Ia(d,g,m))}}}}catch(E){if((h||u)&&4002==E.code)return null;throw E}f=function(e,t,n,r){var i=_d(e,n,r);if(t.gf)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==i.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=i.drmInfos),t.gf=!1;else if(0<i.drmInfos.length&&(t.drmInfos=t.drmInfos.filter(function(e){return i.drmInfos.some(function(t){return t.keySystem==e.keySystem})}),0==t.drmInfos.length))throw new ye(2,4,4008);return i.bf||t.bf}(f=Rd(c,"ContentProtection"),n,e.m.dash.ignoreDrmInfo,e.m.dash.keySystemsByURI),f=new Set(f?[f]:[]);var v=!1;Rd(c,"SupplementalProperty").some(function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.getAttribute("schemeIdUri")&&"JOC"==e.getAttribute("value")})&&(t.O.mimeType="audio/eac3-joc",v=!0);var b,y,x=!1;if(h&&(x=s.includes("forced_subtitle")||s.includes("forced-subtitle")),u&&((c=Rd(c,"EssentialProperty").find(function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.getAttribute("schemeIdUri"))}))&&(b=c.getAttribute("value")),!b))return null;c=t.O.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(c.includes("hvc1.2.4.L153.B0")||c.includes("hev1.2.4.L153.B0"))&&(y="PQ");var C=t.O.id?t.ya.id+","+t.O.id:"",S={id:e.G++,originalId:t.O.id,createSegmentIndex:function(){var n,r;return I(function(i){if(1==i.g)return(n=C&&t.Fb&&e.yb[C]?e.yb[C]:S).segmentIndex?i.D(0):(r=n,w(i,p.jc(),3));r.segmentIndex=i.h,k(i)})},closeSegmentIndex:function(){S.segmentIndex&&(S.segmentIndex.release(),S.segmentIndex=null)},segmentIndex:null,mimeType:t.O.mimeType,codecs:t.O.codecs,frameRate:t.O.frameRate,pixelAspectRatio:t.O.pixelAspectRatio,bandwidth:t.bandwidth,width:t.O.width,height:t.O.height,kind:r,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:f,language:i,label:o,type:t.Ha.contentType,primary:a,trickModeVideo:null,emsgSchemeIdUris:t.O.emsgSchemeIdUris,roles:s,forced:x,channelsCount:t.O.ud,audioSamplingRate:t.O.audioSamplingRate,spatialAudio:v,closedCaptions:l,hdr:y,tilesLayout:b,matchedStreams:[]};return C&&t.Fb&&!e.yb[C]&&(e.yb[C]=S),S}(e,t,C,l,S,E,o,s,g,n))&&(n.hdr=n.hdr||i),n}).filter(function(e){return!!e}),0==n.length){if(a="image"==t.Ha.contentType,e.m.dash.ignoreEmptyAdaptationSet||u||a)return null;throw new ye(2,4,4003)}if(!t.Ha.contentType||"application"==t.Ha.contentType)for(t.Ha.contentType=lh(n[0].mimeType,n[0].codecs),u=c(n),f=u.next();!f.done;f=u.next())f.value.type=t.Ha.contentType;for(u=c(n),f=u.next();!f.done;f=u.next())for(f=f.value,p=c(C.drmInfos),m=p.next();!m.done;m=p.next())(m=m.value).keyIds=m.keyIds&&f.keyIds?new Set([].concat(d(m.keyIds),d(f.keyIds))):m.keyIds||f.keyIds;return u=h.map(function(e){return e.getAttribute("id")}).filter(Te),{id:t.Ha.id||"__fake__"+e.G++,contentType:t.Ha.contentType,language:S,Ti:o,streams:n,drmInfos:C.drmInfos,Oe:a,fh:u}}(e,t,n)}).filter(Te),t.Fb){for(r=[],o=(i=c(n)).next();!o.done;o=i.next())for(var a=(o=c(o.value.fh)).next();!a.done;a=o.next())r.push(a.value);if(r.length!=new Set(r).size)throw new ye(2,4,4018)}for(r=n.filter(function(e){return!e.Oe}),i=(n=c(n=n.filter(function(e){return e.Oe}))).next();!i.done;i=n.next()){o=(i=i.value).Oe.split(" ");for(var s=(a=c(r)).next();!s.done;s=a.next()){var l=s.value;if(o.includes(l.id)){s={};for(var u=(l=c(l.streams)).next();!u.done;s={gd:s.gd},u=l.next())s.gd=u.value,s.gd.trickModeVideo=i.streams.find(function(e){return function(t){return on(e.gd.codecs)==on(t.codecs)}}(s))}}}if(i=e.m.disableAudio?[]:rh(r,"audio"),a=e.m.disableVideo?[]:rh(r,"video"),o=e.m.disableText?[]:rh(r,Ie),n=e.m.disableThumbnails?[]:rh(r,"image"),!a.length&&!i.length)throw new ye(2,4,4004);for(r=[],s=(i=c(i)).next();!s.done;s=i.next())r.push.apply(r,d(s.value.streams));for(i=[],s=(a=c(a)).next();!s.done;s=a.next())i.push.apply(i,d(s.value.streams));for(a=[],s=(o=c(o)).next();!s.done;s=o.next())a.push.apply(a,d(s.value.streams));for(o=[],s=(n=c(n)).next();!s.done;s=n.next())o.push.apply(o,d(s.value.streams));return{id:t.ya.id,kd:r,Gd:i,textStreams:a,imageStreams:o}}function rh(e,t){return e.filter(function(e){return e.contentType==t})}function ih(e,t){0>e.C||e.B.U(Math.max(3,e.C-t,et(e.I)))}function oh(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ud:null,audioSamplingRate:null,hc:0},n=n||t.Va;for(var r=Rd(e,"BaseURL"),i=r.map(Fd),o=e.getAttribute("contentType")||t.contentType,a=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,l=qd(e,"frameRate",Kd)||t.frameRate,d=e.getAttribute("sar")||t.pixelAspectRatio,u=Rd(e,"InbandEventStream"),h=t.emsgSchemeIdUris.slice(),f=(u=c(u)).next();!f.done;f=u.next())f=f.value.getAttribute("schemeIdUri"),h.includes(f)||h.push(f);u=function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(u=Rd(e,"AudioChannelConfiguration"))||t.ud,f=qd(e,"audioSamplingRate",Jd)||t.audioSamplingRate,o||(o=lh(a,s));var p=Id(e,"SegmentBase"),m=Id(e,"SegmentTemplate"),g=p&&qd(p,"availabilityTimeOffset",Zd)||0,v=m&&qd(m,"availabilityTimeOffset",Zd)||0;return r=r&&r.length&&qd(r[0],"availabilityTimeOffset",Zd)||0,r=t.hc+r+g+v,{Va:je(n,i),Xc:p||t.Xc,Mb:Id(e,"SegmentList")||t.Mb,Yc:m||t.Yc,width:qd(e,"width",Jd)||t.width,height:qd(e,"height",Jd)||t.height,contentType:o,mimeType:a,codecs:s,frameRate:l,pixelAspectRatio:d,emsgSchemeIdUris:h,id:e.getAttribute("id"),ud:u,audioSamplingRate:f,hc:r}}function ah(e,t,n,r){var i,o,a,s,l,c;return I(function(d){if(1==d.g)return i=je(t,[n]),(o=Tr(i,e.m.retryParameters)).method=r,a=e.F.networkingEngine.request(4,o),Sr(e.i,a),w(d,a.promise,2);if(s=d.h,"HEAD"==r){if(!s.headers||!s.headers.date)return d.return(0);l=s.headers.date}else l=Ft(s.data);return c=Date.parse(l),isNaN(c)?d.return(0):d.return(c-Date.now())})}function sh(e,t,n,r,i){for(var o=r.getAttribute("schemeIdUri")||"",a=r.getAttribute("value")||"",s=qd(r,"timescale",Jd)||1,l=(r=c(Rd(r,"Event"))).next();!l.done;l=r.next()){var d=qd(l=l.value,"presentationTime",Jd)||0,u=qd(l,"duration",Jd)||0;u=(d=d/s+t)+u/s,null!=n&&(d=Math.min(d,t+n),u=Math.min(u,t+n)),u<i||(l={schemeIdUri:o,value:a,startTime:d,endTime:u,id:l.getAttribute("id")||"",eventElement:l},e.F.onTimelineRegionAdded(l))}}function lh(e,t){return ln(nn(e,t))?Ie:e.split("/")[0]}function ch(e,t,n,r){this.g=e,this.type=t,this.aa=n,this.segments=r||null}function dh(e,t,n,r){this.id=e,this.name=t,this.g=n,this.value=void 0===r?null:r}function uh(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function hh(e,t){var n=e.getAttribute(t);if(!n)throw new ye(2,4,4023,t);return n.value}function fh(e,t,n){n=void 0===n?[]:n,this.aa=t,this.g=e,this.h=n}function ph(e,t){this.name=e,this.value=t}function mh(e,t){return e.filter(function(e){return e.name==t})}function gh(e,t){return e.filter(function(e){return hh(e,"TYPE")==t})}function vh(e,t){var n=mh(e,t);return n.length?n[0]:null}function bh(e,t,n){return n=void 0===n?0:n,(e=vh(e,t))?Number(e.value):n}function yh(e){this.h=e,this.g=0}function wh(e){kh(e,/[ \t]+/gm)}function kh(e,t){t.lastIndex=e.g;var n=t.exec(e.h);return n=null==n?null:{position:n.index,length:n[0].length,results:n},e.g==e.h.length||null==n||n.position!=e.g?null:(e.g+=n.length,n.results)}function xh(e){return e.g==e.h.length?null:(e=kh(e,/[^ \t\n]*/gm))?e[0]:null}function Ch(){this.g=0}function Sh(e,t,n){var r=(t=(t=Ft(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(r[0]))throw new ye(2,4,4015);t=0;for(var i=!0,o=c(r),a=o.next();!a.done;a=o.next())if(a=a.value,/^#(?!EXT)/m.test(a)||i)i=!1;else{if(a=Eh(e.g++,a),--e.g,Mh.includes(a.name)){t=1;break}"EXT-X-STREAM-INF"==a.name&&(i=!0)}o=[],i=!0;for(var s=(a=c(re(r))).next();!s.done;s=a.next()){var l=s.value;s=l.wa;var d=l.item;if(l=l.next,/^#(?!EXT)/m.test(d)||i)i=!1;else{if(d=Eh(e.g++,d),Th.includes(d.name)){if(1!=t)throw new ye(2,4,4017);l=r.splice(s,r.length-s),r=n,i=[],a=[],s=[],d=null;for(var u=(l=c(l)).next();!u.done;u=l.next())u=u.value,/^(#EXT)/.test(u)?(u=Eh(e.g++,u),Mh.includes(u.name)?o.push(u):"EXT-X-MAP"==u.name?d=u:"EXT-X-PART"==u.name?s.push(u):"EXT-X-PRELOAD-HINT"==u.name?"PART"==uh(u,"TYPE")?s.push(u):"MAP"==uh(u,"TYPE")&&(u.name="EXT-X-MAP",d=u):a.push(u)):/^#(?!EXT)/m.test(u)||(u=je([r],[u.trim()])[0],d&&a.push(d),i.push(new fh(u,a,s)),a=[],s=[]);return s.length&&(d&&a.push(d),i.push(new fh("",a,s))),new ch(n,t,o,i)}o.push(d),"EXT-X-STREAM-INF"==d.name&&(d.g.push(new ph("URI",l)),i=!0)}}return new ch(n,t,o)}function Eh(e,t){var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new ye(2,4,4016,t);var r,i=n[1],o=n[2];if(n=[],o){var a;(a=kh(o=new yh(o),/^([^,=]+)(?:,|$)/g))&&(r=a[1]);for(var s=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;a=kh(o,s);)n.push(new ph(a[1],a[2]||a[3])),wh(o)}return new dh(e,i,n,r)}(r=$u.prototype).configure=function(e){this.m=e},r.start=function(e,t){var n,r=this;return I(function(i){if(1==i.g)return r.s=t.isLowLatencyMode(),r.h=[e],r.F=t,w(i,eh(r),2);if(n=i.h,r.F&&ih(r,n),!r.F)throw new ye(2,7,7001);return i.return(r.H)})},r.stop=function(){for(var e=c(Object.values(this.yb)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.g&&this.g.release(),this.m=this.F=null,this.h=[],this.H=null,this.yb={},this.g=null,null!=this.B&&(this.B.stop(),this.B=null),this.i.destroy()},r.update=function(){var e,t=this;return I(function(n){return 1==n.g?(x(n,2),w(n,eh(t),4)):2!=n.g?S(n,0):(e=E(n),t.F&&e?(t.F.onError(e),void k(n)):n.return())})},r.onExpirationUpdated=function(){},r.Tc=function(){var e,t,n=this;return I(function(r){switch(r.g){case 1:return e=0,x(r,2),w(r,eh(n),4);case 4:e=r.h,S(r,3);break;case 2:t=E(r),n.F&&(t.severity=1,n.F.onError(t));case 3:if(!n.F)return r.return();ih(n,e),k(r)}})},H("shaka.dash.DashParser",$u),yi.mpd=function(){return new $u},bi["application/dash+xml"]=function(){return new $u},bi["video/vnd.mpeg.dash.mpd"]=function(){return new $u},dh.prototype.toString=function(){var e="#"+this.name,t=this.g?this.g.map(function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}):[];return this.value&&t.unshift(this.value),0<t.length&&(e+=":"+t.join(",")),e},dh.prototype.getAttribute=function(e){var t=this.g.filter(function(t){return t.name==e});return t.length?t[0]:null};var Mh="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Th="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Ah(){}function jh(e){try{var t=Oh(e);return br({uri:e,vf:e,data:t.data,headers:{"content-type":t.contentType}})}catch(n){return gr(n)}}function Oh(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new ye(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new ye(2,1,1004,t);var r=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=r.split(";"),r=n[0];var i=!1;return 1<n.length&&"base64"==n[n.length-1]&&(i=!0,n.pop()),{data:i?Zt(t):Ut(t),contentType:r}}function Ph(){var e=this;this.m=this.F=null,this.Aa=1,this.l=new Map,this.B=new Map,this.sa=new Set,this.g=new Map,this.h=null,this.M="",this.$=new Ch,this.ka=0,this.C=new pn(function(){e.Tc()}),this.j=_h,this.H=null,this.ia=0,this.I=1/0,this.ea=this.Ca=0,this.G=new Cr,this.S=[],this.L=new Map,this.Ba=!1,this.s=new Map,this.P=null,this.ha=new Map,this.J=new Map,this.i=!1}function Lh(e,t){var n,r,i,o,a,s,l,c,d,u,h,f;return I(function(p){if(1==p.g)return n=tf,r=t.Pf,i=new oe(r),e.i&&t.Uf&&le(i,new ve("_HLS_skip=YES")),w(p,Wh(e,i.toString()),2);if(3!=p.g){if(o=p.h,1!=(a=Sh(e.$,o.data,o.uri)).type)throw new ye(2,4,4017);return s=mh(a.aa,"EXT-X-DEFINE"),l=Ih(e,s),c=t.stream,w(p,Uh(e,t.Fd,a,c.type,c.mimeType,t.ie,l,t.Zf,c.codecs,c.bandwidth),3)}d=p.h,c.segmentIndex.sc(d,e.h.ub()),d.length&&(u=bh(a.aa,"EXT-X-MEDIA-SEQUENCE",0),h=t.ie.get(u),c.segmentIndex.Ob(h)),f=d[d.length-1],vh(a.aa,"EXT-X-ENDLIST")&&(Jh(e,n.Of),e.h.ib(f.endTime)),k(p)})}function Ih(e,t){for(var n=new Map,r=c(t),i=r.next();!i.done;i=r.next()){var o=i.value;i=uh(o,"NAME");var a=uh(o,"VALUE");o=uh(o,"IMPORT"),i&&a&&n.set(i,a),o&&(i=e.l.get(o))&&n.set(o,i)}return n}function Nh(e,t){var n=[];e.m.disableVideo||n.push(e.m.hls.defaultVideoCodec),e.m.disableAudio||n.push(e.m.hls.defaultAudioCodec);var r=uh(t,"CODECS",n.join(",")).split(/\s*,\s*/);n=new Set;for(var i=[],o=(r=c(r)).next();!o.done;o=r.next()){var a=on(o=o.value);n.has(a)||(i.push(o),n.add(a))}return i}function Rh(e){return He(e=uh(e,"LANGUAGE")||"und")}function Dh(e,t){var n,r,i,o,a,s,l,c,d,u,h,f,p;return I(function(m){if(1==m.g){n=hh(t,"GROUP-ID"),r="";var g=hh(t,"TYPE").toLowerCase();return"subtitles"==g&&(g=Ie),(i=g)!=Ie&&n&&e.s.has(n)&&(r=e.s.get(n)),o=Gh(hh(t,"URI"),e.l),e.g.has(o)?m.return(e.g.get(o)):(a=Rh(t),s=uh(t,"NAME"),l=uh(t,"DEFAULT"),c="YES"==l,g="audio"==i&&(g=uh(t,"CHANNELS"))?parseInt(g.split("/")[0],10):null,d=g,g="audio"==i&&!!(g=uh(t,"CHANNELS"))&&g.includes("/JOC"),u=g,h=uh(t,"CHARACTERISTICS"),f=uh(t,"FORCED"),w(m,Bh(e,o,r,i,a,c,s,d,null,h,"YES"==f,u),2))}return p=m.h,e.B.has(n)?e.B.get(n).push(p):e.B.set(n,[p]),null==p?m.return(null):e.g.has(o)?m.return(e.g.get(o)):(e.g.set(o,p),m.return(p))})}function Bh(e,t,n,r,i,o,a,s,l,u,h,f,p){var m,g,v,b,y,k,C,M,T,A,j,O,P,L,N,R,D,B,z,F,H,q,U,V,X,W,J,Z,K,Y,Q,_,$,ee,te,ne,re,ie,ae;return I(function(se){switch(se.g){case 1:return m=je([e.M],[t])[0],w(se,Wh(e,m),2);case 2:if(g=se.h,m=g.uri,1!=(v=Sh(e.$,g.data,m)).type)throw new ye(2,4,4017);if(b=[],v.segments)for(y=c(v.segments),k=y.next();!k.done;k=y.next())C=k.value,M=mh(C.aa,"EXT-X-KEY"),b.push.apply(b,d(M));for(T=!1,A=[],j=new Set,O=c(b),P=O.next();!P.done;P=O.next())if(L=P.value,"NONE"!=(N=hh(L,"METHOD"))){if(T=!0,"AES-128"==N)return e.Ba=!0,se.return(null);if(R=hh(L,"KEYFORMAT"),B=(D=Qh[R])?D(L):null){if(B.keyIds)for(z=c(B.keyIds),F=z.next();!F.done;F=z.next())H=F.value,j.add(H);A.push(B)}}if(T&&!A.length)throw new ye(2,4,4026);return q=mh(v.aa,"EXT-X-DEFINE"),U=Ih(e,q),function(e,t){var n=vh(t.aa,"EXT-X-PLAYLIST-TYPE"),r=vh(t.aa,"EXT-X-ENDLIST");if(r=n&&"VOD"==n.value||r,n=n&&"EVENT"==n.value&&!r,n=!r&&!n,r)Jh(e,_h);else{if(Jh(e,n?ef:$h),!(r=vh(t.aa,"EXT-X-TARGETDURATION")))throw new ye(2,4,4024,"EXT-X-TARGETDURATION");r=Number(r.value),n=vh(t.aa,"EXT-X-PART-INF"),e.i&&n?(e.Ca=Number(hh(n,"PART-TARGET")),e.I=Math.min(e.Ca,e.I),n=vh(t.aa,"EXT-X-SERVER-CONTROL"),e.ea=n?Number(hh(n,"PART-HOLD-BACK")):0):e.I=Math.min(r,e.I),e.ia=Math.max(r,e.ia)}}(e,v),w(se,function(e,t,n,r,i){var o,a,s,l,c,d,u,h,f,p,m;return I(function(g){return 1==g.g?(o=Ne,a=Pr,s=Gh(r.segments[0].g,i),l=new oe(s),c=l.Sa.split(".").pop(),d=Yh[t],(u=d[c])?g.return(u):t==o.ua?n&&"vtt"!=n&&"wvtt"!=n?g.return("application/mp4"):g.return("text/vtt"):t!=o.Gc||n&&"jpeg"!=n?((h=Tr([s],e.m.retryParameters)).method="HEAD",w(g,Zh(e,h,a),2)):g.return("image/jpeg")):(f=g.h,(p=f.headers["content-type"])?g.return(p.split(";")[0]):(m=d.mp4,g.return(m)))})}(e,r,n,v,U),3);case 3:return V=se.h,Kh.includes(V)&&(n=""),X=new Map,W=new Map,x(se,4),w(se,Uh(e,t,v,r,V,X,U,W,n,p),6);case 6:J=se.h,S(se,5);break;case 4:if(4035==(Z=E(se)).code)return G("Skipping unsupported HLS stream",V,t),se.return(null);throw Z;case 5:if(K=J[0].startTime,Y=J[J.length-1].endTime,Q=new La(J),_=r==Ie?"subtitle":void 0,$=[],u)for(ee=c(u.split(",")),te=ee.next();!te.done;te=ee.next())ne=te.value,$.push(ne);return ie=!!(re=vh(v.aa,"EXT-X-SERVER-CONTROL"))&&null!=re.getAttribute("CAN-SKIP-UNTIL"),ae={id:e.Aa++,originalId:a,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Q,mimeType:V,codecs:n,kind:_,encrypted:T,drmInfos:A,keyIds:j,language:i,label:a,type:r,primary:o,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:$,forced:h,channelsCount:s,audioSamplingRate:null,spatialAudio:f,closedCaptions:l,hdr:void 0,tilesLayout:void 0},se.return({stream:ae,Fd:t,Pf:m,tf:K,Rg:Y,ie:X,Zf:W,Uf:ie})}})}function zh(e,t,n,r){return(n=vh(n,"EXT-X-MAP"))?(t=[r=Gh(je([t],[hh(n,"URI")])[0],r),uh(n,"BYTERANGE","")].join("-"),e.ha.has(t)||(n=function(e,t){var n=0,r=null,i=uh(t,"BYTERANGE");return i&&(n=i.split("@"),r=Number(n[0]),n=Number(n[1]),r=n+r-1),new da(function(){return[e]},n,r)}(r,n),e.ha.set(t,n)),e.ha.get(t)):null}function Fh(e,t,n,r,i,o,a,s,l){var d=r.aa,u=Gh(r.g,a),h=vh(d,"EXTINF"),f=a=0,p=null,m=[];if(e.i&&r.h.length){e={};for(var g=(r=c(re(r.h))).next();!g.done;e={Od:e.Od},g=r.next()){var v=(g=g.value).wa;g=g.item;var b=0==v?n:m[m.length-1];v=0==v?i:b.endTime;var y=Number(uh(g,"DURATION"));y=v+y;var w=0,k=null;"EXT-X-PRELOAD-HINT"==g.name?w=(b=uh(g,"BYTERANGE-START"))?Number(b):0:(w=(b=c(Hh(b,w=uh(g,"BYTERANGE")))).next().value,k=b.next().value),g=uh(g,"URI"),e.Od=je([s],[g])[0],m.push(new ua(v,y,function(e){return function(){return[e.Od]}}(e),w,k,t,o,0,1/0))}}else if(!h)throw new ye(2,4,4024,"EXTINF");return a=h?i+Number(h.value.split(",")[0]):m[m.length-1].endTime,(s=vh(d,"EXT-X-BYTERANGE"))?(f=(p=c(Hh(n,s.value))).next().value,p=p.next().value):m.length&&(f=m[0].Ka,p=m[m.length-1].Da),n="",s=null,"image"==l&&(n="1x1",l=vh(d,"EXT-X-TILES"))&&(n=hh(l,"LAYOUT"),(l=uh(l,"DURATION"))&&(s=Number(l))),new ua(i,a,function(){return u.length?[u]:[]},f,p,t,o,0,1/0,m,n,s)}function Hh(e,t){var n=0,r=null;return t&&(n=t.split("@"),r=Number(n[0]),r=(n=n[1]?Number(n[1]):e.Da+1)+r-1),[n,r]}function qh(e){if(e.h){for(var t=c(e.S),n=t.next();!n.done;n=t.next())e.h.tc(n.value);e.S=[]}}function Uh(e,t,n,r,i,o,a,s,l,d){var u,h,f,p,m,g,v,b,y,k,x,C,S,E,M,T,A,j,O,P;return I(function(L){switch(L.g){case 1:if(u=n.segments,f=bh(n.aa,"EXT-X-MEDIA-SEQUENCE",0),m=(p=vh(n.aa,"EXT-X-SKIP"))?Number(uh(p,"SKIPPED-SEGMENTS")):0,g=f+m,e.j!=_h&&o.has(g)){v=o.get(g),L.D(2);break}if(null!=e.P){L.D(3);break}return h=zh(e,n.g,u[0].aa,a),b=e,w(L,Xh(e,t,h,i,g,!1,u[0],a,r,l,d),4);case 4:b.P=L.h;case 3:v=e.P;case 2:if(u[0].g.split("/").pop(),y=bh(n.aa,"EXT-X-DISCONTINUITY-SEQUENCE"),e.i&&(s.has(y)||s.set(y,g),m))for(;s.has(y+1)&&s.get(y+1)<g;)y++;k=e.J.get(y)||0,x=[],C=c(re(u)),S=C.next();case 5:if(S.done){L.D(7);break}if(E=S.value,M=E.wa,T=E.item,A=x[x.length-1],j=0==M?v:A.endTime,g=f+m+M,o.set(g,j),h=zh(e,n.g,T.aa,a),!vh(T.aa,"EXT-X-DISCONTINUITY")){L.D(8);break}return y++,s.set(y,g),w(L,function(e,t,n,r,i,o,a,s,l,c,d,u){var h,f;return I(function(p){return 1==p.g?(h=0,e.J.has(t)?(h=e.J.get(t),p.D(2)):w(p,Xh(e,n,r,i,o,!0,a,s,c,d,u),3)):(2!=p.g&&(f=p.h,h=l-f,e.J.set(t,h)),p.return(h))})}(e,y,t,h,i,g,T,a,j,r,l,d),9);case 9:k=L.h;case 8:!e.i&&e.F.isAutoLowLatencyMode()&&(e.F.enableLowLatencyMode(),e.i=e.F.isLowLatencyMode()),O=vh(T.aa,"EXTINF"),e.i||O?(P=Fh(e,h,A,T,j,k,a,n.g,r),x.push(P)):e.i||G("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),S=C.next(),L.D(5);break;case 7:return L.return(x)}})}function Vh(e,t,n,r,i,o){var a,s,l,c,d,u;return I(function(h){switch(h.g){case 1:return a=Pr,s=Ja(t.Ma(),t.Ka,t.Da,e.m.retryParameters),e.F.modifySegmentRequest(s,{type:n,init:t instanceof da,duration:t.endTime-t.startTime,mimeType:r,codecs:i,bandwidth:o}),e.m.hls.useFullSegmentsForStartTime?h.return(Zh(e,s,a)):(l=Ja(t.Ma(),t.Ka,t.Ka+2048-1,e.m.retryParameters),e.F.modifySegmentRequest(l,{type:n,init:t instanceof da,duration:t.endTime-t.startTime,mimeType:r,codecs:i,bandwidth:o}),x(h,2),w(h,Zh(e,l,a),4));case 4:return c=h.h,h.return(c);case 2:if(7001==(d=E(h)).code)throw d;return G("Unable to fetch the starting part of HLS segment! Falling back to a full segment request, which is expensive! Your server should support Range requests and CORS preflights.",l.uris[0]),w(h,Zh(e,s,a),5);case 5:return u=h.h,h.return(u)}})}function Xh(e,t,n,r,i,o,a,s,l,c,d){var u,h,f,p,m,g,v,b;return I(function(y){switch(y.g){case 1:if(u=Fh(e,n,null,a,0,0,s,"",l),e.H&&!o&&(h=e.g.get(t),null!=(f=h.ie.get(i))))return y.return(f);if(r=r.toLowerCase(),Kh.includes(r))throw G("Raw formats are not yet supported. Skipping "+r),new ye(1,4,4035);if("video/webm"==r)throw G("WebM in HLS is not yet supported. Skipping."),new ye(1,4,4035);if("video/mp4"!=r&&"audio/mp4"!=r){y.D(2);break}return p=[Vh(e,u,l,r,c,d)],n&&p.push(Vh(e,n,l,r,c,d)),w(y,Promise.all(p),3);case 3:return m=y.h,g=m[0],v=m[1]||m[0],y.return(function(e,t,n,r){var i=0;if((new Ci).box("moov",Si).box("trak",Si).box("mdia",Si).Z("mdhd",function(e){i=Ho(e.reader,e.version).timescale,e.parser.stop()}).parse(r,!0),!i)throw new ye(2,4,4030,e,t);var o=0,a=!1;if((new Ci).box("moof",Si).box("traf",Si).Z("tfdt",function(e){o=Fo(e.reader,e.version).Xd/i,a=!0,e.parser.stop()}).parse(n,!0),!a)throw new ye(2,4,4030,e,t);return o}(t,g.uri,g.data,v.data));case 2:if("video/mp2t"!=r){y.D(4);break}return w(y,Vh(e,u,l,r,c,d),5);case 5:return b=y.h,y.return(function(e,t,n){function r(){o.seek(a+188),71!=(s=o.ra())&&(o.seek(a+192),s=o.ra()),71!=s&&(o.seek(a+204),s=o.ra()),71!=s&&i(),o.yf(1)}function i(){throw new ye(2,4,4030,e,t)}var o=new wi(n,0),a=0,s=0;for(n=Math.min(o.X.byteLength-188,940);;){if(a=o.qa(),71!=(s=o.ra())){if(0<n){--n;continue}i()}n=0;var l=o.wc();if(8191&~l)if(16384&l){if(0!=(l=(48&o.ra())>>4)&&2!=l||i(),3==l&&(l=o.ra(),o.skip(l)),1==o.T()>>8)return o.skip(3),0!=(n=o.ra()>>6)&&1!=n||i(),0==o.ra()&&i(),(1073741824*((14&(n=o.ra()))>>1)+((65534&(l=o.wc()))<<14|(65534&o.wc())>>1))/9e4;r()}else r();else r()}}(t,b.uri,b.data));case 4:throw new ye(2,4,4030,t)}})}function Gh(e,t){var n=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}"),r=n.match(/{\$\w*}/g);if(r)for(var i=(r=c(r)).next();!i.done;i=r.next()){var o=(i=i.value).slice(2,i.length-1),a=t.get(o);if(!a)throw new ye(2,4,4039,o);n=n.replace(i,a)}return n}function Wh(e,t){var n=Tr([t],e.m.retryParameters);return e.F.modifyManifestRequest(n,{format:"h"}),Zh(e,n,0)}function Jh(e,t){e.j=t,e.h&&e.h.Zc(e.j==_h),e.j!=_h||e.C.stop()}function Zh(e,t,n){if(!e.G)throw new ye(2,7,7001);return t=e.F.networkingEngine.request(n,t),Sr(e.G,t),t.promise}H("shaka.net.DataUriPlugin",Ah),Ah.parse=jh,Mr("data",jh),(r=Ph.prototype).configure=function(e){this.m=e},r.start=function(e,t){var n,r,i=this;return I(function(o){return 1==o.g?(i.F=t,i.i=t.isLowLatencyMode(),w(o,Wh(i,e),2)):3!=o.g?(n=o.h,i.M=n.uri,w(o,function(e,t){var n,r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,C,S,M,T,A,j,O,P,L,N,R,D,B,z,F,H,U,V,X;return I(function(G){switch(G.g){case 1:if(0!=(n=Sh(e.$,t,e.M)).type)throw new ye(2,4,4022);for(r=mh(n.aa,"EXT-X-DEFINE"),function(e,t){for(var n=c(t),r=n.next();!r.done;r=n.next()){var i=r.value;r=uh(i,"NAME"),i=uh(i,"VALUE"),r&&i&&(e.l.has(r)||e.l.set(r,i))}}(e,r),i=mh(n.aa,"EXT-X-MEDIA"),o=mh(n.aa,"EXT-X-STREAM-INF"),a=mh(n.aa,"EXT-X-IMAGE-STREAM-INF"),function(e,t){for(var n=c(t),r=n.next();!r.done;r=n.next()){var i=r.value,o=uh(i,"AUDIO");r=uh(i,"VIDEO");var a=uh(i,"SUBTITLES");if(i=Nh(e,i),a){var s=Le(Ie,i);e.s.set(a,s),rt(i,s)}o&&(a=Pe("audio",i),e.s.set(o,a)),r&&(o=Pe("video",i),e.s.set(r,o))}}(e,o),s=mh(n.aa,"EXT-X-SESSION-DATA"),l=c(s),d=l.next();!d.done;d=l.next())u=d.value,h=uh(u,"DATA-ID"),f=uh(u,"URI"),p=uh(u,"LANGUAGE"),m=uh(u,"VALUE"),g=(new Map).set("id",h),f&&g.set("uri",je([e.M],[f])[0]),p&&g.set("language",p),m&&g.set("value",m),v=new q("sessiondata",g),e.F&&e.F.onEvent(v);return w(G,function(e,t){var n;return I(function(r){return 1==r.g?(t=t.filter(function(e){var t=uh(e,"URI")||"";return"SUBTITLES"!=uh(e,"TYPE")&&""!=t}),t.length?w(r,Dh(e,t[0]),2):r.D(2)):(n=t.slice(1).map(function(t){return Dh(e,t)}),w(r,Promise.all(n),0))})}(e,i),2);case 2:return function(e,t){for(var n=gh(t,"CLOSED-CAPTIONS"),r=(n=c(n)).next();!r.done;r=n.next()){var i=r.value;r=Rh(i);var o=hh(i,"GROUP-ID");i=hh(i,"INSTREAM-ID"),e.L.get(o)||e.L.set(o,new Map),e.L.get(o).set(i,r)}}(e,i),w(G,function(e,t){var n,r,i;return I(function(o){return 1==o.g?(n=t.map(function(t){var n,r,i,o,a,s,l,d;return I(function(u){if(1==u.g)return n=uh(t,"FRAME-RATE"),r=Number(uh(t,"AVERAGE-BANDWIDTH"))||Number(hh(t,"BANDWIDTH")),i=uh(t,"RESOLUTION"),o=c(i?i.split("x"):[null,null]),a=o.next().value,s=o.next().value,l=uh(t,"VIDEO-RANGE"),w(u,function(e,t,n){var r,i,o,a,s,l,d,u,h,f,p,m,g,v;return I(function(b){if(1==b.g)return r=Ne,i=Nh(e,t),o=uh(t,"AUDIO"),a=uh(t,"VIDEO"),l=(s=o||a)&&e.B.has(s)?e.B.get(s):[],d={audio:o?l:[],video:a?l:[]},h=!1,f=hh(t,"URI"),p=d.audio.find(function(e){return e&&e.Fd==f}),m=Le(r.mb,i),(g=Le(r.Nb,i))&&!m?u=r.Nb:!l.length&&g&&m?(u=r.mb,i=[[m,g].join()]):d.audio.length&&p?(u=r.Nb,h=!0):u=d.video.length?r.Nb:r.mb,h?b.D(2):w(b,function(e,t,n,r,i){var o,a,s,l;return I(function(c){if(1==c.g){if(o=Gh(hh(t,"URI"),e.l),e.g.has(o))return c.return(e.g.get(o));var d=uh(t,"CLOSED-CAPTIONS");return a="video"==r&&d&&"NONE"!=d?e.L.get(d):null,s=Pe(r,n),w(c,Bh(e,o,s,r,"und",!1,null,null,a,null,!1,!1,i),2)}return null==(l=c.h)?c.return(null):e.g.has(o)?c.return(e.g.get(o)):(e.g.set(o,l),c.return(l))})}(e,t,i,u,n),3);if(2!=b.g&&(v=b.h),v)d[v.stream.type]=[v];else if(null===v)return b.return(null);return function(e){for(var t=(e=c(e.audio.concat(e.video))).next();!t.done;t=e.next())if(t=t.value){var n=t.stream.codecs.split(",");n=n.filter(function(e){return"mp4a.40.34"!=e}),t.stream.codecs=n.join(",")}}(d),b.return(d)})}(e,t,r),2);if(d=u.h){for(var h=u.return,f=d.audio,p=d.video,m=c(p),g=m.next();!g.done;g=m.next())(g=g.value.stream)&&(g.width=Number(a)||void 0,g.height=Number(s)||void 0,g.frameRate=Number(n)||void 0,g.hdr=l||void 0);for(m=e.m.disableAudio,f.length&&!m||(f=[null]),m=e.m.disableVideo,p.length&&!m||(p=[null]),m=[],g=(f=c(f)).next();!g.done;g=f.next()){g=g.value;for(var v=c(p),b=v.next();!b.done;b=v.next()){var y=b.value;b=g?g.stream:null;var k=y?y.stream:null,x=g?g.stream.drmInfos:null,C=y?y.stream.drmInfos:null;y=(y?y.Fd:"")+" - "+(g?g.Fd:""),b&&k&&x.length&&C.length&&!(0<oi(x,C).length)||e.sa.has(y)||(b={id:e.Aa++,language:b?b.language:"und",primary:!!b&&b.primary||!!k&&k.primary,audio:b,video:k,bandwidth:r,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},m.push(b),e.sa.add(y))}}u=h.call(u,m)}else u=u.return([]);return u})}),w(o,Promise.all(n),2)):(r=o.h,i=(i=r.reduce(Ee,[])).filter(function(e){return null!=e}),o.return(i))})}(e,o),3);case 3:return b=G.h,w(G,function(e,t){var n,r,i,o,a,s,l,d,u,h,f;return I(function(p){if(1==p.g)return n=gh(t,"SUBTITLES"),r=n.map(function(t){var n,r;return I(function(i){if(1==i.g)return e.m.disableText?i.return(null):(x(i,2),w(i,Dh(e,t),4));if(2!=i.g)return n=i.h,i.return(n.stream);if(r=E(i),e.m.hls.ignoreTextStreamFailures)return i.return(null);throw r})}),w(p,Promise.all(r),2);for(i=p.h,o=c(n),a=o.next();!a.done;a=o.next())if(s=a.value,l=hh(s,"GROUP-ID"),(d=e.s.get(l))&&(u=e.B.get(l)))for(h=c(u),f=h.next();!f.done;f=h.next())f.value.stream.codecs=d;return p.return(i.filter(function(e){return e}))})}(e,i),4);case 4:return y=G.h,w(G,function(e,t){var n,r;return I(function(i){return 1==i.g?(n=t.map(function(t){var n,r;return I(function(i){if(1==i.g)return e.m.disableThumbnails?i.return(null):(x(i,2),w(i,function(e,t){var n,r,i,o,a,s,l,c,d,u;return I(function(h){return 1==h.g?(n=Gh(hh(t,"URI"),e.l),r=uh(t,"CODECS","jpeg")||"",e.g.has(n)?h.return(e.g.get(n)):(i=Rh(t),o=uh(t,"NAME"),a=uh(t,"CHARACTERISTICS"),w(h,Bh(e,n,r,"image",i,!1,o,null,null,a,!1,!1),2))):null==(s=h.h)?h.return(null):e.g.has(n)?h.return(e.g.get(n)):((l=uh(t,"RESOLUTION"))&&(c=s.stream.segmentIndex.get(0),(d=c.tilesLayout)&&(s.stream.width=Number(l.split("x")[0])*Number(d.split("x")[0]),s.stream.height=Number(l.split("x")[1])*Number(d.split("x")[1]))),(u=uh(t,"BANDWIDTH"))&&(s.stream.bandwidth=Number(u)),e.g.set(n,s),h.return(s))})}(e,t),4));if(2!=i.g)return n=i.h,i.return(n.stream);if(r=E(i),e.m.hls.ignoreImageStreamFailures)return i.return(null);throw r})}),w(i,Promise.all(n),2)):(r=i.h,i.return(r.filter(function(e){return e})))})}(e,a),5);case 5:if(C=G.h,!e.F)throw new ye(2,7,7001);if(e.Ba&&0==b.length)throw new ye(2,4,4034);for(M=S=1/0,T=c(e.g.values()),A=T.next();!A.done;A=T.next())j=A.value,S=Math.min(S,j.tf),"text"!=j.stream.type&&(M=Math.min(M,j.Rg-j.tf));if(e.j!=_h?(e.h=new ha(0,e.m.defaultPresentationDelay?e.m.defaultPresentationDelay:e.ea?e.ea:3*e.ia),e.h.Zc(!1)):(e.h=new ha(null,0),e.h.Zc(!0)),qh(e),e.j!=_h)e.ka=e.I,O=tf,e.j==O.Se&&(P=e.h.zd,isNaN(e.m.availabilityWindowOverride)||(P=e.m.availabilityWindowOverride),e.h.Ie(P));else for(e.h.ib(M),e.h.offset(-S),L=c(e.g.values()),A=L.next();!A.done;A=L.next())(N=A.value).stream.segmentIndex.offset(-S),N.stream.segmentIndex.Hb(0,M);for(e.S=[],R=[],D=c(b),B=D.next();!B.done;B=D.next())for(z=B.value,F=c([z.video,z.audio]),H=F.next();!H.done;H=F.next())(U=H.value)&&R.push(U);return w(G,Promise.all(R.map(function(e){return I(function(t){return w(t,e.createSegmentIndex(),0)})})),6);case 6:for(V=c(R),H=V.next();!H.done;H=V.next())X=H.value,e.S.push(X.segmentIndex.R);qh(e),e.H={presentationTimeline:e.h,variants:b,textStreams:y,imageStreams:C,offlineSessionIds:[],minBufferTime:0},e.F.makeTextStreamsForClosedCaptions(e.H),k(G)}})}(i,n.data),3)):(0<(r=i.ka)&&i.C.U(r),o.return(i.H))})},r.stop=function(){this.C&&(this.C.stop(),this.C=null);var e=[];return this.G&&(e.push(this.G.destroy()),this.G=null),this.m=this.F=null,this.sa.clear(),this.H=null,this.g.clear(),this.B.clear(),this.s.clear(),this.l.clear(),Promise.all(e)},r.update=function(){var e,t,n,r=this;return I(function(i){if(1==i.g)return r.j==_h?i.return():(e=[],r.P=null,(t=Array.from(r.g.values())).length?w(i,Lh(r,t[0]),2):i.D(2));for(n=1;n<t.length;n++)e.push(Lh(r,t[n]));return w(i,Promise.all(e),0)})},r.onExpirationUpdated=function(){},r.Tc=function(){var e,t,n=this;return I(function(r){return 1==r.g?n.F?(x(r,2),w(r,n.update(),4)):r.return():2!=r.g?(e=n.ka,n.C.U(e),S(r,0)):(t=E(r),n.F?(t.severity=1,n.F.onError(t),n.C.U(.1),void k(r)):r.return())})},H("shaka.hls.HlsParser",Ph);var Kh=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"],Yh={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Qh={"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=hh(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?(t=Oe("com.widevine.alpha",[{initDataType:"cenc",initData:t=Ot((t=Oh(t=hh(e,"URI"))).data)}]),(e=uh(e,"KEYID"))&&(t.keyIds=new Set([e.toLowerCase().substr(2)])),t):null},"com.microsoft.playready":function(e){var t=hh(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?Oe("com.microsoft.playready",[{initDataType:"cenc",initData:e=Ld(e=Ot((e=Oh(e=hh(e,"URI"))).data),t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]))}]):null}},_h="VOD",$h="EVENT",ef="LIVE",tf={Of:_h,Nh:$h,Se:ef};function nf(e,t,n,r,i,o){if(200<=n&&299>=n&&202!=n)return{uri:i||r,vf:r,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};i=null;try{i=qt(t)}catch(a){}throw new ye(401==n||403==n?2:1,1,1001,r,n,i,e,o)}function rf(){}function of(e,t,n,r,i){var o=new uf;Ur(t.headers).forEach(function(e,t){o.append(t,e)});var a=new cf,s={Ve:!1,If:!1};if(e=function(e,t,n,r,i,o,a){var s,l,c,d,u,h,f,p,m,g,v,b;return I(function(y){switch(y.g){case 1:return s=lf,l=df,h=u=0,f=Date.now(),x(y,2),w(y,s(e,n),4);case 4:return c=y.h,o(af(c.headers)),p=c.clone().body.getReader(),g=(m=c.headers.get("Content-Length"))?parseInt(m,10):0,new l({start:function(e){function t(){var n,r;return I(function(o){switch(o.g){case 1:return x(o,2),w(o,p.read(),4);case 4:n=o.h,S(o,3);break;case 2:return E(o),o.return();case 3:if(n.done){o.D(5);break}if(u+=n.value.byteLength,!a){o.D(5);break}return w(o,a(n.value),5);case 5:(100<(r=Date.now())-f||n.done)&&(i(r-f,u-h,g-u),h=u,f=r),n.done?e.close():(e.enqueue(n.value),t()),k(o)}})}t()}}),w(y,c.arrayBuffer(),5);case 5:d=y.h,S(y,3);break;case 2:if(v=E(y),r.Ve)throw new ye(1,1,7001,e,t);if(r.If)throw new ye(1,1,1003,e,t);throw new ye(1,1,1002,e,v,t);case 3:return b=af(c.headers),y.return(nf(b,d,c.status,e,c.url,t))}})}(e,n,{body:t.body||void 0,headers:o,method:t.method,signal:a.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},s,r,i,t.streamDataCallback),e=new mr(e,function(){return s.Ve=!0,a.abort(),Promise.resolve()}),t=t.retryParameters.timeout){var l=new pn(function(){s.If=!0,a.abort()});l.U(t/1e3),e.finally(function(){l.stop()})}return e}function af(e){var t={};return e.forEach(function(e,n){t[n.trim()]=e}),t}function sf(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(Dy){return!1}return!(!e.fetch||!e.AbortController)}yi.m3u8=function(){return new Ph},bi["application/x-mpegurl"]=function(){return new Ph},bi["application/vnd.apple.mpegurl"]=function(){return new Ph},H("shaka.net.HttpFetchPlugin",rf),rf.isSupported=sf,rf.parse=of;var lf=e.fetch,cf=e.AbortController,df=e.ReadableStream,uf=e.Headers;function hf(){}function ff(e,t,n,r,i){var o=new mf,a=Date.now(),s=0;return new mr(new Promise(function(l,c){o.open(t.method,e,!0),o.responseType="arraybuffer",o.timeout=t.retryParameters.timeout,o.withCredentials=t.allowCrossSiteCredentials,o.onabort=function(){c(new ye(1,1,7001,e,n))};var d=!1;for(var u in o.onreadystatechange=function(){if(2==o.readyState&&!d){var e=pf(o);i(e),d=!0}},o.onload=function(){var t=pf(o),r=o.response;try{var i=nf(t,r,o.status,e,o.responseURL,n);l(i)}catch(a){c(a)}},o.onerror=function(t){c(new ye(1,1,1002,e,t,n))},o.ontimeout=function(){c(new ye(1,1,1003,e,n))},o.onprogress=function(e){var t=Date.now();(100<t-a||e.lengthComputable&&e.loaded==e.total)&&(r(t-a,e.loaded-s,e.total-e.loaded),s=e.loaded,a=t)},t.headers)o.setRequestHeader(u.toLowerCase(),t.headers[u]);o.send(t.body)}),function(){return o.abort(),Promise.resolve()})}function pf(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=c(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}sf()&&(Mr("http",of,2,!0),Mr("https",of,2,!0),Mr("blob",of,2,!0)),H("shaka.net.HttpXHRPlugin",hf),hf.parse=ff;var mf=e.XMLHttpRequest;function gf(e,t,n,r){this.g=e,this.i=t,this.groupId=n,this.h=r}function vf(e){return e.Ma().map(function(e){return"{"+encodeURI(e)+"}"}).join("")+":"+e.Ka+":"+e.Da}function bf(e,t){return Ja(e.g.Ma(),e.g.Ka,e.g.Da,t.streaming.retryParameters)}function yf(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function wf(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function kf(e){var t=this;this.V=e,this.g=new Map,this.N=new Nr(function(){return xf(t).catch(function(){})}),this.h=[],this.Lf=function(){},this.Jf=function(){},this.fc=new yf}function xf(e){var t=e.h.map(function(e){return e()});return e.h=[],Promise.all(t)}function Cf(e,t,n,r,i,o){Rr(e.N);var a=(e.g.get(t)||Promise.resolve()).then(function(){var t,a,s,l,c,d,u;return I(function(h){if(1==h.g)return w(h,function(e,t){var n,r,i,o;return I(function(a){return 1==a.g?(n=Pr,r=e.V.request(n,t),i=function(){return r.abort()},e.h.push(i),w(a,r.promise,2)):(o=a.h,rt(e.h,i),a.return(o.data))})}(e,n),2);if(t=h.h,e.N.g)throw new ye(2,9,7001);if(i)for(l in a=Ot(t),(s=new Pd(a)).data)c=Number(l),d=s.data[c],u=s.g[c],e.Jf(d,u);e.fc.close(r,t.byteLength);var f=e.fc;return e.Lf(0==f.i?0:f.j/f.i,e.fc.h),h.return(o(t))})});e.g.set(t,a)}function Sf(e,t,n){Rr(e.N);var r=(e.g.get(t)||Promise.resolve()).then(function(){return I(function(e){return w(e,n(),0)})});e.g.set(t,r)}function Ef(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new Dt,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function Mf(e,t){return new Promise(function(n,r){var i=e.h.openCursor();i.onerror=r,i.onsuccess=function(){var e;return I(function(r){if(1==r.g)return null==i.result?(n(),r.return()):(e=i.result,w(r,t(e.key,e.value,e),2));e.continue(),k(r)})}})}function Tf(e){this.h=e,this.g=[]}function Af(e,t){return jf(e,t,"readwrite")}function jf(e,t,n){var r=new Ef(n=e.h.transaction([t],n),t);return e.g.push(r),r.promise().then(function(){rt(e.g,r)},function(){rt(e.g,r)}),r}function Of(e,t,n){this.h=new Tf(e),this.i=t,this.g=n}function Pf(e){return Promise.reject(new ye(2,9,9011,"Cannot add new value to "+e))}function Lf(e,t,n,r){t=(e=Af(e.h,t)).store();for(var i={},o=(n=c(n)).next();!o.done;i={ed:i.ed},o=n.next())i.ed=o.value,t.delete(i.ed).onsuccess=function(e){return function(){return r(e.ed)}}(i);return e.promise()}function If(e,t,n){var r,i,o,a,s,l,d;return I(function(u){if(1==u.g){for(r=jf(e.h,t,"readonly"),i=r.store(),o={},a=[],s={},l=c(n),d=l.next();!d.done;s={Ec:s.Ec,Ac:s.Ac},d=l.next())s.Ac=d.value,s.Ec=i.get(s.Ac),s.Ec.onsuccess=function(e){return function(){null==e.Ec.result&&a.push(e.Ac),o[e.Ac]=e.Ec.result}}(s);return w(u,r.promise(),2)}if(a.length)throw new ye(2,9,9012,"Could not find values for "+a);return u.return(n.map(function(e){return o[e]}))})}function Nf(e){this.g=new Tf(e)}function Rf(){this.g=new Map}function Df(e){var t=null;if(e.g.forEach(function(e,n){e.getCells().forEach(function(e,r){e.hasFixedKeySpace()||t||(t={path:{Ya:n,oa:r},oa:e})})}),t)return t;throw new ye(2,9,9013,"Could not find a cell that supports add-operations")}function Bf(e,t,n){if(!(e=e.g.get(t)))throw new ye(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new ye(2,9,9013,"Could not find cell with name "+n);return t}function zf(e,t){Ff.set(e,t)}Mr("http",ff,1,!0),Mr("https",ff,1,!0),Mr("blob",ff,1,!0),yf.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},kf.prototype.destroy=function(){return this.N.destroy()},Ef.prototype.abort=function(){var e=this;return I(function(t){if(1==t.g){try{e.i.abort()}catch(n){}return x(t,2),w(t,e.g,4)}if(2!=t.g)return S(t,0);E(t),k(t)})},Ef.prototype.store=function(){return this.h},Ef.prototype.promise=function(){return this.g},Tf.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))},(r=Of.prototype).destroy=function(){return this.h.destroy()},r.hasFixedKeySpace=function(){return!0},r.addSegments=function(){return Pf(this.i)},r.removeSegments=function(e,t){return Lf(this,this.i,e,t)},r.getSegments=function(e){var t,n=this;return I(function(r){return 1==r.g?w(r,If(n,n.i,e),2):(t=r.h,r.return(t.map(function(e){return n.Ye(e)})))})},r.addManifests=function(){return Pf(this.g)},r.updateManifest=function(){return Promise.reject(new ye(2,9,9016,"Cannot modify values in "+this.g))},r.updateManifestExpiration=function(e,t){var n=Af(this.h,this.g),r=n.store();return r.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,r.put(n,e))},n.promise()},r.removeManifests=function(e,t){return Lf(this,this.g,e,t)},r.getManifests=function(e){var t,n=this;return I(function(r){return 1==r.g?w(r,If(n,n.g,e),2):(t=r.h,r.return(Promise.all(t.map(function(e){return n.Jc(e)}))))})},r.getAllManifests=function(){var e,t,n=this;return I(function(r){return 1==r.g?(e=jf(n.h,n.g,"readonly"),t=new Map,w(r,Mf(e,function(e,r){var i;return I(function(o){if(1==o.g)return w(o,n.Jc(r),2);i=o.h,t.set(e,i),k(o)})}),2)):3!=r.g?w(r,e.promise(),3):r.return(t)})},r.Ye=function(e){return e},r.Jc=function(e){return Promise.resolve(e)},r.add=function(e,t){var n,r,i,o,a,s,l,d=this;return I(function(u){if(1==u.g){for(n=Af(d.h,e),r=n.store(),i=[],o={},a=c(t),s=a.next();!s.done;o={fd:o.fd},s=a.next())l=s.value,o.fd=r.add(l),o.fd.onsuccess=function(e){return function(){i.push(e.fd.result)}}(o);return w(u,n.promise(),2)}return u.return(i)})},Nf.prototype.destroy=function(){return this.g.destroy()},Nf.prototype.getAll=function(){var e,t,n=this;return I(function(r){return 1==r.g?(e=jf(n.g,"session-ids","readonly"),t=[],w(r,Mf(e,function(e,n){t.push(n)}),2)):3!=r.g?w(r,e.promise(),3):r.return(t)})},Nf.prototype.add=function(e){for(var t=Af(this.g,"session-ids"),n=t.store(),r=(e=c(e)).next();!r.done;r=e.next())n.add(r.value);return t.promise()},Nf.prototype.remove=function(e){var t,n=this;return I(function(r){return 1==r.g?w(r,Mf(t=Af(n.g,"session-ids"),function(t,n,r){e.includes(n.sessionId)&&r.delete()}),2):w(r,t.promise(),0)})},Rf.prototype.destroy=function(){for(var e=[],t=c(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},Rf.prototype.init=function(){var e=this;Ff.forEach(function(t,n){var r=t();r&&e.g.set(n,r)});for(var t=[],n=c(this.g.values()),r=n.next();!r.done;r=n.next())t.push(r.value.init());return Promise.all(t)},H("shaka.offline.StorageMuxer",Rf),Rf.unregister=function(e){Ff.delete(e)},Rf.register=zf,Rf.prototype.destroy=Rf.prototype.destroy;var Ff=new Map;function Hf(){Of.apply(this,arguments)}function qf(e,t){!function(e){var t=e.streams.filter(function(e){return"audio"==e.contentType});if(e=e.streams.filter(function(e){return"video"==e.contentType}),!t.every(function(e){return e.variantIds})||!e.every(function(e){return e.variantIds})){for(var n=c(t),r=n.next();!r.done;r=n.next())r.value.variantIds=[];for(r=(n=c(e)).next();!r.done;r=n.next())r.value.variantIds=[];if(n=0,e.length&&!t.length){var i=n++,o=c(e);for(r=o.next();!r.done;r=o.next())r.value.variantIds.push(i)}if(!e.length&&t.length)for(i=n++,r=(o=c(t)).next();!r.done;r=o.next())r.value.variantIds.push(i);if(e.length&&t.length)for(r=(t=c(t)).next();!r.done;r=t.next())for(r=r.value,o=(i=c(e)).next();!o.done;o=i.next()){o=o.value;var a=n++;r.variantIds.push(a),o.variantIds.push(a)}}}(e);for(var n=c(e.streams),r=n.next();!r.done;r=n.next());return e.streams.map(function(n){return function(e,t,n){var r=e.initSegmentUri?Uf(e.initSegmentUri):null,i=t+e.presentationTimeOffset,o=t+n;return{id:e.id,originalId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,initSegmentKey:r,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map(function(e){var n=Uf(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:r,appendWindowStart:t,appendWindowEnd:o,timestampOffset:i,tilesLayout:""}}),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}(n,e.startTime,t)})}function Uf(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new ye(2,9,9004,"Could not parse uri "+e)}function Vf(){Of.apply(this,arguments)}function Xf(e,t,n){return{id:e.id,originalId:e.originalId,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map(function(r){return{startTime:t+r.startTime,endTime:t+r.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:r.dataKey,tilesLayout:""}}),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}function Gf(){Of.apply(this,arguments)}function Wf(){this.s=this.j=this.i=this.h=this.g=this.l=null}function Jf(e,t,n,r){this.g=e,this.i=t,this.h=n,this.l=r,this.j=["offline:",e,"/",t,"/",n,"/",r].join("")}function Zf(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var r=e[3];return r&&null!=t?new Jf(t,n,r,Number(e[4])):null}function Kf(e,t){this.h=e,this.g=t}function Yf(e,t){var n=new ha(null,0);n.ib(t.duration);var r=t.streams.filter(function(e){return"audio"==e.type}),i=t.streams.filter(function(e){return"video"==e.type});r=function(e,t,n,r){for(var i=new Set,o=c(t),a=o.next();!a.done;a=o.next()){var s=c(a.value.variantIds);for(a=s.next();!a.done;a=s.next())i.add(a.value)}for(o=c(n),a=o.next();!a.done;a=o.next())for(s=c(a.value.variantIds),a=s.next();!a.done;a=s.next())i.add(a.value);for(o=new Map,i=c(i),a=i.next();!a.done;a=i.next())a=a.value,o.set(a,{id:a,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=c(t),i=t.next();!i.done;i=t.next())for(i=i.value,a=Qf(e,i,r),s=c(i.variantIds),i=s.next();!i.done;i=s.next())(i=o.get(i.value)).language=a.language,i.primary=i.primary||a.primary,i.audio=a;for(n=c(n),t=n.next();!t.done;t=n.next())for(i=t.value,t=Qf(e,i,r),a=c(i.variantIds),i=a.next();!i.done;i=a.next())(i=o.get(i.value)).primary=i.primary||t.primary,i.video=t;return o}(e,r,i,n),i=t.streams.filter(function(e){return e.type==Ie}).map(function(t){return Qf(e,t,n)});var o=t.streams.filter(function(e){return"image"==e.type}).map(function(t){return Qf(e,t,n)}),a=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=c(r.values()),l=s.next();!l.done;l=s.next())(l=l.value).audio&&l.audio.encrypted&&(l.audio.drmInfos=a),l.video&&l.video.encrypted&&(l.video.drmInfos=a);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(r.values()),textStreams:i,imageStreams:o}}function Qf(e,t,n){var r=t.segments.map(function(t){return function(e,t){var n=new Jf("segment",e.h,e.g,t.dataKey);return new ua(t.startTime,t.endTime,function(){return[n.toString()]},0,null,null!=t.initSegmentKey?function(e,t){var n=new Jf("segment",e.h,e.g,t);return new da(function(){return[n.toString()]},0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||"")}(e,t)});return n.tc(r),{id:t.id,originalId:t.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new La(r),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout}}function _f(){this.g=null}function $f(){}function ep(e){var t=Zf(e);return e=t&&"manifest"==t.g?br(e={uri:e,vf:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):t&&"segment"==t.g?function(e,t){var n=new Rf;return br(void 0).va(function(){return n.init()}).va(function(){return Bf(n,t.Ya(),t.oa())}).va(function(e){return e.getSegments([t.key()])}).va(function(e){return{uri:t,data:e[0].data,headers:{}}}).finally(function(){return n.destroy()})}(t.key(),t):gr(new ye(2,1,9004,e))}function tp(e,t,n){var r,i,o,a,s,l;return I(function(d){switch(d.g){case 1:r=[];for(var u=[],h=c(n),f=h.next();!f.done;f=h.next()){f=f.value;for(var p=!1,m=c(u),g=m.next();!g.done;g=m.next())if(np((g=g.value).info,f)){g.sessionIds.push(f.sessionId),p=!0;break}p||u.push({info:f,sessionIds:[f.sessionId]})}i=c(u),o=i.next();case 2:if(o.done){d.D(4);break}return a=o.value,s=function(e,t,n){var r,i;return I(function(o){switch(o.g){case 1:return r=new Gr({Wb:t,onError:function(){},wd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),x(o,2),r.configure(e),w(o,function(e,t,n,r,i,o){var a=new Map;return(i={audioCapabilities:i,videoCapabilities:o,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:r,serverCertificateUri:"",initData:null,keyIds:null}],a.set(t,i),$r(e,a,[])}(r,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:S(o,3);break;case 2:return E(o),w(o,r.destroy(),5);case 5:case 9:return o.return([]);case 3:return x(o,6),w(o,Zr(r),8);case 8:S(o,7);break;case 6:return E(o),w(o,r.destroy(),9);case 7:return i=[],w(o,Promise.all(n.sessionIds.map(function(e){return I(function(t){return 1==t.g?(x(t,2),w(t,function(e,t){var n,r,i;return I(function(o){return 1==o.g?w(o,ei(e,t),2):3!=o.g?(n=o.h)?(r=[],(i=e.j.get(n))&&(i.jb=new Dt,r.push(i.jb)),r.push(n.remove()),w(o,Promise.all(r),3)):o.return():(e.j.delete(n),void k(o))})}(r,e),4)):2!=t.g?(i.push(e),S(t,0)):(E(t),void k(t))})})),10);case 10:return w(o,r.destroy(),11);case 11:return o.return(i)}})}(e,t,a),w(d,s,5);case 5:l=d.h,r=r.concat(l),o=i.next(),d.D(2);break;case 4:return d.return(r)}})}function np(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&it(e.audioCapabilities,t.audioCapabilities,n)&&it(e.videoCapabilities,t.videoCapabilities,n)}function rp(e,t){var n=Yf(new Kf(e.Ya(),e.oa()),t),r=t.appMetadata||{};return n=ip(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:r,isIncomplete:t.isIncomplete||!1}}function ip(e){for(var t=[],n=function(e){return e.filter(function(e){return Xn(e)})}(e.variants),r=(n=c(n)).next();!r.done;r=n.next())t.push(Bn(r.value));for(n=(e=c(e.textStreams)).next();!n.done;n=e.next())t.push(zn(n.value));return t}function op(){this.g={}}function ap(e,t){var n=t.audio,r=t.video;if(n&&!r&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&r&&(e.g[r.id]=r.bandwidth||t.bandwidth),n&&r){var i=n.bandwidth||393216,o=r.bandwidth||t.bandwidth-i;0>=o&&(o=t.bandwidth),e.g[n.id]=i,e.g[r.id]=o}}function sp(e,t){e.g[t.id]=t.bandwidth||2048}function lp(e,t){var n=e.g[t];return null==n&&(n=0),n}function cp(){this.h=[],this.g=this.i=0}function dp(e){var t=this;if(e&&e.constructor!=_s)throw new ye(2,9,9008);this.V=this.m=null,e?(this.m=e.m,this.V=e.Mc()):(this.m=Xs(),this.V=new Er),this.Uc=[],this.re=[];var n=!e;this.N=new Nr(function(){var e,r,i,o,a;return I(function(s){switch(s.g){case 1:return w(s,Promise.all(t.re.map(function(e){return xf(e)})),2);case 2:for(e=function(){},r=[],i=c(t.Uc),o=i.next();!o.done;o=i.next())a=o.value,r.push(a.then(e,e));return w(s,Promise.all(r),3);case 3:if(!n){s.D(4);break}return w(s,t.V.destroy(),4);case 4:t.m=null,t.V=null,k(s)}})})}function up(){if(mn())e:{for(var e=c(Ff.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function hp(e){var t,n,r;return I(function(i){switch(i.g){case 1:return w(i,(t=new Rf).init(),2);case 2:return w(i,Df(t),3);case 3:return n=i.h,r=new Jf("manifest",n.path.Ya,n.path.oa,e),w(i,t.destroy(),4);case 4:return w(i,(new dp).remove(r.toString()),0)}})}function fp(e,t,n,r){var i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,k,C;return I(function(S){switch(S.g){case 1:return i=new Rf,o=vf(t),a=!1,u=0,x(S,2,3),w(S,i.init(),5);case 5:return w(S,Df(i),6);case 6:return w(S,(l=S.h).oa.addSegments([n]),7);case 7:return h=S.h,s=h[0],r(),w(S,function(){var e,t=Sp;return I(function(n){return 1==n.g?(e=++t.i,t.g?w(n,new Promise(function(n){t.h.push(function(){t.g=e,n()})}),2):(t.g=e,n.D(2))):n.return(e)})}(),8);case 8:return u=S.h,r(),w(S,l.oa.getManifests([e]),9);case 9:for(f=S.h,r(),d=f[0],p=!0,m=c(d.streams),g=m.next();!g.done;g=m.next())for(v=g.value,b=c(v.segments),y=b.next();!y.done;y=b.next())(k=y.value).pendingSegmentRefId==o&&(k.dataKey=s,k.pendingSegmentRefId=void 0),k.pendingInitSegmentRefId==o&&(k.initSegmentKey=s,k.pendingInitSegmentRefId=void 0),k.pendingSegmentRefId&&(p=!1),k.pendingInitSegmentRefId&&(p=!1);return d.size+=n.data.byteLength,p&&(d.isIncomplete=!1),w(S,l.oa.updateManifest(e,d),10);case 10:a=!0,r();case 3:return M(S),w(S,i.destroy(),11);case 11:Sp.release(u),T(S,4);break;case 2:return C=E(S),w(S,hp(e),12);case 12:if(!l||a||!s){S.D(13);break}return w(S,l.oa.removeSegments([s],function(){}),13);case 13:throw C;case 4:return S.return(d)}})}function pp(e){return e.variants.some(function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t})}function mp(e){return e.variants.some(function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some(function(e){return e.initData&&e.initData.length})})}function gp(e,t){for(var n=[],r=c(e.streams),i=r.next();!i.done;i=r.next())i=i.value,t&&"video"==i.type?n.push({contentType:nn(i.mimeType,i.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=i.type||n.push({contentType:nn(i.mimeType,i.codecs),robustness:e.drmInfo.audioRobustness});return n}function vp(e,t,n){return I(function(r){return w(r,function(e,t,n,r){var i,o,a;return I(function(s){return 1==s.g?r.drmInfo?(i=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new ye(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),o=r.sessionIds.map(function(e){return{sessionId:e,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:gp(r,!1),videoCapabilities:gp(r,!0)}}),w(s,tp(t,e,o),2)):s.return():3!=s.g?(a=s.h,w(s,i.remove(a),3)):w(s,i.add(o.filter(function(e){return!a.includes(e.sessionId)})),0)})}(e.V,e.m.drm,n,t),0)})}function bp(e,t,n){function r(){}var i=function(e){for(var t=new Set,n=(e=c(e.streams)).next();!n.done;n=e.next())for(var r=(n=c(n.value.segments)).next();!r.done;r=n.next())null!=(r=r.value).initSegmentKey&&t.add(r.initSegmentKey),t.add(r.dataKey);return Array.from(t)}(n);return rp(t,n),Promise.all([e.removeSegments(i,r),e.removeManifests([t.key()],r)])}function yp(e,t,n,r,i){var o={id:r.id,originalId:r.originalId,primary:r.primary,type:r.type,mimeType:r.mimeType,codecs:r.codecs,frameRate:r.frameRate,pixelAspectRatio:r.pixelAspectRatio,hdr:r.hdr,kind:r.kind,language:r.language,label:r.label,width:r.width||null,height:r.height||null,encrypted:r.encrypted,keyIds:r.keyIds,segments:[],variantIds:[],roles:r.roles,forced:r.forced,channelsCount:r.channelsCount,audioSamplingRate:r.audioSamplingRate,spatialAudio:r.spatialAudio,closedCaptions:r.closedCaptions,tilesLayout:r.tilesLayout};return function(e,t,n){if(null!=(t=e.segmentIndex.find(t)))for(var r=e.segmentIndex.get(t);r;)n(r),r=e.segmentIndex.get(++t)}(r,n.presentationTimeline.ub(),function(n){var a=vf(n),s=void 0;if(!i.has(a)){var l=n.endTime-n.startTime;l=lp(t,r.id)*l,l=wf(e.fc,l),i.set(a,new gf(n,l,r.id,!1))}n.g&&(s=vf(n.g),i.has(s)||(l=.5*lp(t,r.id),l=wf(e.fc,l),i.set(s,new gf(n.g,l,r.id,!0)))),o.segments.push({pendingInitSegmentRefId:s,initSegmentKey:s?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:a,dataKey:0})}),o}function wp(e){if(e.N.g)throw new ye(2,9,7001)}function kp(){if(!up())throw new ye(2,9,9e3)}function xp(e,t){return I(function(n){return 1==n.g?(e.Uc.push(t),C(n),w(n,t,4)):2!=n.g?n.return(n.h):(M(n),rt(e.Uc,t),T(n,0))})}function Cp(e){for(var t=new Set,n=c(e.textStreams),r=n.next();!r.done;r=n.next())t.add(r.value);for(r=(n=c(e.imageStreams)).next();!r.done;r=n.next())t.add(r.value);for(n=(e=c(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}g(Hf,Of),Hf.prototype.updateManifestExpiration=function(e,t){var n,r,i,o=this;return I(function(a){return n=Af(o.h,o.g),r=n.store(),i=new Dt,r.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,r.put(n),i.resolve()):i.reject(new ye(2,9,9012,"Could not find values for "+e))},w(a,Promise.all([n.promise(),i]),0)})},Hf.prototype.Jc=function(e){var t,n,r,i,o,a;return I(function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n)r=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=r-e.periods[n].startTime,o=qf(e.periods[n],i),t.push(o);return w(s,ju(t),2)}return a=s.h,s.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:a,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata})})},Hf.prototype.Ye=function(e){return{data:e.data}},g(Vf,Of),Vf.prototype.Jc=function(e){var t,n,r,i,o,a;return I(function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n){r=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,i=r-e.periods[n].startTime;for(var l=e.periods[n],d=[],u=c(l.streams),h=u.next();!h.done;h=u.next())0!=(h=h.value).variantIds.length&&d.push(Xf(h,l.startTime,l.startTime+i));o=d,t.push(o)}return w(s,ju(t),2)}return a=s.h,s.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:a})})},g(Gf,Of),(r=Gf.prototype).hasFixedKeySpace=function(){return!1},r.addSegments=function(e){return this.add(this.i,e)},r.addManifests=function(e){return this.add(this.g,e)},r.updateManifest=function(e,t){return function(e,t,n){var r=(e=Af(e.h,e.g)).store();return r.get(t).onsuccess=function(){r.put(n,t)},e.promise()}(this,e,t)},r.Jc=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(r=Wf.prototype).init=function(){var t=this,n=new Dt,r=e.indexedDB.open("shaka_offline_db",5);return r.onsuccess=function(){var e=r.result;t.l=e;var i=e.objectStoreNames;i=i.contains("manifest")&&i.contains("segment")?new Hf(e,"segment","manifest"):null,t.g=i,i=(i=e.objectStoreNames).contains("manifest-v2")&&i.contains("segment-v2")?new Vf(e,"segment-v2","manifest-v2"):null,t.h=i,i=(i=e.objectStoreNames).contains("manifest-v3")&&i.contains("segment-v3")?new Vf(e,"segment-v3","manifest-v3"):null,t.i=i,i=(i=e.objectStoreNames).contains("manifest-v5")&&i.contains("segment-v5")?new Gf(e,"segment-v5","manifest-v5"):null,t.j=i,e=e.objectStoreNames.contains("session-ids")?new Nf(e):null,t.s=e,n.resolve()},r.onupgradeneeded=function(){for(var e=r.result,t=c(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},r.onerror=function(e){n.reject(new ye(2,9,9001,r.error)),e.preventDefault()},n},r.destroy=function(){var e=this;return I(function(t){switch(t.g){case 1:if(!e.g){t.D(2);break}return w(t,e.g.destroy(),2);case 2:if(!e.h){t.D(4);break}return w(t,e.h.destroy(),4);case 4:if(!e.i){t.D(6);break}return w(t,e.i.destroy(),6);case 6:if(!e.j){t.D(8);break}return w(t,e.j.destroy(),8);case 8:if(!e.s){t.D(10);break}return w(t,e.s.destroy(),10);case 10:e.l&&e.l.close(),k(t)}})},r.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},r.getEmeSessionCell=function(){return this.s},r.erase=function(){var t=this;return I(function(n){switch(n.g){case 1:if(!t.g){n.D(2);break}return w(n,t.g.destroy(),2);case 2:if(!t.h){n.D(4);break}return w(n,t.h.destroy(),4);case 4:if(!t.i){n.D(6);break}return w(n,t.i.destroy(),6);case 6:if(!t.j){n.D(8);break}return w(n,t.j.destroy(),8);case 8:return t.l&&t.l.close(),w(n,function(){var t=new Dt,n=e.indexedDB.deleteDatabase("shaka_offline_db");return n.onblocked=function(){},n.onsuccess=function(){t.resolve()},n.onerror=function(e){t.reject(new ye(2,9,9001,n.error)),e.preventDefault()},t}(),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,w(n,t.init(),0)}})},zf("idb",function(){return bn()||!e.indexedDB?null:new Wf}),Jf.prototype.Ya=function(){return this.i},Jf.prototype.oa=function(){return this.h},Jf.prototype.key=function(){return this.l},Jf.prototype.toString=function(){return this.j},(r=_f.prototype).configure=function(){},r.start=function(e,t){var n,r,i,o,a,s,l=this;return I(function(c){switch(c.g){case 1:if(n=Zf(e),l.g=n,null==n||"manifest"!=n.g)throw new ye(2,1,9004,e);return r=new Rf,C(c),w(c,r.init(),4);case 4:return w(c,Bf(r,n.Ya(),n.oa()),5);case 5:return w(c,c.h.getManifests([n.key()]),6);case 6:return i=c.h,o=i[0],a=new Kf(n.Ya(),n.oa()),s=Yf(a,o),t.makeTextStreamsForClosedCaptions(s),c.return(s);case 2:return M(c),w(c,r.destroy(),7);case 7:T(c,0)}})},r.stop=function(){return Promise.resolve()},r.update=function(){},r.onExpirationUpdated=function(e,t){var n,r,i,o,a,s,l,c=this;return I(function(d){switch(d.g){case 1:return n=c.g,r=new Rf,x(d,2,3),w(d,r.init(),5);case 5:return w(d,Bf(r,n.Ya(),n.oa()),6);case 6:return w(d,(i=d.h).getManifests([n.key()]),7);case 7:if(o=d.h,a=o[0],s=a.sessionIds.includes(e),l=null==a.expiration||a.expiration>t,!s||!l){d.D(3);break}return w(d,i.updateManifestExpiration(n.key(),t),3);case 3:return M(d),w(d,r.destroy(),10);case 10:T(d,0);break;case 2:E(d),d.D(3)}})},bi["application/x-offline-manifest"]=function(){return new _f},H("shaka.offline.OfflineScheme",$f),$f.plugin=ep,Mr("offline",ep),cp.prototype.release=function(e){e==this.g&&(this.g=0,0<this.h.length&&this.h.shift()())},(r=dp.prototype).destroy=function(){return this.N.destroy()},r.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=Us(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ke("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),Gs(this.m,e)},r.getConfiguration=function(){var e=Xs();return Gs(e,this.m,Xs()),e},r.Mc=function(){return this.V},r.store=function(e,t,n){var r=this,i=this.getConfiguration(),o=new kf(this.V);this.re.push(o),t=function(e,t,n,r,i,o){var a,s,l,d,u,h,f,p,m,g,v,b,y;return I(function(C){switch(C.g){case 1:return kp(),s=a=null,l=new Rf,h=u=d=null,x(C,2,3),w(C,r(),5);case 5:return a=C.h,w(C,function(e,t,n,r){var i,o,a,s,l;return I(function(c){if(1==c.g)return i=null,o=e.V,a={networkingEngine:o,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){i=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},n.configure(r.manifest),wp(e),w(c,n.start(t,a),2);if(3!=c.g)return s=c.h,wp(e),l=Cp(s),w(c,Promise.all(ee(l,function(e){return e.createSegmentIndex()})),3);if(wp(e),i)throw i;return c.return(s)})}(e,t,a,i),6);case 6:if(f=C.h,wp(e),f.presentationTimeline.W()||f.presentationTimeline.Tb())throw new ye(2,9,9005,t);return w(C,function(e,t,n,r){var i;return I(function(o){switch(o.g){case 1:return(i=new Gr({Wb:e.V,onError:n,wd:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(r.drm),w(o,function(e,t,n){return e.ia=!0,e.C=[],e.L=n,Jr(e,t)}(i,t.variants,r.offline.usePersistentLicense),2);case 2:return w(o,Zr(i),3);case 3:return w(o,Kr(i),4);case 4:return o.return(i)}})}(e,f,function(e){h=h||e},i),7);case 7:if(s=C.h,wp(e),h)throw h;return w(C,function(e,t){var n,r,i,o,a,s,l,d,u,h,f,p,m,g,v,b,y,C,M,T,A,j,O,P,L,N,R,D;return I(function(I){switch(I.g){case 1:return n={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter(function(e){return An(e,t,n)})}(e,t.restrictions,n),w(I,On(e,t.offline.usePersistentLicense),2);case 2:for(r=[],i=t.preferredAudioChannelCount,o=t.preferredDecodingAttributes,a=t.preferredVideoCodecs,s=t.preferredAudioCodecs,En(e,a,s,i,o),l=c(e.variants),d=l.next();!d.done;d=l.next())u=d.value,r.push(Bn(u));for(h=c(e.textStreams),f=h.next();!f.done;f=h.next())p=f.value,r.push(zn(p));for(m=c(e.imageStreams),g=m.next();!g.done;g=m.next())v=g.value,r.push(Fn(v));return w(I,t.offline.trackSelectionCallback(r),3);case 3:for(b=I.h,y=e.presentationTimeline.getDuration(),C=0,M=c(b),T=M.next();!T.done;T=M.next())A=T.value,j=A.bandwidth*y/8,C+=j;return x(I,4),w(I,t.offline.downloadSizeCallback(C),6);case 6:if(!I.h)throw new ye(2,9,9014);S(I,5);break;case 4:if((O=E(I))instanceof ye)throw O;throw new ye(2,9,9015);case 5:for(P=new Set,L=new Set,N=new Set,R=c(b),T=R.next();!T.done;T=R.next())"variant"==(D=T.value).type&&P.add(D.id),"text"==D.type&&L.add(D.id),"image"==D.type&&N.add(D.id);e.variants=e.variants.filter(function(e){return P.has(e.id)}),e.textStreams=e.textStreams.filter(function(e){return L.has(e.id)}),e.imageStreams=e.imageStreams.filter(function(e){return N.has(e.id)}),function(e){e.variants.map(function(e){return e.video});var t=new Set(e.variants.map(function(e){return e.audio}));e=e.textStreams;for(var n=c(t),r=n.next();!r.done;r=n.next())for(var i=(r=c(t)).next();!i.done;i=r.next());for(t=c(e),n=t.next();!n.done;n=t.next())for(n=c(e),r=n.next();!r.done;r=n.next());}(e),k(I)}})}(f,i),8);case 8:return w(C,l.init(),9);case 9:return wp(e),w(C,Df(l),10);case 10:return d=C.h,wp(e),p=function(e,t,n,r,i,o){var a=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=ip(t),appMetadata:n,isIncomplete:!1}}(n,t,r),s=i.offline.progressCallback;!function(e,t,n){e.Lf=t,e.Jf=n}(o,function(e,t){a.size=t,s(a,e)},function(t,n){l&&i.offline.usePersistentLicense&&d==n&&Yr(e,"cenc",t)});var l=pp(t)&&!mp(t),d=null;l&&(d=Ep.get(e.i.keySystem));for(var u=new op,h=c(t.textStreams),f=h.next();!f.done;f=h.next())u.g[f.value.id]=52;for(h=c(t.imageStreams),f=h.next();!f.done;f=h.next())sp(u,f.value);for(f=c(t.variants),h=f.next();!h.done;h=f.next())ap(u,h.value);return u=function(e,t,n){for(var r=new Map,i=Cp(n),o=new Map,a=(i=c(i)).next();!a.done;a=i.next()){var s=yp(e,t,n,a=a.value,r);o.set(a.id,s)}for(e=c(n.variants),t=e.next();!t.done;t=e.next())(t=t.value).audio&&o.get(t.audio.id).variantIds.push(t.id),t.video&&o.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(o.values()),Me:Array.from(r.values())}}(o,u,t),o=u.streams,u=u.Me,f=e.i,h=i.offline.usePersistentLicense,f&&h&&(f.initData=[]),{Pg:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.Lc(),streams:o,sessionIds:h?_r(e):[],drmInfo:f,appMetadata:r,isIncomplete:!0},Me:u}}(s,f,t,n,i,o),m=p.Pg,g=p.Me,w(C,d.oa.addManifests([m]),11);case 11:if(v=C.h,wp(e),u=v[0],wp(e),h)throw h;return w(C,function(e,t,n,r,i,o,a,s,l){var d,u;return I(function(h){switch(h.g){case 1:if(d=function(t,d){var u,h,f,p,m,g,v,b;return I(function(y){if(1==y.g){for(u=function(){wp(e)},h={},f=c(t),p=f.next();!p.done;h={bd:h.bd,Ab:h.Ab},p=f.next())h.Ab=p.value,h.bd=void 0,m=bf(h.Ab,o),g=h.Ab.i,v=h.Ab.h,b=function(e){return function(t){return e.bd=t,Promise.resolve()}}(h),Cf(i,h.Ab.groupId,m,g,v,b),Sf(i,h.Ab.groupId,function(e){return function(){var t;return I(function(i){if(1==i.g)return t=e.Ab.g,w(i,fp(n,t,{data:e.bd},u),2);r=i.h||r,k(i)})}}(h));return w(y,function(e){return I(function(t){return 1==t.g?w(t,Promise.all(e.g.values()),2):t.return(e.fc.h)})}(i),2)}return d?(wp(e),function(e,t,n,r){if(t.expiration=n.Lc(),n=_r(n),t.sessionIds=r.offline.usePersistentLicense?n:[],pp(e)&&r.offline.usePersistentLicense&&!n.length)throw new ye(2,9,9007)}(s,r,l,o),w(y,a.updateManifest(n,r),0)):y.D(0)})},u=!1,!pp(s)||!u||mp(s)){h.D(2);break}return w(h,d(t.filter(function(e){return e.h}),!0),3);case 3:wp(e),t=t.filter(function(e){return!e.h});case 2:if(u){h.D(0);break}return w(h,d(t,!1),5);case 5:wp(e),k(h)}})}(e,g,u,m,o,i,d.oa,f,s),12);case 12:return wp(e),b=new Jf("manifest",d.path.Ya,d.path.oa,u),C.return(rp(b,m));case 3:return M(C),w(C,l.destroy(),13);case 13:if(!a){C.D(14);break}return w(C,a.stop(),14);case 14:if(!s){C.D(16);break}return w(C,s.destroy(),16);case 16:T(C,0);break;case 2:if(y=E(C),null==u){C.D(18);break}return w(C,hp(u),18);case 18:throw h||y}})}(this,e,t||{},function(){var t;return I(function(o){return 1==o.g?w(o,mi(e,r.V,i.manifest.retryParameters,n||null),2):(t=o.h,o.return(Ae(t)))})},i,o);var a=new mr(t,function(){return xf(o)});return a.finally(function(){rt(r.re,o)}),a.then=function(e){return ke("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead."),a.promise.then(e)},function(e,t){var n=t.promise;return e.Uc.push(n),t.finally(function(){rt(e.Uc,n)})}(this,a)},r.Cg=function(){return ke("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported."),!1},r.remove=function(e){return xp(this,function(e,t){var n,r,i,o,a,s;return I(function(l){switch(l.g){case 1:if(kp(),null==(n=Zf(t))||"manifest"!=n.g)throw new ye(2,9,9004,t);return r=n,i=new Rf,C(l),w(l,i.init(),4);case 4:return w(l,Bf(i,r.Ya(),r.oa()),5);case 5:return w(l,(o=l.h).getManifests([r.key()]),6);case 6:return a=l.h,s=a[0],w(l,Promise.all([vp(e,s,i),bp(o,r,s)]),2);case 2:return M(l),w(l,i.destroy(),8);case 8:T(l,0)}})}(this,e))},r.eh=function(){return xp(this,(e=this,I(function(h){switch(h.g){case 1:return kp(),t=e.V,n=e.m.drm,r=new Rf,i=!1,C(h),w(h,r.init(),4);case 4:o=[],function(e,t){e.g.forEach(function(e){t(e.getEmeSessionCell())})}(r,function(e){return o.push(e)}),a=c(o),s=a.next();case 5:if(s.done){h.D(2);break}return w(h,(l=s.value).getAll(),8);case 8:return d=h.h,w(h,tp(n,t,d),9);case 9:return u=h.h,w(h,l.remove(u),10);case 10:u.length!=d.length&&(i=!0),s=a.next(),h.D(5);break;case 2:return M(h),w(h,r.destroy(),11);case 11:T(h,3);break;case 3:return h.return(!i)}})));var e,t,n,r,i,o,a,s,l,d,u},r.list=function(){return xp(this,I(function(r){switch(r.g){case 1:return kp(),e=[],t=new Rf,C(r),w(r,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach(function(e,n){e.getCells().forEach(function(e,r){t({Ya:n,oa:r},e)})})}(t,function(t,r){n=n.then(function(){return I(function(n){if(1==n.g)return w(n,r.getAllManifests(),2);n.h.forEach(function(n,r){var i=rp(new Jf("manifest",t.Ya,t.oa,r),n);e.push(i)}),k(n)})})}),w(r,n,2);case 2:return M(r),w(r,t.destroy(),6);case 6:T(r,3);break;case 3:return r.return(e)}}));var e,t,n},H("shaka.offline.Storage",dp),dp.deleteAll=function(){var e;return I(function(t){return 1==t.g?(e=new Rf,C(t),w(t,function(e){var t,n;return I(function(r){return 1==r.g?(t=Array.from(e.g.values()),(n=0<t.length)||Ff.forEach(function(e){(e=e())&&t.push(e)}),w(r,Promise.all(t.map(function(e){return e.erase()})),2)):n?r.D(0):w(r,Promise.all(t.map(function(e){return e.destroy()})),0)})}(e),2)):5!=t.g?(M(t),w(t,e.destroy(),5)):T(t,0)})},dp.prototype.list=dp.prototype.list,dp.prototype.removeEmeSessions=dp.prototype.eh,dp.prototype.remove=dp.prototype.remove,dp.prototype.getStoreInProgress=dp.prototype.Cg,dp.prototype.store=dp.prototype.store,dp.prototype.getNetworkingEngine=dp.prototype.Mc,dp.prototype.getConfiguration=dp.prototype.getConfiguration,dp.prototype.configure=dp.prototype.configure,dp.prototype.destroy=dp.prototype.destroy,dp.support=up;var Sp=new cp,Ep=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");function Mp(){}function Tp(){for(var e=c(jp),t=e.next();!t.done;t=e.next()){t=t.value;try{t.Tf()}catch(n){G("Error installing polyfill!",n)}}}function Ap(e,t){for(var n={priority:t||0,Tf:e},r=c(re(jp)),i=r.next();!i.done;i=r.next()){var o=(i=i.value).wa;if(i.item.priority<n.priority)return void jp.splice(o,0,n)}jp.push(n)}Cc.offline=up,H("shaka.polyfill",Mp),Mp.register=Ap,Mp.installAll=Tp;var jp=[];function Op(){}function Pp(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=c(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())Lp(t.value)}function Lp(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||null==e?this.removeAttribute(t):this.setAttribute(t,e)}})}function Ip(){}function Np(){kv()}function Rp(){}function Dp(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",Bp),document.addEventListener("webkitfullscreenerror",Bp),document.addEventListener("mozfullscreenchange",Bp),document.addEventListener("mozfullscreenerror",Bp),document.addEventListener("MSFullscreenChange",Bp),document.addEventListener("MSFullscreenError",Bp)}}function Bp(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function zp(){}function Fp(){}function Hp(){}function qp(){(bn()||yn()||kn("PlayStation 5")||!navigator.mediaCapabilities)&&(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Vp=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Up)}function Up(e){var t,n,r,i,o,a,s,l,c,d;return I(function(u){switch(u.g){case 1:if(t={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:e},!e)return u.return(t);if("media-source"==e.type){if(!mn()||e.video&&(n=e.video.contentType,!MediaSource.isTypeSupported(n))||e.audio&&(r=e.audio.contentType,!MediaSource.isTypeSupported(r)))return u.return(t)}else{if("file"!=e.type)return u.return(t);if(e.video&&!gn(e.video.contentType)||e.audio&&!gn(e.audio.contentType))return u.return(t)}return e.keySystemConfiguration?(i=e.keySystemConfiguration,o=[],a=[],i.audio&&(s={robustness:i.audio.robustness||"",contentType:e.audio.contentType},o.push(s)),i.video&&(l={robustness:i.video.robustness||"",contentType:e.video.contentType},a.push(l)),c={initDataTypes:[i.initDataType],distinctiveIdentifier:i.distinctiveIdentifier,persistentState:i.persistentState,sessionTypes:i.sessionTypes},o.length&&(c.audioCapabilities=o),a.length&&(c.videoCapabilities=a),x(u,3),w(u,navigator.requestMediaKeySystemAccess(i.keySystem,[c]),5)):(t.supported=!0,u.return(Promise.resolve(t)));case 5:d=u.h,S(u,4);break;case 3:E(u);case 4:d&&(t.supported=!0,t.keySystemAccess=d);case 2:return u.return(t)}})}Mp.Aria=Op,Op.install=Pp,Ap(Pp),Mp.EncryptionScheme=Ip,Ip.install=Np,Ap(Np,-2),Mp.Fullscreen=Rp,Rp.install=Dp,Ap(Dp),Mp.MathRound=zp,zp.install=Fp,Ap(Fp),Mp.MediaCapabilities=Hp,Hp.install=qp;var Vp=null;function Xp(){}function Gp(){var t=wn();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some(function(e){return e.startsWith("codecs=")})?cast.__platform__.canDisplayType(t):e(t)}}():t?(function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(/ *; */)[0].split("/")[1].toLowerCase()&&e(t)}}(),12>=t?(Wp(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):Wp()):(kn("Tizen 2")||kn("Tizen 3")||kn("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=on(t)&&e(t)}}()),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;kn("Web0S")||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),r=n.findIndex(function(e){return e.startsWith("codecs=")});if(0>r)return e(t);var i=n[r].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),o=i.findIndex(function(e){return e.startsWith("vp09")});return 0<=o&&(i[o]="vp9",n[r]='codecs="'+i.join(",")+'"',t=n.join("; ")),e(t)})}()}function Wp(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(t){for(var n=[],r=0;r<arguments.length;++r)n[r]=arguments[r];return(n=e.apply(this,n)).abort=function(){},n}}function Jp(){}function Zp(){screen.orientation||null!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new Kp;screen.orientation=n,t(),e.addEventListener("orientationchange",function(){t();var e=new q("change");n.dispatchEvent(e)})}()}function Kp(){$.call(this),this.type="",this.angle=0}function Yp(){}function Qp(){e.HTMLVideoElement&&e.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=$p,e.MediaKeys=nm,e.MediaKeySystemAccess=tm,navigator.requestMediaKeySystemAccess=_p)}function _p(e,t){try{var n=new tm(e,t);return Promise.resolve(n)}catch(r){return Promise.reject(r)}}function $p(e){var t=this.mediaKeys;return t&&t!=e&&rm(t,null),delete this.mediaKeys,(this.mediaKeys=e)?rm(e,this):Promise.resolve()}function em(e){if(Pt(e=Ot(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=Ut(e=Ht(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=jt(e),this.dispatchEvent(t)}function tm(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(var n=c(t),r=n.next();!r.done;r=n.next()){var i=r.value;if("required"==i.persistentState)r=null;else{r={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:i.initDataTypes,sessionTypes:["temporary"],label:i.label};var o=!1,a=!1;if(i.audioCapabilities)for(var s=c(i.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(o=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(r.audioCapabilities.push(l),a=!0));if(i.videoCapabilities)for(l=(i=c(i.videoCapabilities)).next();!l.done;l=i.next())(s=l.value).contentType&&(o=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,s.contentType.split(";")[0])&&(r.videoCapabilities.push(s),a=!0));o||(a=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),r=a?r:null}if(r)return void(this.g=r)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function nm(e){this.g=new WebKitMediaKeys(e),this.h=new Dr}function rm(e,t){if(e.h.Yb(),!t)return Promise.resolve();e.h.o(t,"webkitneedkey",em);try{return ba(t,HTMLMediaElement.HAVE_METADATA,e.h,function(){t.webkitSetMediaKeys(e.g)}),Promise.resolve()}catch(n){return Promise.reject(n)}}function im(e){$.call(this),this.j=null,this.l=e,this.i=this.g=null,this.h=new Dr,this.sessionId="",this.expiration=NaN,this.closed=new Dt,this.keyStatuses=new am}function om(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new q("keystatuseschange"),e.dispatchEvent(n)}function am(){this.size=0,this.g=void 0}function sm(){}function lm(){!e.HTMLVideoElement||!e.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,e.MediaKeys=fm,e.MediaKeySystemAccess=um,navigator.requestMediaKeySystemAccess=cm,HTMLMediaElement.prototype.setMediaKeys=hm)}function cm(e,t){try{var n=new um(e,t);return Promise.resolve(n)}catch(r){return Promise.reject(r)}}function dm(e){if(e.initData){var t=new CustomEvent("encrypted");t.initDataType="cenc",t.initData=jt(function(e){if(!e)return e;var t=new Pd(e);if(1>=t.data.length)return e;e=[];for(var n={},r=(t=c(t.data)).next();!r.done;n={cd:n.cd},r=t.next())n.cd=r.value,e.some(function(e){return function(t){return Tt(t,e.cd)}}(n))||e.push(n.cd);return Qt.apply(Gt,d(e))}(e.initData)),this.dispatchEvent(t)}}function um(e,t){this.keySystem=e;for(var n=!1,r=c(t),i=r.next();!i.done;i=r.next()){var o={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(i=i.value).initDataTypes,sessionTypes:["temporary"],label:i.label},a=!1;if(i.audioCapabilities)for(var s=c(i.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(a=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(o.audioCapabilities.push(l),n=!0));if(i.videoCapabilities)for(l=(s=c(i.videoCapabilities)).next();!l.done;l=s.next())(l=l.value).contentType&&(a=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(o.videoCapabilities.push(l),n=!0));if(a||(n=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==i.persistentState&&(n=!1),n)return void(this.g=o)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function hm(e){var t=this.mediaKeys;return t&&t!=e&&pm(t,null),delete this.mediaKeys,(this.mediaKeys=e)?pm(e,this):Promise.resolve()}function fm(e){this.g=new MSMediaKeys(e),this.h=new Dr}function pm(e,t){if(e.h.Yb(),!t)return Promise.resolve();e.h.o(t,"msneedkey",dm);try{return ba(t,HTMLMediaElement.HAVE_METADATA,e.h,function(){t.msSetMediaKeys(e.g)}),Promise.resolve()}catch(n){return Promise.reject(n)}}function mm(e){$.call(this),this.j=null,this.l=e,this.i=this.g=null,this.h=new Dr,this.sessionId="",this.expiration=NaN,this.closed=new Dt,this.keyStatuses=new vm}function gm(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new q("keystatuseschange"),e.dispatchEvent(n)}function vm(){this.size=0,this.g=void 0}function bm(){}function ym(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=wm,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=km,e.MediaKeys=xm,e.MediaKeySystemAccess=Cm)}function wm(){return Promise.reject(Error("The key system specified is not supported."))}function km(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function xm(){throw new TypeError("Illegal constructor.")}function Cm(){throw this.keySystem="",new TypeError("Illegal constructor.")}function Sm(){}function Em(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)zm="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Tm,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Am,e.MediaKeys=Om,e.MediaKeySystemAccess=jm}}function Mm(e){return zm?zm+e.charAt(0).toUpperCase()+e.slice(1):e}function Tm(e,t){try{var n=new jm(e,t);return Promise.resolve(n)}catch(r){return Promise.reject(r)}}function Am(e){var t=this.mediaKeys;return t&&t!=e&&Pm(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Pm(e,this),Promise.resolve()}function jm(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var r=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video");for(var o=c(t),a=o.next();!a.done;a=o.next()){var s={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(a=a.value).initDataTypes,sessionTypes:["temporary"],label:a.label},l=!1;if(a.audioCapabilities)for(var d=c(a.audioCapabilities),u=d.next();!u.done;u=d.next())(u=u.value).contentType&&(l=!0,i.canPlayType(u.contentType.split(";")[0],this.g)&&(s.audioCapabilities.push(u),r=!0));if(a.videoCapabilities)for(u=(d=c(a.videoCapabilities)).next();!u.done;u=d.next())(u=u.value).contentType&&(l=!0,i.canPlayType(u.contentType,this.g)&&(s.videoCapabilities.push(u),r=!0));if(l||(r=i.canPlayType("video/mp4",this.g)||i.canPlayType("video/webm",this.g)),"required"==a.persistentState&&(n?(s.persistentState="required",s.sessionTypes=["persistent-license"]):r=!1),r)return void(this.h=s)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(n=Error(n)).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function Om(e){this.l=e,this.g=null,this.h=new Dr,this.i=[],this.j=new Map}function Pm(e,t){e.g=t,e.h.Yb();var n=zm;t&&(e.h.o(t,n+"needkey",function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=jt(t.initData),e.g.dispatchEvent(n)}),e.h.o(t,n+"keymessage",function(t){var n=Lm(e,t.sessionId);n&&(t=new q("message",t=(new Map).set("messageType",null==n.keyStatuses.g?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))}),e.h.o(t,n+"keyadded",function(t){(t=Lm(e,t.sessionId))&&(Dm(t,"usable"),t.g&&t.g.resolve(),t.g=null)}),e.h.o(t,n+"keyerror",function(t){var n=Lm(e,t.sessionId);n&&n.handleError(t)}))}function Lm(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function Im(e,t,n){$.call(this),this.j=e,this.s=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new Dt,this.keyStatuses=new Bm}function Nm(e,t,n){if(e.s)return Promise.reject(Error("The session is already initialized."));e.s=!0;try{if("persistent-license"==e.l)if(n)var r=Ot(Ut("LOAD_SESSION|"+n));else{var i=Ut("PERSISTENT|");r=Qt(i,t)}else r=Ot(t)}catch(a){return Promise.reject(a)}e.h=new Dt;var o=Mm("generateKeyRequest");try{e.j[o](e.i,r)}catch(a){if("InvalidStateError"!=a.name)return e.h=null,Promise.reject(a);new pn(function(){try{e.j[o](e.i,r)}catch(t){e.h.reject(t),e.h=null}}).U(.01)}return e.h}function Rm(e,t,n){if(e.g)e.g.then(function(){return Rm(e,t,n)}).catch(function(){return Rm(e,t,n)});else{if(e.g=t,"webkit-org.w3.clearkey"==e.i){var r=Ft(n),i=JSON.parse(r);"oct"!=i.keys[0].kty&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),r=Zt(i.keys[0].k),i=Zt(i.keys[0].kid)}else r=Ot(n),i=null;var o=Mm("addKey");try{e.j[o](e.i,r,i,e.sessionId)}catch(a){e.g.reject(a),e.g=null}}}function Dm(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new q("keystatuseschange"),e.dispatchEvent(n)}function Bm(){this.size=0,this.g=void 0}Hp.originalMcap=Vp,Ap(qp,-1),Mp.MediaSource=Xp,Xp.install=Gp,Ap(Gp),Mp.Orientation=Jp,Jp.install=Zp,g(Kp,$),Kp.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},Kp.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},Ap(Zp),Mp.PatchedMediaKeysApple=Yp,Yp.install=Qp,tm.prototype.createMediaKeys=function(){var e=new nm(this.keySystem);return Promise.resolve(e)},tm.prototype.getConfiguration=function(){return this.g},nm.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new im(this.g)},nm.prototype.setServerCertificate=function(){return Promise.resolve(!1)},g(im,$),(r=im.prototype).generateRequest=function(e,t){var n=this;this.g=new Dt;try{var r=this.l.createSession("video/mp4",Ot(t));this.j=r,this.sessionId=r.sessionId||"",this.h.o(this.j,"webkitkeymessage",function(e){n.g&&(n.g.resolve(),n.g=null),e=new q("message",e=(new Map).set("messageType",null==n.keyStatuses.g?"license-request":"license-renewal").set("message",jt(e.message))),n.dispatchEvent(e)}),this.h.o(r,"webkitkeyadded",function(){n.i&&(om(n,"usable"),n.i.resolve(),n.i=null)}),this.h.o(r,"webkitkeyerror",function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.j.error,null!=n.g)n.g.reject(e),n.g=null;else if(null!=n.i)n.i.reject(e),n.i=null;else switch(n.j.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:om(n,"output-not-allowed");break;default:om(n,"internal-error")}}),om(this,"status-pending")}catch(i){this.g.reject(i)}return this.g},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.i=new Dt;try{this.j.update(Ot(e))}catch(t){this.i.reject(t)}return this.i},r.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Yb()}catch(Dy){this.closed.reject(Dy)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=am.prototype).forEach=function(e){this.g&&e(this.g,fi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=fi.value();return!(!this.g||!Tt(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){},Ap(Qp),Mp.PatchedMediaKeysMs=sm,sm.install=lm,um.prototype.createMediaKeys=function(){var e=new fm(this.keySystem);return Promise.resolve(e)},um.prototype.getConfiguration=function(){return this.g},fm.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new mm(this.g)},fm.prototype.setServerCertificate=function(){return Promise.resolve(!1)},g(mm,$),(r=mm.prototype).generateRequest=function(e,t){var n=this;this.g=new Dt;try{this.j=this.l.createSession("video/mp4",Ot(t),null),this.h.o(this.j,"mskeymessage",function(e){n.g&&(n.g.resolve(),n.g=null),e=new q("message",e=(new Map).set("messageType",null==n.keyStatuses.g?"license-request":"license-renewal").set("message",jt(e.message))),n.dispatchEvent(e)}),this.h.o(this.j,"mskeyadded",function(){n.g?(gm(n,"usable"),n.g.resolve(),n.g=null):n.i&&(gm(n,"usable"),n.i.resolve(),n.i=null)}),this.h.o(this.j,"mskeyerror",function(){var e=Error("EME PatchedMediaKeysMs key error");if(e.errorCode=n.j.error,null!=n.g)n.g.reject(e),n.g=null;else if(null!=n.i)n.i.reject(e),n.i=null;else switch(n.j.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:gm(n,"output-not-allowed");break;default:gm(n,"internal-error")}}),gm(this,"status-pending")}catch(r){this.g.reject(r)}return this.g},r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},r.update=function(e){this.i=new Dt;try{this.j.update(Ot(e))}catch(t){this.i.reject(t)}return this.i},r.close=function(){try{this.j.close(),this.closed.resolve(),this.h.Yb()}catch(Dy){this.closed.reject(Dy)}return this.closed},r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(r=vm.prototype).forEach=function(e){this.g&&e(this.g,fi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=fi.value();return!(!this.g||!Tt(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){},Ap(lm),Mp.PatchedMediaKeysNop=bm,bm.install=ym,xm.prototype.createSession=function(){},xm.prototype.setServerCertificate=function(){},Cm.prototype.getConfiguration=function(){},Cm.prototype.createMediaKeys=function(){},Ap(ym,-10),Mp.PatchedMediaKeysWebkit=Sm,Sm.install=Em,jm.prototype.createMediaKeys=function(){var e=new Om(this.g);return Promise.resolve(e)},jm.prototype.getConfiguration=function(){return this.h},Om.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.g||document.createElement("video");return t.src||(t.src="about:blank"),e=new Im(t,this.l,e),this.i.push(e),e},Om.prototype.setServerCertificate=function(){return Promise.resolve(!1)},g(Im,$),(r=Im.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.h?(45==e.systemCode&&(t.message="Unsupported session type."),this.h.reject(t),this.h=null):e.sessionId&&this.g?(this.g.reject(t),this.g=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Dm(this,"output-restricted"):Dm(this,1==t?"expired":"internal-error"))},r.generateRequest=function(e,t){return Nm(this,t,null)},r.load=function(e){return"persistent-license"==this.l?Nm(this,null,e):Promise.reject(Error("Not a persistent session."))},r.update=function(e){var t=new Dt;return Rm(this,t,e),t},r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=Mm("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(t){}}return this.closed.resolve(),this.closed},r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(r=Bm.prototype).forEach=function(e){this.g&&e(this.g,fi.value())},r.get=function(e){if(this.has(e))return this.g},r.has=function(e){var t=fi.value();return!(!this.g||!Tt(e,t))},r.entries=function(){},r.keys=function(){},r.values=function(){};var zm="";function Fm(){}function Hm(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=Um,Object.defineProperty(t,"disablePictureInPicture",{get:Xm,set:Gm,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Vm,document.addEventListener("webkitpresentationmodechanged",qm,!0))}}function qm(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function Um(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Vm(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function Xm(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function Gm(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function Wm(){}function Jm(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=Zm))}function Zm(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function Km(){}function Ym(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Qm)}function Qm(){return new Promise(function(e,t){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(t,n){e({usage:t,quota:n})},t)})}function _m(){}function $m(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch(function(){}),e}}}function eg(){}function tg(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in t&&(t.getVideoPlaybackQuality=ng)}}function ng(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function rg(){}function ig(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=og;else if(6==n)t=ag;else{try{var r=!!og(1,2,"")}catch(i){r=!1}r&&(t=og)}t&&(e.VTTCue=function(e,n,r){return t(e,n,r)})}}function og(t,n,r){return new e.TextTrackCue(t,n,r)}function ag(t,n,r){return new e.TextTrackCue(t+"-"+n+"-"+r,t,n,r)}function sg(){}Ap(Em),Mp.PiPWebkit=Fm,Fm.install=Hm,Ap(Hm),Mp.RandomUUID=Wm,Wm.install=Jm,Ap(Jm),Mp.StorageEstimate=Km,Km.install=Ym,Ap(Ym),Mp.VideoPlayPromise=_m,_m.install=$m,Ap($m),Mp.VideoPlaybackQuality=eg,eg.install=tg,Ap(tg),Mp.VTTCue=rg,rg.install=ig,Ap(ig),sg.prototype.parseInit=function(){},sg.prototype.parseMedia=function(e,t){for(var n=null,r=[],i=Ft(e).split(/\r?\n/),o=(i=c(i)).next();!o.done;o=i.next())if((o=o.value)&&!/^\s+$/.test(o)&&(o=lg.exec(o))){var a=cg.exec(o[1]);o=new at(a=60*parseInt(a[1],10)+parseFloat(a[2].replace(",",".")),t.segmentEnd?t.segmentEnd:a+2,o[2]),n&&(n.endTime=a,r.push(n)),n=o}return n&&r.push(n),r},H("shaka.text.LrcTextParser",sg),sg.prototype.parseMedia=sg.prototype.parseMedia,sg.prototype.parseInit=sg.prototype.parseInit;var lg=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,cg=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function dg(){}function ug(e,t,n,r,i,o,a,s,l,d,u){var h=e.parentNode;if(e.nodeType==Node.COMMENT_NODE)return null;if(e.nodeType==Node.TEXT_NODE){if(!u)return null;var f=document.createElement("span");f.textContent=e.textContent}else f=e;for(var p=null,m=c(Bg),g=m.next();!g.done&&!(p=vg(f,"backgroundImage",r,"#",g.value)[0]);g=m.next());if(m=u,("p"==e.nodeName||p)&&(u=!0),s="default"==(f.getAttribute("xml:space")||(s?"default":"preserve")),e=[],!(g=Array.from(f.childNodes).every(function(e){return e.nodeType==Node.TEXT_NODE})))for(var v=c(f.childNodes),b=v.next();!b.done;b=v.next())(b=ug(b.value,t,n,r,i,o,a,s,l,f,u))&&e.push(b);r=null!=d,v=/\S/.test(f.textContent);var y=f.hasAttribute("begin")||f.hasAttribute("end")||f.hasAttribute("dur");if(!(y||v||"br"==f.tagName||0!=e.length||r&&!s))return null;for(v=(b=yg(f,n)).start,b=b.end;h&&h.nodeType==Node.ELEMENT_NODE&&"tt"!=h.tagName;)v=(b=bg(h,n,v,b)).start,b=b.end,h=h.parentNode;if(null==v&&(v=0),v+=t,b=null==b?1/0:b+t,!y&&0<e.length)for(v=1/0,b=0,n=(t=c(e)).next();!n.done;n=t.next())n=n.value,v=Math.min(v,n.startTime),b=Math.max(b,n.endTime);if("br"==f.tagName)return(i=new at(v,b,"")).lineBreak=!0,i;if(t="",g&&(t=f.textContent,s&&(t=(t=t.trim()).replace(/\s+/g," "))),(t=new at(v,b,t)).nestedCues=e,u||(t.isContainer=!0),l&&(t.cellResolution=l),l=vg(f,"region",o,"")[0],f.hasAttribute("region")&&l&&l.getAttribute("xml:id")){var w=l.getAttribute("xml:id");t.region=a.filter(function(e){return e.id==w})[0]}return a=l,d&&r&&!f.getAttribute("region")&&!f.getAttribute("style")&&(a=vg(d,"region",o,"")[0]),function(e,t,n,r,i,o,a){if("rtl"==fg(t,n,i,"direction",o=o||a)&&(e.direction="rtl"),"tb"==(a=fg(t,n,i,"writingMode",o))||"tblr"==a?e.writingMode="vertical-lr":"tbrl"==a?e.writingMode="vertical-rl":"rltb"==a||"rl"==a?e.direction="rtl":a&&(e.direction=ft),(a=fg(t,n,i,"textAlign",!0))?(e.positionAlign=Ng[a],e.lineAlign=Ig[a],e.textAlign=dt[a.toUpperCase()]):e.textAlign="start",(a=fg(t,n,i,"displayAlign",!0))&&(e.displayAlign=ht[a.toUpperCase()]),(a=fg(t,n,i,"color",o))&&(e.color=a),(a=fg(t,n,i,"backgroundColor",o))&&(e.backgroundColor=a),(a=fg(t,n,i,"border",o))&&(e.border=a),(a=fg(t,n,i,"fontFamily",o))&&(e.fontFamily=a),(a=fg(t,n,i,"fontWeight",o))&&"bold"==a&&(e.fontWeight=700),a=fg(t,n,i,"wrapOption",o),e.wrapLine=!a||"noWrap"!=a,(a=fg(t,n,i,"lineHeight",o))&&a.match(Eg)&&(e.lineHeight=a),(a=fg(t,n,i,"fontSize",o))&&(a.match(Eg)||a.match(Sg))&&(e.fontSize=a),(a=fg(t,n,i,"fontStyle",o))&&(e.fontStyle=xt[a.toUpperCase()]),r){a=r.getAttribute("imageType")||r.getAttribute("imagetype");var s=r.getAttribute("encoding");r=r.textContent.trim(),"PNG"==a&&"Base64"==s&&r&&(e.backgroundImage="data:image/png;base64,"+r)}(r=fg(t,n,i,"textOutline",o))&&((r=r.split(" "))[0].match(Eg)?e.textStrokeColor=e.color:(e.textStrokeColor=r[0],r.shift()),r[0]&&r[0].match(Eg)?e.textStrokeWidth=r[0]:e.textStrokeColor=""),(r=fg(t,n,i,"letterSpacing",o))&&r.match(Eg)&&(e.letterSpacing=r),(r=fg(t,n,i,"linePadding",o))&&r.match(Eg)&&(e.linePadding=r),(o=fg(t,n,i,"opacity",o))&&(e.opacity=parseFloat(o)),(n=pg(n,i,"textDecoration"))&&hg(e,n),(t=mg(t,i,"textDecoration"))&&hg(e,t)}(t,f,a,p,i,m,0==e.length),t}function hg(e,t){for(var n=c(t.split(" ")),r=n.next();!r.done;r=n.next())switch(r.value){case"underline":e.textDecoration.includes("underline")||e.textDecoration.push("underline");break;case"noUnderline":e.textDecoration.includes("underline")&&rt(e.textDecoration,"underline");break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&rt(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&rt(e.textDecoration,"overline")}}function fg(e,t,n,r,i){return i=void 0===i||i,(e=mg(e,n,r))?e:i?pg(t,n,r):null}function pg(e,t,n){if(!e)return null;var r=zd(e,Dg,n);return r||gg(e,t,n)}function mg(e,t,n){var r=zd(e,Dg,n);return r||gg(e,t,n)}function gg(e,t,n){e=vg(e,"style",t,"");for(var r=null,i=0;i<e.length;i++){var o=Bd(e[i],"urn:ebu:tt:style",n);o||(o=zd(e[i],Dg,n)),o||(o=mg(e[i],t,n)),o&&(r=o)}return r}function vg(e,t,n,r,i){var o=[];if(!e||1>n.length)return o;var a=e;for(e=null;a&&!(e=i?Bd(a,i,t):a.getAttribute(t))&&(a=a.parentNode)instanceof Element;);if(t=e)for(i=(t=c(t.split(" "))).next();!i.done;i=t.next())for(i=i.value,a=(e=c(n)).next();!a.done;a=e.next())if(r+(a=a.value).getAttribute("xml:id")==i){o.push(a);break}return o}function bg(e,t,n,r){return e=yg(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==r?r=e.end:null!=e.start&&(r+=e.start),{start:n,end:r}}function yg(e,t){var n=wg(e.getAttribute("begin"),t),r=wg(e.getAttribute("end"),t),i=wg(e.getAttribute("dur"),t);return null==r&&null!=i&&(r=n+i),{start:n,end:r}}function wg(e,t){var n=null;if(Tg.test(e)){n=Tg.exec(e);var r=Number(n[1]),i=Number(n[2]),o=Number(n[3]),a=Number(n[4]);n=(o+=(a+=(Number(n[5])||0)/t.h)/t.frameRate)+60*i+3600*r}else if(Ag.test(e))n=kg(Ag,e);else if(jg.test(e))n=kg(jg,e);else if(Og.test(e))n=Og.exec(e),n=Number(n[1])/t.frameRate;else if(Pg.test(e))n=Pg.exec(e),n=Number(n[1])/t.g;else if(Lg.test(e))n=kg(Lg,e);else if(e)throw new ye(2,2,2001,"Could not parse cue time range in TTML");return n}function kg(e,t){var n=e.exec(t);return null==n||""==n[0]?null:(Number(n[4])||0)/1e3+(Number(n[3])||0)+60*(Number(n[2])||0)+3600*(Number(n[1])||0)}function xg(e,t,n,r){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(r),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}hn["application/x-subtitle-lrc"]=function(){return new sg},dg.prototype.parseInit=function(){},dg.prototype.parseMedia=function(e,t){var n=Ft(e),r=[],i=new DOMParser,o=null;if(""==n)return r;try{o=i.parseFromString(n,"text/xml")}catch(w){throw new ye(2,2,2005,"Failed to parse TTML.")}if(o){if(n=o.getElementsByTagName("parsererror")[0])throw new ye(2,2,2005,n.textContent);var a=o.getElementsByTagName("tt")[0];if(!a)throw new ye(2,2,2005,"TTML does not contain <tt> tag.");if(!(o=a.getElementsByTagName("body")[0]))return[];var s=zd(a,Rg,"frameRate"),l=zd(a,Rg,"subFrameRate"),d=zd(a,Rg,"frameRateMultiplier"),u=zd(a,Rg,"tickRate"),h=zd(a,Rg,"cellResolution");if(n=a.getAttribute("xml:space")||"default",i=zd(a,Dg,"extent"),"default"!=n&&"preserve"!=n)throw new ye(2,2,2005,"Invalid xml:space value: "+n);n="default"==n,s=new xg(s,l,d,u),h=h&&(h=/^(\d+) (\d+)$/.exec(h))?{columns:parseInt(h[1],10),rows:parseInt(h[2],10)}:null,l=(l=a.getElementsByTagName("metadata")[0])?function(e){return Array.from(e.childNodes).filter(function(e){return e instanceof Element})}(l):[],d=Array.from(a.getElementsByTagName("style")),u=[];for(var f=c(a=Array.from(a.getElementsByTagName("region"))),p=f.next();!p.done;p=f.next()){var m=p.value;p=new Ct;var g=m.getAttribute("xml:id");if(g){p.id=g;var v,b,y=null;i&&(y=Cg.exec(i)||Mg.exec(i)),g=y?Number(y[1]):null,y=y?Number(y[2]):null,(v=pg(m,d,"extent"))&&null!=(v=(b=Cg.exec(v))||Mg.exec(v))&&(p.width=Number(v[1]),p.height=Number(v[2]),b||(null!=g&&(p.width=100*p.width/g),null!=y&&(p.height=100*p.height/y)),p.widthUnits=b||null!=g?St:0,p.heightUnits=b||null!=y?St:0),(m=pg(m,d,"origin"))&&null!=(v=(b=Cg.exec(m))||Mg.exec(m))&&(p.viewportAnchorX=Number(v[1]),p.viewportAnchorY=Number(v[2]),b||(null!=y&&(p.viewportAnchorY=100*p.viewportAnchorY/y),null!=g&&(p.viewportAnchorX=100*p.viewportAnchorX/g)),p.viewportAnchorUnits=b||null!=g?St:0)}else p=null;p&&u.push(p)}if(Rd(o,"p").length)throw new ye(2,2,2001,"<p> can only be inside <div> in TTML");for(f=(i=c(Rd(o,"div"))).next();!f.done;f=i.next())if(Rd(f.value,"span").length)throw new ye(2,2,2001,"<span> can only be inside <p> in TTML");(o=ug(o,t.periodStart,s,l,d,a,u,n,h,null,!1))&&r.push(o)}return r},H("shaka.text.TtmlTextParser",dg),dg.prototype.parseMedia=dg.prototype.parseMedia,dg.prototype.parseInit=dg.prototype.parseInit;var Cg=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Sg=/^(\d{1,2}(?:\.\d+)?|100)%$/,Eg=/^(\d+px|\d+em|\d*\.?\d+c)$/,Mg=/^(\d+)px (\d+)px$/,Tg=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Ag=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,jg=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Og=/^(\d*(?:\.\d*)?)f$/,Pg=/^(\d*(?:\.\d*)?)t$/,Lg=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,Ig={left:gt,center:"center",right:"end",start:gt,end:"end"},Ng={left:"line-left",center:"center",right:"line-right"},Rg=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Dg=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Bg=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function zg(){this.C=new dg}function Fg(){}function Hg(e){for(var t=c(Object.entries(bt)),n=t.next();!n.done;n=t.next()){var r=c(n.value);n=r.next().value,r=r.next().value;var i=new at(0,0,"");i.color=r,e.set(n,i)}for(n=(t=c(Object.entries(yt))).next();!n.done;n=t.next())n=(r=c(n.value)).next().value,r=r.next().value,(i=new at(0,0,"")).backgroundColor=r,e.set(n,i)}function qg(e,t,n){0===n.size&&Hg(n),e=function(e){for(var t=[],n=-1,r="",i=0;i<e.length;i++)if("/"===e[i]){var o=e.indexOf(">",i);if(o<=i)return e;o=e.substring(i+1,o);var a=t.pop();if(!o||!a)return e;if(a===o)r+="/"+o+">";else{if(!a.startsWith("c.")||"c"!==o)return e;r+="/"+a+">"}i+=o.length+1}else"<"===e[i]?n=i+1:">"===e[i]&&0<n&&(t.push(e.substr(n,i-n)),n=-1),r+=e[i];return r}(e);var r=Yd("<span>"+e+"</span>","span");if(r){var i=[];if(1==(r=r.childNodes).length){var o=r[0];if(o.nodeType==Node.TEXT_NODE||o.nodeType==Node.CDATA_SECTION_NODE)return void(t.payload=e)}for(r=(e=c(r)).next();!r.done;r=e.next())Vg(r.value,t,i,n);t.nestedCues=i}else t.payload=e}function Ug(e,t){return e&&0<e.length?e:t}function Vg(e,t,n,r){var i=t.clone();if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName)for(var o=c(e.nodeName.split(/[ .]+/)),a=o.next();!a.done;a=o.next()){if(a=a.value,r.has(a)){var s=r.get(a);s&&(i.backgroundColor=Ug(s.backgroundColor,i.backgroundColor),i.color=Ug(s.color,i.color),i.fontFamily=Ug(s.fontFamily,i.fontFamily),i.fontSize=Ug(s.fontSize,i.fontSize),i.fontWeight=s.fontWeight,i.fontStyle=s.fontStyle,i.opacity=s.opacity,i.wrapLine=s.wrapLine)}switch(a){case"b":i.fontWeight=700;break;case"i":i.fontStyle="italic";break;case"u":i.textDecoration.push("underline")}}if(Hd(e))for(o=!0,r=c(e.textContent.split("\n")),e=r.next();!e.done;e=r.next())e=e.value,o||((o=t.clone()).lineBreak=!0,n.push(o)),0<e.length&&((o=i.clone()).payload=e,n.push(o)),o=!1;else for(e=(t=c(e.childNodes)).next();!e.done;e=t.next())Vg(e.value,i,n,r)}function Xg(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=r[1],e.textAlign="middle"==t?ct:dt[t.toUpperCase()]):(r=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==r[1]?"vertical-lr":"vertical-rl":(r=/^size:([\d.]+)%$/.exec(t))?e.size=Number(r[1]):(r=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(r=/^region:(.*)$/.exec(t))?(t=function(e,t){var n=e.filter(function(e){return e.id==t});return n.length?n[0]:null}(n,r[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=vt[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=mt,e.line=Number(n[1]),n[2]&&(e.lineAlign=vt[n[2].toUpperCase()]))}function Gg(e){if(null==(e=kh(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function Wg(){this.g=null}function Jg(e,t,n){var r,i,o;return(new Ci).box("payl",Mi(function(e){r=Ft(e)})).box("iden",Mi(function(e){i=Ft(e)})).box("sttg",Mi(function(e){o=Ft(e)})).parse(e),r?function(e,t,n,r,i){if(r=new at(r,i,""),qg(e,r,new Map),t&&(r.id=t),n)for(e=new yh(n),t=xh(e);t;)Xg(r,t,[]),wh(e),t=xh(e);return r}(r,i,o,t,n):null}function Zg(){}function Kg(e){if(null==(e=kh(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function Yg(){this.C=new Fg}function Qg(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=c((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n")+"\n\n";return t}function _g(){}function $g(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=ev(n))&&(e.color=n),(n=t.BackColour)&&(n=ev(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=700),t.Italic&&(e.fontStyle="italic"),t.Underline&&e.textDecoration.push("underline"),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=ut,e.textAlign="start";break;case 2:e.displayAlign=ut,e.textAlign=ct;break;case 3:e.displayAlign=ut,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=ct;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=ct;break;case 11:e.displayAlign="center",e.textAlign="end"}(n=t.AlphaLevel)&&(e.opacity=parseFloat(n))}function ev(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function tv(e){return 3600*((e=sv.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}hn["application/ttml+xml"]=function(){return new dg},zg.prototype.parseInit=function(e){var t=!1;if((new Ci).box("moov",Si).box("trak",Si).box("mdia",Si).box("minf",Si).box("stbl",Si).Z("stsd",Ei).box("stpp",function(e){t=!0,e.parser.stop()}).parse(e),!t)throw new ye(2,2,2007)},zg.prototype.parseMedia=function(e,t){var n=this,r=!1,i=[];if((new Ci).box("mdat",Mi(function(e){r=!0,i=i.concat(n.C.parseMedia(e,t))})).parse(e,!1),!r)throw new ye(2,2,2007);return i},H("shaka.text.Mp4TtmlParser",zg),zg.prototype.parseMedia=zg.prototype.parseMedia,zg.prototype.parseInit=zg.prototype.parseInit,hn['application/mp4; codecs="stpp"']=function(){return new zg},hn['application/mp4; codecs="stpp.ttml"']=function(){return new zg},hn['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new zg},hn['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new zg},Fg.prototype.parseInit=function(){},Fg.prototype.parseMedia=function(e,t){var n=Ft(e),r=(n=n.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(r[0]))throw new ye(2,2,2e3);if(n=t.periodStart,r[0].includes("X-TIMESTAMP-MAP")){var i=r[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),o=r[0].match(/MPEGTS:(\d+)/m);if(i&&o){if(null==(n=Gg(new yh(i[1]))))throw new ye(2,2,2e3);for(o=Number(o[1]),i=t.segmentStart;95443.7176888889<=i;)i-=95443.7176888889,o+=8589934592;n=t.periodStart+o/9e4-n}}o=[];for(var a=(i=c(r[0].split("\n"))).next();!a.done;a=i.next())if(a=a.value,/^Region:/.test(a)){a=new yh(a);var s=new Ct;xh(a),wh(a);for(var l=xh(a);l;){var d=s,u=l;(l=/^id=(.*)$/.exec(u))?d.id=l[1]:(l=/^width=(\d{1,2}|100)%$/.exec(u))?d.width=Number(l[1]):(l=/^lines=(\d+)$/.exec(u))?(d.height=Number(l[1]),d.heightUnits=2):(l=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(d.regionAnchorX=Number(l[1]),d.regionAnchorY=Number(l[2])):(l=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(d.viewportAnchorX=Number(l[1]),d.viewportAnchorY=Number(l[2])):/^scroll=up$/.exec(u)&&(d.scroll="up"),wh(a),l=xh(a)}o.push(s)}for(Hg(i=new Map),a=[],s=(r=c(r.slice(1))).next();!s.done;s=r.next()){if((1!=(s=s.value.split("\n")).length||s[0])&&!/^NOTE($|[ \t])/.test(s[0])&&"STYLE"==s[0]&&s[1].includes("::cue")){d="global",(l=s[1].match(/\((.*)\)/))&&(d=l.pop()),l=s.slice(2,-1),s[1].includes("}")&&(u=/\{(.*?)\}/.exec(s[1]))&&(l=u[1].split(";")),u=new at(0,0,"");for(var h=!1,f=0;f<l.length;f++){var p=/^\s*([^:]+):\s*(.*)/.exec(l[f]);if(p){var m=p[2].trim().replace(";","");switch(p[1].trim()){case"background-color":h=!0,u.backgroundColor=m;break;case"color":h=!0,u.color=m;break;case"font-family":h=!0,u.fontFamily=m;break;case"font-size":h=!0,u.fontSize=m;break;case"font-weight":700<=parseInt(m,10)&&(h=!0,u.fontWeight=700);break;case"font-style":switch(m){case"normal":h=!0,u.fontStyle=kt;break;case"italic":h=!0,u.fontStyle="italic";break;case"oblique":h=!0,u.fontStyle="oblique"}break;case"opacity":h=!0,u.opacity=parseFloat(m);break;case"white-space":h=!0,u.wrapLine="noWrap"!=m}}}h&&i.set(d,u)}if(f=n,1==s.length&&!s[0]||/^NOTE($|[ \t])/.test(s[0])||"STYLE"==s[0])s=null;else{if(d=null,s[0].includes("--\x3e")||(d=s[0],s.splice(0,1)),u=Gg(l=new yh(s[0])),p=kh(l,/[ \t]+--\x3e[ \t]+/g),h=Gg(l),null==u||null==p||null==h)throw new ye(2,2,2001,"Could not parse cue time range in WebVTT");for(u+=f,h+=f,f=s.slice(1).join("\n").trim(),i.has("global")?((s=i.get("global").clone()).startTime=u,s.endTime=h,s.payload=""):s=new at(u,h,""),qg(f,s,i),wh(l),u=xh(l);u;)Xg(s,u,o),wh(l),u=xh(l);null!=d&&(s.id=d)}s&&a.push(s)}return a},H("shaka.text.VttTextParser",Fg),Fg.prototype.parseMedia=Fg.prototype.parseMedia,Fg.prototype.parseInit=Fg.prototype.parseInit,hn["text/vtt"]=function(){return new Fg},hn['text/vtt; codecs="vtt"']=function(){return new Fg},hn['text/vtt; codecs="wvtt"']=function(){return new Fg},Wg.prototype.parseInit=function(e){var t=this,n=!1;if((new Ci).box("moov",Si).box("trak",Si).box("mdia",Si).Z("mdhd",function(e){e=Ho(e.reader,e.version),t.g=e.timescale}).box("minf",Si).box("stbl",Si).Z("stsd",Ei).box("wvtt",function(){n=!0}).parse(e),!this.g)throw new ye(2,2,2008);if(!n)throw new ye(2,2,2008)},Wg.prototype.parseMedia=function(e,t){if(!this.g)throw new ye(2,2,2008);var n,r=0,i=[],o=[],a=!1,s=!1,l=!1,d=null;if((new Ci).box("moof",Si).box("traf",Si).Z("tfdt",function(e){a=!0,r=Fo(e.reader,e.version).Xd}).Z("tfhd",function(e){d=zo(e.reader,e.flags).cf}).Z("trun",function(e){s=!0,i=qo(e.reader,e.version,e.flags).zf}).box("mdat",Mi(function(e){l=!0,n=e})).parse(e,!1),!l&&!a&&!s)throw new ye(2,2,2008);for(var u=r,h=new wi(n,0),f=c(i),p=f.next();!p.done;p=f.next()){var m=(p=p.value).ye||d,g=p.Cd?r+p.Cd:u;u=g+(m||0);var v=0;do{var b=h.T();v+=b;var y=null;"vttc"==Ai(h.T())?8<b&&(y=h.Lb(b-8)):h.skip(b-8),m&&y&&(b=Jg(y,t.periodStart+g/this.g,t.periodStart+u/this.g),o.push(b))}while(p.sampleSize&&v<p.sampleSize)}return o.filter(Te)},H("shaka.text.Mp4VttParser",Wg),Wg.prototype.parseMedia=Wg.prototype.parseMedia,Wg.prototype.parseInit=Wg.prototype.parseInit,hn['application/mp4; codecs="wvtt"']=function(){return new Wg},Zg.prototype.parseInit=function(){},Zg.prototype.parseMedia=function(e){var t=Ft(e).replace(/\r+/g,"");if(e=[],""==(t=t.trim()))return e;for(var n=(t=c(t.split("\n\n"))).next();!n.done;n=t.next()){var r=new yh((n=n.value.split("\n"))[0]),i=Kg(r),o=kh(r,/,/g);if(r=Kg(r),null==i||null==o||null==r)throw new ye(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new at(i,r,n.slice(1).join("\n").trim()))}return e},H("shaka.text.SbvTextParser",Zg),Zg.prototype.parseMedia=Zg.prototype.parseMedia,Zg.prototype.parseInit=Zg.prototype.parseInit,hn["text/x-subviewer"]=function(){return new Zg},Yg.prototype.parseInit=function(){},Yg.prototype.parseMedia=function(e,t){var n=Ft(e);return n=Ot(Ut(n=Qg(n))),this.C.parseMedia(n,t)},H("shaka.text.SrtTextParser",Yg),Yg.srt2webvtt=Qg,Yg.prototype.parseMedia=Yg.prototype.parseMedia,Yg.prototype.parseInit=Yg.prototype.parseInit,hn["text/srt"]=function(){return new Yg},_g.prototype.parseInit=function(){},_g.prototype.parseMedia=function(e){for(var t="",n="",r=(e=c(e=Ft(e).split(/\r?\n\s*\r?\n/))).next();!r.done;r=e.next()){var i=iv.exec(r.value);i&&(r=i[1],i=i[2],"V4 Styles"==r||"V4+ Styles"==r?t=i:"Events"==r&&(n=i))}e=[],r=null;for(var o=(t=c(t.split(/\r?\n/))).next();!o.done;o=t.next())if(i=o.value,!/^\s*;/.test(i)&&(o=ov.exec(i)))if(i=o[1].trim(),o=o[2].trim(),"Format"==i)r=o.split(av);else if("Style"==i){i=o.split(av),o={};for(var a=0;a<r.length&&a<i.length;a++)o[r[a]]=i[a];e.push(o)}for(r=[],t=null,i={},o=(n=c(n.split(/\r?\n/))).next();!o.done;i={Ud:i.Ud},o=n.next())if(o=o.value,!/^\s*;/.test(o)&&(a=ov.exec(o)))if(o=a[1].trim(),a=a[2].trim(),"Format"==o)t=a.split(av);else if("Dialogue"==o){a=a.split(av),o={};for(var s=0;s<t.length&&s<a.length;s++)o[t[s]]=a[s];a=new at(s=tv(o.Start),tv(o.End),a.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,"")),i.Ud=o.Style,(o=e.find(function(e){return function(t){return t.Name==e.Ud}}(i)))&&$g(a,o),r.push(a)}return r},H("shaka.text.SsaTextParser",_g),_g.prototype.parseMedia=_g.prototype.parseMedia,_g.prototype.parseInit=_g.prototype.parseInit;var nv,rv,iv=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,ov=/^\s*([^:]+):\s*(.*)/,av=/\s*,\s*/,sv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;function lv(){}function cv(){nv||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&(nv=navigator.requestMediaKeySystemAccess,navigator.requestMediaKeySystemAccess=dv)}function dv(e,t){var n,r=this;return I(function(i){return 1==i.g?w(i,nv.call(r,e,t),2):yv(n=i.h)?(navigator.requestMediaKeySystemAccess=nv,i.return(n)):(navigator.requestMediaKeySystemAccess=uv,i.return(uv.call(r,e,t)))})}function uv(e,t){var n,r,i,o,a,s,l,d,u,h,f=this;return I(function(p){if(1==p.g){for(n=bv(e),r=[],i=c(t),o=i.next();!o.done;o=i.next())a=o.value,s=hv(a.videoCapabilities,n),l=hv(a.audioCapabilities,n),a.videoCapabilities&&a.videoCapabilities.length&&!s.length||a.audioCapabilities&&a.audioCapabilities.length&&!l.length||((d=Object.assign({},a)).videoCapabilities=s,d.audioCapabilities=l,r.push(d));if(!r.length)throw(u=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",u.code=DOMException.NOT_SUPPORTED_ERR,u;return w(p,nv.call(f,e,r),2)}return h=p.h,p.return(new vv(h,n))})}function hv(e,t){return e?e.filter(function(e){return!e.encryptionScheme||e.encryptionScheme==t}):e}function fv(){}function pv(){rv||navigator.mediaCapabilities&&(rv=navigator.mediaCapabilities.decodingInfo,navigator.mediaCapabilities.decodingInfo=mv)}function mv(e){var t,n,r=this;return I(function(i){return 1==i.g?w(i,rv.call(r,e),2):(t=i.h,e.keySystemConfiguration?(n=t.keySystemAccess)&&yv(n)?(navigator.mediaCapabilities.decodingInfo=rv,i.return(t)):(navigator.mediaCapabilities.decodingInfo=gv,i.return(gv.call(r,e))):i.return(t))})}function gv(e){var t,n,r,i,o,a,s,l,c,d=this;return I(function(u){switch(u.g){case 1:return t=null,e.keySystemConfiguration&&(n=e.keySystemConfiguration,r=n.keySystem,i=n.audio&&n.audio.encryptionScheme,o=n.video&&n.video.encryptionScheme,t=bv(r),a={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},i&&i!=t||o&&o!=t)?u.return(a):w(u,rv.call(d,e),2);case 2:if((s=u.h).keySystemAccess){s.keySystemAccess=new vv(s.keySystemAccess,t),u.D(3);break}if(!e.keySystemConfiguration){u.D(3);break}var h=e.keySystemConfiguration,f=[],p=[];return h.audio&&f.push({robustness:h.audio.robustness||"",contentType:e.audio.contentType}),h.video&&p.push({robustness:h.video.robustness||"",contentType:e.video.contentType}),h={initDataTypes:h.initDataType?[h.initDataType]:[],distinctiveIdentifier:h.distinctiveIdentifier,persistentState:h.persistentState,sessionTypes:h.sessionTypes},f.length&&(h.audioCapabilities=f),p.length&&(h.videoCapabilities=p),l=h,c=s,w(u,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[l]),5);case 5:c.keySystemAccess=u.h;case 3:return u.return(s)}})}function vv(e,t){this.h=e,this.g=t,this.keySystem=e.keySystem}function bv(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs-1-9":null}function yv(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!(!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)||void 0===e.encryptionScheme)}function wv(){}function kv(){cv(),pv()}hn["text/x-ssa"]=function(){return new _g},H("EmeEncryptionSchemePolyfill",lv),lv.install=cv,H("McEncryptionSchemePolyfill",fv),fv.install=pv,vv.prototype.getConfiguration=function(){var e=this.h.getConfiguration();if(e.videoCapabilities)for(var t=c(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.g;if(e.audioCapabilities)for(n=(t=c(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.g;return e},vv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()},H("EncryptionSchemePolyfills",wv),wv.install=kv,void 0!==n&&n.exports&&(n.exports=wv);for(var xv={ach:{u:"Lwo",A:"Acholi"},ady:{u:"Адыгэбзэ",A:"Adyghe"},af:{u:"Afrikaans",A:"Afrikaans"},"af-NA":{u:"Afrikaans (Namibia)",A:"Afrikaans (Namibia)"},"af-ZA":{u:"Afrikaans (South Africa)",A:"Afrikaans (South Africa)"},ak:{u:"Tɕɥi",A:"Akan"},ar:{u:"العربية",A:"Arabic"},"ar-AR":{u:"العربية",A:"Arabic"},"ar-MA":{u:"العربية",A:"Arabic (Morocco)"},"ar-SA":{u:"العربية (السعودية)",A:"Arabic (Saudi Arabia)"},"ay-BO":{u:"Aymar aru",A:"Aymara"},az:{u:"Azərbaycan dili",A:"Azerbaijani"},"az-AZ":{u:"Azərbaycan dili",A:"Azerbaijani"},"be-BY":{u:"Беларуская",A:"Belarusian"},bg:{u:"Български",A:"Bulgarian"},"bg-BG":{u:"Български",A:"Bulgarian"},bn:{u:"বাংলা",A:"Bengali"},"bn-IN":{u:"বাংলা (ভারত)",A:"Bengali (India)"},"bn-BD":{u:"বাংলা(বাংলাদেশ)",A:"Bengali (Bangladesh)"},"bs-BA":{u:"Bosanski",A:"Bosnian"},ca:{u:"Català",A:"Catalan"},"ca-ES":{u:"Català",A:"Catalan"},cak:{u:"Maya Kaqchikel",A:"Kaqchikel"},"ck-US":{u:"ᏣᎳᎩ (tsalagi)",A:"Cherokee"},cs:{u:"Čeština",A:"Czech"},"cs-CZ":{u:"Čeština",A:"Czech"},cy:{u:"Cymraeg",A:"Welsh"},"cy-GB":{u:"Cymraeg",A:"Welsh"},da:{u:"Dansk",A:"Danish"},"da-DK":{u:"Dansk",A:"Danish"},de:{u:"Deutsch",A:"German"},"de-AT":{u:"Deutsch (Österreich)",A:"German (Austria)"},"de-DE":{u:"Deutsch (Deutschland)",A:"German (Germany)"},"de-CH":{u:"Deutsch (Schweiz)",A:"German (Switzerland)"},dsb:{u:"Dolnoserbšćina",A:"Lower Sorbian"},el:{u:"Ελληνικά",A:"Greek"},"el-GR":{u:"Ελληνικά",A:"Greek (Greece)"},en:{u:"English",A:"English"},"en-GB":{u:"English (UK)",A:"English (UK)"},"en-AU":{u:"English (Australia)",A:"English (Australia)"},"en-CA":{u:"English (Canada)",A:"English (Canada)"},"en-IE":{u:"English (Ireland)",A:"English (Ireland)"},"en-IN":{u:"English (India)",A:"English (India)"},"en-PI":{u:"English (Pirate)",A:"English (Pirate)"},"en-UD":{u:"English (Upside Down)",A:"English (Upside Down)"},"en-US":{u:"English (US)",A:"English (US)"},"en-ZA":{u:"English (South Africa)",A:"English (South Africa)"},"en@pirate":{u:"English (Pirate)",A:"English (Pirate)"},eo:{u:"Esperanto",A:"Esperanto"},"eo-EO":{u:"Esperanto",A:"Esperanto"},es:{u:"Español",A:"Spanish"},"es-AR":{u:"Español (Argentine)",A:"Spanish (Argentina)"},"es-419":{u:"Español (Latinoamérica)",A:"Spanish (Latin America)"},"es-CL":{u:"Español (Chile)",A:"Spanish (Chile)"},"es-CO":{u:"Español (Colombia)",A:"Spanish (Colombia)"},"es-EC":{u:"Español (Ecuador)",A:"Spanish (Ecuador)"},"es-ES":{u:"Español (España)",A:"Spanish (Spain)"},"es-LA":{u:"Español (Latinoamérica)",A:"Spanish (Latin America)"},"es-NI":{u:"Español (Nicaragua)",A:"Spanish (Nicaragua)"},"es-MX":{u:"Español (México)",A:"Spanish (Mexico)"},"es-US":{u:"Español (Estados Unidos)",A:"Spanish (United States)"},"es-VE":{u:"Español (Venezuela)",A:"Spanish (Venezuela)"},et:{u:"eesti keel",A:"Estonian"},"et-EE":{u:"Eesti (Estonia)",A:"Estonian (Estonia)"},eu:{u:"Euskara",A:"Basque"},"eu-ES":{u:"Euskara",A:"Basque"},fa:{u:"فارسی",A:"Persian"},"fa-IR":{u:"فارسی",A:"Persian"},"fb-LT":{u:"Leet Speak",A:"Leet"},ff:{u:"Fulah",A:"Fulah"},fi:{u:"Suomi",A:"Finnish"},"fi-FI":{u:"Suomi",A:"Finnish"},"fo-FO":{u:"Føroyskt",A:"Faroese"},fr:{u:"Français",A:"French"},"fr-CA":{u:"Français (Canada)",A:"French (Canada)"},"fr-FR":{u:"Français (France)",A:"French (France)"},"fr-BE":{u:"Français (Belgique)",A:"French (Belgium)"},"fr-CH":{u:"Français (Suisse)",A:"French (Switzerland)"},"fy-NL":{u:"Frysk",A:"Frisian (West)"},ga:{u:"Gaeilge",A:"Irish"},"ga-IE":{u:"Gaeilge (Gaelic)",A:"Irish (Gaelic)"},gl:{u:"Galego",A:"Galician"},"gl-ES":{u:"Galego",A:"Galician"},"gn-PY":{u:"Avañe'ẽ",A:"Guarani"},"gu-IN":{u:"ગુજરાતી",A:"Gujarati"},"gx-GR":{u:"Ἑλληνική ἀρχαία",A:"Classical Greek"},he:{u:"עברית",A:"Hebrew"},"he-IL":{u:"עברית",A:"Hebrew"},hi:{u:"हिन्दी",A:"Hindi"},"hi-IN":{u:"हिन्दी",A:"Hindi"},hr:{u:"Hrvatski",A:"Croatian"},"hr-HR":{u:"Hrvatski",A:"Croatian"},hsb:{u:"Hornjoserbšćina",A:"Upper Sorbian"},ht:{u:"Kreyòl",A:"Haitian Creole"},hu:{u:"Magyar",A:"Hungarian"},"hu-HU":{u:"Magyar",A:"Hungarian"},"hy-AM":{u:"Հայերեն",A:"Armenian"},id:{u:"Bahasa Indonesia",A:"Indonesian"},"id-ID":{u:"Bahasa Indonesia",A:"Indonesian"},is:{u:"Íslenska",A:"Icelandic"},"is-IS":{u:"Íslenska (Iceland)",A:"Icelandic (Iceland)"},it:{u:"Italiano",A:"Italian"},"it-IT":{u:"Italiano",A:"Italian"},ja:{u:"日本語",A:"Japanese"},"ja-JP":{u:"日本語",A:"Japanese"},"jv-ID":{u:"Basa Jawa",A:"Javanese"},"ka-GE":{u:"ქართული",A:"Georgian"},"kk-KZ":{u:"Қазақша",A:"Kazakh"},km:{u:"ភាសាខ្មែរ",A:"Khmer"},"km-KH":{u:"ភាសាខ្មែរ",A:"Khmer"},kab:{u:"Taqbaylit",A:"Kabyle"},kn:{u:"ಕನ್ನಡ",A:"Kannada"},"kn-IN":{u:"ಕನ್ನಡ (India)",A:"Kannada (India)"},ko:{u:"한국어",A:"Korean"},"ko-KR":{u:"한국어 (韩国)",A:"Korean (Korea)"},ku:{u:"Kurdî",A:"Kurdish"},"ku-TR":{u:"Kurdî",A:"Kurdish"},la:{u:"Latin",A:"Latin"},"la-VA":{u:"Latin",A:"Latin"},lb:{u:"Lëtzebuergesch",A:"Luxembourgish"},"li-NL":{u:"Lèmbörgs",A:"Limburgish"},lt:{u:"Lietuvių",A:"Lithuanian"},"lt-LT":{u:"Lietuvių",A:"Lithuanian"},lv:{u:"Latviešu",A:"Latvian"},"lv-LV":{u:"Latviešu",A:"Latvian"},mai:{u:"मैथिली, মৈথিলী",A:"Maithili"},"mg-MG":{u:"Malagasy",A:"Malagasy"},mk:{u:"Македонски",A:"Macedonian"},"mk-MK":{u:"Македонски (Македонски)",A:"Macedonian (Macedonian)"},ml:{u:"മലയാളം",A:"Malayalam"},"ml-IN":{u:"മലയാളം",A:"Malayalam"},"mn-MN":{u:"Монгол",A:"Mongolian"},mr:{u:"मराठी",A:"Marathi"},"mr-IN":{u:"मराठी",A:"Marathi"},ms:{u:"Bahasa Melayu",A:"Malay"},"ms-MY":{u:"Bahasa Melayu",A:"Malay"},mt:{u:"Malti",A:"Maltese"},"mt-MT":{u:"Malti",A:"Maltese"},my:{u:"ဗမာစကာ",A:"Burmese"},nb:{u:"Norsk (bokmål)",A:"Norwegian (bokmal)"},"nb-NO":{u:"Norsk (bokmål)",A:"Norwegian (bokmal)"},ne:{u:"नेपाली",A:"Nepali"},"ne-NP":{u:"नेपाली",A:"Nepali"},nl:{u:"Nederlands",A:"Dutch"},"nl-BE":{u:"Nederlands (België)",A:"Dutch (Belgium)"},"nl-NL":{u:"Nederlands (Nederland)",A:"Dutch (Netherlands)"},"nn-NO":{u:"Norsk (nynorsk)",A:"Norwegian (nynorsk)"},no:{u:"Norsk",A:"Norwegian"},oc:{u:"Occitan",A:"Occitan"},"or-IN":{u:"ଓଡ଼ିଆ",A:"Oriya"},pa:{u:"ਪੰਜਾਬੀ",A:"Punjabi"},"pa-IN":{u:"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",A:"Punjabi (India)"},pl:{u:"Polski",A:"Polish"},"pl-PL":{u:"Polski",A:"Polish"},"ps-AF":{u:"پښتو",A:"Pashto"},pt:{u:"Português",A:"Portuguese"},"pt-BR":{u:"Português (Brasil)",A:"Portuguese (Brazil)"},"pt-PT":{u:"Português (Portugal)",A:"Portuguese (Portugal)"},"qu-PE":{u:"Qhichwa",A:"Quechua"},"rm-CH":{u:"Rumantsch",A:"Romansh"},ro:{u:"Română",A:"Romanian"},"ro-RO":{u:"Română",A:"Romanian"},ru:{u:"Русский",A:"Russian"},"ru-RU":{u:"Русский",A:"Russian"},"sa-IN":{u:"संस्कृतम्",A:"Sanskrit"},"se-NO":{u:"Davvisámegiella",A:"Northern Sámi"},"si-LK":{u:"පළාත",A:"Sinhala (Sri Lanka)"},sk:{u:"Slovenčina",A:"Slovak"},"sk-SK":{u:"Slovenčina (Slovakia)",A:"Slovak (Slovakia)"},sl:{u:"Slovenščina",A:"Slovenian"},"sl-SI":{u:"Slovenščina",A:"Slovenian"},"so-SO":{u:"Soomaaliga",A:"Somali"},sq:{u:"Shqip",A:"Albanian"},"sq-AL":{u:"Shqip",A:"Albanian"},sr:{u:"Српски",A:"Serbian"},"sr-RS":{u:"Српски (Serbia)",A:"Serbian (Serbia)"},su:{u:"Basa Sunda",A:"Sundanese"},sv:{u:"Svenska",A:"Swedish"},"sv-SE":{u:"Svenska",A:"Swedish"},sw:{u:"Kiswahili",A:"Swahili"},"sw-KE":{u:"Kiswahili",A:"Swahili (Kenya)"},ta:{u:"தமிழ்",A:"Tamil"},"ta-IN":{u:"தமிழ்",A:"Tamil"},te:{u:"తెలుగు",A:"Telugu"},"te-IN":{u:"తెలుగు",A:"Telugu"},tg:{u:"забо́ни тоҷикӣ́",A:"Tajik"},"tg-TJ":{u:"тоҷикӣ",A:"Tajik"},th:{u:"ภาษาไทย",A:"Thai"},"th-TH":{u:"ภาษาไทย (ประเทศไทย)",A:"Thai (Thailand)"},tl:{u:"Filipino",A:"Filipino"},"tl-PH":{u:"Filipino",A:"Filipino"},tlh:{u:"tlhIngan-Hol",A:"Klingon"},tr:{u:"Türkçe",A:"Turkish"},"tr-TR":{u:"Türkçe",A:"Turkish"},"tt-RU":{u:"татарча",A:"Tatar"},uk:{u:"Українська",A:"Ukrainian"},"uk-UA":{u:"Українська",A:"Ukrainian"},ur:{u:"اردو",A:"Urdu"},"ur-PK":{u:"اردو",A:"Urdu"},uz:{u:"O'zbek",A:"Uzbek"},"uz-UZ":{u:"O'zbek",A:"Uzbek"},vi:{u:"Tiếng Việt",A:"Vietnamese"},"vi-VN":{u:"Tiếng Việt",A:"Vietnamese"},"xh-ZA":{u:"isiXhosa",A:"Xhosa"},yi:{u:"ייִדיש",A:"Yiddish"},"yi-DE":{u:"ייִדיש (German)",A:"Yiddish (German)"},zh:{u:"中文",A:"Chinese"},"zh-HANS":{u:"中文简体",A:"Chinese Simplified"},"zh-HANT":{u:"中文繁體",A:"Chinese Traditional"},"zh-CN":{u:"中文(中国)",A:"Chinese Simplified (China)"},"zh-HK":{u:"中文(香港)",A:"Chinese Traditional (Hong Kong)"},"zh-SG":{u:"中文(新加坡)",A:"Chinese Simplified (Singapore)"},"zh-TW":{u:"中文(台灣)",A:"Chinese Traditional (Taiwan)"},"zu-ZA":{u:"isiZulu",A:"Zulu"}},Cv=c(Object.keys(xv)),Sv=Cv.next();!Sv.done;Sv=Cv.next()){var Ev=Sv.value;xv[Ev.toLowerCase()]=xv[Ev]}function Mv(e,t){var n=this;this.parent=e,this.controls=t,this.eventManager=new Dr,this.localization=this.controls.bb,this.player=this.controls.lc(),this.video=this.controls.Kb(),this.adManager=this.player.od(),this.ad=t.getAd(),this.eventManager.o(this.adManager,"ad-started",function(e){n.ad=e.ad}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.ad=null})}function Tv(e){return Av(e,"shaka-back-to-overflow-button")}function Av(e,t){var n=e.getElementsByClassName(t);return n.length?n[0]:null}function jv(e){e&&(e=Av(e,"shaka-chosen-item"))&&e.parentElement.focus()}function Ov(){var e=gs("i");return e.classList.add("material-icons-round"),e.classList.add("shaka-chosen-item"),e.textContent="done",e.ariaHidden="true",e}function Pv(e,t){e&&(t?e.classList.remove("shaka-hidden"):e.classList.add("shaka-hidden"))}function Lv(e,t){var n=Math.floor(e/3600),r=Math.floor(e/60%60),i=Math.floor(e%60);return 10>i&&(i="0"+i),i=r+":"+i,t&&(10>r&&(i="0"+i),i=n+":"+i),i}function Iv(e,t){Mv.call(this,e,t);var n=this;this.i=gs("div"),this.i.classList.add("shaka-ad-counter"),this.parent.appendChild(this.i),this.h=gs("span"),this.h.classList.add("shaka-ad-counter-span"),this.i.appendChild(this.h),this.g=new pn(function(){var e=Math.round(n.ad.getRemainingTime()),t=n.ad.getDuration();-1!=e&&-1!=t&&(0<e?(e=Lv(t-e,!1)+" / "+Lv(t,!1),1<n.ad.getSequenceLength()?n.h.textContent=e:(t=n.localization.resolve("AD_TIME"),n.h.textContent=t.replace("[AD_TIME]",e))):(n.g.stop(),n.h.textContent=""))}),this.eventManager.o(this.localization,"locale-updated",function(){}),this.eventManager.o(this.localization,"locale-changed",function(){}),this.eventManager.o(this.adManager,"ad-started",function(){n.g.Ga(),n.g.na(.5)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.g.stop(),n.h.textContent=""}),this.ad&&(this.g.Ga(),this.g.na(.5))}function Nv(e,t){Mv.call(this,e,t);var n=this;this.g=gs("div"),this.g.classList.add("shaka-ad-position"),Pv(this.g,!1),this.parent.appendChild(this.g),this.h=gs("span"),this.h.classList.add("shaka-ad-position-span"),this.g.appendChild(this.h),this.eventManager.o(this.localization,"locale-updated",function(){n.ad&&Rv(n)}),this.eventManager.o(this.localization,"locale-changed",function(){n.ad&&Rv(n)}),this.eventManager.o(this.adManager,"ad-started",function(){Rv(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.h.textContent="",Pv(n.g,!1)}),this.ad&&Rv(this)}function Rv(e){var t=e.ad.getSequenceLength();if(1<t){var n=e.ad.getPositionInSequence();e.h.textContent=e.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(n)).replace("[NUM_ADS]",String(t)),Pv(e.g,!0)}}function Dv(e,t){Mv.call(this,e,t);var n=this;this.button=vs(),this.parent.appendChild(this.button),this.eventManager.o(this.localization,"locale-updated",function(){n.g()}),this.eventManager.o(this.localization,"locale-changed",function(){n.g()}),this.eventManager.o(this.video,"play",function(){n.g(),n.h()}),this.eventManager.o(this.video,"pause",function(){n.g(),n.h()}),this.eventManager.o(this.video,"seeking",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-paused",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-resumed",function(){n.g(),n.h()}),this.eventManager.o(this.adManager,"ad-started",function(){n.g(),n.h()}),this.eventManager.o(this.button,"click",function(){n.ad&&n.ad.isLinear()?$v(n.controls):_v(n.controls)}),this.ad&&(this.g(),this.h())}function Bv(e,t){Dv.call(this,e,t),this.button.classList.add("shaka-play-button"),this.button.classList.add("shaka-no-propagation"),this.h(),this.g()}function zv(t,n){Mv.call(this,t,n);var r=this;this.m=this.controls.m,this.h=this.controls.i,this.i=[],this.g=gs("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-context-menu"),this.g.classList.add("shaka-hidden"),this.h.appendChild(this.g),this.eventManager.o(this.h,"contextmenu",function(e){if(r.g.classList.contains("shaka-hidden")){e.preventDefault();var t=r.h.getBoundingClientRect();r.g.style.left=e.clientX-t.left+"px",r.g.style.top=e.clientY-t.top+"px",Pv(r.g,!0)}else Pv(r.g,!1)}),this.eventManager.o(e,"click",function(){Pv(r.g,!1)}),function(e){for(var t=c(e.m.contextMenuElements),n=t.next();!n.done;n=t.next()){n=n.value;var r=Hv.get(n);r?e.i.push(r.create(e.g,e.controls)):G("Unrecognized context menu element:",n)}}(this)}function Fv(e,t){Hv.set(e,t)}Mv.prototype.release=function(){this.eventManager.release(),this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null},H("shaka.ui.Element",Mv),Mv.prototype.release=Mv.prototype.release,g(Iv,Mv),Iv.prototype.release=function(){this.g.stop(),this.g=null,Mv.prototype.release.call(this)},H("shaka.ui.AdCounter",Iv),g(Nv,Mv),H("shaka.ui.AdPosition",Nv),g(Dv,Mv),Dv.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var e=this.ad.isPaused();else e=(e=this.controls).g.paused&&!e.ka;return e},Dv.prototype.g=function(){},Dv.prototype.h=function(){},H("shaka.ui.PlayButton",Dv),g(Bv,Dv),Bv.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")},Bv.prototype.g=function(){var e=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(e)},H("shaka.ui.BigPlayButton",Bv),g(zv,Mv),zv.prototype.release=function(){this.h=null;for(var e=c(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],Mv.prototype.release.call(this)},H("shaka.ui.ContextMenu",zv),zv.registerElement=Fv;var Hv=new Map;function qv(e,t,n,r){Mv.call(this,e,t);var i=this;this.container=gs("div"),this.container.classList.add("shaka-range-container"),this.container.classList.add.apply(this.container.classList,d(n)),this.g=!1,this.bar=document.createElement("input"),this.l=new pn(function(){i.onChangeEnd(),i.g=!1}),this.bar.classList.add("shaka-range-element"),this.bar.classList.add.apply(this.bar.classList,d(r)),this.bar.type="range",this.bar.step="any",this.bar.min="0",this.bar.max="1",this.bar.value="0",this.container.appendChild(this.bar),this.parent.appendChild(this.container),this.eventManager.o(this.bar,"mousedown",function(){i.controls.Ub()&&(i.g=!0,i.onChangeStart())}),this.eventManager.o(this.bar,"touchstart",function(e){i.controls.Ub()&&(i.g=!0,Uv(i,e),i.onChangeStart())}),this.eventManager.o(this.bar,"input",function(){i.onChange()}),this.eventManager.o(this.bar,"touchmove",function(e){i.g&&(Uv(i,e),i.onChange())}),this.eventManager.o(this.bar,"touchend",function(e){i.g&&(i.g=!1,Uv(i,e),i.onChangeEnd())}),this.eventManager.o(this.bar,"mouseup",function(){i.g&&(i.g=!1,i.onChangeEnd())})}function Uv(e,t){t.preventDefault();var n=t.changedTouches[0],r=e.bar.getBoundingClientRect(),i=parseFloat(e.bar.min),o=parseFloat(e.bar.max);(n=i+(o-i)/r.width*(n.clientX-r.left))<i?n=i:n>o&&(n=o),e.bar.value=n}function Vv(e,t){qv.call(this,e,t,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var n=this;this.j=gs("div"),this.j.classList.add("shaka-ad-markers"),this.container.insertBefore(this.j,this.container.childNodes[0]),this.m=this.controls.m,this.h=new pn(function(){n.video.currentTime=n.getValue()}),this.s=new pn(function(){Xv(n)}),this.B=!1,this.i=[],this.eventManager.o(this.localization,"locale-updated",function(){return Jv(n)}),this.eventManager.o(this.localization,"locale-changed",function(){return Jv(n)}),this.eventManager.o(this.adManager,"ad-started",function(){Wv(n)||Pv(n.container,!1)}),this.eventManager.o(this.adManager,"ad-stopped",function(){Wv(n)&&Pv(n.container,!0)}),this.eventManager.o(this.adManager,"ad-cue-points-changed",function(e){n.i=e.cuepoints,Gv(n)}),this.eventManager.o(this.player,"unloading",function(){n.i=[],Gv(n)}),this.setValue(this.video.currentTime),this.update(),Jv(this),this.ad&&Pv(this.container,!1)}function Xv(e){if(e.i.length){for(var t=e.player.Na(),n=t.end-t.start,r=["to right"],i=[],o=e.m.seekBarColors.adBreaks,a=!1,s=c(e.i),l=s.next();!l.done;l=s.next())if(-1!=(l=l.value).start||l.end||(a=!0),l.start>=t.start&&l.start<t.end&&!(l.end&&l.end>t.end)){var d=(l.start-t.start)/n||0,u=d+.01;l.end&&(u=(l.end-t.start)/n||0),i.push({start:d,end:u})}for(l=(t=c(i)).next();!l.done;l=t.next())n=l.value,r.push("transparent "+100*n.start+"%"),r.push(o+" "+100*n.start+"%"),r.push(o+" "+100*n.end+"%"),r.push("transparent "+100*n.end+"%");a&&(r.push("transparent 99%"),r.push(o+" 99%")),e.j.style.background="linear-gradient("+r.join(",")+")"}else e.j.style.background="transparent"}function Gv(e){Xv(e);var t=e.player.Na();t=t.end-t.start,e.player.W()&&5<t&&e.s.na(1)}function Wv(e){var t=e.player.Na();return t=t.end-t.start,!(e.player.W()&&5>t||null!=e.ad&&e.ad.isLinear())}function Jv(e){e.bar.ariaLabel=e.localization.resolve("SEEK")}function Zv(){}function Kv(t,n,r,i){$.call(this);var o=this;this.ha=!0,this.m=i,this.B=new sd(r,t,this.m.castReceiverAppId),this.Db=!0,this.g=this.B.Kb(),this.C=r,this.G=this.B.lc(),this.Ua=t,this.j=n,this.ob=this.G.od(),this.s=this.l=null,this.ka=!1,this.I=[],this.nc=[],this.Gb=!1,this.sa=new pn(function(){o.j.style.cursor="none",o.Gb=!1,tb(o)}),this.Ba=new pn(function(){o.i.removeAttribute("shown"),o.L.U(2)}),this.L=new pn(function(){for(var e=c(o.I),t=e.next();!t.done;t=e.next())Pv(t.value,!1)}),this.cb=new pn(function(){o.Ub()&&ab(o)}),this.M=null,this.J=[],this.bb=function(){var e=new Je("en");return e.ma("ar",new Map([["AD_DURATION","مدة الإعلان"],["AD_PROGRESS","الإعلان [AD_ON] من [NUM_ADS]"],["AD_TIME","الإعلان: [AD_TIME]"],["AUTO_QUALITY","تلقائي"],["BACK","رجوع"],["CAPTIONS","الترجمة والشرح"],["CAST","إرسال..."],["ENTER_LOOP_MODE","تكرار الفيديو الحالي"],["ENTER_PICTURE_IN_PICTURE",'الدخول في وضع "نافذة ضمن نافذة"'],["EXIT_FULL_SCREEN","إنهاء وضع ملء الشاشة"],["EXIT_LOOP_MODE","إيقاف تكرار الفيديو الحالي"],["EXIT_PICTURE_IN_PICTURE",'الخروج من وضع "نافذة ضمن نافذة"'],["FAST_FORWARD","تقديم سريع"],["FULL_SCREEN","ملء الشاشة"],["LANGUAGE","اللغة"],["LIVE","مباشر"],["LOOP","تكرار"],["MORE_SETTINGS","مزيد من الإعدادات"],["MULTIPLE_LANGUAGES","لغات متعددة"],["MUTE","كتم الصوت"],["NOT_APPLICABLE","غير سارٍ"],["OFF","إيقاف"],["ON","تشغيل"],["PAUSE","إيقاف مؤقت"],["PICTURE_IN_PICTURE","نافذة ضمن النافذة"],["PLAY","التشغيل"],["PLAYBACK_RATE","سرعة التشغيل"],["RESOLUTION","درجة الدقة"],["REWIND","ترجيع"],["SEEK","البحث بالتمرير"],["SKIP_AD","تخطّي الإعلان"],["SKIP_TO_LIVE","الانتقال إلى بث مباشر"],["UNDETERMINED_LANGUAGE","غير محدد"],["UNMUTE","إعادة الصوت"],["UNRECOGNIZED_LANGUAGE","غير معروف"],["VOLUME","مستوى الصوت"]])),e.ma("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung [AD_ON] von [NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zurück"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Auflösung"],["REWIND","Zurückspulen"],["SEEK","Suche"],["SKIP_AD","Überspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautstärke"]])),e.ma("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]])),e.ma("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]])),e.ma("es",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Enviar..."],["ENTER_LOOP_MODE","Reproducir en bucle el vídeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el vídeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar rápidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","Más ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["RESOLUTION","Resolución"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al vídeo en directo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.ma("es-419",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetición indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","Más opciones de configuración"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["RESOLUTION","Resolución"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisión en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.ma("fr",new Map([["AD_DURATION","Durée de l'annonce"],["AD_PROGRESS","Annonce [AD_ON] sur [NUM_ADS]"],["AD_TIME","Annonce : [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster…"],["ENTER_LOOP_MODE","Lire en boucle la vidéo en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein écran"],["EXIT_LOOP_MODE","Arrêter la lecture en boucle de la vidéo en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein écran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","Répéter"],["MORE_SETTINGS","Plus de paramètres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","Désactivée"],["ON","Activée"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["RESOLUTION","Résolution"],["REWIND","Retour arrière"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Accéder à la partie la plus récente du direct"],["UNDETERMINED_LANGUAGE","Langue indéterminée"],["UNMUTE","Réactiver le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]])),e.ma("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Più lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocità di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]])),e.ma("ja",new Map([["AD_DURATION","広告再生時間"],["AD_PROGRESS","[AD_ON] 番目の広告(全 [NUM_ADS] 個)"],["AD_TIME","広告: [AD_TIME]"],["AUTO_QUALITY","自動"],["BACK","戻る"],["CAPTIONS","字幕"],["CAST","キャスト..."],["ENTER_LOOP_MODE","現在の動画をループ再生"],["ENTER_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを開始"],["EXIT_FULL_SCREEN","全画面表示を終了"],["EXIT_LOOP_MODE","現在の動画のループ再生を停止"],["EXIT_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを終了"],["FAST_FORWARD","早送り"],["FULL_SCREEN","全画面表示"],["LANGUAGE","言語"],["LIVE","ライブ"],["LOOP","ループ"],["MORE_SETTINGS","詳細設定"],["MULTIPLE_LANGUAGES","多言語"],["MUTE","ミュート"],["NOT_APPLICABLE","該当なし"],["OFF","オフ"],["ON","オン"],["PAUSE","一時停止"],["PICTURE_IN_PICTURE","ピクチャー イン ピクチャー"],["PLAY","再生"],["PLAYBACK_RATE","再生速度"],["RESOLUTION","解像度"],["REWIND","巻き戻し"],["SEEK","シーク再生"],["SKIP_AD","広告をスキップ"],["SKIP_TO_LIVE","ライブ配信までスキップ"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","ミュートを解除"],["UNRECOGNIZED_LANGUAGE","不明"],["VOLUME","音量"]])),e.ma("ko",new Map([["AD_DURATION","광고 기간"],["AD_PROGRESS","광고 [AD_ON]/[NUM_ADS]"],["AD_TIME","광고: [AD_TIME]"],["AUTO_QUALITY","자동"],["BACK","뒤로"],["CAPTIONS","자막"],["CAST","전송..."],["ENTER_LOOP_MODE","현재 동영상 반복 재생"],["ENTER_PICTURE_IN_PICTURE","PIP 모드 시작"],["EXIT_FULL_SCREEN","전체화면 닫기"],["EXIT_LOOP_MODE","현재 동영상 반복 재생 중지"],["EXIT_PICTURE_IN_PICTURE","PIP 모드 종료"],["FAST_FORWARD","빨리 감기"],["FULL_SCREEN","전체화면"],["LANGUAGE","언어"],["LIVE","실시간"],["LOOP","반복 재생"],["MORE_SETTINGS","설정 더보기"],["MULTIPLE_LANGUAGES","여러 언어"],["MUTE","음소거"],["NOT_APPLICABLE","해당 사항 없음"],["OFF","사용 안함"],["ON","사용"],["PAUSE","일시중지"],["PICTURE_IN_PICTURE","PIP 모드"],["PLAY","재생"],["PLAYBACK_RATE","재생 속도"],["RESOLUTION","해상도"],["REWIND","되감기"],["SEEK","찾기"],["SKIP_AD","광고 건너뛰기"],["SKIP_TO_LIVE","라이브 동영상으로 건너뛰기"],["UNDETERMINED_LANGUAGE","미정"],["UNMUTE","음소거 해제"],["UNRECOGNIZED_LANGUAGE","알 수 없음"],["VOLUME","볼륨"]])),e.ma("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]])),e.ma("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama [AD_ON] z [NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesyłaj..."],["ENTER_LOOP_MODE","Odtwarzaj bieżący film w pętli"],["ENTER_PICTURE_IN_PICTURE","Włącz tryb obrazu w obrazie"],["EXIT_FULL_SCREEN","Zamknij pełny ekran"],["EXIT_LOOP_MODE","Wyłącz odtwarzanie bieżącego filmu w pętli"],["EXIT_PICTURE_IN_PICTURE","Wyłącz tryb obrazu w obrazie"],["FAST_FORWARD","Przewiń do przodu"],["FULL_SCREEN","Pełny ekran"],["LANGUAGE","Język"],["LIVE","Na żywo"],["LOOP","Odtwarzaj w pętli"],["MORE_SETTINGS","Więcej ustawień"],["MULTIPLE_LANGUAGES","Wiele języków"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wyłączone"],["ON","Włączone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w obrazie"],["PLAY","Odtwórz"],["PLAYBACK_RATE","Szybkość odtwarzania"],["RESOLUTION","Rozdzielczość"],["REWIND","Przewiń do tyłu"],["SEEK","Szukaj"],["SKIP_AD","Pomiń reklamę"],["SKIP_TO_LIVE","Przejdź do transmisji na żywo"],["UNDETERMINED_LANGUAGE","Nie określono"],["UNMUTE","Wyłącz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","Głośność"]])),e.ma("pt-BR",new Map([["AD_DURATION","Duração do anúncio"],["AD_PROGRESS","Anúncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anúncio: [AD_TIME]"],["AUTO_QUALITY","Automática"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o vídeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repetição do vídeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avançar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais definições"],["MULTIPLE_LANGUAGES","Vários idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","Não relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodução"],["RESOLUTION","Resolução"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular anúncio"],["SKIP_TO_LIVE","Pular para transmissão ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","Não reconhecido"],["VOLUME","Volume"]])),e.ma("ru",new Map([["AD_DURATION","Продолжительность рекламы"],["AD_PROGRESS","Реклама [AD_ON] из [NUM_ADS]"],["AD_TIME","Реклама: [AD_TIME]"],["AUTO_QUALITY","Авто"],["BACK","Назад"],["CAPTIONS","Субтитры"],["CAST","Транслировать..."],["ENTER_LOOP_MODE","Зациклить текущее видео"],["ENTER_PICTURE_IN_PICTURE",'Перейти в режим "Картинка в картинке"'],["EXIT_FULL_SCREEN","Обычный режим"],["EXIT_LOOP_MODE","Отменить зацикливание текущего видео"],["EXIT_PICTURE_IN_PICTURE",'Выйти из режима "Картинка в картинке"'],["FAST_FORWARD","Перемотка вперед"],["FULL_SCREEN","Полноэкранный режим"],["LANGUAGE","Язык"],["LIVE","Прямой эфир"],["LOOP","Зациклить"],["MORE_SETTINGS","Дополнительные настройки"],["MULTIPLE_LANGUAGES","Несколько языков"],["MUTE","Отключить звук"],["NOT_APPLICABLE","Неприменимо"],["OFF","Выкл."],["ON","Вкл."],["PAUSE","Пауза"],["PICTURE_IN_PICTURE","Картинка в картинке"],["PLAY","Воспроизвести"],["PLAYBACK_RATE","Скорость воспроизведения"],["RESOLUTION","Разрешение"],["REWIND","Перемотать назад"],["SEEK","Перемотка"],["SKIP_AD","Пропустить"],["SKIP_TO_LIVE","Пропустить и перейти к прямой трансляции"],["UNDETERMINED_LANGUAGE","Не указано"],["UNMUTE","Включить звук"],["UNRECOGNIZED_LANGUAGE","Не распознано"],["VOLUME","Громкость"]])),e.ma("th",new Map([["AD_DURATION","ระยะเวลาโฆษณา"],["AD_PROGRESS","โฆษณา [AD_ON] จาก [NUM_ADS] รายการ"],["AD_TIME","โฆษณา: [AD_TIME]"],["AUTO_QUALITY","อัตโนมัติ"],["BACK","กลับ"],["CAPTIONS","คำบรรยาย"],["CAST","แคสต์..."],["ENTER_LOOP_MODE","วนซ้ำวิดีโอปัจจุบัน"],["ENTER_PICTURE_IN_PICTURE","เข้าสู่การแสดงภาพซ้อนภาพ"],["EXIT_FULL_SCREEN","ออกจากการแสดงแบบเต็มหน้าจอ"],["EXIT_LOOP_MODE","หยุดวนซ้ำวิดีโอปัจจุบัน"],["EXIT_PICTURE_IN_PICTURE","ออกจากการแสดงภาพซ้อนภาพ"],["FAST_FORWARD","กรอไปข้างหน้า"],["FULL_SCREEN","เต็มหน้าจอ"],["LANGUAGE","ภาษา"],["LIVE","สด"],["LOOP","ลูป"],["MORE_SETTINGS","การตั้งค่าเพิ่มเติม"],["MULTIPLE_LANGUAGES","หลายภาษา"],["MUTE","ปิดเสียง"],["NOT_APPLICABLE","ไม่เกี่ยวข้อง"],["OFF","ปิด"],["ON","เปิด"],["PAUSE","หยุดชั่วคราว"],["PICTURE_IN_PICTURE","การแสดงภาพซ้อนภาพ"],["PLAY","เล่น"],["PLAYBACK_RATE","ความเร็วในการเล่น"],["RESOLUTION","ความละเอียด"],["REWIND","กรอกลับ"],["SEEK","ค้นหา"],["SKIP_AD","ข้ามโฆษณา"],["SKIP_TO_LIVE","ข้ามไปที่การถ่ายทอดสด"],["UNDETERMINED_LANGUAGE","ไม่กำหนด"],["UNMUTE","เปิดเสียง"],["UNRECOGNIZED_LANGUAGE","ที่ไม่รู้จัก"],["VOLUME","ระดับเสียง"]])),e.ma("tr",new Map([["AD_DURATION","Reklam süresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyazılar"],["CAST","Yayınla..."],["ENTER_LOOP_MODE","Mevcut videoyu döngüye al"],["ENTER_PICTURE_IN_PICTURE","Pencere içinde Pencere moduna gir"],["EXIT_FULL_SCREEN","Tam ekrandan çık"],["EXIT_LOOP_MODE","Mevcut videonun döngüsünü durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere İçinde Pencereden Çık"],["FAST_FORWARD","İleri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canlı"],["LOOP","Döngü"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden çok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Geçerli değil"],["OFF","Kapalı"],["ON","Açık"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere İçinde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","Çalma hızı"],["RESOLUTION","Çözünürlük"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklamı Atla"],["SKIP_TO_LIVE","Canlı yayına atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi aç"],["UNRECOGNIZED_LANGUAGE","Tanınmayan"],["VOLUME","Ses"]])),e.ma("zh",new Map([["AD_DURATION","广告持续时间"],["AD_PROGRESS","广告 [AD_ON]/[NUM_ADS]"],["AD_TIME","广告:[AD_TIME]"],["AUTO_QUALITY","自动"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投射…"],["ENTER_LOOP_MODE","循环播放当前视频"],["ENTER_PICTURE_IN_PICTURE","进入“画中画”模式"],["EXIT_FULL_SCREEN","退出全屏模式"],["EXIT_LOOP_MODE","停止循环播放当前视频"],["EXIT_PICTURE_IN_PICTURE","退出“画中画”模式"],["FAST_FORWARD","快进"],["FULL_SCREEN","全屏"],["LANGUAGE","语言"],["LIVE","直播"],["LOOP","循环播放"],["MORE_SETTINGS","更多设置"],["MULTIPLE_LANGUAGES","多种语言"],["MUTE","静音"],["NOT_APPLICABLE","不适用"],["OFF","关闭"],["ON","开启"],["PAUSE","暂停"],["PICTURE_IN_PICTURE","画中画"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["RESOLUTION","分辨率"],["REWIND","快退"],["SEEK","进度"],["SKIP_AD","跳过广告"],["SKIP_TO_LIVE","跳至当前直播"],["UNDETERMINED_LANGUAGE","未确定"],["UNMUTE","取消静音"],["UNRECOGNIZED_LANGUAGE","无法识别"],["VOLUME","音量"]])),e.ma("zh-TW",new Map([["AD_DURATION","廣告長度"],["AD_PROGRESS","廣告 [AD_ON]/[NUM_ADS]"],["AD_TIME","廣告:[AD_TIME]"],["AUTO_QUALITY","自動"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投放..."],["ENTER_LOOP_MODE","循環播放目前的影片"],["ENTER_PICTURE_IN_PICTURE","進入子母畫面"],["EXIT_FULL_SCREEN","退出全螢幕模式"],["EXIT_LOOP_MODE","停止循環播放目前的影片"],["EXIT_PICTURE_IN_PICTURE","離開子母畫面"],["FAST_FORWARD","快轉"],["FULL_SCREEN","全螢幕"],["LANGUAGE","語言"],["LIVE","直播"],["LOOP","循環播放"],["MORE_SETTINGS","顯示更多設定"],["MULTIPLE_LANGUAGES","多種語言"],["MUTE","靜音"],["NOT_APPLICABLE","不適用"],["OFF","關閉"],["ON","開啟"],["PAUSE","暫停"],["PICTURE_IN_PICTURE","子母畫面"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["RESOLUTION","解析度"],["REWIND","倒轉"],["SEEK","搜尋"],["SKIP_AD","略過廣告"],["SKIP_TO_LIVE","跳至当前直播"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","取消靜音"],["UNRECOGNIZED_LANGUAGE","無法辨識"],["VOLUME","音量"]])),e.We(navigator.languages||[]),e}(),this.h=new Dr,this.configure(this.m),function(t){t.h.o(t.G,"buffering",function(){t.ha&&Pv(t.Aa,t.G.Rc())}),t.ha&&Pv(t.Aa,t.G.Rc()),t.h.o(e,"keydown",function(n){!function(t,n){t.Ca.add(n.key);var r=t.jd();"Tab"==n.key&&(t.i.classList.add("shaka-keyboard-navigation"),tb(t),t.h.o(e,"mousedown",function(){t.h.Ta(e,"mousedown")})),"Escape"==n.key&&t.L.Ga(),r&&t.Ca.has("Tab")&&function(e,t){var n=e.I.filter(function(e){return!e.classList.contains("shaka-hidden")});if(n.length){var r=n[0];if(r.childNodes.length){for(n=r.firstElementChild;n&&n.classList.contains("shaka-hidden");)n=n.nextElementSibling;for(r=r.lastElementChild;r&&r.classList.contains("shaka-hidden");)r=r.previousElementSibling;var i=document.activeElement;e.Ca.has("Shift")?i==n&&(t.preventDefault(),r.focus()):i==r&&(t.preventDefault(),n.focus())}}}(t,n)}(t,n)}),t.h.o(e,"click",function(){return t.pc()}),t.h.o(t,"submenuopen",function(){t.pc()}),t.h.o(t.g,"play",function(){tb(t)}),t.h.o(t.g,"pause",function(){tb(t)}),t.h.o(t.j,"mousemove",function(e){eb(t,e)}),t.h.o(t.j,"touchmove",function(e){eb(t,e)},{passive:!0}),t.h.o(t.j,"touchend",function(e){eb(t,e)},{passive:!0}),t.h.o(t.j,"mouseleave",function(){t.M||t.sa.Ga()}),t.h.o(t.B,"caststatuschanged",function(){ib(t)}),t.h.o(t.j,"keydown",function(e){var n=document.activeElement,r=!(!n||!n.classList)&&n.classList.contains("shaka-volume-bar"),i=n&&n.classList&&n.classList.contains("shaka-seek-bar");if(t.i.contains(n)&&eb(t,e),t.m.enableKeyboardPlaybackControls)switch(e.key){case"ArrowLeft":t.s&&!r&&(e.preventDefault(),ob(t,t.s.getValue()-5));break;case"ArrowRight":t.s&&!r&&(e.preventDefault(),ob(t,t.s.getValue()+5));break;case"Home":t.s&&ob(t,t.G.Na().start);break;case"End":t.s&&ob(t,t.G.Na().end);break;case" ":i&&rb(t)}}),t.h.o(t.j,"keyup",function(e){t.Ca.delete(e.key)}),t.h.o(t.ob,"ad-started",function(e){t.l=e.ad,t.Gf()}),t.h.o(t.ob,"ad-stopped",function(){t.l=null,t.mf()}),screen.orientation&&t.h.o(screen.orientation,"change",function(){return I(function(e){return w(e,function(e){return I(function(t){return e.g&&0!=e.g.readyState&&!e.B.xa()&&e.m.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?w(t,e.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?w(t,document.exitFullscreen(),0):t.D(0):t.return()})}(t),0)})}),t.h.o(document,"fullscreenchange",function(){t.l&&t.l.resize(t.C.offsetWidth,t.C.offsetHeight)})}(this),this.Ca=new Set,ib(this),this.cb.na(.125),this.h.o(this.bb,"locale-changed",function(e){o.ob.setLocale(e.locales[0])})}function Yv(e){for(var t=c(e.J),n=t.next();!n.done;n=t.next())n.value.release();e.J=[]}function Qv(e,t){sb.set(e,t)}function _v(e){e.ha&&e.g.duration&&(e.G.Ue(),e.g.paused&&!e.ka?e.g.play():e.g.pause())}function $v(e){e.l&&e.l.isPaused()?e.l.play():e.l&&e.l.pause()}function eb(e,t){"mousemove"==t.type&&(e.i.classList.remove("shaka-keyboard-navigation"),tb(e)),"touchstart"==t.type||"touchmove"==t.type||"touchend"==t.type||"keyup"==t.type?e.M=Date.now():e.M+1e3<Date.now()&&(e.M=null),e.M&&"mousemove"==t.type||(e.j.style.cursor="",e.Gb=!0,e.L.stop(),e.Ub()||(ab(e),tb(e)),e.sa.stop(),"touchend"!=t.type&&"keyup"!=t.type&&e.M||e.sa.U(3))}function tb(t){var n=!!t.l&&t.l.isPaused(),r=t.g.paused&&!t.ka,i=t.i.classList.contains("shaka-keyboard-navigation");n||(!t.l||!t.l.isLinear())&&r||t.Gb||i||function(t){return!!e.matchMedia("hover: hover").matches&&t.nc.some(function(e){return e.matches(":hover")})}(t)?(ab(t),t.i.setAttribute("shown","true"),t.Ba.stop()):t.Ba.U(t.m.fadeDelay)}function nb(e){e.ha&&(e.jd()?e.L.Ga():e.m.singleClickForPlayAndPause&&rb(e))}function rb(e){e.l&&e.l.isLinear()?$v(e):_v(e)}function ib(e){var t=e.B.xa();e.dispatchEvent(new q("caststatuschanged",(new Map).set("newStatus",t))),t?e.i.setAttribute("casting","true"):e.i.removeAttribute("casting")}function ob(e,t){e.s.changeTo(t),e.Ub()&&ab(e)}function ab(e){if(e.s)if(e.s.setValue(e.g.currentTime),e.s.update(),e.s.isShowing())for(var t=c(e.I),n=t.next();!n.done;n=t.next())n.value.classList.remove("shaka-low-position");else for(n=(t=c(e.I)).next();!n.done;n=t.next())n.value.classList.add("shaka-low-position");e.dispatchEvent(new q("timeandseekrangeupdated"))}g(qv,Mv),(r=qv.prototype).release=function(){this.l&&(this.l.stop(),this.l=null),Mv.prototype.release.call(this)},r.setRange=function(e,t){this.bar.min=e,this.bar.max=t},r.onChangeStart=function(){},r.onChange=function(){},r.onChangeEnd=function(){},r.changeTo=function(e){this.g||(this.g=!0,this.onChangeStart());var t=parseFloat(this.bar.min),n=parseFloat(this.bar.max);this.bar.value=e>n?n:e<t?t:e,this.onChange(),this.l.U(.5)},r.getValue=function(){return parseFloat(this.bar.value)},r.setValue=function(e){this.g||(this.bar.value=e)},H("shaka.ui.RangeElement",qv),qv.prototype.setValue=qv.prototype.setValue,qv.prototype.getValue=qv.prototype.getValue,qv.prototype.changeTo=qv.prototype.changeTo,qv.prototype.onChangeEnd=qv.prototype.onChangeEnd,qv.prototype.onChange=qv.prototype.onChange,qv.prototype.onChangeStart=qv.prototype.onChangeStart,qv.prototype.setRange=qv.prototype.setRange,g(Vv,qv),(r=Vv.prototype).release=function(){this.h&&(this.h.stop(),this.h=null,this.s.stop(),this.s=null),qv.prototype.release.call(this)},r.onChangeStart=function(){this.B=!this.video.paused,this.controls.He(!0),this.video.pause()},r.onChange=function(){this.video.duration&&(this.update(),this.h.U(.125))},r.onChangeEnd=function(){this.h.Ga(),this.controls.He(!1),this.B&&this.video.play()},r.isShowing=function(){return!this.container.classList.contains("shaka-hidden")},r.update=function(){var e=this.m.seekBarColors,t=this.getValue(),n=this.video.buffered.length,r=n?this.video.buffered.start(0):0,i=n?this.video.buffered.end(n-1):0,o=this.player.Na(),a=o.end-o.start;this.setRange(o.start,o.end),Wv(this)?(Pv(this.container,!0),0==n?this.container.style.background=e.base:(n=(Math.max(r,o.start)-o.start)/a||0,i=(Math.min(i,o.end)-o.start)/a||0,t=(Math.min(Math.max(t,o.start),o.end)-o.start)/a||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?e.base:e.played)+" "+100*n+"%",e.played+" "+100*n+"%",e.played+" "+100*t+"%",e.buffered+" "+100*t+"%",e.buffered+" "+100*i+"%",e.base+" "+100*i+"%"].join()+")")):Pv(this.container,!1)},H("shaka.ui.SeekBar",Vv),Zv.prototype.create=function(e,t){return new Vv(e,t)},Vv.Factory=Zv,g(Kv,$),(r=Kv.prototype).destroy=function(){var e=this;return I(function(t){switch(t.g){case 1:if(document.pictureInPictureElement!=e.C){t.D(2);break}return w(t,document.exitPictureInPicture(),2);case 2:if(e.h&&(e.h.release(),e.h=null),e.sa&&(e.sa.stop(),e.sa=null),e.Ba&&(e.Ba.stop(),e.Ba=null),e.L&&(e.L.stop(),e.L=null),e.cb&&(e.cb.stop(),e.cb=null),Yv(e),e.i&&(e.j.removeChild(e.i),e.i=null),!e.B){t.D(4);break}return w(t,e.B.destroy(),5);case 5:e.B=null;case 4:if(!e.Ua){t.D(6);break}return w(t,e.Ua.destroy(),7);case 7:e.Ua=null;case 6:e.G=null,e.C=null,e.g=null,e.bb=null,e.Ca.clear(),$.prototype.release.call(e),k(t)}})},r.Sf=function(e){this.Db=e,ib(this)},r.Og=function(){tb(this)},r.configure=function(e){this.m=e,this.B.Xe(e.castReceiverAppId),this.s&&(this.s=null),this.Eb&&(this.Eb=null),this.pb&&(this.pb=null),this.i?(bs(this.i),Yv(this)):(function(e){e.i=gs("div"),e.i.classList.add("shaka-controls-container"),e.j.appendChild(e.i),e.j.setAttribute("shaka-controls","true"),e.h.o(e.i,"touchstart",function(t){e.g.duration&&(e.Ub()?e.M=Date.now():(eb(e,t),t.preventDefault()))},{passive:!1}),e.h.o(e.i,"click",function(){nb(e)}),e.h.o(e.i,"dblclick",function(){e.m.doubleClickForFullscreen&&document.fullscreenEnabled&&e.Ne()})}(this),function(e){e.$=gs("div"),e.$.classList.add("shaka-client-side-ad-container"),Pv(e.$,!1),e.h.o(e.$,"click",function(){nb(e)}),e.j.appendChild(e.$)}(this)),this.j.classList.add("shaka-video-container"),this.C.classList.add("shaka-video"),function(e){var t=gs("div");t.classList.add("shaka-scrim-container"),e.i.appendChild(t)}(this),this.m.addBigPlayButton&&function(e){var t=gs("div");t.classList.add("shaka-play-button-container"),e.i.appendChild(t),e.Eb=new Bv(t,e),e.J.push(e.Eb)}(this),this.m.customContextMenu&&(this.pb=new zv(this.ia,this),this.J.push(this.pb)),this.Aa||function(e){e.Aa=gs("div"),e.Aa.classList.add("shaka-spinner-container"),e.j.appendChild(e.Aa);var t=gs("div");t.classList.add("shaka-spinner"),e.Aa.appendChild(t),(e=document.createElementNS("http://www.w3.org/2000/svg","svg")).classList.add("shaka-spinner-svg"),e.setAttribute("viewBox","0 0 30 30"),t.appendChild(e),(t=document.createElementNS("http://www.w3.org/2000/svg","circle")).classList.add("shaka-spinner-path"),t.setAttribute("cx","15"),t.setAttribute("cy","15"),t.setAttribute("r","14.5"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","1"),t.setAttribute("stroke-miterlimit","10"),e.appendChild(t)}(this),this.zb=gs("div"),this.zb.classList.add("shaka-server-side-ad-container"),this.i.appendChild(this.zb),function(e){e.S=gs("div"),e.S.classList.add("shaka-bottom-controls"),e.S.classList.add("shaka-no-propagation"),e.i.appendChild(e.S),e.h.o(e.S,"click",function(t){t.target.closest(".shaka-overflow-button")||e.pc()}),function(e){e.P=gs("div"),e.P.classList.add("shaka-ad-controls");var t=null!=e.l&&e.l.isLinear();Pv(e.P,t),e.S.appendChild(e.P),t=new Nv(e.P,e),e.J.push(t),t=new Iv(e.P,e),e.J.push(t)}(e),e.ia=gs("div"),e.ia.classList.add("shaka-controls-button-panel"),e.ia.classList.add("shaka-show-controls-on-mouse-over"),e.m.enableTooltips&&e.ia.classList.add("shaka-tooltips-on"),e.S.appendChild(e.ia);for(var t={},n=c(e.m.controlPanelElements),r=n.next();!r.done;t={Bc:t.Bc},r=n.next())r=r.value,sb.get(r)?("function"!=typeof(r=sb.get(r).create(e.ia,e)).release&&(ke("shaka.extern.IUIElement","Please update UI elements to have a release() method."),t.Bc=r,t.Bc.release=function(e){return function(){e.Bc.destroy&&e.Bc.destroy()}}(t)),e.J.push(r)):G("Unrecognized control panel element requested:",r)}(this),this.I=Array.from(this.j.getElementsByClassName("shaka-settings-menu")),this.I.push.apply(this.I,d(Array.from(this.j.getElementsByClassName("shaka-overflow-menu")))),function(e){if(e.m.addSeekBar)e.s=lb.create(e.S,e),e.J.push(e.s);else for(var t=(e=c(e.I)).next();!t.done;t=e.next())t.value.classList.add("shaka-low-position")}(this),this.nc=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over")),tb(this);for(var t=(e=c(this.j.getElementsByClassName("shaka-no-propagation"))).next();!t.done;t=e.next()){t=t.value;var n=function(e){return e.stopPropagation()};this.h.o(t,"click",n),this.h.o(t,"dblclick",n)}},r.De=function(e){(this.ha=e)?(this.j.setAttribute("shaka-controls","true"),this.C.tabIndex=-1,this.C.controls=!1):this.j.removeAttribute("shaka-controls"),tb(this)},r.Df=function(e){this.C.controls=e,this.C.tabIndex=e?0:-1,e&&this.De(!1)},r.getAd=function(){return this.l},r.eg=function(){return this.B},r.rg=function(){return this.bb},r.Ig=function(){return this.j},r.Kb=function(){return this.g},r.qg=function(){return this.C},r.lc=function(){return this.G},r.pg=function(){return this.Ua},r.jg=function(){return this.i},r.Ag=function(){return this.zb},r.gg=function(){return this.$},r.hg=function(){return this.m},r.Ng=function(){return this.ka},r.He=function(e){this.ka=e},r.Lg=function(){return this.Db},r.jf=function(){return this.s?this.s.getValue():this.g.currentTime},r.Ef=function(e){this.M=e},r.jd=function(){return this.I.some(function(e){return!e.classList.contains("shaka-hidden")})},r.pc=function(){this.L.Ga()},r.Ne=function(){var e,t=this;return I(function(n){switch(n.g){case 1:if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),w(n,document.exitFullscreen(),0);if(x(n,4),!document.pictureInPictureElement){n.D(6);break}return w(n,document.exitPictureInPicture(),6);case 6:return w(n,t.j.requestFullscreen({navigationUI:"hide"}),8);case 8:if(!t.m.forceLandscapeOnFullscreen||!screen.orientation){n.D(9);break}return x(n,10),w(n,screen.orientation.lock("landscape"),12);case 12:S(n,9,4);break;case 10:E(n,4);case 9:S(n,0);break;case 4:e=E(n),t.dispatchEvent(new q("error",(new Map).set("detail",e))),n.D(0)}})},r.Gf=function(){Pv(this.P,!0),Pv(this.$,!0),this.i.setAttribute("ad-active","true")},r.mf=function(){Pv(this.P,!1),Pv(this.$,!1),this.i.removeAttribute("ad-active")},r.Ub=function(){return!!this.ha&&(null!=this.i.getAttribute("shown")||null!=this.i.getAttribute("casting"))},H("shaka.ui.Controls",Kv),Kv.prototype.isOpaque=Kv.prototype.Ub,Kv.prototype.hideAdUI=Kv.prototype.mf,Kv.prototype.showAdUI=Kv.prototype.Gf,Kv.prototype.toggleFullScreen=Kv.prototype.Ne,Kv.prototype.hideSettingsMenus=Kv.prototype.pc,Kv.prototype.anySettingsMenusAreOpen=Kv.prototype.jd,Kv.prototype.setLastTouchEventTime=Kv.prototype.Ef,Kv.prototype.getDisplayTime=Kv.prototype.jf,Kv.prototype.isCastAllowed=Kv.prototype.Lg,Kv.prototype.setSeeking=Kv.prototype.He,Kv.prototype.isSeeking=Kv.prototype.Ng,Kv.prototype.getConfig=Kv.prototype.hg,Kv.prototype.getClientSideAdContainer=Kv.prototype.gg,Kv.prototype.getServerSideAdContainer=Kv.prototype.Ag,Kv.prototype.getControlsContainer=Kv.prototype.jg,Kv.prototype.getLocalPlayer=Kv.prototype.pg,Kv.prototype.getPlayer=Kv.prototype.lc,Kv.prototype.getLocalVideo=Kv.prototype.qg,Kv.prototype.getVideo=Kv.prototype.Kb,Kv.prototype.getVideoContainer=Kv.prototype.Ig,Kv.prototype.getLocalization=Kv.prototype.rg,Kv.prototype.getCastProxy=Kv.prototype.eg,Kv.prototype.getAd=Kv.prototype.getAd,Kv.prototype.setEnabledNativeControls=Kv.prototype.Df,Kv.prototype.setEnabledShakaControls=Kv.prototype.De,Kv.prototype.configure=Kv.prototype.configure,Kv.prototype.loadComplete=Kv.prototype.Og,Kv.prototype.allowCast=Kv.prototype.Sf,Kv.registerSeekBar=function(e){lb=e},Kv.registerElement=Qv,Kv.prototype.destroy=Kv.prototype.destroy;var sb=new Map,lb=new Zv;function cb(e,t){Mv.call(this,e,t);var n=this;this.m=this.controls.m,this.j=this.controls.i,this.i=[],this.g=vs(),this.g.classList.add("shaka-overflow-menu-button"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.g.textContent="more_vert",this.parent.appendChild(this.g),this.h=gs("div"),this.h.classList.add("shaka-overflow-menu"),this.h.classList.add("shaka-no-propagation"),this.h.classList.add("shaka-show-controls-on-mouse-over"),this.h.classList.add("shaka-hidden"),this.j.appendChild(this.h),function(e){for(var t=c(e.m.overflowMenuButtons),n=t.next();!n.done;n=t.next())n=n.value,fb.get(n)?(n=fb.get(n),e.i.push(n.create(e.h,e.controls))):G("Unrecognized overflow menu element requested:",n)}(this),this.eventManager.o(this.localization,"locale-updated",function(){ub(n)}),this.eventManager.o(this.localization,"locale-changed",function(){ub(n)}),this.eventManager.o(this.adManager,"ad-started",function(){n.ad&&n.ad.isLinear()&&Pv(n.g,!1)}),this.eventManager.o(this.adManager,"ad-stopped",function(){Pv(n.g,!0)}),this.eventManager.o(this.controls,"submenuopen",function(){Pv(n.h,!1)}),this.eventManager.o(this.h,"touchstart",function(e){n.controls.Ef(Date.now()),e.stopPropagation()}),this.eventManager.o(this.g,"click",function(){!function(e){if(e.controls.jd())e.controls.pc();else{Pv(e.h,!0),tb(e.controls);var t=function(e){return 0==e.classList.contains("shaka-hidden")};(function(e,t){for(var n=c(e),r=n.next();!r.done;r=n.next())if(t(r.value))return!0;return!1})(e.h.childNodes,t)&&te(e.h.childNodes,t)[0].focus()}}(n)}),ub(this),this.ad&&this.ad.isLinear()&&Pv(this.g,!1)}function db(e,t){fb.set(e,t)}function ub(e){e.g.ariaLabel=e.localization.resolve("MORE_SETTINGS")}function hb(){}g(cb,Mv),cb.prototype.release=function(){this.j=null;for(var e=c(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],Mv.prototype.release.call(this)},H("shaka.ui.OverflowMenu",cb),cb.registerElement=db,hb.prototype.create=function(e,t){return new cb(e,t)},Qv("overflow_menu",new hb);var fb=new Map;function pb(t,n){Mv.call(this,t,n);var r=this;this.g=vs(),this.g.classList.add("shaka-airplay-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.h=gs("i"),this.h.classList.add("material-icons-round"),this.h.textContent="airplay",this.g.appendChild(this.h),e.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var i=gs("label");i.classList.add("shaka-overflow-button-label"),i.classList.add("shaka-overflow-menu-only"),this.j=gs("span"),i.appendChild(this.j),this.i=gs("span"),this.i.classList.add("shaka-current-selection-span"),i.appendChild(this.i),this.g.appendChild(i),this.parent.appendChild(this.g),gb(this),mb(this),this.eventManager.o(this.localization,"locale-updated",function(){gb(r)}),this.eventManager.o(this.localization,"locale-changed",function(){gb(r)}),this.eventManager.o(this.g,"click",function(){r.controls.Kb().webkitShowPlaybackTargetPicker()}),i=this.controls.Kb(),this.eventManager.o(i,"webkitplaybacktargetavailabilitychanged",function(e){var t=r.player.kf()==wc;Pv(r.g,"available"==e.availability&&t)}),this.eventManager.o(i,"webkitcurrentplaybacktargetiswirelesschanged",function(){mb(r)})}function mb(e){var t=e.controls.Kb();e.g.ariaPressed=t&&t.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function gb(e){e.g.ariaLabel=e.localization.resolve("AIRPLAY"),e.j.textContent=e.localization.resolve("AIRPLAY")}function vb(){}function bb(e,t,n){this.h=e,this.m=yb(this),t.dataset.shakaPlayerContainer="",t.ui=this,this.$d()&&t.classList.add("shaka-mobile"),this.g=new Kv(e,t,n,this.m),this.configure({}),n.controls||e.Ke(t),t.ui=this,n.ui=this}function yb(t){var n={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop","picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},trackLabelFormat:Cb,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1};return e.WebKitPlaybackTargetAvailabilityEvent&&n.overflowMenuButtons.push("airplay"),t.$d()&&(n.addBigPlayButton=!0,n.controlPanelElements=n.controlPanelElements.filter(function(e){return"play_pause"!=e&&"volume"!=e})),n}function wb(){var e,t,n,r,i,o,a,s,l,d,u,h;return I(function(f){switch(f.g){case 1:if(Tp(),!el())return kb("shaka-ui-load-failed",Sb),f.return();if(e=document.querySelectorAll("[data-shaka-player-container]"),!(t=document.querySelectorAll("[data-shaka-player]")).length&&!e.length){f.D(2);break}if(t.length&&!e.length){for(n=c(t),r=n.next();!r.done;r=n.next())(i=r.value).ui||(o=document.createElement("div"),i.parentElement.replaceChild(o,i),o.appendChild(i),xb(o,i));f.D(2);break}a=c(e),s=a.next();case 4:if(s.done){f.D(2);break}if((l=s.value).ui){f.D(5);break}for(d=null,u=c(t),r=u.next();!r.done;r=u.next())if((h=r.value).parentElement==l){d=h;break}return d||((d=document.createElement("video")).setAttribute("playsinline",""),l.appendChild(d)),x(f,7),w(f,xb(l,d),9);case 9:S(f,5);break;case 7:return E(f),kb("shaka-ui-load-failed",Eb),f.return();case 5:s=a.next(),f.D(4);break;case 2:kb("shaka-ui-loaded"),k(f)}})}function kb(e,t){var n=null;null!=t&&(n={reasonCode:t}),n=new CustomEvent(e,{detail:n}),document.dispatchEvent(n)}function xb(e,t){var n,r,i,o,a,s,l,d;return I(function(u){switch(u.g){case 1:n=new _s(t),r=new bb(n,e,t),i="",e.dataset&&e.dataset.shakaPlayerCastReceiverId?i=e.dataset.shakaPlayerCastReceiverId:t.dataset&&t.dataset.shakaPlayerCastReceiverId&&(i=t.dataset.shakaPlayerCastReceiverId),i.length&&r.configure({castReceiverAppId:i}),t.controls&&r.g.Df(!0),(o=t.getAttribute("src"))&&((a=document.createElement("source")).setAttribute("src",o),t.appendChild(a),t.removeAttribute("src")),s=c(t.querySelectorAll("source")),l=s.next();case 2:if(l.done){u.D(0);break}return d=l.value,x(u,5),w(u,r.g.lc().load(d.getAttribute("src")),7);case 7:u.D(0);break;case 5:E(u);case 3:l=s.next(),u.D(2)}})}g(pb,Mv),H("shaka.ui.AirPlayButton",pb),vb.prototype.create=function(e,t){return new pb(e,t)},db("airplay",new vb),Qv("airplay",new vb),(r=bb.prototype).destroy=function(){var e=this;return I(function(t){return 1==t.g?e.g?w(t,e.g.destroy(),2):t.D(2):4!=t.g?(e.g=null,e.h?w(t,e.h.destroy(),4):t.D(4)):(e.h=null,void k(t))})},r.$d=function(){return!!/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)||yn()&&1<navigator.maxTouchPoints},r.getConfiguration=function(){var e=yb(this);return qs(e,this.m,yb(this),{},""),e},r.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=Us(e,t)),qs(this.m,e,yb(this),{},""),this.m.castReceiverAppId&&!this.m.overflowMenuButtons.includes("cast")&&this.m.overflowMenuButtons.push("cast"),this.g.configure(this.m),this.g.dispatchEvent(new q("uiupdated"))},r.ig=function(){return this.g},r.oh=function(e){this.g.De(e)},H("shaka.ui.Overlay",bb),bb.prototype.setEnabled=bb.prototype.oh,bb.prototype.getControls=bb.prototype.ig,bb.prototype.configure=bb.prototype.configure,bb.prototype.getConfiguration=bb.prototype.getConfiguration,bb.prototype.isMobile=bb.prototype.$d,bb.prototype.destroy=bb.prototype.destroy;var Cb=0;bb.TrackLabelFormat={LANGUAGE:Cb,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Sb=0,Eb=1;function Mb(e,t,n,r,i,o,a){function s(e,t){return e+": "+t}function l(e){return"variant"==e.type?e.audioRoles?e.audioRoles.join(", "):void 0:e.roles.join(", ")}var d=e.find(function(e){return 1==e.active}),u=Tv(t);bs(t),t.appendChild(u),u=new Map;for(var h=c(e),f=h.next();!f.done;f=h.next())f=f.value,u.has(f.language)||u.set(f.language,new Set),u.get(f.language).add(l(f));for(u=new Set,d=d?s(d.language,l(d)):"",h={},f=(e=c(e)).next();!f.done;h={$a:h.$a},f=e.next()){h.$a=f.value,f=h.$a.language;var p=h.$a.forced,m=o.resolve(Qe),g=l(h.$a),v=s(f,g);if(!u.has(v)){u.add(v);var b=vs();b.addEventListener("click",function(e){return function(){n(e.$a)}}(h));var y=gs("span");switch(b.appendChild(y),y.textContent=Tb(f,o),a){case Cb:p&&(y.textContent+=" ("+m+")");break;case 1:g?y.textContent=g:(G("Track #"+h.$a.id+" does not have a role, but the UI is configured to only show role."),y.textContent="?"),p&&(y.textContent+=" ("+m+")");break;case 2:g&&(y.textContent+=": "+g),p&&(y.textContent+=" ("+m+")");break;case 3:h.$a.label?y.textContent=h.$a.label:(G("Track #"+h.$a.id+" does not have a label, but the UI is configured to only show labels."),y.textContent="?")}r&&v==d&&(b.appendChild(Ov()),y.classList.add("shaka-chosen-item"),b.ariaSelected="true",i.textContent=y.textContent),t.appendChild(b)}}}function Tb(e,t){if(!e&&!t)return"";switch(e){case"mul":return t.resolve("MULTIPLE_LANGUAGES");case"und":return t.resolve("UNDETERMINED_LANGUAGE");case"zxx":return t.resolve("NOT_APPLICABLE")}var n=Ve(e);return e in xv?xv[e].u:n in xv?xv[n].u+" ("+e+")":t.resolve("UNRECOGNIZED_LANGUAGE")+" ("+e+")"}function Ab(e,t,n){Mv.call(this,e,t);var r=this;!function(e,t){e.button=vs(),e.button.classList.add("shaka-overflow-button"),e.icon=gs("i"),e.icon.classList.add("material-icons-round"),e.icon.textContent=t,e.button.appendChild(e.icon);var n=gs("label");n.classList.add("shaka-overflow-button-label"),n.classList.add("shaka-overflow-menu-only"),e.nameSpan=gs("span"),n.appendChild(e.nameSpan),e.currentSelection=gs("span"),e.currentSelection.classList.add("shaka-current-selection-span"),n.appendChild(e.currentSelection),e.button.appendChild(n),e.parent.appendChild(e.button)}(this,n),function(e){e.menu=gs("div"),e.menu.classList.add("shaka-no-propagation"),e.menu.classList.add("shaka-show-controls-on-mouse-over"),e.menu.classList.add("shaka-settings-menu"),e.menu.classList.add("shaka-hidden"),e.backButton=vs(),e.backButton.classList.add("shaka-back-to-overflow-button"),e.menu.appendChild(e.backButton),e.eventManager.o(e.backButton,"click",function(){e.controls.pc()});var t=gs("i");t.classList.add("material-icons-round"),t.textContent="close",e.backButton.appendChild(t),e.backSpan=gs("span"),e.backButton.appendChild(e.backSpan),e.controls.i.appendChild(e.menu)}(this),function(e){e.parent.classList.contains("shaka-overflow-menu")&&(e.backButton.firstChild.textContent="arrow_back",e.eventManager.o(e.backButton,"click",function(){Pv(e.parent,!0),e.parent.childNodes[0].focus(),tb(e.controls)}))}(this),this.eventManager.o(this.button,"click",function(){r.menu.classList.contains("shaka-hidden")?(r.controls.dispatchEvent(new q("submenuopen")),Pv(r.menu,!0),jv(r.menu)):Pv(r.menu,!1)})}function jb(e,t){Ab.call(this,e,t,"language");var n=this;this.button.classList.add("shaka-language-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-audio-languages"),this.eventManager.o(this.localization,"locale-updated",function(){Pb(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Pb(n)}),this.eventManager.o(this.player,"trackschanged",function(){var e=0<n.player.fb().length;Pv(n.button,e),Ob(n)}),this.eventManager.o(this.player,"variantchanged",function(){Ob(n)}),Pb(this),Ob(this)}function Ob(e){Mb(e.player.fb(),e.menu,function(t){e.player.Dd(t.language,t.roles[0])},!0,e.currentSelection,e.localization,e.controls.m.trackLabelFormat),jv(e.menu),e.controls.dispatchEvent(new q("languageselectionupdated")),e.button.setAttribute("shaka-status",e.currentSelection.innerText)}function Pb(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("LANGUAGE"),e.nameSpan.textContent=e.localization.resolve("LANGUAGE"),e.backSpan.textContent=e.localization.resolve("LANGUAGE")}function Lb(){}function Ib(e,t){Mv.call(this,e,t);var n=this;this.h=this.controls.B,this.g=vs(),this.g.classList.add("shaka-cast-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.i=gs("i"),this.i.classList.add("material-icons-round"),this.i.textContent="cast",this.g.appendChild(this.i);var r=gs("label");r.classList.add("shaka-overflow-button-label"),r.classList.add("shaka-overflow-menu-only"),this.l=gs("span"),r.appendChild(this.l),this.j=gs("span"),this.j.classList.add("shaka-current-selection-span"),r.appendChild(this.j),this.g.appendChild(r),this.parent.appendChild(this.g),Db(this),Nb(this),this.eventManager.o(this.localization,"locale-updated",function(){Db(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Db(n)}),this.eventManager.o(this.g,"click",function(){!function(e){var t;I(function(n){return 1==n.g?e.h.xa()?(e.h.Hf(),n.D(0)):(x(n,3),e.g.disabled=!0,w(n,e.h.cast(),5)):3!=n.g?(e.g.disabled=!1,S(n,0)):(t=E(n),e.g.disabled=!1,8004!=t.code&&e.controls.dispatchEvent(new q("error",(new Map).set("detail",t))),void k(n))})}(n)}),this.eventManager.o(this.controls,"caststatuschanged",function(){Nb(n)})}function Nb(e){var t=e.h.Te()&&e.controls.Db,n=e.h.xa();Pv(e.g,t),e.i.textContent=n?"cast_connected":"cast",t&&(e.g.ariaPressed=n?"true":"false"),Rb(e)}function Rb(e){e.j.textContent=e.h.xa()?e.h.Bd():e.localization.resolve("OFF")}function Db(e){e.g.ariaLabel=e.localization.resolve("CAST"),e.l.textContent=e.localization.resolve("CAST"),Rb(e)}function Bb(){}function zb(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-fast-forward-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status","1x"),this.g.textContent="fast_forward",this.parent.appendChild(this.g),Fb(this),this.h=this.controls.m.fastForwardRates,this.eventManager.o(this.localization,"locale-updated",function(){Fb(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Fb(n)}),this.eventManager.o(this.g,"click",function(){if(n.video.duration){var e=n.h.indexOf(n.player.Jb())+1;e=e!=n.h.length?n.h[e]:n.h[0],n.player.Pe(e),n.g.setAttribute("shaka-status",e+"x")}})}function Fb(e){e.g.ariaLabel=e.localization.resolve("FAST_FORWARD")}function Hb(){}function qb(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("shaka-fullscreen-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),document.fullscreenEnabled||this.g.classList.add("shaka-hidden"),this.g.textContent="fullscreen",this.parent.appendChild(this.g),Ub(this),this.eventManager.o(this.localization,"locale-updated",function(){Ub(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Ub(n)}),this.eventManager.o(this.g,"click",function(){return I(function(e){return w(e,n.controls.Ne(),0)})}),this.eventManager.o(document,"fullscreenchange",function(){n.g.textContent=document.fullscreenElement?"fullscreen_exit":"fullscreen",Ub(n)})}function Ub(e){e.g.ariaLabel=e.localization.resolve(document.fullscreenElement?"EXIT_FULL_SCREEN":"FULL_SCREEN")}function Vb(){}function Xb(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("shaka-loop-button"),this.g.classList.add("shaka-tooltip"),this.i=gs("i"),this.i.classList.add("material-icons-round"),this.i.textContent="repeat",this.g.appendChild(this.i);var r=gs("label");r.classList.add("shaka-overflow-button-label"),r.classList.add("shaka-overflow-menu-only"),this.j=gs("span"),this.j.textContent=this.localization.resolve("LOOP"),r.appendChild(this.j),this.l=gs("span"),this.l.classList.add("shaka-current-selection-span"),r.appendChild(this.l),this.g.appendChild(r),Gb(this),this.parent.appendChild(this.g),this.eventManager.o(this.localization,"locale-updated",function(){Gb(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Gb(n)}),this.eventManager.o(this.g,"click",function(){n.video.loop=!n.video.loop,n.h.Ga(),n.h.na(1)}),this.s=this.video.loop,this.h=new pn(function(){n.s!=n.video.loop&&(Gb(n),n.s=n.video.loop)}),this.h.na(1)}function Gb(e){e.j.textContent=e.localization.resolve("LOOP"),e.l.textContent=e.localization.resolve(e.video.loop?"ON":"OFF"),e.i.textContent=e.video.loop?"repeat_on":"repeat",e.g.ariaLabel=e.localization.resolve(e.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}function Wb(){}function Jb(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("shaka-mute-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.parent.appendChild(this.g),Zb(this),Kb(this),this.eventManager.o(this.localization,"locale-updated",function(){Zb(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Zb(n)}),this.eventManager.o(this.g,"click",function(){n.ad&&n.ad.isLinear()?n.ad.setMuted(!n.ad.isMuted()):n.video.muted=!n.video.muted}),this.eventManager.o(this.video,"volumechange",function(){Zb(n),Kb(n)}),this.eventManager.o(this.adManager,"ad-volume-changed",function(){Zb(n),Kb(n)}),this.eventManager.o(this.adManager,"ad-muted",function(){Zb(n),Kb(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.ad=null,Zb(n),Kb(n)})}function Zb(e){var t=e.ad?e.ad.isMuted()?"UNMUTE":"MUTE":e.video.muted?"UNMUTE":"MUTE";e.g.ariaLabel=e.localization.resolve(t)}function Kb(e){var t=e.ad?e.ad.isMuted()?"volume_off":"volume_up":e.video.muted?"volume_off":"volume_up";e.g.textContent=t}function Yb(){}function Qb(e,t){Mv.call(this,e,t);var n=this;this.l=this.controls.C,this.g=vs(),this.g.classList.add("shaka-pip-button"),this.g.classList.add("shaka-tooltip"),this.i=gs("i"),this.i.classList.add("material-icons-round"),this.i.textContent="picture_in_picture_alt",this.g.appendChild(this.i);var r=gs("label");r.classList.add("shaka-overflow-button-label"),r.classList.add("shaka-overflow-menu-only"),this.j=gs("span"),this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE"),r.appendChild(this.j),this.h=gs("span"),this.h.classList.add("shaka-current-selection-span"),r.appendChild(this.h),this.g.appendChild(r),_b(this),this.parent.appendChild(this.g),document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Pv(this.g,!1),this.eventManager.o(this.localization,"locale-updated",function(){_b(n)}),this.eventManager.o(this.localization,"locale-changed",function(){_b(n)}),this.eventManager.o(this.g,"click",function(){!function(e){var t;I(function(n){return 1==n.g?(x(n,2),document.pictureInPictureElement?w(n,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),w(n,e.video.requestPictureInPicture(),5))):2!=n.g?S(n,0):(t=E(n),e.controls.dispatchEvent(new q("error",(new Map).set("detail",t))),void k(n))})}(n)}),this.eventManager.o(this.l,"enterpictureinpicture",function(){n.i.textContent="branding_watermark",n.g.ariaLabel=n.localization.resolve("EXIT_PICTURE_IN_PICTURE"),n.h.textContent=n.localization.resolve("ON")}),this.eventManager.o(this.l,"leavepictureinpicture",function(){n.i.textContent="picture_in_picture_alt",n.g.ariaLabel=n.localization.resolve("ENTER_PICTURE_IN_PICTURE"),n.h.textContent=n.localization.resolve("OFF")}),this.eventManager.o(this.controls,"caststatuschanged",function(e){e.newStatus?document.pictureInPictureEnabled&&!n.video.disablePictureInPicture&&Pv(n.g,!1):document.pictureInPictureEnabled&&!n.video.disablePictureInPicture&&Pv(n.g,!0)}),this.eventManager.o(this.player,"trackschanged",function(){!function(e){I(function(t){return!document.pictureInPictureEnabled||e.video.disablePictureInPicture?(Pv(e.g,!1),t.D(0)):e.player&&e.player.pf()?(Pv(e.g,!1),document.pictureInPictureElement?w(t,document.exitPictureInPicture(),0):t.D(0)):(Pv(e.g,!0),t.D(0))})}(n)})}function _b(e){e.j.textContent=e.localization.resolve("PICTURE_IN_PICTURE"),e.g.ariaLabel=e.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}function $b(){}function ey(e,t){Ab.call(this,e,t,"slow_motion_video");var n=this;this.button.classList.add("shaka-playbackrate-button"),this.menu.classList.add("shaka-playback-rates"),this.button.classList.add("shaka-tooltip-status"),this.eventManager.o(this.localization,"locale-updated",function(){ty(n)}),this.eventManager.o(this.localization,"locale-changed",function(){ty(n)}),this.eventManager.o(this.player,"ratechange",function(){ny(n,n.player.Jb())}),this.g=new Map(this.controls.m.playbackRates.map(function(e){return[e+"x",e]})),ty(this),function(e){for(var t={},n=c(e.g.keys()),r=n.next();!r.done;t={Cc:t.Cc},r=n.next()){t.Cc=r.value,r=vs();var i=gs("span");i.textContent=t.Cc,r.appendChild(i),e.eventManager.o(r,"click",function(t){return function(){e.video.playbackRate=e.g.get(t.Cc),e.video.defaultPlaybackRate=e.g.get(t.Cc)}}(t)),e.menu.appendChild(r)}jv(e.menu)}(this),ny(this,this.player.Jb())}function ty(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("PLAYBACK_RATE"),e.nameSpan.textContent=e.localization.resolve("PLAYBACK_RATE"),e.backSpan.textContent=e.localization.resolve("PLAYBACK_RATE")}function ny(e,t){var n=Av(e.menu,"material-icons-round shaka-chosen-item");if(n){var r=n.parentElement;r.removeAttribute("aria-selected"),r.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item"),r.removeChild(n)}(n=Array.from(e.menu.querySelectorAll("span")).find(function(n){return e.g.get(n.textContent)==t}))&&((r=n.parentElement).appendChild(Ov()),r.ariaSelected="true",n.classList.add("shaka-chosen-item")),e.currentSelection.textContent=t+"x",e.button.setAttribute("shaka-status",t+"x")}function ry(){}function iy(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("shaka-current-time"),oy(this,"0:00"),this.parent.appendChild(this.g),this.eventManager.o(this.g,"click",function(){n.player.W()&&(n.video.currentTime=n.player.Na().end)}),this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var e=n.controls.ka,t=n.controls.jf(),r=n.video.duration,i=n.player.Na(),o=i.end-i.start;n.player.W()?(r=3600<=o,1<=(t=Math.max(0,Math.floor(i.end-t)))||e?(oy(n,"- "+Lv(t,r)),n.g.disabled=!1):(oy(n,n.localization.resolve("LIVE")),n.g.disabled=!0)):(t=Lv(t,e=3600<=r),r&&(t+=" / "+Lv(r,e)),oy(n,t),n.g.disabled=!0)}),this.eventManager.o(this.player,"trackschanged",function(){n.player.W()&&(n.g.ariaLabel=n.localization.resolve("SKIP_TO_LIVE"))})}function oy(e,t){t!=e.g.textContent&&(e.g.textContent=t)}function ay(){}function sy(e,t){Ab.call(this,e,t,"settings");var n=this;this.button.classList.add("shaka-resolution-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-resolutions"),this.eventManager.o(this.localization,"locale-updated",function(){cy(n)}),this.eventManager.o(this.localization,"locale-changed",function(){cy(n)}),this.eventManager.o(this.player,"variantchanged",function(){ly(n)}),this.eventManager.o(this.player,"trackschanged",function(){ly(n)}),this.eventManager.o(this.player,"abrstatuschanged",function(){ly(n)}),ly(this),cy(this)}function ly(e){var t=e.player.fb();if(t.length&&!t[0].height)Pv(e.menu,!1),Pv(e.button,!1);else{Pv(e.button,!0),t.sort(function(e,t){return t.height-e.height});var n=t.find(function(e){return e.active});n&&(t=t.filter(function(e){return e.language==n.language&&e.channelsCount==n.channelsCount})),t=t.filter(function(e,n){return t.findIndex(function(t){return t.height==e.height})==n});var r=Tv(e.menu);bs(e.menu),e.menu.appendChild(r),r=e.player.getConfiguration().abr.enabled;for(var i={},o=c(t),a=o.next();!a.done;i={Fc:i.Fc},a=o.next()){i.Fc=a.value,(a=vs()).classList.add("explicit-resolution"),e.eventManager.o(a,"click",function(t){return function(){var n=t.Fc;e.player.configure({abr:{enabled:!1}}),e.player.Be(n,e.controls.m.clearBufferOnQualityChange)}}(i));var s=gs("span");s.textContent=i.Fc.height+"p",a.appendChild(s),r||i.Fc!=n||(a.ariaSelected="true",a.appendChild(Ov()),s.classList.add("shaka-chosen-item"),e.currentSelection.textContent=s.textContent),e.menu.appendChild(a)}(i=vs()).classList.add("shaka-enable-abr-button"),e.eventManager.o(i,"click",function(){e.player.configure({abr:{enabled:!0}}),ly(e)}),e.g=gs("span"),e.g.classList.add("shaka-auto-span"),e.g.textContent=e.localization.resolve("AUTO_QUALITY"),i.appendChild(e.g),r&&(i.ariaSelected="true",i.appendChild(Ov()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),e.menu.appendChild(i),jv(e.menu),e.controls.dispatchEvent(new q("resolutionselectionupdated"))}}function cy(e){e.button.ariaLabel=e.localization.resolve("RESOLUTION"),e.backButton.ariaLabel=e.localization.resolve("RESOLUTION"),e.backSpan.textContent=e.localization.resolve("RESOLUTION"),e.nameSpan.textContent=e.localization.resolve("RESOLUTION"),e.g.textContent=e.localization.resolve("AUTO_QUALITY"),e.player.getConfiguration().abr.enabled&&(e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY"))}function dy(){}function uy(e,t){Mv.call(this,e,t);var n=this;this.g=vs(),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-rewind-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status",this.localization.resolve("OFF")),this.g.textContent="fast_rewind",this.parent.appendChild(this.g),hy(this),this.h=this.controls.m.rewindRates,this.eventManager.o(this.localization,"locale-updated",function(){hy(n)}),this.eventManager.o(this.localization,"locale-changed",function(){hy(n)}),this.eventManager.o(this.g,"click",function(){if(n.video.duration){var e=n.h.indexOf(n.player.Jb())+1;e=e!=n.h.length?n.h[e]:n.h[0],n.player.Pe(e),n.g.setAttribute("shaka-status",e+"x")}})}function hy(e){e.g.ariaLabel=e.localization.resolve("REWIND")}function fy(){}function py(e,t){Mv.call(this,e,t);var n=this;this.j=gs("div"),this.j.classList.add("shaka-skip-ad-container"),this.parent.appendChild(this.j),this.h=gs("div"),this.h.classList.add("shaka-skip-ad-counter"),Pv(this.h,!1),this.j.appendChild(this.h),this.g=vs(),this.g.classList.add("shaka-skip-ad-button"),this.g.disabled=!0,Pv(this.g,!1),this.g.classList.add("shaka-no-propagation"),this.j.appendChild(this.g),my(this),this.i=new pn(function(){var e=Math.round(n.ad.getTimeUntilSkippable());0<e?n.h.textContent=e:(n.i.stop(),Pv(n.h,!1))}),this.eventManager.o(this.localization,"locale-updated",function(){my(n)}),this.eventManager.o(this.localization,"locale-changed",function(){my(n)}),this.eventManager.o(this.adManager,"ad-started",function(){gy(n)}),this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){n.ad.canSkipNow()&&(n.g.disabled=!1,n.i.stop(),Pv(n.h,!1))}),this.eventManager.o(this.adManager,"ad-stopped",function(){n.i.stop(),n.g.disabled=!0,Pv(n.g,!1),Pv(n.h,!1)}),this.eventManager.o(this.g,"click",function(){n.ad.skip()}),this.ad&&gy(this)}function my(e){e.g.textContent=e.localization.resolve("SKIP_AD")}function gy(e){e.ad.isSkippable()&&(Pv(e.g,!0),Pv(e.h,!0),e.h.textContent="",e.i.Ga(),e.i.na(.5))}function vy(e,t){Dv.call(this,e,t),this.button.classList.add("shaka-small-play-button"),this.button.classList.add("material-icons-round"),this.button.classList.add("shaka-tooltip"),this.h(),this.g()}function by(){}function yy(e,t){Mv.call(this,e,t);var n=gs("div");n.classList.add("shaka-spacer"),n.ariaHidden="true",this.parent.appendChild(n)}function wy(){}function ky(e,t){function n(e){return Lv(s.h[e],!1)+" (m)"}function r(e){return Math.round(s.h[e]/1e3)+" (kbits/s)"}function i(e){return s.h[e].toFixed(2)+" (s)"}function o(e){return s.h[e]+" (frames)"}function a(e){return s.h[e]+" (px)"}Mv.call(this,e,t);var s=this;this.i=vs(),this.i.classList.add("shaka-statistics-button"),this.j=gs("i"),this.j.classList.add("material-icons-round"),this.j.textContent="insert_chart_outlined",this.i.appendChild(this.j);var l=gs("label");l.classList.add("shaka-overflow-button-label"),this.B=gs("span"),l.appendChild(this.B),this.s=gs("span"),this.s.classList.add("shaka-current-selection-span"),l.appendChild(this.s),this.i.appendChild(l),this.parent.appendChild(this.i),this.g=gs("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-show-controls-on-mouse-over"),this.g.classList.add("shaka-statistics-container"),this.g.classList.add("shaka-hidden"),this.controls.i.appendChild(this.g),this.I=[],this.J=["stateHistory","switchHistory"],this.h=this.player.getStats(),this.C={},this.G={width:a,height:a,completionPercent:function(e){return s.h[e]+" (%)"},bufferingTime:i,drmTimeSeconds:i,licenseTime:i,liveLatency:i,loadLatency:i,manifestTimeSeconds:i,estimatedBandwidth:r,streamBandwidth:r,maxSegmentDuration:n,pauseTime:n,playTime:n,corruptedFrames:o,decodedFrames:o,droppedFrames:o},this.l=new pn(function(){s.h=s.player.getStats();for(var e=c(s.I),t=e.next();!t.done;t=e.next())t=t.value,s.C[t].textContent=s.G[t](t)}),xy(this),function(e){for(var t=c(e.controls.m.statisticsList),n=t.next();!n.done;n=t.next())if((n=n.value)in e.h&&!e.J.includes(n)){var r=e.g,i=r.appendChild,o=e,a=gs("div"),s=gs("label");s.textContent=n+":",a.appendChild(s),(s=gs("span")).textContent=o.G[n](n),a.appendChild(s),o.C[n]=s,i.call(r,a),e.I.push(n)}else G("Unrecognized statistic element:",n)}(this),this.eventManager.o(this.localization,"locale-updated",function(){xy(s)}),this.eventManager.o(this.localization,"locale-changed",function(){xy(s)}),this.eventManager.o(this.i,"click",function(){Pv(s.parent,!1),s.g.classList.contains("shaka-hidden")?(s.j.textContent="insert_chart",s.l.na(.1),Pv(s.g,!0)):(s.j.textContent="insert_chart_outlined",s.l.stop(),Pv(s.g,!1)),xy(s)})}function xy(e){e.B.textContent=e.localization.resolve("STATISTICS"),e.i.ariaLabel=e.localization.resolve("STATISTICS"),e.s.textContent=e.localization.resolve(e.g.classList.contains("shaka-hidden")?"OFF":"ON")}function Cy(){}function Sy(e,t){Ab.call(this,e,t,"closed_caption");var n=this;this.button.classList.add("shaka-caption-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-text-languages"),this.player&&this.player.Vb()?this.button.ariaPressed="true":this.button.ariaPressed="false",function(e){var t=vs();t.ariaSelected="true",e.menu.appendChild(t),t.appendChild(Ov()),e.g=gs("span"),e.g.classList.add("shaka-auto-span"),t.appendChild(e.g)}(this),this.eventManager.o(this.localization,"locale-updated",function(){Ty(n),My(n)}),this.eventManager.o(this.localization,"locale-changed",function(){Ty(n),My(n)}),this.eventManager.o(this.player,"texttrackvisibility",function(){Ey(n),My(n)}),this.eventManager.o(this.player,"textchanged",function(){My(n)}),this.eventManager.o(this.player,"trackschanged",function(){Ay(n)}),Ey(this),Ty(this),My(this),Ay(this)}function Ey(e){e.player.Vb()?(e.icon.textContent="closed_caption_disabled",e.button.ariaPressed="true"):(e.icon.textContent="closed_caption",e.button.ariaPressed="false"),e.controls.dispatchEvent(new q("captionselectionupdated"))}function My(e){var t=e.player.vb();Mb(t,e.menu,function(t){return function(e,t){return I(function(n){return e.player.Ae(t),w(n,e.player.Je(!0),0)})}(e,t)},e.player.Vb(),e.currentSelection,e.localization,e.controls.m.trackLabelFormat),(t=vs()).classList.add("shaka-turn-captions-off-button"),e.eventManager.o(t,"click",function(){e.player.Je(!1),My(e)}),t.appendChild(e.g),e.menu.appendChild(t),e.player.Vb()||(t.ariaSelected="true",t.appendChild(Ov()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("OFF")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),jv(e.menu),e.controls.dispatchEvent(new q("captionselectionupdated"))}function Ty(e){e.button.ariaLabel=e.localization.resolve("CAPTIONS"),e.backButton.ariaLabel=e.localization.resolve("BACK"),e.nameSpan.textContent=e.localization.resolve("CAPTIONS"),e.backSpan.textContent=e.localization.resolve("CAPTIONS"),e.g.textContent=e.localization.resolve("OFF")}function Ay(e){var t=0<e.player.vb().length;Pv(e.button,t),My(e)}function jy(){}function Oy(e,t){qv.call(this,e,t,["shaka-volume-bar-container"],["shaka-volume-bar"]);var n=this;this.m=this.controls.m,this.eventManager.o(this.video,"volumechange",function(){return Py(n)}),this.eventManager.o(this.adManager,"ad-volume-changed",function(){return Ly(n)}),this.eventManager.o(this.adManager,"ad-muted",function(){return Ly(n)}),this.eventManager.o(this.adManager,"ad-stopped",function(){return Py(n)}),this.eventManager.o(this.localization,"locale-updated",function(){return Ny(n)}),this.eventManager.o(this.localization,"locale-changed",function(){return Ny(n)}),Py(this),Ny(this),this.ad&&this.onChange()}function Py(e){e.video.muted?e.setValue(0):e.setValue(e.video.volume),Iy(e)}function Ly(e){var t=e.ad.getVolume();e.setValue(t),Iy(e)}function Iy(e){var t=e.m.volumeBarColors,n=["to right"];n.push(t.level+100*e.getValue()+"%"),n.push(t.base+100*e.getValue()+"%"),n.push(t.base+"100%"),e.container.style.background="linear-gradient("+n.join(",")+")"}function Ny(e){e.bar.ariaLabel=e.localization.resolve("VOLUME")}function Ry(){}bb.FailReasonCode={NO_BROWSER_SUPPORT:Sb,PLAYER_FAILED_TO_LOAD:Eb},"complete"==document.readyState?I(function(e){if(1==e.g)return w(e,Promise.resolve(),2);wb(),k(e)}):e.addEventListener("load",wb),g(Ab,Mv),H("shaka.ui.SettingsMenu",Ab),g(jb,Ab),H("shaka.ui.AudioLanguageSelection",jb),Lb.prototype.create=function(e,t){return new jb(e,t)},db("language",new Lb),Qv("language",new Lb),g(Ib,Mv),H("shaka.ui.CastButton",Ib),Bb.prototype.create=function(e,t){return new Ib(e,t)},db("cast",new Bb),Qv("cast",new Bb),g(zb,Mv),H("shaka.ui.FastForwardButton",zb),Hb.prototype.create=function(e,t){return new zb(e,t)},Qv("fast_forward",new Hb),g(qb,Mv),H("shaka.ui.FullscreenButton",qb),Vb.prototype.create=function(e,t){return new qb(e,t)},Qv("fullscreen",new Vb),g(Xb,Mv),Xb.prototype.release=function(){this.h.stop(),this.h=null,Mv.prototype.release.call(this)},H("shaka.ui.LoopButton",Xb),Wb.prototype.create=function(e,t){return new Xb(e,t)},db("loop",new Wb),Qv("loop",new Wb),Fv("loop",new Wb),g(Jb,Mv),H("shaka.ui.MuteButton",Jb),Yb.prototype.create=function(e,t){return new Jb(e,t)},Qv("mute",new Yb),g(Qb,Mv),H("shaka.ui.PipButton",Qb),$b.prototype.create=function(e,t){return new Qb(e,t)},db("picture_in_picture",new $b),Qv("picture_in_picture",new $b),Fv("picture_in_picture",new $b),g(ey,Ab),H("shaka.ui.PlaybackRateSelection",ey),ry.prototype.create=function(e,t){return new ey(e,t)},db("playback_rate",new ry),Qv("playback_rate",new ry),g(iy,Mv),H("shaka.ui.PresentationTimeTracker",iy),ay.prototype.create=function(e,t){return new iy(e,t)},Qv("time_and_duration",new ay),g(sy,Ab),H("shaka.ui.ResolutionSelection",sy),dy.prototype.create=function(e,t){return new sy(e,t)},db("quality",new dy),Qv("quality",new dy),g(uy,Mv),H("shaka.ui.RewindButton",uy),fy.prototype.create=function(e,t){return new uy(e,t)},Qv("rewind",new fy),g(py,Mv),py.prototype.release=function(){this.i.stop(),this.i=null,Mv.prototype.release.call(this)},H("shaka.ui.SkipAdButton",py),g(vy,Dv),vy.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"},vy.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var e=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(e)}},H("shaka.ui.SmallPlayButton",vy),by.prototype.create=function(e,t){return new vy(e,t)},Qv("play_pause",new by),g(yy,Mv),H("shaka.ui.Spacer",yy),wy.prototype.create=function(e,t){return new yy(e,t)},Qv("spacer",new wy),g(ky,Mv),ky.prototype.release=function(){this.l.stop(),this.l=null,Mv.prototype.release.call(this)},H("shaka.ui.StatisticsButton",ky),Cy.prototype.create=function(e,t){return new ky(e,t)},db("statistics",new Cy),Fv("statistics",new Cy),g(Sy,Ab),H("shaka.ui.TextSelection",Sy),jy.prototype.create=function(e,t){return new Sy(e,t)},db("captions",new jy),Qv("captions",new jy),g(Oy,qv),Oy.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume)},H("shaka.ui.VolumeBar",Oy),Ry.prototype.create=function(e,t){return new Oy(e,t)},Qv("volume",new Ry)}.call(t,e,e,void 0),t.shaka)s[n]=t.shaka[n]}();var d=["src","config","chromeless","className"];function u(e,n){var a=e.src,s=e.config,l=e.chromeless,u=e.className,h=i(e,d),f=t.default.useRef(null),p=t.default.useRef(null),m=o(t.default.useState(null),2),g=m[0],v=m[1],b=o(t.default.useState(null),2),y=b[0],w=b[1];return t.default.useEffect(function(){var e=new c.Player(p.current);if(v(e),!l){var t=new c.ui.Overlay(e,f.current,p.current);w(t)}return function(){e.destroy()}},[]),t.default.useEffect(function(){g&&s&&g.configure(s)},[g,s]),t.default.useEffect(function(){g&&a&&g.load(a)},[g,a]),t.default.useImperativeHandle(n,function(){return{get player(){return g},get ui(){return y},get videoElement(){return p.current}}},[g,y]),t.default.createElement("div",{ref:f,className:u},t.default.createElement("video",r({ref:p,style:{maxWidth:"100%",width:"100%"}},h)))}return Bj=t.default.forwardRef(u)}();const Hj=sl(Fj),qj="_vod-player_1lmjo_1",Uj="_vod-player__player_1lmjo_13",Vj=({attachmentId:e})=>{const[r,i]=n.useState(null),[o,a]=n.useState(!1),s=n.useRef(!0),l=n.useRef(null),c=async()=>{try{const t=await fetch(`/v1/attachments/${e}/vod`,{method:"GET",credentials:"include",headers:{Accept:"*/*"}});if(!t.ok)throw new Error("Не удалось получить VOD ссылку");const n=await t.json();if(!s.current)return;if(n.ready){const e=new URL(n.url,window.location.origin).toString();i(e)}else l.current=setTimeout(()=>{c()},3e3)}catch(t){if(!s.current)return;a(!0)}};return n.useEffect(()=>(s.current=!0,i(null),a(!1),c(),()=>{s.current=!1,l.current&&clearTimeout(l.current)}),[e]),o?t.jsx("div",{className:"vod-player__status vod-player__status--error",children:"❌ Video loading error"}):r?t.jsx("div",{className:qj,children:t.jsx(Hj,{autoPlay:!0,className:Uj,src:r})}):t.jsx(Dj,{c:"white"})},Xj=({attachment:e,onClose:r,translation:s,isVideo:l})=>{const{t:c}=i.useTranslation(),[d,u]=n.useState(null),[h,f]=n.useState(!1);n.useEffect(()=>{e.id&&!l?async function(e){f(!0);const t=await fetch(`/v1/attachments/${e}`,{method:"GET"});if(!t.ok)throw f(!1),new Error(`Ошибка при загрузке: ${t.statusText}`);const n=await t.blob();u(window.URL.createObjectURL(n)),f(!1)}(e.id):u(e.Url||null)},[e.Url,e.id,l]);const p=n.useCallback(t=>{t.stopPropagation(),d&&(e.id?aa(d,e.originalFileName||"file"):sa(d,"file"))},[e.id,e.originalFileName,d]);return t.jsxs(t.Fragment,{children:[t.jsxs(o.Flex,{justify:"space-between",align:"center",pos:"absolute",top:0,left:0,right:0,gap:8,py:16,px:24,style:{background:"linear-gradient(rgb(16, 18, 20), rgba(14, 22, 36, 0)) 0px center no-repeat",zIndex:99},children:[t.jsxs(o.Flex,{align:"center",gap:12,miw:0,children:[t.jsx(o.Flex,{justify:"center",align:"center",gap:8,style:{flexShrink:0,width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"var(--mantine-color-blue-5)",color:"var(--mantine-color-white)"},children:l?t.jsx(a.IconVideo,{size:18}):t.jsx(a.IconPhoto,{size:18})}),t.jsxs(o.Stack,{gap:0,miw:0,children:[e.originalFileName&&t.jsx(o.Text,{size:"md",c:"white",truncate:"end",children:e.originalFileName}),e.fileSize?t.jsxs(o.Text,{size:"sm",c:"dark.1",truncate:"end",children:[e.contentType," / ",Nj(e.fileSize)]}):null]})]}),t.jsxs(o.Flex,{gap:4,children:[t.jsx(o.Tooltip,{label:s?s.download:c("common.action.download"),openDelay:200,keepMounted:!1,children:t.jsx(o.ActionIcon,{size:"lg",variant:"subtle",color:"gray.0",onClick:p,children:t.jsx(a.IconDownload,{})})}),t.jsx(o.Tooltip,{label:s?s.close:c("common.action.close"),openDelay:200,keepMounted:!1,children:t.jsx(o.ActionIcon,{size:"lg",variant:"subtle",color:"gray.0",onClick:r,children:t.jsx(a.IconX,{})})})]})]}),t.jsx(o.Flex,{justify:"center",align:"center",styles:{root:{width:"100%",height:"100%",minHeight:320}},children:h?t.jsx(o.Flex,{dir:"column",children:t.jsx(Dj,{})}):d||l?l?t.jsx(Vj,{attachmentId:e.id}):t.jsx(o.Image,{mah:"100dvh",fit:"contain",maw:"100%",w:"initial",src:d}):t.jsx(o.Text,{c:"red",children:s?s.errorFile:c("notification.error.getFile")})})]})},Gj=n.memo(({attachments:e,onOpenChange:r,opened:i,setShowAttach:s,showAttach:l,translation:c})=>{const{isFirst:d,isLast:u,currentIndex:h}=n.useMemo(()=>{var t,n;return{isFirst:(null==(t=e[0])?void 0:t.Url)===(null==l?void 0:l.Url),isLast:(null==(n=e[e.length-1])?void 0:n.Url)===(null==l?void 0:l.Url),currentIndex:e.findIndex(e=>e.Url===(null==l?void 0:l.Url))}},[e,null==l?void 0:l.Url]);if(!e.length||!l)return null;const f=Lj(l.contentType,l.originalFileName);return t.jsx(o.Modal,{transitionProps:{duration:0},zIndex:203,styles:{content:{backgroundColor:"var(--mantine-color-dark-8)"},body:{height:"100%"}},withCloseButton:!1,opened:i,onClose:()=>null==r?void 0:r(!1),fullScreen:!0,children:t.jsxs(o.Flex,{align:"center",styles:{root:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},children:[l&&t.jsx(t.Fragment,{children:t.jsx(Xj,{attachment:l,isVideo:f,onClose:()=>r(!1),translation:c})}),!d&&!f&&t.jsx(o.ActionIcon,{variant:"white",color:"dark",autoContrast:!0,radius:"xl",size:36,pos:"absolute",top:"calc(50% - 18px)",left:"16px",onClick:()=>{s&&e[h-1]&&s(e[h-1])},children:t.jsx(a.IconChevronLeft,{})}),!u&&!f&&t.jsx(o.ActionIcon,{variant:"white",color:"dark",autoContrast:!0,radius:"xl",size:36,pos:"absolute",top:"calc(50% - 18px)",right:"16px",onClick:()=>{s&&e[h+1]&&s(e[h+1])},children:t.jsx(a.IconChevronRight,{})})]})})}),Wj=ot(()=>({opened:!1,src:""})),Jj=()=>{Wj.setState({opened:!1})},Zj=n.memo(()=>{const{src:e,opened:r}=Wj(),{t:s}=i.useTranslation(),l=n.useCallback(t=>{var n;t.stopPropagation(),null==(n=window.open(e,"_blank"))||n.focus()},[e]);return t.jsx(o.Modal,{transitionProps:{duration:0},styles:{content:{backgroundColor:"var(--mantine-color-dark-8)"},body:{height:"100%"}},withCloseButton:!1,opened:r,onClose:Jj,fullScreen:!0,children:t.jsx(o.Flex,{align:"center",styles:{root:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"}},children:t.jsxs(t.Fragment,{children:[t.jsxs(o.Flex,{justify:"space-between",align:"center",pos:"absolute",top:0,left:0,right:0,gap:8,py:16,px:24,style:{background:"linear-gradient(rgb(16, 18, 20), rgba(14, 22, 36, 0)) 0px center no-repeat",zIndex:99},children:[t.jsxs(o.Flex,{align:"center",gap:12,miw:0,children:[t.jsx(o.Flex,{justify:"center",align:"center",gap:8,style:{flexShrink:0,width:"32px",height:"32px",borderRadius:"4px",backgroundColor:"var(--mantine-color-blue-5)",color:"var(--mantine-color-white)"},children:t.jsx(a.IconPhoto,{size:18})}),t.jsx(o.Stack,{gap:0,miw:0,children:t.jsx(o.Text,{size:"md",c:"white",truncate:"end",maw:300,children:e})})]}),t.jsxs(o.Flex,{gap:4,children:[t.jsx(o.Tooltip,{label:s("common.action.download"),openDelay:200,keepMounted:!1,children:t.jsx(o.ActionIcon,{size:"lg",variant:"subtle",color:"gray.0",onClick:l,children:t.jsx(a.IconDownload,{})})}),t.jsx(o.Tooltip,{label:s("common.action.close"),openDelay:200,keepMounted:!1,children:t.jsx(o.ActionIcon,{size:"lg",variant:"subtle",color:"gray.0",onClick:Jj,children:t.jsx(a.IconX,{})})})]})]}),t.jsx(o.Flex,{justify:"center",align:"center",styles:{root:{width:"100%",height:"100%",minHeight:320}},children:t.jsx(o.Image,{mah:"100dvh",fit:"contain",maw:"100%",w:"initial",src:e})})]})})})}),Kj={close:a.IconX,message:a.IconMessage,reply:a.IconArrowBackUp,filter:a.IconFilter,messages:a.IconMessages,emoji:a.IconMoodSmile,"dots-vertical":a.IconDotsVertical,"shield-check":a.IconShieldCheckFilled,reOpen:a.IconReload,send:a.IconSend,paperclip:a.IconPaperclip,"check-mark":a.IconCheck,doubleChevrons:a.IconChevronsRight,"close-panel":a.IconLayoutSidebarLeftExpand},Yj=({name:e,iconStyle:n,...r})=>{const i=Kj[e]||Kj.bullet;return t.jsx(o.Flex,{gap:0,justify:"center",align:"center",...r,children:t.jsx(i,{size:18,stroke:2,style:n,...r})})},Qj="_commentPluginCommentsPanelSidebar_gdfwu_12",_j="_commentPluginThreadWrapper_gdfwu_32",$j="_commentsBodyWrapper_gdfwu_36",eO="_commentsPanelBody_gdfwu_40",tO="_commentPluginImagePreviewList_gdfwu_46",nO="_commentPluginCommentsPanelList_gdfwu_50",rO="_commentPluginImagePreviewItem_gdfwu_54",iO="_commentPluginCommentsPanelEmpty_gdfwu_60",oO="_commentPluginGeneralCommentWrapper_gdfwu_64",aO="_commentPluginCommentsPanel_gdfwu_12",sO="_commentPluginCommentsPanelListThreadEditor_gdfwu_86",lO="_commentPluginImagePreviewContainer_gdfwu_94",cO="_commentPluginImagePreviewImage_gdfwu_98",dO="_commentPluginInputFooterContainer_gdfwu_109",uO="_edited_gdfwu_177",hO="_commentPluginEditorContainer_gdfwu_183",fO="_commentPluginCommentsPanelListDetails_gdfwu_191",pO="_commentPluginCommentsPanelListCommentAuthor_gdfwu_197",mO="_commentPluginCommentsPanelListCommentTime_gdfwu_201",gO="_commentPluginCommentsPanelListThread_gdfwu_86",vO="_commentPluginCommentsPanelListThreadComments_gdfwu_211",bO="_commentPluginThreadContainer_gdfwu_215",yO="_commentPluginShowMoreBtn_gdfwu_219",wO="_commentPluginCommentsPanelListThreadQuoteBox_gdfwu_247",kO="_commentPluginCommentsPanelListThreadQuote_gdfwu_247",xO="_commentPluginCommentsPanelListThreadQuoteText_gdfwu_265",CO="_commentPluginCommentsPanelReactionsContainer_gdfwu_294",SO="_commentPluginCommentsPanelListContentContainer_gdfwu_307",EO="_commentPluginFilePreviewList_gdfwu_352",MO="_commentPluginFilePreviewItem_gdfwu_352",TO="_threadActionIcon_gdfwu_417",AO="_commentPluginCommentsPanelActionContainer_gdfwu_423",jO="_commentEmojiPopupIcon_gdfwu_484",OO="_commentPluginCommentsPanelListThreadAccepted_gdfwu_495",PO="_commentsHeaderTitle_gdfwu_502",LO="_commentsHeaderWrapper_gdfwu_528",IO="_commentPluginThreadEditorControls_gdfwu_610",NO="_commentSubmitButton_gdfwu_615",RO="_threadEditorControlsUpload_gdfwu_620",DO="_threadEditorControlsFileInput_gdfwu_628",BO="_threadEditorControlsActionIcon_gdfwu_642",zO="_commentPluginCommentThreadResponses_gdfwu_652",FO="_guest_gdfwu_672",HO="_commentPluginImagePreviewWrapper_gdfwu_727",qO="_commentPluginImagePreviewRemoveButton_gdfwu_751",UO="_commentPluginFilePreviewContainer_gdfwu_774",VO="_commentPluginFileCard_gdfwu_584",XO="_commentPluginFileCardIcon_gdfwu_838",GO="_commentPluginFileCardInfo_gdfwu_846",WO="_commentPluginFileCardName_gdfwu_854",JO="_commentPluginFileCardSize_gdfwu_863",ZO="_commentPluginCommentsPanelEmptyTitle_gdfwu_1079";function KO(e){setTimeout(()=>{const t=document.querySelector(e);t&&t.scrollTo({top:0,behavior:"smooth"})},100)}const YO=(e,t)=>{switch(e){case"thread":return t.deleteModal.description.thread;case"general":return t.deleteModal.description.general;default:return t.deleteModal.description.comment}},QO=(e,t)=>{switch(e){case"thread":return t.deleteModal.title.thread;case"general":return t.deleteModal.title.general;default:return t.deleteModal.title.comment}};function _O(e){setTimeout(()=>{const t=null==e?void 0:e.current;if(!t)return;const n=t.firstElementChild;if(!n)return;const r=function(e){let t=null==e?void 0:e.parentElement;for(;t;){const e=getComputedStyle(t);if(/(auto|scroll)/.test(e.overflowY))return t;t=t.parentElement}return window}(t),i=n.getBoundingClientRect(),o=r instanceof Window?document.documentElement.getBoundingClientRect():r.getBoundingClientRect();i.top>=o.top&&i.top<o.bottom-100||(r instanceof Window?n.scrollIntoView({behavior:"smooth",block:"start"}):r.scrollTo({top:n.offsetTop+300,behavior:"smooth"}))},100)}function $O(e,t,n,r){e(e=>{if("boolean"==typeof n||"string"==typeof n)return e[t]===n?e:(_O(r),{...e,[t]:n});if(!n)return"boolean"==typeof e[t]?{...e,[t]:!e[t]}:e;if(Array.isArray(e[t])){r&&_O(r);const i=e[t],o=n,a=i.some(e=>e.userId===o.userId)?i.filter(e=>e.userId!==o.userId):[...i,o];return{...e,[t]:a}}return e})}const eP=function(){const e=navigator.userAgentData;return(null==e?void 0:e.platform)?e.platform:navigator.platform?navigator.platform:navigator.userAgent||""}(),tP=/Mac|macOS|iPod|iPhone|iPad/.test(eP);function nP(e,t,n){return e&&t?n.inputEditor.clearModal.description.both:e?n.inputEditor.clearModal.description.text:t?n.inputEditor.clearModal.description.files:n.inputEditor.clearModal.description.empty}const rP=(e,t=!1)=>{const n=e.type.startsWith("image/");return{id:e.id?e.id:t?`temp-${crypto.randomUUID()}`:crypto.randomUUID(),file:e,isImage:n,src:n?URL.createObjectURL(e):""}},iP=ot(e=>({workspaceMembers:[],currentUser:void 0,showComments:!1,adminPermission:!1,commentOptions:void 0,getEditor:void 0,selectMarkNode:()=>{},isSidebar:!0,isGuest:!1,commentsLocales:{title:"",edited:"",filter:{resolved:"",open:"",all:"",selectUsers:"",searchPlaceholder:"",emptyPlaceholder:"",byStatus:"",byPerson:""},generalComment:"",addComment:"",replyComment:"",inputEditor:{uploadFiles:"",sendMessage:"",editMessage:"",clear:"",clearModal:{title:"",description:{both:"",text:"",files:"",empty:""}},discardModal:{title:"",description:"",labels:{confirm:"",cancel:""}},cancelCommentModal:{description:""}},notifications:{title:"",description:"",options:{all:"",replies:""},uploadMessages:{tooManyFiles:"",fileTooLarge:"",fileLimit:""}},actionTooltips:{resolve:"",reopen:"",addReaction:"",reactionLimit:"",reply:""},menuActions:{edit:"",delete:"",download:""},deleteModal:{title:{thread:"",general:"",comment:""},description:{thread:"",general:"",comment:""},actions:{cancel:"",delete:"",remove:""}},repliesToggle:{show_one:"",show_other:"",hide:""},emptyState:{all:"",resolved:"","not-resolved":"",userFilter:""}},initializeComments:t=>{e(()=>{var e,n;return{workspaceMembers:t.workspaceMembers||[],currentUser:t.currentUser,showComments:t.showComments??!1,adminPermission:null==(e=t.commentOptions)?void 0:e.adminPermission,commentOptions:t.commentOptions,getEditor:t.getEditor,selectMarkNode:t.selectMarkNode,isSidebar:t.isSidebar,isGuest:null==(n=t.commentOptions)?void 0:n.isGuest,commentsLocales:t.commentsLocales??{title:"",edited:"",filter:{resolved:"",open:"",all:"",selectUsers:"",searchPlaceholder:"",emptyPlaceholder:"",byStatus:"",byPerson:""},generalComment:"",addComment:"",replyComment:"",inputEditor:{uploadFiles:"",sendMessage:"",editMessage:"",clear:"",clearModal:{title:"",description:{both:"",text:"",files:"",empty:""}},discardModal:{title:"",description:"",labels:{confirm:"",cancel:""}},cancelCommentModal:{description:""}},notifications:{title:"",description:"",options:{all:"",replies:""},uploadMessages:{tooManyFiles:"",fileTooLarge:"",fileLimit:""}},actionTooltips:{resolve:"",reopen:"",addReaction:"",reactionLimit:"",reply:""},menuActions:{edit:"",delete:"",download:""},deleteModal:{title:{thread:"",general:"",comment:""},description:{thread:"",general:"",comment:""},actions:{cancel:"",delete:"",remove:""}},repliesToggle:{show_one:"",show_other:"",hide:""},emptyState:{all:"",resolved:"","not-resolved":"",userFilter:""}}}})}})),oP=({commentsFilter:e,listRef:n})=>{const r=iP(e=>e.commentsLocales).emptyState[e.resolved];return t.jsxs("div",{ref:n,className:iO,children:[t.jsx(Yj,{name:"messages",color:"#ADB5BD",size:24}),t.jsx("div",{className:ZO,children:r})]})},aP=({commentsFilter:e,setCommentsFilter:n,listRef:r})=>{var i,a,s;const l=iP(e=>e.commentsLocales),c=iP(e=>e.isSidebar);return t.jsx(o.Tabs,{value:e.resolved,onChange:e=>{e&&$O(n,"resolved",e,r)},variant:"pills",color:"light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-3))",styles:{list:{gap:4},tab:{color:"light-dark(black, var(--mantine-color-gray-3))"},root:{marginBottom:16,marginTop:6,marginLeft:4}},children:t.jsxs(o.Tabs.List,{children:[t.jsx(o.Tabs.Tab,{value:"not-resolved",children:null==(i=l.filter)?void 0:i.open}),t.jsx(o.Tabs.Tab,{value:"resolved",children:null==(a=l.filter)?void 0:a.resolved}),!c&&t.jsx(o.Divider,{mx:"2px",my:-2,size:"xs",orientation:"vertical",color:"light-dark(#DEE2E6, var(--mantine-color-gray-7))"}),t.jsx(o.Tabs.Tab,{value:"all",children:null==(s=l.filter)?void 0:s.all})]})})},sP=({commentsFilter:e,setCommentsFilter:n,commentValue:r,updateThreadId:i,listRef:a,setCommentValue:s,submitAddComment:l})=>{const c=iP(e=>{var t;return null==(t=e.commentOptions)?void 0:t.setShowComments}),{getEditor:d,isSidebar:u,isGuest:h}=iP.getState(),f=iP(e=>e.commentsLocales);return t.jsxs(t.Fragment,{children:[u&&t.jsxs("div",{className:LO,children:[t.jsxs("div",{className:PO,children:[t.jsx(o.ActionIcon,{color:"black",size:"md","aria-label":"Close",variant:"transparent",onClick:()=>c&&c(!1),children:t.jsx(Yj,{size:20,name:"close-panel"})}),t.jsx(NU,{commentsFilter:e,setCommentsFilter:n})]}),t.jsx(o.Divider,{my:"md"})]}),t.jsxs("div",{className:$j,children:[t.jsx(aP,{listRef:a,commentsFilter:e,setCommentsFilter:n}),!h&&t.jsx("div",{className:oO,children:t.jsx(xP,{commentValue:r,setCommentValue:s,handleBlur:()=>{s({files:[],value:""})},autoFocus:!1,isGeneral:!0,updateThreadId:i,submitAddComment:l,placeholder:f.generalComment,children:({onSubmit:e,handleBlur:t,autoFocus:n,setCommentValue:r,commentValue:i,registerClearEditor:o,editorRef:a})=>null==d?void 0:d({onSubmit:e,handleBlur:t,autoFocus:n,setCommentValue:r,commentValue:i,registerClearEditor:o,editorRef:a})})})]})]})},lP=({handleEditClick:e,commentOrThread:n,deleteCommentOrThread:r,hasPermission:i})=>{const s=iP(e=>e.commentsLocales);return t.jsxs(o.Menu,{shadow:"md",width:200,children:[t.jsx(o.Menu.Target,{children:t.jsx(o.ActionIcon,{color:"black",size:16,"aria-label":"Settings",className:TO,variant:"transparent",children:t.jsx(Yj,{name:"dots-vertical"})})}),t.jsxs(o.Menu.Dropdown,{children:[i&&t.jsx(o.Menu.Item,{onClick:()=>e(n),leftSection:t.jsx(a.IconPencil,{size:16}),children:s.menuActions.edit}),t.jsx(o.Menu.Item,{color:"red",onClick:()=>{wP({title:QO(n.type,s),labels:{cancel:s.deleteModal.actions.cancel,confirm:s.deleteModal.actions.remove},children:YO(n.type,s),onConfirm:()=>{r(n)}})},leftSection:t.jsx(a.IconTrash,{size:16}),children:s.menuActions.delete})]})]})};const cP={transition:"fade",duration:300},dP=["e=%F0%9F%91%8D","e=%F0%9F%91%8E","e=%E2%9C%8D%EF%B8%8F","e=%F0%9F%98%80","e=%F0%9F%94%A5"],uP=({accepted:e,showEmojiPicker:r,setShowEmojiPicker:i,resolveThreat:s,commentOrThread:l,commentSelected:c,handleBlur:d,hasPermission:u,toggleRepliesInput:h,deleteCommentOrThread:f,handleEditClick:p,handleReactionClick:m})=>{const[g,v]=n.useState(null),b=iP(e=>e.commentsLocales),y=iP(e=>e.adminPermission),w=function(e){const t=n.useRef(null),{events:r=["pointerdown"],enabled:i=!0}={};return n.useEffect(()=>{if(!i)return;const n=n=>{const r=t.current;r&&(r.contains(n.target)||e(n))};return r.forEach(e=>{document.addEventListener(e,n,!0)}),()=>{r.forEach(e=>{document.removeEventListener(e,n,!0)})}},[e,i]),t}(e=>{e.target.closest(".mantine-Popover-dropdown")||i(!1)});return t.jsx("div",{className:AO,style:{...r&&{opacity:1}},ref:r?w:null,children:r?t.jsxs(t.Fragment,{children:[dP.map((e,n)=>t.jsx(o.ActionIcon,{color:"black",size:16,className:TO,variant:"transparent",onClick:()=>m(e),children:t.jsx(_,{icon:e,fallback:t.jsx(a.IconFile,{size:"1em"})})},n)),t.jsx($e,{onChange:e=>{e.startsWith("c=")&&!e.includes("&")?v(e):(m(e),i(!1))},showIcons:!0,value:g,position:"left-start",showColors:!0,withinPortal:!0,popoverProps:{transitionProps:cP},children:t.jsx(o.Tooltip,{label:b.actionTooltips.addReaction,children:t.jsx(o.ActionIcon,{color:"black",size:20,className:jO,variant:"transparent",children:t.jsx(Yj,{name:"emoji"})})})})]}):t.jsxs(t.Fragment,{children:[u&&t.jsx(o.Tooltip,{label:e?b.actionTooltips.reopen:b.actionTooltips.resolve,children:t.jsx(o.ActionIcon,{color:"black",size:16,className:`${TO} resolve`,variant:"transparent",onClick:e=>{c&&e.stopPropagation(),d(e),s(l)},children:t.jsx(Yj,{name:""+(e?"reOpen":"check-mark")})})},e.toString()),t.jsx(o.Tooltip,{label:b.actionTooltips.addReaction,children:t.jsx(o.ActionIcon,{color:"black",disabled:!1,size:16,className:TO,variant:"transparent",onClick:()=>i(!0),children:t.jsx(Yj,{name:"emoji"})})}),!e&&t.jsx(o.Tooltip,{label:b.actionTooltips.reply,children:t.jsx(o.ActionIcon,{color:"black",size:"xs",className:`${TO} reply`,variant:"transparent",onClick:e=>{c&&e.stopPropagation(),h(l.id,e)},children:t.jsx(Yj,{name:"messages"})})}),(y||u)&&t.jsx(lP,{hasPermission:u,commentOrThread:l,deleteCommentOrThread:f,handleEditClick:p})]})})},hP=({onDownload:e,onDelete:n,iconColor:r="light-dark(black, #E0E0E0)",hasPermission:i,locales:s})=>{const l=iP(e=>e.commentsLocales),c=s??l;return t.jsxs(o.Menu,{radius:"md",width:190,position:"bottom-end",withArrow:!0,children:[t.jsx(o.Menu.Target,{children:t.jsx(o.ActionIcon,{size:24,variant:"subtle",color:r,radius:6,children:t.jsx(a.IconDotsVertical,{})})}),t.jsxs(o.Menu.Dropdown,{children:[t.jsx(o.Menu.Item,{"data-ignore-blur":"true",leftSection:t.jsx(a.IconDownload,{size:16}),onClick:e,children:c.menuActions.download}),i&&t.jsx(o.Menu.Item,{"data-ignore-blur":"true",leftSection:t.jsx(a.IconTrash,{size:16}),color:"red",onClick:n,children:c.menuActions.delete})]})]})},fP=e=>!!e&&e.startsWith("temp-"),pP=({files:e,hasPermission:r,removeImage:a,showLoading:s=!1,locales:c})=>{const[d,{open:u,close:h}]=l.useDisclosure(!1),[f,p]=n.useState(null),{isSidebar:m,adminPermission:g}=iP(e=>e),{t:v}=i.useTranslation(),b=m?{download:v("editor.gallery.download"),close:v("editor.gallery.close"),errorFile:v("editor.gallery.errorFile")}:void 0,y=n.useMemo(()=>e.filter(e=>e.isImage),[e]),w=n.useMemo(()=>e.filter(e=>!e.isImage),[e]),k=n.useMemo(()=>y.map(e=>({id:e.id,Url:e.src,contentType:"image"})),[y]),x=e=>{const t=URL.createObjectURL(e),n=document.createElement("a");n.href=t,n.download=e.name,document.body.appendChild(n),n.click(),setTimeout(()=>{URL.revokeObjectURL(t),document.body.removeChild(n)},200)},C=e.every(e=>e.id);return 0===y.length&&0===w.length?null:t.jsxs("div",{className:lO,children:[y.length>0&&t.jsx("ul",{className:tO,children:y.map(({src:e,id:n,file:i},l)=>{const d=n??l,h=fP(d)&&s;return t.jsxs("li",{className:rO,children:[t.jsxs("div",{className:HO,children:[t.jsx("img",{crossOrigin:"anonymous",src:e,onClick:()=>{C&&(p({Url:e,id:n,contentType:"image"}),u())},alt:`Uploaded-${l}`,className:`${cO} ${C?"enable":""}`}),t.jsx("div",{className:qO,children:t.jsx(hP,{onDelete:()=>a(d),onDownload:()=>x(i),iconColor:"white",hasPermission:g||!!r,locales:c})})]}),t.jsx(o.LoadingOverlay,{visible:h,loaderProps:{size:20}})]},d)})}),w.length>0&&t.jsx("div",{className:UO,children:t.jsx("ul",{className:EO,children:w.map(({file:e,id:n},i)=>{const l=n??i,d=fP(l)&&s;return t.jsxs("li",{className:MO,children:[t.jsxs("div",{className:VO,title:e.name,children:[t.jsx("div",{className:XO,children:NP(DP(e.type),!1,32)}),t.jsxs("div",{className:GO,children:[t.jsx("div",{className:WO,children:e.name}),t.jsxs("div",{className:JO,children:[(e.size/1024).toFixed(1)," KB"]})]}),t.jsx(hP,{onDelete:()=>a(l),onDownload:()=>x(e),hasPermission:g||!!r,locales:c})]}),t.jsx(o.LoadingOverlay,{visible:d,loaderProps:{size:20}})]},l)})})}),C&&t.jsx(Gj,{showAttach:f,setShowAttach:p,opened:d,onOpenChange:e=>{e?u():h()},attachments:k,translation:b})]})};function mP(e,t,n){return ls(new Date(e),"dd/MM/yyyy, HH:mm")+(t?` (${n.edited})`:"")}function gP(e,t,n){var r,i,o;if(t)return null==(r=e.repliesToggle)?void 0:r.hide;const a=1===n?"show_one":"show_other";return null==(o=null==(i=e.repliesToggle)?void 0:i[a])?void 0:o.replace("{{count}}",String(n))}const vP=({commentOrThread:e,handleClickThread:r,markNodeMap:i,parentThreadOrGeneral:s,submitAddComment:l,removeCommentReactions:c,updateThreadId:d,addCommentReaction:u,deleteCommentImage:h,activeIDs:f,updateCommentTextOrImage:p,resolveThreat:m,toggleRepliesInput:g,locales:v,deleteCommentOrThread:b,replyInput:y})=>{const[w,k]=n.useState({replyList:[],editCommentId:"",editedContent:""}),[x,C]=n.useState({value:"",files:[]}),[S,E]=n.useState(!1),{workspaceMembers:M,currentUser:T,getEditor:A,isGuest:j,adminPermission:O}=iP(),{colorScheme:P}=o.useMantineColorScheme(),L="dark"===P,I=f&&f[0]===e.id,N=(null==T?void 0:T.id)===e.authorId,R=w.replyList.includes(e.id),D=e.id.includes("temp"),B="comment"!==e.type&&e.children?e.children.filter(e=>!e.deleted):[],z=R?B:B.slice(0,1),F=e.id===y,H=()=>{k(e=>({...e,editCommentId:""})),C({value:"",files:[]}),g("")},q=async t=>{const n=(e=>{const t=e.split("/");return t[t.length-1]})(String(t)),r=1===((null==e?void 0:e.files)||[]).length,i=((null==e?void 0:e.text)||"").replace(/<[^>]*>/g,"").replace(/\s| /g,"");r&&0===i.length?b(e,s):s?h(n,s.id,null==e?void 0:e.id):h(n,null==e?void 0:e.id)},U="comment"!==e.type&&"ACCEPTED"===e.resolution,V=e.id,X=((null==e?void 0:e.reactions)||[]).reduce((e,t)=>(e[t.reaction]||(e[t.reaction]={count:0,id:t.id,authors:new Set}),e[t.reaction].count+=1,e[t.reaction].authors.add(t.userId),e),{}),G=t=>{var n;const{isDuplicateReaction:r,hasTempReaction:i}=e.reactions.reduce((e,{reaction:n,userId:r,id:i})=>(n===t&&r===(null==T?void 0:T.id)&&(i.startsWith("temp")?e.hasTempReaction=!0:e.isDuplicateReaction=!0),e),{isDuplicateReaction:!1,hasTempReaction:!1});if(!i){if(r){const r=null==(n=e.reactions.find(({reaction:e,userId:n})=>e===t&&n===(null==T?void 0:T.id)))?void 0:n.id;s?c(r,s,e):c(r,e,s)}else u(t,e,s);E(!1)}},W=t=>{const n=new Set(t.files.map(e=>e.id)),r=t.files.filter(e=>{var t;return null==(t=e.id)?void 0:t.startsWith("temp-")}),i={deletedFile:e.files.filter(e=>!!e.id&&!n.has(e.id)),newFiles:r},o={value:t.value,restore:e.text!==t.value};p(o,i,w.editCommentId,null==s?void 0:s.id),H()},J=null==M?void 0:M.find(t=>t.userId===e.authorId),Z=J?{id:J.userId,name:J.name,email:J.email,avatar:J.avatarUrl}:{id:e.authorId,name:"Deleted user",email:"",avatar:""};return t.jsxs("li",{onMouseDown:r,"data-id":e.id,className:`${gO} ${(null==i?void 0:i.has(V))?"interactive":""} ${f?-1===f.indexOf(V)?"":"active":""}\n ${U?`${OO}`:""}`,children:[t.jsxs("div",{className:bO,children:[t.jsx(Ni,{user:Z}),t.jsxs("div",{className:_j,children:[t.jsxs("div",{className:wO,children:[t.jsxs("div",{className:fO,children:[t.jsx("span",{className:pO,children:Z.name}),t.jsx("span",{className:mO,children:mP(e.timeStamp??0,e.edited,v)})]}),!D&&(O||!j)&&t.jsx(uP,{hasPermission:N,accepted:U,showEmojiPicker:S,setShowEmojiPicker:E,resolveThreat:m,commentOrThread:e,commentSelected:I,handleBlur:H,toggleRepliesInput:g,deleteCommentOrThread:b,handleEditClick:e=>{y&&g(""),k(t=>({...t,editCommentId:e.id,editedContent:e.text})),C({value:e.text,files:e.files})},handleReactionClick:G})]}),t.jsxs("div",{className:SO,children:["thread"===e.type&&t.jsx("blockquote",{className:kO,children:t.jsx("span",{className:xO,children:e.quote})}),w.editCommentId!==e.id&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"doc-space-styles-provider",children:t.jsx("div",{className:zO,dangerouslySetInnerHTML:{__html:e.text}})}),e.files&&e.files.length&&w.editCommentId!==e.id?t.jsx(pP,{hasPermission:N,removeImage:q,files:e.files,showLoading:!D}):null]}),w.editCommentId!==e.id&&t.jsx("div",{className:`${CO} ${j?FO:""}`,children:Object.entries(X).map(([e,n],r)=>{const i=n.authors.has((null==T?void 0:T.id)||""),o=L?"rgba(67, 155, 255, 0.24)":"rgba(35, 131, 226, 0.14)";return t.jsxs("div",{style:{background:i&&o||void 0},onClick:j?void 0:()=>G(e),children:[t.jsx(_,{size:16,fz:16,icon:e,fallback:t.jsx(a.IconFile,{size:"16px"})},r),t.jsx("span",{children:n.count})]},r)})})]})]})]}),w.editCommentId===e.id&&t.jsx(xP,{commentValue:x,setCommentValue:C,isEditInput:!0,updateThreadId:d,removeCommentImage:q,setCommentActions:k,submitAddComment:l||(()=>{}),handleEditComment:W,handleBlur:H,placeholder:v.replyComment,children:({onSubmit:t,handleBlur:n,autoFocus:r,setCommentValue:i,commentValue:o,registerClearEditor:a,editorRef:s})=>null==A?void 0:A({onSubmit:t,handleBlur:n,autoFocus:r,setCommentValue:i,commentValue:o,initialContent:e.text,registerClearEditor:a,editorRef:s})}),t.jsx(o.LoadingOverlay,{visible:D}),z.length?t.jsx("ul",{className:vO,children:z.map(n=>{const r=n.id;return t.jsx(vP,{commentOrThread:n,locales:v,deleteCommentOrThread:()=>b(n,e),deleteCommentImage:h,addCommentReaction:u,removeCommentReactions:c,updateCommentTextOrImage:p,toggleRepliesInput:g,parentThreadOrGeneral:e},n.clientKey??r)})}):null,!U&&F&&t.jsx(xP,{commentValue:x,setCommentValue:C,thread:e,isEditInput:!1,updateThreadId:d,removeCommentImage:q,setCommentActions:k,submitAddComment:l||(()=>{}),handleEditComment:W,handleBlur:H,placeholder:v.replyComment,children:({onSubmit:e,handleBlur:t,autoFocus:n,setCommentValue:r,commentValue:i,registerClearEditor:o,editorRef:a})=>null==A?void 0:A({onSubmit:e,handleBlur:t,autoFocus:n,setCommentValue:r,commentValue:i,registerClearEditor:o,editorRef:a})}),"comment"!==e.type&&B.length-1>0?t.jsx(o.Button,{onClick:()=>((e,t=!1)=>{w.replyList.includes(e)&&t||k(t=>({...t,replyList:t.replyList.includes(e)?t.replyList.filter(t=>t!==e):[...t.replyList,e]}))})(e.id),variant:"default",fullWidth:!0,radius:"sm",className:yO,children:gP(v,R,B.length-1)}):null]},e.clientKey??e.id)};function bP({activeIDs:e,comments:r,deleteCommentOrThread:i,listRef:o,addCommentReaction:a,updateThreadId:s,submitAddComment:l,deleteCommentImage:c,removeCommentReactions:d,markNodeMap:u,resolveThreat:h,updateCommentTextOrImage:f}){const{selectMarkNode:p}=iP(),[m,g]=n.useState(0),[v,b]=n.useState(""),y=iP(e=>e.commentsLocales);n.useEffect(()=>{const e=setTimeout(()=>{g(m+1)},1e4);return()=>{clearTimeout(e)}},[m]);const w=e=>{b(t=>t===e?"":e)};return t.jsx("ul",{className:nO,ref:o,children:r.map(n=>{const r=n.id;if("thread"===n.type||"general"===n.type){const o=t=>{if(!t.target||"thread"!==n.type)return;const i=null==u?void 0:u.get(r);if(void 0!==i&&(null===e||-1===e.indexOf(r))){const e=document.activeElement;null==p||p(i,e)}};return t.jsx(vP,{commentOrThread:n,locales:y,deleteCommentOrThread:i,deleteCommentImage:c,addCommentReaction:a,removeCommentReactions:d,handleClickThread:o,markNodeMap:u,replyInput:v,updateThreadId:s,toggleRepliesInput:w,updateCommentTextOrImage:f,resolveThreat:h,activeIDs:e,submitAddComment:l},n.clientKey??r)}})})}const yP=({onSubmit:e,handleFileChange:n,disabledSubmitButton:r,disabledUploadButton:i,isFloatInput:a=!1,setIsSubmitting:s,isSubmitting:l,handleClearInput:c,locales:d})=>{var u,h,f,p;const m=iP(e=>e.commentsLocales),g=d??m,v=E.useRef(null);return t.jsxs("div",{className:IO,children:[!r&&!a&&t.jsx(o.Tooltip,{label:null==(u=g.inputEditor)?void 0:u.clear,children:t.jsx(o.ActionIcon,{color:"#495057",onClick:c,size:22,"aria-label":"Clear",variant:"transparent",tabIndex:-1,children:t.jsx(Yj,{name:"close"})})}),t.jsxs("div",{className:RO,style:{position:"relative"},onClick:()=>{var e;i||null==(e=v.current)||e.click()},children:[t.jsx(o.Tooltip,{label:i?null==(f=null==(h=g.notifications)?void 0:h.uploadMessages)?void 0:f.fileLimit:null==(p=g.inputEditor)?void 0:p.uploadFiles,children:t.jsx(o.ActionIcon,{color:"#495057",size:16,"aria-label":"Upload File",variant:"transparent",tabIndex:-1,disabled:i,className:BO,children:t.jsx(Yj,{name:"paperclip"})})}),t.jsx("input",{ref:v,type:"file",multiple:!0,disabled:i,onChange:e=>{e.target.files&&(n(Array.from(e.target.files)),e.target.value="")},className:DO,tabIndex:-1},i.toString())]}),t.jsx(o.Tooltip,{label:tP?"⌘ + Enter":"Ctrl + Enter",children:t.jsx(o.ActionIcon,{color:"#000000",size:22,"aria-label":"Submit",className:NO,variant:"outline",tabIndex:-1,onClick:async()=>{if(!l){s(!0);try{e()}catch(t){}finally{s(!1)}}},disabled:r,children:t.jsx(Yj,{name:"send"})})})]})},wP=e=>{const t=e.onConfirm,{isLoading:n,...r}=e,i=g.modals.openConfirmModal({keepMounted:!1,centered:!0,confirmProps:{color:"red",fullWidth:!0,loading:n},cancelProps:{fullWidth:!0},groupProps:{wrap:"nowrap"},onClose:()=>{var e;window.removeEventListener("keydown",o),null==(e=r.onClose)||e.call(r)},...r}),o=e=>{var r;const o=null==(r=document.activeElement)?void 0:r.tagName;"Enter"!==e.key||"TEXTAREA"===o||"INPUT"===o||n||(e.preventDefault(),null==t||t(),g.modals.close(i))};window.addEventListener("keydown",o)};function kP({children:e,onSubmit:r,handleBlur:i,autoFocus:o=!0,registerClearEditor:a}){const s=n.useRef(null);return n.useEffect(()=>{const e=s.current;e&&o&&setTimeout(()=>{e.focus(()=>({defaultSelection:"rootEnd"}))},0)},[o]),n.useEffect(()=>{const e=e=>{const t=e.target,n=s.current;if(n&&t&&(t.classList.contains(dO)||t.classList.contains("editor-scroller")||t.classList.contains("doc-space-styles-provider"))){if(t.querySelector(`.${tO}`)||t.querySelector(`.${UO}`))return;setTimeout(()=>{n.focus(()=>({defaultSelection:"rootEnd"}))},0)}};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),n.useEffect(()=>{const e=s.current;if(!e)return;null==a||a(()=>{e.update(()=>{const t=e._editorState._nodeMap.get("root");if(!t)return;t.clear();const n=e._nodes.get("paragraph");if(!n)return;const r=new n.klass;t.append(r),r.select()})});const t=t=>{"Enter"===t.code&&!t.shiftKey&&document.activeElement===e.getRootElement()&&(r(),setTimeout(()=>{e.blur()}))};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[r,i,a]),t.jsx(t.Fragment,{children:e(s)})}const xP=({submitAddComment:e,commentValue:r,thread:i,setCommentValue:o,handleBlur:a,autoFocus:s=!0,provideCommentOptions:l,removeCommentImage:c,handleEditComment:d,isEditInput:u=!1,isGeneral:h,updateThreadId:f,setCommentActions:p,updateLocation:m,getSelectionText:g,children:v,providedUser:b,placeholder:y,composerLocales:w})=>{const k=n.useRef(null),x=n.useMemo(()=>({container:document.createElement("div"),elements:[]}),[]),C=n.useMemo(()=>u?{...r}:null,[u]),[S,M]=E.useState(!1),T=n.useRef(r),A=n.useRef(null),j=n.useRef(!1),O=iP(e=>e.commentsLocales),P=w??O,{currentUser:L,commentOptions:I}=iP(),N=b??L,R=l??I,D=n.useRef(null),B=y??(null==P?void 0:P.addComment),z=!h&&!i&&!u;n.useLayoutEffect(()=>{if(!m)return;m(k.current,D,x);const e=x.container,t=document.body;return null!==t?(t.appendChild(e),()=>{t.removeChild(e)}):void 0},[m,x.container,x]),n.useEffect(()=>{if(!m)return;const e=()=>{m(k.current,D,x)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[x,m]),n.useEffect(()=>{if(!h)return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)};function e(e){const t=e.target;if(k.current&&k.current.contains(t))return;if(t.closest(".mantine-Popover-dropdown")||t.closest(".floating-text-format-popup")||u&&t.closest("[data-ignore-blur='true']")||!u&&t.closest(".tabler-icon-messages")||t.closest('[data-menu-dropdown="true"]')||t.closest(".mantine-Modal-content"))return;const n=!!C&&JSON.stringify(C)!==JSON.stringify(T.current);return n&&!j.current&&u?(j.current=!0,void wP({title:P.inputEditor.discardModal.title,children:P.inputEditor.discardModal.description,labels:{confirm:P.inputEditor.discardModal.labels.confirm,cancel:P.inputEditor.discardModal.labels.cancel},onConfirm:()=>{a()},onClose:()=>{j.current=!1}})):z&&(""!==T.current.value.trim()||T.current.files.length>0)?(j.current=!0,e.stopPropagation(),e.preventDefault(),void wP({title:P.inputEditor.discardModal.title,children:P.inputEditor.cancelCommentModal.description,labels:{confirm:P.inputEditor.discardModal.labels.confirm,cancel:P.inputEditor.discardModal.labels.cancel},onConfirm:()=>{a()},onClose:()=>{j.current=!1}})):void(n||a())}},[a,h,u,C]);const F=async()=>{var t;const n=T.current;if(!n.value.trim()&&!n.files.length)return;const r=i?i.id:null==R?void 0:R.pageId,o=n.files.length>0,s=i?"COMMENT":"PAGE",l=h?"REVIEW":"FAQ",c="temp-"+Date.now()+"-"+Math.random().toString(36).substring(2,9),d="FAQ"===l?i?"comment":"thread":"general",u=JSON.stringify(null==R?void 0:R.workspaceInfo);let m=g?g(D.current):"";m.length>100&&(m=m.slice(0,99)+"…");const v={id:c,quote:"thread"===d?m:"general"===d?u:"",deleted:!1,type:d,clientKey:crypto.randomUUID(),resolution:null,edited:!1,text:n.value,reactions:[],files:n.files,authorId:(null==N?void 0:N.id)||"",timeStamp:performance.timeOrigin+performance.now(),children:[]};"FAQ"===l?i?(e(v,!1,i,D.current),p(e=>({...e,replyList:[...e.replyList,i.id]}))):(KO('ul[class*="commentPluginCommentsPanelList"]'),e(v,!0,void 0,D.current)):(KO('ul[class*="commentPluginCommentsPanelList"]'),null==(t=A.current)||t.call(A),e(v,!0)),a(),D.current=null;try{await(null==R?void 0:R.commentActions.submitCommentApi({text:n.value,commentType:l,parentType:s,parentId:r,onSuccess:async e=>{const t=e.id,r=e.updatedAt;let a=[];if(o){const e=await(async(e,t,n)=>t.length?(await Promise.all(t.map(t=>new Promise((r,i)=>{n({file:t.file,commentId:e,onSuccess:e=>{r(e)},onError:e=>{i(null)}})})))).filter(e=>null!==e):[])(t,n.files,R.commentActions.uploadCommentFileApi);a=e.map(e=>rP(e))}f&&f(c,t,r,d,a.flat(),i)}}))}catch(b){}},H=()=>{u?null==d||d(T.current):F()};n.useEffect(()=>{T.current=r},[r]);const q=""!==r.value||r.files.length>0,V=10===r.files.length;return t.jsx("div",{ref:k,className:`${sO} ${u?uO:""}`,children:t.jsxs("div",{className:hO,style:{"--placeholder-text":`"${B}..."`},children:[t.jsx(kP,{onSubmit:H,handleBlur:a,autoFocus:s,registerClearEditor:e=>{A.current=e},children:e=>"function"==typeof v?v({onSubmit:H,handleBlur:a,autoFocus:s,setCommentValue:o,commentValue:r,editorRef:e}):v}),t.jsxs("div",{className:dO,children:[t.jsx(pP,{hasPermission:!0,removeImage:e=>{const t="string"==typeof e;if(t&&c&&!u){c(e);const t=r.files.filter(e=>"file"in e);return void o(e=>({...e,files:t}))}o(n=>{const r=t?n.files.filter(t=>t.id!==e):n.files.filter((t,n)=>n!==e);return{...n,files:r}})},files:r.files,locales:P}),t.jsx(yP,{handleClearInput:()=>{var e,t;const n=Boolean(null==(e=r.value)?void 0:e.trim()),i=Boolean(null==(t=r.files)?void 0:t.length);wP({title:P.inputEditor.clearModal.title,labels:{confirm:P.deleteModal.actions.remove,cancel:P.deleteModal.actions.cancel},children:nP(n,i,P),onConfirm:()=>{var e;o({files:[],value:""}),null==(e=A.current)||e.call(A)}})},disabledSubmitButton:!q,disabledUploadButton:V,handleFileChange:e=>{e&&0!==e.length&&o(t=>{var n,r,i,o;const a=t.files||[],s=10-a.length,l=[],c=[];e.forEach(e=>{e.size<=5242880?l.push(e):c.push(e)}),c.length>0&&U({message:null==(r=null==(n=null==P?void 0:P.notifications)?void 0:n.uploadMessages)?void 0:r.fileTooLarge}),l.length>s&&U({message:null==(o=null==(i=null==P?void 0:P.notifications)?void 0:i.uploadMessages)?void 0:o.tooManyFiles});const d=l.slice(0,s).map(e=>rP(e,!0));return 0===d.length?t:{...t,files:[...a,...d]}})},onSubmit:H,locales:P,isFloatInput:z,isSubmitting:S,setIsSubmitting:M})]})]})})},CP=ot(()=>({opened:!1,submitFunc:()=>{},title:"",description:"",submitLabel:"",hideGeneratedCode:!1,pinLength:4})),SP=()=>{CP.setState({opened:!1})},EP=()=>{const{submitFunc:e,description:r,submitLabel:i,hideGeneratedCode:a,pinLength:s=4}=CP(),[l,c]=n.useState(""),[d,h]=n.useState(""),f=n.useRef(null),p=n.useMemo(()=>l.length<s||!a&&l!==d,[l,s,a,d]),m=u.useForm({initialValues:{pinCode:""}});return n.useEffect(()=>{const e=Math.floor(1e3+9e3*Math.random()).toString();h(e)},[]),n.useEffect(()=>{const e=setTimeout(()=>{f.current&&f.current.focus()},1);return()=>clearTimeout(e)},[]),t.jsxs(o.Box,{children:[t.jsx(o.Text,{c:"dimmed",fz:12,mt:19,lh:"14px",children:r}),t.jsx("form",{onSubmit:m.onSubmit(()=>{e(l,d)}),children:t.jsxs(o.Stack,{gap:0,children:[t.jsx(o.Flex,{justify:"center",align:"center",children:!a&&t.jsx(o.Text,{size:"xl",fw:600,style:{letterSpacing:"5px"},fz:32,my:12,children:d})}),t.jsx(o.Flex,{justify:"center",align:"center",mb:"md",children:t.jsx(o.PinInput,{ref:f,length:s,value:l,onChange:c,styles:{pinInput:{marginTop:"12px"}},type:"number",radius:"sm",placeholder:"○",size:"sm",gap:"md"})}),t.jsx(o.Flex,{justify:"flex-end",mt:"md",children:t.jsx(o.Button,{fullWidth:!0,w:"auto",type:"submit",size:"sm",disabled:p,children:i})})]})})]})},MP=(e,t)=>e.filter(e=>!!e&&"object"==typeof e).flatMap(e=>{const n=MP(e.children??[],t);return t.includes(e.type)?{...e,children:n}:n}),TP=["yellow","blue","green","teal","orange","grape","cyan","lime","pink","red","violet","indigo"],AP=ot(()=>({opened:!1})),jP={documents:"#F03E3E",images:"#FF6F00",other:"#868E96",archives:"#9B14EA",audio:"#0CA678",code:"#1C7ED6",videos:"#FAB005"},OP="_image_945jb_1",PP={ru:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-ru'%20viewBox='0%200%20640%20480'%3e%3cpath%20fill='%23fff'%20d='M0%200h640v160H0z'/%3e%3cpath%20fill='%230039a6'%20d='M0%20160h640v160H0z'/%3e%3cpath%20fill='%23d52b1e'%20d='M0%20320h640v160H0z'/%3e%3c/svg%3e",en:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-us'%20viewBox='0%200%20640%20480'%3e%3cpath%20fill='%23bd3d44'%20d='M0%200h640v480H0'/%3e%3cpath%20stroke='%23fff'%20stroke-width='37'%20d='M0%2055.3h640M0%20129h640M0%20203h640M0%20277h640M0%20351h640M0%20425h640'/%3e%3cpath%20fill='%23192f5d'%20d='M0%200h364.8v258.5H0'/%3e%3cmarker%20id='us-a'%20markerHeight='30'%20markerWidth='30'%3e%3cpath%20fill='%23fff'%20d='m14%200%209%2027L0%2010h28L5%2027z'/%3e%3c/marker%3e%3cpath%20fill='none'%20marker-mid='url(%23us-a)'%20d='m0%200%2016%2011h61%2061%2061%2061%2060L47%2037h61%2061%2060%2061L16%2063h61%2061%2061%2061%2060L47%2089h61%2061%2060%2061L16%20115h61%2061%2061%2061%2060L47%20141h61%2061%2060%2061L16%20166h61%2061%2061%2061%2060L47%20192h61%2061%2060%2061L16%20218h61%2061%2061%2061%2060z'/%3e%3c/svg%3e",es:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='flag-icons-es'%20viewBox='0%200%20640%20480'%3e%3cpath%20fill='%23AA151B'%20d='M0%200h640v480H0z'/%3e%3cpath%20fill='%23F1BF00'%20d='M0%20120h640v240H0z'/%3e%3cpath%20fill='%23ad1519'%20d='m127.3%20213.3-.8-.1-1-1-.7-.4-.6-.8s-.7-1.1-.4-2q.5-1.2%201.4-1.5l1.5-.5%201-.4%201.3-.3.5-.3%201-.2%201-.2%201.6.1h4.8c.4%200%201.2.3%201.4.4l2%20.7c.5.1%201.6.3%202.2.6q.8.5%201.1%201l.5%201v1.1l-.5.8-.6%201-.8.6s-.5.5-1%20.4-4.8-.8-7.6-.8-7.3.9-7.3.9'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='m127.3%20213.3-.8-.1-1-1-.7-.4-.6-.8s-.7-1.1-.4-2q.5-1.2%201.4-1.5l1.5-.5%201-.4%201.3-.3.5-.3%201-.2%201-.2%201.6.1h4.8c.4%200%201.2.3%201.4.4l2%20.7c.5.1%201.6.3%202.2.6q.8.5%201.1%201l.5%201v1.1l-.5.8-.6%201-.8.6s-.5.5-1%20.4-4.8-.8-7.6-.8-7.3.9-7.3.9z'/%3e%3cpath%20fill='%23c8b100'%20d='M133.3%20207q.1-2.1%201.3-2.3%201.3.1%201.4%202.4c0%201.3-.6%202.4-1.4%202.4s-1.3-1.1-1.3-2.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M133.3%20207q.1-2.1%201.3-2.3%201.3.1%201.4%202.4c0%201.3-.6%202.4-1.4%202.4s-1.3-1.1-1.3-2.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M134%20207q0-2%20.7-2.1c.3%200%20.6%201%20.6%202.1q0%202-.6%202.2c-.4%200-.6-1-.6-2.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134%20207q0-2%20.7-2.1c.3%200%20.6%201%20.6%202.1q0%202-.6%202.2c-.4%200-.6-1-.6-2.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M133.8%20204.5q.1-.7.8-.8%201%200%201%20.8-.1.8-1%20.9c-.9.1-.8-.4-.8-.9'/%3e%3cpath%20fill='%23c8b100'%20d='M135.3%20204.2v.6h-1.4v-.6h.5V203h-.7v-.6h.7v-.5h.5v.5h.6v.6h-.6v1.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M135.3%20204.2v.6h-1.4v-.6h.5V203h-.7v-.6h.7v-.5h.5v.5h.6v.6h-.6v1.2h.4'/%3e%3cpath%20fill='%23c8b100'%20d='M135.9%20204.2v.6h-2.5v-.6h1V203h-.7v-.6h.7v-.5h.5v.5h.6v.6h-.6v1.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M135.9%20204.2v.6h-2.5v-.6h1V203h-.7v-.6h.7v-.5h.5v.5h.6v.6h-.6v1.2h1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.9%20203.7q.6.2.6.8-.1.8-.8.9-1%200-1-.9%200-.6.7-.8'/%3e%3cpath%20fill='%23c8b100'%20d='M134.7%20213.2H130v-1.1l-.3-1.2-.2-1.5c-1.3-1.7-2.5-2.8-2.9-2.5q.1-.5.5-.7c1.1-.7%203.5%201%205.2%203.6l.5.7h3.8l.4-.7c1.8-2.7%204.1-4.3%205.2-3.6q.4.2.5.7c-.4-.3-1.6.8-2.9%202.5l-.2%201.5-.2%201.2-.1%201.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.7%20213.2H130v-1.1l-.3-1.2-.2-1.5c-1.3-1.7-2.5-2.8-2.9-2.5q.1-.5.5-.7c1.1-.7%203.5%201%205.2%203.6l.5.7h3.8l.4-.7c1.8-2.7%204.1-4.3%205.2-3.6q.4.2.5.7c-.4-.3-1.6.8-2.9%202.5l-.2%201.5-.2%201.2-.1%201.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M126.8%20206.8c1-.5%203%201.1%204.6%203.6m11-3.6c-.8-.5-2.8%201.1-4.5%203.6'/%3e%3cpath%20fill='%23c8b100'%20d='m127.8%20215.3-.5-1a27%2027%200%200%201%2014.7%200l-.5.8-.3.8a23%2023%200%200%200-6.6-.8c-2.6%200-5.2.3-6.5.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m127.8%20215.3-.5-1a27%2027%200%200%201%2014.7%200l-.5.8-.3.8a23%2023%200%200%200-6.6-.8c-2.6%200-5.2.3-6.5.8l-.3-.6'/%3e%3cpath%20fill='%23c8b100'%20d='M134.6%20217.7c2.4%200%205-.4%205.9-.6q1-.3%201-.8%200-.3-.4-.4c-1.4-.5-4-.8-6.5-.8s-5%20.3-6.4.8q-.3%200-.4.3%200%20.6%201%20.9c1%20.2%203.5.6%205.8.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.6%20217.7c2.4%200%205-.4%205.9-.6q1-.3%201-.8%200-.3-.4-.4c-1.4-.5-4-.8-6.5-.8s-5%20.3-6.4.8q-.3%200-.4.3%200%20.6%201%20.9c1%20.2%203.5.6%205.8.6z'/%3e%3cpath%20fill='%23c8b100'%20d='m142.1%20213.2-.5-.5s-.6.3-1.3.2c-.6%200-.9-1-.9-1s-.7.7-1.3.7-1-.6-1-.6-.7.5-1.3.4-1.2-.8-1.2-.8-.6.8-1.2.8c-.6.1-1-.5-1-.5s-.4.6-1.1.7-1.4-.6-1.4-.6-.5.7-1%201c-.5%200-1.2-.4-1.2-.4l-.2.5-.3.1.2.5a27%2027%200%200%201%207.2-.9q4.5%200%207.4%201z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m142.1%20213.2-.5-.5s-.6.3-1.3.2c-.6%200-.9-1-.9-1s-.7.7-1.3.7-1-.6-1-.6-.7.5-1.3.4-1.2-.8-1.2-.8-.6.8-1.2.8c-.6.1-1-.5-1-.5s-.4.6-1.1.7-1.4-.6-1.4-.6-.5.7-1%201c-.5%200-1.2-.4-1.2-.4l-.2.5-.3.1.2.5a27%2027%200%200%201%207.2-.9q4.5%200%207.4%201z'/%3e%3cpath%20fill='%23c8b100'%20d='M134.7%20210.7h.2v.4q0%201%201%201a1%201%200%200%200%201-.7l.2-.3v.4q.3.8%201.1.8%201%200%201-1v-.1l.4-.4.2.5-.1.4a1%201%200%200%200%201%201q.6%200%20.9-.5l.2-.2v.3q0%20.5.4.7l1-.4.7-.7v.4s-.5.8-1%201q-.3.4-.8.3-.5%200-.7-.6-.3.3-.7.2-1%200-1.4-.8-.5.5-1.1.5a2%202%200%200%201-1.2-.6l-1%20.4a2%202%200%200%201-1.3-.6%201.6%201.6%200%200%201-2.4.2%202%202%200%200%201-1.2.6l-1.1-.5q-.4.8-1.4.8l-.7-.2q-.2.5-.7.6t-.9-.2l-1-1%20.1-.5.8.7q.8.5.9.4.4-.1.4-.7v-.3l.2.2q.3.5.9.5a1%201%200%200%200%201-1v-.9l.4.4v.1q.1%201%201%201t1.1-.9v-.3l.2.3q.3.6%201%20.7%201%200%201.1-1v-.3h.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.7%20210.7h.2v.4q0%201%201%201a1%201%200%200%200%201-.7l.2-.3v.4q.3.8%201.1.8%201%200%201-1v-.1l.4-.4.2.5-.1.4a1%201%200%200%200%201%201q.6%200%20.9-.5l.2-.2v.3q0%20.5.4.7l1-.4.7-.7v.4s-.5.8-1%201q-.3.4-.8.3-.5%200-.7-.6-.3.3-.7.2-1%200-1.4-.8-.5.5-1.1.5a2%202%200%200%201-1.2-.6l-1%20.4a2%202%200%200%201-1.3-.6%201.6%201.6%200%200%201-2.4.2%202%202%200%200%201-1.2.6l-1.1-.5q-.4.8-1.4.8l-.7-.2q-.2.5-.7.6t-.9-.2l-1-1%20.1-.5.8.7q.8.5.9.4.4-.1.4-.7v-.3l.2.2q.3.5.9.5a1%201%200%200%200%201-1v-.9l.4.4v.1q.1%201%201%201t1.1-.9v-.3l.2.3q.3.6%201%20.7%201%200%201.1-1v-.3h.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M134.6%20213.3q-4.5%200-7.3%201l-.3-.2.1-.3a27%2027%200%200%201%207.5-1q4.6%200%207.6%201l.1.3-.3.2a27%2027%200%200%200-7.4-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M134.6%20213.3q-4.5%200-7.3%201l-.3-.2.1-.3a27%2027%200%200%201%207.5-1q4.6%200%207.6%201l.1.3-.3.2a27%2027%200%200%200-7.4-1z'/%3e%3cpath%20fill='%23fff'%20d='M131.8%20214.4q0-.4.5-.4a.4.4%200%200%201%20.4.4q0%20.3-.4.4a.4.4%200%200%201-.5-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M131.8%20214.4q0-.4.5-.4a.4.4%200%200%201%20.4.4q0%20.3-.4.4a.4.4%200%200%201-.5-.4z'/%3e%3cpath%20fill='%23ad1519'%20d='M134.7%20214.5h-1q-.2%200-.3-.3l.3-.3h2l.2.3-.3.3h-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M134.7%20214.5h-1q-.2%200-.3-.3l.3-.3h2l.2.3-.3.3h-1'/%3e%3cpath%20fill='%23058e6e'%20d='M130%20214.9h-.7q-.2%200-.3-.2l.2-.3.7-.1.7-.1q.3%200%20.4.2a.3.3%200%200%201-.3.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M130%20214.9h-.7q-.2%200-.3-.2l.2-.3.7-.1.7-.1q.3%200%20.4.2a.3.3%200%200%201-.3.4h-.7'/%3e%3cpath%20fill='%23ad1519'%20d='m127.3%20215.3.3-.4h.7l-.4.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m127.3%20215.3.3-.4h.7l-.4.6-.6-.2'/%3e%3cpath%20fill='%23fff'%20d='M136.6%20214.4q0-.4.4-.4a.4.4%200%200%201%20.5.4.4.4%200%200%201-.5.4.4.4%200%200%201-.4-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M136.6%20214.4q0-.4.4-.4a.4.4%200%200%201%20.5.4.4.4%200%200%201-.5.4.4.4%200%200%201-.4-.4z'/%3e%3cpath%20fill='%23058e6e'%20d='M139.3%20214.9h.6a.3.3%200%200%200%20.4-.2l-.3-.3-.6-.1-.7-.1q-.3%200-.4.2%200%20.3.3.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M139.3%20214.9h.6a.3.3%200%200%200%20.4-.2l-.3-.3-.6-.1-.7-.1q-.3%200-.4.2%200%20.3.3.4h.7'/%3e%3cpath%20fill='%23ad1519'%20d='m142%20215.4-.3-.5h-.7l.3.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m142%20215.4-.3-.5h-.7l.3.6.6-.1'/%3e%3cpath%20fill='%23ad1519'%20d='M134.6%20217.1a25%2025%200%200%201-6-.6%2026%2026%200%200%201%2012.1%200q-2.5.6-6%20.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M134.6%20217.1a25%2025%200%200%201-6-.6%2026%2026%200%200%201%2012.1%200q-2.5.6-6%20.6z'/%3e%3cpath%20fill='%23c8b100'%20d='m142%20212-.1-.3q-.3%200-.4.2%200%20.4.2.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m142%20212-.1-.3q-.3%200-.4.2%200%20.4.2.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M137.3%20211.2q0-.3-.2-.4l-.2.3q0%20.3.2.4l.3-.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M137.3%20211.2q0-.3-.2-.4l-.2.3q0%20.3.2.4l.3-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m132%20211.2.1-.4q.3%200%20.3.3t-.2.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m132%20211.2.1-.4q.3%200%20.3.3t-.2.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m127.3%20212%20.1-.3q.3%200%20.4.2%200%20.4-.2.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m127.3%20212%20.1-.3q.3%200%20.4.2%200%20.4-.2.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m134.6%20208.5-.8.5.6%201.3.2.1.2-.1.7-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m134.6%20208.5-.8.5.6%201.3.2.1.2-.1.7-1.3-.9-.5'/%3e%3cpath%20fill='%23c8b100'%20d='m132.8%20210.5.4.5%201.3-.4.1-.2-.1-.2-1.3-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m132.8%20210.5.4.5%201.3-.4.1-.2-.1-.2-1.3-.3-.4.6'/%3e%3cpath%20fill='%23c8b100'%20d='m136.4%20210.5-.3.5-1.3-.4-.2-.2.2-.2%201.3-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m136.4%20210.5-.3.5-1.3-.4-.2-.2.2-.2%201.3-.3.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m129.3%20209-.7.7.9%201%20.2.1.1-.1.3-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m129.3%20209-.7.7.9%201%20.2.1.1-.1.3-1.3-.8-.3'/%3e%3cpath%20fill='%23c8b100'%20d='m128%20211.2.4.5%201.2-.6v-.2l-.1-.2-1.3-.1-.3.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m128%20211.2.4.5%201.2-.6v-.2l-.1-.2-1.3-.1-.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m131.5%20210.5-.3.6H130l-.2-.2.1-.3%201.2-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m131.5%20210.5-.3.6H130l-.2-.2.1-.3%201.2-.6.5.5'/%3e%3cpath%20fill='%23c8b100'%20d='M126.6%20211.4v.6l-1.4.2-.2-.1v-.2l1-.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M126.6%20211.4v.6l-1.4.2-.2-.1v-.2l1-.9.6.4'/%3e%3cpath%20fill='%23c8b100'%20d='M129.2%20210.9q0-.5.5-.5t.5.5l-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M129.2%20210.9q0-.5.5-.5t.5.5l-.5.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m140%20209%20.7.7-.9%201-.2.1-.1-.1-.3-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m140%20209%20.7.7-.9%201-.2.1-.1-.1-.3-1.3.8-.3'/%3e%3cpath%20fill='%23c8b100'%20d='m141.4%20211.2-.5.5-1.2-.6v-.2l.1-.2%201.3-.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m141.4%20211.2-.5.5-1.2-.6v-.2l.1-.2%201.3-.1.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m137.8%20210.5.3.6h1.3l.2-.2-.1-.3-1.2-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m137.8%20210.5.3.6h1.3l.2-.2-.1-.3-1.2-.6-.5.5'/%3e%3cpath%20fill='%23c8b100'%20d='m142.5%20211.4.1.6%201.3.2.2-.1v-.2l-1-.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m142.5%20211.4.1.6%201.3.2.2-.1v-.2l-1-.9-.6.4'/%3e%3cpath%20fill='%23c8b100'%20d='m134.2%20210.4.4-.4q.5%200%20.5.4l-.5.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m134.2%20210.4.4-.4q.5%200%20.5.4l-.5.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M139.1%20210.9q.1-.5.5-.5l.5.5-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M139.1%20210.9q.1-.5.5-.5l.5.5-.5.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m124.8%20212.2-.6-.7c-.2-.2-.7-.3-.7-.3q0-.2.6-.3l.4.2v-.2s.3%200%20.4.3v1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m124.8%20212.2-.6-.7c-.2-.2-.7-.3-.7-.3q0-.2.6-.3l.4.2v-.2s.3%200%20.4.3v1z'/%3e%3cpath%20fill='%23c8b100'%20d='M124.8%20212q.3-.3.5%200t.2.5l-.5-.1q-.3-.2-.2-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M124.8%20212q.3-.3.5%200t.2.5l-.5-.1q-.3-.2-.2-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='m144.3%20212.2.6-.7.7-.3q0-.2-.6-.3l-.4.2v-.2s-.3%200-.4.3v.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m144.3%20212.2.6-.7.7-.3q0-.2-.6-.3l-.4.2v-.2s-.3%200-.4.3v.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M144.3%20212q-.1-.3-.5%200-.3.2-.1.5l.5-.1q.3-.2.1-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M144.3%20212q-.1-.3-.5%200-.3.2-.1.5l.5-.1q.3-.2.1-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M124%20223h21.4v-5.5H124z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M124%20223h21.4v-5.5H124z'/%3e%3cpath%20fill='%23c8b100'%20d='M126.2%20226.8h16.9a1.4%201.4%200%200%201-1-1.2q.1-1%201-1.3h-16.9q1%20.3%201%201.3a1.3%201.3%200%200%201-1%201.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M126.2%20226.8h16.9a1.4%201.4%200%200%201-1-1.2q.1-1%201-1.3h-16.9q1%20.3%201%201.3a1.3%201.3%200%200%201-1%201.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M126.6%20226.8h16q1%200%201%20.7t-1%20.8h-16q-.9-.1-1-.8%200-1%201-.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M126.6%20226.8h16q1%200%201%20.7t-1%20.8h-16q-.9-.1-1-.8%200-1%201-.8z'/%3e%3cpath%20fill='%23c8b100'%20d='M126.6%20223h16q1%20.1%201%20.7t-1%20.6h-16q-.9%200-1-.6.1-.5%201-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M126.6%20223h16q1%20.1%201%20.7t-1%20.6h-16q-.9%200-1-.6.1-.5%201-.6z'/%3e%3cpath%20fill='%23005bbf'%20d='M149.6%20317.4q-2.2%200-3.7-.8a8%208%200%200%200-3.8-.8q-2.1%200-3.7.8a8%208%200%200%201-3.8.8q-2.3%200-3.7-.8a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8%208%208%200%200%201-3.8.8v2.4q2.3%200%203.8-.9a8%208%200%200%201%203.7-.8q2.2%200%203.7.8c1.5.8%202.2.9%203.7.9a8%208%200%200%200%203.8-.9q1.6-.8%203.7-.8%202.3%200%203.8.8c1.5.8%202.2.9%203.7.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20317.4q-2.2%200-3.7-.8a8%208%200%200%200-3.8-.8q-2.1%200-3.7.8a8%208%200%200%201-3.8.8q-2.3%200-3.7-.8a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8%208%208%200%200%201-3.8.8v2.4q2.3%200%203.8-.9a8%208%200%200%201%203.7-.8q2.2%200%203.7.8c1.5.8%202.2.9%203.7.9a8%208%200%200%200%203.8-.9q1.6-.8%203.7-.8%202.3%200%203.8.8c1.5.8%202.2.9%203.7.9z'/%3e%3cpath%20fill='%23ccc'%20d='M149.6%20319.8a8%208%200%200%201-3.7-.9%208%208%200%200%200-3.8-.8q-2.1%200-3.7.8c-1.6.8-2.3.9-3.8.9s-2.8-.4-3.7-.9a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v2.3q2.3%200%203.8-.9a8%208%200%200%201%203.7-.7q2.2%200%203.7.7a8%208%200%200%200%207.5%200%209%209%200%200%201%207.5.1%208%208%200%200%200%203.7.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20319.8a8%208%200%200%201-3.7-.9%208%208%200%200%200-3.8-.8q-2.1%200-3.7.8c-1.6.8-2.3.9-3.8.9s-2.8-.4-3.7-.9a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v2.3q2.3%200%203.8-.9a8%208%200%200%201%203.7-.7q2.2%200%203.7.7a8%208%200%200%200%207.5%200%209%209%200%200%201%207.5.1%208%208%200%200%200%203.7.8v-2.3'/%3e%3cpath%20fill='%23005bbf'%20d='M149.6%20322a7%207%200%200%201-3.7-.8%208%208%200%200%200-3.8-.7q-2.1%200-3.7.7-1.5.9-3.8.9c-2.3%200-2.8-.4-3.7-.9a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v2.3q2.3%200%203.8-.9a10%2010%200%200%201%207.4%200%207%207%200%200%200%203.7.9%208%208%200%200%200%203.8-.8q1.6-.8%203.7-.8%202.3%200%203.8.8c1.5.8%202.2.8%203.7.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20322a7%207%200%200%201-3.7-.8%208%208%200%200%200-3.8-.7q-2.1%200-3.7.7-1.5.9-3.8.9c-2.3%200-2.8-.4-3.7-.9a8%208%200%200%200-3.7-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v2.3q2.3%200%203.8-.9a10%2010%200%200%201%207.4%200%207%207%200%200%200%203.7.9%208%208%200%200%200%203.8-.8q1.6-.8%203.7-.8%202.3%200%203.8.8c1.5.8%202.2.8%203.7.8V322'/%3e%3cpath%20fill='%23ccc'%20d='M149.6%20326.7a8%208%200%200%201-3.7-.8q-1.6-.8-3.7-.8a8%208%200%200%200-3.8.8q-1.5.8-3.8.8a7%207%200%200%201-3.7-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.7.8c-1.5.8-2.3.8-3.8.8v-2.3a8%208%200%200%200%203.8-.9%2010%2010%200%200%201%207.4%200%208%208%200%200%200%203.7.9%208%208%200%200%200%203.8-.8q1.5-.8%203.8-.8t3.7.8c1.5.8%202.3.8%203.7.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20326.7a8%208%200%200%201-3.7-.8q-1.6-.8-3.7-.8a8%208%200%200%200-3.8.8q-1.5.8-3.8.8a7%207%200%200%201-3.7-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.7.8c-1.5.8-2.3.8-3.8.8v-2.3a8%208%200%200%200%203.8-.9%2010%2010%200%200%201%207.4%200%208%208%200%200%200%203.7.9%208%208%200%200%200%203.8-.8q1.5-.8%203.8-.8t3.7.8c1.5.8%202.3.8%203.7.8v2.3'/%3e%3cpath%20fill='%23005bbf'%20d='M149.6%20329a8%208%200%200%201-3.7-.8q-1.6-.8-3.7-.8a8%208%200%200%200-3.8.8q-1.5.8-3.8.8a7%207%200%200%201-3.7-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.7.8c-1.5.8-2.3.8-3.8.8v-2.3a8%208%200%200%200%203.8-.8q1.5-.8%203.7-.8t3.7.7a8%208%200%200%200%207.5%200q1.5-.6%203.8-.7t3.7.8c1.5.8%202.2.8%203.7.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M149.6%20329a8%208%200%200%201-3.7-.8q-1.6-.8-3.7-.8a8%208%200%200%200-3.8.8q-1.5.8-3.8.8a7%207%200%200%201-3.7-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.7.8c-1.5.8-2.3.8-3.8.8v-2.3a8%208%200%200%200%203.8-.8q1.5-.8%203.7-.8t3.7.7a8%208%200%200%200%207.5%200q1.5-.6%203.8-.7t3.7.8c1.5.8%202.2.8%203.7.8z'/%3e%3cpath%20fill='%23c8b100'%20d='m126.2%20308%20.2.5c0%201.5-1.3%202.6-2.7%202.6h22a3%203%200%200%201-2.7-2.6v-.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='m126.2%20308%20.2.5c0%201.5-1.3%202.6-2.7%202.6h22a3%203%200%200%201-2.7-2.6v-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M126.6%20306.5h16q1%200%201%20.8%200%20.6-1%20.7h-16q-.9%200-1-.8.1-.6%201-.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M126.6%20306.5h16q1%200%201%20.8%200%20.6-1%20.7h-16q-.9%200-1-.8.1-.6%201-.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M123.7%20316.7h22V311h-22z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M123.7%20316.7h22V311h-22z'/%3e%3cpath%20fill='%23ad1519'%20d='M122%20286.7c-2.2%201.2-3.7%202.5-3.4%203.2q.2.8%201.8%201.6c1.5%201.1%202.5%203%201.7%204a5.5%205.5%200%200%200-.1-8.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M122%20286.7c-2.2%201.2-3.7%202.5-3.4%203.2q.2.8%201.8%201.6c1.5%201.1%202.5%203%201.7%204a5.5%205.5%200%200%200-.1-8.8z'/%3e%3cpath%20fill='%23ccc'%20d='M126.8%20305.6h15.6V229h-15.6v76.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M138%20229.2v76.3m1.7-76.3v76.3m-12.9%200h15.6v-76.4h-15.6v76.5z'/%3e%3cpath%20fill='%23ad1519'%20d='M158.4%20257.7a50%2050%200%200%200-23.3-2c-9.4%201.6-16.5%205.3-15.9%208.4v.2l-3.5-8.2c-.6-3.3%207.2-7.5%2017.6-9.2a43%2043%200%200%201%209.2-.7c6.6%200%2012.4.8%2015.8%202.1v9.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M158.4%20257.7a50%2050%200%200%200-23.3-2c-9.4%201.6-16.5%205.3-15.9%208.4v.2l-3.5-8.2c-.6-3.3%207.2-7.5%2017.6-9.2a43%2043%200%200%201%209.2-.7c6.6%200%2012.4.8%2015.8%202.1v9.4'/%3e%3cpath%20fill='%23ad1519'%20d='M126.8%20267.3c-4.3-.3-7.3-1.4-7.6-3.2q-.3-2.2%203.8-4.5l3.8.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M126.8%20267.3c-4.3-.3-7.3-1.4-7.6-3.2q-.3-2.2%203.8-4.5l3.8.3v7.4'/%3e%3cpath%20fill='%23ad1519'%20d='M142.5%20261.5q4.1.6%205.7%201.9l.1.2c.5%201-1.9%203-5.9%205.4v-7.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M142.5%20261.5q4.1.6%205.7%201.9l.1.2c.5%201-1.9%203-5.9%205.4v-7.5'/%3e%3cpath%20fill='%23ad1519'%20d='M117.1%20282c-.4-1.2%203.8-3.6%209.8-5.8l7.8-3.2c8.3-3.7%2014.4-7.9%2013.6-9.4v-.2c.4.4%201%208%201%208%20.8%201.3-4.8%205.5-12.4%209.1-2.5%201.2-7.6%203-10%204-4.4%201.4-8.7%204.3-8.3%205.3l-1.5-7.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M117.1%20282c-.4-1.2%203.8-3.6%209.8-5.8l7.8-3.2c8.3-3.7%2014.4-7.9%2013.6-9.4v-.2c.4.4%201%208%201%208%20.8%201.3-4.8%205.5-12.4%209.1-2.5%201.2-7.6%203-10%204-4.4%201.4-8.7%204.3-8.3%205.3l-1.5-7.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M125.8%20254c1.9-.6%203.1-1.5%202.5-3q-.6-1.3-2.8-.6l-2.6%201%202.3%205.8.8-.3.8-.3zm-1.2-2.7.7-.3q1-.3%201.4.8.4.8-.5%201.5l-.6.3zm7.3-2.5-.9.3h-.8l1.3%206.1%204.3-.8-.2-.4v-.4l-2.5.6zm8.4%205.2q1.2-3.3%202.7-6.4h-1l-1.8%204.6-2.4-4.3-1%20.1h-1l3.5%206zm8.8-4.7.4-.9a3%203%200%200%200-1.7-.6q-2.6%200-2.8%201.7c-.2%202.1%203.2%202%203%203.4q-.2%201-1.4.8-1.3%200-1.4-1.2h-.3l-.4%201.1a4%204%200%200%200%201.8.6q2.7.2%203.2-1.7c.2-2-3.3-2.1-3.1-3.4q0-.8%201.3-.7%201%200%201.2.9z'/%3e%3cpath%20fill='%23ad1519'%20d='M277.9%20211.6s-.7.8-1.3.9c-.5%200-1.1-.5-1.1-.5s-.5.5-1%20.6-1.4-.6-1.4-.6l-1%201-1.1-.3c-.1-.1-.3.4-.7.6h-.4l-.6-.4-.7-.7-.5-.3-.4-1v-.5q0-1%202.2-1.7a4%204%200%200%201%202%200q.9-.8%203-.8c2.1%200%202.4.3%203%20.7a6%206%200%200%201%202.9-.7q2.1%200%203%20.8.8-.3%202%200%202.2.6%202.2%201.7v.5l-.4%201-.6.3-.6.7-.6.3s-.3.2-.4%200q-.6-.3-.7-.5c-.1-.2-.6.4-1%20.2s-1-1-1-1-.9.8-1.4.7c-.6-.1-1-.6-1-.6s-.7.6-1.2.5-1.2-.9-1.2-.9'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.9%20211.6s-.7.8-1.3.9c-.5%200-1.1-.5-1.1-.5s-.5.5-1%20.6-1.4-.6-1.4-.6l-1%201-1.1-.3c-.1-.1-.3.4-.7.6h-.4l-.6-.4-.7-.7-.5-.3-.4-1v-.5q0-1%202.2-1.7a4%204%200%200%201%202%200q.9-.8%203-.8c2.1%200%202.4.3%203%20.7a6%206%200%200%201%202.9-.7q2.1%200%203%20.8.8-.3%202%200%202.2.6%202.2%201.7v.5l-.4%201-.6.3-.6.7-.6.3s-.3.2-.4%200q-.6-.3-.7-.5c-.1-.2-.6.4-1%20.2s-1-1-1-1-.9.8-1.4.7c-.6-.1-1-.6-1-.6s-.7.6-1.2.5-1.2-.9-1.2-.9z'/%3e%3cpath%20fill='%23c8b100'%20d='M276.5%20207.6c0-1%20.6-2%201.3-2s1.3%201%201.3%202-.5%201.8-1.3%201.8q-1.2-.1-1.3-1.9'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M276.5%20207.6c0-1%20.6-2%201.3-2s1.3%201%201.3%202-.5%201.8-1.3%201.8q-1.2-.1-1.3-1.9z'/%3e%3cpath%20fill='%23c8b100'%20d='M277.3%20207.6q0-1.7.5-1.8.6.2.7%201.8c.1%201.6-.3%201.7-.6%201.7q-.6-.2-.6-1.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.3%20207.6q0-1.7.5-1.8.6.2.7%201.8c.1%201.6-.3%201.7-.6%201.7q-.6-.2-.6-1.8z'/%3e%3cpath%20fill='%23c8b100'%20d='m271%20215.3-.5-1a27%2027%200%200%201%2014.8%200l-.6.8-.3.8a23%2023%200%200%200-6.6-.8c-2.6%200-5.2.3-6.6.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m271%20215.3-.5-1a27%2027%200%200%201%2014.8%200l-.6.8-.3.8a23%2023%200%200%200-6.6-.8c-2.6%200-5.2.3-6.6.8l-.2-.6'/%3e%3cpath%20fill='%23c8b100'%20d='M277.8%20217.7c2.4%200%205-.4%205.9-.6q1-.3%201-.8%200-.3-.4-.4a24%2024%200%200%200-6.5-.8c-2.5%200-5%20.3-6.4.8q-.3%200-.4.3%200%20.6%201%20.9c1%20.2%203.5.6%205.8.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.8%20217.7c2.4%200%205-.4%205.9-.6q1-.3%201-.8%200-.3-.4-.4a24%2024%200%200%200-6.5-.8c-2.5%200-5%20.3-6.4.8q-.3%200-.4.3%200%20.6%201%20.9c1%20.2%203.5.6%205.8.6z'/%3e%3cpath%20fill='%23fff'%20d='M283.5%20208.4q0-.3.4-.4.5%200%20.5.4t-.5.4a.4.4%200%200%201-.4-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M283.5%20208.4q0-.3.4-.4.5%200%20.5.4t-.5.4a.4.4%200%200%201-.4-.4zm-.2-1.4a.4.4%200%200%201%20.4-.4q.4%200%20.4.4t-.4.4a.4.4%200%200%201-.4-.4zm-1.1-1q0-.3.4-.3t.4.4-.4.4a.4.4%200%200%201-.4-.5zm-1.4-.4q0-.3.4-.4.5%200%20.5.4t-.4.4q-.5-.1-.5-.4zm-1.4%200q0-.3.5-.3t.4.4q0%20.3-.4.4a.4.4%200%200%201-.5-.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linecap='round'%20stroke-width='.3'%20d='m287.8%20211.2.2-1a2.7%202.7%200%200%200-2.7-2.8q-.8%200-1.3.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m283%20209.2.2-.8q-.2-1.8-2.5-2-1%200-1.6.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M288.2%20210q0-.5.4-.5t.4.4-.4.4q-.5%200-.4-.4zm-.2-1.6q0-.3.4-.4a.4.4%200%200%201%20.5.4q0%20.3-.4.4-.5%200-.5-.4zm-1-1.1a.4.4%200%200%201%20.5-.4q.3%200%20.4.4a.4.4%200%200%201-.4.4.4.4%200%200%201-.5-.4zm-1.3-.7q0-.4.5-.4t.4.4q0%20.5-.4.5a.4.4%200%200%201-.5-.5zm-1.4.1q0-.3.5-.4.6%200%20.4.4t-.4.4q-.4-.1-.5-.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m285.3%20213.2-.5-.5s-.6.3-1.3.2c-.6%200-.9-1-.9-1s-.7.7-1.3.7-1-.6-1-.6-.7.5-1.3.4-1.2-.8-1.2-.8-.6.8-1.2.8c-.6.1-1-.5-1-.5s-.3.6-1.1.7-1.4-.6-1.4-.6-.4.7-1%201c-.5%200-1.2-.4-1.2-.4l-.1.5-.3.1.1.5a27%2027%200%200%201%207.3-.9q4.3%200%207.3%201l.2-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m285.3%20213.2-.5-.5s-.6.3-1.3.2c-.6%200-.9-1-.9-1s-.7.7-1.3.7-1-.6-1-.6-.7.5-1.3.4-1.2-.8-1.2-.8-.6.8-1.2.8c-.6.1-1-.5-1-.5s-.3.6-1.1.7-1.4-.6-1.4-.6-.4.7-1%201c-.5%200-1.2-.4-1.2-.4l-.1.5-.3.1.1.5a27%2027%200%200%201%207.3-.9q4.3%200%207.3%201l.2-.6z'/%3e%3cpath%20fill='%23fff'%20d='M271.3%20208.4q0-.3.4-.4.5%200%20.4.4a.4.4%200%200%201-.4.4.4.4%200%200%201-.4-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M271.3%20208.4q0-.3.4-.4.5%200%20.4.4a.4.4%200%200%201-.4.4.4.4%200%200%201-.4-.4zm.2-1.4q0-.4.4-.4t.5.4q0%20.5-.5.4a.4.4%200%200%201-.4-.4zm1-1q.1-.3.5-.3t.5.4q0%20.3-.5.4a.4.4%200%200%201-.4-.5zm1.4-.4q0-.3.5-.4.6%200%20.4.4t-.4.4q-.4-.1-.5-.4zm1.4%200q0-.3.5-.3.3%200%20.4.4%200%20.3-.4.4a.4.4%200%200%201-.5-.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linecap='round'%20stroke-width='.3'%20d='m267.8%20211.2-.2-1a2.7%202.7%200%200%201%202.7-2.8q.8%200%201.4.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m272.7%20209.2-.3-.8c0-1%201.2-2%202.6-2a3%203%200%200%201%201.5.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M266.6%20210q0-.5.4-.5t.4.4a.4.4%200%200%201-.4.4q-.3%200-.4-.4zm.1-1.6q.1-.3.5-.4.5%200%20.4.4t-.4.4q-.4-.1-.4-.4zm1-1.1q0-.4.5-.4a.4.4%200%200%201%20.4.4.4.4%200%200%201-.4.4.4.4%200%200%201-.5-.4zm1.3-.7q0-.4.5-.4.3%200%20.4.4%200%20.5-.4.5a.4.4%200%200%201-.5-.5zm1.4.1q0-.3.5-.4a.4.4%200%200%201%20.4.4.4.4%200%200%201-.4.4q-.5%200-.5-.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M277.9%20210.7h.2v.4q.1%201%201%201a1%201%200%200%200%201-.7l.2-.3v.4q.3.8%201.1.8%201%200%201-1v-.1l.4-.4.2.5-.1.4a1%201%200%200%200%201%201q.6%200%20.9-.5l.2-.2v.3q0%20.5.4.7l1-.4c1-.5.7-.7.7-.7v.4s-.5.8-1%201q-.3.4-.8.3-.5%200-.7-.6l-.7.2q-1%200-1.4-.8l-1.1.5q-.8%200-1.2-.6l-1%20.4q-.9%200-1.4-.6-.4.6-1.2.6-.6%200-1-.4a2%202%200%200%201-1.3.6q-.6%200-1.1-.5-.4.8-1.4.8-.4%200-.7-.2-.2.5-.7.6t-.9-.2l-1-1%20.1-.5.8.7q.8.5.9.4.4-.1.4-.7v-.3l.2.2q.3.5.9.5a1%201%200%200%200%201-1v-.9l.4.4v.1q.1%201%201%201t1.1-.9v-.3l.2.3q.4.6%201%20.7%201%200%201.1-1v-.3h.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.9%20210.7h.2v.4q.1%201%201%201a1%201%200%200%200%201-.7l.2-.3v.4q.3.8%201.1.8%201%200%201-1v-.1l.4-.4.2.5-.1.4a1%201%200%200%200%201%201q.6%200%20.9-.5l.2-.2v.3q0%20.5.4.7l1-.4c1-.5.7-.7.7-.7v.4s-.5.8-1%201q-.3.4-.8.3-.5%200-.7-.6l-.7.2q-1%200-1.4-.8l-1.1.5q-.8%200-1.2-.6l-1%20.4q-.9%200-1.4-.6-.4.6-1.2.6-.6%200-1-.4a2%202%200%200%201-1.3.6q-.6%200-1.1-.5-.4.8-1.4.8-.4%200-.7-.2-.2.5-.7.6t-.9-.2l-1-1%20.1-.5.8.7q.8.5.9.4.4-.1.4-.7v-.3l.2.2q.3.5.9.5a1%201%200%200%200%201-1v-.9l.4.4v.1q.1%201%201%201t1.1-.9v-.3l.2.3q.4.6%201%20.7%201%200%201.1-1v-.3h.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M277.8%20213.3q-4.5%200-7.3%201l-.3-.2.1-.3q3-1%207.5-1t7.6%201l.1.3-.3.2a27%2027%200%200%200-7.4-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.8%20213.3q-4.5%200-7.3%201l-.3-.2.1-.3q3-1%207.5-1t7.6%201l.1.3-.3.2a27%2027%200%200%200-7.4-1z'/%3e%3cpath%20fill='%23fff'%20d='M275%20214.4q0-.4.5-.4a.4.4%200%200%201%20.4.4.4.4%200%200%201-.4.4q-.5%200-.5-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M275%20214.4q0-.4.5-.4a.4.4%200%200%201%20.4.4.4.4%200%200%201-.4.4q-.5%200-.5-.4z'/%3e%3cpath%20fill='%23ad1519'%20d='M277.9%20214.5h-1q-.2%200-.3-.3l.3-.3h2l.2.3-.3.3h-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.9%20214.5h-1q-.2%200-.3-.3l.3-.3h2l.2.3-.3.3h-1'/%3e%3cpath%20fill='%23058e6e'%20d='M273.2%20214.9h-.6a.3.3%200%200%201-.4-.2l.3-.3.6-.1.7-.1q.3%200%20.4.2a.3.3%200%200%201-.3.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M273.2%20214.9h-.6a.3.3%200%200%201-.4-.2l.3-.3.6-.1.7-.1q.3%200%20.4.2a.3.3%200%200%201-.3.4h-.7'/%3e%3cpath%20fill='%23ad1519'%20d='m270.5%20215.3.3-.4h.7l-.4.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m270.5%20215.3.3-.4h.7l-.4.6-.6-.2'/%3e%3cpath%20fill='%23fff'%20d='M279.8%20214.4q0-.4.4-.4t.5.4q0%20.3-.5.4a.4.4%200%200%201-.4-.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M279.8%20214.4q0-.4.4-.4t.5.4q0%20.3-.5.4a.4.4%200%200%201-.4-.4z'/%3e%3cpath%20fill='%23058e6e'%20d='M282.5%20214.9h.7l.3-.2-.2-.3-.7-.1-.7-.1q-.3%200-.4.2%200%20.3.3.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M282.5%20214.9h.7l.3-.2-.2-.3-.7-.1-.7-.1q-.3%200-.4.2%200%20.3.3.4h.7'/%3e%3cpath%20fill='%23ad1519'%20d='m285.1%20215.4-.2-.5h-.7l.3.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m285.1%20215.4-.2-.5h-.7l.3.6.6-.1'/%3e%3cpath%20fill='%23ad1519'%20d='M277.8%20217.1a25%2025%200%200%201-6-.6%2025%2025%200%200%201%206-.7q3.6%200%206.1.7-2.5.6-6%20.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M277.8%20217.1a25%2025%200%200%201-6-.6%2025%2025%200%200%201%206-.7q3.6%200%206.1.7-2.5.6-6%20.6z'/%3e%3cpath%20fill='%23c8b100'%20d='m285.2%20212-.1-.3q-.3%200-.4.2l.1.4q.3%200%20.4-.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m285.2%20212-.1-.3q-.3%200-.4.2l.1.4q.3%200%20.4-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M280.6%20211.2q0-.3-.3-.4l-.2.3q0%20.3.2.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M280.6%20211.2q0-.3-.3-.4l-.2.3q0%20.3.2.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M275.2%20211.2q0-.3.2-.4l.3.3-.2.4q-.3%200-.3-.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M275.2%20211.2q0-.3.2-.4l.3.3-.2.4q-.3%200-.3-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m270.5%20212%20.1-.3q.3%200%20.4.2l-.1.4q-.3%200-.4-.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m270.5%20212%20.1-.3q.3%200%20.4.2l-.1.4q-.3%200-.4-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m277.8%20208.5-.8.5.6%201.3.2.1.3-.1.6-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m277.8%20208.5-.8.5.6%201.3.2.1.3-.1.6-1.3-.9-.5'/%3e%3cpath%20fill='%23c8b100'%20d='m276%20210.5.4.5%201.3-.4.1-.2-.1-.2-1.3-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m276%20210.5.4.5%201.3-.4.1-.2-.1-.2-1.3-.3-.4.6'/%3e%3cpath%20fill='%23c8b100'%20d='m279.6%20210.5-.3.5-1.3-.4-.1-.2v-.2l1.4-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m279.6%20210.5-.3.5-1.3-.4-.1-.2v-.2l1.4-.3.4.6'/%3e%3cpath%20fill='%23c8b100'%20d='m272.5%20209-.7.7.9%201%20.2.1.2-.1.2-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m272.5%20209-.7.7.9%201%20.2.1.2-.1.2-1.3-.8-.3'/%3e%3cpath%20fill='%23c8b100'%20d='m271.1%20211.2.5.5%201.2-.6v-.2l-.1-.2-1.3-.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m271.1%20211.2.5.5%201.2-.6v-.2l-.1-.2-1.3-.1-.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m274.7%20210.5-.3.6h-1.3l-.2-.2.1-.3%201.2-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m274.7%20210.5-.3.6h-1.3l-.2-.2.1-.3%201.2-.6.5.5'/%3e%3cpath%20fill='%23c8b100'%20d='M269.8%20211.4v.6l-1.4.2-.2-.1v-.2l1-.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M269.8%20211.4v.6l-1.4.2-.2-.1v-.2l1-.9.6.4'/%3e%3cpath%20fill='%23c8b100'%20d='M272.4%20210.9q0-.5.5-.5l.5.5-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M272.4%20210.9q0-.5.5-.5l.5.5-.5.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m283.2%20209%20.7.7-.9%201-.2.1-.1-.1-.3-1.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m283.2%20209%20.7.7-.9%201-.2.1-.1-.1-.3-1.3.8-.3'/%3e%3cpath%20fill='%23c8b100'%20d='m284.6%20211.2-.5.5-1.2-.6v-.2l.1-.2%201.3-.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m284.6%20211.2-.5.5-1.2-.6v-.2l.1-.2%201.3-.1.3.6'/%3e%3cpath%20fill='%23c8b100'%20d='m281%20210.5.3.6h1.3l.2-.2-.1-.3-1.2-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m281%20210.5.3.6h1.3l.2-.2-.1-.3-1.2-.6-.5.5'/%3e%3cpath%20fill='%23c8b100'%20d='M285.7%20211.4v.6l1.4.2.2-.1v-.2l-1-.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M285.7%20211.4v.6l1.4.2.2-.1v-.2l-1-.9-.6.4'/%3e%3cpath%20fill='%23c8b100'%20d='M277.4%20210.4q0-.3.5-.4.4%200%20.4.4t-.4.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M277.4%20210.4q0-.3.5-.4.4%200%20.4.4t-.4.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M282.3%20210.9q.1-.5.5-.5t.5.5q0%20.6-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M282.3%20210.9q.1-.5.5-.5t.5.5q0%20.6-.5.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M277%20205.4q.1-.8.8-.8%201%200%201%20.8c0%20.8-.5.8-1%20.8a1%201%200%200%201-.8-.8'/%3e%3cpath%20fill='%23c8b100'%20d='M278.5%20205.1v.6H277v-.6h.4v-1.3h-.5v-.5h.5v-.6h.6v.6h.6v.6h-.6v1.2h.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M278.5%20205.1v.6H277v-.6h.4v-1.3h-.5v-.5h.5v-.6h.6v.6h.6v.6h-.6v1.2h.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M279%20205.1v.6h-2.4v-.6h1v-1.3h-.7v-.5h.6v-.6h.6v.6h.6v.6h-.6v1.2h1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M278.1%20204.6q.6.1.6.8t-.9.8a1%201%200%200%201-.8-.8q0-.6.6-.8'/%3e%3cpath%20fill='%23c8b100'%20d='m268%20212.2-.6-.7-.7-.3q0-.2.6-.3.3%200%20.4.2v-.2s.3%200%20.4.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m268%20212.2-.6-.7-.7-.3q0-.2.6-.3.3%200%20.4.2v-.2s.3%200%20.4.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M268%20212q.3-.3.5%200%20.4.2.1.5l-.5-.1q-.2-.2%200-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M268%20212q.3-.3.5%200%20.4.2.1.5l-.5-.1q-.2-.2%200-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='m287.5%20212.2.6-.7c.2-.2.7-.3.7-.3q0-.2-.6-.3l-.4.2v-.2s-.3%200-.4.3v.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m287.5%20212.2.6-.7c.2-.2.7-.3.7-.3q0-.2-.6-.3l-.4.2v-.2s-.3%200-.4.3v.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M287.5%20212q-.2-.3-.5%200t-.1.5l.5-.1q.3-.2.1-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M287.5%20212q-.2-.3-.5%200t-.1.5l.5-.1q.3-.2.1-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M267.2%20223h21.4v-5.5h-21.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M267.2%20223h21.4v-5.5h-21.4z'/%3e%3cpath%20fill='%23c8b100'%20d='M286.3%20226.8h-16.9q1-.4%201-1.2%200-1-1-1.3h17-.1q-1%20.3-1%201.3%200%20.8%201%201.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M286.3%20226.8h-16.9q1-.4%201-1.2%200-1-1-1.3h17-.1q-1%20.3-1%201.3%200%20.8%201%201.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M269.9%20226.8h16q1%200%201%20.7t-1%20.8h-16q-1-.1-1-.8.1-1%201-.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M269.9%20226.8h16q1%200%201%20.7t-1%20.8h-16q-1-.1-1-.8.1-1%201-.8z'/%3e%3cpath%20fill='%23c8b100'%20d='M269.9%20223h16q1%20.1%201%20.7t-1%20.6h-16q-1%200-1-.6t1-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M269.9%20223h16q1%20.1%201%20.7t-1%20.6h-16q-1%200-1-.6t1-.6z'/%3e%3cpath%20fill='%23005bbf'%20d='M263%20317.4q2.1%200%203.7-.8a8%208%200%200%201%203.7-.8q2.2%200%203.8.8c1.6.8%202.3.8%203.7.8q2.3%200%203.8-.8a8%208%200%200%201%203.6-.8%208%208%200%200%201%203.7.8q1.6.8%203.8.8v2.4a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.8q-2.2%200-3.6.8-1.5.8-3.8.9a8%208%200%200%201-3.7-.9%208%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v-2.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20317.4q2.1%200%203.7-.8a8%208%200%200%201%203.7-.8q2.2%200%203.8.8c1.6.8%202.3.8%203.7.8q2.3%200%203.8-.8a8%208%200%200%201%203.6-.8%208%208%200%200%201%203.7.8q1.6.8%203.8.8v2.4a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.8q-2.2%200-3.6.8-1.5.8-3.8.9a8%208%200%200%201-3.7-.9%208%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.9v-2.4z'/%3e%3cpath%20fill='%23ccc'%20d='M263%20319.8q2.1%200%203.7-.9c1.6-.9%202.3-.8%203.7-.8q2.2%200%203.8.8c1.6.8%202.3.9%203.7.9a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.8q2.3%200%203.7.8%201.6.8%203.8.9v2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.8-3.8.9a7%207%200%200%201-3.7-.9q-1.5-.6-3.8-.7a8%208%200%200%200-3.7.7%208%208%200%200%201-3.8.9v-2.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20319.8q2.1%200%203.7-.9c1.6-.9%202.3-.8%203.7-.8q2.2%200%203.8.8c1.6.8%202.3.9%203.7.9a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.8q2.3%200%203.7.8%201.6.8%203.8.9v2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.8-3.8.9a7%207%200%200%201-3.7-.9q-1.5-.6-3.8-.7a8%208%200%200%200-3.7.7%208%208%200%200%201-3.8.9v-2.3'/%3e%3cpath%20fill='%23005bbf'%20d='M263%20322q2.1%200%203.7-.8%201.6-.6%203.7-.7%202.2%200%203.8.7c1.6.7%202.3.9%203.7.9a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.8%208%208%200%200%201%203.7.8q1.6.8%203.8.9v2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.9-3.8.9t-3.7-.8a8%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.8V322'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20322q2.1%200%203.7-.8%201.6-.6%203.7-.7%202.2%200%203.8.7c1.6.7%202.3.9%203.7.9a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.8%208%208%200%200%201%203.7.8q1.6.8%203.8.9v2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.9-3.8.9t-3.7-.8a8%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.8V322'/%3e%3cpath%20fill='%23ccc'%20d='M263%20326.7a8%208%200%200%200%203.7-.8q1.6-.8%203.7-.8%202.2%200%203.8.8c1.6.8%202.3.8%203.7.8q2.3%200%203.8-.9a8%208%200%200%201%203.6-.7q2.3%200%203.7.8a8%208%200%200%200%203.8.8v-2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.8-3.8.9t-3.7-.8a8%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.8v2.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20326.7a8%208%200%200%200%203.7-.8q1.6-.8%203.7-.8%202.2%200%203.8.8c1.6.8%202.3.8%203.7.8q2.3%200%203.8-.9a8%208%200%200%201%203.6-.7q2.3%200%203.7.8a8%208%200%200%200%203.8.8v-2.3a8%208%200%200%201-3.8-.9%208%208%200%200%200-3.7-.7q-2.2%200-3.6.7-1.5.8-3.8.9t-3.7-.8a8%208%200%200%200-3.8-.8%208%208%200%200%200-3.7.8q-1.5.8-3.8.8v2.3'/%3e%3cpath%20fill='%23005bbf'%20d='M263%20329a8%208%200%200%200%203.7-.8q1.6-.8%203.7-.8%202.2%200%203.8.8c1.6.8%202.3.8%203.7.8a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.7q2.3%200%203.7.8%201.6.8%203.8.8v-2.3a8%208%200%200%201-3.8-.8%208%208%200%200%200-3.7-.8%208%208%200%200%200-3.6.7%208%208%200%200%201-3.8.9q-2.2%200-3.7-.8t-3.8-.8q-2.1%200-3.7.8c-1.6.8-2.3.8-3.8.8v2.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M263%20329a8%208%200%200%200%203.7-.8q1.6-.8%203.7-.8%202.2%200%203.8.8c1.6.8%202.3.8%203.7.8a8%208%200%200%200%203.8-.9%208%208%200%200%201%203.6-.7q2.3%200%203.7.8%201.6.8%203.8.8v-2.3a8%208%200%200%201-3.8-.8%208%208%200%200%200-3.7-.8%208%208%200%200%200-3.6.7%208%208%200%200%201-3.8.9q-2.2%200-3.7-.8t-3.8-.8q-2.1%200-3.7.8c-1.6.8-2.3.8-3.8.8v2.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m286.3%20308-.1.5c0%201.5%201.2%202.6%202.7%202.6h-22c1.5%200%202.7-1.2%202.7-2.6l-.1-.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='m286.3%20308-.1.5c0%201.5%201.2%202.6%202.7%202.6h-22c1.5%200%202.7-1.2%202.7-2.6l-.1-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M269.9%20306.5h16q1%200%201%20.8%200%20.6-1%20.7h-16q-1%200-1-.8.1-.6%201-.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M269.9%20306.5h16q1%200%201%20.8%200%20.6-1%20.7h-16q-1%200-1-.8.1-.6%201-.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M266.9%20316.7h22V311h-22z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M266.9%20316.7h22V311h-22z'/%3e%3cpath%20fill='%23ad1519'%20d='M290.6%20286.7c2.1%201.2%203.6%202.5%203.4%203.2q-.2.8-1.8%201.6c-1.6%201.1-2.5%203-1.8%204a5.5%205.5%200%200%201%20.2-8.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M290.6%20286.7c2.1%201.2%203.6%202.5%203.4%203.2q-.2.8-1.8%201.6c-1.6%201.1-2.5%203-1.8%204a5.5%205.5%200%200%201%20.2-8.8z'/%3e%3cpath%20fill='%23ccc'%20d='M270.1%20305.6h15.6V229h-15.6v76.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M281.4%20229.1v76.3m1.8-76.3v76.3m-13%20.2h15.5V229h-15.6v76.5z'/%3e%3cpath%20fill='%23ad1519'%20d='M254.2%20257.7a50%2050%200%200%201%2023.3-2c9.3%201.6%2016.4%205.3%2015.9%208.4v.2l3.5-8.2c.6-3.3-7.3-7.5-17.6-9.2a54%2054%200%200%200-9.2-.7c-6.7%200-12.4.8-15.9%202.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M254.2%20257.7a50%2050%200%200%201%2023.3-2c9.3%201.6%2016.4%205.3%2015.9%208.4v.2l3.5-8.2c.6-3.3-7.3-7.5-17.6-9.2a54%2054%200%200%200-9.2-.7c-6.7%200-12.4.8-15.9%202.1v9.4'/%3e%3cpath%20fill='%23ad1519'%20d='M285.7%20267.3c4.4-.3%207.3-1.4%207.7-3.2q.2-2.2-3.8-4.5l-3.9.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M285.7%20267.3c4.4-.3%207.3-1.4%207.7-3.2q.2-2.2-3.8-4.5l-3.9.3v7.4'/%3e%3cpath%20fill='%23ad1519'%20d='M270%20261.5a13%2013%200%200%200-5.7%201.9v.2c-.5%201%201.8%203%205.8%205.4v-7.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M270%20261.5a13%2013%200%200%200-5.7%201.9v.2c-.5%201%201.8%203%205.8%205.4v-7.5'/%3e%3cpath%20fill='%23ad1519'%20d='M295.4%20282c.4-1.2-3.8-3.6-9.7-5.8-2.8-1-5-2-7.8-3.2-8.3-3.7-14.4-7.9-13.6-9.4v-.2c-.4.4-1%208-1%208-.8%201.3%204.8%205.5%2012.4%209.1%202.4%201.2%207.6%203%2010%204%204.3%201.4%208.7%204.3%208.3%205.3l1.4-7.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M295.4%20282c.4-1.2-3.8-3.6-9.7-5.8-2.8-1-5-2-7.8-3.2-8.3-3.7-14.4-7.9-13.6-9.4v-.2c-.4.4-1%208-1%208-.8%201.3%204.8%205.5%2012.4%209.1%202.4%201.2%207.6%203%2010%204%204.3%201.4%208.7%204.3%208.3%205.3l1.4-7.7z'/%3e%3cpath%20fill='%23c8b100'%20d='m263.9%20254.4%202.1-6.6h-.5l-.5.1-1.4%204.8q-1.6-2-2.7-4.1l-1%20.2h-1l4%205.7h.5zm6-6.6h-1.8v6.2h4.2v-.7h-2.6zm6.8%201%202%20.3v-.7l-5.8-.5v.8h2l-.4%205.6h1.6l.5-5.4m2.4%206%20.8.2.8.2.7-2.9.6%201.2.8%202.1%201%20.2q.6%200%201%20.3l-.3-.7-1.3-2.9q1.6%200%202.1-1.2.3-.8-.7-1.5-.8-.4-1.7-.5l-2.4-.5zm3-5.2c.7.2%201.5.3%201.5%201v.5q-.5%201.3-2%20.9zm8%207-.2%202%20.8.5.9.5.5-7-.7-.3-6.1%203.8.5.3.4.2%201.7-1.2%202.3%201.3zm-1.7-1.5%202-1.4-.2%202.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M182.2%20192.4c0-1%201-2%202-2s2.2%201%202.2%202c0%201.1-1%202-2.1%202a2%202%200%200%201-2.1-2z'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.3'%20d='M205.7%20175.4c6.3%200%2012%201%2015.7%202.4a32%2032%200%200%200%2014.6%202.3c2.7%200%206.5.8%2010.3%202.4a27%2027%200%200%201%207.4%204.7l-1.5%201.4-.4%203.8-4.1%204.7-2%201.8-5%203.9-2.5.2-.7%202.1-31.6-3.7-31.7%203.7-.8-2.1-2.5-.2-4.9-4-2-1.7-4.1-4.7-.5-3.8-1.5-1.4a28%2028%200%200%201%207.5-4.7%2026%2026%200%200%201%2010.2-2.4q3%20.3%206.6-.2a30%2030%200%200%200%208-2q5.6-2.4%2015.5-2.5z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M206.2%20217.1c-11.8%200-22.4-1.4-29.9-3.6a1%201%200%200%201-.8-1.2q0-.8.8-1.2a109%20109%200%200%201%2029.9-3.6c11.7%200%2022.3%201.4%2029.8%203.6a1.3%201.3%200%200%201%200%202.4c-7.5%202.2-18%203.6-29.8%203.6'/%3e%3cpath%20fill='%23ad1519'%20d='M206.1%20215.6c-10.6%200-20.2-1.2-27.5-3.1%207.3-2%2016.9-3%2027.5-3.1a115%20115%200%200%201%2027.6%203c-7.3%202-17%203.2-27.6%203.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M206.9%20215.7v-6.3m-1.7%206.3v-6.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M203.6%20215.7v-6.3m-1.6%206.3v-6.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M200.6%20215.7v-6.3m-2.8%205.9v-5.7m1.3%205.8v-6m-3.8%205.6v-5.2m1.3%205.4v-5.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M192%20214.8V210m1%204.7V210m1.2%205v-5m-3.4%204.7v-4.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M189.7%20214.5v-4.2m-1.2%204.1v-4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.6'%20d='M186%20214v-3m1.3%203.2v-3.5m-2.5%203.1V211'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.7'%20d='M183.7%20213.6v-2.3m-1.3%202v-1.8m-1.2%201.6v-1.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.9'%20d='M179.8%20212.8v-.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M213.7%20215.3v-5.8m-2.9%206v-6.1m-2.1%206.2v-6.3'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M206%20207.4a108%20108%200%200%200-30%203.9c.6-.3.5-1-.3-3-1-2.5-2.4-2.4-2.4-2.4%208.3-2.5%2020-4%2032.8-4a123%20123%200%200%201%2033%204s-1.5-.1-2.5%202.3q-1.2%202.8-.2%203c-7.5-2.2-18.4-3.7-30.3-3.7'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M206.1%20201.9c-12.9%200-24.5%201.5-32.8%204a1%201%200%200%201-1.3-.6%201%201%200%200%201%20.7-1.3%20121%20121%200%200%201%2033.4-4.2c13.2%200%2025.2%201.7%2033.5%204.2q1%20.4.7%201.3t-1.3.6c-8.4-2.5-20-4-32.9-4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.4'%20d='M206.1%20215.6c-10.6%200-20.2-1.2-27.5-3.1%207.3-2%2016.9-3%2027.5-3.1a115%20115%200%200%201%2027.6%203c-7.3%202-17%203.2-27.6%203.2z'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M197%20204.8q0-.9%201-1%20.9.1%201%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='M206.1%20205.6H203a1%201%200%200%201%200-2h6.4q.9.1%201%201%200%201.2-1%201h-3.2'/%3e%3cpath%20fill='%23058e6e'%20stroke='%23000'%20stroke-width='.4'%20d='m190.3%20206.5-2.3.2q-.9%200-1.2-.8a1%201%200%200%201%201-1.1l2.2-.3%202.4-.3q.9%200%201.1.9%200%20.9-.9%201l-2.3.4'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M181%20206.7q.1-1%201.1-1t1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='m174%20208.5%201.2-1.6%203.3.4-2.6%202-1.8-.8'/%3e%3cpath%20fill='%23058e6e'%20stroke='%23000'%20stroke-width='.4'%20d='m222%20206.5%202.3.2q.9%200%201.1-.8a1%201%200%200%200-.9-1.1l-2.2-.3-2.4-.3a1%201%200%200%200-1.1.9q0%20.9.9%201l2.3.4'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M213.3%20204.8q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1m15.8%201.9q.1-1%201-1t1.1%201q0%20.9-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='m238.2%20208.5-1.1-1.6-3.3.4%202.6%202%201.8-.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M177.3%20212.8c7.4-2.1%2017.6-3.4%2028.8-3.4%2011.3%200%2021.4%201.3%2028.9%203.4'/%3e%3cpath%20fill='%23c8b100'%20d='m182.3%20183.8%201.4%201%202-3.2a7%207%200%200%201-3.6-7.2c.2-4.1%205.2-7.6%2011.7-7.6q5%20.1%208.5%202.4l.2-1.8a17%2017%200%200%200-8.7-2.1c-7.4%200-13.2%204.1-13.5%209.1a9%209%200%200%200%203%207.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='m182.3%20183.8%201.4%201%202-3.2a7%207%200%200%201-3.6-7.2c.2-4.1%205.2-7.6%2011.7-7.6q5%20.1%208.5%202.4l.2-1.8a17%2017%200%200%200-8.7-2.1c-7.4%200-13.2%204.1-13.5%209.1a9%209%200%200%200%203%207.6l-1%201.8'/%3e%3cpath%20fill='%23c8b100'%20d='M182.4%20183.8a9%209%200%200%201-4-7.3q.2-5%205.3-8a9%209%200%200%200-3.4%206.8%209%209%200%200%200%203%206.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M182.4%20183.8a9%209%200%200%201-4-7.3q.2-5%205.3-8a9%209%200%200%200-3.4%206.8%209%209%200%200%200%203%206.7l-.9%201.8'/%3e%3cpath%20fill='%23c8b100'%20d='M160.1%20187.1a9%209%200%200%201-2.3-5.9q0-2%201-3.8c2-4.2%208.4-7.2%2016-7.2q3%200%205.9.6l-1%201.4a26%2026%200%200%200-4.9-.4c-7%200-12.8%202.7-14.5%206.3a7%207%200%200%200-.7%203.1%207%207%200%200%200%202.7%205.6l-2.6%204.1-1.3-1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M160.1%20187.1a9%209%200%200%201-2.3-5.9q0-2%201-3.8c2-4.2%208.4-7.2%2016-7.2q3%200%205.9.6l-1%201.4a26%2026%200%200%200-4.9-.4c-7%200-12.8%202.7-14.5%206.3a7%207%200%200%200-.7%203.1%207%207%200%200%200%202.7%205.6l-2.6%204.1-1.3-1z'/%3e%3cpath%20fill='%23c8b100'%20d='M162.7%20173.3a11%2011%200%200%200-4%204.1%209%209%200%200%200-.9%203.8q.1%203.5%202.3%205.9l-1.5%202.5a10%2010%200%200%201-2.3-6.5c0-4%202.5-7.5%206.4-9.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M162.7%20173.3a11%2011%200%200%200-4%204.1%209%209%200%200%200-.9%203.8q.1%203.5%202.3%205.9l-1.5%202.5a10%2010%200%200%201-2.3-6.5c0-4%202.5-7.5%206.4-9.8z'/%3e%3cpath%20fill='%23c8b100'%20d='M206%20164.4c1.7%200%203.2%201.1%203.5%202.6q.4%202.1.4%204.5v1.1c.1%203.3.6%206.3%201.3%208.1l-5.2%205-5.2-5c.7-1.8%201.2-4.8%201.3-8.1v-1.1q0-2.4.4-4.5c.3-1.5%201.8-2.6%203.5-2.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M206%20164.4c1.7%200%203.2%201.1%203.5%202.6q.4%202.1.4%204.5v1.1c.1%203.3.6%206.3%201.3%208.1l-5.2%205-5.2-5c.7-1.8%201.2-4.8%201.3-8.1v-1.1q0-2.4.4-4.5c.3-1.5%201.8-2.6%203.5-2.6z'/%3e%3cpath%20fill='%23c8b100'%20d='M206%20166q1.6.1%201.8%201.4.3%201.8.4%204.2v1q.2%205%201.2%207.7l-3.4%203.2-3.4-3.2q1-2.7%201.2-7.7v-1l.4-4.2a2%202%200%200%201%201.8-1.4'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M206%20166q1.6.1%201.8%201.4.3%201.8.4%204.2v1q.2%205%201.2%207.7l-3.4%203.2-3.4-3.2q1-2.7%201.2-7.7v-1l.4-4.2a2%202%200%200%201%201.8-1.4z'/%3e%3cpath%20fill='%23c8b100'%20d='m229.7%20183.8-1.3%201-2-3.2a7%207%200%200%200%203.6-6.3v-.9c-.2-4.1-5.3-7.6-11.7-7.6a15%2015%200%200%200-8.5%202.4l-.2-1.8a17%2017%200%200%201%208.7-2.1c7.4%200%2013.2%204.1%2013.4%209.1a9%209%200%200%201-3%207.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='m229.7%20183.8-1.3%201-2-3.2a7%207%200%200%200%203.6-6.3v-.9c-.2-4.1-5.3-7.6-11.7-7.6a15%2015%200%200%200-8.5%202.4l-.2-1.8a17%2017%200%200%201%208.7-2.1c7.4%200%2013.2%204.1%2013.4%209.1a9%209%200%200%201-3%207.6l1%201.8'/%3e%3cpath%20fill='%23c8b100'%20d='M229.6%20183.8a9%209%200%200%200%204.1-7.3c0-3.2-2.1-6.1-5.3-8a9%209%200%200%201%203.4%206.8%209%209%200%200%201-3.2%206.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M229.6%20183.8a9%209%200%200%200%204.1-7.3c0-3.2-2.1-6.1-5.3-8a9%209%200%200%201%203.4%206.8%209%209%200%200%201-3.2%206.7l1%201.8'/%3e%3cpath%20fill='%23c8b100'%20d='M252%20187.1a9%209%200%200%200%202.2-5.9%209%209%200%200%200-.9-3.8c-2-4.2-8.4-7.2-16-7.2a29%2029%200%200%200-6%20.6l1%201.4a25%2025%200%200%201%205-.4c7%200%2012.8%202.7%2014.4%206.3q.7%201.5.7%203.1a7%207%200%200%201-2.6%205.6l2.5%204.1%201.3-1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M252%20187.1a9%209%200%200%200%202.2-5.9%209%209%200%200%200-.9-3.8c-2-4.2-8.4-7.2-16-7.2a29%2029%200%200%200-6%20.6l1%201.4a25%2025%200%200%201%205-.4c7%200%2012.8%202.7%2014.4%206.3q.7%201.5.7%203.1a7%207%200%200%201-2.6%205.6l2.5%204.1%201.3-1z'/%3e%3cpath%20fill='%23c8b100'%20d='M249.3%20173.3a11%2011%200%200%201%204%204.1%209%209%200%200%201%20.9%203.8%209%209%200%200%201-2.3%205.9l1.6%202.5a10%2010%200%200%200%202.3-6.5c0-4-2.6-7.5-6.5-9.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M249.3%20173.3a11%2011%200%200%201%204%204.1%209%209%200%200%201%20.9%203.8%209%209%200%200%201-2.3%205.9l1.6%202.5a10%2010%200%200%200%202.3-6.5c0-4-2.6-7.5-6.5-9.8z'/%3e%3cpath%20fill='%23fff'%20d='M204.2%20181.4q.1-1.7%201.8-1.8c1.7-.1%201.9.8%201.9%201.8s-.9%201.7-1.9%201.7a2%202%200%200%201-1.8-1.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M204.2%20181.4q.1-1.7%201.8-1.8c1.7-.1%201.9.8%201.9%201.8s-.9%201.7-1.9%201.7a2%202%200%200%201-1.8-1.7z'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M204.2%20178q.1-1.7%201.8-1.8c1.7-.1%201.9.8%201.9%201.8s-.9%201.7-1.9%201.7a2%202%200%200%201-1.8-1.7m.4-3.7q.1-1.2%201.4-1.3%201.4.1%201.5%201.3-.1%201.3-1.5%201.4c-1.4.1-1.4-.6-1.4-1.4m.4-3.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1m.2-2.8q.1-.8.8-.8t.9.8q0%20.7-.9.8a1%201%200%200%201-.8-.8'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='m206.2%20191.8%201.2.2a4.6%204.6%200%200%200%204.5%206%205%205%200%200%200%204.4-3c.1%200%20.5-1.7.7-1.7s.1%201.8.2%201.7c.3%202.3%202.4%203.8%204.7%203.8a4.6%204.6%200%200%200%204.7-5l1.5-1.5.7%202a4%204%200%200%200-.4%201.9%204.4%204.4%200%200%200%204.5%204.2q2.5%200%203.8-1.9l.9-1.2v1.5c0%201.5.6%202.8%202%203%200%200%201.7.1%204-1.6%202.1-1.7%203.3-3.1%203.3-3.1l.2%201.7s-1.8%202.8-3.8%204c-1%20.6-2.7%201.3-4%201q-2.1-.5-3-2.6a7%207%200%200%201-3.3%201%207%207%200%200%201-6.1-3.7%207%207%200%200%201-10.4-.3%207%207%200%200%201-4.6%201.8%207%207%200%200%201-5.7-3%207%207%200%200%201-5.7%203%207%207%200%200%201-4.7-1.8%207%207%200%200%201-10.4.3%207%207%200%200%201-6%203.7%207%207%200%200%201-3.4-1q-.8%202.1-3%202.7c-1.2.2-2.9-.5-4-1.1-2-1.2-3.8-4-3.8-4l.2-1.7s1.2%201.4%203.4%203.1%203.9%201.6%203.9%201.6c1.4-.2%202-1.5%202-3v-1.5l1%201.2a5%205%200%200%200%203.7%202c2.5%200%204.5-2%204.5-4.3a4%204%200%200%200-.4-2l.8-1.9%201.5%201.5v.6c0%202.4%202%204.4%204.6%204.4%202.4%200%204.4-1.5%204.7-3.8%200%200%200-1.6.2-1.7s.6%201.7.7%201.6a5%205%200%200%200%204.5%203.1%204.6%204.6%200%200%200%204.5-6l1.2-.2'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M238.6%20197.7q.4-1.4-.6-1.8-.9-.2-1.5%201.1-.4%201.4.6%201.8.9.2%201.5-1.1m-20.5-4c0-.8-.3-1.6-1-1.6q-.8%200-1.2%201.4%200%201.3.9%201.6%201-.1%201.3-1.4m-23.9%200c0-.8.4-1.6%201-1.6q1%200%201.2%201.4%200%201.3-.9%201.6-1-.1-1.2-1.4m-20.6%204q-.3-1.4.6-1.8%201-.2%201.5%201.1t-.5%201.8q-1%20.2-1.6-1.1'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M182.7%20184a5%205%200%200%201%202.2%202.9s0-.3.6-.6%201-.3%201-.3l-.1%201.3-.3%202.2-.7%201.6a2%202%200%200%200-1.5-.4%202%202%200%200%200-1.2.9s-.7-.6-1.2-1.3l-1.1-2-.7-1.1s.5-.2%201.1%200q.9.1.8.2a5%205%200%200%201%201-3.4m.4%209.8-.6-1q0-.7.3-1.2s-.9-.5-1.8-.7c-.7-.2-2-.2-2.3-.2h-1l.2.5.5.7a5%205%200%200%200-3%202%205%205%200%200%200%203.5%201l-.2.8v.6l1-.4c.3-.1%201.5-.5%202-1%20.8-.4%201.5-1.1%201.5-1.1m2.7-.5.2-1.1-.6-1%201.4-1.3%202-.9%201.1-.4v.6l-.2.8a5%205%200%200%201%203.4%201%205%205%200%200%201-2.9%202l.7%201.2h-1c-.4%200-1.6%200-2.3-.2l-1.8-.7'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='M182.2%20192.4c0-1%201-2%202-2s2.2%201%202.2%202c0%201.1-1%202-2.1%202a2%202%200%200%201-2.1-2'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M206.1%20180.8a6%206%200%200%201%201.9%203.7s.2-.3.9-.5q1.1-.3%201.2-.2l-.5%201.4-.8%202.4-1%201.7a2%202%200%200%200-1.7-.7q-1%200-1.6.7-.2-.1-1-1.7l-.8-2.4-.5-1.4%201.2.2q1%20.4.9.5.2-2.2%201.8-3.7'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M204.6%20191.8a2%202%200%200%201-.5-1.2q0-.8.4-1.3s-.8-.7-1.8-1c-.7-.4-2-.7-2.5-.7l-1.2-.2.2.6.4.9a6%206%200%200%200-3.7%201.7q1.6%201.5%203.7%201.6l-.4%201-.2.6%201.2-.2c.4-.1%201.8-.4%202.5-.7%201-.4%201.9-1%201.9-1m3%200a2%202%200%200%200%20.1-2.6s.9-.7%201.8-1a8%208%200%200%201%202.5-.7l1.2-.3-.1.7-.4.9q2.2.2%203.6%201.7a6%206%200%200%201-3.6%201.6l.5%201.6-1.2-.2-2.5-.7c-1-.4-1.8-1-1.8-1m22-8a5%205%200%200%200-2.2%203l-.7-.6-1-.3.2%201.3c0%20.3%200%201.3.3%202.2q.4%201.6.6%201.6a2%202%200%200%201%201.5-.4q.9.2%201.3.9l1.1-1.3q1-1.4%201.1-2l.7-1.1s-.4-.2-1%200l-1%20.2a5%205%200%200%200-1-3.4m-.3%209.8q.5-.4.6-1l-.2-1.2s.8-.5%201.7-.7c.7-.2%202-.2%202.3-.2h1.1l-.3.5-.4.7a5%205%200%200%201%202.9%202%205%205%200%200%201-3.5%201l.2.8v.6l-1-.4c-.3-.1-1.4-.5-2-1-.8-.4-1.4-1.1-1.4-1.1m-2.8-.5-.2-1.1q0-.7.6-1s-.6-.8-1.4-1.3c-.6-.4-1.7-.8-2-.9l-1-.4v.6l.2.8a5%205%200%200%200-3.5%201q1%201.4%203%202l-.5.7-.3.5h1c.4%200%201.7%200%202.3-.2l1.8-.7'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='M226%20192.4c0-1%201-2%202-2s2.1%201%202.1%202a2%202%200%200%201-2%202%202%202%200%200%201-2.1-2m23.2%204.4c-.4-.5-1.4-.4-2.2.2q-1.2%201.2-.5%202.2%201%20.8%202.3-.3c.7-.6%201-1.6.5-2'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='m246.3%20198%20.7-1c.7-.6%201.8-.7%202.3-.2l.1.2s1-2%202.3-2.6%203.4-.5%203.4-.5a3%203%200%200%200-2.9-2.8%203%203%200%200%200-2.4%201l-.2-1s-1.3.3-1.9%201.8%200%203.6%200%203.6-.3-.9-.7-1.5a8%208%200%200%200-2.4-1.6l-1.3-.7-.1.5v.8a8%208%200%200%200-3.7.5%205%205%200%200%200%202.5%202.2l-.8.7-.4.5%201.3.2%202.5.2%201.7-.2m-80.3%200q0-.6-.7-1c-.7-.7-1.7-.8-2.2-.3l-.2.3s-1-2-2.3-2.7-3.3-.5-3.3-.5a3%203%200%200%201%202.8-2.8q1.6%200%202.4%201l.2-1s1.3.3%202%201.8c.5%201.5-.1%203.6-.1%203.6s.3-.9.8-1.5a8%208%200%200%201%202.4-1.6l1.3-.7v1.3a8%208%200%200%201%203.7.5%205%205%200%200%201-2.5%202.2l.8.7.4.5-1.2.2-2.6.2-1.7-.2'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.4'%20d='M163%20196.8q1-.7%202.4.3%201.2%201%20.4%202c-.5.6-1.5.5-2.2-.2s-1-1.6-.5-2m41-6.3q.2-1.8%202-2c1.8-.2%202.1.9%202.1%202%200%201-1%202-2%202a2%202%200%200%201-2.1-2'/%3e%3cpath%20fill='%23005bbf'%20stroke='%23000'%20stroke-width='.3'%20d='M201.8%20160.6c0-2.2%201.9-4%204.3-4s4.2%201.8%204.2%204-1.9%204-4.3%204a4%204%200%200%201-4.2-4'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.3'%20d='M205%20149.3v2.2h-2.4v2.2h2.3v6.3H202l-.2.6q0%20.9.3%201.6h7.9q.3-.7.3-1.6l-.2-.6h-2.8v-6.3h2.3v-2.2h-2.3v-2.2z'/%3e%3cpath%20fill='%23ccc'%20d='M206.5%20330.6a82%2082%200%200%201-35.5-8.2%2023%2023%200%200%201-12.8-20.4v-32h96.4v32a23%2023%200%200%201-12.8%2020.4%2081%2081%200%200%201-35.3%208.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M206.5%20330.6a82%2082%200%200%201-35.5-8.2%2023%2023%200%200%201-12.8-20.4v-32h96.4v32a23%2023%200%200%201-12.8%2020.4%2081%2081%200%200%201-35.3%208.2z'/%3e%3cpath%20fill='%23ccc'%20d='M206.3%20270h48.3v-53.5h-48.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M206.3%20270h48.3v-53.5h-48.3z'/%3e%3cpath%20fill='%23ad1519'%20d='M206.3%20302c0%2012.6-10.7%2022.9-24%2022.9s-24.2-10.3-24.2-23v-32h48.2v32'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.5'%20d='M168.6%20320.9c1.5.8%203.6%202%205.8%202.6l-.1-54.7h-5.7z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.5'%20d='M158%20301.6a24%2024%200%200%200%205.5%2015v-47.5h-5.4z'/%3e%3cpath%20fill='%23c7b500'%20stroke='%23000'%20stroke-width='.5'%20d='M179.4%20324.7a27%2027%200%200%200%205.6%200v-55.9h-5.6v56z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.5'%20d='M190%20323.5a19%2019%200%200%200%205.8-2.5v-52.2H190z'/%3e%3cpath%20fill='%23ad1519'%20d='M158.1%20270h48.2v-53.5H158z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M158.1%20270h48.2v-53.5H158z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.5'%20d='M201%20316c2.4-2%204.6-6.8%205.4-12.2l.1-35H201l.1%2047.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M206.3%20302c0%2012.6-10.7%2022.9-24%2022.9s-24.2-10.3-24.2-23v-32h48.2v32'/%3e%3cpath%20fill='%23ad1519'%20d='M254.6%20270v32c0%2012.6-10.8%2022.9-24.1%2022.9s-24.2-10.3-24.2-23v-32h48.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.5'%20d='M254.6%20270v32c0%2012.6-10.8%2022.9-24.1%2022.9s-24.2-10.3-24.2-23v-32h48.3'/%3e%3cpath%20fill='%23c8b100'%20d='m215.1%20294.1.1.5q-.1%201-1.1%201a1%201%200%200%201-1.1-1v-.5h-1.5a2.5%202.5%200%200%200%201.8%202.9v3.9h1.6V297a3%203%200%200%200%201.7-1.6h4.4v-1.2zm21.8%200v1.2h-4l-.3.6%204.6%205.2-1.2%201-4.6-5.3-.2.1v8.7h-1.6V297h-.2l-4.8%205.2-1.2-1%204.7-5.3-.2-.4h-4V294h13zm2.6%200v1.2h4.4q.5%201.2%201.7%201.6v3.9h1.6V297a3%203%200%200%200%201.8-2.4v-.5h-1.6l.1.5q-.1%201-1%201-1.1%200-1.2-1l.1-.5zm-6.7%2022.1a16%2016%200%200%200%203.7-1l.8%201.4a18%2018%200%200%201-4.3%201.2%203%203%200%200%201-2.6%202%203%203%200%200%201-2.5-2%2018%2018%200%200%201-4.6-1.2l.8-1.4q2%20.8%204%201a3%203%200%200%201%201.5-1.3v-6.7h1.6v6.7q1.1.3%201.6%201.4zm-11-2.2-.8%201.4a17%2017%200%200%201-3.6-3.1q-1.4.3-2.5-.5a2.4%202.4%200%200%201-.3-3.5l.1-.1a15%2015%200%200%201-1.3-4.8h1.7a13%2013%200%200%200%201%204q.8%200%201.4.2l4.1-4.5%201.3%201-4.1%204.5q.8%201.5-.1%202.8a15%2015%200%200%200%203.1%202.6m-6-4.8q.6-.7%201.5%200c.9.7.5%201%20.1%201.4a1%201%200%200%201-1.6.1%201%201%200%200%201%200-1.5m-2.2-4.5-1.6-.3-.3-4.3%201.7-.6v2.5q0%201.4.2%202.7m1.4-5.3%201.7.4v2.2c0-.8.3%202.1.3%202.1l-1.7.6-.3-2.7zm5.6%2013.7a16%2016%200%200%200%204.8%202.6l.4-1.6a14%2014%200%200%201-4-2zm-.8%201.4a17%2017%200%200%200%204.8%202.6l-1.2%201.1a19%2019%200%200%201-4-2zm2.2-9.4%201.6.7%203-3.3-1-1.4zm-1.3-1-1-1.4%203-3.3%201.6.7zm18.1%209.9.8%201.4a17%2017%200%200%200%203.6-3.1q1.4.3%202.5-.5a2.4%202.4%200%200%200%20.3-3.5l-.1-.1a15%2015%200%200%200%201.3-4.8h-1.7a13%2013%200%200%201-1%204l-1.4.2-4.1-4.5-1.3%201%204.1%204.5a2.4%202.4%200%200%200%20.1%202.8%2015%2015%200%200%201-3.1%202.6m6-4.8a1%201%200%200%200-1.5%200%201%201%200%200%200-.1%201.4%201%201%200%200%200%201.6.1%201%201%200%200%200%200-1.5m2.2-4.5%201.6-.3.3-4.3-1.7-.6v2.5q0%201.5-.2%202.8zm-1.4-5.3-1.7.4v2.2c0-.8-.3%202.1-.3%202.1l1.7.6.3-2.7zm-5.6%2013.7a16%2016%200%200%201-4.8%202.6l-.4-1.6a14%2014%200%200%200%204-2zm.8%201.4a17%2017%200%200%201-4.8%202.6l1.2%201.1a19%2019%200%200%200%204-2zm-2.2-9.4-1.6.7-2.9-3.3%201-1.4zm1.3-1%201-1.4-3-3.3-1.6.7zm-20.1-8.7.5%201.6h4.5l.5-1.6zm21.1%200-.5%201.6h-4.5l-.5-1.6zm-11.6%2021.9q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1%201a1%201%200%200%201-1.2-1m1.9-7.8%201.7-.4v-4.3l-1.7-.5zm-1.6%200-1.7-.4v-4.3l1.7-.5z'/%3e%3cpath%20fill='%23c8b100'%20d='M211.5%20294.2q.4-1.5%201.8-2V287h1.6v5.3q1.3.5%201.7%201.6h4.4v.3h-6a1%201%200%200%200-1-.6q-.6%200-1%20.6zm12.2%200v-.3h4.1l.2-.3-5-5.7%201.2-1%205%205.6.2-.1V285h1.6v7.3h.3l4.9-5.5%201.2%201-4.9%205.5.3.6h4v.3zm21.6%200a1%201%200%200%201%201-.6q.7%200%201%20.6h1.6q-.4-1.5-1.8-2V287h-1.6v5.3q-1.2.4-1.7%201.6h-4.4v.3zm-30.2-15%206%206.8%201.3-1-6.1-6.7.3-.6h4.4V276h-4.4a3%203%200%200%200-2.5-1.7%202.6%202.6%200%200%200-2.7%202.5%203%203%200%200%200%201.8%202.4v5.2h1.6v-5.2zm32%200v5.3h-1.7v-5.2l-.4-.2-6%206.8-1.3-1%206.2-6.9-.1-.3h-4.5V276h4.5a3%203%200%200%201%202.4-1.7%202.6%202.6%200%200%201%202.7%202.5%202.5%202.5%200%200%201-1.9%202.4zm-16.1%200v3.3h-1.7v-3.2a3%203%200%200%201-1.7-1.6h-4V276h4a3%203%200%200%201%202.5-1.7q2%20.1%202.5%201.7h4v1.6h-4a3%203%200%200%201-1.6%201.6m-17.8%204-1.7.4v4.3l1.7.5zm1.6%200%201.7.4v4.3l-1.7.5zm30.6%200-1.7.4v4.3l1.7.5zm1.6%200%201.7.4v4.3l-1.7.5zm-25.5.8%201.6-.7%202.9%203.3-1%201.4zm-1.3%201-1%201.4%203%203.3%201.6-.7zm18.5-1.1-1.6-.7-3%203.3%201%201.4zm1.2%201%201%201.4-3%203.3-1.5-.7zm-20.3%209%20.5-1.6h4.5l.5%201.6zm-6.7-17q0-1%201.2-1a1%201%200%200%201%201%201q0%201-1%201a1%201%200%200%201-1.2-1m12.1.8-.5%201.6H220l-.5-1.6zm0-1.6-.5-1.6H220l-.5%201.6zm15.7%2017.8-.5-1.6h-4.5l-.5%201.6zm4.4-17q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1%201a1%201%200%200%201-1.2-1m-16.1%200q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1.1%201a1%201%200%200%201-1.1-1m6.2.8.5%201.6h4.6l.5-1.6zm0-1.6.5-1.6h4.6l.5%201.6zm-5.9%205-1.7.5v4.3l1.7.5V281m1.7%200%201.6.5v4.3l-1.6.5z'/%3e%3cpath%20fill='none'%20stroke='%23c8b100'%20stroke-width='.3'%20d='M232.7%20316.3a16%2016%200%200%200%203.7-1.1l.8%201.4a18%2018%200%200%201-4.3%201.2%203%203%200%200%201-2.6%202%203%203%200%200%201-2.5-2%2018%2018%200%200%201-4.6-1.2l.8-1.4q2%20.8%204%201a3%203%200%200%201%201.5-1.3v-6.7h1.6v6.7q1.1.3%201.6%201.4zm-4.7-20.4-.2-.5h-4V294h4l.2-.4-5-5.6%201.2-1%205%205.5h.2V285h1.7v7.3h.2l4.9-5.5%201.2%201-4.9%205.5.3.6h4v1.5h-4q0%20.3-.3.5l4.7%205.3-1.3%201-4.6-5.3-.2.1v8.7h-1.6V297l-.2-.1-4.8%205.3-1.2-1%204.7-5.3m-12.8-16.7%206%206.8%201.3-1-6.1-6.7.3-.6h4.4V276h-4.4a3%203%200%200%200-2.5-1.7%202.6%202.6%200%200%200-2.6%202.5%203%203%200%200%200%201.7%202.4v5.2h1.6v-5.2zm6.5%2034.8-.8%201.4a17%2017%200%200%201-3.6-3.1q-1.4.3-2.5-.5a2.4%202.4%200%200%201-.3-3.5l.1-.1a15%2015%200%200%201-1.2-4.8h1.6a13%2013%200%200%200%201%204q.8%200%201.4.2l4.1-4.5%201.3%201-4.1%204.5q.8%201.5-.1%202.8a15%2015%200%200%200%203.1%202.6zm-8.4-13.1V297a3%203%200%200%201-1.8-2.4q.2-1.6%201.8-2.4V287h1.6v5.3q1.3.4%201.7%201.6h4.4v1.5h-4.4a3%203%200%200%201-1.6%201.6v3.9h-1.7m2.3%208.3q.7-.7%201.6%200c.9.7.5%201%20.1%201.4a1%201%200%200%201-1.6.1%201%201%200%200%201%200-1.5zm-2-4.5-1.7-.3-.3-4.3%201.7-.6v2.5q0%201.4.3%202.7zm1.4-5.3%201.6.4v2.2c0-.8.3%202.1.3%202.1l-1.7.6-.3-2.7v-2.6zm5.5%2013.7a16%2016%200%200%200%204.8%202.6l.4-1.6a14%2014%200%200%201-4-2l-1.2%201m-.8%201.4a17%2017%200%200%200%204.8%202.6l-1.2%201.1a19%2019%200%200%201-4-2l.4-1.7'/%3e%3cpath%20fill='none'%20stroke='%23c8b100'%20stroke-width='.3'%20d='m221.9%20305.1%201.6.7%203-3.3-1-1.4-3.6%204m-1.3-1-1-1.4%203-3.3%201.6.7-3.6%204m-7.6-9.5q.1-1%201-1%201.1.1%201.2%201-.1%201-1.1%201.1a1%201%200%200%201-1.1-1zm25.7%2019.4.8%201.4a17%2017%200%200%200%203.6-3.1q1.4.3%202.6-.5a2.4%202.4%200%200%200%20.2-3.5l-.1-.1a15%2015%200%200%200%201.3-4.8h-1.7a13%2013%200%200%201-1%204l-1.4.2-4.1-4.5-1.3%201%204.1%204.5a2.4%202.4%200%200%200%20.1%202.8%2015%2015%200%200%201-3%202.6zm8.4-13.1V297a3%203%200%200%200%201.8-2.4q0-1.6-1.8-2.4V287h-1.6v5.3q-1.2.4-1.7%201.6h-4.4v1.5h4.4q.5%201.2%201.7%201.6v3.9zm-2.3%208.3a1%201%200%200%200-1.6%200%201%201%200%200%200-.1%201.4%201%201%200%200%200%201.6.1%201%201%200%200%200%200-1.5zm2-4.5%201.7-.3.3-4.3-1.7-.6v2.5q0%201.4-.2%202.7zm-1.3-5.3-1.7.4v2.2c0-.8-.3%202.1-.3%202.1l1.7.6.3-2.7v-2.6m1.6-20.1v5.2h-1.6v-5.2l-.4-.2-6%206.8-1.2-1%206-7v-.2h-4.5V276h4.4a3%203%200%200%201%202.5-1.7%202.6%202.6%200%200%201%202.6%202.5%203%203%200%200%201-1.8%202.4zm-16%200v3.2h-1.7v-3.2a3%203%200%200%201-1.7-1.6h-4V276h4q.7-1.6%202.5-1.7c1.8-.1%202.2.7%202.5%201.7h4v1.6h-4a3%203%200%200%201-1.6%201.6zm8.8%2033.8a16%2016%200%200%201-4.8%202.6l-.4-1.6a14%2014%200%200%200%204-2l1.2%201m.8%201.4a17%2017%200%200%201-4.8%202.6l1.2%201.1a19%2019%200%200%200%204-2l-.4-1.7m-27.4-31.4-1.7.5v4.3l1.7.5v-5.2m1.7%200%201.6.4v4.3l-1.6.5V283m30.5%200-1.7.5v4.3l1.7.5V283'/%3e%3cpath%20fill='none'%20stroke='%23c8b100'%20stroke-width='.3'%20d='m247.1%20283.1%201.7.5v4.3l-1.7.5V283m-8.6%2022-1.6.7-2.9-3.3%201-1.4%203.5%204m1.3-1%201-1.4-3-3.3-1.6.7%203.6%204m-18.2-20%201.6-.7%203%203.3-1%201.4-3.6-4m-1.3%201-1%201.4%203%203.3%201.6-.7-3.6-4m18.5-1.1-1.6-.7-3%203.3%201%201.4%203.6-4m1.2%201%201%201.4-3%203.2-1.5-.6%203.5-4m-20.3%209%20.5-1.6h4.5l.5%201.6h-5.5m0%201.5.5%201.6h4.5l.5-1.6h-5.5M213%20277q0-1%201.2-1%201%200%201%201c0%201-.4%201-1%201a1%201%200%200%201-1.2-1zm12.1.8-.5%201.6h-4.5l-.5-1.6h5.5m0-1.6-.5-1.6h-4.5l-.5%201.6h5.5m20.1%2018.5q.1-.9%201.1-1%201%20.1%201.1%201-.1%201-1%201.1a1%201%200%200%201-1.2-1zm-4.4-.7-.5-1.6h-4.5l-.5%201.6h5.5m0%201.5-.5%201.6h-4.5l-.5-1.6h5.5m-11.6%2021.9q.1-1%201.1-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.2-1zm1.9-7.8%201.7-.4v-4.3l-1.7-.5v5.2m-1.6%200-1.7-.4v-4.3l1.7-.5v5.2m15.7-32.6q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1%201a1%201%200%200%201-1.2-1zm-16.1%200q.1-1%201.1-1a1%201%200%200%201%201.1%201q-.1%201-1%201a1%201%200%200%201-1.2-1zm6.2.8.5%201.6h4.6l.5-1.6h-5.5m0-1.6.4-1.6h4.6l.5%201.6h-5.5m-6%205-1.6.5v4.3l1.6.5V281m1.7%200%201.6.5v4.3l-1.6.5V281'/%3e%3cpath%20fill='%23058e6e'%20d='M227.7%20294.7a2.6%202.6%200%200%201%202.6-2.5%202.6%202.6%200%200%201%202.6%202.5%202.6%202.6%200%200%201-2.6%202.4c-1.4%200-2.6-1-2.6-2.4'/%3e%3cpath%20fill='%23db4446'%20d='M230.9%20229.7v-.6l.1-.3-2.3-.1a6%206%200%200%201-2.3-1.2q-1-1-1.6-1.2c-1.3-.2-2.3.4-2.3.4s1%20.4%201.7%201.3%201.5%201.3%201.8%201.4c.6.2%202.6%200%203.1.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M230.9%20229.7v-.6l.1-.3-2.3-.1a6%206%200%200%201-2.3-1.2q-1-1-1.6-1.2c-1.3-.2-2.3.4-2.3.4s1%20.4%201.7%201.3%201.5%201.3%201.8%201.4c.6.2%202.6%200%203.1.1z'/%3e%3cpath%20fill='%23ed72aa'%20stroke='%23000'%20stroke-width='.4'%20d='M238.1%20227.5v1.4c.2.6-.1%201.2%200%201.5q0%20.5.3.9l.2.9-.7-.5-.6-.4v1l.6%201.1%201%201.3c.2.5.1%201.4.1%201.4s-.4-.7-.8-.8l-1.2-.7s.7.8.7%201.5l-.3%201.6c-.1.2-.3-.7-.8-1.1l-1-.9s.4%201.2.4%202v2.3l-.9-1-1-.7c0-.2.5.6.6%201.1s.3%202.3%201.8%204.5c1%201.3%202.3%203.6%205.3%202.9s1.9-4.8%201.3-6.7a17%2017%200%200%201-1-4.6c0-.8.6-2.9.5-3.3a8%208%200%200%201%20.2-3.1l.9-2.3.4-1.3.1-1.3.7%201.3.1%201.5s.1-1%201-1.6%201.8-1.1%202-1.4l.3-.5c-.1%200%200%201.8-.6%202.6l-1.7%202s.7-.3%201.2-.3h.9s-.6.4-1.4%201.6c-.8%201-.5%201.2-1%202.1s-1%201-1.7%201.5c-1%20.8-.5%204.2-.4%204.7.2.5%202%204.5%202%205.5s.2%203.2-1.5%204.6c-1.1%201-3%201-3.4%201.2-.4.3-1.2%201.1-1.2%202.8s.6%202%201%202.4c.6.5%201.2.2%201.3.6l.5.7q.3.3.2.8c0%20.3-.8%201.1-1.1%201.7l-.8%202.4c0%20.2-.1%201%20.1%201.3%200%200%20.9%201%20.3%201.2-.4.2-.8-.2-1-.2l-.9.5q-.3-.1-.4-.8l-.1-.7q-.3%200-.4.5c0%20.2%200%20.8-.3.8l-.8-.5c-.2%200-.8-.2-.8-.4q.1-.6.7-1%20.8-.1.5-.5t-.7%200c-.3.4-.8%200-.7-.2v-.8c0-.2-.4-.5.1-.8s.8.2%201.4.1q.8%200%201-.6.3-.6-.2-1.4l-.9-.8-.3-.9v2.2l-.7-.8c-.3-.3-.6-1.3-.6-1.3v1.3l.2.8c-.1.1-.8-.7-1-.8l-1-1-.4-1.4v-1.5l.4-1h-1.4c-.7%200-1.2-.3-1.5.2q-.4.8.2%202.8.5%201.8.4%202.1l-.7.8h-.9l-1.2-.3h-1.3l-1.1-.3c-.3.1-.8.3-.6.7q.1.8-.5.7l-.9-.2q-.8%200-.8-.4t.4-.7q.3-.5%200-.5h-.6q-.3.4-.8.4-.3-.1-.4-1c-.1-.9-.7-1.2%200-1.1.5%200%201.3.4%201.4%200q.2-.4-.2-.7c-.4-.3-.8-.4-.3-.7l.7-.5c.1-.2.4-.8.7-.6.6.2%200%20.7.6%201.3s1%201%202%20.8q1.4%200%201.3-.5l-.1-1v-1s-.4.3-.5.6l-.4.8v-2l-.2-.8-.3.9-.1%201s-.7-.5-.5-1.5l.1-2c.2-.3.7-1.5%202-1.6h2.6l2-.3s-2.8-1.4-3.5-1.9a10%2010%200%200%201-2-2l-.6-1.6s-.5%200-1%20.3l-1.2%201-.7%201%20.1-1.2v-.8s-.4%201.2-1%201.7l-1.4%201v-.8l.2-1s-.4.8-1.1%201c-.7%200-1.8%200-1.9.4q.2.8%200%201.4c0%20.3-.4.5-.4.5l-.8-.4-.7.2c-.1.1-.3-.4-.2-.7s.7-.6.5-.8l-.8.2c-.3.1-.8.3-.8-.2q.2-.6%200-1%200-.4.2-.6l1.2-.1q0-.4-.8-.6-1-.2-.5-.8.3-.2.5-.6c.1-.2.2-.7.7-.5.5.3.4.8%201%201a4%204%200%200%200%202-.2l1.5-1%201.5-1-1-.8q-.5-.7-1-1l-1.8-.6-1.7-.5.8-.3q.4-.5.8-.6h.3-1.4c-.3-.1-1-.6-1.3-.6l-.8.1s.8-.4%201.4-.5l1-.1s-.9-.3-1.1-.6l-.6-1q-.2-.3-.6-.5l-1%20.3q-.6%200-.6-.6l-.1-.5c-.2-.3-.6-.8-.2-1h1.4q-.2-.4-.8-.8c-.4-.2-1-.5-.7-.8l.8-.5c.2-.3.3-1%20.7-.7.4.2.8%201.2%201.1%201.1s.3-.8.3-1c0-.4%200-1%20.2-.9l1%20.5q.8-.1%201%20.2%200%20.5-.6%201-.4.6-.3%201.4.4%201%201.2%201.4t1.7.9c.5.3%201.7%201.2%202.1%201.3l.8.4s.5-.2%201.1-.2%202.1%200%202.6-.2%201.3-.6%201-1c-.1-.6-1.3-1-1.2-1.4q0-.5%201.2-.4c.8%200%201.8.1%202-1q.5-1.4-.8-1.8c-1-.2-1.8-.2-2-1q-.4-1-.2-1.1.3-.3%201.4-.4%201.3%200%201.9-.2l.6-.9c.3-.2%201.4-.4%201.4-.4s1.4.7%202.7%201.7l2.2%202.1'/%3e%3cpath%20d='m228.1%20226.8-.2-.6v-.3s.8%200%20.7.3q0%20.2-.3.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m228.1%20226.8-.2-.6v-.3s.8%200%20.7.3q0%20.2-.3.3z'/%3e%3cpath%20d='M232%20225.4v-.4s.7%200%201%20.3c.5.4.9%201%20.9%201l-.8-.4h-.5l-.3-.1v-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M232%20225.4v-.4s.7%200%201%20.3c.5.4.9%201%20.9%201l-.8-.4h-.5l-.3-.1v-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m237.3%20231.3-.4-.7-.3-.4'/%3e%3cpath%20fill='%23db4446'%20d='M217.4%20226.6s.5.4.8.4h.8s.2-.5.1-.8c-.2-1.2-1.2-1.4-1.2-1.4s.3.7.1%201z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M217.4%20226.6s.5.4.8.4h.8s.2-.5.1-.8c-.2-1.2-1.2-1.4-1.2-1.4s.3.7.1%201z'/%3e%3cpath%20fill='%23db4446'%20d='M215.2%20227.6s-.4-.7-1.3-.6-1.4.8-1.4.8h1.2c.3.3.4%201%20.4%201l.7-.6z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M215.2%20227.6s-.4-.7-1.3-.6-1.4.8-1.4.8h1.2c.3.3.4%201%20.4%201l.7-.6z'/%3e%3cpath%20fill='%23db4446'%20d='M214.2%20230.6s-.8.1-1.2.6-.3%201.3-.3%201.3.4-.5.9-.5l1%20.2-.1-.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M214.2%20230.6s-.8.1-1.2.6-.3%201.3-.3%201.3.4-.5.9-.5l1%20.2-.1-.8z'/%3e%3cpath%20d='m228.2%20230.5.3-.5.3.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m228.2%20230.5.3-.5.3.5h-.7'/%3e%3cpath%20d='m229%20230.5.3-.5.4.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m229%20230.5.3-.5.4.5h-.8'/%3e%3cpath%20d='m228.6%20227.3.8.3-.7.4-.1-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m228.6%20227.3.8.3-.7.4-.1-.6'/%3e%3cpath%20d='m229.5%20227.6.7.2-.5.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m229.5%20227.6.7.2-.5.4-.2-.6'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M224.2%20233.7s-.7.2-1%20.6q-.4.9-.3%201c.1.1.6-.5%201.5-.3l1.2.3%201.3-.3s-.7.8-.7%201.3l.2%201.1c0%20.7-.6%201.6-.6%201.6l1-.3%201.7-.8.9-1s-.2%201%200%201.4l.2%201.6.8-.6q.5-.2.9-.7l.3-1s0%20.8.4%201.3l.6%201.6s.3-.8.6-1.1l.7-1-.1-.9.4.8m-11%20.6s.5-.8%201-1l1.1-.8.9-.4m1%205%201.3-.8%201-1'/%3e%3cpath%20fill='%23db4446'%20d='M216.6%20240.4s-.4-.5-1.1-.3c-.7%200-1.2.9-1.2.9s.6-.2%201-.1.6.4.6.4l.4-.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M216.6%20240.4s-.4-.5-1.1-.3c-.7%200-1.2.9-1.2.9s.6-.2%201-.1.6.4.6.4l.4-.4z'/%3e%3cpath%20fill='%23db4446'%20d='M215.8%20243.2s-.6%200-1.1.3c-.5.4-.5%201.2-.5%201.2s.4-.4.8-.3l.9.2v-.6c.2-.4-.1-.8-.1-.8'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M215.8%20243.2s-.6%200-1.1.3c-.5.4-.5%201.2-.5%201.2s.4-.4.8-.3l.9.2v-.6c.2-.4-.1-.8-.1-.8z'/%3e%3cpath%20fill='%23db4446'%20d='M217.2%20245.8s0%20.8.3%201.3c.4.5%201.1.5%201.1.5l-.3-.7.3-.8q.1-.1-.7-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M217.2%20245.8s0%20.8.3%201.3c.4.5%201.1.5%201.1.5l-.3-.7.3-.8q.1-.1-.7-.3zm16%201.3s2%201.2%201.9%202.2c0%201-1%202.3-1%202.3'/%3e%3cpath%20fill='%23db4446'%20d='M224.2%20252.6s-.4-.6-1.1-.6-1.4.7-1.4.7.8-.1%201%20.2l.5.6.5-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M224.2%20252.6s-.4-.6-1.1-.6-1.4.7-1.4.7.8-.1%201%20.2l.5.6.5-.3z'/%3e%3cpath%20fill='%23db4446'%20d='M222.2%20255.3s-1-.1-1.4.3-.4%201.3-.4%201.3.6-.6%201-.5q.9.1%201%20.3v-.7l-.3-.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M222.2%20255.3s-1-.1-1.4.3-.4%201.3-.4%201.3.6-.6%201-.5q.9.1%201%20.3v-.7l-.3-.7z'/%3e%3cpath%20fill='%23db4446'%20d='M224%20258.1s-.3.7%200%201.1%201%20.8%201%20.8-.3-.4-.2-.8c.1-.3.7-.8.7-.8l-1.4-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M224%20258.1s-.3.7%200%201.1%201%20.8%201%20.8-.3-.4-.2-.8c.1-.3.7-.8.7-.8l-1.4-.2z'/%3e%3cpath%20fill='%23db4446'%20d='M236%20259.3s-.8-.2-1.2%200c-.5.3-.8%201.4-.8%201.4s.7-.6%201.2-.5q.9.1%201%20.3v-.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M236%20259.3s-.8-.2-1.2%200c-.5.3-.8%201.4-.8%201.4s.7-.6%201.2-.5q.9.1%201%20.3v-.8z'/%3e%3cpath%20fill='%23db4446'%20d='M236.4%20262.2s-.6.6-.4%201.1l.6%201s0-.7.2-1l1-.3-.7-.5z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M236.4%20262.2s-.6.6-.4%201.1l.6%201s0-.7.2-1l1-.3-.7-.5z'/%3e%3cpath%20fill='%23db4446'%20d='M239.4%20263s-.3.8.2%201.3l1%20.5q-.2-.3-.2-1.1.3-.7.5-.7l-.8-.2-.7.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M239.4%20263s-.3.8.2%201.3l1%20.5q-.2-.3-.2-1.1.3-.7.5-.7l-.8-.2-.7.3z'/%3e%3cpath%20fill='%23ffd691'%20stroke='%23000'%20stroke-width='.5'%20d='M208.8%20316.4q3%201%203%203.8c0%202.3-2.2%204-5%204-3%200-5.3-1.7-5.3-4%200-1.7%201-3.6%203-3.8l-.2-.4-.7-.7h1.2l.8.5.5-.7.6-.5.6.6.3.5.7-.4.8-.3s0%20.4-.2.7l-.1.7'/%3e%3cpath%20fill='%23058e6e'%20stroke='%23000'%20stroke-width='.5'%20d='M206.3%20326.7s-3.8-2.6-5.5-3c-2-.4-4.5%200-5.5%200%200%200%201.2.8%201.8%201.4.5.5%202.3%201.5%203.3%201.8%203%20.8%206-.2%206-.2m1%20.2s2.4-2.5%205-2.9c3-.4%205%20.3%206.2.6l-1.5.8c-.5.3-2%201.5-4%201.6-2%200-4.4-.3-4.8-.2l-.9.1'/%3e%3cpath%20fill='%23ad1519'%20stroke='%23000'%20stroke-width='.5'%20d='M206.7%20323.8a5%205%200%200%201%200-7.1%205%205%200%200%201%201.5%203.5%205%205%200%200%201-1.5%203.6'/%3e%3cpath%20fill='%23058e6e'%20stroke='%23000'%20stroke-width='.5'%20d='M205.7%20329s.6-1.5.6-2.7l-.1-2.1h.8s.3%201.1.3%202l-.1%202.4-.7.1-.8.3'/%3e%3cpath%20fill='%23fff'%20d='M254%20190.7q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M254%20190.7q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M255.4%20188.2q.1-1%201.1-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M255.4%20188.2q.1-1%201.1-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M256.4%20185.2q.1-.9%201-1%201%20.1%201.1%201c.1.9-.5%201-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M256.4%20185.2q.1-.9%201-1%201%20.1%201.1%201c.1.9-.5%201-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M256.5%20182q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M256.5%20182q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M255.7%20179q.1-1%201-1%201.1%200%201.2%201c.1%201-.5%201-1.1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M255.7%20179q.1-1%201-1%201.1%200%201.2%201c.1%201-.5%201-1.1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M254.1%20176.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M254.1%20176.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M252%20173.8q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M252%20173.8q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M249.4%20171.8q.1-.9%201.1-1a1%201%200%200%201%200%202q-1%200-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M249.4%20171.8q.1-.9%201.1-1a1%201%200%200%201%200%202q-1%200-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M246.5%20170.3q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M246.5%20170.3q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M243.3%20169.1q.1-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M243.3%20169.1q.1-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M239.9%20168.5q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M239.9%20168.5q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M236.6%20168.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M236.6%20168.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M233.3%20168.5q.1-1%201-1t1.1%201c.1%201-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M233.3%20168.5q.1-1%201-1t1.1%201c.1%201-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M230.1%20168.5q.1-1%201-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M230.1%20168.5q.1-1%201-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M231.7%20171.2q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1m.6%203.1q0-1%201-1c1%200%201%20.4%201%201q0%20.9-1%201a1%201%200%200%201-1-1m0%203q.2-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1m-1%202.8q.1-.9%201-1%201%20.1%201.1%201%200%201-1%201a1%201%200%200%201-1-1m-1.9%202.6q.1-.9%201-1%201.1.1%201.2%201%200%201.2-1.1%201-1%200-1-1'/%3e%3cpath%20fill='%23fff'%20d='M227.6%20166.5q.1-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M227.6%20166.5q.1-.9%201.1-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M224.8%20165q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M224.8%20165q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M221.6%20164q.1-1%201-1t1.1%201q-.1.9-1%201-1-.1-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M221.6%20164q.1-1%201-1t1.1%201q-.1.9-1%201-1-.1-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M218.3%20163.4q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M218.3%20163.4q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M215%20163.5q.1-1%201.1-1t1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M215%20163.5q.1-1%201.1-1t1%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M211.7%20164q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M211.7%20164q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M208.6%20165.1q.1-.9%201-1%201%20.1%201.1%201c.1.9-.5%201-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M208.6%20165.1q.1-.9%201-1%201%20.1%201.1%201c.1.9-.5%201-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M156%20190.7q0-.9%201-1c1-.1%201%20.5%201%201q0%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M156%20190.7q0-.9%201-1c1-.1%201%20.5%201%201q0%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M154.5%20188.2q.1-1%201-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M154.5%20188.2q.1-1%201-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M153.5%20185.2q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M153.5%20185.2q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M153.4%20182q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M153.4%20182q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M154.2%20179q.1-1%201-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M154.2%20179q.1-1%201-1t1%201c0%201-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M155.8%20176.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M155.8%20176.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M158%20173.8q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M158%20173.8q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M160.5%20171.8q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M160.5%20171.8q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M163.5%20170.3q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M163.5%20170.3q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M166.6%20169.1q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M166.6%20169.1q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M170%20168.5q.1-.9%201.1-1a1%201%200%200%201%200%202q-1%200-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M170%20168.5q.1-.9%201.1-1a1%201%200%200%201%200%202q-1%200-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M173.4%20168.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M173.4%20168.3q0-.9%201-1c1-.1%201%20.5%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M176.6%20168.5q.1-1%201-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M176.6%20168.5q.1-1%201-1t1.1%201c.1%201-.5%201-1%201a1%201%200%200%201-1.1-1z'/%3e%3cpath%20fill='%23fff'%20d='M179.8%20168.5q.1-1%201-1%201.1%200%201.2%201c.1%201-.5%201-1.1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M179.8%20168.5q.1-1%201-1%201.1%200%201.2%201c.1%201-.5%201-1.1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20stroke='%23000'%20stroke-width='.4'%20d='M178.2%20171.2q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1m-.7%203.1q0-1%201-1c1%200%201%20.4%201%201q0%20.9-1%201a1%201%200%200%201-1-1m-.2%203q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1m.9%202.8q.1-.9%201-1%201%20.1%201.1%201-.1%201-1%201a1%201%200%200%201-1.1-1m1.8%202.6q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='%23fff'%20d='M182.3%20166.5q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M182.3%20166.5q.1-.9%201-1a1%201%200%200%201%200%202%201%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M185.2%20165q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M185.2%20165q0-1%201-1c1%200%201%20.4%201%201s-.4%201-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M188.3%20164q.1-1%201-1t1.1%201q0%20.9-1%201c-1%20.1-1-.5-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M188.3%20164q.1-1%201-1t1.1%201q0%20.9-1%201c-1%20.1-1-.5-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M191.6%20163.4q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M191.6%20163.4q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M194.9%20163.5q0-1%201-1c1%200%201%20.4%201%201q0%20.9-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M194.9%20163.5q0-1%201-1c1%200%201%20.4%201%201q0%20.9-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M198.2%20164q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M198.2%20164q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23fff'%20d='M201.3%20165.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.4'%20d='M201.3%20165.1q.1-.9%201-1%201%20.1%201.1%201%200%201.2-1%201a1%201%200%200%201-1-1z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M174.7%20228.9h-1v-1h-1.5v3.6h1.6v2.5h-3.4v7h1.8v14.3h-3.5v7.3h27.2v-7.3h-3.5V241h1.8v-7h-3.4v-2.5h1.6V228h-1.6v.9h-.8v-1h-1.6v1h-1.1v-1h-1.6v3.6h1.6v2.5H184v-7.8h1.7v-3.5H184v.9h-1v-1h-1.5v1h-.9v-1H179v3.6h1.7v7.8h-3.3v-2.5h1.6V228h-1.6v.9h-.9v-1h-1.8zm-6%2033.7H196m-27.3-1.8H196m-27.3-1.8H196m-27.3-1.7H196m-27.3-2H196m-23.8-1.6h20.2m-20.2-1.8h20.2m-20.2-2h20.2m-20.2-1.7h20.2m-20.2-1.8h20.2m-20.2-1.8h20.2m-20.2-1.7h20.2m-22-1.8h23.8m-23.8-1.8h23.8m-23.8-1.8h23.8m-23.8-1.8h23.8m-20.4-1.7h17m-10.2-1.8h3.4m-3.4-1.8h3.4m-3.4-1.8h3.4m-3.4-1.7h3.4m-5.1-2.2h6.8m-12%207.5h3.6m-5-2.2h6.6m-6.7%2032.6v-1.8m0-1.8v-1.7m-1.8%201.7v1.8m3.4%200V259m1.7%203.6v-1.8m0-1.8v-1.7m0-2v-1.6m0-1.8v-2m-1.7%207.4v-2m-3.4%202v-2m7%200v2m1.5-2v-1.6m-5.1-1.8v1.8m3.5-1.8v1.8m3.3-1.8v1.8M179%20252v-2m1.7-1.7v1.7m0-5.3v1.8m-1.7-3.6v1.8m1.7-3.5v1.7m-3.3-1.7v1.7m-3.5-1.7v1.7m-1.6-3.5v1.8m3.3-1.8v1.8m3.4-1.8v1.8m1.7-3.6v1.8m-3.3-1.8v1.8m-3.5-1.8v1.8m-1.6-3.6v1.8m6.7-1.8v1.8m-3.4-5.3v1.8m15.3-1.8h-3.5m5-2.2h-6.6m6.7%2032.6v-1.8m0-1.8v-1.7m1.8%201.7v1.8m-3.4%200V259m-1.7%203.6v-1.8m0-1.8v-1.7m0-2v-1.6m0-1.8v-2m1.7%207.4v-2m3.4%202v-2m-7%200v2m-1.5-2v-1.6m5.1-1.8v1.8m-3.5-1.8v1.8m-3.3-1.8v1.8m1.7-1.8v-2m-1.7-1.7v1.7m0-5.3v1.8m1.7-3.6v1.8m-1.7-3.5v1.7m3.3-1.7v1.7m3.5-1.7v1.7m1.6-3.5v1.8m-3.3-1.8v1.8m-3.4-1.8v1.8m-1.7-3.6v1.8m3.3-1.8v1.8m3.5-1.8v1.8m1.6-3.6v1.8m-6.7-1.8v1.8m3.4-5.3v1.8m-7%2018v-2m0-5.4v-1.8m0%205.4v-1.8m0-5.3v-1.8m0-1.8v-1.7m0-3.6v-1.8m0-1.7v-1.8m-8.3%204.6h3.5m3.3-5.3h3.4m3.3%205.3h3.5'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='M186.8%20262.6v-4.7c0-.8-.4-3.5-4.6-3.5-4%200-4.4%202.7-4.4%203.5v4.7z'/%3e%3cpath%20fill='%23c8b100'%20stroke='%23000'%20stroke-width='.4'%20d='m179.3%20258.2-2.2-.3c0-.9.2-2.2.9-2.6l2%201.5c-.3.2-.7%201-.7%201.4zm6%200%202.2-.3c0-.9-.2-2.2-.9-2.6l-2%201.5c.3.2.7%201%20.7%201.4zm-2.2-2.3%201-2-2-.4-1.7.4%201.1%202zm-4.2-5.5v-4.9c0-1.3-1-2.4-2.5-2.4s-2.4%201-2.4%202.4v4.9zm6.8%200v-4.9c0-1.3%201-2.4%202.5-2.4s2.4%201%202.4%202.4v4.9zm-1.7-12%20.4-4.4h-4.2l.2%204.4zm3.3%200-.4-4.4h4.4l-.5%204.4zm-10%200%20.2-4.4h-4.2l.5%204.4z'/%3e%3cpath%20fill='%230039f0'%20d='M185.3%20262.6v-4c0-.7-.5-2.7-3.1-2.7-2.4%200-2.9%202-2.9%202.7v4zm-6.9-12.7v-4.2c0-1-.6-2.2-2-2.2s-2%201.1-2%202.2v4.3h4zm7.8%200v-4.2c0-1%20.7-2.2%202-2.2s2%201.1%202%202.2v4.3h-4z'/%3e%3cpath%20fill='%23ad1519'%20d='M190.8%20269.8c0-9.7%207-17.6%2015.6-17.6s15.6%207.9%2015.6%2017.6-7%2017.5-15.6%2017.5-15.6-7.8-15.6-17.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.6'%20d='M190.8%20269.8c0-9.7%207-17.6%2015.6-17.6s15.6%207.9%2015.6%2017.6-7%2017.5-15.6%2017.5-15.6-7.8-15.6-17.5z'/%3e%3cpath%20fill='%23005bbf'%20d='M195.4%20269.7c0-7%205-12.8%2011-12.8s11%205.7%2011%2012.8-5%2013-11%2013-11-5.8-11-13'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.6'%20d='M195.4%20269.7c0-7%205-12.8%2011-12.8s11%205.7%2011%2012.8-5%2013-11%2013-11-5.8-11-13z'/%3e%3cpath%20fill='%23c8b100'%20d='M201.2%20260.9s-1.3%201.4-1.3%202.7a6%206%200%200%200%20.6%202.4q-.4-.8-1.4-.8-1.3.1-1.4%201.3l.2.8.5.9q.2-.5%201-.5%201.1%200%201%201v.2h-1.2v1h1l-.8%201.5%201-.4.8.9.8-.9%201%20.4-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.6%200%201%20.6l.4-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.3q-1%200-1.4.9s.6-1.2.6-2.5-1.4-2.7-1.4-2.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M201.2%20260.9s-1.3%201.4-1.3%202.7a6%206%200%200%200%20.6%202.4q-.4-.8-1.4-.8-1.3.1-1.4%201.3l.2.8.5.9q.2-.5%201-.5%201.1%200%201%201v.2h-1.2v1h1l-.8%201.5%201-.4.8.9.8-.9%201%20.4-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.6%200%201%20.6l.4-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.3q-1%200-1.4.9s.6-1.2.6-2.5-1.4-2.7-1.4-2.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M199.2%20269.9h4.1v-1h-4.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M199.2%20269.9h4.1v-1h-4.1z'/%3e%3cpath%20fill='%23c8b100'%20d='M211.4%20260.9s-1.3%201.4-1.3%202.7.6%202.4.6%202.4q-.3-.8-1.4-.8-1.3.1-1.4%201.3l.2.8.5.9q.3-.5%201-.5a1%201%200%200%201%201%201v.2h-1.2v1h1l-.8%201.5%201-.4.8.9.8-.9%201%20.4-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.7%200%201%20.6l.4-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.3q-1%200-1.4.9s.6-1.2.6-2.5-1.4-2.7-1.4-2.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M211.4%20260.9s-1.3%201.4-1.3%202.7.6%202.4.6%202.4q-.3-.8-1.4-.8-1.3.1-1.4%201.3l.2.8.5.9q.3-.5%201-.5a1%201%200%200%201%201%201v.2h-1.2v1h1l-.8%201.5%201-.4.8.9.8-.9%201%20.4-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.7%200%201%20.6l.4-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.3q-1%200-1.4.9s.6-1.2.6-2.5-1.4-2.7-1.4-2.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M209.4%20269.9h4.1v-1h-4.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M209.4%20269.9h4.1v-1h-4.1z'/%3e%3cpath%20fill='%23c8b100'%20d='M206.3%20269.6s-1.3%201.5-1.3%202.8.6%202.4.6%202.4q-.3-.8-1.4-.9-1.3.1-1.4%201.4l.2.7.5%201q.2-.6%201-.6a1%201%200%200%201%201%201v.3h-1.2v1h1l-.8%201.5%201-.4.8.9.8-1%201%20.5-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.6%200%20.9.6l.5-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.4q-1%200-1.4%201s.6-1.2.6-2.5-1.4-2.7-1.4-2.7'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-linejoin='round'%20stroke-width='.3'%20d='M206.3%20269.6s-1.3%201.5-1.3%202.8.6%202.4.6%202.4q-.3-.8-1.4-.9-1.3.1-1.4%201.4l.2.7.5%201q.2-.6%201-.6a1%201%200%200%201%201%201v.3h-1.2v1h1l-.8%201.5%201-.4.8.9.8-1%201%20.5-.7-1.5h1v-1h-1.1v-.3a1%201%200%200%201%201-1q.6%200%20.9.6l.5-1%20.2-.7a1.4%201.4%200%200%200-1.4-1.4q-1%200-1.4%201s.6-1.2.6-2.5-1.4-2.7-1.4-2.7z'/%3e%3cpath%20fill='%23c8b100'%20d='M204.3%20278.6h4.1v-1h-4.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M204.3%20278.6h4.1v-1h-4.1z'/%3e%3cpath%20fill='%23c8b100'%20d='M237.6%20223.4h-.3l-.3.4q-.4.3-.8%200l-.1-.4h-.5q-.4-.3-.1-.7v-.5h-.3l-.1.2q-.3.4-.7.2v-.2h-.3c-.5.2-.7-1-.7-1.2l-.2.2s.2.7.1%201.2l-.3%201.2a9%209%200%200%201%202.9%201.6%209%209%200%200%201%202.2%202.3l1.2-.5c.6-.2%201.3-.2%201.3-.2l.2-.2c-.3%200-1.5.1-1.5-.4v-.2h-.2q-.3-.3%200-.7l.2-.1v-.3h-.3l-.2.1q-.4.5-.8%200l-.1-.4h-.5q-.4-.3%200-.8l.2-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M237.6%20223.4h-.3l-.3.4q-.4.3-.8%200l-.1-.4h-.5q-.4-.3-.1-.7v-.5h-.3l-.1.2q-.3.4-.7.2v-.2h-.3c-.5.2-.7-1-.7-1.2l-.2.2s.2.7.1%201.2l-.3%201.2a9%209%200%200%201%202.9%201.6%209%209%200%200%201%202.2%202.3l1.2-.5c.6-.2%201.3-.2%201.3-.2l.2-.2c-.3%200-1.5.1-1.5-.4v-.2h-.2q-.3-.3%200-.7l.2-.1v-.3h-.3l-.2.1q-.4.5-.8%200l-.1-.4h-.5q-.4-.3%200-.8l.2-.3z'/%3e%3cpath%20d='M235.4%20224h.2v.3h-.1q-.1-.1%200-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M235.4%20224h.2v.3h-.1q-.1-.1%200-.2z'/%3e%3cpath%20d='m236.3%20224.8-.3-.2v-.2h.1l.4.3.3.2v.2h-.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='m236.3%20224.8-.3-.2v-.2h.1l.4.3.3.2v.2h-.2l-.3-.3'/%3e%3cpath%20d='m234.6%20223.7-.2-.2s-.1%200%200-.1l.3.1.3.1v.2h-.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='m234.6%20223.7-.2-.2s-.1%200%200-.1l.3.1.3.1v.2h-.1l-.3-.1'/%3e%3cpath%20d='M233.7%20223h.2v.2h-.2s-.1-.1%200-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M233.7%20223h.2v.2h-.2s-.1-.1%200-.2z'/%3e%3cpath%20d='M237.3%20225.5v-.2h-.3l.1.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M237.3%20225.5v-.2h-.3l.1.2z'/%3e%3cpath%20d='m237.9%20226.2.2.2h.1v-.2l-.2-.2-.2-.2h-.1v.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='m237.9%20226.2.2.2h.1v-.2l-.2-.2-.2-.2h-.1v.2l.2.2'/%3e%3cpath%20d='M238.8%20227v-.3h-.3v.2h.3'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M238.8%20227v-.3h-.3v.2h.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M236.2%20221.1h-.6l-.1.9v.1h.2l.7-.5-.3-.5'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M236.2%20221.1h-.6l-.1.9v.1h.2l.7-.5-.3-.5'/%3e%3cpath%20fill='%23c8b100'%20d='M234.6%20221.6v.5l.9.1h.1v-.2l-.5-.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M234.6%20221.6v.5l.9.1h.1v-.2l-.5-.7-.5.3'/%3e%3cpath%20fill='%23c8b100'%20d='m236.4%20222.6-.4.3-.6-.7v-.1h1.1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m236.4%20222.6-.4.3-.6-.7v-.1h1.1v.5'/%3e%3cpath%20fill='%23c8b100'%20d='M235.3%20222h.4v.3h-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M235.3%20222h.4v.3h-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m233.2%20221.1-.2-.7-.4-.4s.4-.2.8.1%200%20.9%200%20.9z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m233.2%20221.1-.2-.7-.4-.4s.4-.2.8.1%200%20.9%200%20.9z'/%3e%3cpath%20fill='%23c8b100'%20d='m234.2%20221.4-.4.4-.6-.6v-.2h1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m234.2%20221.4-.4.4-.6-.6v-.2h1v.4'/%3e%3cpath%20fill='%23c8b100'%20d='m233.1%20221%20.3-.1v.3q0%20.3-.2.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m233.1%20221%20.3-.1v.3q0%20.3-.2.2z'/%3e%3cpath%20fill='%23c8b100'%20d='M238.3%20222.5h-.5l-.3.7v.2h.2l.8-.4z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M238.3%20222.5h-.5l-.3.7v.2h.2l.8-.4-.2-.5'/%3e%3cpath%20fill='%23c8b100'%20d='M236.7%20222.8v.5l.8.2h.1v-.2l-.4-.7z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M236.7%20222.8v.5l.8.2h.1v-.2l-.4-.7-.5.2'/%3e%3cpath%20fill='%23c8b100'%20d='m238.4%20224-.5.2-.4-.7v-.2h.1l.9.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m238.4%20224-.5.2-.4-.7v-.2h.1l.9.2-.1.5'/%3e%3cpath%20fill='%23c8b100'%20d='M237.3%20223.2h.4v.4h-.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M237.3%20223.2h.4v.4h-.3z'/%3e%3cpath%20fill='%23c8b100'%20d='m240.2%20224.3.1.5-.8.3h-.2v-.2l.4-.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m240.2%20224.3.1.5-.8.3h-.2v-.2l.4-.8.5.2'/%3e%3cpath%20fill='%23c8b100'%20d='m240%20225.8-.5.1-.3-.8v-.1h.2l.8.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m240%20225.8-.5.1-.3-.8v-.1h.2l.8.3-.1.5'/%3e%3cpath%20fill='%23c8b100'%20d='m238.6%20224.3-.2.5.9.3h.1v-.1l-.3-.8z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m238.6%20224.3-.2.5.9.3h.1v-.1l-.3-.8-.5.1'/%3e%3cpath%20fill='%23c8b100'%20d='M239.5%20225.2v-.3h-.4v.3z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M239.5%20225.2v-.3h-.4v.3z'/%3e%3cpath%20fill='%23c8b100'%20d='M240.8%20227h.8l.5.3s.1-.4-.3-.7c-.3-.3-.8.2-.8.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M240.8%20227h.8l.5.3s.1-.4-.3-.7c-.3-.3-.8.2-.8.2z'/%3e%3cpath%20fill='%23c8b100'%20d='m240.3%20226.1-.3.5.8.5v-.1h.2l-.1-1z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='m240.3%20226.1-.3.5.8.5v-.1h.2l-.1-1-.6.1'/%3e%3cpath%20fill='%23c8b100'%20d='M241%20227s.1-.1%200-.2h-.3q-.3%200-.1.2z'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.3'%20d='M241%20227s.1-.1%200-.2h-.3q-.3%200-.1.2zm38-21.9v.6h-2.4v-.6h1v-1.3h-.7v-.5h.6v-.6h.6v.6h.6v.6h-.6v1.2h1'/%3e%3cpath%20fill='none'%20d='M134.4%20217.1v-1.2m-.4%201.2v-1.2m-.2%201.2v-1.2m-.3%201.2v-1.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M133.2%20217.1v-1.2m-.5%201.1v-1m.2%201v-1m-.7%201v-1m.2%201v-1m-.9%201v-1m.2%201v-1m.3%201v-1m-.7%201v-1m-.3.9v-.8m-.1.8v-.8m-.5.7v-.6m.2.6v-.6m-.4.5v-.5m-.2.5v-.4m-.3.3v-.3m-.3.3v-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M129.2%20216.6v-.2'/%3e%3cpath%20fill='none'%20d='M135.7%20217v-1m-.5%201v-1m-.4%201.2V216m143%201.1V216m-.4%201.1V216m-.3%201.1V216m-.3%201.2V216'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.1'%20d='M276.6%20217.1V216m-.6%201v-1m.3%201v-1m-.8%201v-1m.3%201v-1m-.9%201v-1m.2%201v-1m.2%201v-1m-.6%201v-1m-.3.9v-.8m-.2.8v-.8m-.4.7v-.6m.2.6v-.6m-.5.6v-.6m-.2.5v-.4m-.3.4v-.4m-.2.3v-.2'/%3e%3cpath%20fill='none'%20stroke='%23000'%20stroke-width='.2'%20d='M272.6%20216.6v-.2'/%3e%3cpath%20fill='none'%20d='M279.1%20217v-1m-.6%201v-1m-.4%201.1V216'/%3e%3c/svg%3e"},LP=[{value:"ru",label:"Русский (Россия)"},{value:"en",label:"English (US)"},{value:"es",label:"Español (España)"}],IP=e=>{const t=n.useRef(0);n.useEffect(()=>{if(!e)return;t.current=window.scrollY;const n=e=>e.preventDefault();window.addEventListener("wheel",n,{passive:!1}),window.addEventListener("touchmove",n,{passive:!1});const{style:r}=document.body,i={position:r.position,top:r.top,left:r.left,right:r.right,overflowY:r.overflowY,width:r.width};return r.position="fixed",r.top=`-${t.current}px`,r.left="0",r.right="0",r.overflowY="scroll",r.width="100%",()=>{Object.assign(r,i),window.scrollTo(0,t.current),window.removeEventListener("wheel",n),window.removeEventListener("touchmove",n)}},[e])},NP=(e,n,r=16)=>{if(n)return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23868E96'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.5%204.5C4.36739%204.5%204.24021%204.55268%204.14645%204.64645C4.05268%204.74021%204%204.86739%204%205V10.5C4%2010.6326%204.05268%2010.7598%204.14645%2010.8536C4.24021%2010.9473%204.36739%2011%204.5%2011H11.5C11.6326%2011%2011.7598%2010.9473%2011.8536%2010.8536C11.9473%2010.7598%2012%2010.6326%2012%2010.5V6.5C12%206.36739%2011.9473%206.24021%2011.8536%206.14645C11.7598%206.05268%2011.6326%206%2011.5%206H8C7.86739%206%207.74021%205.94732%207.64645%205.85355L6.29289%204.5H4.5ZM3.43934%203.93934C3.72064%203.65804%204.10218%203.5%204.5%203.5H6.5C6.63261%203.5%206.75979%203.55268%206.85355%203.64645L8.20711%205H11.5C11.8978%205%2012.2794%205.15804%2012.5607%205.43934C12.842%205.72064%2013%206.10217%2013%206.5V10.5C13%2010.8978%2012.842%2011.2794%2012.5607%2011.5607C12.2794%2011.842%2011.8978%2012%2011.5%2012H4.5C4.10217%2012%203.72064%2011.842%203.43934%2011.5607C3.15804%2011.2794%203%2010.8978%203%2010.5V5C3%204.60218%203.15804%204.22064%203.43934%203.93934Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});switch(e){case"documents":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23F59F00'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M3.93934%203.93934C4.22064%203.65804%204.60218%203.5%205%203.5H11C11.3978%203.5%2011.7794%203.65804%2012.0607%203.93934C12.342%204.22064%2012.5%204.60217%2012.5%205V8.5C12.5%208.63261%2012.4473%208.75979%2012.3536%208.85355L8.85355%2012.3536C8.75979%2012.4473%208.63261%2012.5%208.5%2012.5H5C4.60217%2012.5%204.22064%2012.342%203.93934%2012.0607C3.65804%2011.7794%203.5%2011.3978%203.5%2011V5C3.5%204.60218%203.65804%204.22064%203.93934%203.93934ZM5%204.5C4.86739%204.5%204.74021%204.55268%204.64645%204.64645C4.55268%204.74021%204.5%204.86739%204.5%205V11C4.5%2011.1326%204.55268%2011.2598%204.64645%2011.3536C4.74021%2011.4473%204.86739%2011.5%205%2011.5H8V9C8%208.73478%208.10536%208.48043%208.29289%208.29289C8.48043%208.10536%208.73478%208%209%208H11.5V5C11.5%204.86739%2011.4473%204.74021%2011.3536%204.64645C11.2598%204.55268%2011.1326%204.5%2011%204.5H5ZM10.7929%209H9V10.7929L10.7929%209Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"media":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%23B25BE4'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5%205C5%204.44772%205.44772%204%206%204H10C10.5523%204%2011%204.44772%2011%205V11C11%2011.5523%2010.5523%2012%2010%2012H6C5.44772%2012%205%2011.5523%205%2011V5ZM10%205H6V11H10V5ZM2.5%205.5C2.5%205.22386%202.72386%205%203%205H3.5C3.76522%205%204.01957%205.10536%204.20711%205.29289C4.39464%205.48043%204.5%205.73478%204.5%206V10C4.5%2010.2652%204.39464%2010.5196%204.20711%2010.7071C4.01957%2010.8946%203.76522%2011%203.5%2011H3C2.72386%2011%202.5%2010.7761%202.5%2010.5C2.5%2010.2239%202.72386%2010%203%2010H3.5V6H3C2.72386%206%202.5%205.77614%202.5%205.5ZM11.7929%205.29289C11.9804%205.10536%2012.2348%205%2012.5%205H13C13.2761%205%2013.5%205.22386%2013.5%205.5C13.5%205.77614%2013.2761%206%2013%206H12.5V10H13C13.2761%2010%2013.5%2010.2239%2013.5%2010.5C13.5%2010.7761%2013.2761%2011%2013%2011H12.5C12.2348%2011%2011.9804%2010.8946%2011.7929%2010.7071C11.6054%2010.5196%2011.5%2010.2652%2011.5%2010V6C11.5%205.73478%2011.6054%205.48043%2011.7929%205.29289Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"diagram":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%230CA678'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.5%204.5C5.22386%204.5%205%204.72386%205%205C5%205.27614%205.22386%205.5%205.5%205.5C5.77614%205.5%206%205.27614%206%205C6%204.72386%205.77614%204.5%205.5%204.5ZM4%205C4%204.17157%204.67157%203.5%205.5%203.5C6.32843%203.5%207%204.17157%207%205C7%205.63317%206.60769%206.17471%206.05289%206.39482C6.121%206.64444%206.25318%206.8745%206.43934%207.06066C6.72064%207.34196%207.10218%207.5%207.5%207.5H9.08535C9.29127%206.9174%209.84689%206.5%2010.5%206.5C11.3284%206.5%2012%207.17157%2012%208C12%208.82843%2011.3284%209.5%2010.5%209.5C9.84689%209.5%209.29127%209.0826%209.08535%208.5H7.5C6.95596%208.5%206.4302%208.32267%206%208.00001V9.58535C6.5826%209.79127%207%2010.3469%207%2011C7%2011.8284%206.32843%2012.5%205.5%2012.5C4.67157%2012.5%204%2011.8284%204%2011C4%2010.3469%204.4174%209.79127%205%209.58535V6.41465C4.4174%206.20873%204%205.65311%204%205ZM10.5%207.5C10.2239%207.5%2010%207.72386%2010%208C10%208.27614%2010.2239%208.5%2010.5%208.5C10.7761%208.5%2011%208.27614%2011%208C11%207.72386%2010.7761%207.5%2010.5%207.5ZM5.5%2010.5C5.22386%2010.5%205%2010.7239%205%2011C5%2011.2761%205.22386%2011.5%205.5%2011.5C5.77614%2011.5%206%2011.2761%206%2011C6%2010.7239%205.77614%2010.5%205.5%2010.5Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"archieve":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H12C14.2091%200%2016%201.79086%2016%204V12C16%2014.2091%2014.2091%2016%2012%2016H4C1.79086%2016%200%2014.2091%200%2012V4Z'%20fill='%232ABFD6'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M5.5%204C5.36739%204%205.24022%204.05268%205.14645%204.14645C5.05268%204.24021%205%204.36739%205%204.5L5%2011.5007C4.99987%2011.5886%205.02291%2011.675%205.0668%2011.7512C5.11069%2011.8273%205.17388%2011.8905%205.25%2011.9345C5.48915%2012.0726%205.57108%2012.3784%205.43301%2012.6175C5.29494%2012.8566%204.98915%2012.9386%204.75%2012.8005C4.52165%2012.6687%204.33208%2012.479%204.20041%2012.2505C4.06881%2012.0222%203.99969%2011.7632%204%2011.4997C4%2011.4998%204%2011.4995%204%2011.4997V4.5C4%204.10218%204.15804%203.72064%204.43934%203.43934C4.72065%203.15804%205.10218%203%205.5%203H9C9.13261%203%209.25979%203.05268%209.35355%203.14645L11.8536%205.64645C11.9473%205.74021%2012%205.86739%2012%206V11.5C12%2011.8978%2011.842%2012.2794%2011.5607%2012.5607C11.2794%2012.842%2010.8978%2013%2010.5%2013H10C9.72386%2013%209.5%2012.7761%209.5%2012.5C9.5%2012.2239%209.72386%2012%2010%2012H10.5C10.6326%2012%2010.7598%2011.9473%2010.8536%2011.8536C10.9473%2011.7598%2011%2011.6326%2011%2011.5V6.20711L8.79289%204H7.5C7.77614%204%208%204.22386%208%204.5C8%204.77614%207.77614%205%207.5%205H7C6.72386%205%206.5%204.77614%206.5%204.5C6.5%204.22386%206.72386%204%207%204H5.5ZM7.5%205.5C7.5%205.22386%207.72386%205%208%205H8.5C8.77614%205%209%205.22386%209%205.5C9%205.77614%208.77614%206%208.5%206H8C7.72386%206%207.5%205.77614%207.5%205.5ZM6.5%206.5C6.5%206.22386%206.72386%206%207%206H7.5C7.77614%206%208%206.22386%208%206.5C8%206.77614%207.77614%207%207.5%207H7C6.72386%207%206.5%206.77614%206.5%206.5ZM7.5%207.5C7.5%207.22386%207.72386%207%208%207H8.5C8.77614%207%209%207.22386%209%207.5C9%207.77614%208.77614%208%208.5%208H8C7.72386%208%207.5%207.77614%207.5%207.5ZM6.5%208.5C6.5%208.22386%206.72386%208%207%208H7.5C7.77614%208%208%208.22386%208%208.5C8%208.77614%207.77614%209%207.5%209H7C6.72386%209%206.5%208.77614%206.5%208.5ZM7.5%209.5C7.5%209.22386%207.72386%209%208%209H8.5C8.77614%209%209%209.22386%209%209.5C9%209.77614%208.77614%2010%208.5%2010H8C7.72386%2010%207.5%209.77614%207.5%209.5ZM7.5%2011C7.36739%2011%207.24022%2011.0527%207.14645%2011.1464C7.05268%2011.2402%207%2011.3674%207%2011.5V12.5H8V11.5C8%2011.3674%207.94732%2011.2402%207.85355%2011.1464C7.75978%2011.0527%207.63261%2011%207.5%2011ZM6.43934%2010.4393C6.72064%2010.158%207.10217%2010%207.5%2010C7.89783%2010%208.27936%2010.158%208.56066%2010.4393C8.84196%2010.7206%209%2011.1022%209%2011.5V12.5C9%2012.7652%208.89464%2013.0196%208.70711%2013.2071C8.51957%2013.3946%208.26522%2013.5%208%2013.5H7C6.73478%2013.5%206.48043%2013.3946%206.29289%2013.2071C6.10536%2013.0196%206%2012.7652%206%2012.5V11.5C6%2011.1022%206.15804%2010.7206%206.43934%2010.4393Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"presentation":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='2'%20y='1'%20width='20'%20height='22'%20rx='3'%20fill='%23F76707'/%3e%3cpath%20d='M19%2012C19%2010.8953%2018.7386%209.80634%2018.237%208.82207C17.7355%207.8378%2017.0082%206.98619%2016.1145%206.33688L12%2012H19Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12%2017.8C15.2033%2017.8%2017.8%2015.2033%2017.8%2012C17.8%208.79675%2015.2033%206.2%2012%206.2C8.79675%206.2%206.2%208.79675%206.2%2012C6.2%2015.2033%208.79675%2017.8%2012%2017.8ZM12%2019C15.866%2019%2019%2015.866%2019%2012C19%208.13401%2015.866%205%2012%205C8.13401%205%205%208.13401%205%2012C5%2015.866%208.13401%2019%2012%2019Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"sheet":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='2'%20y='1'%20width='20'%20height='22'%20rx='3'%20fill='%2337B24D'/%3e%3cpath%20d='M4%208.6C4%208.26863%204.26863%208%204.6%208H19.4C19.7314%208%2020%208.26863%2020%208.6C20%208.93137%2019.7314%209.2%2019.4%209.2H4.6C4.26863%209.2%204%208.93137%204%208.6Z'%20fill='white'/%3e%3cpath%20d='M8.6%2020C8.26863%2020%208%2019.7314%208%2019.4L8%204.6C8%204.26863%208.26863%204%208.6%204C8.93137%204%209.2%204.26863%209.2%204.6L9.2%2019.4C9.2%2019.7314%208.93137%2020%208.6%2020Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r});case"docx":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15019_244)'%3e%3cg%20filter='url(%23filter0_d_15019_244)'%3e%3cg%20filter='url(%23filter1_i_15019_244)'%3e%3cpath%20d='M3.47998%204.64008C3.47998%203.22623%204.62613%202.08008%206.03998%202.08008H20.92C22.3338%202.08008%2023.48%203.22623%2023.48%204.64008V8.80008H3.47998V4.64008Z'%20fill='%231C7ED6'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_i_15019_244)'%3e%3crect%20x='3.47998'%20y='8.80005'%20width='20'%20height='6.56'%20fill='%23228BE6'/%3e%3c/g%3e%3cg%20filter='url(%23filter3_i_15019_244)'%3e%3cpath%20d='M3.47998%2015.3601H23.48V19.5201C23.48%2020.934%2022.3338%2022.0801%2020.92%2022.0801H6.03998C4.62613%2022.0801%203.47998%2020.934%203.47998%2019.5201V15.3601Z'%20fill='%2337A1FD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_15019_244'%20x='2.19998'%20y='1.44008'%20width='22.56'%20height='22.56'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='0.64'/%3e%3cfeGaussianBlur%20stdDeviation='0.64'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.156194%200%200%200%200%200.851969%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_15019_244'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_15019_244'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_i_15019_244'%20x='2.67998'%20y='1.28008'%20width='20.8'%20height='7.51997'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-0.8'%20dy='-0.8'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.405194%200%200%200%200%200%200%200%200%200%200.517269%200%200%200%200.35%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_244'/%3e%3c/filter%3e%3cfilter%20id='filter2_i_15019_244'%20x='1.87998'%20y='7.20005'%20width='21.6'%20height='8.16006'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-1.6'%20dy='-1.6'/%3e%3cfeGaussianBlur%20stdDeviation='1.6'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.0337715%200%200%200%200%200.42674%200%200%200%200%200.748258%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_244'/%3e%3c/filter%3e%3cfilter%20id='filter3_i_15019_244'%20x='1.87998'%20y='13.7601'%20width='21.6'%20height='8.31997'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-1.6'%20dy='-1.6'/%3e%3cfeGaussianBlur%20stdDeviation='1.6'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.0530908%200%200%200%200%200.470824%200%200%200%200%200.888558%200%200%200%201%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_244'/%3e%3c/filter%3e%3cclipPath%20id='clip0_15019_244'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(0.439941)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",w:r,h:r});case"pptx":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='25'%20height='24'%20viewBox='0%200%2025%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15019_265)'%3e%3cg%20filter='url(%23filter0_d_15019_265)'%3e%3cg%20filter='url(%23filter1_i_15019_265)'%3e%3cpath%20d='M23.6001%2012.0801C23.6001%2013.3933%2023.3414%2014.6937%2022.8389%2015.9069C22.3363%2017.1202%2021.5998%2018.2226%2020.6712%2019.1511C19.7426%2020.0797%2018.6402%2020.8163%2017.4269%2021.3189C16.2137%2021.8214%2014.9133%2022.0801%2013.6001%2022.0801L13.6001%2012.0801L23.6001%2012.0801Z'%20fill='%23FAB005'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_i_15019_265)'%3e%3cpath%20d='M13.6001%202.08008C14.9133%202.08008%2016.2137%202.33874%2017.4269%202.84128C18.6402%203.34383%2019.7426%204.08042%2020.6712%205.00901C21.5998%205.9376%2022.3363%207.03999%2022.8389%208.25324C23.3414%209.4665%2023.6001%2010.7669%2023.6001%2012.0801L13.6001%2012.0801L13.6001%202.08008Z'%20fill='%23FAB005'%20fill-opacity='0.12'/%3e%3c/g%3e%3cg%20filter='url(%23filter3_i_15019_265)'%3e%3cpath%20d='M13.6001%2022.0801C12.2869%2022.0801%2010.9865%2021.8214%209.77326%2021.3189C8.56001%2020.8163%207.45761%2020.0797%206.52903%2019.1511C5.60044%2018.2226%204.86385%2017.1202%204.3613%2015.9069C3.85875%2014.6937%203.6001%2013.3933%203.6001%2012.0801C3.6001%2010.7669%203.85876%209.4665%204.3613%208.25324C4.86385%207.03999%205.60044%205.93759%206.52903%205.00901C7.45762%204.08042%208.56001%203.34383%209.77326%202.84128C10.9865%202.33873%2012.2869%202.08008%2013.6001%202.08008L13.6001%2012.0801L13.6001%2022.0801Z'%20fill='%23F59F00'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_15019_265'%20x='2.3201'%20y='1.44008'%20width='22.56'%20height='22.56'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='0.64'/%3e%3cfeGaussianBlur%20stdDeviation='0.64'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.520654%200%200%200%200%200.260327%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_15019_265'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_15019_265'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_i_15019_265'%20x='12.0001'%20y='10.4801'%20width='11.6'%20height='11.6'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-1.6'%20dy='-1.6'/%3e%3cfeGaussianBlur%20stdDeviation='2.4'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%200.35%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_265'/%3e%3c/filter%3e%3cfilter%20id='filter2_i_15019_265'%20x='12.0001'%20y='2.08008'%20width='11.6'%20height='11.6'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-1.6'%20dy='1.6'/%3e%3cfeGaussianBlur%20stdDeviation='2.4'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%200.533333%200%200%200%200%200%200%200%200%200.45%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_265'/%3e%3c/filter%3e%3cfilter%20id='filter3_i_15019_265'%20x='3.6001'%20y='0.480078'%20width='13.2'%20height='21.6'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='3.2'%20dy='-1.6'/%3e%3cfeGaussianBlur%20stdDeviation='1.6'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%200%200%200%200%200%200%200%200%200%200.15%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_265'/%3e%3c/filter%3e%3cclipPath%20id='clip0_15019_265'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(0.560059)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",w:r,h:r});case"xlsx":return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_15019_253)'%3e%3cg%20filter='url(%23filter0_d_15019_253)'%3e%3cg%20filter='url(%23filter1_i_15019_253)'%3e%3crect%20x='3.04004'%20y='8.63989'%20width='10'%20height='6.64'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter2_i_15019_253)'%3e%3cpath%20d='M3.04004%204.47992C3.04004%203.06607%204.18619%201.91992%205.60004%201.91992H13.12V15.1999H3.04004V4.47992Z'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter3_i_15019_253)'%3e%3cpath%20d='M13.04%201.91992H20.48C21.8939%201.91992%2023.04%203.06607%2023.04%204.47992V8.63992H13.04V1.91992Z'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter4_i_15019_253)'%3e%3cpath%20d='M13.04%2015.2H23.04V19.28C23.04%2020.6938%2021.8939%2021.84%2020.48%2021.84H13.04V15.2Z'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter5_i_15019_253)'%3e%3cpath%20d='M3.04004%2015.2H13.04V21.84H5.60004C4.18619%2021.84%203.04004%2020.6938%203.04004%2019.28V15.2Z'%20fill='%2300A840'/%3e%3c/g%3e%3cg%20filter='url(%23filter6_i_15019_253)'%3e%3crect%20x='13.04'%20y='8.63989'%20width='10'%20height='6.64'%20fill='%2300A840'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_d_15019_253'%20x='1.76004'%20y='1.27992'%20width='22.56'%20height='22.4799'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dy='0.64'/%3e%3cfeGaussianBlur%20stdDeviation='0.64'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.482731%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20mode='normal'%20in2='BackgroundImageFix'%20result='effect1_dropShadow_15019_253'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='effect1_dropShadow_15019_253'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='filter1_i_15019_253'%20x='3.04004'%20y='6.23989'%20width='11.6'%20height='9.03989'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.5%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter2_i_15019_253'%20x='3.04004'%20y='-2.08008'%20width='13.2801'%20height='17.28'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='3.2'%20dy='-4'/%3e%3cfeGaussianBlur%20stdDeviation='2.8'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.6%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter3_i_15019_253'%20x='13.04'%20y='-0.480078'%20width='11.6'%20height='9.11997'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.6%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter4_i_15019_253'%20x='13.04'%20y='12.8'%20width='11.6'%20height='9.03989'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.4%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter5_i_15019_253'%20x='3.04004'%20y='12.8'%20width='11.6'%20height='9.03989'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.4%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cfilter%20id='filter6_i_15019_253'%20x='13.04'%20y='6.23989'%20width='11.6'%20height='9.03989'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='1.6'%20dy='-2.4'/%3e%3cfeGaussianBlur%20stdDeviation='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200.402067%200%200%200%200%200.174229%200%200%200%200.5%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_15019_253'/%3e%3c/filter%3e%3cclipPath%20id='clip0_15019_253'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",w:r,h:r});default:return t.jsx(o.Image,{src:"data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%204C0%201.79086%201.79086%200%204%200H20C22.2091%200%2024%201.79086%2024%204V20C24%2022.2091%2022.2091%2024%2020%2024H4C1.79086%2024%200%2022.2091%200%2020V4Z'%20fill='%23868E96'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.83325%205.33317C7.61224%205.33317%207.40028%205.42097%207.244%205.57725C7.08772%205.73353%206.99992%205.94549%206.99992%206.1665V17.8332C6.99992%2018.0542%207.08772%2018.2661%207.244%2018.4224C7.40028%2018.5787%207.61224%2018.6665%207.83325%2018.6665H16.1666C16.3876%2018.6665%2016.5996%2018.5787%2016.7558%2018.4224C16.9121%2018.2661%2016.9999%2018.0542%2016.9999%2017.8332V9.49984H14.4999C14.0579%209.49984%2013.634%209.32424%2013.3214%209.01168C13.0088%208.69912%2012.8333%208.2752%2012.8333%207.83317V5.33317H7.83325ZM14.4999%206.51168L15.8214%207.83317H14.4999V6.51168ZM6.06548%204.39874C6.53433%203.9299%207.17021%203.6665%207.83325%203.6665H13.6666C13.8876%203.6665%2014.0996%203.7543%2014.2558%203.91058L18.4225%208.07725C18.5788%208.23353%2018.6666%208.44549%2018.6666%208.6665V17.8332C18.6666%2018.4962%2018.4032%2019.1321%2017.9344%2019.6009C17.4655%2020.0698%2016.8296%2020.3332%2016.1666%2020.3332H7.83325C7.17021%2020.3332%206.53433%2020.0698%206.06548%2019.6009C5.59664%2019.1321%205.33325%2018.4962%205.33325%2017.8332V6.1665C5.33325%205.50346%205.59664%204.86758%206.06548%204.39874ZM11.2603%2010.4692C11.587%2010.3449%2011.9398%2010.3049%2012.2861%2010.3528C12.6324%2010.4007%2012.9611%2010.535%2013.2418%2010.7433C13.5226%2010.9515%2013.7465%2011.2271%2013.8928%2011.5446C14.0391%2011.8621%2014.1031%2012.2113%2014.079%2012.5601C14.0549%2012.9089%2013.9435%2013.2459%2013.7549%2013.5403C13.5663%2013.8347%2013.3067%2014.0768%2012.9999%2014.2445C12.6932%2014.4122%2012.3492%2014.5%2011.9996%2014.4998C11.5394%2014.4996%2011.1664%2014.1263%2011.1667%2013.6661C11.1669%2013.2058%2011.5402%2012.8329%2012.0004%2012.8332C12.0703%2012.8332%2012.1391%2012.8156%2012.2005%2012.7821C12.2618%2012.7486%2012.3138%2012.7001%2012.3515%2012.6413C12.3892%2012.5824%2012.4115%2012.515%2012.4163%2012.4452C12.4211%2012.3755%2012.4083%2012.3056%2012.3791%2012.2421C12.3498%2012.1786%2012.305%2012.1235%2012.2489%2012.0819C12.1927%2012.0402%2012.127%2012.0133%2012.0577%2012.0038C11.9885%2011.9942%2011.9179%2012.0022%2011.8526%2012.027C11.7872%2012.0519%2011.7292%2012.0928%2011.6838%2012.1459C11.3849%2012.496%2010.8589%2012.5374%2010.5089%2012.2386C10.1589%2011.9397%2010.1174%2011.4137%2010.4163%2011.0637C10.6433%2010.7979%2010.9335%2010.5934%2011.2603%2010.4692ZM11.9999%2015.3332C12.4602%2015.3332%2012.8333%2015.7063%2012.8333%2016.1665V16.1748C12.8333%2016.6351%2012.4602%2017.0082%2011.9999%2017.0082C11.5397%2017.0082%2011.1666%2016.6351%2011.1666%2016.1748V16.1665C11.1666%2015.7063%2011.5397%2015.3332%2011.9999%2015.3332Z'%20fill='white'/%3e%3c/svg%3e",w:r,h:r})}},RP=(e,t)=>e===t,DP=(e,t="SAAS")=>{if(e.includes("text"))return"documents";if(e.includes("image")||e.includes("video"))return"media";switch(e.toLowerCase()){case"application/pdf":case"application/msword":case"application/rtf":case"application/excel":return"documents";case"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":return RP(t,"SAAS")?"documents":"xlsx";case"application/vnd.openxmlformats-officedocument.wordprocessingml.document":return RP(t,"SAAS")?"documents":"docx";case"application/vnd.openxmlformats-officedocument.presentationml.presentation":return RP(t,"SAAS")?"presentation":"pptx";case"application/slides":case"audio/mpeg":return"media";case"flow":return"diagram";case"archieve":case"application/zip":return"archieve";case"folder":return"folder";default:return"other"}},BP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#9B14EA"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.83325 5.33317C7.61224 5.33317 7.40028 5.42097 7.244 5.57725C7.08772 5.73353 6.99992 5.94549 6.99992 6.1665L6.99992 17.8344C6.9997 17.9809 7.03811 18.1248 7.11126 18.2518C7.18441 18.3787 7.28972 18.4841 7.41659 18.5573C7.81516 18.7874 7.95173 19.2971 7.72161 19.6957C7.49149 20.0942 6.98183 20.2308 6.58325 20.0007C6.20266 19.781 5.88672 19.4648 5.66727 19.084C5.44793 18.7035 5.33273 18.2719 5.33325 17.8326C5.33325 17.8329 5.33325 17.8324 5.33325 17.8326V6.1665C5.33325 5.50346 5.59665 4.86758 6.06549 4.39874C6.53433 3.9299 7.17021 3.6665 7.83325 3.6665H13.6666C13.8876 3.6665 14.0996 3.7543 14.2558 3.91058L18.4225 8.07725C18.5788 8.23353 18.6666 8.44549 18.6666 8.6665V17.8332C18.6666 18.4962 18.4032 19.1321 17.9344 19.6009C17.4655 20.0698 16.8296 20.3332 16.1666 20.3332H15.3333C14.873 20.3332 14.4999 19.9601 14.4999 19.4998C14.4999 19.0396 14.873 18.6665 15.3333 18.6665H16.1666C16.3876 18.6665 16.5996 18.5787 16.7558 18.4224C16.9121 18.2661 16.9999 18.0542 16.9999 17.8332V9.01168L13.3214 5.33317H11.1666C11.6268 5.33317 11.9999 5.70627 11.9999 6.1665C11.9999 6.62674 11.6268 6.99984 11.1666 6.99984H10.3333C9.87301 6.99984 9.49992 6.62674 9.49992 6.1665C9.49992 5.70627 9.87301 5.33317 10.3333 5.33317H7.83325ZM11.1666 7.83317C11.1666 7.37293 11.5397 6.99984 11.9999 6.99984H12.8333C13.2935 6.99984 13.6666 7.37293 13.6666 7.83317C13.6666 8.29341 13.2935 8.6665 12.8333 8.6665H11.9999C11.5397 8.6665 11.1666 8.29341 11.1666 7.83317ZM9.49992 9.49984C9.49992 9.0396 9.87301 8.6665 10.3333 8.6665H11.1666C11.6268 8.6665 11.9999 9.0396 11.9999 9.49984C11.9999 9.96007 11.6268 10.3332 11.1666 10.3332H10.3333C9.87301 10.3332 9.49992 9.96007 9.49992 9.49984ZM11.1666 11.1665C11.1666 10.7063 11.5397 10.3332 11.9999 10.3332H12.8333C13.2935 10.3332 13.6666 10.7063 13.6666 11.1665C13.6666 11.6267 13.2935 11.9998 12.8333 11.9998H11.9999C11.5397 11.9998 11.1666 11.6267 11.1666 11.1665ZM9.49992 12.8332C9.49992 12.3729 9.87301 11.9998 10.3333 11.9998H11.1666C11.6268 11.9998 11.9999 12.3729 11.9999 12.8332C11.9999 13.2934 11.6268 13.6665 11.1666 13.6665H10.3333C9.87301 13.6665 9.49992 13.2934 9.49992 12.8332ZM11.1666 14.4998C11.1666 14.0396 11.5397 13.6665 11.9999 13.6665H12.8333C13.2935 13.6665 13.6666 14.0396 13.6666 14.4998C13.6666 14.9601 13.2935 15.3332 12.8333 15.3332H11.9999C11.5397 15.3332 11.1666 14.9601 11.1666 14.4998ZM11.1666 16.9998C10.9456 16.9998 10.7336 17.0876 10.5773 17.2439C10.421 17.4002 10.3333 17.6122 10.3333 17.8332V19.4998H11.9999V17.8332C11.9999 17.6122 11.9121 17.4002 11.7558 17.2439C11.5996 17.0876 11.3876 16.9998 11.1666 16.9998ZM9.39882 16.0654C9.86766 15.5966 10.5035 15.3332 11.1666 15.3332C11.8296 15.3332 12.4655 15.5966 12.9344 16.0654C13.4032 16.5342 13.6666 17.1701 13.6666 17.8332V19.4998C13.6666 19.9419 13.491 20.3658 13.1784 20.6783C12.8659 20.9909 12.4419 21.1665 11.9999 21.1665H10.3333C9.89123 21.1665 9.4673 20.9909 9.15474 20.6783C8.84218 20.3658 8.66659 19.9419 8.66659 19.4998V17.8332C8.66659 17.1701 8.92998 16.5342 9.39882 16.0654Z",fill:"white"})),zP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#0CA678"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6.16667C10.4529 6.16667 8.96917 6.78125 7.87521 7.87521C6.78125 8.96917 6.16667 10.4529 6.16667 12V12.1423C6.42732 12.0501 6.7078 12 7 12H7.83333C9.21405 12 10.3333 13.1193 10.3333 14.5V17C10.3333 18.3807 9.21405 19.5 7.83333 19.5H7C5.61929 19.5 4.5 18.3807 4.5 17V12C4.5 10.0109 5.29018 8.10322 6.6967 6.6967C8.10322 5.29018 10.0109 4.5 12 4.5C13.9891 4.5 15.8968 5.29018 17.3033 6.6967C18.7098 8.10322 19.5 10.0109 19.5 12V17C19.5 18.3807 18.3807 19.5 17 19.5H16.1667C14.786 19.5 13.6667 18.3807 13.6667 17V14.5C13.6667 13.1193 14.786 12 16.1667 12H17C17.2922 12 17.5727 12.0501 17.8333 12.1423V12C17.8333 10.4529 17.2188 8.96917 16.1248 7.87521C15.0308 6.78125 13.5471 6.16667 12 6.16667ZM17.8333 14.5C17.8333 14.0398 17.4602 13.6667 17 13.6667H16.1667C15.7064 13.6667 15.3333 14.0398 15.3333 14.5V17C15.3333 17.4602 15.7064 17.8333 16.1667 17.8333H17C17.4602 17.8333 17.8333 17.4602 17.8333 17V14.5ZM6.16667 14.5V17C6.16667 17.4602 6.53976 17.8333 7 17.8333H7.83333C8.29357 17.8333 8.66667 17.4602 8.66667 17V14.5C8.66667 14.0398 8.29357 13.6667 7.83333 13.6667H7C6.53976 13.6667 6.16667 14.0398 6.16667 14.5Z",fill:"white"})),FP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#1C7ED6"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.8689 4.52508C14.3154 4.6367 14.5868 5.08915 14.4752 5.53564L11.1419 18.869C11.0302 19.3155 10.5778 19.5869 10.1313 19.4753C9.68481 19.3637 9.41334 18.9112 9.52496 18.4648L12.8583 5.13142C12.9699 4.68492 13.4224 4.41345 13.8689 4.52508ZM8.42267 8.07761C8.74811 8.40305 8.74811 8.93068 8.42267 9.25612L5.67859 12.0002L8.42267 14.7443C8.74811 15.0697 8.74811 15.5973 8.42267 15.9228C8.09723 16.2482 7.5696 16.2482 7.24416 15.9228L3.91083 12.5895C3.58539 12.264 3.58539 11.7364 3.91083 11.4109L7.24416 8.07761C7.5696 7.75217 8.09723 7.75217 8.42267 8.07761ZM15.5775 8.07761C15.9029 7.75217 16.4306 7.75217 16.756 8.07761L20.0893 11.4109C20.4148 11.7364 20.4148 12.264 20.0893 12.5895L16.756 15.9228C16.4306 16.2482 15.9029 16.2482 15.5775 15.9228C15.2521 15.5973 15.2521 15.0697 15.5775 14.7443L18.3216 12.0002L15.5775 9.25612C15.2521 8.93068 15.2521 8.40305 15.5775 8.07761Z",fill:"white"})),HP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#F03E3E"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.23223 5.23223C5.70107 4.76339 6.33696 4.5 7 4.5H17C17.663 4.5 18.2989 4.76339 18.7678 5.23223C19.2366 5.70107 19.5 6.33696 19.5 7V12.8333C19.5 13.0543 19.4122 13.2663 19.2559 13.4226L13.4226 19.2559C13.2663 19.4122 13.0543 19.5 12.8333 19.5H7C6.33696 19.5 5.70107 19.2366 5.23223 18.7678C4.76339 18.2989 4.5 17.663 4.5 17V7C4.5 6.33696 4.76339 5.70107 5.23223 5.23223ZM7 6.16667C6.77899 6.16667 6.56702 6.25446 6.41074 6.41074C6.25446 6.56702 6.16667 6.77899 6.16667 7V17C6.16667 17.221 6.25446 17.433 6.41074 17.5893C6.56702 17.7455 6.77899 17.8333 7 17.8333H12V13.6667C12 13.2246 12.1756 12.8007 12.4882 12.4882C12.8007 12.1756 13.2246 12 13.6667 12H17.8333V7C17.8333 6.77899 17.7455 6.56702 17.5893 6.41074C17.433 6.25446 17.221 6.16667 17 6.16667H7ZM16.6548 13.6667H13.6667V16.6548L16.6548 13.6667Z",fill:"white"})),qP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#FF6F00"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.83333 6.16667C6.91286 6.16667 6.16667 6.91286 6.16667 7.83333V12.4882L8.07741 10.5774L8.08885 10.5662C8.59083 10.0832 9.22016 9.77512 9.91667 9.77512C10.6132 9.77512 11.2425 10.0832 11.7445 10.5662L11.7559 10.5774L13.6667 12.4882L13.9107 12.2441L13.9222 12.2329C14.4242 11.7498 15.0535 11.4418 15.75 11.4418C16.4465 11.4418 17.0758 11.7498 17.5778 12.2329L17.5893 12.2441L17.8333 12.4882V7.83333C17.8333 6.91286 17.0871 6.16667 16.1667 6.16667H7.83333ZM19.5 14.4992V7.83333C19.5 5.99238 18.0076 4.5 16.1667 4.5H7.83333C5.99238 4.5 4.5 5.99238 4.5 7.83333V14.4999C4.5 14.4998 4.5 14.5 4.5 14.4999V16.1667C4.5 18.0076 5.99238 19.5 7.83333 19.5H16.1667C18.0076 19.5 19.5 18.0076 19.5 16.1667V14.5008C19.5 14.5003 19.5 14.4997 19.5 14.4992ZM17.8333 14.8452L16.417 13.4288C16.1609 13.1844 15.93 13.1084 15.75 13.1084C15.57 13.1084 15.3391 13.1844 15.083 13.4288L14.8452 13.6667L15.9226 14.7441C16.248 15.0695 16.248 15.5972 15.9226 15.9226C15.5972 16.248 15.0695 16.248 14.7441 15.9226L10.5836 11.7621C10.3276 11.5177 10.0966 11.4418 9.91667 11.4418C9.73671 11.4418 9.50575 11.5177 9.24971 11.7621L6.16667 14.8452V16.1667C6.16667 17.0871 6.91286 17.8333 7.83333 17.8333H16.1667C17.0871 17.8333 17.8333 17.0871 17.8333 16.1667V14.8452ZM13.6667 8.66667C13.6667 8.20643 14.0398 7.83333 14.5 7.83333H14.5083C14.9686 7.83333 15.3417 8.20643 15.3417 8.66667C15.3417 9.1269 14.9686 9.5 14.5083 9.5H14.5C14.0398 9.5 13.6667 9.1269 13.6667 8.66667Z",fill:"white"})),UP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#868E96"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.83325 5.33317C7.61224 5.33317 7.40028 5.42097 7.244 5.57725C7.08772 5.73353 6.99992 5.94549 6.99992 6.1665V17.8332C6.99992 18.0542 7.08772 18.2661 7.244 18.4224C7.40028 18.5787 7.61224 18.6665 7.83325 18.6665H16.1666C16.3876 18.6665 16.5996 18.5787 16.7558 18.4224C16.9121 18.2661 16.9999 18.0542 16.9999 17.8332V9.49984H14.4999C14.0579 9.49984 13.634 9.32424 13.3214 9.01168C13.0088 8.69912 12.8333 8.2752 12.8333 7.83317V5.33317H7.83325ZM14.4999 6.51168L15.8214 7.83317H14.4999V6.51168ZM6.06548 4.39874C6.53433 3.9299 7.17021 3.6665 7.83325 3.6665H13.6666C13.8876 3.6665 14.0996 3.7543 14.2558 3.91058L18.4225 8.07725C18.5788 8.23353 18.6666 8.44549 18.6666 8.6665V17.8332C18.6666 18.4962 18.4032 19.1321 17.9344 19.6009C17.4655 20.0698 16.8296 20.3332 16.1666 20.3332H7.83325C7.17021 20.3332 6.53433 20.0698 6.06548 19.6009C5.59664 19.1321 5.33325 18.4962 5.33325 17.8332V6.1665C5.33325 5.50346 5.59664 4.86758 6.06548 4.39874ZM11.2603 10.4692C11.587 10.3449 11.9398 10.3049 12.2861 10.3528C12.6324 10.4007 12.9611 10.535 13.2418 10.7433C13.5226 10.9515 13.7465 11.2271 13.8928 11.5446C14.0391 11.8621 14.1031 12.2113 14.079 12.5601C14.0549 12.9089 13.9435 13.2459 13.7549 13.5403C13.5663 13.8347 13.3067 14.0768 12.9999 14.2445C12.6932 14.4122 12.3492 14.5 11.9996 14.4998C11.5394 14.4996 11.1664 14.1263 11.1667 13.6661C11.1669 13.2058 11.5402 12.8329 12.0004 12.8332C12.0703 12.8332 12.1391 12.8156 12.2005 12.7821C12.2618 12.7486 12.3138 12.7001 12.3515 12.6413C12.3892 12.5824 12.4115 12.515 12.4163 12.4452C12.4211 12.3755 12.4083 12.3056 12.3791 12.2421C12.3498 12.1786 12.305 12.1235 12.2489 12.0819C12.1927 12.0402 12.127 12.0133 12.0577 12.0038C11.9885 11.9942 11.9179 12.0022 11.8526 12.027C11.7872 12.0519 11.7292 12.0928 11.6838 12.1459C11.3849 12.496 10.8589 12.5374 10.5089 12.2386C10.1589 11.9397 10.1174 11.4137 10.4163 11.0637C10.6433 10.7979 10.9335 10.5934 11.2603 10.4692ZM11.9999 15.3332C12.4602 15.3332 12.8333 15.7063 12.8333 16.1665V16.1748C12.8333 16.6351 12.4602 17.0082 11.9999 17.0082C11.5397 17.0082 11.1666 16.6351 11.1666 16.1748V16.1665C11.1666 15.7063 11.5397 15.3332 11.9999 15.3332Z",fill:"white"})),VP=e=>E.createElement("svg",{width:"100%",height:"100%",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},E.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H20C22.2091 0 24 1.79086 24 4V20C24 22.2091 22.2091 24 20 24H4C1.79086 24 0 22.2091 0 20V4Z",fill:"#FAB005"}),E.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 6.16667C6.53976 6.16667 6.16667 6.53976 6.16667 7V7.83333H7.83333V6.16667H7ZM7 4.5C5.61929 4.5 4.5 5.61929 4.5 7V17C4.5 18.3807 5.61929 19.5 7 19.5H17C18.3807 19.5 19.5 18.3807 19.5 17V7C19.5 5.61929 18.3807 4.5 17 4.5H7ZM9.5 6.16667V11.1667H14.5V6.16667H9.5ZM16.1667 6.16667V7.83333H17.8333V7C17.8333 6.53976 17.4602 6.16667 17 6.16667H16.1667ZM17.8333 9.5H16.1667V11.1667H17.8333V9.5ZM17.8333 12.8333H16.1667V14.5H17.8333V12.8333ZM17.8333 16.1667H16.1667V17.8333H17C17.4602 17.8333 17.8333 17.4602 17.8333 17V16.1667ZM14.5 17.8333V12.8333H9.5V17.8333H14.5ZM7.83333 17.8333V16.1667H6.16667V17C6.16667 17.4602 6.53976 17.8333 7 17.8333H7.83333ZM6.16667 14.5H7.83333V12.8333H6.16667V14.5ZM6.16667 11.1667H7.83333V9.5H6.16667V11.1667Z",fill:"white"})),XP=({category:e})=>{const{t:n}=i.useTranslation("settingsPage"),r=(e=>{switch(e){case"archives":return BP;case"audio":return zP;case"code":return FP;case"documents":return HP;case"images":return qP;case"videos":return VP;default:return UP}})(e.type);return t.jsxs(o.Flex,{h:48,w:"100%",justify:"space-between",align:"center",px:16,style:{border:"1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4))",borderRadius:"var(--mantine-radius-md)"},children:[t.jsxs(o.Flex,{align:"center",gap:8,children:[t.jsx(r,{width:24,height:24}),t.jsx(o.Text,{fz:14,children:n(`workspace.categories.${e.type}`)})]}),t.jsxs(o.Text,{c:"dimmed",fz:14,children:[e.percentage,"% (",Nt(e.usedKb),")"]})]})},GP={documents:0,images:1,videos:2,audio:3,code:4,archives:5,other:6};var WP=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),JP="-ms-",ZP="-moz-",KP="-webkit-",YP="comm",QP="rule",_P="decl",$P="@keyframes",eL=Math.abs,tL=String.fromCharCode,nL=Object.assign;function rL(e){return e.trim()}function iL(e,t,n){return e.replace(t,n)}function oL(e,t){return e.indexOf(t)}function aL(e,t){return 0|e.charCodeAt(t)}function sL(e,t,n){return e.slice(t,n)}function lL(e){return e.length}function cL(e){return e.length}function dL(e,t){return t.push(e),e}var uL=1,hL=1,fL=0,pL=0,mL=0,gL="";function vL(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:uL,column:hL,length:a,return:""}}function bL(e,t){return nL(vL("",null,null,"",null,null,0),e,{length:-e.length},t)}function yL(){return mL=pL>0?aL(gL,--pL):0,hL--,10===mL&&(hL=1,uL--),mL}function wL(){return mL=pL<fL?aL(gL,pL++):0,hL++,10===mL&&(hL=1,uL++),mL}function kL(){return aL(gL,pL)}function xL(){return pL}function CL(e,t){return sL(gL,e,t)}function SL(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function EL(e){return uL=hL=1,fL=lL(gL=e),pL=0,[]}function ML(e){return gL="",e}function TL(e){return rL(CL(pL-1,OL(91===e?e+2:40===e?e+1:e)))}function AL(e){for(;(mL=kL())&&mL<33;)wL();return SL(e)>2||SL(mL)>3?"":" "}function jL(e,t){for(;--t&&wL()&&!(mL<48||mL>102||mL>57&&mL<65||mL>70&&mL<97););return CL(e,xL()+(t<6&&32==kL()&&32==wL()))}function OL(e){for(;wL();)switch(mL){case e:return pL;case 34:case 39:34!==e&&39!==e&&OL(mL);break;case 40:41===e&&OL(e);break;case 92:wL()}return pL}function PL(e,t){for(;wL()&&e+mL!==57&&(e+mL!==84||47!==kL()););return"/*"+CL(t,pL-1)+"*"+tL(47===e?e:wL())}function LL(e){for(;!SL(kL());)wL();return CL(e,pL)}function IL(e){return ML(NL("",null,null,null,[""],e=EL(e),0,[0],e))}function NL(e,t,n,r,i,o,a,s,l){for(var c=0,d=0,u=a,h=0,f=0,p=0,m=1,g=1,v=1,b=0,y="",w=i,k=o,x=r,C=y;g;)switch(p=b,b=wL()){case 40:if(108!=p&&58==aL(C,u-1)){-1!=oL(C+=iL(TL(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:C+=TL(b);break;case 9:case 10:case 13:case 32:C+=AL(p);break;case 92:C+=jL(xL()-1,7);continue;case 47:switch(kL()){case 42:case 47:dL(DL(PL(wL(),xL()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=lL(C)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+d:-1==v&&(C=iL(C,/\f/g,"")),f>0&&lL(C)-u&&dL(f>32?BL(C+";",r,n,u-1):BL(iL(C," ","")+";",r,n,u-2),l);break;case 59:C+=";";default:if(dL(x=RL(C,t,n,c,d,i,s,y,w=[],k=[],u),o),123===b)if(0===d)NL(C,t,x,x,w,o,u,s,k);else switch(99===h&&110===aL(C,3)?100:h){case 100:case 108:case 109:case 115:NL(e,x,x,r&&dL(RL(e,x,x,0,0,i,s,y,i,w=[],u),k),i,k,u,s,r?w:k);break;default:NL(C,x,x,x,[""],k,0,s,k)}}c=d=f=0,m=v=1,y=C="",u=a;break;case 58:u=1+lL(C),f=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==yL())continue;switch(C+=tL(b),b*m){case 38:v=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(lL(C)-1)*v,v=1;break;case 64:45===kL()&&(C+=TL(wL())),h=kL(),d=u=lL(y=C+=LL(xL())),b++;break;case 45:45===p&&2==lL(C)&&(m=0)}}return o}function RL(e,t,n,r,i,o,a,s,l,c,d){for(var u=i-1,h=0===i?o:[""],f=cL(h),p=0,m=0,g=0;p<r;++p)for(var v=0,b=sL(e,u+1,u=eL(m=a[p])),y=e;v<f;++v)(y=rL(m>0?h[v]+" "+b:iL(b,/&\f/g,h[v])))&&(l[g++]=y);return vL(e,t,n,0===i?QP:s,l,c,d)}function DL(e,t,n){return vL(e,t,n,YP,tL(mL),sL(e,2,-2),0)}function BL(e,t,n,r){return vL(e,t,n,_P,sL(e,0,r),sL(e,r+1,-1),r)}function zL(e,t){for(var n="",r=cL(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function FL(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _P:return e.return=e.return||e.value;case YP:return"";case $P:return e.return=e.value+"{"+zL(e.children,r)+"}";case QP:e.value=e.props.join(",")}return lL(n=zL(e.children,r))?e.return=e.value+"{"+n+"}":""}function HL(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var qL=function(e,t,n){for(var r=0,i=0;r=i,i=kL(),38===r&&12===i&&(t[n]=1),!SL(i);)wL();return CL(e,pL)},UL=function(e,t){return ML(function(e,t){var n=-1,r=44;do{switch(SL(r)){case 0:38===r&&12===kL()&&(t[n]=1),e[n]+=qL(pL-1,t,n);break;case 2:e[n]+=TL(r);break;case 4:if(44===r){e[++n]=58===kL()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=tL(r)}}while(r=wL());return e}(EL(e),t))},VL=new WeakMap,XL=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||VL.get(n))&&!r){VL.set(e,!0);for(var i=[],o=UL(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},GL=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function WL(e,t){switch(function(e,t){return 45^aL(e,0)?(((t<<2^aL(e,0))<<2^aL(e,1))<<2^aL(e,2))<<2^aL(e,3):0}(e,t)){case 5103:return KP+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return KP+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return KP+e+ZP+e+JP+e+e;case 6828:case 4268:return KP+e+JP+e+e;case 6165:return KP+e+JP+"flex-"+e+e;case 5187:return KP+e+iL(e,/(\w+).+(:[^]+)/,KP+"box-$1$2"+JP+"flex-$1$2")+e;case 5443:return KP+e+JP+"flex-item-"+iL(e,/flex-|-self/,"")+e;case 4675:return KP+e+JP+"flex-line-pack"+iL(e,/align-content|flex-|-self/,"")+e;case 5548:return KP+e+JP+iL(e,"shrink","negative")+e;case 5292:return KP+e+JP+iL(e,"basis","preferred-size")+e;case 6060:return KP+"box-"+iL(e,"-grow","")+KP+e+JP+iL(e,"grow","positive")+e;case 4554:return KP+iL(e,/([^-])(transform)/g,"$1"+KP+"$2")+e;case 6187:return iL(iL(iL(e,/(zoom-|grab)/,KP+"$1"),/(image-set)/,KP+"$1"),e,"")+e;case 5495:case 3959:return iL(e,/(image-set\([^]*)/,KP+"$1$`$1");case 4968:return iL(iL(e,/(.+:)(flex-)?(.*)/,KP+"box-pack:$3"+JP+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+KP+e+e;case 4095:case 3583:case 4068:case 2532:return iL(e,/(.+)-inline(.+)/,KP+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(lL(e)-1-t>6)switch(aL(e,t+1)){case 109:if(45!==aL(e,t+4))break;case 102:return iL(e,/(.+:)(.+)-([^]+)/,"$1"+KP+"$2-$3$1"+ZP+(108==aL(e,t+3)?"$3":"$2-$3"))+e;case 115:return~oL(e,"stretch")?WL(iL(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==aL(e,t+1))break;case 6444:switch(aL(e,lL(e)-3-(~oL(e,"!important")&&10))){case 107:return iL(e,":",":"+KP)+e;case 101:return iL(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+KP+(45===aL(e,14)?"inline-":"")+"box$3$1"+KP+"$2$3$1"+JP+"$2box$3")+e}break;case 5936:switch(aL(e,t+11)){case 114:return KP+e+JP+iL(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return KP+e+JP+iL(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return KP+e+JP+iL(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return KP+e+JP+e+e}return e}var JL,ZL,KL=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case _P:e.return=WL(e.value,e.length);break;case $P:return zL([bL(e,{value:iL(e.value,"@","@"+KP)})],r);case QP:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zL([bL(e,{props:[iL(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return zL([bL(e,{props:[iL(t,/:(plac\w+)/,":"+KP+"input-$1")]}),bL(e,{props:[iL(t,/:(plac\w+)/,":-moz-$1")]}),bL(e,{props:[iL(t,/:(plac\w+)/,JP+"input-$1")]})],r)}return""})}}],YL=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,i,o=e.stylisPlugins||KL,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,d,u,h=[FL,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=(c=[XL,GL].concat(o,h),d=cL(c),function(e,t,n,r){for(var i="",o=0;o<d;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,zL(IL(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new WP({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return p.sheet.hydrate(s),p};function QL(){return QL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QL.apply(null,arguments)}!function(){if(ZL)return JL;ZL=1;var e=Al(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function o(n){return e.isMemo(n)?r:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=r;var a=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,u=Object.prototype;JL=function e(t,r,i){if("string"!=typeof r){if(u){var h=d(r);h&&h!==u&&e(t,h,i)}var f=s(r);l&&(f=f.concat(l(r)));for(var p=o(t),m=o(r),g=0;g<f.length;++g){var v=f[g];if(!(n[v]||i&&i[v]||m&&m[v]||p&&p[v])){var b=c(r,v);try{a(t,v,b)}catch(y){}}}}return t}}();function _L(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}var $L=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},eI=function(e,t,n){$L(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var tI={animationIterationCount:1,aspectRatio: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,scale: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},nI=/[A-Z]|^ms/g,rI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,iI=function(e){return 45===e.charCodeAt(1)},oI=function(e){return null!=e&&"boolean"!=typeof e},aI=HL(function(e){return iI(e)?e:e.replace(nI,"-$&").toLowerCase()}),sI=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(rI,function(e,t,n){return cI={name:t,styles:n,next:cI},t})}return 1===tI[e]||iI(e)||"number"!=typeof t||0===t?t:t+"px"};function lI(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return cI={name:i.name,styles:i.styles,next:cI},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)cI={name:a.name,styles:a.styles,next:cI},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=lI(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":oI(s)&&(r+=aI(o)+":"+sI(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=lI(e,t,a);switch(o){case"animation":case"animationName":r+=aI(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)oI(a[c])&&(r+=aI(o)+":"+sI(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=cI,l=n(e);return cI=s,lI(e,t,l)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var cI,dI=/label:\s*([^\s;{]+)\s*(;|$)/g;function uI(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";cI=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=lI(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=lI(n,t,e[a]),r)i+=o[a]}dI.lastIndex=0;for(var s,l="";null!==(s=dI.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:cI}}var hI=!!E.useInsertionEffect&&E.useInsertionEffect||function(e){return e()},fI=E.createContext("undefined"!=typeof HTMLElement?YL({key:"css"}):null);fI.Provider;var pI,mI,gI=function(e){return n.forwardRef(function(t,r){var i=n.useContext(fI);return e(t,i,r)})},vI=E.createContext({}),bI={}.hasOwnProperty,yI="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",wI=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $L(t,n,r),hI(function(){return eI(t,n,r)}),null},kI=gI(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[yI],o=[r],a="";"string"==typeof e.className?a=_L(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=uI(o,void 0,E.useContext(vI));a+=t.key+"-"+s.name;var l={};for(var c in e)bI.call(e,c)&&"css"!==c&&c!==yI&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),E.createElement(E.Fragment,null,E.createElement(wI,{cache:t,serialized:s,isStringTag:"string"==typeof i}),E.createElement(i,l))}),xI=function(e,t){var n=arguments;if(null==t||!bI.call(t,"css"))return E.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=kI,i[1]=function(e,t){var n={};for(var r in t)bI.call(t,r)&&(n[r]=t[r]);return n[yI]=e,n}(e,t);for(var o=2;o<r;o++)i[o]=n[o];return E.createElement.apply(null,i)};function CI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return uI(t)}pI=xI||(xI={}),mI||(mI=pI.JSX||(pI.JSX={}));var SI=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,EI=HL(function(e){return SI.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),MI=function(e){return"theme"!==e},TI=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?EI:MI},AI=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},jI=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $L(t,n,r),hI(function(){return eI(t,n,r)}),null},OI=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=AI(t,n,o),l=s||TI(a),c=!l("as");return function(){var d=arguments,u=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{var h=d[0];u.push(h[0]);for(var f=d.length,p=1;p<f;p++)u.push(d[p],h[p])}var m=gI(function(e,t,n){var r=c&&e.as||a,o="",d=[],h=e;if(null==e.theme){for(var f in h={},e)h[f]=e[f];h.theme=E.useContext(vI)}"string"==typeof e.className?o=_L(t.registered,d,e.className):null!=e.className&&(o=e.className+" ");var p=uI(u.concat(d),t.registered,h);o+=t.key+"-"+p.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?TI(r):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=o,n&&(g.ref=n),E.createElement(E.Fragment,null,E.createElement(jI,{cache:t,serialized:p,isStringTag:"string"==typeof r}),E.createElement(r,g))});return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=u,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,QL({},n,r,{shouldForwardProp:AI(m,r,!0)})).apply(void 0,u)},m}}.bind(null);["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){OI[e]=OI(e)});const PI={ROW:"data-row",CELL:"data-cell",ROOT:"data-root",COLUMN_ALIGN:"data-al",SCROLLED:"data-scrolled",SORTABLE:"data-sortable",RESIZER:"data-resizer",RESIZER_SIDE:"data-side",ROW_SELECTED:"data-sel",ROW_CHILD:"data-child",SORTED:"data-sorted",HEADER_CELL:"data-header",INNER:"data-inner",AUTOSIZE:"data-autosize",PANEL_SIDE:"data-side",HEADER_GRID:"data-header-grid",VIRTUAL_CONTAINER:"data-virtual",BASE:"data-base",HEADERS:"data-headers",HEADER_GROUP:"data-header-group"},LI="__checkbox__",II="__expand__",NI="__aggregation__",RI=n.createContext(null),DI=()=>n.useContext(RI);var BI;(e=>{e.parse=e=>{if(p.isNil(e))return NaN;if("number"==typeof e&&!isNaN(e))return e;const t="string"==typeof e?parseFloat(e):NaN;return isNaN(t)?NaN:t},e.isPositive=t=>(0,e.isNumber)(t)&&t>0,e.isNegative=t=>(0,e.isNumber)(t)&&t<0,e.getDynamic=(t,n)=>{const r=(0,e.parse)(t);return(0,e.isNumber)(r)?(0,e.isPositive)(r)?n?"negative":"positive":(0,e.isNegative)(r)?n?"positive":"negative":"neutral":null},e.isNumber=e=>"number"==typeof e&&!isNaN(e),e.format=(t,n={})=>{const{locale:r="en-US",invalidValue:i="n/a",style:o,currency:a,decimal:s,minimumFractionDigits:l,maximumFractionDigits:c,divide:d,short:u,...h}=n,f=(0,e.parse)(t);if(isNaN(f))return i;const p=new Intl.NumberFormat(r,{style:o,..."currency"===o?{currency:a||"USD",currencyDisplay:"symbol"}:{},minimumFractionDigits:l??(s?2:0),maximumFractionDigits:c??(s?2:0),notation:u?"compact":void 0,compactDisplay:u?"short":void 0,...h});try{return p.format(d?f/100:f)}catch{return i}},e.formatCurrency=(t,n)=>(0,e.format)(t,{style:"currency",...n}),e.formatPercents=(t,n)=>(0,e.format)(t,{style:"percent",...n}),e.dynamicTypesList=["positive","negative","neutral"];const t={currency:e.formatCurrency,number:e.format,percent:e.formatPercents};e.round=(e,t=-2,n="round")=>{if(e=Number(e),t%1!=0||Number.isNaN(e))return NaN;if(0===t)return Math[n](e);const[r,i=0]=e.toString().split("e"),o=Math[n](Number(`${r}e${Number(i)-t}`)),[a,s=0]=o.toString().split("e");return Number(`${a}e${+s+t}`)},e.formatByType=(e,n,r)=>t[e](n,r),e.getCurrencySymbol=(e,t="en-US")=>{const n=new Intl.NumberFormat(t,{style:"currency",currency:e,currencyDisplay:"symbol"}).formatToParts(1).find(e=>"currency"===e.type);return(null==n?void 0:n.value)||""}})(BI||(BI={}));const zI=e=>({render:(t,n)=>{const r=new Date(n);return xa(r)?ls(r,(null==e?void 0:e.format)??"MMM dd, yyyy"):null},exportSettings:{value:(t,n)=>{const r=new Date(n);return xa(r)?ls(r,(null==e?void 0:e.format)??"yyyy-MM-dd"):null}}}),FI=(e={decimal:!0})=>({align:"right",render:(t,n)=>BI.format(n,e),exportSettings:{value:(t,n)=>p.round(BI.parse(n),e.decimal?2:0).toString()}}),HI=(e={decimal:!0})=>({align:"right",render:(t,n)=>n?"x"+BI.format(n,e):"",exportSettings:{value:(e,t)=>p.round(BI.parse(t),2).toString()}}),qI=(e={decimal:!0})=>({align:"right",render:(t,n)=>BI.formatPercents(n,e),exportSettings:{value:(t,n)=>p.round(BI.parse(n),e.decimal?2:0).toString()}}),UI=e=>({align:"right",render:(t,n)=>BI.formatCurrency(n,e),exportSettings:{value:(e,t)=>p.round(BI.parse(t),2).toString()}}),VI=e=>{let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24);return("0000000"+(t>>>0).toString(16)).slice(-8)},XI=e=>{let t={};return"object"==typeof e?"number"===e.type?t=FI(e):"currency"===e.type?t=UI(e):"percent"===e.type?t=qI(e):"ratio"===e.type?t=HI(e):"date"===e.type&&(t=zI(e)):"number"===e?t=FI():"currency"===e?t=UI():"percent"===e?t=qI():"ratio"===e?t=HI():"date"===e&&(t=zI()),t},GI=e=>e===II||e===LI;const WI={resizable:!0,exportable:!0,sortable:!0,management:{show:!0}},JI=(e,t)=>({...WI,...XI((null==t?void 0:t.type)??e.type),...p.assignWith({},e,t,(e,t)=>void 0===t?e:t),computedWidth:null==t?void 0:t.computedWidth,setWidth:null==t?void 0:t.setWidth,get finalWidth(){return this.setWidth??this.computedWidth},get id(){return VI(this.field)}}),ZI=e=>({gridTemplateColumns:e.map(e=>`var(--col-${VI(e.field)})`).join(" "),"--col-count":e.length}),KI=({expanded:e,api:n,pinned:r})=>({id:II,field:II,width:40,headerStyle:{padding:0},cellStyle:{padding:0},pinned:r?"left":void 0,align:"center",exportable:!1,sortable:!1,resizable:!1,header:null,render:r=>{if(!Array.isArray(r.__children))return t.jsx(t.Fragment,{});const i=null==e?void 0:e.includes(r.id);return t.jsx(o.ActionIcon,{onClick:()=>n.toggleRowExpand(r.id),size:"xs",variant:"subtle",children:i?t.jsx(a.IconChevronDown,{size:16}):t.jsx(a.IconChevronRight,{size:16})})}}),YI=({selected:e,api:n,pinned:r})=>({id:LI,field:LI,width:40,headerStyle:{padding:0},cellStyle:{padding:0},pinned:r?"left":void 0,align:"center",exportable:!1,sortable:!1,resizable:!1,header:t.jsx(QI,{}),render:r=>{const i=e.includes(r.id);return t.jsx(o.Checkbox,{size:"xs",checked:i,onChange:()=>{i?n.unselectRow(r.id):n.selectRow(r.id)}})}}),QI=()=>{const{useStore:e,api:n}=DI(),{allSelected:r,hasSelected:i}=e(fN);return t.jsx(o.Checkbox,{size:"xs",checked:i,indeterminate:i&&!r,onChange:()=>{i?n.unselectVisibleRows():n.selectVisibleRows()}})},_I=(e,n,r)=>e.map(e=>{const{aggregation:i,field:o,type:a}=e;return{...e,render:()=>{var e;if(!i)return null;if(i.render)return t.jsx(eN,{children:null==(e=i.render)?void 0:e.call(i,r)});const s=p.get(n,o),l=XI(a);return l.render?t.jsx(eN,{children:l.render(n,s)}):"object"==typeof s?null:t.jsx(eN,{children:s})}}}),$I=(e,t)=>{const n=e.aggregation;if(!n)return null;if(n.render)return null;const r=t.map(t=>p.get(t,e.field)).map(BI.parse).filter(e=>!isNaN(e));if("sum"===n.type)return r.reduce((e,t)=>e+t,0);if("avg"===n.type)return r.reduce((e,t)=>e+t,0)/r.length;if("min"===n.type)return Math.min(...r);if("max"===n.type)return Math.max(...r);if("count"===n.type){return t.map(t=>p.get(t,e.field)).filter(e=>!p.isNil(e)).length}return null},eN=OI.div``,tN=[],nN=ra([e=>e.props.rows,e=>e.pinnedTop,e=>e.pinnedBottom],(e,t,n)=>{const r=[],i=[],o=[];for(const a of e)t.includes(a.id)?r.push(a):n.includes(a.id)?i.push(a):o.push(a);return{topRows:r,bottomRows:i,baseRows:o}}),rN=ra([nN,e=>e.search,e=>e.props.searching],({baseRows:e},t,n)=>{if(!n)return e;const r=t.trim().toLowerCase();if(!r)return e;return e.map(e=>({row:e,searchString:Object.values(e).filter(e=>"string"==typeof e).map(e=>e.trim().toLowerCase())})).filter(({searchString:e})=>e.some(e=>e.includes(r))).map(e=>e.row)}),iN=ra([rN,e=>e.props.sorting,e=>e.sort],(e,t,n)=>t&&n?e.toSorted((e,t)=>{const r="asc"===n.sort?e:t,i="asc"===n.sort?t:e,o=p.get(r,n.field),a=p.get(i,n.field);if(o===a)return 0;const s="asc"===n.sort?1:-1;return null==o&&null!=a?s:null==a&&null!=o?-s:"number"==typeof o&&"number"==typeof a?o-a:"bigint"==typeof o&&"bigint"==typeof a?Number(o-a):"boolean"==typeof o&&"boolean"==typeof a?Number(o)-Number(a):"string"==typeof o&&"string"==typeof a?o.localeCompare(a):"object"==typeof o&&"object"==typeof a?o instanceof Date&&a instanceof Date?o.getTime()-a.getTime():JSON.stringify(o).localeCompare(JSON.stringify(a)):0}):e),oN=ra([iN,e=>e.props.pagination,e=>e.expanded,e=>e.pageSize,e=>e.page],(e,t,n,r,i)=>{const o=p.chunk(e,r),a=t?o[i]||tN:e;const s={};return a.forEach(e=>{s[e.id]={main:!0}}),{rows:function e(t){return t.flatMap(t=>{const r=[t],i=t.__children;return n.includes(t.id)&&Array.isArray(i)&&i.length>0&&r.push(...e(i)),r})}(a),meta:s}}),aN=ra([e=>e.props.rowCount,iN,e=>e.pageSize],(e,t,n)=>{const r=e??t.length;return{pageCount:Math.ceil(r/n),rowCount:r}}),sN=ra([e=>e.props.selection,e=>e.selected,e=>e.props.expanding,e=>e.expanded,e=>e.props.columns,e=>e.columnsState,e=>e.api,e=>e.columnsOrder],(e,t,n,r,i,o,a,s)=>{const l=i.some(e=>"left"===e.pinned),c=[...new Set(s.filter(e=>!GI(e)))].map(e=>i.find(t=>t.field===e&&!t.ignoreOrder)).filter(Boolean),d=i.filter(e=>!c.find(t=>t.field===e.field));return[...e?[YI({selected:t,pinned:l,api:a})]:[],...n?[KI({expanded:r,pinned:l,api:a})]:[],...c,...d].map(e=>JI(e,o[e.field]))}),lN=ra([sN],e=>{const t=e.filter(e=>!e.hidden);return t.every(e=>GI(e.field))?[]:t}),cN=ra([lN],e=>({left:e.filter(e=>"left"===e.pinned),base:e.filter(e=>!e.pinned),right:e.filter(e=>"right"===e.pinned)})),dN=ra([sN],e=>e.reduce((e,t)=>(e[t.field]=t,e[VI(t.field)]=t,e),{})),uN=ra([lN,e=>e.props.rowHeight,e=>e.props.headerHeight],(e,t,n)=>({...e.reduce((e,t)=>("number"==typeof t.finalWidth&&(e[`--col-${t.id}`]=t.finalWidth+"px"),e),{}),"--left-cols-width":`${e.filter(e=>"left"===e.pinned).reduce((e,t)=>e+(t.finalWidth||0),0)}px`,"--base-cols-width":`${e.filter(e=>!e.pinned).reduce((e,t)=>e+(t.finalWidth||0),0)}px`,"--right-cols-width":`${e.filter(e=>"right"===e.pinned).reduce((e,t)=>e+(t.finalWidth||0),0)}px`,"--loader-offset":`${n}px`,"--row-height":`${t}px`,"--header-height":`${n}px`})),hN=ra([oN,lN,e=>e.props.loading,e=>e.search],({rows:e},t,n,r)=>({zeroRows:!n&&!e.length,zeroColumns:!t.length,hasSearch:!!r.trim()})),fN=ra([oN,e=>e.selected],({rows:e},t)=>({allSelected:e.every(e=>t.includes(e.id)),hasSelected:e.some(e=>t.includes(e.id))})),pN=ra([oN,cN],({rows:e},{base:t,left:n,right:r})=>{const i={id:NI};for(const o of n)p.set(i,o.field,$I(o,e));for(const o of t)p.set(i,o.field,$I(o,e));for(const o of r)p.set(i,o.field,$I(o,e));return{aggregatedRow:i,left:_I(n,i,e),base:_I(t,i,e),right:_I(r,i,e),get hasAggregation(){return this.left.some(e=>e.aggregation)||this.base.some(e=>e.aggregation)||this.right.some(e=>e.aggregation)}}}),mN=({column:e,sort:r,style:i})=>{const s=n.useRef(null),l=n.useMemo(()=>e.resizable?t.jsx(vN,{[PI.RESIZER_SIDE]:e.pinned,[PI.RESIZER]:VI(e.field),children:t.jsx(gN,{children:t.jsx("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",className:"resizeBtn",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M5.5 4.625C6.12132 4.625 6.625 4.12132 6.625 3.5C6.625 2.87868 6.12132 2.375 5.5 2.375C4.87868 2.375 4.375 2.87868 4.375 3.5C4.375 4.12132 4.87868 4.625 5.5 4.625ZM9.5 4.625C10.1213 4.625 10.625 4.12132 10.625 3.5C10.625 2.87868 10.1213 2.375 9.5 2.375C8.87868 2.375 8.375 2.87868 8.375 3.5C8.375 4.12132 8.87868 4.625 9.5 4.625ZM10.625 7.5C10.625 8.12132 10.1213 8.625 9.5 8.625C8.87868 8.625 8.375 8.12132 8.375 7.5C8.375 6.87868 8.87868 6.375 9.5 6.375C10.1213 6.375 10.625 6.87868 10.625 7.5ZM5.5 8.625C6.12132 8.625 6.625 8.12132 6.625 7.5C6.625 6.87868 6.12132 6.375 5.5 6.375C4.87868 6.375 4.375 6.87868 4.375 7.5C4.375 8.12132 4.87868 8.625 5.5 8.625ZM10.625 11.5C10.625 12.1213 10.1213 12.625 9.5 12.625C8.87868 12.625 8.375 12.1213 8.375 11.5C8.375 10.8787 8.87868 10.375 9.5 10.375C10.1213 10.375 10.625 10.8787 10.625 11.5ZM5.5 12.625C6.12132 12.625 6.625 12.1213 6.625 11.5C6.625 10.8787 6.12132 10.375 5.5 10.375C4.87868 10.375 4.375 10.8787 4.375 11.5C4.375 12.1213 4.87868 12.625 5.5 12.625Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})})}):null,[e.field,e.pinned,e.resizable]),c=e.sortField||e.field,d=(null==r?void 0:r.field)===c,u=n.useMemo(()=>e.sortable&&d?t.jsx(o.ActionIcon,{variant:"subtle",size:"sm",color:"gray",style:{flexShrink:0},children:"desc"===(null==r?void 0:r.sort)?t.jsx(a.IconSortDescending,{size:16}):t.jsx(a.IconSortAscending,{size:16})}):null,[e.sortable,null==r?void 0:r.sort,d]);return t.jsxs(bN,{[PI.COLUMN_ALIGN]:e.align,[PI.SORTABLE]:e.sortable,[PI.SORTED]:d,[PI.HEADER_CELL]:VI(e.field),style:{...e.headerStyle,...i},ref:s,children:["right"===e.pinned&&l,"right"===e.align&&u,t.jsx(yN,{style:e.headerContentStyle,children:e.header}),"right"!==e.align&&u,"right"!==e.pinned&&l]})},gN=OI.div`
|
|
7
7
|
user-select: none;
|
|
8
8
|
touch-action: none;
|
|
9
9
|
background-color: light-dark(
|