PageSourceSearch

https://artmedia.org.nz/v1.0.20_Live/js/index.Bf-ar2-7.js

js artmedia.org.nz collected 2026-10-10 02:26:47 UTC 1,319,001 bytes, 95 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["v1.0.20_Live/js/Home.DjyLTXTC.js","v1.0.20_Live/js/SignUpForm.BomvgZwn.js","v1.0.20_Live/css/SignUpForm.BAqUtqK7.css","v1.0.20_Live/js/SkeletonLoader.CXEVvgCk.js","v1.0.20_Live/css/SkeletonLoader.TbOe0lbJ.css","v1.0.20_Live/js/staticImageCollection.BXBKczNb.js","v1.0.20_Live/js/staticArticle.D7MUhs5f.js","v1.0.20_Live/js/FundersBanner.xuTVbhXA.js","v1.0.20_Live/css/FundersBanner.Cu0V_eqJ.css","v1.0.20_Live/css/Home.fLeqJc82.css","v1.0.20_Live/js/Programmes.DJsegNMN.js","v1.0.20_Live/js/Breadcrumbs.vue_vue_type_script_setup_true_lang.D_qNQ0cU.js","v1.0.20_Live/js/default-image.CxjXpfki.js","v1.0.20_Live/css/Programmes.Cus-4QFj.css","v1.0.20_Live/js/Schedule.BTS3FlEN.js","v1.0.20_Live/js/format.JGSAirAh.js","v1.0.20_Live/css/Schedule.DNd7VmPy.css","v1.0.20_Live/js/Programme.BvIskQRv.js","v1.0.20_Live/js/ErrorHandling.DYFv1IRu.js","v1.0.20_Live/css/ErrorHandling.DPQIWIi4.css","v1.0.20_Live/css/Programme.Gj-BUaDD.css","v1.0.20_Live/js/Episode.BDAcmefL.js","v1.0.20_Live/css/Episode.CPXdRiKY.css","v1.0.20_Live/js/WhoWeAre.2iqVk4nv.js","v1.0.20_Live/css/WhoWeAre.B7Q-Ub0q.css","v1.0.20_Live/js/OurFacilities.DSBf0UdV.js","v1.0.20_Live/js/MakeAShow.C6Wps89n.js","v1.0.20_Live/css/MakeAShow.Dojl4K_Y.css","v1.0.20_Live/js/SponsorAShow.DnxuZyld.js","v1.0.20_Live/js/Advertise.DJOFAYUT.js","v1.0.20_Live/css/Advertise.CG57bt9R.css","v1.0.20_Live/js/ShowMakerResources.Bmhn-2iY.js","v1.0.20_Live/js/Gallery.K3RXv2cu.js","v1.0.20_Live/css/Gallery.De7LWGUt.css","v1.0.20_Live/js/Contact.D4No6MAC.js","v1.0.20_Live/css/Contact.BQZ5xIsm.css","v1.0.20_Live/js/Search.BfSAFrB9.js","v1.0.20_Live/css/Search.Be4r1NVL.css","v1.0.20_Live/js/PrivacyPage.DR5jFcfH.js","v1.0.20_Live/js/TermsPage.MX1aQMHZ.js","v1.0.20_Live/js/Error.A-Kw3ZVP.js","v1.0.20_Live/css/Error.Bcm1mIKF.css"])))=>i.map(i=>d[i]);
2!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const e={},t=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let t=function(e){return Promise.all(e.map((e=>Promise.resolve(e).then((e=>({status:"fulfilled",value:e})),(e=>({status:"rejected",reason:e}))))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),r=i?.nonce||i?.getAttribute("nonce");s=t(n.map((t=>{if((t=function(e){return"/"+e}(t))in e)return;e[t]=!0;const n=t.endsWith(".css"),i=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${i}`))return;const s=document.createElement("link");return s.rel=n?"stylesheet":"modulepreload",n||(s.as="script"),s.crossOrigin="",s.href=t,r&&s.setAttribute("nonce",r),document.head.appendChild(s),n?new Promise(((e,n)=>{s.addEventListener("load",e),s.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}function r(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return s.then((e=>{for(const t of e||[])"rejected"===t.status&&r(t.reason);return t().catch(r)}))};0!=document.querySelectorAll(".input-group").length&&document.querySelectorAll("input.form-control").forEach((e=>function(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}(e,{onfocus:"focused(this)",onfocusout:"defocused(this)"})));window.onload=function(){for(var e=document.querySelectorAll(".btn"),t=0;t<e.length;t++)e[t].addEventListener("click",(function(e){var t=e.target,n=t.querySelector(".ripple");(n=document.createElement("span")).classList.add("ripple"),n.style.width=n.style.height=Math.max(t.offsetWidth,t.offsetHeight)+"px",t.appendChild(n),n.style.left=e.offsetX-n.offsetWidth/2+"px",n.style.top=e.offsetY-n.offsetHeight/2+"px",n.classList.add("ripple"),setTimeout((function(){n.parentElement.removeChild(n)}),600)}),!1)};const n={install(){}};
3/**
4* @vue/shared v3.5.13
5* (c) 2018-present Yuxi (Evan) You and Vue contributors
6* @license MIT
7**/
8/*! #__NO_SIDE_EFFECTS__ */function i(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const s={},r=[],a=()=>{},o=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),d=Object.assign,u=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,p=(e,t)=>h.call(e,t),f=Array.isArray,m=e=>"[object Map]"===C(e),g=e=>"[object Set]"===C(e),y=e=>"[object Date]"===C(e),v=e=>"[object RegExp]"===C(e),b=e=>"function"==typeof e,_=e=>"string"==typeof e,T=e=>"symbol"==typeof e,S=e=>null!==e&&"object"==typeof e,w=e=>(S(e)||b(e))&&b(e.then)&&b(e.catch),E=Object.prototype.toString,C=e=>E.call(e),x=e=>C(e).slice(8,-1),k=e=>"[object Object]"===C(e),I=e=>_(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=i("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),O=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},L=/-(\w)/g,N=O((e=>e.replace(L,((e,t)=>t?t.toUpperCase():"")))),D=/\B([A-Z])/g,M=O((e=>e.replace(D,"-$1").toLowerCase())),R=O((e=>e.charAt(0).toUpperCase()+e.slice(1))),B=O((e=>e?`on${R(e)}`:"")),U=(e,t)=>!Object.is(e,t),F=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},j=(e,t,n,i=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:i,value:n})},V=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$=e=>{const t=_(e)?Number(e):NaN;return isNaN(t)?e:t};let q;const H=()=>q||(q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),z=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;const G={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},W={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},X=i("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol"),K=X;function Y(e,t=0,n=e.length){if((t=Math.max(0,Math.min(t,e.length)))>(n=Math.max(0,Math.min(n,e.length))))return"";let i=e.split(/(\r?\n)/);const s=i.filter(((e,t)=>t%2==1));i=i.filter(((e,t)=>t%2==0));let r=0;const a=[];for(let o=0;o<i.length;o++)if(r+=i[o].length+(s[o]&&s[o].length||0),r>=t){for(let e=o-2;e<=o+2||n>r;e++){if(e<0||e>=i.length)continue;const l=e+1;a.push(`${l}${" ".repeat(Math.max(3-String(l).length,0))}|  ${i[e]}`);const c=i[e].length,d=s[e]&&s[e].length||0;if(e===o){const e=t-(r-(c+d)),i=Math.max(1,n>r?c-e:n-t);a.push("   |  "+" ".repeat(e)+"^".repeat(i))}else if(e>o){if(n>r){const e=Math.max(Math.min(n-r,c),1);a.push("   |  "+"^".repeat(e))}r+=c+d}}break}return a.join("\n")}function Q(e){if(f(e)){const t={};for(let n=0;n<e.length;
8n++){const i=e[n],s=_(i)?te(i):Q(i);if(s)for(const e in s)t[e]=s[e]}return t}if(_(e)||S(e))return e}const J=/;(?![^(]*\))/g,Z=/:([^]+)/,ee=/\/\*[^]*?\*\//g;function te(e){const t={};return e.replace(ee,"").split(J).forEach((e=>{if(e){const n=e.split(Z);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ne(e){let t="";if(_(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const i=ne(e[n]);i&&(t+=i+" ")}else if(S(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ie(e){if(!e)return null;let{class:t,style:n}=e;return t&&!_(t)&&(e.class=ne(t)),n&&(e.style=Q(n)),e}const se=i("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),re=i("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),ae=i("annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics"),oe=i("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr"),le="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ce=i(le),de=i(le+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function ue(e){return!!e||""===e}const he=/[>/="'\u0009\u000a\u000c\u0020]/,pe={};const fe=i("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),me=i("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radiu
8s,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),ge=i("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");const ye=/["'&<>]/;const ve=/^-?>|<!--|-->|--!>|<!-$/g;const be=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function _e(e,t){if(e===t)return!0;let n=y(e),i=y(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=T(e),i=T(t),n||i)return e===t;if(n=f(e),i=f(t),n||i)return!(!n||!i)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=_e(e[i],t[i]);return n}(e,t);
8if(n=S(e),i=S(t),n||i){if(!n||!i)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const i=e.hasOwnProperty(n),s=t.hasOwnProperty(n);if(i&&!s||!i&&s||!_e(e[n],t[n]))return!1}}return String(e)===String(t)}function Te(e,t){return e.findIndex((e=>_e(e,t)))}const Se=e=>!(!e||!0!==e.__v_isRef),we=e=>_(e)?e:null==e?"":f(e)||S(e)&&(e.toString===E||!b(e.toString))?Se(e)?we(e.value):JSON.stringify(e,Ee,2):String(e),Ee=(e,t)=>Se(t)?Ee(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],i)=>(e[Ce(t,i)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>Ce(e)))}:T(t)?Ce(t):!S(t)||f(t)||k(t)?t:String(t),Ce=(e,t="")=>{var n;return T(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},xe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:r,EMPTY_OBJ:s,NO:o,NOOP:a,PatchFlagNames:G,PatchFlags:{TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},ShapeFlags:{ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},SlotFlags:{STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},camelize:N,capitalize:R,cssVarNameEscapeSymbolsRE:be,def:j,escapeHtml:function(e){const t=""+e,n=ye.exec(t);if(!n)return t;let i,s,r="",a=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:i="&quot;";break;case 38:i="&amp;";break;case 39:i="&#39;";break;case 60:i="&lt;";break;case 62:i="&gt;";break;default:continue}a!==s&&(r+=t.slice(a,s)),a=s+1,r+=i}return a!==s?r+t.slice(a,s):r},escapeHtmlComment:function(e){return e.replace(ve,"")},extend:d,genCacheKey:function(e,t){return e+JSON.stringify(t,((e,t)=>"function"==typeof t?t.toString():t))},genPropsAccessExp:function(e){return z.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`},generateCodeFrame:Y,getEscapedCssVarName:function(e,t){return e.replace(be,(e=>t?'"'===e?'\\\\\\"':`\\\\${e}`:`\\${e}`))},getGlobalThis:H,hasChanged:U,hasOwn:p,hyphenate:M,includeBooleanAttr:ue,invokeArrayFns:F,isArray:f,isBooleanAttr:de,isBuiltInDirective:P,isDate:y,isFunction:b,isGloballyAllowed:X,isGloballyWhitelisted:K,isHTMLTag:se,isIntegerKey:I,isKnownHtmlAttr:fe,isKnownMathMLAttr:ge,isKnownSvgAttr:me,isMap:m,isMathMLTag:ae,isModelListener:c,isObject:S,isOn:l,isPlainObject:k,isPromise:w,isRegExp:v,isRenderableAttrValue:function(e){if(null==e)return!1;const t=typeof e;return"string"===t||"number"===t||"boolean"===t},isReservedProp:A,isSSRSafeAttrName:function(e){if(pe.hasOwnProperty(e))return pe[e];const t=he.test(e);return t&&console.error(`unsafe attribute name: ${e}`),pe[e]=!t},isSVGTag:re,isSet:g,isSpecialBooleanAttr:ce,isString:_,isSymbol:T,isVoidTag:oe,looseEqual:_e,looseIndexOf:Te,looseToNumber:V,makeMap:i,normalizeClass:ne,normalizeProps:ie,normalizeStyle:Q,objectToString:E,parseStringStyle:te,propsToAttrMap:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},remove:u,slotFlagsText:W,stringifyStyle:function(e){if(!e)return"";if(_(e))return e;let t="";for(const n in e){const i=e[n];if(_(i)||"number"==typeof i){t+=`${n.startsWith("--")?n:M(n)}:${i};`}}return t},toDisplayString:we,toHandlerKey:B,toNumber:$,toRawType:x,toTypeString:C},Symbol.toStringTag,{value:"Module"}));
9/**
10* @vue/reactivity v3.5.13
11* (c) 2018-present Yuxi (Evan) You and Vue contributors
12* @license MIT
13**/
14let ke,Ie;class Ae{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ke,!e&&ke&&(this.index=(ke.scopes||(ke.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=ke;try{return ke=this,e()}finally{ke=t}}}on(){ke=this}off(){ke=this.parent}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function Pe(e){return new Ae(e)}function Oe(){return ke}function Le(e,t=!1){ke&&ke.cleanups.push(e)}const Ne=new WeakSet;class De{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ke&&ke.active&&ke.effects.push(this)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,Ne.has(this)&&(Ne.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||Ue(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,Qe(this),Ve(this);const e=Ie,t=We;Ie=this,We=!0;try{return this.fn()}finally{$e(this),Ie=e,We=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)ze(e);this.deps=this.depsTail=void 0,Qe(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?Ne.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){qe(this)&&this.run()}get dirty(){return qe(this)}}let Me,Re,Be=0;function Ue(e,t=!1){if(e.flags|=8,t)return e.next=Re,void(Re=e);e.next=Me,Me=e}function Fe(){Be++}function je(){if(--Be>0)return;if(Re){let e=Re;for(Re=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Me;){let n=Me;for(Me=void 0;n;){const i=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=i}}if(e)throw e}function Ve(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function $e(e){let t,n=e.depsTail,i=n;for(;i;){const e=i.prevDep;-1===i.version?(i===n&&(n=e),ze(i),Ge(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=e}e.deps=t,e.depsTail=n}function qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(He(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function He(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===Je)return;e.globalVersion=Je;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!qe(e))return void(e.flags&=-3);const n=Ie,i=We;Ie=e,We=!0;try{Ve(e);const n=e.fn(e._value);(0===t.version||U(n,e._value))&&(e._value=n,t.version++)}catch(s){throw t.version++,s}finally{Ie=n,We=i,$e(e),e.flags&=-3}}function ze(e,t=!1){const{dep:n,prevSub:i,nextSub:s}=e;if(i&&(i.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=i,e.nextSub=void 0),n.subs===e&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)ze(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function Ge(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let We=!0;const Xe=[];function Ke(){Xe.push(We),We=!1}function Ye(){const e=Xe.pop();We=void 0===e||e}function Qe(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Ie;Ie=void 0;try{t()}finally{Ie=e}}}let Je=0;class Ze{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class et{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!Ie||!We||Ie===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Ie)t=this.activeLink=new Ze(Ie,this),Ie.deps?(t.prevDep=Ie.depsTail,Ie.depsTail.nextDep=t,Ie.depsTail=t):Ie.deps=Ie.depsTail=t,tt(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Ie.depsTail,t.nextDep=void 0,Ie.depsTail.nextDep=t,Ie.depsTail=t,Ie.deps===t&&(Ie.deps=e)}return t}
vendor: 5,423 bytes, line 14
14trigger(e){this.version++,Je++,this.notify(e)}notify(e){Fe();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{je()}}}function tt(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)tt(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const nt=new WeakMap,it=Symbol(""),st=Symbol(""),rt=Symbol("");function at(e,t,n){if(We&&Ie){let t=nt.get(e);t||nt.set(e,t=new Map);let i=t.get(n);i||(t.set(n,i=new et),i.map=t,i.key=n),i.track()}}function ot(e,t,n,i,s,r){const a=nt.get(e);if(!a)return void Je++;const o=e=>{e&&e.trigger()};if(Fe(),"clear"===t)a.forEach(o);else{const s=f(e),r=s&&I(n);if(s&&"length"===n){const e=Number(i);a.forEach(((t,n)=>{("length"===n||n===rt||!T(n)&&n>=e)&&o(t)}))}else switch((void 0!==n||a.has(void 0))&&o(a.get(n)),r&&o(a.get(rt)),t){case"add":s?r&&o(a.get("length")):(o(a.get(it)),m(e)&&o(a.get(st)));break;case"delete":s||(o(a.get(it)),m(e)&&o(a.get(st)));break;case"set":m(e)&&o(a.get(it))}}je()}function lt(e){const t=Kt(e);return t===e?t:(at(t,0,rt),Wt(e)?t:t.map(Qt))}function ct(e){return at(e=Kt(e),0,rt),e}const dt={__proto__:null,[Symbol.iterator](){return ut(this,Symbol.iterator,Qt)},concat(...e){return lt(this).concat(...e.map((e=>f(e)?lt(e):e)))},entries(){return ut(this,"entries",(e=>(e[1]=Qt(e[1]),e)))},every(e,t){return pt(this,"every",e,t,void 0,arguments)},filter(e,t){return pt(this,"filter",e,t,(e=>e.map(Qt)),arguments)},find(e,t){return pt(this,"find",e,t,Qt,arguments)},findIndex(e,t){return pt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return pt(this,"findLast",e,t,Qt,arguments)},findLastIndex(e,t){return pt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return pt(this,"forEach",e,t,void 0,arguments)},includes(...e){return mt(this,"includes",e)},indexOf(...e){return mt(this,"indexOf",e)},join(e){return lt(this).join(e)},lastIndexOf(...e){return mt(this,"lastIndexOf",e)},map(e,t){return pt(this,"map",e,t,void 0,arguments)},pop(){return gt(this,"pop")},push(...e){return gt(this,"push",e)},reduce(e,...t){return ft(this,"reduce",e,t)},reduceRight(e,...t){return ft(this,"reduceRight",e,t)},shift(){return gt(this,"shift")},some(e,t){return pt(this,"some",e,t,void 0,arguments)},splice(...e){return gt(this,"splice",e)},toReversed(){return lt(this).toReversed()},toSorted(e){return lt(this).toSorted(e)},toSpliced(...e){return lt(this).toSpliced(...e)},unshift(...e){return gt(this,"unshift",e)},values(){return ut(this,"values",Qt)}};function ut(e,t,n){const i=ct(e),s=i[t]();return i===e||Wt(e)||(s._next=s.next,s.next=()=>{const e=s._next();return e.value&&(e.value=n(e.value)),e}),s}const ht=Array.prototype;function pt(e,t,n,i,s,r){const a=ct(e),o=a!==e&&!Wt(e),l=a[t];if(l!==ht[t]){const t=l.apply(e,r);return o?Qt(t):t}let c=n;a!==e&&(o?c=function(t,i){return n.call(this,Qt(t),i,e)}:n.length>2&&(c=function(t,i){return n.call(this,t,i,e)}));const d=l.call(a,c,i);return o&&s?s(d):d}function ft(e,t,n,i){const s=ct(e);let r=n;return s!==e&&(Wt(e)?n.length>3&&(r=function(t,i,s){return n.call(this,t,i,s,e)}):r=function(t,i,s){return n.call(this,t,Qt(i),s,e)}),s[t](r,...i)}function mt(e,t,n){const i=Kt(e);at(i,0,rt);const s=i[t](...n);return-1!==s&&!1!==s||!Xt(n[0])?s:(n[0]=Kt(n[0]),i[t](...n))}function gt(e,t,n=[]){Ke(),Fe();const i=Kt(e)[t].apply(e,n);return je(),Ye(),i}const yt=i("__proto__,__v_isRef,__isVue"),vt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(T));function bt(e){T(e)||(e=String(e));const t=Kt(this);return at(t,0,e),t.hasOwnProperty(e)}class _t{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const i=this._isReadonly,s=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return s;if("__v_raw"===t)return n===(i?s?Ft:Ut:s?Bt:Rt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=f(e);if(!i){let e;if(r&&(e=dt[t]))return e;if("hasOwnProperty"===t)return bt}const a=Reflect.get(e,t,Zt(e)?e:n);return(T(t)?vt.has(t):yt(t))?a:(i||at(e,0,t),s?a:Zt(a)?r&&I(t)?a:a.value:S(a)?i?$t(a):jt(a):a)}}class Tt extends _t{constructor(e=!1){super(!1,e)}set(e,t,n,i){let s=e[t];if(!this._isShallow){const t=Gt(s);if(Wt(n)||Gt(n)||(s=Kt(s),n=Kt(n)),!f(e)&&Zt(s)&&!Zt(n))return!t&&(s.value=n,!0)}const r=f(e)&&I(t)?Number(t)<e.length:p(e,t),a=Reflect.set(e,t,n,Zt(e)?e:i);return e===Kt(i)&&(r?U(n,s)&&ot(e,"set",t,n):ot(e,"add",t,n)),a}deleteProperty(e,t){const n=p(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&ot(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return T(t)&&vt.has(t)||at(e,0,t),n}ownKeys(e){return at(e,0,f(e)?"length":it),Reflect.ownKeys(e)}}class St extends _t{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const wt=new Tt,Et=new St,Ct=new Tt(!0),xt=new St(!0),kt=e=>e,It=e=>Reflect.getPrototypeOf(e);function At(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Pt(e,t){const n={get(n){const i=this.__v_raw,s=Kt(i),r=Kt(n);e||(U(n,r)&&at(s,0,n),at(s,0,r));const{has:a}=It(s),o=t?kt:e?Jt:Qt;return a.call(s,n)?o(i.get(n)):a.call(s,r)?o(i.get(r)):void(i!==s&&i.get(n))},get size(){const t=this.__v_raw;return!e&&at(Kt(t),0,it),Reflect.get(t,"size",t)},has(t){const n=this.__v_raw,i=Kt(n),s=Kt(t);
14return e||(U(t,s)&&at(i,0,t),at(i,0,s)),t===s?n.has(t):n.has(t)||n.has(s)},forEach(n,i){const s=this,r=s.__v_raw,a=Kt(r),o=t?kt:e?Jt:Qt;return!e&&at(a,0,it),r.forEach(((e,t)=>n.call(i,o(e),o(t),s)))}};d(n,e?{add:At("add"),set:At("set"),delete:At("delete"),clear:At("clear")}:{add(e){t||Wt(e)||Gt(e)||(e=Kt(e));const n=Kt(this);return It(n).has.call(n,e)||(n.add(e),ot(n,"add",e,e)),this},set(e,n){t||Wt(n)||Gt(n)||(n=Kt(n));const i=Kt(this),{has:s,get:r}=It(i);let a=s.call(i,e);a||(e=Kt(e),a=s.call(i,e));const o=r.call(i,e);return i.set(e,n),a?U(n,o)&&ot(i,"set",e,n):ot(i,"add",e,n),this},delete(e){const t=Kt(this),{has:n,get:i}=It(t);let s=n.call(t,e);s||(e=Kt(e),s=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return s&&ot(t,"delete",e,void 0),r},clear(){const e=Kt(this),t=0!==e.size,n=e.clear();return t&&ot(e,"clear",void 0,void 0),n}});return["keys","values","entries",Symbol.iterator].forEach((i=>{n[i]=function(e,t,n){return function(...i){const s=this.__v_raw,r=Kt(s),a=m(r),o="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=s[e](...i),d=n?kt:t?Jt:Qt;return!t&&at(r,0,l?st:it),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:o?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}(i,e,t)})),n}function Ot(e,t){const n=Pt(e,t);return(t,i,s)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(p(n,i)&&i in t?n:t,i,s)}const Lt={get:Ot(!1,!1)},Nt={get:Ot(!1,!0)},Dt={get:Ot(!0,!1)},Mt={get:Ot(!0,!0)},Rt=new WeakMap,Bt=new WeakMap,Ut=new WeakMap,Ft=new WeakMap;function jt(e){return Gt(e)?e:Ht(e,!1,wt,Lt,Rt)}function Vt(e){return Ht(e,!1,Ct,Nt,Bt)}function $t(e){return Ht(e,!0,Et,Dt,Ut)}function qt(e){return Ht(e,!0,xt,Mt,Ft)}function Ht(e,t,n,i,s){if(!S(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const r=s.get(e);if(r)return r;const a=(o=e).__v_skip||!Object.isExtensible(o)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(x(o));var o;if(0===a)return e;const l=new Proxy(e,2===a?i:n);return s.set(e,l),l}function zt(e){return Gt(e)?zt(e.__v_raw):!(!e||!e.__v_isReactive)}function Gt(e){return!(!e||!e.__v_isReadonly)}function Wt(e){return!(!e||!e.__v_isShallow)}function Xt(e){return!!e&&!!e.__v_raw}function Kt(e){const t=e&&e.__v_raw;return t?Kt(t):e}function Yt(e){return!p(e,"__v_skip")&&Object.isExtensible(e)&&j(e,"__v_skip",!0),e}const Qt=e=>S(e)?jt(e):e,Jt=e=>S(e)?$t(e):e;function Zt(e){return!!e&&!0===e.__v_isRef}function en(e){return nn(e,!1)}function tn(e){return nn(e,!0)}function nn(e,t){return Zt(e)?e:new sn(e,t)}class sn{constructor(e,t){this.dep=new et,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:Kt(e),this._value=t?e:Qt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this.__v_isShallow||Wt(e)||Gt(e);e=n?e:Kt(e),U(e,t)&&(this._rawValue=e,this._value=n?e:Qt(e),this.dep.trigger())}}function rn(e){return Zt(e)?e.value:e}const an={get:(e,t,n)=>"__v_raw"===t?e:rn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const s=e[t];return Zt(s)&&!Zt(n)?(s.value=n,!0):Reflect.set(e,t,n,i)}};function on(e){return zt(e)?e:new Proxy(e,an)}class ln{constructor(e){this.__v_isRef=!0,this._value=void 0;const t=this.dep=new et,{get:n,set:i}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(e){this._set(e)}}function cn(e){return new ln(e)}function dn(e){const t=f(e)?new Array(e.length):{};for(const n in e)t[n]=fn(e,n);return t}class un{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const e=this._object[this._key];return this._value=void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){const n=nt.get(e);return n&&n.get(t)}(Kt(this._object),this._key)}}class hn{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function pn(e,t,n){return Zt(e)?e:b(e)?new hn(e):S(e)&&arguments.length>1?fn(e,t,n):en(e)}function fn(e,t,n){const i=e[t];
14return Zt(i)?i:new un(e,t,n)}class mn{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new et(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Je-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags)&&Ie!==this)return Ue(this,!0),!0}get value(){const e=this.dep.track();return He(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}const gn={},yn=new WeakMap;let vn;function bn(e,t=!1,n=vn){if(n){let t=yn.get(n);t||yn.set(n,t=[]),t.push(e)}}function _n(e,t=1/0,n){if(t<=0||!S(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,Zt(e))_n(e.value,t,n);else if(f(e))for(let i=0;i<e.length;i++)_n(e[i],t,n);else if(g(e)||m(e))e.forEach((e=>{_n(e,t,n)}));else if(k(e)){for(const i in e)_n(e[i],t,n);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&_n(e[i],t,n)}return e}
15/**
16* @vue/runtime-core v3.5.13
17* (c) 2018-present Yuxi (Evan) You and Vue contributors
18* @license MIT
19**/const Tn=[];const Sn={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function wn(e,t,n,i){try{return i?e(...i):e()}catch(s){Cn(s,t,n)}}function En(e,t,n,i){if(b(e)){const s=wn(e,t,n,i);return s&&w(s)&&s.catch((e=>{Cn(e,t,n)})),s}if(f(e)){const s=[];for(let r=0;r<e.length;r++)s.push(En(e[r],t,n,i));return s}}function Cn(e,t,n,i=!0){t&&t.vnode;const{errorHandler:r,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||s;if(t){let i=t.parent;const s=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,s,a))return;i=i.parent}if(r)return Ke(),wn(r,null,10,[e,s,a]),void Ye()}!function(e,t,n,i=!0,s=!1){if(s)throw e;console.error(e)}(e,0,0,i,a)}const xn=[];let kn=-1;const In=[];let An=null,Pn=0;const On=Promise.resolve();let Ln=null;function Nn(e){const t=Ln||On;return e?t.then(this?e.bind(this):e):t}function Dn(e){if(!(1&e.flags)){const t=Fn(e),n=xn[xn.length-1];!n||!(2&e.flags)&&t>=Fn(n)?xn.push(e):xn.splice(function(e){let t=kn+1,n=xn.length;for(;t<n;){const i=t+n>>>1,s=xn[i],r=Fn(s);r<e||r===e&&2&s.flags?t=i+1:n=i}return t}(t),0,e),e.flags|=1,Mn()}}function Mn(){Ln||(Ln=On.then(jn))}function Rn(e){f(e)?In.push(...e):An&&-1===e.id?An.splice(Pn+1,0,e):1&e.flags||(In.push(e),e.flags|=1),Mn()}function Bn(e,t,n=kn+1){for(;n<xn.length;n++){const t=xn[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;xn.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function Un(e){if(In.length){const e=[...new Set(In)].sort(((e,t)=>Fn(e)-Fn(t)));if(In.length=0,An)return void An.push(...e);for(An=e,Pn=0;Pn<An.length;Pn++){const e=An[Pn];4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}An=null,Pn=0}}const Fn=e=>null==e.id?2&e.flags?-1:1/0:e.id;function jn(e){try{for(kn=0;kn<xn.length;kn++){const e=xn[kn];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),wn(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;kn<xn.length;kn++){const e=xn[kn];e&&(e.flags&=-2)}kn=-1,xn.length=0,Un(),Ln=null,(xn.length||In.length)&&jn()}}let Vn,$n=[];let qn=null,Hn=null;function zn(e){const t=qn;return qn=e,Hn=e&&e.type.__scopeId||null,t}function Gn(e,t=qn,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&Hr(-1);const s=zn(t);let r;try{r=e(...n)}finally{zn(s),i._d&&Hr(1)}return r};return i._n=!0,i._c=!0,i._d=!0,i}function Wn(e,t){if(null===qn)return e;const n=Ia(qn),i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[e,a,o,l=s]=t[r];e&&(b(e)&&(e={mounted:e,updated:e}),e.deep&&_n(a),i.push({dir:e,instance:n,value:a,oldValue:void 0,arg:o,modifiers:l}))}return e}function Xn(e,t,n,i){const s=e.dirs,r=t&&t.dirs;for(let a=0;a<s.length;a++){const o=s[a];r&&(o.oldValue=r[a].value);let l=o.dir[i];l&&(Ke(),En(l,n,8,[e.el,o,e,t]),Ye())}}const Kn=Symbol("_vte"),Yn=e=>e.__isTeleport,Qn=e=>e&&(e.disabled||""===e.disabled),Jn=e=>e&&(e.defer||""===e.defer),Zn=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,ei=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,ti=(e,t)=>{const n=e&&e.to;if(_(n)){if(t){return t(n)}return null}return n},ni={name:"Teleport",__isTeleport:!0,process(e,t,n,i,s,r,a,o,l,c){const{mc:d,pc:u,pbc:h,o:{insert:p,querySelector:f,createText:m,createComment:g}}=c,y=Qn(t.props);let{shapeFlag:v,children:b,dynamicChildren:_}=t;if(null==e){const e=t.el=m(""),c=t.anchor=m("");p(e,n,i),p(c,n,i);const u=(e,t)=>{16&v&&(s&&s.isCE&&(s.ce._teleportTarget=e),d(b,e,t,s,r,a,o,l))},h=()=>{const e=t.target=ti(t.props,f),n=ai(e,t,m,p);e&&("svg"!==a&&Zn(e)?a="svg":"mathml"!==a&&ei(e)&&(a="mathml"),y||(u(e,n),ri(t,!1)))};y&&(u(n,c),ri(t,!0)),Jn(t.props)?Zs((()=>{h(),t.el.__isMounted=!0}),r):h()}else{if(Jn(t.props)&&!e.el.__isMounted)return void Zs((()=>{ni.process(e,t,n,i,s,r,a,o,l,c),delete e.el.__isMounted}),r);t.el=e.el,t.targetStart=e.targetStart;const d=t.anchor=e.anchor,p=t.target=e.target,m=t.targetAnchor=e.targetAnchor,g=Qn(e.props),v=g?n:p,b=g?d:m;if("svg"===a||Zn(p)?a="svg":("mathml"===a||ei(p))&&(a="mathml"),_?(h(e.dynamicChildren,_,v,s,r,a,o),ar(e,t,!0)):l||u(e,t,v,b,s,r,a,o,!1),y)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ii(t,n,d,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=ti(t.props,f);e&&ii(t,e,null,c,0)}else g&&ii(t,p,m,c,1);ri(t,y)}},remove(e,t,n,{um:i,o:{remove:s}},r){const{shapeFlag:a,children:o,anchor:l,targetStart:c,targetAnchor:d,target:u,props:h}=e;if(u&&(s(c),s(d)),r&&s(l),16&a){const e=r||!Qn(h);for(let s=0;s<o.length;s++){const r=o[s];i(r,t,n,e,!!r.dynamicChildren)}}},move:ii,hydrate:function(e,t,n,i,s,r,{o:{nextSibling:a,parentNode:o,querySelector:l,insert:c,createText:d}},u){const h=t.target=ti(t.props,l);if(h){const l=Qn(t.props),p=h._lpa||h.firstChild;if(16&t.shapeFlag)if(l)t.anchor=u(a(e),t,o(e),n,i,s,r),t.targetStart=p,t.targetAnchor=p&&a(p);else{t.anchor=a(e);let o=p;for(;o;){if(o&&8===o.nodeType)if("teleport start anchor"===o.data)t.targetStart=o;else if("teleport anchor"===o.data){t.targetAnchor=o,h._lpa=t.targetAnchor&&a(t.targetAnchor);break}o=a(o)}t.targetAnchor||ai(h,t,d,c),u(p&&a(p),t,h,n,i,s,r)}ri(t,l)}return t.anchor&&a(t.anchor)}};function ii(e,t,n,{o:{insert:i},m:s},r=2){0===r&&i(e.targetAnchor,t,n);const{el:a,anchor:o,shapeFlag:l,children:c,props:d}=e,u=2===r;if(u&&i(a,t,n),(!u||Qn(d))&&16&l)for(let h=0;h<c.length;h++)s(c[h],t,n,2);u&&i(o,t,n)}const si=ni;function ri(e,t){const n=e.ctx;if(n&&n.ut){let i,s;for(t?(i=e.el,s=e.anchor):(i=e.targetStart,s=e.targetAnchor);i&&i!==s;)1===i.nodeType&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function ai(e,t,n,i){const s=t.targetStart=n(""),r=t.targetAnchor=n("");return s[Kn]=r,e&&(i(s,e),i(r,e)),r}const oi=Symbol("_leaveCb"),li=Symbol("_enterCb");function ci(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
vendor: 3,670 bytes, lines 19-20
19ingVNodes:new Map};return Yi((()=>{e.isMounted=!0})),Zi((()=>{e.isUnmounting=!0})),e}const di=[Function,Array],ui={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:di,onEnter:di,onAfterEnter:di,onEnterCancelled:di,onBeforeLeave:di,onLeave:di,onAfterLeave:di,onLeaveCancelled:di,onBeforeAppear:di,onAppear:di,onAfterAppear:di,onAppearCancelled:di},hi=e=>{const t=e.subTree;return t.component?hi(t.component):t},pi={name:"BaseTransition",props:ui,setup(e,{slots:t}){const n=fa(),i=ci();return()=>{const s=t.default&&Ti(t.default(),!0);if(!s||!s.length)return;const r=fi(s),a=Kt(e),{mode:o}=a;if(i.isLeaving)return vi(r);const l=bi(r);if(!l)return vi(r);let c=yi(l,a,i,n,(e=>c=e));l.type!==Br&&_i(l,c);let d=n.subTree&&bi(n.subTree);if(d&&d.type!==Br&&!Kr(l,d)&&hi(n).type!==Br){let e=yi(d,a,i,n);if(_i(d,e),"out-in"===o&&l.type!==Br)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},vi(r);"in-out"===o&&l.type!==Br?e.delayLeave=(e,t,n)=>{gi(i,d)[String(d.key)]=d,e[oi]=()=>{t(),e[oi]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function fi(e){let t=e[0];if(e.length>1)for(const n of e)if(n.type!==Br){t=n;break}return t}const mi=pi;function gi(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function yi(e,t,n,i,s){const{appear:r,mode:a,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:h,onLeave:p,onAfterLeave:m,onLeaveCancelled:g,onBeforeAppear:y,onAppear:v,onAfterAppear:b,onAppearCancelled:_}=t,T=String(e.key),S=gi(n,e),w=(e,t)=>{e&&En(e,i,9,t)},E=(e,t)=>{const n=t[1];w(e,t),f(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},C={mode:a,persisted:o,beforeEnter(t){let i=l;if(!n.isMounted){if(!r)return;i=y||l}t[oi]&&t[oi](!0);const s=S[T];s&&Kr(e,s)&&s.el[oi]&&s.el[oi](),w(i,[t])},enter(e){let t=c,i=d,s=u;if(!n.isMounted){if(!r)return;t=v||c,i=b||d,s=_||u}let a=!1;const o=e[li]=t=>{a||(a=!0,w(t?s:i,[e]),C.delayedLeave&&C.delayedLeave(),e[li]=void 0)};t?E(t,[e,o]):o()},leave(t,i){const s=String(e.key);if(t[li]&&t[li](!0),n.isUnmounting)return i();w(h,[t]);let r=!1;const a=t[oi]=n=>{r||(r=!0,i(),w(n?g:m,[t]),t[oi]=void 0,S[s]===e&&delete S[s])};S[s]=e,p?E(p,[t,a]):a()},clone(e){const r=yi(e,t,n,i,s);return s&&s(r),r}};return C}function vi(e){if(Bi(e))return(e=ta(e)).children=null,e}function bi(e){if(!Bi(e))return Yn(e.type)&&e.children?fi(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&b(n.default))return n.default()}}function _i(e,t){6&e.shapeFlag&&e.component?(e.transition=t,_i(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ti(e,t=!1,n){let i=[],s=0;for(let r=0;r<e.length;r++){let a=e[r];const o=null==n?a.key:String(n)+String(null!=a.key?a.key:r);a.type===Mr?(128&a.patchFlag&&s++,i=i.concat(Ti(a.children,t,o))):(t||a.type!==Br)&&i.push(null!=o?ta(a,{key:o}):a)}if(s>1)for(let r=0;r<i.length;r++)i[r].patchFlag=-2;return i}
20/*! #__NO_SIDE_EFFECTS__ */function Si(e,t){return b(e)?(()=>d({name:e.name},t,{setup:e}))():e}function wi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ei(e,t,n,i,r=!1){if(f(e))return void e.forEach(((e,s)=>Ei(e,t&&(f(t)?t[s]:t),n,i,r)));if(Mi(i)&&!r)return void(512&i.shapeFlag&&i.type.__asyncResolved&&i.component.subTree.component&&Ei(e,t,n,i.component.subTree));const a=4&i.shapeFlag?Ia(i.component):i.el,o=r?null:a,{i:l,r:c}=e,d=t&&t.r,h=l.refs===s?l.refs={}:l.refs,m=l.setupState,g=Kt(m),y=m===s?()=>!1:e=>p(g,e);
20if(null!=d&&d!==c&&(_(d)?(h[d]=null,y(d)&&(m[d]=null)):Zt(d)&&(d.value=null)),b(c))wn(c,l,12,[o,h]);else{const t=_(c),i=Zt(c);if(t||i){const s=()=>{if(e.f){const n=t?y(c)?m[c]:h[c]:c.value;r?f(n)&&u(n,a):f(n)?n.includes(a)||n.push(a):t?(h[c]=[a],y(c)&&(m[c]=h[c])):(c.value=[a],e.k&&(h[e.k]=c.value))}else t?(h[c]=o,y(c)&&(m[c]=o)):i&&(c.value=o,e.k&&(h[e.k]=o))};o?(s.id=-1,Zs(s,n)):s()}}}let Ci=!1;const xi=()=>{Ci||(console.error("Hydration completed but contains mismatches."),Ci=!0)},ki=e=>{if(1===e.nodeType)return(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0},Ii=e=>8===e.nodeType;function Ai(e){const{mt:t,p:n,o:{patchProp:i,createText:s,nextSibling:r,parentNode:a,remove:o,insert:c,createComment:d}}=e,u=(n,i,o,l,d,b=!1)=>{b=b||!!i.dynamicChildren;const _=Ii(n)&&"["===n.data,T=()=>m(n,i,o,l,d,_),{type:S,ref:w,shapeFlag:E,patchFlag:C}=i;let x=n.nodeType;i.el=n,-2===C&&(b=!1,i.dynamicChildren=null);let k=null;switch(S){case Rr:3!==x?""===i.children?(c(i.el=s(""),a(n),n),k=n):k=T():(n.data!==i.children&&(xi(),n.data=i.children),k=r(n));break;case Br:v(n)?(k=r(n),y(i.el=n.content.firstChild,n,o)):k=8!==x||_?T():r(n);break;case Ur:if(_&&(x=(n=r(n)).nodeType),1===x||3===x){k=n;const e=!i.children.length;for(let t=0;t<i.staticCount;t++)e&&(i.children+=1===k.nodeType?k.outerHTML:k.data),t===i.staticCount-1&&(i.anchor=k),
20k=r(k);return _?r(k):k}T();break;case Mr:k=_?f(n,i,o,l,d,b):T();break;default:if(1&E)k=1===x&&i.type.toLowerCase()===n.tagName.toLowerCase()||v(n)?h(n,i,o,l,d,b):T();else if(6&E){i.slotScopeIds=d;const e=a(n);if(k=_?g(n):Ii(n)&&"teleport start"===n.data?g(n,n.data,"teleport end"):r(n),t(i,e,null,o,l,ki(e),b),Mi(i)&&!i.type.__asyncResolved){let t;_?(t=Zr(Mr),t.anchor=k?k.previousSibling:e.lastChild):t=3===n.nodeType?na(""):Zr("div"),t.el=n,i.component.subTree=t}}else 64&E?k=8!==x?T():i.type.hydrate(n,i,o,l,d,b,e,p):128&E&&(k=i.type.hydrate(n,i,o,l,ki(a(n)),d,b,e,u))}return null!=w&&Ei(w,null,l,i),k},h=(e,t,n,s,r,a)=>{a=a||!!t.dynamicChildren;const{type:c,props:d,patchFlag:u,shapeFlag:h,dirs:f,transition:m}=t,g="input"===c||"option"===c;if(g||-1!==u){f&&Xn(t,null,n,"created");let c,b=!1;if(v(e)){b=rr(null,m)&&n&&n.vnode.props&&n.vnode.props.appear;const i=e.content.firstChild;b&&m.beforeEnter(i),y(i,e,n),t.el=e=i}if(16&h&&(!d||!d.innerHTML&&!d.textContent)){let i=p(e.firstChild,t,e,n,s,r,a);for(;i;){Li(e,1)||xi();const t=i;i=i.nextSibling,o(t)}}else if(8&h){let n=t.children;"\n"!==n[0]||"PRE"!==e.tagName&&"TEXTAREA"!==e.tagName||(n=n.slice(1)),e.textContent!==n&&(Li(e,0)||xi(),e.textContent=t.children)}if(d)if(g||!a||48&u){const t=e.tagName.includes("-");for(const s in d)(g&&(s.endsWith("value")||"indeterminate"===s)||l(s)&&!A(s)||"."===s[0]||t)&&i(e,s,null,d[s],void 0,n)}else if(d.onClick)i(e,"onClick",null,d.onClick,void 0,n);else if(4&u&&zt(d.style))for(const e in d.style)d.style[e];(c=d&&d.onVnodeBeforeMount)&&ca(c,n,t),f&&Xn(t,null,n,"beforeMount"),((c=d&&d.onVnodeMounted)||f||b)&&Nr((()=>{c&&ca(c,n,t),b&&m.enter(e),f&&Xn(t,null,n,"mounted")}),s)}return e.nextSibling},p=(e,t,i,a,o,l,d)=>{d=d||!!t.dynamicChildren;const h=t.children,p=h.length;for(let f=0;f<p;f++){const t=d?h[f]:h[f]=ra(h[f]),m=t.type===Rr;e?(m&&!d&&f+1<p&&ra(h[f+1]).type===Rr&&(c(s(e.data.slice(t.children.length)),i,r(e)),e.data=t.children),e=u(e,t,a,o,l,d)):m&&!t.children?c(t.el=s(""),i):(Li(i,1)||xi(),n(null,t,i,null,a,o,ki(i),l))}return e},f=(e,t,n,i,s,o)=>{const{slotScopeIds:l}=t;l&&(s=s?s.concat(l):l);const u=a(e),h=p(r(e),t,u,n,i,s,o);return h&&Ii(h)&&"]"===h.data?r(t.anchor=h):(xi(),c(t.anchor=d("]"),u,h),h)},m=(e,t,i,s,l,c)=>{if(Li(e.parentElement,1)||xi(),t.el=null,c){const t=g(e);for(;;){const n=r(e);if(!n||n===t)break;o(n)}}const d=r(e),u=a(e);return o(e),n(null,t,u,d,i,s,ki(u),l),i&&(i.vnode.el=t.el,Cr(i,t.el)),d},g=(e,t="[",n="]")=>{let i=0;for(;e;)if((e=r(e))&&Ii(e)&&(e.data===t&&i++,e.data===n)){if(0===i)return r(e);i--}return e},y=(e,t,n)=>{const i=t.parentNode;i&&i.replaceChild(e,t);let s=n;for(;s;)s.vnode.el===t&&(s.vnode.el=s.subTree.el=e),s=s.parent},v=e=>1===e.nodeType&&"TEMPLATE"===e.tagName;return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),Un(),void(t._vnode=e);u(t.firstChild,e,null,null,null),Un(),t._vnode=e},u]}const Pi="data-allow-mismatch",Oi={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Li(e,t){if(0===t||1===t)for(;e&&!e.hasAttribute(Pi);)e=e.parentElement;const n=e&&e.getAttribute(Pi);if(null==n)return!1;if(""===n)return!0;{const e=n.split(",");return!(0!==t||!e.includes("children"))||n.split(",").includes(Oi[t])}}const Ni=H().requestIdleCallback||(e=>setTimeout(e,1)),Di=H().cancelIdleCallback||(e=>clearTimeout(e));const Mi=e=>!!e.type.__asyncLoader
21/*! #__NO_SIDE_EFFECTS__ */;function Ri(e,t){const{ref:n,props:i,children:s,ce:r}=t.vnode,a=Zr(e,i,s);return a.ref=n,a.ce=r,delete t.vnode.ce,a}const Bi=e=>e.type.__isKeepAlive,Ui={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=fa(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const s=new Map,r=new Set;let a=null;const o=n.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:u}}}=i,h=u("div");function p(e){zi(e),d(e,n,o,!0)}function f(e){s.forEach(((t,n)=>{const i=Aa(t.type);i&&!e(i)&&m(n)}))}function m(e){const t=s.get(e);!t||a&&Kr(t,a)?a&&zi(a):p(t),s.delete(e),r.delete(e)}i.activate=(e,t,n,i,s)=>{const r=e.component;c(e,t,n,0,o),l(r.vnode,e,t,n,r,o,i,e.slotScopeIds,s),Zs((()=>{r.isDeactivated=!1,r.a&&F(r.a);const t=e.props&&e.props.onVnodeMounted;t&&ca(t,r.parent,e)}),o)},i.deactivate=e=>{const t=e.component;lr(t.m),lr(t.a),c(e,h,null,1,o),Zs((()=>{t.da&&F(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ca(n,t.parent,e),t.isDeactivated=!0}),o)},pr((()=>[e.include,e.exclude]),(([e,t])=>{e&&f((t=>ji(e,t))),t&&f((e=>!ji(t,e)))}),{flush:"post",deep:!0});let g=null;const y=()=>{null!=g&&(xr(n.subTree.type)?Zs((()=>{s.set(g,Gi(n.subTree))}),n.subTree.suspense):s.set(g,Gi(n.subTree)))};return Yi(y),Ji(y),Zi((()=>
21{s.forEach((e=>{const{subTree:t,suspense:i}=n,s=Gi(t);if(e.type!==s.type||e.key!==s.key)p(e);else{zi(s);const e=s.component.da;e&&Zs(e,i)}}))})),()=>{if(g=null,!t.default)return a=null;const n=t.default(),i=n[0];if(n.length>1)return a=null,n;if(!(Xr(i)&&(4&i.shapeFlag||128&i.shapeFlag)))return a=null,i;let o=Gi(i);if(o.type===Br)return a=null,o;const l=o.type,c=Aa(Mi(o)?o.type.__asyncResolved||{}:l),{include:d,exclude:u,max:h}=e;if(d&&(!c||!ji(d,c))||u&&c&&ji(u,c))return o.shapeFlag&=-257,a=o,i;const p=null==o.key?l:o.key,f=s.get(p);return o.el&&(o=ta(o),128&i.shapeFlag&&(i.ssContent=o)),g=p,f?(o.el=f.el,o.component=f.component,o.transition&&_i(o,o.transition),o.shapeFlag|=512,r.delete(p),r.add(p)):(r.add(p),h&&r.size>parseInt(h,10)&&m(r.values().next().value)),o.shapeFlag|=256,a=o,xr(i.type)?i:o}}},Fi=Ui;function ji(e,t){return f(e)?e.some((e=>ji(e,t))):_(e)?e.split(",").includes(t):!!v(e)&&(e.lastIndex=0,e.test(t))}function Vi(e,t){qi(e,"a",t)}function $i(e,t){qi(e,"da",t)}function qi(e,t,n=pa){const i=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Wi(t,i,n),n){let e=n.parent;for(;e&&e.parent;)Bi(e.parent.vnode)&&Hi(i,t,n,e),e=e.parent}}function Hi(e,t,n,i){const s=Wi(t,e,i,!0);es((()=>{u(i[t],s)}),n)}function zi(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Gi(e){return 128&e.shapeFlag?e.ssContent:e}function Wi(e,t,n=pa,i=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ke();const s=ya(n),r=En(t,n,e,i);return s(),Ye(),r});return i?s.unshift(r):s.push(r),r}}const Xi=e=>(t,n=pa)=>{Sa&&"sp"!==e||Wi(e,((...e)=>t(...e)),n)},Ki=Xi("bm"),Yi=Xi("m"),Qi=Xi("bu"),Ji=Xi("u"),Zi=Xi("bum"),es=Xi("um"),ts=Xi("sp"),ns=Xi("rtg"),is=Xi("rtc");function ss(e,t=pa){Wi("ec",e,t)}const rs="components";function as(e,t){return ls(rs,e,!0,t)||e}const os=Symbol.for("v-ndc");function ls(e,t,n=!0,i=!1){const s=qn||pa;if(s){const n=s.type;if(e===rs){const e=Aa(n,!1);if(e&&(e===t||e===N(t)||e===R(N(t))))return n}const r=cs(s[e]||n[e],t)||cs(s.appContext[e],t);return!r&&i?n:r}}function cs(e,t){return e&&(e[t]||e[N(t)]||e[R(N(t))])}function ds(e,t,n,i){let s;const r=n&&n[i],a=f(e);if(a||_(e)){let n=!1;a&&zt(e)&&(n=!Wt(e),e=ct(e)),s=new Array(e.length);for(let i=0,a=e.length;i<a;i++)s[i]=t(n?Qt(e[i]):e[i],i,void 0,r&&r[i])}else if("number"==typeof e){s=new Array(e);for(let n=0;n<e;n++)s[n]=t(n+1,n,void 0,r&&r[n])}else if(S(e))if(e[Symbol.iterator])s=Array.from(e,((e,n)=>t(e,n,void 0,r&&r[n])));else{const n=Object.keys(e);s=new Array(n.length);for(let i=0,a=n.length;i<a;i++){const a=n[i];s[i]=t(e[a],a,i,r&&r[i])}}else s=[];return n&&(n[i]=s),s}function us(e,t,n={},i,s){if(qn.ce||qn.parent&&Mi(qn.parent)&&qn.parent.ce)return"default"!==t&&(n.name=t),Vr(),Wr(Mr,null,[Zr("slot",n,i&&i())],64);let r=e[t];r&&r._c&&(r._d=!1),Vr();const a=r&&hs(r(n)),o=n.key||a&&a.key,l=Wr(Mr,{key:(o&&!T(o)?o:`_${t}`)+(!a&&i?"_fb":"")},a||(i?i():[]),a&&1===e._?64:-2);return!s&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),r&&r._c&&(r._d=!0),l}function hs(e){return e.some((e=>!Xr(e)||e.type!==Br&&!(e.type===Mr&&!hs(e.children))))?e:null}
vendor: 1,193 bytes, line 21
21const ps=e=>e?ba(e)?Ia(e):ps(e.parent):null,fs=d(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ps(e.parent),$root:e=>ps(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Es(e),$forceUpdate:e=>e.f||(e.f=()=>{Dn(e.update)}),$nextTick:e=>e.n||(e.n=Nn.bind(e.proxy)),$watch:e=>mr.bind(e)}),ms=(e,t)=>e!==s&&!e.__isScriptSetup&&p(e,t),gs={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:i,data:r,props:a,accessCache:o,type:l,appContext:c}=e;let d;if("$"!==t[0]){const l=o[t];if(void 0!==l)switch(l){case 1:return i[t];case 2:return r[t];case 4:return n[t];case 3:return a[t]}else{if(ms(i,t))return o[t]=1,i[t];if(r!==s&&p(r,t))return o[t]=2,r[t];if((d=e.propsOptions[0])&&p(d,t))return o[t]=3,a[t];if(n!==s&&p(n,t))return o[t]=4,n[t];_s&&(o[t]=0)}}const u=fs[t];let h,f;return u?("$attrs"===t&&at(e.attrs,0,""),u(e)):(h=l.__cssModules)&&(h=h[t])?h:n!==s&&p(n,t)?(o[t]=4,n[t]):(f=c.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:i,setupState:r,ctx:a}=e;return ms(r,t)?(r[t]=n,!0):i!==s&&p(i,t)?(i[t]=n,!0):!p(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,
vendor: 3,315 bytes, line 21
21!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:r,propsOptions:a}},o){let l;return!!n[o]||e!==s&&p(e,o)||ms(t,o)||(l=a[0])&&p(l,o)||p(i,o)||p(fs,o)||p(r.config.globalProperties,o)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},ys=d({},gs,{get(e,t){if(t!==Symbol.unscopables)return gs.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!X(t)});function vs(){const e=fa();return e.setupContext||(e.setupContext=ka(e))}function bs(e){return f(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let _s=!0;function Ts(e){const t=Es(e),n=e.proxy,i=e.ctx;_s=!1,t.beforeCreate&&Ss(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:o,watch:l,provide:c,inject:d,created:u,beforeMount:h,mounted:p,beforeUpdate:m,updated:g,activated:y,deactivated:v,beforeDestroy:_,beforeUnmount:T,destroyed:w,unmounted:E,render:C,renderTracked:x,renderTriggered:k,errorCaptured:I,serverPrefetch:A,expose:P,inheritAttrs:O,components:L,directives:N,filters:D}=t;if(d&&function(e,t){f(e)&&(e=Is(e));for(const n in e){const i=e[n];let s;s=S(i)?"default"in i?Bs(i.from||n,i.default,!0):Bs(i.from||n):Bs(i),Zt(s)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,i,null),o)for(const a in o){const e=o[a];b(e)&&(i[a]=e.bind(n))}if(s){const t=s.call(n,n);S(t)&&(e.data=jt(t))}if(_s=!0,r)for(const f in r){const e=r[f],t=b(e)?e.bind(n,n):b(e.get)?e.get.bind(n,n):a,s=!b(e)&&b(e.set)?e.set.bind(n):a,o=Pa({get:t,set:s});Object.defineProperty(i,f,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e})}if(l)for(const a in l)ws(l[a],i,n,a);if(c){const e=b(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{Rs(t,e[t])}))}function M(e,t){f(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Ss(u,e,"c"),M(Ki,h),M(Yi,p),M(Qi,m),M(Ji,g),M(Vi,y),M($i,v),M(ss,I),M(is,x),M(ns,k),M(Zi,T),M(es,E),M(ts,A),f(P))if(P.length){const t=e.exposed||(e.exposed={});P.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});C&&e.render===a&&(e.render=C),null!=O&&(e.inheritAttrs=O),L&&(e.components=L),N&&(e.directives=N),A&&wi(e)}function Ss(e,t,n){En(f(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ws(e,t,n,i){let s=i.includes(".")?gr(n,i):()=>n[i];if(_(e)){const n=t[e];b(n)&&pr(s,n)}else if(b(e))pr(s,e.bind(n));else if(S(e))if(f(e))e.forEach((e=>ws(e,t,n,i)));else{const i=b(e.handler)?e.handler.bind(n):t[e.handler];b(i)&&pr(s,i,e)}}function Es(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,o=r.get(t);let l;return o?l=o:s.length||n||i?(l={},s.length&&s.forEach((e=>Cs(l,e,a,!0))),Cs(l,t,a)):l=t,S(t)&&r.set(t,l),l}function Cs(e,t,n,i=!1){const{mixins:s,extends:r}=t;r&&Cs(e,r,n,!0),s&&s.forEach((t=>Cs(e,t,n,!0)));for(const a in t)if(i&&"expose"===a);else{const i=xs[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const xs={data:ks,props:Os,emits:Os,methods:Ps,computed:Ps,beforeCreate:As,created:As,beforeMount:As,mounted:As,beforeUpdate:As,updated:As,beforeDestroy:As,beforeUnmount:As,destroyed:As,unmounted:As,activated:As,deactivated:As,errorCaptured:As,serverPrefetch:As,components:Ps,directives:Ps,watch:function(e,t){if(!e)return t;if(!t)return e;const n=d(Object.create(null),e);
vendor: 7,633 bytes, line 21
21for(const i in t)n[i]=As(e[i],t[i]);return n},provide:ks,inject:function(e,t){return Ps(Is(e),Is(t))}};function ks(e,t){return t?e?function(){return d(b(e)?e.call(this,this):e,b(t)?t.call(this,this):t)}:t:e}function Is(e){if(f(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function As(e,t){return e?[...new Set([].concat(e,t))]:t}function Ps(e,t){return e?d(Object.create(null),e,t):t}function Os(e,t){return e?f(e)&&f(t)?[...new Set([...e,...t])]:d(Object.create(null),bs(e),bs(null!=t?t:{})):t}function Ls(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ns=0;function Ds(e,t){return function(n,i=null){b(n)||(n=d({},n)),null==i||S(i)||(i=null);const s=Ls(),r=new WeakSet,a=[];let o=!1;const l=s.app={_uid:Ns++,_component:n,_props:i,_container:null,_context:s,_instance:null,version:Na,get config(){return s.config},set config(e){},use:(e,...t)=>(r.has(e)||(e&&b(e.install)?(r.add(e),e.install(l,...t)):b(e)&&(r.add(e),e(l,...t))),l),mixin:e=>(s.mixins.includes(e)||s.mixins.push(e),l),component:(e,t)=>t?(s.components[e]=t,l):s.components[e],directive:(e,t)=>t?(s.directives[e]=t,l):s.directives[e],mount(r,a,c){if(!o){const d=l._ceVNode||Zr(n,i);return d.appContext=s,!0===c?c="svg":!1===c&&(c=void 0),a&&t?t(d,r):e(d,r,c),o=!0,l._container=r,r.__vue_app__=l,Ia(d.component)}},onUnmount(e){a.push(e)},unmount(){o&&(En(a,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(s.provides[e]=t,l),runWithContext(e){const t=Ms;Ms=l;try{return e()}finally{Ms=t}}};return l}}let Ms=null;function Rs(e,t){if(pa){let n=pa.provides;const i=pa.parent&&pa.parent.provides;i===n&&(n=pa.provides=Object.create(i)),n[e]=t}else;}function Bs(e,t,n=!1){const i=pa||qn;if(i||Ms){const s=Ms?Ms._context.provides:i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&b(t)?t.call(i&&i.proxy):t}}function Us(){return!!(pa||qn||Ms)}const Fs={},js=()=>Object.create(Fs),Vs=e=>Object.getPrototypeOf(e)===Fs;function $s(e,t,n,i){const[r,a]=e.propsOptions;let o,l=!1;if(t)for(let s in t){if(A(s))continue;const c=t[s];let d;r&&p(r,d=N(s))?a&&a.includes(d)?(o||(o={}))[d]=c:n[d]=c:_r(e.emitsOptions,s)||s in i&&c===i[s]||(i[s]=c,l=!0)}if(a){const t=Kt(n),i=o||s;for(let s=0;s<a.length;s++){const o=a[s];n[o]=qs(r,t,o,i[o],e,!p(i,o))}}return l}function qs(e,t,n,i,s,r){const a=e[n];if(null!=a){const e=p(a,"default");if(e&&void 0===i){const e=a.default;if(a.type!==Function&&!a.skipFactory&&b(e)){const{propsDefaults:r}=s;if(n in r)i=r[n];else{const a=ya(s);i=r[n]=e.call(null,t),a()}}else i=e;s.ce&&s.ce._setProp(n,i)}a[0]&&(r&&!e?i=!1:!a[1]||""!==i&&i!==M(n)||(i=!0))}return i}const Hs=new WeakMap;function zs(e,t,n=!1){const i=n?Hs:t.propsCache,a=i.get(e);if(a)return a;const o=e.props,l={},c=[];let u=!1;if(!b(e)){const i=e=>{u=!0;const[n,i]=zs(e,t,!0);d(l,n),i&&c.push(...i)};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}if(!o&&!u)return S(e)&&i.set(e,r),r;if(f(o))for(let r=0;r<o.length;r++){const e=N(o[r]);Gs(e)&&(l[e]=s)}else if(o)for(const s in o){const e=N(s);if(Gs(e)){const t=o[s],n=l[e]=f(t)||b(t)?{type:t}:d({},t),i=n.type;let r=!1,a=!0;if(f(i))for(let e=0;e<i.length;++e){const t=i[e],n=b(t)&&t.name;if("Boolean"===n){r=!0;break}"String"===n&&(a=!1)}else r=b(i)&&"Boolean"===i.name;n[0]=r,n[1]=a,(r||p(n,"default"))&&c.push(e)}}const h=[l,c];return S(e)&&i.set(e,h),h}function Gs(e){return"$"!==e[0]&&!A(e)}const Ws=e=>"_"===e[0]||"$stable"===e,Xs=e=>f(e)?e.map(ra):[ra(e)],Ks=(e,t,n)=>{if(t._n)return t;const i=Gn(((...e)=>Xs(t(...e))),n);return i._c=!1,i},Ys=(e,t,n)=>{const i=e._ctx;for(const s in e){if(Ws(s))continue;const n=e[s];if(b(n))t[s]=Ks(0,n,i);else if(null!=n){const e=Xs(n);t[s]=()=>e}}},Qs=(e,t)=>{const n=Xs(t);e.slots.default=()=>n},Js=(e,t,n)=>{for(const i in t)(n||"_"!==i)&&(e[i]=t[i])},Zs=Nr;function er(e){return nr(e)}function tr(e){return nr(e,Ai)}function nr(e,t){H().__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:l,createText:c,createComment:d,setText:u,setElementText:h,parentNode:f,nextSibling:m,setScopeId:g=a,insertStaticContent:y}=e,v=(e,t,n,i=null,s=null,r=null,a=void 0,o=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Kr(e,t)&&(i=K(e),q(e,s,r,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:d,shapeFlag:u}=t;switch(c){case Rr:b(e,t,n,i);break;case Br:_(e,t,n,i);break;case Ur:null==e&&T(t,n,i,a);break;case Mr:P(e,t,n,i,s,r,a,o,l);break;default:1&u?S(e,t,n,i,s,r,a,o,l):6&u?O(e,t,n,i,s,r,a,o,l):(64&u||128&u)&&c.process(e,t,n,i,s,r,a,o,l,J)}null!=d&&s&&Ei(d,e&&e.ref,r,t||e,!t)},b=(e,t,i,s)=>{if(null==e)n(t.el=c(t.children),i,s);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},_=(e,t,i,s)=>{null==e?n(t.el=d(t.children||""),i,s):t.el=e.el},T=(e,t,n,i)=>{[e.el,e.anchor]=y(e.children,t,n,i,e.el,e.anchor)},S=(e,t,n,i,s,r,a,o,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?w(t,n,i,s,r,a,o,l):x(e,t,s,r,a,o,l)},w=(e,t,i,s,r,a,c,d)=>{let u,p;const{props:f,shapeFlag:m,transition:g,dirs:y}=e;if(u=e.el=l(e.type,a,f&&f.is,f),8&m?h(u,e.children):16&m&&C(e.children,u,null,s,r,ir(e,a),c,d),y&&Xn(e,null,s,"created"),E(u,e,e.scopeId,c,s),f){for(const e in f)"value"===e||A(e)||o(u,e,null,f[e],a,s);"value"in f&&o(u,"value",null,f.value,a),(p=f.onVnodeBeforeMount)&&ca(p,s,e)}y&&Xn(e,null,s,"beforeMount");const v=rr(r,g);v&&g.beforeEnter(u),n(u,t,i),((p=f&&f.onVnodeMounted)||v||y)&&Zs((()=>{p&&ca(p,s,e),v&&g.enter(u),y&&Xn(e,null,s,"mounted")}),r)},E=(e,t,n,i,s)=>{if(n&&g(e,n),i)for(let r=0;r<i.length;r++)g(e,i[r]);if(s){let n=s.subTree;if(t===n||xr(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=s.vnode;E(e,t,t.scopeId,t.slotScopeIds,s.parent)}}},C=(e,t,n,i,s,r,a,o,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=o?aa(e[c]):ra(e[c]);v(null,l,t,n,i,s,r,a,o)}},x=(e,t,n,i,r,a,l)=>{const c=t.el=e.el;let{patchFlag:d,dynamicChildren:u,dirs:p}=t;d|=16&e.patchFlag;const f=e.props||s,m=t.props||s;let g;if(n&&sr(n,!1),(g=m.onVnodeBeforeUpdate)&&ca(g,n,t,e),p&&Xn(t,e,n,"beforeUpdate"),n&&sr(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(c,""),u?k(e.dynamicChildren,u,c,n,i,ir(t,r),a):l||U(e,t,c,null,n,i,ir(t,r),a,!1),d>0){if(16&d)I(c,f,m,n,r);else if(2&d&&f.class!==m.class&&o(c,"class",null,m.class,r),4&d&&o(c,"style",f.style,m.style,r),8&d){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const i=e[t],s=f[i],a=m[i];a===s&&"value"!==i||o(c,i,s,a,r,n)}}1&d&&e.children!==t.children&&h(c,t.children)}else l||null!=u||I(c,f,m,n,r);((g=m.onVnodeUpdated)||p)&&Zs((()=>{g&&ca(g,n,t,e),p&&Xn(t,e,n,"updated")}),i)},k=(e,t,n,i,s,r,a)=>{for(let o=0;o<t.length;o++){const l=e[o],c=t[o],d=l.el&&(l.type===Mr||!Kr(l,c)||70&l.shapeFlag)?f(l.el):n;v(l,c,d,null,i,s,r,a,!0)}},I=(e,t,n,i,r)=>{if(t!==n){if(t!==s)for(const s in t)A(s)||s in n||o(e,s,t[s],null,r,i);for(const s in n){if(A(s))continue;const a=n[s],l=t[s];a!==l&&"value"!==s&&o(e,s,l,a,r,i)}"value"in n&&o(e,"value",t.value,n.value,r)}},P=(e,t,i,s,r,a,o,l,d)=>{const u=t.el=e?e.el:c(""),h=t.anchor=e?e.anchor:c("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(n(u,i,s),n(h,i,s),C(t.children||[],i,h,r,a,o,l,d)):p>0&&64&p&&f&&e.dynamicChildren?(k(e.dynamicChildren,f,i,r,a,o,l),(null!=t.key||r&&t===r.subTree)&&ar(e,t,!0)):U(e,t,i,h,r,a,o,l,d)}
vendor: 8,465 bytes, line 21
21,O=(e,t,n,i,s,r,a,o,l)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?s.ctx.activate(t,n,i,a,l):L(t,n,i,s,r,a,l):D(e,t,l)},L=(e,t,n,i,s,r,a)=>{const o=e.component=ha(e,i,s);if(Bi(e)&&(o.ctx.renderer=J),wa(o,!1,a),o.asyncDep){if(s&&s.registerDep(o,R,a),!e.el){const e=o.subTree=Zr(Br);_(null,e,t,n)}}else R(o,e,t,n,s,r,a)},D=(e,t,n)=>{const i=t.component=e.component;if(function(e,t,n){const{props:i,children:s,component:r}=e,{props:a,children:o,patchFlag:l}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!s&&!o||o&&o.$stable)||i!==a&&(i?!a||Er(i,a,c):!!a);if(1024&l)return!0;if(16&l)return i?Er(i,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==i[n]&&!_r(c,n))return!0}}return!1}(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void B(i,t,n);i.next=t,i.update()}else t.el=e.el,i.vnode=t},R=(e,t,n,i,s,r,a)=>{const o=()=>{if(e.isMounted){let{next:t,bu:n,u:i,parent:l,vnode:c}=e;{const n=or(e);if(n)return t&&(t.el=c.el,B(e,t,a)),void n.asyncDep.then((()=>{e.isUnmounted||o()}))}let d,u=t;sr(e,!1),t?(t.el=c.el,B(e,t,a)):t=c,n&&F(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ca(d,l,t,c),sr(e,!0);const h=Tr(e),p=e.subTree;e.subTree=h,v(p,h,f(p.el),K(p),e,s,r),t.el=h.el,null===u&&Cr(e,h.el),i&&Zs(i,s),(d=t.props&&t.props.onVnodeUpdated)&&Zs((()=>ca(d,l,t,c)),s)}else{let a;const{el:o,props:l}=t,{bm:c,m:d,parent:u,root:h,type:p}=e,f=Mi(t);if(sr(e,!1),c&&F(c),!f&&(a=l&&l.onVnodeBeforeMount)&&ca(a,u,t),sr(e,!0),o&&ee){const t=()=>{e.subTree=Tr(e),ee(o,e.subTree,e,s,null)};f&&p.__asyncHydrate?p.__asyncHydrate(o,e,t):t()}else{h.ce&&h.ce._injectChildStyle(p);const a=e.subTree=Tr(e);v(null,a,n,i,e,s,r),t.el=a.el}if(d&&Zs(d,s),!f&&(a=l&&l.onVnodeMounted)){const e=t;Zs((()=>ca(a,u,e)),s)}(256&t.shapeFlag||u&&Mi(u.vnode)&&256&u.vnode.shapeFlag)&&e.a&&Zs(e.a,s),e.isMounted=!0,t=n=i=null}};e.scope.on();const l=e.effect=new De(o);e.scope.off();const c=e.update=l.run.bind(l),d=e.job=l.runIfDirty.bind(l);d.i=e,d.id=e.uid,l.scheduler=()=>Dn(d),sr(e,!0),c()},B=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,i){const{props:s,attrs:r,vnode:{patchFlag:a}}=e,o=Kt(s),[l]=e.propsOptions;let c=!1;if(!(i||a>0)||16&a){let i;$s(e,t,s,r)&&(c=!0);for(const r in o)t&&(p(t,r)||(i=M(r))!==r&&p(t,i))||(l?!n||void 0===n[r]&&void 0===n[i]||(s[r]=qs(l,o,r,void 0,e,!0)):delete s[r]);if(r!==o)for(const e in r)t&&p(t,e)||(delete r[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let a=n[i];if(_r(e.emitsOptions,a))continue;const d=t[a];if(l)if(p(r,a))d!==r[a]&&(r[a]=d,c=!0);else{const t=N(a);s[t]=qs(l,o,t,d,e,!1)}else d!==r[a]&&(r[a]=d,c=!0)}}c&&ot(e.attrs,"set","")}(e,t.props,i,n),((e,t,n)=>{const{vnode:i,slots:r}=e;let a=!0,o=s;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:Js(r,t,n):(a=!t.$stable,Ys(t,r)),o=t}else t&&(Qs(e,t),o={default:1});if(a)for(const s in r)Ws(s)||null!=o[s]||delete r[s]})(e,t.children,n),Ke(),Bn(e),Ye()},U=(e,t,n,i,s,r,a,o,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,u=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void V(c,u,n,i,s,r,a,o,l);if(256&p)return void j(c,u,n,i,s,r,a,o,l)}8&f?(16&d&&X(c,s,r),u!==c&&h(n,u)):16&d?16&f?V(c,u,n,i,s,r,a,o,l):X(c,s,r,!0):(8&d&&h(n,""),16&f&&C(u,n,i,s,r,a,o,l))},j=(e,t,n,i,s,a,o,l,c)=>{t=t||r;const d=(e=e||r).length,u=t.length,h=Math.min(d,u);let p;for(p=0;p<h;p++){const i=t[p]=c?aa(t[p]):ra(t[p]);v(e[p],i,n,null,s,a,o,l,c)}d>u?X(e,s,a,!0,!1,h):C(t,n,i,s,a,o,l,c,h)},V=(e,t,n,i,s,a,o,l,c)=>{let d=0;const u=t.length;let h=e.length-1,p=u-1;for(;d<=h&&d<=p;){const i=e[d],r=t[d]=c?aa(t[d]):ra(t[d]);if(!Kr(i,r))break;v(i,r,n,null,s,a,o,l,c),d++}for(;d<=h&&d<=p;){const i=e[h],r=t[p]=c?aa(t[p]):ra(t[p]);if(!Kr(i,r))break;v(i,r,n,null,s,a,o,l,c),h--,p--}if(d>h){if(d<=p){const e=p+1,r=e<u?t[e].el:i;for(;d<=p;)v(null,t[d]=c?aa(t[d]):ra(t[d]),n,r,s,a,o,l,c),d++}}else if(d>p)for(;d<=h;)q(e[d],s,a,!0),d++;else{const f=d,m=d,g=new Map;for(d=m;d<=p;d++){const e=t[d]=c?aa(t[d]):ra(t[d]);null!=e.key&&g.set(e.key,d)}let y,b=0;const _=p-m+1;let T=!1,S=0;const w=new Array(_);for(d=0;d<_;d++)w[d]=0;for(d=f;d<=h;d++){const i=e[d];if(b>=_){q(i,s,a,!0);continue}let r;if(null!=i.key)r=g.get(i.key);else for(y=m;y<=p;y++)if(0===w[y-m]&&Kr(i,t[y])){r=y;break}void 0===r?q(i,s,a,!0):(w[r-m]=d+1,r>=S?S=r:T=!0,v(i,t[r],n,null,s,a,o,l,c),b++)}const E=T?function(e){const t=e.slice(),n=[0];let i,s,r,a,o;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(s=n[n.length-1],e[s]<l){t[i]=s,n.push(i);continue}for(r=0,a=n.length-1;r<a;)o=r+a>>1,e[n[o]]<l?r=o+1:a=o;l<e[n[r]]&&(r>0&&(t[i]=n[r-1]),n[r]=i)}}r=n.length,a=n[r-1];for(;r-- >0;)n[r]=a,a=t[a];return n}(w):r;for(y=E.length-1,d=_-1;d>=0;d--){const e=m+d,r=t[e],h=e+1<u?t[e+1].el:i;0===w[d]?v(null,r,n,h,s,a,o,l,c):T&&(y<0||d!==E[y]?$(r,n,h,2):y--)}}},$=(e,t,i,s,r=null)=>{const{el:a,type:o,transition:l,children:c,shapeFlag:d}=e;if(6&d)return void $(e.component.subTree,t,i,s);if(128&d)return void e.suspense.move(t,i,s);if(64&d)return void o.move(e,t,i,J);if(o===Mr){n(a,t,i);for(let e=0;e<c.length;e++)$(c[e],t,i,s);return void n(e.anchor,t,i)}if(o===Ur)return void(({el:e,anchor:t},i,s)=>{let r;for(;e&&e!==t;)r=m(e),n(e,i,s),e=r;n(t,i,s)})(e,t,i);if(2!==s&&1&d&&l)if(0===s)l.beforeEnter(a),n(a,t,i),Zs((()=>l.enter(a)),r);else{const{leave:e,delayLeave:s,afterLeave:r}=l,o=()=>n(a,t,i),c=()=>{e(a,(()=>{o(),r&&r()}))};s?s(a,o,c):c()}else n(a,t,i)},q=(e,t,n,i=!1,s=!1)=>{const{type:r,props:a,ref:o,children:l,dynamicChildren:c,shapeFlag:d,patchFlag:u,dirs:h,cacheIndex:p}=e;if(-2===u&&(s=!1),null!=o&&Ei(o,null,n,e,!0),null!=p&&(t.renderCache[p]=void 0),256&d)return void t.ctx.deactivate(e);const f=1&d&&h,m=!Mi(e);let g;if(m&&(g=a&&a.onVnodeBeforeUnmount)&&ca(g,t,e),6&d)W(e.component,n,i);else{if(128&d)return void e.suspense.unmount(n,i);f&&Xn(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,J,i):c&&!c.hasOnce&&(r!==Mr||u>0&&64&u)?X(c,t,n,!1,!0):(r===Mr&&384&u||!s&&16&d)&&X(l,t,n),i&&z(e)}(m&&(g=a&&a.onVnodeUnmounted)||f)&&Zs((()=>{g&&ca(g,t,e),f&&Xn(e,null,t,"unmounted")}),n)},z=e=>{const{type:t,el:n,anchor:s,transition:r}=e;if(t===Mr)return void G(n,s);if(t===Ur)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),i(e),e=n;i(t)})(e);const a=()=>{i(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:i}=r,s=()=>t(n,a);i?i(e.el,a,s):s()}else a()},G=(e,t)=>{let n;for(;e!==t;)n=m(e),i(e),e=n;i(t)},W=(e,t,n)=>{const{bum:i,scope:s,job:r,subTree:a,um:o,m:l,a:c}=e;lr(l),lr(c),i&&F(i),s.stop(),r&&(r.flags|=8,q(a,e,t,n)),o&&Zs(o,t),Zs((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},X=(e,t,n,i=!1,s=!1,r=0)=>{for(let a=r;a<e.length;a++)q(e[a],t,n,i,s)},K=e=>{if(6&e.shapeFlag)return K(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=m(e.anchor||e.el),n=t&&t[Kn];return n?m(n):t};let Y=!1;const Q=(e,t,n)=>{null==e?t._vnode&&q(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Y||(Y=!0,Bn(),Un(),Y=!1)},J={p:v,um:q,m:$,r:z,mt:L,mc:C,pc:U,pbc:k,n:K,o:e};let Z,ee;return t&&([Z,ee]=t(J)),{render:Q,hydrate:Z,createApp:Ds(Q,Z)}}function ir({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function sr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function rr(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ar(e,t,n=!1){const i=e.children,s=t.children;if(f(i)&&f(s))for(let r=0;r<i.length;r++){const e=i[r];let t=s[r];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=s[r]=aa(s[r]),t.el=e.el),n||-2===t.patchFlag||ar(e,t)),t.type===Rr&&(t.el=e.el)}}function or(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:or(t)}function lr(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const cr=Symbol.for("v-scx"),dr=()=>Bs(cr);function ur(e,t){return fr(e,null,t)}function hr(e,t){return fr(e,null,{flush:"sync"})}function pr(e,t,n){return fr(e,t,n)}function fr(e,t,n=s){const{immediate:i,deep:r,flush:o,once:l}=n,c=d({},n),h=t&&i||!t&&"post"!==o;let p;if(Sa)if("sync"===o){const e=dr();p=e.__watcherHandles||(e.__watcherHandles=[])}else if(!h){const e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}const m=pa;c.call=(e,t,n)=>En(e,m,t,n);let g=!1;"post"===o?c.scheduler=e=>{Zs(e,m&&m.suspense)}
21:"sync"!==o&&(g=!0,c.scheduler=(e,t)=>{t?e():Dn(e)}),c.augmentJob=e=>{t&&(e.flags|=4),g&&(e.flags|=2,m&&(e.id=m.uid,e.i=m))};const y=function(e,t,n=s){const{immediate:i,deep:r,once:o,scheduler:l,augmentJob:c,call:d}=n,h=e=>r?e:Wt(e)||!1===r||0===r?_n(e,1):_n(e);let p,m,g,y,v=!1,_=!1;if(Zt(e)?(m=()=>e.value,v=Wt(e)):zt(e)?(m=()=>h(e),v=!0):f(e)?(_=!0,v=e.some((e=>zt(e)||Wt(e))),m=()=>e.map((e=>Zt(e)?e.value:zt(e)?h(e):b(e)?d?d(e,2):e():void 0))):m=b(e)?t?d?()=>d(e,2):e:()=>{if(g){Ke();try{g()}finally{Ye()}}const t=vn;vn=p;try{return d?d(e,3,[y]):e(y)}finally{vn=t}}:a,t&&r){const e=m,t=!0===r?1/0:r;m=()=>_n(e(),t)}const T=Oe(),S=()=>{p.stop(),T&&T.active&&u(T.effects,p)};if(o&&t){const e=t;t=(...t)=>{e(...t),S()}}let w=_?new Array(e.length).fill(gn):gn;const E=e=>{if(1&p.flags&&(p.dirty||e))if(t){const e=p.run();if(r||v||(_?e.some(((e,t)=>U(e,w[t]))):U(e,w))){g&&g();const n=vn;vn=p;try{const n=[e,w===gn?void 0:_&&w[0]===gn?[]:w,y];d?d(t,3,n):t(...n),w=e}finally{vn=n}}}else p.run()};return c&&c(E),p=new De(m),p.scheduler=l?()=>l(E,!1):E,y=e=>bn(e,!1,p),g=p.onStop=()=>{const e=yn.get(p);if(e){if(d)d(e,4);else for(const t of e)t();yn.delete(p)}},t?i?E(!0):w=p.run():l?l(E.bind(null,!0),!0):p.run(),S.pause=p.pause.bind(p),S.resume=p.resume.bind(p),S.stop=S,S}(e,t,c);return Sa&&(p?p.push(y):h&&y()),y}function mr(e,t,n){const i=this.proxy,s=_(e)?e.includes(".")?gr(i,e):()=>i[e]:e.bind(i,i);let r;b(t)?r=t:(r=t.handler,n=t);const a=ya(this),o=fr(s,r.bind(i),n);return a(),o}function gr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const yr=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${N(t)}Modifiers`]||e[`${M(t)}Modifiers`];function vr(e,t,...n){if(e.isUnmounted)return;const i=e.vnode.props||s;let r=n;const a=t.startsWith("update:"),o=a&&yr(i,t.slice(7));let l;o&&(o.trim&&(r=n.map((e=>_(e)?e.trim():e))),o.number&&(r=n.map(V)));let c=i[l=B(t)]||i[l=B(N(t))];!c&&a&&(c=i[l=B(M(t))]),c&&En(c,e,6,r);const d=i[l+"Once"];if(d){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,En(d,e,6,r)}}function br(e,t,n=!1){const i=t.emitsCache,s=i.get(e);if(void 0!==s)return s;const r=e.emits;let a={},o=!1;if(!b(e)){const i=e=>{const n=br(e,t,!0);n&&(o=!0,d(a,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return r||o?(f(r)?r.forEach((e=>a[e]=null)):d(a,r),S(e)&&i.set(e,a),a):(S(e)&&i.set(e,null),null)}function _r(e,t){return!(!e||!l(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,M(t))||p(e,t))}function Tr(e){const{type:t,vnode:n,proxy:i,withProxy:s,propsOptions:[r],slots:a,attrs:o,emit:l,render:d,renderCache:u,props:h,data:p,setupState:f,ctx:m,inheritAttrs:g}=e,y=zn(e);let v,b;try{if(4&n.shapeFlag){const e=s||i,t=e;v=ra(d.call(t,e,u,h,f,p,m)),b=o}else{const e=t;0,v=ra(e.length>1?e(h,{attrs:o,slots:a,emit:l}):e(h,null)),b=t.props?o:Sr(o)}}catch(T){Fr.length=0,Cn(T,e,1),v=Zr(Br)}let _=v;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=_;e.length&&7&t&&(r&&e.some(c)&&(b=wr(b,r)),_=ta(_,b,!1,!0))}return n.dirs&&(_=ta(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&_i(_,n.transition),v=_,zn(y),v}const Sr=e=>{let t;for(const n in e)("class"===n||"style"===n||l(n))&&((t||(t={}))[n]=e[n]);return t},wr=(e,t)=>{const n={};for(const i in e)c(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function Er(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let s=0;s<i.length;s++){const r=i[s];if(t[r]!==e[r]&&!_r(n,r))return!0}return!1}function Cr({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i!==e)break;(e=t.vnode).el=n,t=t.parent}}const xr=e=>e.__isSuspense;let kr=0;const Ir={name:"Suspense",__isSuspense:!0,process(e,t,n,i,s,r,a,o,l,c){if(null==e)!function(e,t,n,i,s,r,a,o,l){const{p:c,o:{createElement:d}}=l,u=d("div"),h=e.suspense=Or(e,s,i,t,u,n,r,a,o,l);c(null,h.pendingBranch=e.ssContent,u,null,i,h,r,a),h.deps>0?(Pr(e,"onPending"),Pr(e,"onFallback"),c(null,e.ssFallback,t,n,i,null,r,a),Dr(h,e.ssFallback)):h.resolve(!1,!0)}(t,n,i,s,r,a,o,l,c);else{if(r&&r.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,i,s,r,a,o,{p:l,um:c,o:{createElement:d}}){const u=t.suspense=e.suspense;u.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:y}=u;if(m)u.pendingBranch=h,Kr(h,m)?(l(m,h,u.hiddenContainer,null,s,u,r,a,o),u.deps<=0?u.resolve():g&&(y||(l(f,p,n,i,s,null,r,a,o),Dr(u,p)))):(u.pendingId=kr++,y?(u.isHydrating=!1,u.activeBranch=m):c(m,s,u),u.deps=0,u.effects.length=0,u.hiddenContainer=d("div"),g?(l(null,h,u.hiddenContainer,null,s,u,r,a,o),u.deps<=0?u.resolve():(l(f,p,n,i,s,null,r,a,o),Dr(u,p))):f&&Kr(h,f)?(l(f,h,n,i,s,u,r,a,o),u.resolve(!0)):(l(null,h,u.hiddenContainer,null,s,u,r,a,o),u.deps<=0&&u.resolve()));else if(f&&Kr(h,f))l(f,h,n,i,s,u,r,a,o),Dr(u,h);else if(Pr(t,"onPending"),u.pendingBranch=h,512&h.shapeFlag?u.pendingId=h.component.suspenseId:u.pendingId=kr++,l(null,h,u.hiddenContainer,null,s,u,r,a,o),u.deps<=0)u.resolve();else{const{timeout:e,pendingId:t}=u;e>0?setTimeout((()=>
21{u.pendingId===t&&u.fallback(p)}),e):0===e&&u.fallback(p)}}(e,t,n,i,s,a,o,l,c)}},hydrate:function(e,t,n,i,s,r,a,o,l){const c=t.suspense=Or(t,i,n,e.parentNode,document.createElement("div"),null,s,r,a,o,!0),d=l(e,c.pendingBranch=t.ssContent,n,c,r,a);0===c.deps&&c.resolve(!1,!0);return d},normalize:function(e){const{shapeFlag:t,children:n}=e,i=32&t;e.ssContent=Lr(i?n.default:n),e.ssFallback=i?Lr(n.fallback):Zr(Br)}},Ar=Ir;function Pr(e,t){const n=e.props&&e.props[t];b(n)&&n()}function Or(e,t,n,i,s,r,a,o,l,c,d=!1){const{p:u,m:h,um:p,n:f,o:{parentNode:m,remove:g}}=c;let y;const v=function(e){const t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);v&&t&&t.pendingBranch&&(y=t.pendingId,t.deps++);const b=e.props?$(e.props.timeout):void 0,_=r,T={vnode:e,parent:t,parentComponent:n,namespace:a,container:i,hiddenContainer:s,deps:0,pendingId:kr++,timeout:"number"==typeof b?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!d,isHydrating:d,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:i,activeBranch:s,pendingBranch:a,pendingId:o,effects:l,parentComponent:c,container:d}=T;let u=!1;T.isHydrating?T.isHydrating=!1:e||(u=s&&a.transition&&"out-in"===a.transition.mode,u&&(s.transition.afterLeave=()=>{o===T.pendingId&&(h(a,d,r===_?f(s):r,0),Rn(l))}),s&&(m(s.el)===d&&(r=f(s)),p(s,c,T,!0)),u||h(a,d,r,0)),Dr(T,a),T.pendingBranch=null,T.isInFallback=!1;let g=T.parent,b=!1;for(;g;){if(g.pendingBranch){g.effects.push(...l),b=!0;break}g=g.parent}b||u||Rn(l),T.effects=[],v&&t&&t.pendingBranch&&y===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),Pr(i,"onResolve")},fallback(e){if(!T.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:i,container:s,namespace:r}=T;Pr(t,"onFallback");const a=f(n),c=()=>{T.isInFallback&&(u(null,e,s,a,i,null,r,o,l),Dr(T,e))},d=e.transition&&"out-in"===e.transition.mode;d&&(n.transition.afterLeave=c),T.isInFallback=!0,p(n,i,null,!0),d||c()},move(e,t,n){T.activeBranch&&h(T.activeBranch,e,t,n),T.container=e},next:()=>T.activeBranch&&f(T.activeBranch),registerDep(e,t,n){const i=!!T.pendingBranch;i&&T.deps++;const s=e.vnode.el;e.asyncDep.catch((t=>{Cn(t,e,0)})).then((r=>{if(e.isUnmounted||T.isUnmounted||T.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:o}=e;Ea(e,r,!1),s&&(o.el=s);const l=!s&&e.subTree.el;t(e,o,m(s||e.subTree.el),s?null:f(e.subTree),T,a,n),l&&g(l),Cr(e,o.el),i&&0==--T.deps&&T.resolve()}))},unmount(e,t){T.isUnmounted=!0,T.activeBranch&&p(T.activeBranch,n,e,t),T.pendingBranch&&p(T.pendingBranch,n,e,t)}};return T}function Lr(e){let t;if(b(e)){const n=qr&&e._c;n&&(e._d=!1,Vr()),e=e(),n&&(e._d=!0,t=jr,$r())}if(f(e)){const t=function(e){let t;for(let n=0;n<e.length;n++){const i=e[n];if(!Xr(i))return;if(i.type!==Br||"v-if"===i.children){if(t)return;t=i}}return t}(e);e=t}return e=ra(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter((t=>t!==e))),e}function Nr(e,t){t&&t.pendingBranch?f(e)?t.effects.push(...e):t.effects.push(e):Rn(e)}function Dr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:i}=e;let s=t.el;for(;!s&&t.component;)s=(t=t.component.subTree).el;n.el=s,i&&i.subTree===n&&(i.vnode.el=s,Cr(i,s))}const Mr=Symbol.for("v-fgt"),Rr=Symbol.for("v-txt"),Br=Symbol.for("v-cmt"),Ur=Symbol.for("v-stc"),Fr=[];let jr=null;function Vr(e=!1){Fr.push(jr=e?null:[])}function $r(){Fr.pop(),jr=Fr[Fr.length-1]||null}let qr=1;function Hr(e,t=!1){qr+=e,e<0&&jr&&t&&(jr.hasOnce=!0)}function zr(e){return e.dynamicChildren=qr>0?jr||r:null,$r(),qr>0&&jr&&jr.push(e),e}function Gr(e,t,n,i,s,r){return zr(Jr(e,t,n,i,s,r,!0))}function Wr(e,t,n,i,s){return zr(Zr(e,t,n,i,s,!0))}function Xr(e){return!!e&&!0===e.__v_isVNode}function Kr(e,t){return e.type===t.type&&e.key===t.key}
vendor: 4,126 bytes, line 21
21const Yr=({key:e})=>null!=e?e:null,Qr=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?_(e)||Zt(e)||b(e)?{i:qn,r:e,k:t,f:!!n}:e:null);function Jr(e,t=null,n=null,i=0,s=null,r=(e===Mr?0:1),a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yr(t),ref:t&&Qr(t),scopeId:Hn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:qn};return o?(oa(l,n),128&r&&e.normalize(l)):n&&(l.shapeFlag|=_(n)?8:16),qr>0&&!a&&jr&&(l.patchFlag>0||6&r)&&32!==l.patchFlag&&jr.push(l),l}const Zr=function(e,t=null,n=null,i=0,s=null,r=!1){e&&e!==os||(e=Br);if(Xr(e)){const i=ta(e,t,!0);return n&&oa(i,n),qr>0&&!r&&jr&&(6&i.shapeFlag?jr[jr.indexOf(e)]=i:jr.push(i)),i.patchFlag=-2,i}a=e,b(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=ea(t);let{class:e,style:n}=t;e&&!_(e)&&(t.class=ne(e)),S(n)&&(Xt(n)&&!f(n)&&(n=d({},n)),t.style=Q(n))}const o=_(e)?1:xr(e)?128:Yn(e)?64:S(e)?4:b(e)?2:0;return Jr(e,t,n,i,s,o,r,!0)};function ea(e){return e?Xt(e)||Vs(e)?d({},e):e:null}function ta(e,t,n=!1,i=!1){const{props:s,ref:r,patchFlag:a,children:o,transition:l}=e,c=t?la(s||{},t):s,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Yr(c),ref:t&&t.ref?n&&r?f(r)?r.concat(Qr(t)):[r,Qr(t)]:Qr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Mr?-1===a?16:16|a:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ta(e.ssContent),ssFallback:e.ssFallback&&ta(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&i&&_i(d,l.clone(d)),d}function na(e=" ",t=0){return Zr(Rr,null,e,t)}function ia(e,t){const n=Zr(Ur,null,e);return n.staticCount=t,n}function sa(e="",t=!1){return t?(Vr(),Wr(Br,null,e)):Zr(Br,null,e)}function ra(e){return null==e||"boolean"==typeof e?Zr(Br):f(e)?Zr(Mr,null,e.slice()):Xr(e)?aa(e):Zr(Rr,null,String(e))}function aa(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ta(e)}function oa(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(f(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),oa(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||Vs(t)?3===i&&qn&&(1===qn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=qn}}else b(t)?(t={default:t,_ctx:qn},n=32):(t=String(t),64&i?(n=16,t=[na(t)]):n=8);e.children=t,e.shapeFlag|=n}function la(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=ne([t.class,i.class]));else if("style"===e)t.style=Q([t.style,i.style]);else if(l(e)){const n=t[e],s=i[e];!s||n===s||f(n)&&n.includes(s)||(t[e]=n?[].concat(n,s):s)}else""!==e&&(t[e]=i[e])}return t}function ca(e,t,n,i=null){En(e,t,7,[n,i])}const da=Ls();let ua=0;function ha(e,t,n){const i=e.type,r=(t?t.appContext:e.appContext)||da,a={uid:ua++,vnode:e,type:i,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ae(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zs(i,r),emitsOptions:br(i,r),emit:null,emitted:null,propsDefaults:s,inheritAttrs:i.inheritAttrs,ctx:s,data:s,props:s,attrs:s,slots:s,refs:s,setupState:s,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=vr.bind(null,a),e.ce&&e.ce(a),a}let pa=null;const fa=()=>pa||qn;let ma,ga;{const e=H(),t=(t,n)=>{let i;return(i=e[t])||(i=e[t]=[]),i.push(n),e=>{i.length>
211?i.forEach((t=>t(e))):i[0](e)}};ma=t("__VUE_INSTANCE_SETTERS__",(e=>pa=e)),ga=t("__VUE_SSR_SETTERS__",(e=>Sa=e))}const ya=e=>{const t=pa;return ma(e),e.scope.on(),()=>{e.scope.off(),ma(t)}},va=()=>{pa&&pa.scope.off(),ma(null)};function ba(e){return 4&e.vnode.shapeFlag}let _a,Ta,Sa=!1;function wa(e,t=!1,n=!1){t&&ga(t);const{props:i,children:s}=e.vnode,r=ba(e);!function(e,t,n,i=!1){const s={},r=js();e.propsDefaults=Object.create(null),$s(e,t,s,r);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=i?s:Vt(s):e.type.props?e.props=s:e.props=r,e.attrs=r}(e,i,r,t),((e,t,n)=>{const i=e.slots=js();if(32&e.vnode.shapeFlag){const e=t._;e?(Js(i,t,n),n&&j(i,"_",e,!0)):Ys(t,i)}else t&&Qs(e,t)})(e,s,n);const a=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,gs);const{setup:i}=n;if(i){Ke();const n=e.setupContext=i.length>1?ka(e):null,s=ya(e),r=wn(i,e,0,[e.props,n]),a=w(r);if(Ye(),s(),!a&&!e.sp||Mi(e)||wi(e),a){if(r.then(va,va),t)return r.then((n=>{Ea(e,n,t)})).catch((t=>{Cn(t,e,0)}));e.asyncDep=r}else Ea(e,r,t)}else Ca(e,t)}(e,t):void 0;return t&&ga(!1),a}function Ea(e,t,n){b(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:S(t)&&(e.setupState=on(t)),Ca(e,n)}function Ca(e,t,n){const i=e.type;if(!e.render){if(!t&&_a&&!i.render){const t=i.template||Es(e).template;if(t){const{isCustomElement:n,compilerOptions:s}=e.appContext.config,{delimiters:r,compilerOptions:a}=i,o=d(d({isCustomElement:n,delimiters:r},s),a);i.render=_a(t,o)}}e.render=i.render||a,Ta&&Ta(e)}{const t=ya(e);Ke();try{Ts(e)}finally{Ye(),t()}}}const xa={get:(e,t)=>(at(e,0,""),e[t])};function ka(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,xa),slots:e.slots,emit:e.emit,expose:t}}function Ia(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(on(Yt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in fs?fs[n](e):void 0,has:(e,t)=>t in e||t in fs})):e.proxy}function Aa(e,t=!0){return b(e)?e.displayName||e.name:e.name||t&&e.__name}const Pa=(e,t)=>{const n=function(e,t,n=!1){let i,s;return b(e)?i=e:(i=e.get,s=e.set),new mn(i,s,n)}(e,0,Sa);return n};function Oa(e,t,n){const i=arguments.length;return 2===i?S(t)&&!f(t)?Xr(t)?Zr(e,null,[t]):Zr(e,t):Zr(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Xr(n)&&(n=[n]),Zr(e,t,n))}function La(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let i=0;i<n.length;i++)if(U(n[i],t[i]))return!1;return qr>0&&jr&&jr.push(e),!0}const Na="3.5.13",Da=a,Ma=Sn,Ra=Vn,Ba=function e(t,n){var i,s;if(Vn=t,Vn)Vn.enabled=!0,$n.forEach((({event:e,args:t})=>Vn.emit(e,...t))),$n=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(s=null==(i=window.navigator)?void 0:i.userAgent)?void 0:s.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Vn||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$n=[])}),3e3)}else $n=[]},Ua={createComponentInstance:ha,setupComponent:wa,renderComponentRoot:Tr,setCurrentRenderingInstance:zn,isVNode:Xr,normalizeVNode:ra,getComponentPublicInstance:Ia,ensureValidVNode:hs,pushWarningContext:function(e){Tn.push(e)},popWarningContext:function(){Tn.pop()}};
22/**
23* @vue/runtime-dom v3.5.13
24* (c) 2018-present Yuxi (Evan) You and Vue contributors
25* @license MIT
vendor: 4,791 bytes, lines 26-27
26**/
27let Fa;const ja="undefined"!=typeof window&&window.trustedTypes;if(ja)try{Fa=ja.createPolicy("vue",{createHTML:e=>e})}catch(s$){}const Va=Fa?e=>Fa.createHTML(e):e=>e,$a="undefined"!=typeof document?document:null,qa=$a&&$a.createElement("template"),Ha={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const s="svg"===t?$a.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?$a.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?$a.createElement(e,{is:n}):$a.createElement(e);return"select"===e&&i&&null!=i.multiple&&s.setAttribute("multiple",i.multiple),s},createText:e=>$a.createTextNode(e),createComment:e=>$a.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$a.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,s,r){const a=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),s!==r&&(s=s.nextSibling););else{qa.innerHTML=Va("svg"===i?`<svg>${e}</svg>`:"mathml"===i?`<math>${e}</math>`:e);const s=qa.content;if("svg"===i||"mathml"===i){const e=s.firstChild;for(;e.firstChild;)s.appendChild(e.firstChild);s.removeChild(e)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},za="transition",Ga="animation",Wa=Symbol("_vtc"),Xa={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ka=d({},ui,Xa),Ya=(e=>(e.displayName="Transition",e.props=Ka,e))(((e,{slots:t})=>Oa(mi,Za(e),t))),Qa=(e,t=[])=>{f(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ja=e=>!!e&&(f(e)?e.some((e=>e.length>1)):e.length>1);function Za(e){const t={};for(const d in e)d in Xa||(t[d]=e[d]);if(!1===e.css)return t;const{name:n="v",type:i,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:c=a,appearToClass:u=o,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(S(e))return[eo(e.enter),eo(e.leave)];{const t=eo(e);return[t,t]}}(s),g=m&&m[0],y=m&&m[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:_,onLeave:T,onLeaveCancelled:w,onBeforeAppear:E=v,onAppear:C=b,onAppearCancelled:x=_}=t,k=(e,t,n,i)=>{e._enterCancelled=i,no(e,t?u:o),no(e,t?c:a),n&&n()},I=(e,t)=>{e._isLeaving=!1,no(e,h),no(e,f),no(e,p),t&&t()},A=e=>(t,n)=>{const s=e?C:b,a=()=>k(t,e,n);Qa(s,[t,a]),io((()=>{no(t,e?l:r),to(t,e?u:o),Ja(s)||ro(t,i,g,a)}))};return d(t,{onBeforeEnter(e){Qa(v,[e]),to(e,r),to(e,a)},onBeforeAppear(e){Qa(E,[e]),to(e,l),to(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>I(e,t);to(e,h),e._enterCancelled?(to(e,p),co()):(co(),to(e,p)),io((()=>{e._isLeaving&&(no(e,h),to(e,f),Ja(T)||ro(e,i,y,n))})),Qa(T,[e,n])},onEnterCancelled(e){k(e,!1,void 0,!0),Qa(_,[e])},onAppearCancelled(e){k(e,!0,void 0,!0),Qa(x,[e])},onLeaveCancelled(e){I(e),Qa(w,[e])}})}function eo(e){return $(e)}function to(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[Wa]||(e[Wa]=new Set)).add(t)}function no(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[Wa];n&&(n.delete(t),n.size||(e[Wa]=void 0))}function io(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let so=0;function ro(e,t,n,i){const s=e._endId=++so,r=()=>{s===e._endId&&i()};if(null!=n)return setTimeout(r,n);const{type:a,timeout:o,propCount:l}=ao(e,t);if(!a)return i();const c=a+"end";let d=0;const u=()=>{e.removeEventListener(c,h),r()},h=t=>{t.target===e&&++d>=l&&u()};setTimeout((()=>{d<l&&u()}),o+1),e.addEventListener(c,h)}function ao(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),s=i(`${za}Delay`),r=i(`${za}Duration`),a=oo(s,r),o=i(`${Ga}Delay`),l=i(`${Ga}Duration`),c=oo(o,l);let d=null,u=0,h=0;t===za?a>0&&(d=za,u=a,h=r.length):t===Ga?c>0&&(d=Ga,u=c,h=l.length):(u=Math.max(a,c),d=u>0?a>c?za:Ga:null,h=d?d===za?r.length:l.length:0);return{type:d,timeout:u,propCount:h,hasTransform:d===za&&/\b(transform|all)(,|$)/.test(i(`${za}Property`).toString())}}function oo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>lo(t)+lo(e[n]))))}function lo(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function co(){return document.body.offsetHeight}const uo=Symbol("_vod"),ho=Symbol("_vsh"),po={beforeMount(e,{value:t},{transition:n}){e[uo]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):fo(e,t)}
27,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),fo(e,!0),i.enter(e)):i.leave(e,(()=>{fo(e,!1)})):fo(e,t))},beforeUnmount(e,{value:t}){fo(e,t)}};function fo(e,t){e.style.display=t?e[uo]:"none",e[ho]=!t}const mo=Symbol("");function go(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{go(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)yo(e.el,t);else if(e.type===Mr)e.children.forEach((e=>go(e,t)));else if(e.type===Ur){let{el:n,anchor:i}=e;for(;n&&(yo(n,t),n!==i);)n=n.nextSibling}}function yo(e,t){if(1===e.nodeType){const n=e.style;let i="";for(const e in t)n.setProperty(`--${e}`,t[e]),i+=`--${e}: ${t[e]};`;n[mo]=i}}const vo=/(^|;)\s*display\s*:/;const bo=/\s*!important$/;function _o(e,t,n){if(f(n))n.forEach((n=>_o(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=function(e,t){const n=So[t];if(n)return n;let i=N(t);if("filter"!==i&&i in e)return So[t]=i;i=R(i);for(let s=0;s<To.length;s++){const n=To[s]+i;if(n in e)return So[t]=n}return t}(e,t);bo.test(n)?e.setProperty(M(i),n.replace(bo,""),"important"):e[i]=n}}const To=["Webkit","Moz","ms"],So={};const wo="http://www.w3.org/1999/xlink";function Eo(e,t,n,i,s,r=ce(t)){i&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(wo,t.slice(6,t.length)):e.setAttributeNS(wo,t,n):null==n||r&&!ue(n)?e.removeAttribute(t):e.setAttribute(t,r?"":T(n)?String(n):n)}function Co(e,t,n,i,s){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?Va(n):n));const r=e.tagName;if("value"===t&&"PROGRESS"!==r&&!r.includes("-")){const i="OPTION"===r?e.getAttribute("value")||"":e.value,s=null==n?"checkbox"===e.type?"on":"":String(n);return i===s&&"_value"in e||(e.value=s),null==n&&e.removeAttribute(t),void(e._value=n)}let a=!1;if(""===n||null==n){const i=typeof e[t];"boolean"===i?n=ue(n):null==n&&"string"===i?(n="",a=!0):"number"===i&&(n=0,a=!0)}try{e[t]=n}catch(s$){}a&&e.removeAttribute(s||t)}function xo(e,t,n,i){e.addEventListener(t,n,i)}const ko=Symbol("_vei");function Io(e,t,n,i,s=null){const r=e[ko]||(e[ko]={}),a=r[t];if(i&&a)a.value=i;else{const[n,o]=function(e){let t;if(Ao.test(e)){let n;for(t={};n=e.match(Ao);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):M(e.slice(2));return[n,t]}(t);if(i){const a=r[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();En(function(e,t){if(f(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Lo(),n}(i,s);xo(e,n,a,o)}else a&&(!function(e,t,n,i){e.removeEventListener(t,n,i)}(e,n,a,o),r[t]=void 0)}}const Ao=/(?:Once|Passive|Capture)$/;let Po=0;const Oo=Promise.resolve(),Lo=()=>Po||(Oo.then((()=>Po=0)),Po=Date.now());const No=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const Do={};
28/*! #__NO_SIDE_EFFECTS__ */function Mo(e,t,n){const i=Si(e,t);k(i)&&d(i,t);class s extends Bo{constructor(e){super(i,e,n)}}return s.def=i,s}
29/*! #__NO_SIDE_EFFECTS__ */const Ro="undefined"!=typeof HTMLElement?HTMLElement:class{};class Bo extends Ro{constructor(e,t={},n=_l){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==_l?this._root=this.shadowRoot:!1!==e.shadowRoot?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof Bo){this._parent=e;break}this._instance||(this._resolved?(this._setParent(),this._update()):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then((()=>{this._pendingResolve=void 0,this._resolveDef()})):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._instance.provides=e._instance.provides)}disconnectedCallback(){this._connected=!1,Nn((()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)}))}
vendor: 1,873 bytes, line 29
29_resolveDef(){if(this._pendingResolve)return;for(let n=0;n<this.attributes.length;n++)this._setAttr(this.attributes[n].name);this._ob=new MutationObserver((e=>{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:n,styles:i}=e;let s;if(n&&!f(n))for(const r in n){const e=n[r];(e===Number||e&&e.type===Number)&&(r in this._props&&(this._props[r]=$(this._props[r])),(s||(s=Object.create(null)))[N(r)]=!0)}this._numberProps=s,t&&this._resolveProps(e),this.shadowRoot&&this._applyStyles(i),this._mount(e)},t=this._def.__asyncLoader;t?this._pendingResolve=t().then((t=>e(this._def=t,!0))):e(this._def)}_mount(e){this._app=this._createApp(e),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const t=this._instance&&this._instance.exposed;if(t)for(const n in t)p(this,n)||Object.defineProperty(this,n,{get:()=>rn(t[n])})}_resolveProps(e){const{props:t}=e,n=f(t)?t:Object.keys(t||{});for(const i of Object.keys(this))"_"!==i[0]&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(N))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(e){this._setProp(i,e,!0,!0)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const t=this.hasAttribute(e);let n=t?this.getAttribute(e):Do;const i=N(e);t&&this._numberProps&&this._numberProps[i]&&(n=$(n)),this._setProp(i,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,i=!1){if(t!==this._props[e]&&(t===Do?delete this._props[e]:(this._props[e]=t,"key"===e&&this._app&&(this._app._ceVNode.key=t)),i&&this._instance&&this._update(),n)){const n=this._ob;n&&n.disconnect(),!0===t?this.setAttribute(M(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(M(e),t+""):t||this.removeAttribute(M(e)),n&&n.observe(this,{attributes:!0})}}
29_update(){bl(this._createVNode(),this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const t=Zr(this._def,d(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,k(t[0])?d({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),M(e)!==e&&t(M(e),n)},this._setParent()}),t}_applyStyles(e,t){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}const n=this._nonce;for(let i=e.length-1;i>=0;i--){const t=document.createElement("style");n&&t.setAttribute("nonce",n),t.textContent=e[i],this.shadowRoot.prepend(t)}}_parseSlots(){const e=this._slots={};let t;for(;t=this.firstChild;){const n=1===t.nodeType&&t.getAttribute("slot")||"default";(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){const e=(this._teleportTarget||this).querySelectorAll("slot"),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){const i=e[n],s=i.getAttribute("name")||"default",r=this._slots[s],a=i.parentNode;if(r)for(const e of r){if(t&&1===e.nodeType){const n=t+"-s",i=document.createTreeWalker(e,1);let s;for(e.setAttribute(n,"");s=i.nextNode();)s.setAttribute(n,"")}a.insertBefore(e,i)}else for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}}_injectChildStyle(e){this._applyStyles(e.styles,e)}_removeChildStyle(e){}}function Uo(e){const t=fa(),n=t&&t.ce;return n||null}const Fo=new WeakMap,jo=new WeakMap,Vo=Symbol("_moveCb"),$o=Symbol("_enterCb"),qo=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:d({},Ka,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=fa(),i=ci();let s,r;return Ji((()=>{if(!s.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const i=e.cloneNode(),s=e[Wa];s&&s.forEach((e=>{e.split(/\s+/).forEach((e=>e&&i.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&i.classList.add(e))),i.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(i);const{hasTransform:a}=ao(i);return r.removeChild(i),a}(s[0].el,n.vnode.el,t))return;s.forEach(zo),s.forEach(Go);const i=s.filter(Wo);co(),i.forEach((e=>{const n=e.el,i=n.style;to(n,t),i.transform=i.webkitTransform=i.transitionDuration="";const s=n[Vo]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",s),n[Vo]=null,no(n,t))};n.addEventListener("transitionend",s)}))})),()=>{const a=Kt(e),o=Za(a);let l=a.tag||Mr;if(s=[],r)for(let e=0;e<r.length;e++){const t=r[e];t.el&&t.el instanceof Element&&(s.push(t),_i(t,yi(t,o,i,n)),Fo.set(t,t.el.getBoundingClientRect()))}r=t.default?Ti(t.default()):[];for(let e=0;e<r.length;e++){const t=r[e];null!=t.key&&_i(t,yi(t,o,i,n))}return Zr(l,null,r)}}}),Ho=qo;function zo(e){const t=e.el;t[Vo]&&t[Vo](),t[$o]&&t[$o]()}function Go(e){jo.set(e,e.el.getBoundingClientRect())}function Wo(e){const t=Fo.get(e),n=jo.get(e),i=t.left-n.left,s=t.top-n.top;if(i||s){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${i}px,${s}px)`,t.transitionDuration="0s",e}}const Xo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return f(t)?e=>F(t,e):t};function Ko(e){e.target.composing=!0}function Yo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qo=Symbol("_assign"),Jo={created(e,{modifiers:{lazy:t,trim:n,number:i}},s){e[Qo]=Xo(s);const r=i||s.props&&"number"===s.props.type;xo(e,t?"change":"input",(t=>{if(t.target.composing)return;let i=e.value;n&&(i=i.trim()),r&&(i=V(i)),e[Qo](i)})),n&&xo(e,"change",(()=>{e.value=e.value.trim()})),t||(xo(e,"compositionstart",Ko),xo(e,"compositionend",Yo),xo(e,"change",Yo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:s,number:r}},a){if(e[Qo]=Xo(a),e.composing)return;const o=null==t?"":t;if((!r&&"number"!==e.type||/^0\d/.test(e.value)?e.value:V(e.value))!==o){if(document.activeElement===e&&"range"!==e.type){if(i&&t===n)return;if(s&&e.value.trim()===o)return}e.value=o}}},Zo={deep:!0,created(e,t,n){e[Qo]=Xo(n),xo(e,"change",(()=>{const t=e._modelValue,n=sl(e),i=e.checked,s=e[Qo];if(f(t)){const e=Te(t,n),r=-1!==e;if(i&&!r)s(t.concat(n));else if(!i&&r){const n=[...t];n.splice(e,1),s(n)}}else if(g(t)){const e=new Set(t);i?e.add(n):e.delete(n),s(e)}else s(rl(e,i))}))},mounted:el,beforeUpdate(e,t,n){e[Qo]=Xo(n),el(e,t,n)}};function el(e,{value:t,oldValue:n},i){let s;if(e._modelValue=t,f(t))s=Te(t,i.props.value)>-1;else if(g(t))s=t.has(i.props.value);else{if(t===n)return;s=_e(t,rl(e,!0))}e.checked!==s&&(e.checked=s)}const tl={created(e,{value:t},n){e.checked=_e(t,n.props.value),e[Qo]=Xo(n),xo(e,"change",(()=>{e[Qo](sl(e))}))},beforeUpdate(e,{value:t,oldValue:n},i){e[Qo]=Xo(i),t!==n&&(e.checked=_e(t,i.props.value))}},nl={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const s=g(t);xo(e,"change",(()=>
29{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?V(sl(e)):sl(e)));e[Qo](e.multiple?s?new Set(t):t:t[0]),e._assigning=!0,Nn((()=>{e._assigning=!1}))})),e[Qo]=Xo(i)},mounted(e,{value:t}){il(e,t)},beforeUpdate(e,t,n){e[Qo]=Xo(n)},updated(e,{value:t}){e._assigning||il(e,t)}};function il(e,t){const n=e.multiple,i=f(t);if(!n||i||g(t)){for(let s=0,r=e.options.length;s<r;s++){const r=e.options[s],a=sl(r);if(n)if(i){const e=typeof a;r.selected="string"===e||"number"===e?t.some((e=>String(e)===String(a))):Te(t,a)>-1}else r.selected=t.has(a);else if(_e(sl(r),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function sl(e){return"_value"in e?e._value:e.value}function rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const al={created(e,t,n){ll(e,t,n,null,"created")},mounted(e,t,n){ll(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){ll(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){ll(e,t,n,i,"updated")}};function ol(e,t){switch(e){case"SELECT":return nl;case"TEXTAREA":return Jo;default:switch(t){case"checkbox":return Zo;case"radio":return tl;default:return Jo}}}function ll(e,t,n,i,s){const r=ol(e.tagName,n.props&&n.props.type)[s];r&&r(e,t,n,i)}const cl=["ctrl","shift","alt","meta"],dl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>cl.some((n=>e[`${n}Key`]&&!t.includes(n)))},ul=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(n,...i)=>{for(let e=0;e<t.length;e++){const i=dl[t[e]];if(i&&i(n,t))return}return e(n,...i)})},hl={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},pl=(e,t)=>{const n=e._withKeys||(e._withKeys={}),i=t.join(".");return n[i]||(n[i]=n=>{if(!("key"in n))return;const i=M(n.key);return t.some((e=>e===i||hl[e]===i))?e(n):void 0})},fl=d({patchProp:(e,t,n,i,s,r)=>{const a="svg"===s;"class"===t?function(e,t,n){const i=e[Wa];i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,a):"style"===t?function(e,t,n){const i=e.style,s=_(n);let r=!1;if(n&&!s){if(t)if(_(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&_o(i,t,"")}else for(const e in t)null==n[e]&&_o(i,e,"");for(const e in n)"display"===e&&(r=!0),_o(i,e,n[e])}else if(s){if(t!==n){const e=i[mo];e&&(n+=";"+e),i.cssText=n,r=vo.test(n)}}else t&&e.removeAttribute("style");uo in e&&(e[uo]=r?i.display:"",e[ho]&&(i.display="none"))}(e,n,i):l(t)?c(t)||Io(e,t,0,i,r):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,i){if(i)return"innerHTML"===t||"textContent"===t||!!(t in e&&No(t)&&b(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(No(t)&&_(n))return!1;return t in e}(e,t,i,a))?(Co(e,t,i),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||Eo(e,t,i,a,0,"value"!==t)):!e._isVueCE||!/[A-Z]/.test(t)&&_(i)?("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),Eo(e,t,i,a)):Co(e,N(t),i,0,t)}},Ha);let ml,gl=!1;function yl(){return ml||(ml=er(fl))}function vl(){return ml=gl?ml:tr(fl),gl=!0,ml}const bl=(...e)=>{yl().render(...e)},_l=(...e)=>{const t=yl().createApp(...e),{mount:n}=t;return t.mount=e=>{const i=wl(e);if(!i)return;const s=t._component;b(s)||s.render||s.template||(s.template=i.innerHTML),1===i.nodeType&&(i.textContent="");const r=n(i,!1,Sl(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t},Tl=(...e)=>{const t=vl().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=wl(e);if(t)return n(t,!0,Sl(t))},t};function Sl(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function wl(e){if(_(e)){return document.querySelector(e)}return e}let El=!1;const Cl=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:mi,BaseTransitionPropsValidators:ui,Comment:Br,DeprecationTypes:null,EffectScope:Ae,ErrorCodes:{SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},ErrorTypeStrings:Ma,Fragment:Mr,KeepAlive:Fi,ReactiveEffect:De,Static:Ur,Suspense:Ar,Teleport:si,Text:Rr,TrackOpTypes:{GET:"get",HAS:"has",ITERATE:"iterate"},Transition:Ya,TransitionGroup:Ho,TriggerOpTypes:{SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},VueElement:Bo,assertNumber:function(e,t){},callWithAsyncErrorHandling:En,callWithErrorHandling:wn,camelize:N,capitalize:R,cloneVNode:ta,compatUtils:null,computed:Pa,createApp:_l,createBlock:Wr,createCommentVNode:sa,createElementBlock:Gr,createElementVNode:Jr,createHydrationRenderer:tr,createPropsRestProxy:function(e,t){const n={};for(const i in e)t.includes(i)||Object.defineProperty(n,i,{enumerable:!0,get:()=>e[i]});return n},createRenderer:er,createSSRApp:Tl,createSlots:function(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(f(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.key?(...e)=>{const t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e},createStaticVNode:ia,createTextVNode:na,createVNode:Zr,customRef:cn,defineAsyncComponent:function(e){b(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:s=200,hydrate:r,timeout:a,suspensible:o=!0,onError:l}=e;let c,d=null,u=0;const h=()=>{let e;return d||(e=d=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),l)return new Promise(((t,n)=>{l(e,(()=>t((u++,d=null,h()))),(()=>n(e)),u+1)}));throw e})).then((t=>
29e!==d&&d?d:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return Si({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(e,t,n){const i=r?()=>{const i=r(n,(t=>function(e,t){if(Ii(e)&&"["===e.data){let n=1,i=e.nextSibling;for(;i;){if(1===i.nodeType){if(!1===t(i))break}else if(Ii(i))if("]"===i.data){if(0==--n)break}else"["===i.data&&n++;i=i.nextSibling}}else t(e)}(e,t)));i&&(t.bum||(t.bum=[])).push(i)}:n;c?i():h().then((()=>!t.isUnmounted&&i()))},get __asyncResolved(){return c},setup(){const e=pa;if(wi(e),c)return()=>Ri(c,e);const t=t=>{d=null,Cn(t,e,13,!i)};if(o&&e.suspense||Sa)return h().then((t=>()=>Ri(t,e))).catch((e=>(t(e),()=>i?Zr(i,{error:e}):null)));const r=en(!1),l=en(),u=en(!!s);return s&&setTimeout((()=>{u.value=!1}),s),null!=a&&setTimeout((()=>{if(!r.value&&!l.value){const e=new Error(`Async component timed out after ${a}ms.`);t(e),l.value=e}}),a),h().then((()=>{r.value=!0,e.parent&&Bi(e.parent.vnode)&&e.parent.update()})).catch((e=>{t(e),l.value=e})),()=>r.value&&c?Ri(c,e):l.value&&i?Zr(i,{error:l.value}):n&&!u.value?Zr(n):void 0}})},defineComponent:Si,defineCustomElement:Mo,defineEmits:function(){return null},defineExpose:function(e){},defineModel:function(){},defineOptions:function(e){},defineProps:function(){return null},defineSSRCustomElement:(e,t)=>Mo(e,t,Tl),defineSlots:function(){return null},devtools:Ra,effect:function(e,t){e.effect instanceof De&&(e=e.effect.fn);const n=new De(e);t&&d(n,t);try{n.run()}catch(s){throw n.stop(),s}const i=n.run.bind(n);return i.effect=n,i},effectScope:Pe,getCurrentInstance:fa,getCurrentScope:Oe,getCurrentWatcher:function(){return vn},getTransitionRawChildren:Ti,guardReactiveProps:ea,h:Oa,handleError:Cn,hasInjectionContext:Us,hydrate:(...e)=>{vl().hydrate(...e)},hydrateOnIdle:(e=1e4)=>t=>{const n=Ni(t,{timeout:e});return()=>Di(n)},hydrateOnInteraction:(e=[])=>(t,n)=>{_(e)&&(e=[e]);let i=!1;const s=e=>{i||(i=!0,r(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},r=()=>{n((t=>{for(const n of e)t.removeEventListener(n,s)}))};return n((t=>{for(const n of e)t.addEventListener(n,s,{once:!0})})),r},hydrateOnMediaQuery:e=>t=>{if(e){const n=matchMedia(e);if(!n.matches)return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t);t()}},hydrateOnVisible:e=>(t,n)=>{const i=new IntersectionObserver((e=>{for(const n of e)if(n.isIntersecting){i.disconnect(),t();break}}),e);return n((e=>{if(e instanceof Element)return function(e){const{top:t,left:n,bottom:i,right:s}=e.getBoundingClientRect(),{innerHeight:r,innerWidth:a}=window;return(t>0&&t<r||i>0&&i<r)&&(n>0&&n<a||s>0&&s<a)}(e)?(t(),i.disconnect(),!1):void i.observe(e)})),()=>i.disconnect()},initCustomFormatter:function(){},initDirectivesForSSR:()=>{El||(El=!0,Jo.getSSRProps=({value:e})=>({value:e}),tl.getSSRProps=({value:e},t)=>{if(t.props&&_e(t.props.value,e))return{checked:!0}},Zo.getSSRProps=({value:e},t)=>{if(f(e)){if(t.props&&Te(e,t.props.value)>-1)return{checked:!0}}else if(g(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},al.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=ol(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},po.getSSRProps=({value:e})=>
29{if(!e)return{style:{display:"none"}}})},inject:Bs,isMemoSame:La,isProxy:Xt,isReactive:zt,isReadonly:Gt,isRef:Zt,isRuntimeOnly:()=>!_a,isShallow:Wt,isVNode:Xr,markRaw:Yt,mergeDefaults:function(e,t){const n=bs(e);for(const i in t){if(i.startsWith("__skip"))continue;let e=n[i];e?f(e)||b(e)?e=n[i]={type:e,default:t[i]}:e.default=t[i]:null===e&&(e=n[i]={default:t[i]}),e&&t[`__skip_${i}`]&&(e.skipFactory=!0)}return n},mergeModels:function(e,t){return e&&t?f(e)&&f(t)?e.concat(t):d({},bs(e),bs(t)):e||t},mergeProps:la,nextTick:Nn,normalizeClass:ne,normalizeProps:ie,normalizeStyle:Q,onActivated:Vi,onBeforeMount:Ki,onBeforeUnmount:Zi,onBeforeUpdate:Qi,onDeactivated:$i,onErrorCaptured:ss,onMounted:Yi,onRenderTracked:is,onRenderTriggered:ns,onScopeDispose:Le,onServerPrefetch:ts,onUnmounted:es,onUpdated:Ji,onWatcherCleanup:bn,openBlock:Vr,popScopeId:function(){Hn=null},provide:Rs,proxyRefs:on,pushScopeId:function(e){Hn=e},queuePostFlushCb:Rn,reactive:jt,readonly:$t,ref:en,registerRuntimeCompiler:function(e){_a=e,Ta=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ys))}},render:bl,renderList:ds,renderSlot:us,resolveComponent:as,resolveDirective:function(e){return ls("directives",e)},resolveDynamicComponent:function(e){return _(e)?ls(rs,e,!1)||e:e||os},resolveFilter:null,resolveTransitionHooks:yi,setBlockTracking:Hr,setDevtoolsHook:Ba,setTransitionHooks:_i,shallowReactive:Vt,shallowReadonly:qt,shallowRef:tn,ssrContextKey:cr,ssrUtils:Ua,stop:function(e){e.effect.stop()},toDisplayString:we,toHandlerKey:B,toHandlers:function(e,t){const n={};for(const i in e)n[t&&/[A-Z]/.test(i)?`on:${i}`:B(i)]=e[i];return n},toRaw:Kt,toRef:pn,toRefs:dn,toValue:function(e){return b(e)?e():rn(e)},transformVNodeArgs:function(e){},triggerRef:function(e){e.dep&&e.dep.trigger()},unref:rn,useAttrs:function(){return vs().attrs},useCssModule:function(e="$style"){{const t=fa();if(!t)return s;const n=t.type.__cssModules;if(!n)return s;const i=n[e];return i||s}},useCssVars:function(e){const t=fa();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>yo(e,n)))},i=()=>{const i=e(t.proxy);t.ce?yo(t.ce,i):go(t.subTree,i),n(i)};Qi((()=>{Rn(i)})),Yi((()=>{pr(i,a,{flush:"post"});const e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),es((()=>e.disconnect()))}))},useHost:Uo,useId:function(){const e=fa();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""},useModel:function(e,t,n=s){const i=fa(),r=N(t),a=M(t),o=yr(e,r),l=cn(((o,l)=>{let c,d,u=s;return hr((()=>{const t=e[r];U(c,t)&&(c=t,l())})),{get:()=>(o(),n.get?n.get(c):c),set(e){const o=n.set?n.set(e):e;if(!(U(o,c)||u!==s&&U(e,u)))return;const h=i.vnode.props;h&&(t in h||r in h||a in h)&&(`onUpdate:${t}`in h||`onUpdate:${r}`in h||`onUpdate:${a}`in h)||(c=e,l()),i.emit(`update:${t}`,o),U(e,o)&&U(e,u)&&!U(o,d)&&l(),u=e,d=o}}}));return l[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?o||s:l,done:!1}:{done:!0}}},l},useSSRContext:dr,useShadowRoot:function(){const e=Uo();return e&&e.shadowRoot},useSlots:function(){return vs().slots},useTemplateRef:function(e){const t=fa(),n=tn(null);if(t){const i=t.refs===s?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n},useTransitionState:ci,vModelCheckbox:Zo,vModelDynamic:al,vModelRadio:tl,vModelSelect:nl,vModelText:Jo,vShow:po,version:Na,warn:Da,watch:pr,watchEffect:ur,watchPostEffect:function(e,t){return fr(e,null,{flush:"post"})},watchSyncEffect:hr,withAsyncContext:function(e){const t=fa();let n=e();return va(),w(n)&&(n=n.catch((e=>{throw ya(t),e}))),[n,()=>ya(t)]},withCtx:Gn,withDefaults:function(e,t){return null},withDirectives:Wn,withKeys:pl,withMemo:function(e,t,n,i){const s=n[i];if(s&&La(s,e))return s;const r=t();return r.memo=e.slice(),r.cacheIndex=i,n[i]=r},withModifiers:ul,withScopeId:e=>Gn},Symbol.toStringTag,{value:"Module"}));function xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Il(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
29t%2?kl(Object(n),!0).forEach((function(t){xl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Al=function e(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),s=1;s<n;s++)i[s-1]=arguments[s];if(!i.length)return t;var r=i.shift();if(k(t)&&k(r)){for(var a in r)k(r[a])?(t[a]||Object.assign(t,xl({},a,{})),e(t[a],r[a])):Object.assign(t,xl({},a,r[a]));return e.apply(void 0,[t].concat(i))}},Pl=function(){return"undefined"!=typeof window&&"undefined"!=typeof document};function Ol(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),n=e.split("/");return""===t[0]&&"/"===e[e.length-1]&&t.shift(),n.join("/")+t.join("/")}var Ll,Nl={},Dl=function(){Nl=Al({bootstrap:!0,onReady:null,onError:null,onBeforeTrack:null,onAfterTrack:null,pageTrackerTemplate:null,customResourceURL:"https://www.googletagmanager.com/gtag/js",customPreconnectOrigin:"https://www.googletagmanager.com",deferScriptLoad:!1,pageTrackerExcludedRoutes:[],pageTrackerEnabled:!0,enabled:!0,disableScriptLoad:!1,pageTrackerScreenviewEnabled:!1,appName:null,pageTrackerUseFullPath:!1,pageTrackerPrependBase:!0,pageTrackerSkipSamePath:!0,globalDataLayerName:"dataLayer",globalObjectName:"gtag",defaultGroupName:"default",includes:null,config:{id:null,params:{send_page_view:!1}}},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})},Ml=function(){return Nl},Rl=function(){var e,t=Ml().globalObjectName;Pl()&&void 0!==window[t]&&(e=window)[t].apply(e,arguments)},Bl=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Ml(),s=i.config,r=i.includes;Rl.apply(void 0,["config",s.id].concat(t)),Array.isArray(r)&&r.forEach((function(e){Rl.apply(void 0,["config",e.id].concat(t))}))},Ul=function(e,t){Pl()&&(window["ga-disable-".concat(e)]=t)},Fl=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=Ml(),n=t.config,i=t.includes;Ul(n.id,e),Array.isArray(i)&&i.forEach((function(t){return Ul(t.id,e)}))},jl=function(){Fl(!0)},Vl=function(){return Ll},$l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ml(),i=n.includes,s=n.defaultGroupName;null==t.send_to&&Array.isArray(i)&&i.length&&(t.send_to=i.map((function(e){return e.id})).concat(s)),Rl("event",e,t)},ql=function(e){if(Pl()){var t;if("string"==typeof e)t={page_path:e};else if(e.path||e.fullPath){var n=Ml(),i=n.pageTrackerUseFullPath,s=n.pageTrackerPrependBase,r=Vl(),a=r&&r.options.base,o=i?e.fullPath:e.path;t=Il(Il({},e.name&&{page_title:e.name}),{},{page_path:s?Ol(o,a):o})}else t=e;null==t.page_location&&(t.page_location=window.location.href),null==t.send_page_view&&(t.send_page_view=!0),$l("page_view",t)}},Hl=function(e){var t,n=Ml().appName;e&&((t="string"==typeof e?{screen_name:e}:e).app_name=t.app_name||n,$l("screen_view",t))},zl=Object.freeze({__proto__:null,query:Rl,config:Bl,optOut:jl,optIn:function(){Fl(!1)},pageview:ql,screenview:Hl,exception:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$l.apply(void 0,["exception"].concat(t))},linker:function(e){Bl("linker",e)},time:function(e){$l("timing_complete",e)},set:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Rl.apply(void 0,["set"].concat(t))},refund:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];$l.apply(void 0,["refund"].concat(t))},purchase:function(e){$l("purchase",e)},customMap:function(e){Bl({custom_map:e})},event:$l}),Gl=function(e){return Il({send_page_view:!1},e)},Wl=function(){var e=Ml(),t=e.config,n=e.includes;Rl("config",t.id,Gl(t.params)),Array.isArray(n)&&n.forEach((function(e){Rl("config",e.id,Gl(e.params))}
29))},Xl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ml(),i=n.appName,s=n.pageTrackerTemplate,r=n.pageTrackerScreenviewEnabled;if(!n.pageTrackerSkipSamePath||e.path!==t.path){var a=e;b(s)?a=s(e,t):r&&(a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.app_name,e.screen_name,e}({app_name:i,screen_name:e.name})),r?Hl(a):ql(a)}},Kl=function(e){var t=Ml().pageTrackerExcludedRoutes;return t.includes(e.path)||t.includes(e.name)},Yl=function(){var e,t,n,i,s=Ml(),r=s.onReady,a=s.onError,o=s.globalObjectName,l=s.globalDataLayerName,c=s.config,d=s.customResourceURL,u=s.customPreconnectOrigin,h=s.deferScriptLoad,p=s.pageTrackerEnabled,f=s.disableScriptLoad,m=Boolean(p&&Vl());if(function(){if(Pl()){var e=Ml(),t=e.enabled,n=e.globalObjectName,i=e.globalDataLayerName;null==window[n]&&(window[i]=window[i]||[],window[n]=function(){window[i].push(arguments)}),window[n]("js",new Date),t||jl(),window[n]}}(),m?(e=Ml(),t=e.onBeforeTrack,n=e.onAfterTrack,(i=Vl()).isReady().then((function(){Nn().then((function(){var e=i.currentRoute;Wl(),Kl(e.value)||Xl(e.value)})),i.afterEach((function(e,i){Nn().then((function(){Kl(e)||(b(t)&&t(e,i),Xl(e,i),b(n)&&n(e,i))}))}))}))):Wl(),!f)return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){if("undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");if(r.async=!0,r.src=e,r.defer=t.defer,t.preconnectOrigin){var a=document.createElement("link");a.href=t.preconnectOrigin,a.rel="preconnect",s.appendChild(a)}s.appendChild(r),r.onload=n,r.onerror=i}}))}("".concat(d,"?id=").concat(c.id,"&l=").concat(l),{preconnectOrigin:u,defer:h}).then((function(){r&&r(window[o])})).catch((function(e){return a&&a(e),e}))};const Ql=6048e5,Jl=Symbol.for("constructDateFrom");function Zl(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Jl in e?e[Jl](t):e instanceof Date?new e.constructor(t):new Date(t)}function ec(e,t){return Zl(t||e,e)}function tc(e,t,n){const i=ec(e,void 0);return isNaN(t)?Zl(e,NaN):(t&&i.setDate(i.getDate()+t),i)}let nc={};function ic(){return nc}function sc(e,t){var n,i,s,r;const a=ic(),o=(null==t?void 0:t.weekStartsOn)??(null==(i=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:i.weekStartsOn)??a.weekStartsOn??(null==(r=null==(s=a.locale)?void 0:s.options)?void 0:r.weekStartsOn)??0,l=ec(e,null==t?void 0:t.in),c=l.getDay(),d=(c<o?7:0)+c-o;return l.setDate(l.getDate()-d),l.setHours(0,0,0,0),l}function rc(e,t){return sc(e,{...t,weekStartsOn:1})}function ac(e,t){const n=ec(e,void 0),i=n.getFullYear(),s=Zl(n,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const r=rc(s),a=Zl(n,0);a.setFullYear(i,0,4),a.setHours(0,0,0,0);const o=rc(a);return n.getTime()>=r.getTime()?i+1:n.getTime()>=o.getTime()?i:i-1}function oc(e){const t=ec(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function lc(e,t){const n=ec(e,void 0);return n.setHours(0,0,0,0),n}function cc(e,t,n){const[i,s]=function(e,...t){const n=Zl.bind(null,t.find((e=>"object"==typeof e)));return t.map(n)}(0,e,t),r=lc(i),a=lc(s),o=+r-oc(r),l=+a-oc(a);return Math.round((o-l)/864e5)}function dc(e,t,n){return tc(e,7*t)}function uc(e){return!(!function(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e||isNaN(+ec(e)))}const hc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function pc(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const fc={date:pc({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:pc({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:pc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},mc={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function gc(e){return(t,n)=>{let i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,s=null!=n&&n.width?String(n.width):t;i=e.formattingValues[s]||e.formattingValues[t]}else{const t=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[t]}return i[e.argumentCallback?e.argumentCallback(t):t]}}const yc={ordinalNumber:(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:gc({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:gc({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:gc({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:gc({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
29ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:gc({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function vc(e){return(t,n={})=>{const i=n.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],r=t.match(s);if(!r)return null;const a=r[0],o=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}(o,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}(o,(e=>e.test(a)));let c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;return{value:c,rest:t.slice(a.length)}}}const bc={ordinalNumber:(Tc={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(Tc.matchPattern);if(!n)return null;const i=n[0],s=e.match(Tc.parsePattern);if(!s)return null;let r=Tc.valueCallback?Tc.valueCallback(s[0]):s[0];return r=t.valueCallback?t.valueCallback(r):r,{value:r,rest:e.slice(i.length)}}),era:vc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:vc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:vc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:vc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:vc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},_c={code:"en-US",formatDistance:(e,t,n)=>{let i;const s=hc[e];return i="string"==typeof s?s:1===t?s.one:s.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i},formatLong:fc,formatRelative:(e,t,n,i)=>mc[e],localize:yc,match:bc,options:{weekStartsOn:0,firstWeekContainsDate:1}};var Tc;function Sc(e,t){const n=ec(e,void 0);return cc(n,function(e){const t=ec(e,void 0);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}(n))+1}function wc(e,t){const n=ec(e,void 0),i=+rc(n)-+function(e){const t=ac(e),n=Zl(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),rc(n)}(n);return Math.round(i/Ql)+1}function Ec(e,t){var n,i,s,r;const a=ec(e,null==t?void 0:t.in),o=a.getFullYear(),l=ic(),c=(null==t?void 0:t.firstWeekContainsDate)??(null==(i=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:i.firstWeekContainsDate)??l.firstWeekContainsDate??(null==(r=null==(s=l.locale)?void 0:s.options)?void 0:r.firstWeekContainsDate)??1,d=Zl((null==t?void 0:t.in)||e,0);d.setFullYear(o+1,0,c),d.setHours(0,0,0,0);const u=sc(d,t),h=Zl((null==t?void 0:t.in)||e,0);h.setFullYear(o,0,c),h.setHours(0,0,0,0);const p=sc(h,t);return+a>=+u?o+1:+a>=+p?o:o-1}function Cc(e,t){const n=ec(e,null==t?void 0:t.in),i=+sc(n,t)-+function(e,t){var n,i,s,r;const a=ic(),o=(null==t?void 0:t.firstWeekContainsDate)??(null==(i=null==(n=null==t?void 0:t.locale)?void 0:n.options)?void 0:i.firstWeekContainsDate)??a.firstWeekContainsDate??(null==(r=null==(s=a.locale)?void 0:s.options)?void 0:r.firstWeekContainsDate)??1,l=Ec(e,t),c=Zl((null==t?void 0:t.in)||e,0);return c.setFullYear(l,0,o),c.setHours(0,0,0,0),sc(c,t)}(n,t);return Math.round(i/Ql)+1}function xc(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const kc={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return xc("yy"===t?i%100:i,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):xc(n+1,2)},d:(e,t)=>xc(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];
vendor: 9,554 bytes, line 29
29default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>xc(e.getHours()%12||12,t.length),H:(e,t)=>xc(e.getHours(),t.length),m:(e,t)=>xc(e.getMinutes(),t.length),s:(e,t)=>xc(e.getSeconds(),t.length),S(e,t){const n=t.length,i=e.getMilliseconds();return xc(Math.trunc(i*Math.pow(10,n-3)),t.length)}},Ic="midnight",Ac="noon",Pc="morning",Oc="afternoon",Lc="evening",Nc="night",Dc={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),i=t>0?t:1-t;return n.ordinalNumber(i,{unit:"year"})}return kc.y(e,t)},Y:function(e,t,n,i){const s=Ec(e,i),r=s>0?s:1-s;if("YY"===t){return xc(r%100,2)}return"Yo"===t?n.ordinalNumber(r,{unit:"year"}):xc(r,t.length)},R:function(e,t){return xc(ac(e),t.length)},u:function(e,t){return xc(e.getFullYear(),t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return xc(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return xc(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return kc.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return xc(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const s=Cc(e,i);return"wo"===t?n.ordinalNumber(s,{unit:"week"}):xc(s,t.length)},I:function(e,t,n){const i=wc(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):xc(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):kc.d(e,t)},D:function(e,t,n){const i=Sc(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):xc(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const s=e.getDay(),r=(s-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return xc(r,2);case"eo":return n.ordinalNumber(r,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const s=e.getDay(),r=(s-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return xc(r,t.length);case"co":return n.ordinalNumber(r,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),s=0===i?7:i;switch(t){case"i":return String(s);case"ii":return xc(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let s;switch(s=12===i?Ac:0===i?Ic:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let s;switch(s=i>=17?Lc:i>=12?Oc:i>=4?Pc:Nc,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return kc.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):kc.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):xc(i,t.length)},k:function(e,t,n){let i=e.getHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):xc(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):kc.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):kc.s(e,t)},S:function(e,t){return kc.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return Rc(i);case"XXXX":case"XX":return Bc(i);default:return Bc(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return Rc(i);case"xxxx":case"xx":return Bc(i);default:return Bc(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mc(i,":");default:return"GMT"+Bc(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mc(i,":");default:return"GMT"+Bc(i,":")}},t:function(e,t,n){return xc(Math.trunc(+e/1e3),t.length)},T:function(e,t,n){return xc(+e,t.length)}};function Mc(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),r=i%60;return 0===r?n+String(s):n+String(s)+t+xc(r,2)}function Rc(e,t){return e%60==0?(e>0?"-":"+")+xc(Math.abs(e)/60,2):Bc(e,t)}function Bc(e,t=""){const n=e>0?"-":"+",i=Math.abs(e);return n+xc(Math.trunc(i/60),2)+t+xc(i%60,2)}const Uc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Fc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},jc={p:Fc,P:(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return Uc(e,t);let r;switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",Uc(i,t)).replace("{{time}}",Fc(s,t))}},Vc=/^D+$/,$c=/^Y+$/,qc=["D","DD","YY","YYYY"];const Hc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gc=/^'([^]*?)'?$/,Wc=/''/g,Xc=/[a-zA-Z]/;function Kc(e,t,n){var i,s,r,a;const o=ic(),l=o.locale??_c,c=o.firstWeekContainsDate??(null==(s=null==(i=o.locale)?void 0:i.options)?void 0:s.firstWeekContainsDate)??1,d=o.weekStartsOn??(null==(a=null==(r=o.locale)?void 0:r.options)?void 0:a.weekStartsOn)??0,u=ec(e,void 0);if(!uc(u))throw new RangeError("Invalid time value");let h=t.match(zc).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,jc[t])(e,l.formatLong)}return e})).join("").match(Hc).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Yc(e)};if(Dc[t])return{isToken:!0,value:e};if(t.match(Xc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));l.localize.preprocessor&&(h=l.localize.preprocessor(u,h));const p={firstWeekContainsDate:c,weekStartsOn:d,locale:l};return h.map((n=>{if(!n.isToken)return n.value;const i=n.value;(function(e){return $c.test(e)}(i)||function(e){return Vc.test(e)}(i))&&function(e,t,n){const i=function(e,t,n){const i="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(i),qc.includes(e))throw new RangeError(i)}(i,t,String(e));return(0,Dc[i[0]])(u,i,l.localize,p)})).join("")}function Yc(e){const t=e.match(Gc);return t?t[1].replace(Wc,"'"):e}function Qc(){const e=en(!0);return{currentNZDateTime:Pa((()=>
vendor: 6,388 bytes, line 29
29(new Date).toLocaleString("en-US",{timeZone:"Pacific/Auckland"}))),formatDate:(e,t="dd/M/yyyy h:mm a")=>Kc(new Date(e),t),logDebug:t=>{e.value}}}function Jc(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function Zc(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((n=>{typeof e[n]>"u"?e[n]=t[n]:Jc(t[n])&&Jc(e[n])&&Object.keys(t[n]).length>0&&Zc(e[n],t[n])}))}const ed={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function td(){const e=typeof document<"u"?document:{};return Zc(e,ed),e}const nd={document:ed,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>typeof setTimeout>"u"?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function id(){const e=typeof window<"u"?window:{};return Zc(e,nd),e}function sd(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function rd(){return Date.now()}function ad(e,t){void 0===t&&(t="x");const n=id();let i,s,r;const a=function(e){const t=id();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new n.WebKitCSSMatrix("none"===s?"":s)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(s=n.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=n.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}function od(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ld(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function cd(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i&&!ld(i)){const n=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,s=n.length;t<s;t+=1){const s=n[t],r=Object.getOwnPropertyDescriptor(i,s);void 0!==r&&r.enumerable&&(od(e[s])&&od(i[s])?i[s].__swiper__?e[s]=i[s]:cd(e[s],i[s]):!od(e[s])&&od(i[s])?(e[s]={},i[s].__swiper__?e[s]=i[s]:cd(e[s],i[s])):e[s]=i[s])}}}return e}function dd(e,t,n){e.style.setProperty(t,n)}function ud(e){let{swiper:t,targetPosition:n,side:i}=e;const s=id(),r=-t.translate;let a,o=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const c=n>r?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{a=(new Date).getTime(),null===o&&(o=a);const e=Math.max(Math.min((a-o)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let h=r+c*(n-r);if(d(h,n)&&(h=n),t.wrapperEl.scrollTo({[i]:h}),d(h,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:h})})),void s.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=s.requestAnimationFrame(u)};u()}function hd(e,t){void 0===t&&(t="");const n=id(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter((e=>e.matches(t))):i}function pd(e){try{return void console.warn(e)}catch{}}function fd(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),n}function md(e,t){return id().getComputedStyle(e,null).getPropertyValue(t)}function gd(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function yd(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function vd(e,t,n){const i=id();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function bd(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let _d,Td,Sd;function wd(){return _d||(_d=function(){const e=id(),t=td();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),_d}function Ed(e){return void 0===e&&(e={}),Td||(Td=function(e){let{userAgent:t}=void 0===e?{}:e;const n=wd(),i=id(),s=i.navigator.platform,r=t||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,l=i.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===s;let f="MacIntel"===s;return!d&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!p&&(a.os="android",a.android=!0),(d||h||u)&&(a.os="ios",a.ios=!0),a}(e)),Td}function Cd(){return Sd||(Sd=function(){const e=id(),t=Ed();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));
29n=e<16||16===e&&i<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=i();return{isSafari:n||r,needPerspectiveFix:n,need3dFix:r||s&&t.ios,isWebView:s}}()),Sd}var xd={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)})),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof t)return i;function s(){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];t.apply(i,r)}return s.__emitterProxy=t,i.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach((e=>{typeof t>"u"?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)}))})),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,i;for(var s=arguments.length,r=new Array(s),a=0;a<s;a++)r[a]=arguments[a];return"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],n=r.slice(1,r.length),i=e):(t=r[0].events,n=r[0].data,i=r[0].context||e),n.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(i,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(i,n)}))})),e}};const kd=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const Id=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const Ad=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},Pd=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Od=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=s,r=[n-t];return r.push(...Array.from({length:t}).map(((e,t)=>n+i+t))),void e.slides.forEach(((t,n)=>{r.includes(t.column)&&Pd(e,n)}))}const r=s+i-1;if(e.params.rewind||e.params.loop)for(let a=s-t;a<=r+t;a+=1){const t=(a%n+n)%n;(t<s||t>r)&&Pd(e,t)}else for(let a=Math.max(s-t,0);a<=Math.min(r+t,n-1);a+=1)a!==s&&(a>r||a<s)&&Pd(e,a)};var Ld={updateSize:function(){const e=this;let t,n;const i=e.el;t=typeof e.params.width<"u"&&null!==e.params.width?e.params.width:i.clientWidth,n=typeof e.params.height<"u"&&null!==e.params.height?e.params.height:i.clientHeight,!(0===t&&e.isHorizontal()||0===n&&e.isVertical())&&(t=t-parseInt(md(i,"padding-left")||0,10)-parseInt(md(i,"padding-right")||0,10),n=n-parseInt(md(i,"padding-top")||0,10)-parseInt(md(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:s,size:r,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=hd(s,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let h=[];const p=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,v=e.slidesGrid.length;let b=n.spaceBetween,_=-m,T=0,S=0;if(typeof r>"u")return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*r:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b,d.forEach((e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(dd(i,"--swiper-centered-offset-before",""),dd(i,"--swiper-centered-offset-after",""));const w=n.grid&&n.grid.rows>1&&e.grid;let E;w?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>typeof n.breakpoints[e].slidesPerView<"u")).length>0;for(let x=0;x<u;x+=1){let i;if(E=0,d[x]&&(i=d[x]),w&&e.grid.updateSlide(x,i,d),!d[x]||"none"!==md(i,"dis
29play")){if("auto"===n.slidesPerView){C&&(d[x].style[e.getDirectionLabel("width")]="");const s=getComputedStyle(i),r=i.style.transform,a=i.style.webkitTransform;if(r&&(i.style.transform="none"),a&&(i.style.webkitTransform="none"),n.roundLengths)E=e.isHorizontal()?vd(i,"width"):vd(i,"height");else{const e=t(s,"width"),n=t(s,"padding-left"),r=t(s,"padding-right"),a=t(s,"margin-left"),o=t(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)E=e+a+o;else{const{clientWidth:t,offsetWidth:s}=i;E=e+n+r+a+o+(s-t)}}r&&(i.style.transform=r),a&&(i.style.webkitTransform=a),n.roundLengths&&(E=Math.floor(E))}else E=(r-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(E=Math.floor(E)),d[x]&&(d[x].style[e.getDirectionLabel("width")]=`${E}px`);d[x]&&(d[x].swiperSlideSize=E),f.push(E),n.centeredSlides?(_=_+E/2+T/2+b,0===T&&0!==x&&(_=_-r/2-b),0===x&&(_=_-r/2-b),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),S%n.slidesPerGroup==0&&h.push(_),p.push(_)):(n.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&h.push(_),p.push(_),_=_+E+b),e.virtualSize+=E+b,T=E,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+g,a&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+b}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+b}px`),w&&e.grid.updateWrapperSize(E,h),!n.centeredSlides){const t=[];for(let i=0;i<h.length;i+=1){let s=h[i];n.roundLengths&&(s=Math.floor(s)),h[i]<=e.virtualSize-r&&t.push(s)}h=t,Math.floor(e.virtualSize-r)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-r)}if(l&&n.loop){const t=f[0]+b;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)h.push(h[h.length-1]+s)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&h.push(h[h.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(0===h.length&&(h=[0]),0!==b){const t=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");d.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==d.length-1)).forEach((e=>{e.style[t]=`${b}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(b||0)})),e-=b;const t=e>r?e-r:0;h=h.map((e=>e<=0?-m:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;f.forEach((t=>{e+=t+(b||0)})),e-=b;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<r){const n=(r-e-t)/2;h.forEach(((e,t)=>{h[t]=e-n})),p.forEach(((e,t)=>{p[t]=e+n}))}}if(Object.assign(e,{slides:d,snapGrid:h,slidesGrid:p,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){dd(i,"--swiper-centered-offset-before",-h[0]+"px"),dd(i,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(u!==c&&e.emit("slidesLengthChange"),h.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==v&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;n.push(a(e))}else n.push(a(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const e=n[s].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:s,snapGrid:r}=t;if(0===i.length)return;typeof i[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;s&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let l=0;l<i.length;l+=1){const e=i[l];let c=e.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(a+(n.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+o),u=(a-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+o),h=-(a-c),p=h+t.slidesSizesGrid[l],f=h>=0&&h<=t.size-t.slidesSizesGrid[l],m=h>=0&&h<t.size-1||p>1&&p<=t.size||h<=0&&p>=t.size;m&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(l)),kd(e,m,n.slideVisibleClass),kd(e,f,n.slideFullyVisibleClass),e.progress=s?-d:d,e.originalProgress=s?-u:u}},updateProgress:function(e){const t=this;if(typeof e>"u"){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:a,progressLoop:o}=t;const l=r,c=a;if(0===i)s=0,r=!0,a=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;r=n||s<=0,a=o||s>=1,n&&(s=0),o&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],r=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=s?(l-s)/a:(l+a-r)/a,o>1&&(o-=1)}Object.assign(t,{progress:s,progressLoop:o,isBeginning:r,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!a)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,r=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,o=e=>hd(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){let t=s-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else a?(l=t.find((e=>e.column===s)),d=t.find((e=>e.column===s+1)),c=t.find((e=>e.column===s-1))):l=t[s];l&&(a||(d=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{Id(e,e===l,n.slideActiveClass),Id(e,e===d,n.slideNextClass),Id(e,e===c,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:a,snapIndex:o}=t;let l,c=e;const d=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(typeof c>"u"&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;for(let r=0;r<t.length;r+=1)typeof t[r+1]<"u"?i>=t[r]&&i<t[r+1]-(t[r+1]-t[r])/2?s=r:i>=t[r]&&i<t[r+1]&&(s=r+1):i>=t[r]&&(s=r);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let h;if(t.virtual&&s.virtual.enabled&&s.loop)h=d(c);else if(u){const e=t.slides.find((e=>e.column===c));let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:a,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&Od(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>
291&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)}));let r,a=!1;if(s)for(let o=0;o<n.slides.length;o+=1)if(n.slides[o]===s){a=!0,r=o;break}if(!s||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};var Nd={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=ad(s,e);return r+=this.cssOverflowAdjustment(),n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:r,progress:a}=n;let o,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();o=0===d?0:(e-n.minTranslate())/d,o!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const r=this,{params:a,wrapperEl:o}=r;if(r.animating&&a.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,r.updateProgress(d),a.cssMode){const e=r.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return ud({swiper:r,targetPosition:-d,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){!r||r.destroyed||e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function Dd(e){let{swiper:t,runCallbacks:n,direction:i,step:s}=e;const{activeIndex:r,previousIndex:a}=t;let o=i;if(o||(o=r>a?"next":r<a?"prev":"reset"),t.emit(`transition${s}`),n&&r!==a){if("reset"===o)return void t.emit(`slideResetTransition${s}`);t.emit(`slideChangeTransition${s}`),"next"===o?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}var Md={setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),Dd({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;n.animating=!1,!i.cssMode&&(n.setTransition(0),Dd({swiper:n,runCallbacks:e,direction:t,step:"End"}))}};var Rd={slideTo:function(e,t,n,i,s){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:f}=r;if(!f&&!i&&!s||r.destroyed||r.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=r.params.speed);const m=Math.min(r.params.slidesPerGroupSkip,a);let g=m+Math.floor((a-m)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const y=-l[g];if(o.normalizeSlideIndex)for(let T=0;T<c.length;T+=1){const e=-Math.floor(100*y),t=Math.floor(100*c[T]),n=Math.floor(100*c[T+1]);typeof c[T+1]<"u"?e>=t&&e<n-(n-t)/2?a=T:e>=t&&e<n&&(a=T+1):e>=t&&(a=T)}if(r.initialized&&a!==u&&(!r.allowSlideNext&&(h?y>r.translate&&y>r.minTranslate():y<r.translate&&y<r.minTranslate())||!r.allowSlidePrev&&y>r.translate&&y>r.maxTranslate()&&(u||0)!==a))return!1;let v;a!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(y),v=a>u?"next":a<u?"prev":"reset";const b=r.virtual&&r.params.virtual.enabled;if((!b||!s)&&(h&&-y===r.translate||!h&&y===r.translate))return r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(y),"reset"!==v&&(r.transitionStart(n,v),r.transitionEnd(n,v)),!1;
29if(o.cssMode){const e=r.isHorizontal(),n=h?y:-y;if(0===t)b&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),b&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[e?"scrollLeft":"scrollTop"]=n}))):p[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}));else{if(!r.support.smoothScroll)return ud({swiper:r,targetPosition:n,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const _=Cd().isSafari;return b&&!s&&_&&r.isElement&&r.virtual.update(!1,!1,a),r.setTransition(t),r.setTranslate(y),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,v),0===t?r.transitionEnd(n,v):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){!r||r.destroyed||e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,v))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,i){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)a+=s.virtual.slidesBefore;else{let e;if(r){const t=a*s.params.grid.rows;e=s.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=s.getSlideIndexByData(a);const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n}=s.params;let o=s.params.slidesPerView;"auto"===o?o=s.slidesPerViewDynamic():(o=Math.ceil(parseFloat(s.params.slidesPerView,10)),n&&o%2==0&&(o+=1));let l=t-e<o;if(n&&(l=l||e<Math.ceil(o/2)),i&&n&&"auto"!==s.params.slidesPerView&&!r&&(l=!1),l){const i=n?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?s.realIndex:void 0})}if(r){const e=a*s.params.grid.rows;a=s.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else a=s.getSlideIndexByData(a)}return requestAnimationFrame((()=>{s.slideTo(a,t,n,i)})),s},slideNext:function(e,t,n){void 0===t&&(t=!0);const i=this,{enabled:s,params:r,animating:a}=i;if(!s||i.destroyed)return i;typeof e>"u"&&(e=i.params.speed);let o=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<r.slidesPerGroupSkip?1:o,c=i.virtual&&r.virtual.enabled;if(r.loop){if(a&&!c&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{i.slideTo(i.activeIndex+l,e,t,n)})),!0}return r.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const i=this,{params:s,snapGrid:r,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;typeof e>"u"&&(e=i.params.speed);const d=i.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(o?i.translate:-i.translate),p=r.map((e=>u(e))),f=s.freeMode&&s.freeMode.enabled;let m=r[p.indexOf(h)-1];if(typeof m>"u"&&(s.cssMode||f)){let e;r.forEach(((t,n)=>{h>=t&&(e=n)})),typeof e<"u"&&(m=f?r[e]:r[e>0?e-1:e])}let g=0;if(typeof m<"u"&&(g=a.indexOf(m),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame((()=>{i.slideTo(g,e,t,n)})),!0):i.slideTo(g,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const i=this;if(!i.destroyed)return typeof e>"u"&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t,n,i){void 0===t&&(t=!0),void 0===i&&(i=.5);const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);let r=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const e=s.snapGrid[o];l-e>(s.snapGrid[o+1]-e)*i&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[o-1];l-e<=(s.snapGrid[o]-e)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,r=e.clickedIndex;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-i/2||r>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),r=e.getSlideIndex(hd(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),sd((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-i?(e.loopFix(),r=e.getSlideIndex(hd(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),sd((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var Bd={loopCreate:function(e){const t=this,{params:n,slidesEl:i}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const s=()=>{hd(i,`.${n.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},r=t.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(r?n.grid.rows:1),o=t.slides.length%a!=0,l=r&&t.slides.length%n.grid.rows!=0,c=e=>{for(let i=0;i<e;i+=1){const e=t.isElement?fd("swiper-slide",[n.slideBlankClass]):fd("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(e)}};if(o){if(n.loopAddBlankSlides){c(a-t.slides.length%a),t.recalcSlides(),t.updateSlides()}else pd("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
29not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(l){if(n.loopAddBlankSlides){c(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides()}else pd("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:r,byController:a,byMousewheel:o}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:h,params:p}=l,{centeredSlides:f}=p;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return n&&(p.centeredSlides||0!==l.snapIndex?p.centeredSlides&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let m=p.slidesPerView;"auto"===m?m=l.slidesPerViewDynamic():(m=Math.ceil(parseFloat(p.slidesPerView,10)),f&&m%2==0&&(m+=1));const g=p.slidesPerGroupAuto?m:p.slidesPerGroup;let y=g;y%g!=0&&(y+=g-y%g),y+=p.loopAdditionalSlides,l.loopedSlides=y;const v=l.grid&&p.grid&&p.grid.rows>1;c.length<m+y?pd("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):v&&"row"===p.grid.fill&&pd("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const b=[],_=[];let T=l.activeIndex;typeof r>"u"?r=l.getSlideIndex(c.find((e=>e.classList.contains(p.slideActiveClass)))):T=r;const S="next"===i||!i,w="prev"===i||!i;let E=0,C=0;const x=v?Math.ceil(c.length/p.grid.rows):c.length,k=(v?c[r].column:r)+(f&&typeof s>"u"?-m/2+.5:0);if(k<y){E=Math.max(y-k,g);for(let e=0;e<y-k;e+=1){const t=e-Math.floor(e/x)*x;if(v){const e=x-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&b.push(t)}else b.push(x-t-1)}}else if(k+m>x-y){C=Math.max(k-(x-2*y),g);for(let e=0;e<C;e+=1){const t=e-Math.floor(e/x)*x;v?c.forEach(((e,n)=>{e.column===t&&_.push(n)})):_.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame((()=>{l.__preventObserver__=!1})),w&&b.forEach((e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1})),S&&_.forEach((e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1})),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():v&&(b.length>0&&w||_.length>0&&S)&&l.slides.forEach(((e,t)=>{l.grid.updateSlide(t,e,l.slides)})),p.watchSlidesProgress&&l.updateSlidesOffset(),n)if(b.length>0&&w){if(typeof t>"u"){const e=l.slidesGrid[T],t=l.slidesGrid[T+E]-e;o?l.setTranslate(l.translate-t):(l.slideTo(T+Math.ceil(E),0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(s){const e=v?b.length/p.grid.rows:b.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(_.length>0&&S)if(typeof t>"u"){const e=l.slidesGrid[T],t=l.slidesGrid[T-C]-e;o?l.setTranslate(l.translate-t):(l.slideTo(T-C,0,!1,!0),s&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=v?_.length/p.grid.rows:_.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!a){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===p.slidesPerView&&n})})):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&n})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];
29e.slides.forEach((e=>{const t=typeof e.swiperSlideIndex>"u"?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),i.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};var Ud={setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}};function Fd(e,t,n){const i=id(),{params:s}=e,r=s.edgeSwipeDetection,a=s.edgeSwipeThreshold;return!r||!(n<=a||n>=i.innerWidth-a)||"prevent"===r&&(t.preventDefault(),!0)}function jd(e){const t=this,n=td();let i=e;i.originalEvent&&(i=i.originalEvent);const s=t.touchEventsData;if("pointerdown"===i.type){if(null!==s.pointerId&&s.pointerId!==i.pointerId)return;s.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(s.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void Fd(t,i,i.targetTouches[0].pageX);const{params:r,touches:a,enabled:o}=t;if(!o||!r.simulateTouch&&"mouse"===i.pointerType||t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=i.target;if("wrapper"===r.touchEventsTarget&&!function(e,t){const n=id();let i=t.contains(e);return!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=function(e,t){var n,i;const s=[t];for(;s.length>0;){const t=s.shift();if(e===t)return!0;s.push(...t.children,...(null==(n=t.shadowRoot)?void 0:n.children)||[],...(null==(i=t.assignedElements)?void 0:i.call(t))||[])}}(e,t))),i}(l,t.wrapperEl)||"which"in i&&3===i.which||"button"in i&&i.button>0||s.isTouched&&s.isMoved)return;const c=!!r.noSwipingClass&&""!==r.noSwipingClass,d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(l=d[0]);const u=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,h=!(!i.target||!i.target.shadowRoot);if(r.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===td()||n===id())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(u,l):l.closest(u)))return void(t.allowClick=!0);if(r.swipeHandler&&!l.closest(r.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const p=a.currentX,f=a.currentY;if(!Fd(t,i,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=f,s.touchStartTime=rd(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let m=!0;l.matches(s.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(s.focusableElements))&&n.activeElement.blur();const g=m&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||g)&&!l.isContentEditable&&i.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function Vd(e){const t=td(),n=this,i=n.touchEventsData,{params:s,touches:r,rtlTranslate:a,enabled:o}=n;if(!o||!s.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type&&(null!==i.touchId||c.pointerId!==i.pointerId))return;if("touchmove"===c.type){if(l=[...c.changedTouches].find((e=>e.identifier===i.touchId)),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const d=l.pageX,u=l.pageY;if(c.preventedByNestedSwiper)return r.startX=d,void(r.startY=u);
vendor: 4,444 bytes, line 29
29if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u}),i.touchStartTime=rd()));if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(u<r.startY&&n.translate<=n.maxTranslate()||u>r.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(d<r.startX&&n.translate<=n.maxTranslate()||d>r.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=u;const h=r.currentX-r.startX,p=r.currentY-r.startY;if(n.params.threshold&&Math.sqrt(h**2+p**2)<n.params.threshold)return;if(typeof i.isScrolling>"u"){let e;n.isHorizontal()&&r.currentY===r.startY||n.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,i.isScrolling=n.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),typeof i.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(i.startMoving=!0),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let f=n.isHorizontal()?h:p,m=n.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;s.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),r.diff=f,f*=s.touchRatio,a&&(f=-f,m=-m);const g=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const y=n.params.loop&&!s.cssMode,v="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(y&&v&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,s.grabCursor&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==s._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&g!==n.touchesDirection&&y&&v&&Math.abs(f)>=1)return Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=f+i.startTranslate;let b=!0,_=s.resistanceRatio;if(s.touchReleaseOnEdges&&(_=0),f>0?(y&&v&&i.allowThresholdMove&&i.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(b=!1,s.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+f)**_))):f<0&&(y&&v&&i.allowThresholdMove&&i.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===s.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(b=!1,s.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-f)**_))),b&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(f)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 10,414 bytes, line 29
29if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=n.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function $d(e){const t=this,n=t.touchEventsData;let i,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(i=[...s.changedTouches].find((e=>e.identifier===n.touchId)),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId||s.pointerId!==n.pointerId)return;i=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&(!["pointercancel","contextmenu"].includes(s.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:r,touches:a,rtlTranslate:o,slidesGrid:l,enabled:c}=t;if(!c||!r.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=rd(),u=d-n.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target,e),t.emit("tap click",s),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=rd(),sd((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let h;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,h=r.followFinger?o?t.translate:-t.translate:-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const p=h>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let _=0;_<l.length;_+=_<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=_<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof l[_+e]<"u"?(p||h>=l[_]&&h<l[_+e])&&(f=_,m=l[_+e]-l[_]):(p||h>=l[_])&&(f=_,m=l[l.length-1]-l[l.length-2])}let g=null,y=null;r.rewind&&(t.isBeginning?y=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(h-l[f])/m,b=f<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?g:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(v>1-r.longSwipesRatio?t.slideTo(f+b):null!==y&&v<0&&Math.abs(v)>r.longSwipesRatio?t.slideTo(y):t.slideTo(f))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:f)):s.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f)}}function qd(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function Hd(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function zd(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Gd(e){const t=this;Ad(t,e.target),!t.params.cssMode&&("auto"===t.params.slidesPerView||t.params.autoHeight)&&t.update()}function Wd(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Xd=(e,t)=>{const n=td(),{params:i,el:s,wrapperEl:r,device:a}=e,o=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;!s||"string"==typeof s||(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[l]("click",e.onClick,!0),i.cssMode&&r[l]("scroll",e.onScroll),i.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",qd,!0):e[c]("observerUpdate",qd,!0),s[l]("load",e.onLoad,{capture:!0}))};var Kd={attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=jd.bind(e),e.onTouchMove=Vd.bind(e),e.onTouchEnd=$d.bind(e),e.onDocumentTouchStart=Wd.bind(e),t.cssMode&&(e.onScroll=zd.bind(e)),e.onClick=Hd.bind(e),e.onLoad=Gd.bind(e),Xd(e,"on")},detachEvents:function(){Xd(this,"off")}};const Yd=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Qd={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const a=td(),o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:a.querySelector(i.breakpointsBase),c=e.getBreakpoint(r,o,l);if(!c||e.currentBreakpoint===c)return;const d=(c in r?r[c]:void 0)||e.originalParams,u=Yd(e,i),h=Yd(e,d),p=e.params.grabCursor,f=d.grabCursor,m=i.enabled;u&&!h?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&h&&(s.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!f?e.unsetGrabCursor():!p&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(typeof d[t]>"u")return;const n=i[t]&&i[t].enabled,s=d[t]&&d[t].enabled;n&&!s&&e[t].disable(),!n&&s&&e[t].enable()}));const g=d.direction&&d.direction!==i.direction,y=i.loop&&(d.slidesPerView!==i.slidesPerView||g),v=i.loop;g&&n&&e.changeDirection(),cd(e.params,d);const b=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!b?e.disable():!m&&b&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",d),n&&(y?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&_?(e.loopCreate(t),e.updateSlides()):v&&!_&&e.loopDestroy()),e.emit("breakpoint",d)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const s=id(),r="window"===t?s.innerHeight:n.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let o=0;o<a.length;o+=1){const{point:e,value:r}=a[o];"window"===t?s.matchMedia(`(min-width: ${r}px)`).matches&&(i=e):r<=n.clientWidth&&(i=e)}return i||"max"}};var Jd={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:r}=e,a=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&n.push(t+i)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;!e||"string"==typeof e||(e.classList.remove(...t),this.emitContainerClasses())}};var Zd={checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},eu={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
vendor: 7,521 bytes, line 29
29spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function tu(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in s?("object"==typeof e[i]&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),cd(t,n)):cd(t,n)):cd(t,n)}}const nu={eventsEmitter:xd,update:Ld,translate:Nd,transition:Md,slide:Rd,loop:Bd,grabCursor:Ud,events:Kd,breakpoints:Qd,checkOverflow:Zd,classes:Jd},iu={};let su=class e{constructor(){let t,n;for(var i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?n=s[0]:[t,n]=s,n||(n={}),n=cd({},n),t&&!n.el&&(n.el=t);const a=td();if(n.el&&"string"==typeof n.el&&a.querySelectorAll(n.el).length>1){const t=[];return a.querySelectorAll(n.el).forEach((i=>{const s=cd({},n,{el:i});t.push(new e(s))})),t}const o=this;o.__swiper__=!0,o.support=wd(),o.device=Ed({userAgent:n.userAgent}),o.browser=Cd(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],n.modules&&Array.isArray(n.modules)&&o.modules.push(...n.modules);const l={};o.modules.forEach((e=>{e({params:n,swiper:o,extendParams:tu(n,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const c=cd({},eu,l);return o.params=cd({},c,iu,n),o.originalParams=cd({},o.params),o.passedParams=cd({},n),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=gd(hd(t,`.${n.slideClass}, swiper-slide`)[0]);return gd(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=hd(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),s=(n.maxTranslate()-i)*e+i;n.translateTo(s,typeof t>"u"?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:r,size:a,activeIndex:o}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[o]?Math.ceil(i[o].swiperSlideSize):0;for(let n=o+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=o-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let c=o+1;c<i.length;c+=1)(t?s[c]+r[c]-s[o]<a:s[c]-s[o]<a)&&(l+=1);else for(let c=o-1;c>=0;c-=1)s[o]-s[c]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&Ad(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(t.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEac
29h((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):hd(n,i())[0];return!s&&t.params.createElements&&(s=fd("div",t.params.wrapperClass),n.append(s),hd(n,`.${t.params.slideClass}`).forEach((e=>{s.append(e)}))),Object.assign(t,{el:n,wrapperEl:s,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===md(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===md(n,"direction")),wrongRTL:"-webkit-box"===md(s,"display")}),!0}init(e){const t=this;if(t.initialized||!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((e=>{e.complete?Ad(t,e):e.addEventListener("load",(e=>{Ad(t,e.target)}))})),Od(t),t.initialized=!0,Od(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:i,el:s,wrapperEl:r,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),a&&a.length&&a.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){cd(iu,e)}static get extendedDefaults(){return iu}static get defaults(){return eu}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);const n=e.prototype.__modules__;"function"==typeof t&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>e.installModule(t))),e):(e.installModule(t),e)}};Object.keys(nu).forEach((e=>
29{Object.keys(nu[e]).forEach((t=>{su.prototype[t]=nu[e][t]}))})),su.use([function(e){let{swiper:t,on:n,emit:i}=e;const s=id();let r=null,a=null;const o=()=>{!t||t.destroyed||!t.initialized||(i("beforeResize"),i("resize"))},l=()=>{!t||t.destroyed||!t.initialized||i("orientationchange")};n("init",(()=>{t.params.resizeObserver&&typeof s.ResizeObserver<"u"?!t||t.destroyed||!t.initialized||(r=new ResizeObserver((e=>{a=s.requestAnimationFrame((()=>{const{width:n,height:i}=t;let s=n,r=i;e.forEach((e=>{let{contentBoxSize:n,contentRect:i,target:a}=e;a&&a!==t.el||(s=i?i.width:(n[0]||n).inlineSize,r=i?i.height:(n[0]||n).blockSize)})),(s!==n||r!==i)&&o()}))})),r.observe(t.el)):(s.addEventListener("resize",o),s.addEventListener("orientationchange",l))})),n("destroy",(()=>{a&&s.cancelAnimationFrame(a),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;const r=[],a=id(),o=function(e,n){void 0===n&&(n={});const i=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void s("observerUpdate",e[0]);const n=function(){s("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)}));i.observe(e,{attributes:typeof n.attributes>"u"||n.attributes,childList:t.isElement||(typeof n.childList>"u"||n).childList,characterData:typeof n.characterData>"u"||n.characterData}),r.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=yd(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),i("destroy",(()=>{r.forEach((e=>{e.disconnect()})),r.splice(0,r.length)}))}]);const ru=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function au(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function ou(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{typeof e[n]>"u"?e[n]=t[n]:au(t[n])&&au(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:ou(e[n],t[n]):e[n]=t[n]}))}function lu(e){return void 0===e&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function cu(e){return void 0===e&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function du(e){return void 0===e&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function uu(e){void 0===e&&(e="");const t=e.split(" ").map((e=>e.trim())).filter((e=>!!e)),n=[];return t.forEach((e=>{n.indexOf(e)<0&&n.push(e)})),n.join(" ")}function hu(e){return void 0===e&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function pu(e,t){void 0===e&&(e={});const n={on:{}},i={};ou(n,eu),n._emitClasses=!0,n.init=!1;const s={},r=ru.map((e=>e.replace(/_/,""))),a=Object.assign({},e);
29return Object.keys(a).forEach((t=>{typeof e[t]>"u"||(r.indexOf(t)>=0?au(e[t])?(n[t]={},i[t]={},ou(n[t],e[t]),ou(i[t],e[t])):(n[t]=e[t],i[t]=e[t]):0===t.search(/on[A-Z]/)&&"function"==typeof e[t]?n.on[`${t[2].toLowerCase()}${t.substr(3)}`]=e[t]:s[t]=e[t])})),["navigation","pagination","scrollbar"].forEach((e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:i,rest:s,events:{}}}function fu(e,t,n){void 0===e&&(e={});const i=[],s={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},r=(e,t)=>{Array.isArray(e)&&e.forEach((e=>{const n="symbol"==typeof e.type;"default"===t&&(t="container-end"),n&&e.children?r(e.children,t):e.type&&("SwiperSlide"===e.type.name||"AsyncComponentWrapper"===e.type.name)||e.componentOptions&&"SwiperSlide"===e.componentOptions.tag?i.push(e):s[t]&&s[t].push(e)}))};return Object.keys(e).forEach((t=>{if("function"!=typeof e[t])return;const n=e[t]();r(n,t)})),n.value=t.value,t.value=i,{slides:i,slots:s}}const mu={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","auto
29playPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:i}=t;const{tag:s,wrapperTag:r}=e,a=en("swiper"),o=en(null),l=en(!1),c=en(!1),d=en(null),u=en(null),h=en(null),p={value:[]},f={value:[]},m=en(null),g=en(null),y=en(null),v=en(null),{params:b,passedParams:_}=pu(e);fu(n,p,f),h.value=_,f.value=p.value;b.onAny=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];i(e,...n)},Object.assign(b.on,{_beforeBreakpoint:()=>{fu(n,p,f),l.value=!0},_containerClasses(e,t){a.value=t}});const T={...b};if(delete T.wrapperClass,u.value=new su(T),u.value.virtual&&u.value.params.virtual.enabled){u.value.virtual.slides=p.value;const e={cache:!1,slides:p.value,renderExternal:e=>{o.value=e},renderExternalUpdate:!1};ou(u.value.params.virtual,e),ou(u.value.originalParams.virtual,e)}function S(e){return b.virtual?function(e,t,n){if(!n)return null;const i=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},s=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:r,to:a}=n,o=e.value.params.loop?-t.length:0,l=e.value.params.loop?2*t.length:t.length,c=[];for(let d=o;d<l;d+=1)d>=r&&d<=a&&c.length<t.length&&c.push(t[i(d)]);return c.map((t=>(t.props||(t.props={}),t.props.style||(t.props.style={}),t.props.swiperRef=e,t.props.style=s,t.type?Oa(t.type,{...t.props},t.children):t.componentOptions?Oa(t.componentOptions.Ctor,{...t.props},t.componentOptions.children):void 0)))}(u,e,o.value):(e.forEach(((e,t)=>{e.props||(e.props={}),e.props.swiperRef=u,e.props.swiperSlideIndex=t})),e)}return Ji((()=>{!c.value&&u.value&&(u.value.emitSlidesClasses(),c.value=!0);const{passedParams:t}=pu(e),n=function(e,t,n,i,s){const r=[];if(!t)return r;const a=e=>{r.indexOf(e)<0&&r.push(e)};if(n&&i){const e=i.map(s),t=n.map(s);e.join("")!==t.join("")&&a("children"),i.length!==n.length&&a("children")}return ru.filter((e=>"_"===e[0])).map((e=>e.replace(/_/,""))).forEach((n=>{if(n in e&&n in t)if(au(e[n])&&au(t[n])){const i=Object.keys(e[n]),s=Object.keys(t[n]);i.length!==s.length?a(n):(i.forEach((i=>{e[n][i]!==t[n][i]&&a(n)})),s.forEach((i=>{e[n][i]!==t[n][i]&&a(n)})))}else e[n]!==t[n]&&a(n)})),r}(t,h.value,p.value,f.value,(e=>e.props&&e.props.key));h.value=t,(n.length||l.value)&&u.value&&!u.value.destroyed&&function(e){let{swiper:t,slides:n,passedParams:i,changedParams:s,nextEl:r,prevEl:a,scrollbarEl:o,paginationEl:l}=e;const c=s.filter((e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e)),{params:d,pagination:u,navigation:h,scrollbar:p,virtual:f,thumbs:m}=t;let g,y,v,b,_,T,S,w;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&d.thumbs&&(!d.thumbs.swiper||d.thumbs.swiper.destroyed)&&(g=!0),s.includes("controller")&&i.controller&&i.controller.control&&d.controller&&!d.controller.control&&(y=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||l)&&(d.pagination||!1===d.pagination)&&u&&!u.el&&(v=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||o)&&(d.scrollbar||!1===d.scrollbar)&&p&&!p.el&&(b=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||a)&&(i.navigation.nextEl||r)&&(d.navigation||!1===d.navigation)&&h&&!h.prevEl&&!h.nextEl&&(_=!0);const E=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),d[e].prevEl=void 0,d[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),d[e].el=void 0,t[e].el=void 0))};s.includes("loop")&&t.isElement&&(d.loop&&!i.loop?T=!0:!d.loop&&i.loop?
29S=!0:w=!0),c.forEach((e=>{if(au(d[e])&&au(i[e]))Object.assign(d[e],i[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in i[e]&&!i[e].enabled&&E(e);else{const t=i[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?d[e]=i[e]:!1===t&&E(e)}})),c.includes("controller")&&!y&&t.controller&&t.controller.control&&d.controller&&d.controller.control&&(t.controller.control=d.controller.control),s.includes("children")&&n&&f&&d.virtual.enabled?(f.slides=n,f.update(!0)):s.includes("virtual")&&f&&d.virtual.enabled&&(n&&(f.slides=n),f.update(!0)),s.includes("children")&&n&&d.loop&&(w=!0),g&&m.init()&&m.update(!0),y&&(t.controller.control=d.controller.control),v&&(t.isElement&&(!l||"string"==typeof l)&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(d.pagination.el=l),u.init(),u.render(),u.update()),b&&(t.isElement&&(!o||"string"==typeof o)&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),t.el.appendChild(o)),o&&(d.scrollbar.el=o),p.init(),p.updateSize(),p.setTranslate()),_&&(t.isElement&&((!r||"string"==typeof r)&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=t.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),t.el.appendChild(r)),(!a||"string"==typeof a)&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=t.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),t.el.appendChild(a))),r&&(d.navigation.nextEl=r),a&&(d.navigation.prevEl=a),h.init(),h.update()),s.includes("allowSlideNext")&&(t.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(t.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&t.changeDirection(i.direction,!1),(T||w)&&t.loopDestroy(),(S||w)&&t.loopCreate(),t.update()}({swiper:u.value,slides:p.value,passedParams:t,changedParams:n,nextEl:m.value,prevEl:g.value,scrollbarEl:v.value,paginationEl:y.value}),l.value=!1})),Rs("swiper",u),pr(o,(()=>{Nn((()=>{(e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())})(u.value)}))})),Yi((()=>{d.value&&(function(e,t){let{el:n,nextEl:i,prevEl:s,paginationEl:r,scrollbarEl:a,swiper:o}=e;lu(t)&&i&&s&&(o.params.navigation.nextEl=i,o.originalParams.navigation.nextEl=i,o.params.navigation.prevEl=s,o.originalParams.navigation.prevEl=s),cu(t)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),du(t)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(n)}({el:d.value,nextEl:m.value,prevEl:g.value,paginationEl:y.value,scrollbarEl:v.value,swiper:u.value},b),i("swiper",u.value))})),Zi((()=>{u.value&&!u.value.destroyed&&u.value.destroy(!0,!1)})),()=>{const{slides:t,slots:i}=fu(n,p,f);return Oa(s,{ref:d,class:uu(a.value)},[i["container-start"],Oa(r,{class:hu(b.wrapperClass)},[i["wrapper-start"],S(t),i["wrapper-end"]]),lu(e)&&[Oa("div",{ref:g,class:"swiper-button-prev"}),Oa("div",{ref:m,class:"swiper-button-next"})],du(e)&&Oa("div",{ref:v,class:"swiper-scrollbar"}),cu(e)&&Oa("div",{ref:y,class:"swiper-pagination"}),i["container-end"]])}}},gu={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,i=!1;const{swiperRef:s}=e,r=en(null),a=en("swiper-slide"),o=en(!1);function l(e,t,n){t===r.value&&(a.value=n)}Yi((()=>{!s||!s.value||(s.value.on("_slideClass",l),i=!0)})),Qi((()=>{i||!s||!s.value||(s.value.on("_slideClass",l),i=!0)})),Ji((()=>{!r.value||!s||!s.value||(typeof e.swiperSlideIndex<"u"&&(r.value.swiperSlideIndex=e.swiperSlideIndex),s.value.destroyed&&"swiper-slide"!==a.value&&(a.value="swiper-slide"))})),Zi((()=>{!s||!s.value||s.value.off("_slideClass",l)}));const c=Pa((()=>({isActive:a.value.indexOf("swiper-slide-active")>=0,isVisible:a.value.indexOf("swiper-slide-visible")>=0,isPrev:a.value.indexOf("swiper-slide-prev")>=0,isNext:a.value.indexOf("swiper-slide-next")>=0})));Rs("swiperSlide",c);const d=()=>{o.value=!0};return()=>Oa(e.tag,{class:uu(`${a.value}`),ref:r,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&s&&s.value&&s.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:d},e.zoom?Oa("div",{class:"swiper-zoom-container","data-swiper-zoom":"number"==typeof e.zoom?e.zoom:void 0},[n.default&&n.default(c.value),e.lazy&&!o.value&&Oa("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),e.lazy&&!o.value&&Oa("div",{class:"swiper-lazy-preloader"})])}};function yu(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;const r=td(),a=id();function o(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let i=e;i.originalEvent&&(i=i.originalEvent);
29const o=i.keyCode||i.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===o,d=l&&34===o,u=37===o,h=39===o,p=38===o,f=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&h||t.isVertical()&&f||d)||!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&p||c))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||r.activeElement&&r.activeElement.nodeName&&("input"===r.activeElement.nodeName.toLowerCase()||"textarea"===r.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||d||u||h||p||f)){let e=!1;if(yd(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===yd(t.el,`.${t.params.slideActiveClass}`).length)return;const i=t.el,s=i.clientWidth,r=i.clientHeight,o=a.innerWidth,l=a.innerHeight,c=function(e){const t=id(),n=td(),i=e.getBoundingClientRect(),s=n.body,r=e.clientTop||s.clientTop||0,a=e.clientLeft||s.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+o-r,left:i.left+l-a}}(i);n&&(c.left-=i.scrollLeft);const d=[[c.left,c.top],[c.left+s,c.top],[c.left,c.top+r],[c.left+s,c.top+r]];for(let t=0;t<d.length;t+=1){const n=d[t];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||u||h)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((d||h)&&!n||(c||u)&&n)&&t.slideNext(),((c||u)&&!n||(d||h)&&n)&&t.slidePrev()):((c||d||p||f)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(d||f)&&t.slideNext(),(c||p)&&t.slidePrev()),s("keyPress",o)}}function l(){t.keyboard.enabled||(r.addEventListener("keydown",o),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(r.removeEventListener("keydown",o),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&l()})),i("destroy",(()=>{t.keyboard.enabled&&c()})),Object.assign(t.keyboard,{enable:l,disable:c})}function vu(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;function r(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function a(e,n){const i=t.params.navigation;(e=bd(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))}))}function o(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return a(n,!1),void a(e,!1);a(n,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=function(e,t,n,i){return e.params.createElements&&Object.keys(i).forEac
29h((s=>{if(!n[s]&&!0===n.auto){let r=hd(e.el,`.${i[s]}`)[0];r||(r=fd("div",i[s]),r.className=i[s],e.el.append(r)),n[s]=r,t[s]=r}})),n}(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=r(e.nextEl),i=r(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}),n=bd(n),i=bd(i);const s=(n,i)=>{n&&n.addEventListener("click","next"===i?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach((e=>s(e,"next"))),i.forEach((e=>s(e,"prev")))}function u(){let{nextEl:e,prevEl:n}=t.navigation;e=bd(e),n=bd(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>i(e,"next"))),n.forEach((e=>i(e,"prev")))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},i("init",(()=>{!1===t.params.navigation.enabled?h():(d(),o())})),i("toEdge fromEdge lock unlock",(()=>{o()})),i("destroy",(()=>{u()})),i("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=bd(e),n=bd(n),t.enabled?o():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),i("click",((e,n)=>{let{nextEl:i,prevEl:r}=t.navigation;i=bd(i),r=bd(r);const a=n.target;let o=r.includes(a)||i.includes(a);if(t.isElement&&!o){const e=n.path||n.composedPath&&n.composedPath();e&&(o=e.find((e=>i.includes(e)||r.includes(e))))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),s(!0===e?"navigationShow":"navigationHide"),[...i,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const h=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),o()},disable:h,update:o,init:d,destroy:u})}function bu(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function _u(e){let{swiper:t,extendParams:n,on:i}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let s,r,a=null,o=(new Date).getTime();function l(e){const t=a;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=bd(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function d(e){(e=bd(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function u(e,t){(e=bd(e)).forEach((e=>{e.setAttribute("role",t)}))}function h(e,t){(e=bd(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function p(e,t){(e=bd(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function f(e){(e=bd(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function m(e){(e=bd(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,i=e.target;if(!t.pagination||!t.pagination.el||i!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(bu(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=bd(t.navigation.prevEl);bd(t.navigation.nextEl).includes(i)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),e.includes(i)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}t.pagination&&i.matches(bu(t.params.pagination.bulletClass))&&i.click()}}function y(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function v(){return y()&&t.params.pagination.clickable}const b=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n),function(e,t){(e=bd(e)).forEac
29h((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},_=e=>{r&&r!==e.target&&!r.contains(e.target)&&(s=!0),t.a11y.clicked=!0},T=()=>{s=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},S=e=>{o=(new Date).getTime()},w=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||(new Date).getTime()-o<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;r=n;const i=t.slides.indexOf(n)===t.activeIndex,a=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);i||a||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{s||(t.params.loop?t.slideToLoop(parseInt(n.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(n),0),s=!1)})))},E=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&h(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const n=t.slides.length;e.slideLabelMessage&&t.slides.forEach(((i,s)=>{const r=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):s;p(i,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,n))}))},C=()=>{const e=t.params.a11y;t.el.append(a);const n=t.el;e.containerRoleDescriptionMessage&&h(n,e.containerRoleDescriptionMessage),e.containerMessage&&p(n,e.containerMessage),e.containerRole&&u(n,e.containerRole);const i=t.wrapperEl,s=e.id||i.getAttribute("id")||`swiper-wrapper-${function(e){return"x".repeat(e).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`,r=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";(function(e,t){(e=bd(e)).forEach((e=>{e.setAttribute("id",t)}))})(i,s),function(e,t){(e=bd(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(i,r),E();let{nextEl:o,prevEl:l}=t.navigation?t.navigation:{};o=bd(o),l=bd(l),o&&o.forEach((t=>b(t,s,e.nextSlideMessage))),l&&l.forEach((t=>b(t,s,e.prevSlideMessage))),v()&&bd(t.pagination.el).forEach((e=>{e.addEventListener("keydown",g)})),td().addEventListener("visibilitychange",S),t.el.addEventListener("focus",w,!0),t.el.addEventListener("focus",w,!0),t.el.addEventListener("pointerdown",_,!0),t.el.addEventListener("pointerup",T,!0)};i("beforeInit",(()=>{a=fd("span",t.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{t.params.a11y.enabled&&C()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&E()})),i("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(f(n),d(n)):(m(n),c(n))),e&&(t.isEnd?(f(e),d(e)):(m(e),c(e)))}()})),i("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;y()&&t.pagination.bullets.forEach((n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(u(n,"button"),p(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,gd(n)+1)))),n.matches(bu(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{t.params.a11y.enabled&&function(){a&&a.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=bd(e),n=bd(n),e&&e.forEach((e=>e.removeEventListener("keydown",g))),n&&n.forEach((e=>e.removeEventListener("keydown",g))),v()&&bd(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",g)})),td().removeEventListener("visibilitychange",S),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",w,!0),t.el.removeEventListener("pointerdown",_,!0),t.el.removeEventListener("pointerup",T,!0))}()}))}function Tu(e){let{swiper:t,extendParams:n,on:i,emit:s,params:r}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l,c,d,u,h,p,f,m,g=r&&r.autoplay?r.autoplay.delay:3e3,y=r&&r.autoplay?r.autoplay.delay:3e3,v=(new Date).getTime();function b(e){!t||t.destroyed||!t.wrapperEl||e.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",b),!(m||e.detail&&e.detail.bySwiperTouchMove)&&C())}const _=()=>
29{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?c=!0:c&&(y=l,c=!1);const e=t.autoplay.paused?l:v+y-(new Date).getTime();t.autoplay.timeLeft=e,s("autoplayTimeLeft",e,e/g),o=requestAnimationFrame((()=>{_()}))},T=e=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(o),_();let n=typeof e>"u"?t.params.autoplay.delay:e;g=t.params.autoplay.delay,y=t.params.autoplay.delay;const i=(()=>{let e;return e=t.virtual&&t.params.virtual.enabled?t.slides.find((e=>e.classList.contains("swiper-slide-active"))):t.slides[t.activeIndex],e?parseInt(e.getAttribute("data-swiper-autoplay"),10):void 0})();!Number.isNaN(i)&&i>0&&typeof e>"u"&&(n=i,g=i,y=i),l=n;const r=t.params.speed,c=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(r,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,r,!0,!0),s("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(r,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,r,!0,!0),s("autoplay")),t.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame((()=>{T()}))))};return n>0?(clearTimeout(a),a=setTimeout((()=>{c()}),n)):requestAnimationFrame((()=>{c()})),n},S=()=>{v=(new Date).getTime(),t.autoplay.running=!0,T(),s("autoplayStart")},w=()=>{t.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),s("autoplayStop")},E=(e,n)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(a),e||(f=!0);const i=()=>{s("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",b):C()};if(t.autoplay.paused=!0,n)return p&&(l=t.params.autoplay.delay),p=!1,void i();l=(l||t.params.autoplay.delay)-((new Date).getTime()-v),(!(t.isEnd&&l<0)||t.params.loop)&&(l<0&&(l=0),i())},C=()=>{t.isEnd&&l<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(v=(new Date).getTime(),f?(f=!1,T(l)):T(),t.autoplay.paused=!1,s("autoplayResume"))},x=()=>{if(t.destroyed||!t.autoplay.running)return;const e=td();"hidden"===e.visibilityState&&(f=!0,E(!0)),"visible"===e.visibilityState&&C()},k=e=>{"mouse"===e.pointerType&&(f=!0,m=!0,!t.animating&&!t.autoplay.paused&&E(!0))},I=e=>{"mouse"===e.pointerType&&(m=!1,t.autoplay.paused&&C())};i("init",(()=>{t.params.autoplay.enabled&&(t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",k),t.el.addEventListener("pointerleave",I)),td().addEventListener("visibilitychange",x),S())})),i("destroy",(()=>{t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("pointerenter",k),t.el.removeEventListener("pointerleave",I)),td().removeEventListener("visibilitychange",x),t.autoplay.running&&w()})),i("_freeModeStaticRelease",(()=>{(u||f)&&C()})),i("_freeModeNoMomentumRelease",(()=>{t.params.autoplay.disableOnInteraction?w():E(!0,!0)})),i("beforeTransitionStart",((e,n,i)=>{t.destroyed||!t.autoplay.running||(i||!t.params.autoplay.disableOnInteraction?E(!0,!0):w())})),i("sliderFirstMove",(()=>{if(!t.destroyed&&t.autoplay.running){if(t.params.autoplay.disableOnInteraction)return void w();d=!0,u=!1,f=!1,h=setTimeout((()=>{f=!0,u=!0,E(!0)}),200)}})),i("touchEnd",(()=>{if(!t.destroyed&&t.autoplay.running&&d){if(clearTimeout(h),clearTimeout(a),t.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&t.params.cssMode&&C(),u=!1,d=!1}})),i("slideChange",(()=>{t.destroyed||!t.autoplay.running||(p=!0)})),Object.assign(t.autoplay,{start:S,stop:w,pause:E,resume:C})}function Su(e){let t,n,i,s,{swiper:r,extendParams:a,on:o}=e;a({grid:{rows:1,fill:"column"}});const l=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};o("init",(()=>{s=r.params.grid&&r.params.grid.rows>1})),o("update",(()=>{const{params:e,el:t}=r,n=e.grid&&e.grid.rows>1;s&&!n?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),i=1,r.emitContainerClasses()):!s&&n&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),s=n})),r.grid={initSlides:e=>{const{slidesPerView:s}=r.params,{rows:a,fill:o}=r.params.grid,l=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;i=Math.floor(l/a),t=Math.floor(l/a)===l/a?l:Math.ceil(l/a)*a,"auto"!==s&&"row"===o&&(t=Math.max(t,s*a)),n=t/a},unsetSlides:()=>
vendor: 1,178 bytes, line 29
29{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,s,a)=>{const{slidesPerGroup:o}=r.params,c=l(),{rows:d,fill:u}=r.params.grid,h=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:a.length;let p,f,m;if("row"===u&&o>1){const n=Math.floor(e/(o*d)),i=e-d*o*n,r=0===n?o:Math.min(Math.ceil((h-n*d*o)/d),o);m=Math.floor(i/r),f=i-m*r+n*o,p=f+m*t/d,s.style.order=p}else"column"===u?(f=Math.floor(e/d),m=e-f*d,(f>i||f===i&&m===d-1)&&(m+=1,m>=d&&(m=0,f+=1))):(m=Math.floor(e/n),f=e-m*n);s.row=m,s.column=f,s.style.height=`calc((100% - ${(d-1)*c}px) / ${d})`,s.style[r.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",s.swiperSlideGridSet=!0},updateWrapperSize:(e,n)=>{const{centeredSlides:i,roundLengths:s}=r.params,a=l(),{rows:o}=r.params.grid;if(r.virtualSize=(e+a)*t,r.virtualSize=Math.ceil(r.virtualSize/o)-a,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+a}px`),i){const e=[];for(let t=0;t<n.length;t+=1){let i=n[t];s&&(i=Math.floor(i)),n[t]<r.virtualSize+n[0]&&e.push(i)}n.splice(0,n.length),n.push(...e)}}}}const wu={class:"default-episode"}
29,Eu=["src","alt"],Cu=["onClick"],xu={class:"swiper-container-wrapper",style:{position:"relative"}},ku={class:"episode-slide"},Iu={class:"default-episode"},Au=["src","alt"],Pu=["onClick"],Ou={class:"default-footer"},Lu=Si({__name:"LatestEpisodes",props:{episodes:{type:Array,required:!0},loading:{type:Boolean,default:!1},limit:{type:Number,default:10},defaultImage:{type:String,default:"/images/default.png"},enableSwiper:{type:Boolean,default:!1},customSwiperOptions:{type:Object,default:()=>({})},containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,buttonClass:String,titleClass:String,dateClass:String,descClass:String,routerName:String,routerClass:String},emits:["play-episode"],setup(e,{emit:t}){const n=[Su,vu,_u,yu,Tu],i=e,{formatDate:s}=Qc(),r=t,a=e=>{r("play-episode",e)},o=e=>{e.target.src=i.defaultImage},l={slidesPerView:1,spaceBetween:0,loop:!0,keyboard:{enabled:!0},navigation:{nextEl:null,prevEl:null},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"},breakpoint:{600:{slidesPerView:2,spaceBetween:15},1200:{slidesPerView:3,spaceBetween:15},1500:{slidesPerView:4,spaceBetween:15},2100:{slidesPerView:5,spaceBetween:15}}},c=Pa((()=>({...l,...i.customSwiperOptions,navigation:{...l.navigation,...i.customSwiperOptions.navigation||{}},a11y:{...l.a11y,...i.customSwiperOptions.a11y||{}},breakpoints:{...l.breakpoint,...i.customSwiperOptions.breakpoints||{}}}))),d=en(null),u=en(null),h=en(null),p=e=>{h.value=e};function f(e){var t;"Enter"===e.key&&(null==(t=d.value)||t.click())}function m(e){var t;"Enter"===e.key&&(null==(t=u.value)||t.click())}return pr([h,d,u],(([e,t,n])=>{e&&t&&n&&(e.params.navigation.nextEl=t,e.params.navigation.prevEl=n,e.navigation&&e.navigation.destroy&&e.navigation.init&&(e.navigation.destroy(),e.navigation.init(),e.navigation.update()))})),(t,i)=>{const r=as("RouterLink");return Vr(),Gr("div",{class:ne(["latest-episodes",e.containerClass])},[e.enableSwiper?(Vr(),Gr(Mr,{key:1},[e.episodes&&e.episodes.length?(Vr(),Gr("div",{key:0,class:ne(["episodes-list",e.listClass])},[Jr("div",xu,[Zr(rn(mu),la({modules:n},c.value,{onSwiper:p,style:{width:"100%"}}),{default:Gn((()=>[(Vr(!0),Gr(Mr,null,ds(e.episodes.slice(0,e.limit),(n=>(Vr(),Wr(rn(gu),{key:n.ID,class:ne(["episode-item",e.itemClass])},{default:Gn((()=>[Jr("div",ku,[us(t.$slots,"episode",{episode:n},(()=>[Jr("div",Iu,[Zr(r,{to:{name:e.routerName,params:{EID:n.ID}},title:n.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("img",{src:n.programmeImage||e.defaultImage,alt:n.Title,class:ne(["episode-image",e.imageClass]),onError:o},null,42,Au)])),_:2},1032,["to","title","class"]),Jr("button",{onClick:ul((e=>a(n)),["stop"]),type:"button",class:ne(["play-button",e.buttonClass]),"aria-label":"Play episode"},i[1]||(i[1]=[Jr("i",{class:"material-icons","aria-hidden":"true"},"play_arrow",-1)]),10,Pu),Zr(r,{to:{name:e.routerName,params:{EID:n.ID}},title:n.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("p",{class:ne(["episode-date",e.dateClass])}," Published: "+we(rn(s)(n.PublishDate)),3),Jr("h5",{class:ne(["episode-title",e.titleClass])},we(n.Title),3),Jr("span",{class:ne(["episode-desc",e.descClass])},we(n.Description),3)])),_:2},1032,["to","title","class"])])]),!0)])])),_:2},1032,["class"])))),128))])),_:3},16),Jr("button",{class:"swiper-button-next",ref_key:"nextElEpisode",ref:d,onKeydown:f},i[2]||(i[2]=[Jr("span",{class:"sr-only"},"Next",-1)]),544),Jr("button",{class:"swiper-button-prev",ref_key:"prevElEpisode",ref:u,onKeydown:m},i[3]||(i[3]=[Jr("span",{class:"sr-only"},"Prev",-1)]),544)])],2)):sa("",!0)],64)):(Vr(),Gr(Mr,{key:0},[e.episodes&&e.episodes.length?(Vr(),Gr("div",{key:0,class:ne(["episodes-list",e.listClass])},[(Vr(!0),Gr(Mr,null,ds(e.episodes.slice(0,e.limit),(n=>(Vr(),Gr("div",{key:n.ID,class:ne(["episode-item",e.itemClass])},[us(t.$slots,"episode",{episode:n},(()=>[Jr("div",wu,[Zr(r,{to:{name:e.routerName,params:{slug:n.programmeSlug}},title:n.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("img",{src:n.programmeImage||e.defaultImage,alt:n.Title,class:ne(["episode-image",e.imageClass]),onError:o},null,42,Eu)])),_:2},1032,["to","title","class"]),Jr("button",{onClick:ul((e=>a(n)),["stop"]),type:"button",class:ne(["play-button",e.buttonClass]),"aria-label":"Play episode"},i[0]||(i[0]=[Jr("i",{class:"material-icons","aria-hidden":"true"},"play_arrow",-1)]),10,Cu),Zr(r,{to:{name:e.routerName,params:{slug:n.programmeSlug}},title:n.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("p",{class:ne(["episode-date",e.dateClass])}," Published: "+we(rn(s)(n.PublishDate)),3),Jr("h5",{class:ne(["episode-title",e.titleClass])},we(n.Title),3),Jr("span",{class:ne(["episode-desc",e.descClass])}
29,we(n.Description),3)])),_:2},1032,["to","title","class"])])]),!0)],2)))),128))],2)):sa("",!0)],64)),us(t.$slots,"footer",{},(()=>[Jr("div",Ou,[Zr(r,{to:"/episodes"},{default:Gn((()=>i[4]||(i[4]=[na("Find more latest episodes")]))),_:1})])]),!0)],2)}}}),Nu=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},Du=Nu(Lu,[["__scopeId","data-v-5994d4e7"]]),Mu={class:"default-programme"},Ru=["src","alt"],Bu={class:"swiper-container-wrapper",style:{position:"relative"}},Uu={class:"programme-slide"},Fu={class:"default-programme"},ju=["src","alt"],Vu={class:"default-footer"},$u=Si({__name:"FeaturedProgrammes",props:{programmes:{type:Array,required:!0},loading:{type:Boolean,default:!1},defaultImage:{type:String,default:"/images/default.png"},enableSwiper:{type:Boolean,default:!1},customSwiperOptions:{type:Object,default:()=>({})},containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,titleClass:String,dateClass:String,descClass:String,emptyClass:String,routerName:String,routerClass:String},setup(e){const t=[Su,vu,_u,yu,Tu],n=e,i=e=>{e.target.src=n.defaultImage},s={slidesPerView:1,spaceBetween:0,loop:!0,keyboard:{enabled:!0},navigation:{nextEl:null,prevEl:null},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"},breakpoint:{600:{slidesPerView:2,spaceBetween:15},1200:{slidesPerView:3,spaceBetween:15},1500:{slidesPerView:4,spaceBetween:15},2100:{slidesPerView:5,spaceBetween:15}}},r=Pa((()=>({...s,...n.customSwiperOptions,navigation:{...s.navigation,...n.customSwiperOptions.navigation||{}},a11y:{...s.a11y,...n.customSwiperOptions.a11y||{}},breakpoints:{...s.breakpoint,...n.customSwiperOptions.breakpoints||{}}}))),a=en(null),o=en(null),l=en(null),c=e=>{l.value=e};pr([l,a,o],(([e,t,n])=>{e&&t&&n&&(e.params.navigation.nextEl=t,e.params.navigation.prevEl=n,e.navigation&&e.navigation.destroy&&e.navigation.init&&(e.navigation.destroy(),e.navigation.init(),e.navigation.update()))}));const d=e=>{var t;"Enter"===e.key&&(null==(t=a.value)||t.click())},u=e=>{var t;"Enter"===e.key&&(null==(t=o.value)||t.click())};return(n,s)=>{const l=as("RouterLink");return Vr(),Gr("div",{class:ne(["featured-programmes",e.containerClass])},[e.enableSwiper?(Vr(),Gr(Mr,{key:1},[e.programmes&&e.programmes.length?(Vr(),Gr("div",{key:0,class:ne(["programmes-list",e.listClass])},[Jr("div",Bu,[Zr(rn(mu),la({modules:t},r.value,{onSwiper:c,style:{width:"100%"}}),{default:Gn((()=>[(Vr(!0),Gr(Mr,null,ds(e.programmes,(t=>(Vr(),Wr(rn(gu),{key:t.ID,class:ne(["programme-item",e.itemClass])},{default:Gn((()=>[Jr("div",Uu,[us(n.$slots,"programme",{programme:t},(()=>[Jr("div",Fu,[Zr(l,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title},{default:Gn((()=>[Jr("img",{src:`https://images.accessmedia.nz/StationFolder/${t.folder}/Images/${t.Image}`,alt:t.Title,class:"img-raised rounded",onError:i},null,40,ju)])),_:2},1032,["to","title"]),Zr(l,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("h5",{class:ne(["programme-title",e.titleClass])},we(t.Title),3),Jr("span",{class:ne(["programme-desc",e.descClass])},we(t.Short_Description),3)])),_:2},1032,["to","title","class"])])]),!0)])])),_:2},1032,["class"])))),128))])),_:3},16),Jr("button",{class:"swiper-button-next",ref_key:"nextElProgramme",ref:a,onKeydown:d},s[1]||(s[1]=[Jr("span",{class:"sr-only"},"Next",-1)]),544),Jr("button",{class:"swiper-button-prev",ref_key:"prevElProgramme",ref:o,onKeydown:u},s[2]||(s[2]=[Jr("span",{class:"sr-only"},"Prev",-1)]),544)])],2)):(Vr(),Gr("div",{key:1,class:ne(["no-programmes",e.emptyClass])},[us(n.$slots,"empty",{},(()=>[s[3]||(s[3]=Jr("p",null,"No programmes available.",-1))]),!0)],2))],64)):(Vr(),Gr(Mr,{key:0},[e.programmes&&e.programmes.length?(Vr(),Gr("div",{key:0,class:ne(["programmes-list",e.listClass])},[(Vr(!0),Gr(Mr,null,ds(e.programmes,(t=>(Vr(),Gr("div",{key:t.ID,class:ne(["programme-item",e.itemClass])},[us(n.$slots,"programme",{programme:t},(()=>[Jr("div",Mu,[Zr(l,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title},{default:Gn((()=>[Jr("img",{src:`https://images.accessmedia.nz/StationFolder/${t.folder}/Images/${t.Image}`,alt:t.Title,class:"img-raised rounded",onError:i},null,40,Ru)])),_:2},1032,["to","title"]),Zr(l,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("h5",{class:ne(["programme-title",e.titleClass])},we(t.Title),3),Jr("span",{class:ne(["programme-desc",e.descClass])}
29,we(t.Short_Description),3)])),_:2},1032,["to","title","class"])])]),!0)],2)))),128))],2)):(Vr(),Gr("div",{key:1,class:ne(["no-programmes",e.emptyClass])},[us(n.$slots,"empty",{},(()=>[s[0]||(s[0]=Jr("p",null,"No programmes available.",-1))]),!0)],2))],64)),us(n.$slots,"footer",{},(()=>[Jr("div",Vu,[Zr(l,{to:"/programmes"},{default:Gn((()=>s[4]||(s[4]=[na("Find more featured programmes")]))),_:1})])]),!0)],2)}}}),qu=Nu($u,[["__scopeId","data-v-8ef15d86"]]),Hu={class:"programme-header"},zu={class:"programme-image-wrapper"},Gu=["src","alt"],Wu={key:0,class:"programme-host"},Xu={key:1,class:"programme-category"},Ku={key:2,class:"programme-language"},Yu={key:3,class:"programme-broadcast-times"},Qu=["innerHTML"],Ju={key:0,class:"programme-sponsor"},Zu={class:"sponsor-info"},eh=["src","alt"],th={key:0},nh={class:"sponsor-details"},ih={key:0},sh=["href"],rh=["href"],ah=["href"],oh=["title"],lh={key:1},ch={class:"episode-header"},dh=["onClick"],uh={class:"material-icons","aria-hidden":"true"},hh={class:"episode-description"},ph={class:"episode-icons"},fh=["onClick"],mh=["title","onClick"],gh=Si({__name:"ProgrammeItem",props:{station:{type:Object,required:!0},selectedProgramme:{type:Object,required:!0},episodes:{type:Array,required:!0},loading:{type:Boolean,default:!1},defaultImage:{type:String,default:"/images/default.png"},routerSearch:{type:String,required:!0},routerEpisode:{type:String,required:!0},titleClass:String,containerClass:String,detailsSectionClass:String,imageClass:String,metadataClass:String,descriptionClass:String,linksClass:String,emptyClass:String,episodeContainerClass:String,episodeListClass:String,episodeItemClass:String,episodeTitleClass:String,episodeDateClass:String,episodePlayerClass:String,episodeButtonClass:String,episodeDownloadClass:String,episodeCopyClass:String,videoPlayerClass:String,sponsorImageClass:String,useHtmlDescription:{type:Boolean,default:!1}},emits:["play-episode","now-playing"],setup(e,{emit:t}){const n=e,{formatDate:i,currentNZDateTime:s}=Qc(),r=en(null),a=en("https://ondemand.accessmedia.nz"),o=en("https://accessmedia.nz/player"),l=en([]),c=en(!1),d=t;pr((()=>n.selectedProgramme),((e,t)=>{e!==t&&(c.value=!0,setTimeout((()=>{c.value=!1}),500))}),{immediate:!0}),pr((()=>n.episodes),(e=>{l.value=e.slice(0,10)}),{immediate:!0});const u=()=>{const e=l.value.length,t=n.episodes.slice(e,e+10);l.value.push(...t)},h=e=>{e.target.src=n.defaultImage},p=e=>{navigator.clipboard.writeText(e).then((()=>{alert("Link copied to clipboard!")}))},f=e=>{if(!e.PublishDate)return!1;const t=new Date(e.PublishDate).getTime();return new Date(s.value).getTime()-t<=6048e5},m=Pa((()=>`https://feeds.accessmedia.nz/V2/itunes/${n.selectedProgramme.ID}`)),g=Pa((()=>`https://images.accessmedia.nz/StationFolder/${n.station.Folder}/Images/${n.selectedProgramme.Image}`.replace(/ /g,"%20"))),y=Pa((()=>n.selectedProgramme.SponsorImage?`https://images.accessmedia.nz/StationFolder/${n.selectedProgramme.SponsorImage}`.replace(/ /g,"%20"):n.defaultImage));return(t,s)=>{const c=as("RouterLink");return Vr(),Gr("div",{class:ne(["programme-item",e.containerClass])},[Jr("div",Hu,[Jr("div",zu,[us(t.$slots,"image",{},(()=>[Jr("img",{src:g.value||e.defaultImage,alt:e.selectedProgramme.Title,class:ne(["programme-image",e.imageClass]),onError:h},null,42,Gu)]),!0)]),us(t.$slots,"title",{},(()=>[Jr("h1",{class:ne(["programme-title",e.titleClass])},we(e.selectedProgramme.Title),3)]),!0)]),Jr("div",{class:ne(["programme-details-section",e.detailsSectionClass])},[us(t.$slots,"metadata",{},(()=>[Jr("p",null,[e.selectedProgramme.Host?(Vr(),Gr("span",Wu," Host: "+we(e.selectedProgramme.Host),1)):sa("",!0),e.selectedProgramme.Category?(Vr(),Gr("span",Xu,[s[1]||(s[1]=na(" Categories: ")),Zr(c,{to:{name:e.routerSearch,query:{Category:e.selectedProgramme.Category}}},{default:Gn((()=>[na(we(e.selectedProgramme.Category),1)])),_:1},8,["to"])])):sa("",!0),e.selectedProgramme.Language?(Vr(),Gr("span",Ku,[s[2]||(s[2]=na(" Languages: ")),Zr(c,{to:{name:e.routerSearch,query:{Language:e.selectedProgramme.Language}}},{default:Gn((()=>
29[na(we(e.selectedProgramme.Language),1)])),_:1},8,["to"])])):sa("",!0),e.selectedProgramme.BroadcastTimes?(Vr(),Gr("span",Yu," Broadcast Times: "+we(e.selectedProgramme.BroadcastTimes),1)):sa("",!0)])]),!0)],2),us(t.$slots,"description",{},(()=>[e.useHtmlDescription&&e.selectedProgramme.Web_Description?(Vr(),Gr("div",{key:0,class:ne(["programme-description",e.descriptionClass]),innerHTML:e.selectedProgramme.Web_Description},null,10,Qu)):(Vr(),Gr("p",{key:1,class:ne(["programme-description",e.descriptionClass])},we(e.selectedProgramme.Long_Description||"Description not available"),3))]),!0),us(t.$slots,"sponsor",{},(()=>[e.selectedProgramme.SponsorName||e.selectedProgramme.SponsorWebsite||e.selectedProgramme.SponsorDescription?(Vr(),Gr("div",Ju,[s[3]||(s[3]=Jr("h3",null,"This programme is sponsored by",-1)),Jr("div",Zu,[Jr("img",{src:y.value||e.defaultImage,alt:e.selectedProgramme.SponsorName,class:ne(["sponsor-image",e.sponsorImageClass]),onError:h},null,42,eh),e.selectedProgramme.SponsorName?(Vr(),Gr("h5",th,we(e.selectedProgramme.SponsorName),1)):sa("",!0),Jr("div",nh,[e.selectedProgramme.SponsorDescription?(Vr(),Gr("p",ih,we(e.selectedProgramme.SponsorDescription),1)):sa("",!0),e.selectedProgramme.SponsorWebsite?(Vr(),Gr("a",{key:1,href:e.selectedProgramme.SponsorWebsite,target:"_blank",rel:"noopener noreferrer"},"See sponsor's website",8,sh)):sa("",!0)])])])):sa("",!0)]),!0),us(t.$slots,"links",{},(()=>[Jr("div",{class:ne(["programme-links",e.linksClass])},[e.selectedProgramme.ITunes_Link?(Vr(),Gr("a",{key:0,href:e.selectedProgramme.ITunes_Link,target:"_blank","aria-label":"iTunes Link"},s[4]||(s[4]=[Jr("i",{class:"fa-brands fa-itunes"},null,-1)]),8,rh)):sa("",!0),e.selectedProgramme.Spotify_Link?(Vr(),Gr("a",{key:1,href:e.selectedProgramme.Spotify_Link,target:"_blank","aria-label":"Spotify Link"},s[5]||(s[5]=[Jr("i",{class:"fa-brands fa-spotify"},null,-1)]),8,ah)):sa("",!0),Jr("a",{title:"Copy podcast link "+m.value,onClick:s[0]||(s[0]=ul((e=>p(m.value)),["stop"])),"aria-label":"copy podcast link"},s[6]||(s[6]=[Jr("i",{class:"fa fa-clipboard"},null,-1)]),8,oh)],2)]),!0),us(t.$slots,"episodes",{},(()=>[Jr("div",{class:ne(["episode-list-container",e.episodeContainerClass])},[Jr("div",{id:"vid-player-section",class:ne(["video-player",e.videoPlayerClass])},[Jr("div",{class:ne(["episodes-list-section",e.episodeListClass])},[0===l.value.length?(Vr(),Gr("div",{key:0,class:ne(["no-episodes",e.emptyClass])},[us(t.$slots,"empty",{},(()=>[s[7]||(s[7]=Jr("p",null,"No episodes available.",-1))]),!0)],2)):(Vr(),Gr("div",lh,[us(t.$slots,"header",{},(()=>[s[8]||(s[8]=Jr("h4",{class:"default-header"},"All Episodes",-1))]),!0),(Vr(!0),Gr(Mr,null,ds(l.value,((l,u)=>(Vr(),Gr("div",{key:u,class:ne(["episode-item",e.episodeItemClass])},[us(t.$slots,"episode-item",{episode:l},(()=>[Jr("div",ch,[Jr("button",{onClick:ul((e=>(e=>{d("play-episode",e),r.value=e.ID})(l)),["stop"]),type:"button",class:ne(["episode-playbtn",e.episodeButtonClass]),"aria-label":"Play episode"},[Jr("i",uh,we(r.value===l.ID?"chevron_right":"play_arrow"),1)],10,dh),Zr(c,{class:"go-to-episode-link",to:{name:e.routerEpisode,params:{EID:l.ID}}},{default:Gn((()=>[Jr("h5",{class:ne(e.episodeTitleClass)},we(l.Title),3)])),_:2},1032,["to"])]),Jr("p",{class:ne(e.episodeDateClass)}," Published: "+we(rn(i)(l.PublishDate,"do MMMM yyyy")),3),Jr("div",hh,[Zr(c,{class:"go-to-episode-link",to:{name:e.routerEpisode,params:{EID:l.ID}}},{default:Gn((()=>[Jr("p",null,we(l.Description),1)])),_:2},1032,["to"])]),Jr("div",ph,[f(l)?(Vr(),Gr("a",{key:0,tabindex:"0",onClick:ul((e=>(e=>{const t=`/StationFolder/${n.station.Folder}/`,i=`${a.value}${t}${e.MediaFile}`,s=document.createElement("a");s.href=i,s.download=e.Title||"download",document.body.appendChild(s),s.click(),document.body.removeChild(s)})(l)),["stop"]),class:ne(["download-icon",e.episodeDownloadClass]),"aria-label":"download episode",title:"download episode"},s[9]||(s[9]=[Jr("i",{class:"fa-regular fa-circle-down fa-xl"},null,-1)]),10,fh)):sa("",!0),Jr("a",{tabindex:"0",title:"Copy episode link "+o.value+"?EID="+l.ID,onClick:ul((e=>p(o.value+"?EID="+l.ID)),["stop"]),class:ne(["copy-icon",e.episodeCopyClass]),"aria-label":"copy podcast link to clipboard"},s[10]||(s[10]=[Jr("i",{class:"fa fa-clipboard fa-xl"},null,-1)]),10,mh)])]),!0),s[11]||(s[11]=Jr("hr",null,null,-1))],2)))
29),128)),l.value.length<e.episodes.length?(Vr(),Gr("button",{key:0,onClick:u,type:"button",class:"load-more","aria-label":"Load more episodes"}," Load More Episodes ")):sa("",!0)]))],2)],2)],2)]),!0)],2)}}}),yh=Nu(gh,[["__scopeId","data-v-2662aa3b"]]);var vh,bh,_h=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Th(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sh(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),n}function wh(){return bh?vh:(bh=1,e=typeof window<"u"?window:typeof _h<"u"?_h:typeof self<"u"?self:{},vh=e);var e}const Eh=Th(wh()),Ch=Sh(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var xh,kh;function Ih(){if(kh)return xh;kh=1;var e,t=typeof _h<"u"?_h:typeof window<"u"?window:{},n=Ch;return typeof document<"u"?e=document:(e=t["__GLOBAL_DOCUMENT_CACHE@4"])||(e=t["__GLOBAL_DOCUMENT_CACHE@4"]=n),xh=e}const Ah=Th(Ih());var Ph,Oh={exports:{}};var Lh=(Ph||(Ph=1,function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return a[e];var n,r=String(e);return(n=i[r.toLowerCase()])?n:(n=s[r.toLowerCase()])||(1===r.length?r.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var r;if(r=i[t.toLowerCase()])return r===n;if(r=s[t.toLowerCase()])return r===n}else if("number"==typeof t)return t===n;return!1}};var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},s=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
30/*!
31     * Programatically add the following
32     */for(r=97;r<123;r++)i[String.fromCharCode(r)]=r-32;for(var r=48;r<58;r++)i[r-48]=r;for(r=1;r<13;r++)i["f"+r]=r+111;for(r=0;r<10;r++)i["numpad "+r]=r+96;var a=t.names=t.title={};for(r in i)a[i[r]]=r;for(var o in s)i[o]=s[o]}(Oh,Oh.exports)),Oh.exports);const Nh=Th(Lh);var Dh,Mh;var Rh=Mh?Dh:(Mh=1,Dh=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(up){i=up}return[i,n]});const Bh=Th(Rh);var Uh,Fh,jh,Vh,$h,qh,Hh={exports:{}},zh={exports:{}};var Gh=function(){if(qh)return Hh.exports;qh=1;var e=wh(),t=(Uh||(Uh=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zh)),zh.exports),n=function(){if(jh)return Fh;jh=1,Fh=function(t){if(!t)return!1;var n=e.call(t);return"[object Function]"===n||"function"==typeof t&&"[object RegExp]"!==n||typeof window<"u"&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString;return Fh}();r.httpHandler=function(){if($h)return Vh;$h=1;var e=wh();return Vh=function(t,n){return void 0===n&&(n=!1),function(i,s,r){if(i)t(i);else if(s.statusCode>=400&&s.statusCode<=599){var a=r;if(n)if(e.TextDecoder){var o=(void 0===(l=s.headers&&s.headers["content-type"])&&(l=""),l.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),i=n[0],s=n[1];return"charset"===i.trim()?s.trim():e}),"utf-8"));try{a=new TextDecoder(o).decode(r)}catch{}}else a=String.fromCharCode.apply(null,new Uint8Array(r));t({cause:a})}else{var l;t(null,r)}}}}();
33/**
34   * @license
35   * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
36   * Copyright (c) 2014 David Björklund
37   * Available under the MIT license
38   * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
39   */
40var i=function(e){var t={};return e&&e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),s=e.slice(n+1).trim();typeof t[i]>"u"?t[i]=s:Array.isArray(t[i])?t[i].push(s):t[i]=[t[i],s]})),t};function s(e,i,s){var r=e;return n(i)?(s=i,"string"==typeof e&&(r={uri:e})):r=t({},i,{uri:e}),r.callback=s,r}function r(e,t,n){return a(t=s(e,t,n))}function a(e){if(typeof e.callback>"u")throw new Error("callback argument missing");var t=!1,n=function(n,i,s){t||(t=!0,e.callback(n,i,s))};function s(){var e=void 0;if(e=l.response?l.response:l.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch{}return null}(l),y)try{e=JSON.parse(e)}catch{}return e}function a(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,v)}function o(){if(!d){var t;clearTimeout(u),t=e.useXDR&&void 0===l.status?200:1223===l.status?204:l.status;var r=v,a=null;return 0!==t?(r={body:s(),statusCode:t,method:p,headers:{},url:h,rawRequest:l},l.getAllResponseHeaders&&(r.headers=i(l.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}var l=e.xhr||null;l||(l=e.cors||e.useXDR?new r.XDomainRequest:new r.XMLHttpRequest);var c,d,u,h=l.url=e.uri||e.url,p=l.method=e.method||"GET",f=e.body||e.data,m=l.headers=e.headers||{},g=!!e.sync,y=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:l};if("json"in e&&!1!==e.json&&(y=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(o,0)},l.onload=o,l.onerror=a,l.onprogress=function(){},l.onabort=function(){d=!0},l.ontimeout=a,l.open(p,h,!g,e.username,e.password),g||(l.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(u=setTimeout((function(){if(!d){d=!0,l.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",a(e)}}),e.timeout)),l.setRequestHeader)for(c in m)m.hasOwnProperty(c)&&l.setRequestHeader(c,m[c]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(l.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(l),l.send(f||null),l}return Hh.exports=r,Hh.exports.default=r,r.XMLHttpRequest=e.XMLHttpRequest||function(){},r.XDomainRequest="withCredentials"in new r.XMLHttpRequest?r.XMLHttpRequest:e.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],(function(e){r["delete"===e?"del":e]=function(t,n,i){return(n=s(t,n,i)).method=e.toUpperCase(),a(n)}})),Hh.exports}();const Wh=Th(Gh);
vendor: 5,634 bytes, line 40
40var Xh,Kh,Yh,Qh,Jh,Zh,ep,tp={exports:{}};function np(){if(Kh)return Xh;Kh=1;var e=Ih(),t=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function i(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=t(null)}function r(e,t,n,i){var s=i?e.split(i):[e];for(var r in s)if("string"==typeof s[r]){var a=s[r].split(n);if(2===a.length)t(a[0].trim(),a[1].trim())}}function a(e,t,a){var o=e;function l(){var t=i(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+o);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=l(),c(),"--\x3e"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);e=e.substr(3),c(),t.endTime=l(),c(),function(e,t){var n=new s;r(e,(function(e,t){switch(e){case"region":for(var i=a.length-1;i>=0;i--)if(a[i].id===t){n.set(e,a[i].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var s=t.split(","),r=s[0];n.integer(e,r),n.percent(e,r)&&n.set("snapToLines",!1),n.alt(e,r,["auto"]),2===s.length&&n.alt("lineAlign",s[1],["start","center","end"]);break;case"position":s=t.split(","),n.percent(e,s[0]),2===s.length&&n.alt("positionAlign",s[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch{}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch{t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch{t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}n.prototype=t(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){!this.get(e)&&""!==t&&(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var o=e.createElement&&e.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},c={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},d={v:"title",lang:"lang"},u={rt:"ruby"};function h(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function s(e,t){return!u[t.localName]||u[t.localName]===e.localName}function r(t,n){var i=l[t];if(!i)return null;var s=e.document.createElement(i),r=d[t];return r&&n&&(s[r]=n.trim()),s}for(var a,h=e.document.createElement("div"),p=h,f=[];null!==(a=n());)if("<"!==a[0])p.appendChild(e.document.createTextNode((b=a,o.innerHTML=b,b=o.textContent,o.textContent="",b)));else{if("/"===a[1]){f.length&&f[f.length-1]===a.substr(2).replace(">","")&&(f.pop(),p=p.parentNode);continue}var m,g=i(a.substr(1,a.length-2));if(g){m=e.document.createProcessingInstruction("timestamp",g),p.appendChild(m);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y||!(m=r(y[1],y[3]))||!s(p,m))continue;if(y[2]){var v=y[2].split(".");v.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(c.hasOwnProperty(n)){var i=t?"background-color":"color",s=c[n];m.style[i]=s}})),m.className=v.join(" ")}f.push(y[1]),p.appendChild(m),p=m}var b;return h}var p=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551
vendor: 6,119 bytes, line 40
40],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function f(e){for(var t=0;t<p.length;t++){var n=p[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function m(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function s(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var r=n.match(/^.*(\n|\r)/);return r?(e.length=0,r[0]):n}return"ruby"===t.tagName?s(e):t.childNodes?(i(e,t),s(e)):void 0}for(i(t,e);n=s(t);)for(var r=0;r<n.length;r++)if(f(n.charCodeAt(r)))return"rtl";return"ltr"}function g(){}function y(e,t,n){g.call(this),this.cue=t,this.cueDiv=h(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:m(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var s=0;switch(t.positionAlign){case"start":case"line-left":s=t.position;break;case"center":s=t.position-t.size/2;break;case"end":case"line-right":s=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function v(e){var t,n,i,s;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,s=e.div.offsetTop;var r=(r=e.div.childNodes)&&(r=r[0])&&r.getClientRects&&r.getClientRects();e=e.div.getBoundingClientRect(),t=r?Math.max(r[0]&&r[0].height||0,e.height/r.length):0}this.left=e.left,this.right=e.right,this.top=e.top||s,this.height=e.height||n,this.bottom=e.bottom||s+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function b(e,t,n,i){var s=new v(t),r=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,s=0;s<n.length&&n[s]!==t;s++)"showing"===n[s].mode&&i++;return-1*++i}(r),o=[];if(r.snapToLines){var l;switch(r.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var c=s.lineHeight,d=c*Math.round(a),u=n[l]+c,h=o[0];Math.abs(d)>u&&(d=d<0?-1:1,d*=Math.ceil(u/c)*c),a<0&&(d+=""===r.vertical?n.height:n.width,o=o.reverse()),s.move(h,d)}else{var p=s.lineHeight/n.height*100;switch(r.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(r.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}o=["+y","-x","+x","-y"],s=new v(t)}var f=function(e,t){for(var s,r=new v(e),a=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i);)e.move(t[o]);if(e.within(n))return e;var l=e.intersectPercentage(n);a>l&&(s=new v(e),a=l),e=new v(r)}return s||r}(s,o);t.move(f.toCSSCompatValues(n))}function _(){}g.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},g.prototype.formatStyle=function(e,t){return 0===e?0:e+t},y.prototype=t(g.prototype),y.prototype.constructor=y,v.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},v.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},v.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},v.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},v.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},v.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},v.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},v.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},_.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},_.convertCueToDOMTree=function(e,t){return e&&t?h(e,t):null};return _.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",
vendor: 4,077 bytes, line 40
40i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var s=[],r=v.getSimpleBoxPosition(i),a={font:Math.round(.05*r.height*100)/100+"px sans-serif"};!function(){for(var n,o,l=0;l<t.length;l++)o=t[l],n=new y(e,o,a),i.appendChild(n.div),b(0,n,r,s),o.displayState=n.div,s.push(v.getSimpleBoxPosition(n))}()}else for(var o=0;o<t.length;o++)i.appendChild(t[o].displayState)},_.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},_.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function o(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function l(e){e.match(/X-TIMESTAMP-MAP/)?r(e,(function(e,n){if("X-TIMESTAMP-MAP"===e)!function(e){var n=new s;r(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",i(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}),/=/):r(e,(function(e,n){if("Region"===e)!function(e){var n=new s;if(r(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new s;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}(n)}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var c;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var d=(c=o()).match(/^WEBVTT([ \t].*)?$/);if(!d||!d[0])throw new n(n.Errors.BadSignature);t.state="HEADER"}for(var u=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(u?u=!1:c=o(),t.state){case"HEADER":/:/.test(c)?l(c):c||(t.state="ID");continue;case"NOTE":c||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(c)){t.state="NOTE";break}if(!c)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch{t.cue.align="middle"}if(t.state="CUE",-1===c.indexOf("--\x3e")){t.cue.id=c;continue}case"CUE":try{a(c,t.cue,t.regionList)}catch(p){t.reportOrThrowError(p),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==c.indexOf("--\x3e");if(!c||h&&(u=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=c.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":c||(t.state="ID");continue}}}catch(p){t.reportOrThrowError(p),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new n(n.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},Xh=_}function ip(){if(Qh)return Yh;Qh=1;var e={"":1,lr:1,rl:1},t={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(e){return"string"==typeof e&&(!!t[e.toLowerCase()]&&e.toLowerCase())}function i(t,i,s){this.hasBeenReset=!1;var r="",a=!1,o=t,l=i,c=s,d=null,u="",h=!0,p="auto",f="start",m="auto",g="auto",y=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(e){r=""+e}},pauseOnExit:{enumerable:!0,get:function(){return a}
vendor: 3,093 bytes, line 40
40,set:function(e){a=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(t){var n=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);if(!1===n)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=n(e);t?(f=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=n(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(e){var t=n(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=t,this.hasBeenReset=!0}}}),this.displayState=void 0}return i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},Yh=i}function sp(){if(Zh)return Jh;Zh=1;var e={"":!0,up:!0};function t(e){return"number"==typeof e&&e>=0&&e<=100}return Jh=function(){var n=100,i=3,s=0,r=100,a=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(e){if(!t(e))throw new Error("Width must be between 0 and 100.");n=e}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!t(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!t(e))throw new Error("RegionAnchorY must be between 0 and 100.");s=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!t(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return a}
40,set:function(e){if(!t(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(t){var n=function(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}(t);!1===n?console.warn("Scroll: an invalid or illegal string was specified."):l=n}}})}}var rp=function(){if(ep)return tp.exports;ep=1;var e=wh(),t=tp.exports={WebVTT:np(),VTTCue:ip(),VTTRegion:sp()};e.vttjs=t,e.WebVTT=t.WebVTT;var n=t.VTTCue,i=t.VTTRegion,s=e.VTTCue,r=e.VTTRegion;return t.shim=function(){e.VTTCue=n,e.VTTRegion=i},t.restore=function(){e.VTTCue=s,e.VTTRegion=r},e.VTTCue||t.shim(),tp.exports}();const ap=Th(rp);function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},op.apply(null,arguments)}var lp,cp,dp,up,hp,pp,fp={exports:{}};const mp=Th((lp||(lp=1,cp=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,dp=/^(?=([^\/?#]*))\1([^]*)$/,up=/(?:\/|^)\.(?=\/)/g,hp=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,fp.exports=pp={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=pp.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=pp.normalizePath(i.path),pp.buildURLFromParts(i)}var s=pp.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return n.alwaysNormalize?(s.path=pp.normalizePath(s.path),pp.buildURLFromParts(s)):t;var r=pp.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");if(!r.netLoc&&r.path&&"/"!==r.path[0]){var a=dp.exec(r.path);r.netLoc=a[1],r.path=a[2]}r.netLoc&&!r.path&&(r.path="/");var o={scheme:r.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(o.netLoc=r.netLoc,"/"!==s.path[0]))if(s.path){var l=r.path,c=l.substring(0,l.lastIndexOf("/")+1)+s.path;o.path=pp.normalizePath(c)}else o.path=r.path,s.params||(o.params=r.params,s.query||(o.query=r.query));return null===o.path&&(o.path=n.alwaysNormalize?pp.normalizePath(s.path):s.path),pp.buildURLFromParts(o)},parseURL:function(e){var t=cp.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(up,"");e.length!==(e=e.replace(hp,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}}),fp.exports));var gp="http://example.com",yp=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=Eh.location&&Eh.location.href||"");var n="function"==typeof Eh.URL,i=/^\/\//.test(e),s=!Eh.location&&!/\/\//i.test(e);if(n?e=new Eh.URL(e,Eh.location||gp):/\/\//i.test(e)||(e=mp.buildAbsoluteURL(Eh.location&&Eh.location.href||"",e)),n){var r=new URL(t,e);return s?r.href.slice(18):i?r.href.slice(r.protocol.length):r.href}return mp.buildAbsoluteURL(e,t)},vp=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var s=Array.prototype.slice.call(arguments,1),r=t.length,a=0;a<r;++a)t[a].apply(this,s)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();function bp(e){for(var t=function(e){return Eh.atob?Eh.atob(e):Buffer.from(e,"base64").toString("binary")}(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}
41/*! @name m3u8-parser @version 7.2.0 @license Apache-2.0 */class _p extends vp{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const Tp=function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},Sp=function(e){const t={};if(!e)return t;const n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let i,s=n.length;for(;s--;)""!==n[s]&&(i=/([^=]*)=(.*)/.exec(n[s]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),t[i[0]]=i[1]);return t},wp=e=>{const t=e.split("x"),n={};return t[0]&&(n.width=parseInt(t[0],10)),t[1]&&(n.height=parseInt(t[1],10)),n};class Ep extends vp{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,n;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce(((t,n)=>{const i=n(e);return i===e?t:t.concat([i])}
vendor: 4,318 bytes, line 41
41),[e]).forEach((e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void this.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void this.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return n=op(Tp(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){const e=Sp(t[1]);e.URI&&(n.uri=e.URI),e.BYTERANGE&&(n.byterange=Tp(e.BYTERANGE))}this.trigger("data",n)}else{if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t)return n={type:"tag",tagType:"stream-inf"},t[1]&&(n.attributes=Sp(t[1]),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=wp(n.attributes.RESOLUTION)),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=Sp(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=Sp(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void this.trigger("data",n);if(t=/^#EXT-X-START:(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=Sp(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=Sp(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split("\t")),void this.trigger("data",n);
vendor: 5,413 bytes, line 41
41if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=Sp(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=Tp(n.attributes.BYTERANGE)),void this.trigger("data",n);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=Sp(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void this.trigger("data",n);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=Sp(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void this.trigger("data",n);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=Sp(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);const t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}})),void this.trigger("data",n);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=Sp(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void this.trigger("data",n);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){n={type:"tag",tagType:"daterange"},n.attributes=Sp(t[1]),["ID","CLASS"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=String(n.attributes[e]))})),["START-DATE","END-DATE"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=new Date(n.attributes[e]))})),["DURATION","PLANNED-DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["END-ON-NEXT"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/i.test(n.attributes[e]))})),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=n.attributes[e].toString(16))}));const e=/^X-([A-Z]+-)+[A-Z]+$/;for(const t in n.attributes){if(!e.test(t))continue;const i=/[0-9A-Fa-f]{6}/g.test(n.attributes[t]),s=/^\d+(\.\d+)?$/.test(n.attributes[t]);n.attributes[t]=i?n.attributes[t].toString(16):s?parseFloat(n.attributes[t]):String(n.attributes[t])}this.trigger("data",n)}else if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t)this.trigger("data",{type:"tag",tagType:"independent-segments"});else{if(t=/^#EXT-X-I-FRAMES-ONLY/.exec(e),!t)return t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t?(n={type:"tag",tagType:"content-steering"},n.attributes=Sp(t[1]),void this.trigger("data",n)):(t=/^#EXT-X-I-FRAME-STREAM-INF:(.*)$/.exec(e),t?(n={type:"tag",tagType:"i-frame-playlist"},n.attributes=Sp(t[1]),n.attributes.URI&&(n.uri=n.attributes.URI),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes.RESOLUTION&&(n.attributes.RESOLUTION=wp(n.attributes.RESOLUTION)),n.attributes["AVERAGE-BANDWIDTH"]&&(n.attributes["AVERAGE-BANDWIDTH"]=parseInt(n.attributes["AVERAGE-BANDWIDTH"],10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),void this.trigger("data",n)):(t=/^#EXT-X-DEFINE:(.*)$/.exec(e),t?(n={type:"tag",tagType:"define"},n.attributes=Sp(t[1]),void this.trigger("data",n)):void this.trigger("data",{type:"tag",data:e.slice(4)})));this.trigger("data",{type:"tag",tagType:"i-frames-only"})}}}}else this.trigger("data",{type:"comment",text:e.slice(1)})})):this.trigger("data",{type:"uri",uri:e}))}addParser({expression:e,customType:t,dataParser:n,segment:i}){"function"!=typeof n&&(n=e=>e),this.customParsers.push((s=>{if(e.exec(s))return this.trigger("data",{type:"custom",data:n(s),customType:t,segment:i}),!0}))}addTagMapper({expression:e,map:t}){this.tagMappers.push((n=>e.test(n)?t(n):n))}}const Cp=function(e){const t={};return Object.keys(e).forEach((function(n){t[(e=>e.toLowerCase().replace(/-(\w)/g,(e=>e[1].toUpperCase())))(n)]=e[n]})),t},xp=function(e){const{serverControl:t,targetDuration:n,partTargetDuration:i}=e;if(!t)return;const s="#EXT-X-SERVER-CONTROL",r="holdBack",a="partHoldBack",o=n&&3*n,l=i&&2*i;n&&!t.hasOwnProperty(r)&&(t[r]=o,this.trigger("info",{message:`${s} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[r]<o&&(this.trigger("warn",{message:`${s} clamping HOLD-BACK (${t[r]}) to targetDuration * 3 (${o})`}),t[r]=o),i&&!t.hasOwnProperty(a)&&(t[a]=3*i,this.trigger("info",{message:`${s} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),i&&t[a]<l&&(this.trigger("warn",{message:`${s} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${l}).`}),t[a]=l)};class kp extends vp{constructor(e={}){super(),this.lineStream=new _p,this.parseStream=new Ep,this.lineStream.pipe(this.parseStream),this.mainDef
41initions=e.mainDefinitions||{},this.params=new URL(e.uri,"https://a.com").searchParams,this.lastProgramDateTime=null;const t=this,n=[];let i,s,r={},a=!1;const o=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let c=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],iFramePlaylists:[],segments:[]};let d=0,u=0;const h={};this.on("end",(()=>{r.uri||!r.parts&&!r.preloadHints||(!r.map&&i&&(r.map=i),!r.key&&s&&(r.key=s),!r.timeline&&"number"==typeof c&&(r.timeline=c),this.manifest.preloadSegment=r)})),this.parseStream.on("data",(function(e){let p,f;if(t.manifest.definitions)for(const n in t.manifest.definitions)if(e.uri&&(e.uri=e.uri.replace(`{$${n}}`,t.manifest.definitions[n])),e.attributes)for(const i in e.attributes)"string"==typeof e.attributes[i]&&(e.attributes[i]=e.attributes[i].replace(`{$${n}}`,t.manifest.definitions[n]));({tag(){({version(){e.version&&(this.manifest.version=e.version)},"allow-cache"(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const t={};"length"in e&&(r.byterange=t,t.length=e.length,"offset"in e||(e.offset=d)),"offset"in e&&(r.byterange=t,t.offset=e.offset),d=t.offset+t.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.title&&(r.title=e.title),e.duration>0&&(r.duration=e.duration),0===e.duration&&(r.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(e.attributes)if("NONE"!==e.attributes.METHOD){if(e.attributes.URI)return"com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes})):"com.microsoft.playready"===e.attributes.KEYFORMAT?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI})):"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT?-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:bp(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"})):(e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),s={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void(typeof e.attributes.IV<"u"&&(s.iv=e.attributes.IV)));this.trigger("warn",{message:"ignoring key declaration without URI"})}else s=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence"(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,c=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type"(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map(){i={}
vendor: 5,366 bytes, line 41
41,e.uri&&(i.uri=e.uri),e.byterange&&(i.byterange=e.byterange),s&&(i.key=s)},"stream-inf"(){this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(r.attributes||(r.attributes={}),op(r.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const t=this.manifest.mediaGroups[e.attributes.TYPE];t[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},p=t[e.attributes["GROUP-ID"]],f={default:/yes/i.test(e.attributes.DEFAULT)},f.default?f.autoselect=!0:f.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(f.language=e.attributes.LANGUAGE),e.attributes.URI&&(f.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(f.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(f.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(f.forced=/yes/i.test(e.attributes.FORCED)),p[e.attributes.NAME]=f},discontinuity(){c+=1,r.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),r.dateTimeString=e.dateTimeString,r.dateTimeObject=e.dateTimeObject;const{lastProgramDateTime:t}=this;this.lastProgramDateTime=new Date(e.dateTimeString).getTime(),null===t&&this.manifest.segments.reduceRight(((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime)),this.lastProgramDateTime)},targetduration(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,xp.call(this,this.manifest))},start(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){r.cueOut=e.data},"cue-out-cont"(){r.cueOutCont=e.data},"cue-in"(){r.cueIn=e.data},skip(){this.manifest.skip=Cp(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part(){a=!0;const t=this.manifest.segments.length,n=Cp(e.attributes);r.parts=r.parts||[],r.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=u),u=n.byterange.offset+n.byterange.length);const i=r.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${t}`,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})}))},"server-control"(){const t=this.manifest.serverControl=Cp(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),xp.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const t=this.manifest.segments.length,n=Cp(e.attributes),i=n.type&&"PART"===n.type;r.preloadHints=r.preloadHints||[],r.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?u:0,i&&(u=n.byterange.offset+n.byterange.length)));const s=r.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${s} for segment #${t}`,e.attributes,["TYPE","URI"]),n.type)for(let e=0;e<r.preloadHints.length-1;e++){const i=r.preloadHints[e];i.type&&i.type===n.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${s} for segment #${t} has the same TYPE ${n.type} as preload hint #${e}`})}},"rendition-report"(){const t=Cp(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);const n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];a&&i.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${n}`,e.attributes,i)},"part-inf"(){this.manifest.partInf=Cp(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),xp.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Cp(e.attributes));const t=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${t}`,e.attributes,["ID","START-DATE"]);const n=this.manifest.dateRanges[t];n.endDate&&n.startDate&&new Date(n.endDate)<new Date(n.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),n.duration&&n.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),n.plannedDuration&&n.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const i=!!n.endOnNext;if(i&&!n.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT
41=YES attribute must have a CLASS attribute"}),i&&(n.duration||n.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),n.duration&&n.endDate){const e=n.startDate.getTime()+1e3*n.duration;this.manifest.dateRanges[t].endDate=new Date(e)}if(h[n.id]){for(const t in h[n.id])if(n[t]&&JSON.stringify(h[n.id][t])!==JSON.stringify(n[t])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const e=this.manifest.dateRanges.findIndex((e=>e.id===n.id));this.manifest.dateRanges[e]=op(this.manifest.dateRanges[e],n),h[n.id]=op(h[n.id],n),this.manifest.dateRanges.pop()}else h[n.id]=n},"independent-segments"(){this.manifest.independentSegments=!0},"i-frames-only"(){this.manifest.iFramesOnly=!0,this.requiredCompatibilityversion(this.manifest.version,4)},"content-steering"(){this.manifest.contentSteering=Cp(e.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",e.attributes,["SERVER-URI"])},define(){this.manifest.definitions=this.manifest.definitions||{};const t=(e,t)=>{e in this.manifest.definitions?this.trigger("error",{message:`EXT-X-DEFINE: Duplicate name ${e}`}):this.manifest.definitions[e]=t};if("QUERYPARAM"in e.attributes){if("NAME"in e.attributes||"IMPORT"in e.attributes)return void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"});const n=this.params.get(e.attributes.QUERYPARAM);return n?void t(e.attributes.QUERYPARAM,decodeURIComponent(n)):void this.trigger("error",{message:`EXT-X-DEFINE: No query param ${e.attributes.QUERYPARAM}`})}return"NAME"in e.attributes?"IMPORT"in e.attributes?void this.trigger("error",{message:"EXT-X-DEFINE: Invalid attributes"}):"VALUE"in e.attributes&&"string"==typeof e.attributes.VALUE?void t(e.attributes.NAME,e.attributes.VALUE):void this.trigger("error",{message:`EXT-X-DEFINE: No value for ${e.attributes.NAME}`}):"IMPORT"in e.attributes?this.mainDefinitions[e.attributes.IMPORT]?void t(e.attributes.IMPORT,this.mainDefinitions[e.attributes.IMPORT]):void this.trigger("error",{message:`EXT-X-DEFINE: No value ${e.attributes.IMPORT} to import, or IMPORT used on main playlist`}):void this.trigger("error",{message:"EXT-X-DEFINE: No attribute"})},"i-frame-playlist"(){this.manifest.iFramePlaylists.push({attributes:e.attributes,uri:e.uri,timeline:c}),this.warnOnMissingAttributes_("#EXT-X-I-FRAME-STREAM-INF",e.attributes,["BANDWIDTH","URI"])}}[e.tagType]||o).call(t)},uri(){r.uri=e.uri,n.push(r),this.manifest.targetDuration&&!("duration"in r)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),r.duration=this.manifest.targetDuration),s&&(r.key=s),r.timeline=c,i&&(r.map=i),u=0,null!==this.lastProgramDateTime&&(r.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*r.duration),r={}},comment(){},custom(){e.segment?(r.custom=r.custom||{},r.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(t)}))}requiredCompatibilityversion(e,t){(e<t||!e)&&this.trigger("warn",{message:`manifest must be at least version ${t}`})}warnOnMissingAttributes_(e,t,n){const i=[];n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${i.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var Ip={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},Ap=["video","audio","text"],Pp=["Video","Audio","Text"],Op=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}))},Lp=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),Ap.forEach((function(i){var s=Ip[i].exec(e.toLowerCase());if(s&&!(s.length<=1)){t=i;var r=e.substring(0,s[1].length),a=e.replace(r,"");n.push({type:r,details:a,mediaType:i})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n},Np=function(e){return void 0===e&&(e=""),Ip.audio.test(e.trim().toLowerCase())},Dp=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map((function(e){return Op(e.trim())})),n="video";1===t.length&&Np(t[0])?n="audio":1===t.length&&function(e){return void 0===e&&(e=""),Ip.text.test(e.trim().toLowerCase())}(t[0])&&(n="application");var i="mp4";return t.every((function(e){return Ip.mp4.test(e)}))?i="mp4":t.every((function(e){return Ip.webm.test(e)}))?i="webm":t.every((function(e){return Ip.ogg.test(e)}
41))&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'}},Mp=function(e){return void 0===e&&(e=""),Eh.MediaSource&&Eh.MediaSource.isTypeSupported&&Eh.MediaSource.isTypeSupported(Dp(e))||!1},Rp=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<Pp.length;t++){if(Ip["muxer"+Pp[t]].test(e))return!0}return!1}))},Bp="mp4a.40.2",Up=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Fp=/^application\/dash\+xml/i,jp=function(e){return Up.test(e)?"hls":Fp.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},Vp=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},$p=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!function(e){return Vp(e)}(e)&&!(e instanceof ArrayBuffer)&&(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},qp=Eh.BigInt||Number,Hp=[qp("0x1"),qp("0x100"),qp("0x10000"),qp("0x1000000"),qp("0x100000000"),qp("0x10000000000"),qp("0x1000000000000"),qp("0x100000000000000"),qp("0x10000000000000000")];!function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();var zp=function(e,t){var n=void 0===t?{}:t,i=n.signed,s=void 0!==i&&i,r=n.le,a=void 0!==r&&r;e=$p(e);var o=a?"reduce":"reduceRight",l=(e[o]?e[o]:Array.prototype[o]).call(e,(function(t,n,i){var s=a?i:Math.abs(i+1-e.length);return t+qp(n)*Hp[s]}),qp(0));if(s){var c=Hp[e.length]/qp(2)-qp(1);(l=qp(l))>c&&(l-=c,l-=c,l-=qp(2))}return Number(l)},Gp=function(e,t){var n={}.le,i=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0);for(var s=function(e){return Math.ceil(function(e){return e.toString(2).length}(e)/8)}(e=qp(e)),r=new Uint8Array(new ArrayBuffer(s)),a=0;a<s;a++){var o=i?a:Math.abs(a+1-r.length);r[o]=Number(e/Hp[a]&qp(255)),e<0&&(r[o]=Math.abs(~r[o]),r[o]-=0===a?1:2)}return r},Wp=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},Xp=function(e,t,n){var i=void 0===n?{}:n,s=i.offset,r=void 0===s?0:s,a=i.mask,o=void 0===a?[]:a;e=$p(e);var l=(t=$p(t)).every?t.every:Array.prototype.every;return t.length&&e.length-r>=t.length&&l.call(t,(function(t,n){return t===(o[n]?o[n]&e[r+n]:e[r+n])}))};function Kp(e){for(var t=function(e){return Eh.atob?Eh.atob(e):Buffer.from(e,"base64").toString("binary")}(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}var Yp,Qp,Jp={},Zp={},ef={};function tf(){if(Yp)return ef;function e(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}Yp=1;var t=e({HTML:"text/html",isHTML:function(e){return e===t.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),n=e({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===n.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return ef.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},ef.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var s=e[i];if(t.call(void 0,s,i,e))return s}},ef.freeze=e,ef.MIME_TYPE=t,ef.NAMESPACE=n,ef}function nf(){if(Qp)return Zp;Qp=1;var e=tf(),t=e.find,n=e.NAMESPACE;function i(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function r(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(i):[]}(e);return Object.keys(t.reduce(s,{}))}function a(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function o(e,t){var n=e.prototype;if(!(n instanceof t)){let i=function(){};i.prototype=t.prototype,i=new i,a(n,i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var l={},c=l.ELEMENT_NODE=1,d=l.ATTRIBUTE_NODE=2,u=l.TEXT_NODE=3,h=l.CDATA_SECTION_NODE=4,p=l.ENTITY_REFERENCE_NODE=5,f=l.ENTITY_NODE=6,m=l.PROCESSING_INSTRUCTION_NODE=7,g=l.COMMENT_NODE=8,y=l.DOCUMENT_NODE=9,v=l.DOCUMENT_TYPE_NODE=10,b=l.DOCUMENT_FRAGMENT_NODE=11,_=l.NOTATION_NODE=12,T={},S={};T.INDEX_SIZE_ERR=(S[1]="Index size error",1),T.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2);var w=T.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3);T.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),T.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),T.NO_DATA_ALLOWED_ER
vendor: 9,582 bytes, line 41
41R=(S[6]="No data allowed",6),T.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7);var E=T.NOT_FOUND_ERR=(S[8]="Not found",8);T.NOT_SUPPORTED_ERR=(S[9]="Not supported",9);var C=T.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10);function x(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,S[e]),this.message=S[e],Error.captureStackTrace&&Error.captureStackTrace(this,x);return n.code=e,t&&(this.message=this.message+": "+t),n}function k(){}function I(e,t){this._node=e,this._refresh=t,A(this)}function A(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(ge(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];a(n,e),e._inc=t}}function P(){}function O(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function L(e,t,i,s){if(s?t[O(t,s)]=i:t[t.length++]=i,e){i.ownerElement=e;var r=e.ownerDocument;r&&(s&&F(r,e,s),function(e,t,i){e&&e._inc++;var s=i.namespaceURI;s===n.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}(r,e,i))}}function N(e,t,n){var i=O(t,n);if(!(i>=0))throw new x(E,new Error(e.tagName+"@"+n));for(var s=t.length-1;i<s;)t[i]=t[++i];if(t.length=s,e){var r=e.ownerDocument;r&&(F(r,e,n),n.ownerElement=null)}}function D(){}function M(){}function R(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function B(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(B(e,t))return!0}while(e=e.nextSibling)}function U(){this.ownerDocument=this}function F(e,t,i,s){e&&e._inc++,i.namespaceURI===n.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function j(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var s=t.firstChild,r=0;s;)i[r++]=s,s=s.nextSibling;i.length=r,delete i[i.length]}}}function V(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,j(e.ownerDocument,e),t}function $(e){return e&&e.nodeType===M.DOCUMENT_TYPE_NODE}function q(e){return e&&e.nodeType===M.ELEMENT_NODE}function H(e){return e&&e.nodeType===M.TEXT_NODE}function z(e,n){var i=e.childNodes||[];if(t(i,q)||$(n))return!1;var s=t(i,$);return!(n&&s&&i.indexOf(s)>i.indexOf(n))}function G(e,n){var i=e.childNodes||[];if(t(i,(function(e){return q(e)&&e!==n})))return!1;var s=t(i,$);return!(n&&s&&i.indexOf(s)>i.indexOf(n))}function W(e,t,n){if(!function(e){return e&&(e.nodeType===M.DOCUMENT_NODE||e.nodeType===M.DOCUMENT_FRAGMENT_NODE||e.nodeType===M.ELEMENT_NODE)}(e))throw new x(w,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new x(E,"child not in parent");if(!function(e){return e&&(q(e)||H(e)||$(e)||e.nodeType===M.DOCUMENT_FRAGMENT_NODE||e.nodeType===M.COMMENT_NODE||e.nodeType===M.PROCESSING_INSTRUCTION_NODE)}(t)||$(t)&&e.nodeType!==M.DOCUMENT_NODE)throw new x(w,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function X(e,n,i){var s=e.childNodes||[],r=n.childNodes||[];if(n.nodeType===M.DOCUMENT_FRAGMENT_NODE){var a=r.filter(q);if(a.length>1||t(r,H))throw new x(w,"More than one element or text in fragment");if(1===a.length&&!z(e,i))throw new x(w,"Element in fragment can not be inserted before doctype")}if(q(n)&&!z(e,i))throw new x(w,"Only one element can be added and only after doctype");if($(n)){if(t(s,$))throw new x(w,"Only one doctype is allowed");var o=t(s,q);if(i&&s.indexOf(o)<s.indexOf(i))throw new x(w,"Doctype can only be inserted before an element");if(!i&&o)throw new x(w,"Doctype can not be appended since element is present")}}function K(e,n,i){var s=e.childNodes||[],r=n.childNodes||[];if(n.nodeType===M.DOCUMENT_FRAGMENT_NODE){var a=r.filter(q);if(a.length>1||t(r,H))throw new x(w,"More than one element or text in fragment");if(1===a.length&&!G(e,i))throw new x(w,"Element in fragment can not be inserted before doctype")}if(q(n)&&!G(e,i))throw new x(w,"Only one element can be added and only after doctype");if($(n)){if(t(s,(function(e){return $(e)&&e!==i})))throw new x(w,"Only one doctype is allowed");var o=t(s,q);if(i&&s.indexOf(o)<s.indexOf(i))throw new x(w,"Doctype can only be inserted before an element")}}function Y(e,t,n,i){W(e,t,n),e.nodeType===M.DOCUMENT_NODE&&(i||X)(e,t,n);var s=t.parentNode;if(s&&s.removeChild(t),t.nodeType===b){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var o=n?n.previousSibling:e.lastChild;r.previousSibling=o,a.nextSibling=n,o?o.nextSibling=r:e.firstChild=r,null==n?e.lastChild=a:n.previousSibling=a;do{r.parentNode=e}while(r!==a&&(r=r.nextSibling));return j(e.ownerDocument||e,e),t.nodeType==b&&(t.firstChild=t.lastChild=null),t}function Q(){this._nsMap={}}function J(){}function Z(){}function ee(){}function te(){}function ne(){}function ie(){}function se(){}function re(){}function ae(){}function oe(){}function le(){}function ce(){}function de(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,s=i.prefix,r=i.namespaceURI;if(r&&null==s&&null==(s=i.lookupPrefix(r)))var a=[{namespace:r,prefix:null}];return pe(this,n,e,t,a),n.join("")}function ue(e,t,i){var s=e.prefix||"",r=e.namespaceURI;if(!r||"xml"===s&&r===n.XML||r===n.XMLNS)return!1;for(var a=i.length;a--;){var o=i[a];if(o.prefix===s)return o.namespace!==r}return!0}function he(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,R),'"')}function pe(e,t,i,s,r){if(r||(r=[]),s){if(!(e=s(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case c:var a=e.attributes,o=a.length,l=e.firstChild,f=e.tagName,_=f;if(!(i=n.isHTML(e.namespaceURI)||i)&&!e.prefix&&e.namespaceURI){for(var T,S=0;S<a.length;S++)if("xmlns"===a.item(S).name){T=a.item(S).value;break}if(!T)for(var w=r.length-1;w>=0;w--){if(""===(E=r[w]).prefix&&E.namespace===e.namespaceURI){T=E.namespace;break}}if(T!==e.namespaceURI)for(w=r.length-1;w>=0;w--){var E;if((E=r[w]).namespace===e.namespaceURI){E.prefix&&(_=E.prefix+":"+f);break}}}t.push("<",_);for(var C=0;C<o;C++){"xmlns"==(x=a.item(C)).prefix?r.push({prefix:x.localName,namespace:x.value}):"xmlns"==x.nodeName&&r.push({prefix:"",namespace:x.value})}for(C=0;C<o;C++){var x,k,I;if(ue(x=a.item(C),0,r))he(t,(k=x.prefix||"")?"xmlns:"+k:"xmlns",I=x.namespaceURI),r.push({prefix:k,namespace:I});pe(x,t,i,s,r)}if(f===_&&ue(e,0,r))he(t,(k=e.prefix||"")?"xmlns:"+k:"xmlns",I=e.namespaceURI),r.push({prefix:k,namespace:I});if(l||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(f)){if(t.push(">"),i&&/^script$/i.test(f))for(;l;)l.data?t.push(l.data):pe(l,t,i,s,r.slice()),l=l.nextSibling;else for(;l;)pe(l,t,i,s,r.slice()),l=l.nextSibling;t.push("</",_,">")}else t.push("/>");return;case y:case b:for(l=e.firstChild;l;)pe(l,t,i,s,r.slice()),l=l.nextSibling;return;case d:return he(t,e.name,e.value);case u:return t.push(e.data.replace(/[<&>]/g,R));case h:return t.push("<![CDATA[",e.data,"]]>");case g:return t.push("\x3c!--",e.data,"--\x3e");case v:var A=e.publicId,P=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),P&&"."!=P&&t.push(" ",P),t.push(">");else if(P&&"."!=P)t.push(" SYSTEM ",P,">");else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case m:return t.push("<?",e.target," ",e.data,"?>");case p:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function fe(e,t,n){var i;switch(t.nodeType){case c:(i=t.cloneNode(!1)).ownerDocument=e;case b:break;case d:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var s=t.firstChild;s;)i.appendChild(fe(e,s,n)),s=s.nextSibling;return i}function me(e,t,n){var i=new t.constructor;for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var r=t[s];"object"!=typeof r&&r!=i[s]&&(i[s]=r)}switch(t.childNodes&&(i.childNodes=new k),i.ownerDocument=e,i.nodeType){case c:var a=t.attributes,o=i.attributes=new P,l=a.length;o._ownerElement=i;for(var u=0;u<l;u++)i.setAttributeNode(me(e,a.item(u),!0));break;case d:n=!0}if(n)for(var h=t.firstChild;h;)i.appendChild(me(e,h,n)),h=h.nextSibling;return i}function ge(e,t,n){e[t]=n}T.INVALID_STATE_ERR=(S[11]="Invalid state",11),T.SYNTAX_ERR=(S[12]="Syntax error",12),T.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),T.NAMESPACE_ERR=(S[14]="Invalid namespace",14),T.INVALID_ACCESS_ERR=(S[15]="Invalid access",15),x.prototype=Error.prototype,a(T,x),k.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)pe(this[i],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},I.prototype.item=function(e){return A(this),this[e]||null},o(I,k),P.prototype={length:0,item:k.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new x(C);var n=this.getNamedItem(e.nodeName);return L(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new x(C);return t=this.getNamedItemNS(e.namespaceURI,e.localName),L(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return N(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return N(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},D.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new U;
vendor: 4,423 bytes, line 41
41if(i.implementation=this,i.childNodes=new k,i.doctype=n||null,n&&i.appendChild(n),t){var s=i.createElementNS(e,t);i.appendChild(s)}return i},createDocumentType:function(e,t,n){var i=new ie;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},M.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Y(this,e,t)},replaceChild:function(e,t){Y(this,e,t,K),t&&this.removeChild(t)},removeChild:function(e){return V(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return me(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==u&&e.nodeType==u?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i;t=t.nodeType==d?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==d?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},a(l,M),a(l,M.prototype),U.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==b){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return Y(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===c&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),V(this,e)},replaceChild:function(e,t){Y(this,e,t,K),e.ownerDocument=this,t&&this.removeChild(t),q(e)&&(this.documentElement=e)},importNode:function(e,t){return fe(this,e,t)},getElementById:function(e){var t=null;return B(this.documentElement,(function(n){if(n.nodeType==c&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=r(e);return new I(this,(function(n){var i=[];return t.length>0&&B(n.documentElement,(function(s){if(s!==n&&s.nodeType===c){var a=s.getAttribute("class");if(a){var o=e===a;if(!o){var l=r(a);o=t.every(function(e){return function(t){return e&&-1!==e.indexOf(t)}}(l))}o&&i.push(s)}}})),i}))},createElement:function(e){var t=new Q;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new k,(t.attributes=new P)._ownerElement=t,t},createDocumentFragment:function(){var e=new oe;return e.ownerDocument=this,e.childNodes=new k,e},createTextNode:function(e){var t=new ee;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new te;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ne;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new le;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new J;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new ae;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Q,i=t.split(":"),s=n.attributes=new P;return n.childNodes=new k,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,s._ownerElement=n,n},createAttributeNS:function(e,t){var n=new J,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},o(U,M),Q.prototype={nodeType:c,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
41,appendChild:function(e){return e.nodeType===b?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,j(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new I(this,(function(t){var n=[];return B(t,(function(i){i!==t&&i.nodeType==c&&("*"===e||i.tagName==e)&&n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new I(this,(function(n){var i=[];return B(n,(function(s){s!==n&&s.nodeType===c&&("*"===e||s.namespaceURI===e)&&("*"===t||s.localName==t)&&i.push(s)})),i}))}},U.prototype.getElementsByTagName=Q.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=Q.prototype.getElementsByTagNameNS,o(Q,M),J.prototype.nodeType=d,o(J,M),Z.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(S[w])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},o(Z,M),ee.prototype={nodeName:"#text",nodeType:u,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},o(ee,Z),te.prototype={nodeName:"#comment",nodeType:g},o(te,Z),ne.prototype={nodeName:"#cdata-section",nodeType:h},o(ne,Z),ie.prototype.nodeType=v,o(ie,M),se.prototype.nodeType=_,o(se,M),re.prototype.nodeType=f,o(re,M),ae.prototype.nodeType=p,o(ae,M),oe.prototype.nodeName="#document-fragment",oe.prototype.nodeType=b,o(oe,M),le.prototype.nodeType=m,o(le,M),ce.prototype.serializeToString=function(e,t,n){return de.call(e,t,n)},M.prototype.toString=de;try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case c:case b:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};Object.defineProperty(I.prototype,"length",{get:function(){return A(this),this.$$length}}),Object.defineProperty(M.prototype,"textContent",{get:function(){return e(this)},set:function(e){switch(this.nodeType){case c:case b:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ge=function(e,t,n){e["$$"+t]=n}}}catch{}return Zp.DocumentType=ie,Zp.DOMException=x,Zp.DOMImplementation=D,Zp.Element=Q,Zp.Node=M,Zp.NodeList=k,Zp.XMLSerializer=ce,Zp}var sf,rf={},af={};var of,lf,cf,df={};function uf(){if(of)return df;of=1;var e=tf().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+t.source+n.source+"*(?::"+t.source+n.source+"*)?$");function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function r(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function o(t,n,i,s,r,a){function o(e,t,n){i.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),n)}for(var l,c=++n,d=0;;){var u=t.charAt(c);switch(u){case"=":if(1===d)l=t.slice(n,c),d=3;else{if(2!==d)throw new Error("attribute equal must after attrName");d=3}break;case"'":case'"':if(3===d||1===d){if(1===d&&(a.warning('attribute value must after "="'),l=t.slice(n,c)),n=c+1,!((c=t.indexOf(u,n))>0))throw new Error("attribute value no end '"+u+"' match");o(l,h=t.slice(n,c),n-1),d=5}else{if(4!=d)throw new Error('attribute value must after "="');o(l,h=t.slice(n,c),n),a.warning('attribute "'+l+'" missed start quot('+u+")!!"),n=c+1,d=5}break;case"/":switch(d){case 0:i.setTagName(t.slice(n,c));
vendor: 6,157 bytes, line 41
41case 5:case 6:case 7:d=7,i.closed=!0;case 4:case 1:break;case 2:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==d&&i.setTagName(t.slice(n,c)),c;case">":switch(d){case 0:i.setTagName(t.slice(n,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=t.slice(n,c)).slice(-1)&&(i.closed=!0,h=h.slice(0,-1));case 2:2===d&&(h=l),4==d?(a.warning('attribute "'+h+'" missed quot(")!'),o(l,h,n)):((!e.isHTML(s[""])||!h.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),o(h,h,n));break;case 3:throw new Error("attribute value missed!!")}return c;case"€":u=" ";default:if(u<=" ")switch(d){case 0:i.setTagName(t.slice(n,c)),d=6;break;case 1:l=t.slice(n,c),d=2;break;case 4:var h=t.slice(n,c);a.warning('attribute "'+h+'" missed quot(")!!'),o(l,h,n);case 5:d=6}else switch(d){case 2:i.tagName,(!e.isHTML(s[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,n),n=c,d=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:d=1,n=c;break;case 3:d=4,n=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function l(t,n,i){for(var s=t.tagName,r=null,a=t.length;a--;){var o=t[a],l=o.qName,c=o.value;if((f=l.indexOf(":"))>0)var d=o.prefix=l.slice(0,f),h=l.slice(f+1),p="xmlns"===d&&h;else h=l,d=null,p="xmlns"===l&&"";o.localName=h,!1!==p&&(null==r&&(r={},u(i,i={})),i[p]=r[p]=c,o.uri=e.XMLNS,n.startPrefixMapping(p,c))}for(a=t.length;a--;){(d=(o=t[a]).prefix)&&("xml"===d&&(o.uri=e.XML),"xmlns"!==d&&(o.uri=i[d||""]))}var f;(f=s.indexOf(":"))>0?(d=t.prefix=s.slice(0,f),h=t.localName=s.slice(f+1)):(d=null,h=t.localName=s);var m=t.uri=i[d||""];if(n.startElement(m,h,s,t),!t.closed)return t.currentNSMap=i,t.localNSMap=r,!0;if(n.endElement(m,h,s),r)for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&n.endPrefixMapping(d)}function c(e,t,n,i,s){if(/^(?:script|textarea)$/i.test(n)){var r=e.indexOf("</"+n+">",t),a=e.substring(t+1,r);if(/[&<]/.test(a))return/^script$/i.test(n)?(s.characters(a,0,a.length),r):(a=a.replace(/&#?\w+;/g,i),s.characters(a,0,a.length),r)}return t+1}function d(e,t,n,i){var s=i[n];return null==s&&((s=e.lastIndexOf("</"+n+">"))<t&&(s=e.lastIndexOf("</"+n)),i[n]=s),s<t}function u(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function h(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(s=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,s-t-4),s+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var s=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,s-t-9),n.endCDATA(),s+3}var r=function(e,t){var n,i=[],s=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(s.lastIndex=t,s.exec(e);n=s.exec(e);)if(i.push(n),n[1])return i}(e,t),a=r.length;if(a>1&&/!doctype/i.test(r[0][0])){var o=r[1][0],l=!1,c=!1;a>3&&(/^public$/i.test(r[2][0])?(l=r[3][0],c=a>4&&r[4][0]):/^system$/i.test(r[2][0])&&(c=r[3][0]));var d=r[a-1];return n.startDTD(o,l,c),n.endDTD(),d.index+d[0].length}return-1}function p(e,t,n){var i=e.indexOf("?>",t);if(i){var s=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return s?(s[0].length,n.processingInstruction(s[1],s[2]),i+2):-1}return-1}function f(){this.attributeNames={}}return s.prototype=new Error,s.prototype.name=s.name,r.prototype={parse:function(t,n,i){var r=this.domBuilder;r.startDocument(),u(n,n={}),function(t,n,i,r,u){function m(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function g(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?m(parseInt(t.substr(1).replace("x","0x"))):(u.error("entity not found:"+e),e)}function y(e){if(e>C){var n=t.substring(C,e).replace(/&#?\w+;/g,g);S&&v(C),r.characters(n,0,e-C),C=e}}function v(e,n){for(;e>=_&&(n=T.exec(t));)b=n.index,_=b+n[0].length,S.lineNumber++;S.columnNumber=e-b+1}for(var b=0,_=0,T=/.*(?:\r\n?|\n)|.*$/g,S=r.locator,w=[{currentNSMap:n}],E={},C=0;;){try{var x=t.indexOf("<",C);if(x<0){if(!t.substr(C).match(/^\s*$/)){var k=r.doc,I=k.createTextNode(t.substr(C));k.appendChild(I),r.currentElement=I}return}switch(x>C&&y(x),t.charAt(x+1)){case"/":var A=t.indexOf(">",x+3),P=t.substring(x+2,A).replace(/[ \t\n\r]+$/g,""),O=w.pop();A<0?(P=t.substring(x+2).replace(/[\s<].*/,""),u.error("end tag name: "+P+" is not complete:"+O.tagName),A=x+1+P.length):P.match(/\s</)&&(P=P.replace(/[\s<].*/,""),u.error("end tag name: "+P+" maybe not complete"),A=x+1+P.length);var L=O.localNSMap,N=O.tagName==P;if(N||O.tagName&&O.tagName.toLowerCase()==P.toLowerCase()){if(r.endElement(O.uri,O.localName,P),L)for(var D in L)Object.prototype.hasOwnProperty.call(L,D)&&r.endPrefixMapping(D);N||u.fatalError("end tag name: "+P+" is not match the current start tagName:"+O.tagName)}else w.push(O);A++;break;case"?":S&&v(x),A=p(t,x,r);break;case"!":S&&v(x),A=h(t,x,r,u);break;default:S&&v(x);var M=new f,R=w[w.length-1].currentNSMap,B=(A=o(t,x,M,R,g,u),M.length);if(!M.closed&&d(t,A,M.tagName,E)&&(M.closed=!0,i.nbsp||u.warning("unclosed xml attribute")),S&&B){for(var U=a(S,{}),F=0;F<B;F++){var j=M[F];v(j.offset),j.locator=a(S,{})}r.locator=U,l(M,r,R)&&w.push(M),r.locator=S}else l(M,r,R)&&w.push(M);e.isHTML(M.uri)&&!M.closed?A=c(t,A,M.tagName,g,r):A++}}catch(Ax){if(Ax instanceof s)throw Ax;u.error("element parse error: "+Ax),A=-1}A>C?C=A:y(Math.max(x,C)+1)}}(t,n,i,r,this.errorHandler),r.endDocument()}},f.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},df.XMLReader=r,df.ParseError=s,df}function hf(){if(lf)return rf;lf=1;var e=tf(),t=nf(),n=(sf||(sf=1,function(e){var t=tf
vendor: 28,843 bytes, line 41
41().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),e.entityMap=e.HTML_ENTITIES}(
41af)),af),i=uf(),s=t.DOMImplementation,r=e.NAMESPACE,a=i.ParseError,o=i.XMLReader;function l(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function c(e){this.options=e||{locator:{}}}function d(){this.cdata=!1}function u(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function h(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function p(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>
vendor: 4,403 bytes, lines 41-42
41=t+n||t?new java.lang.String(e,t,n)+"":e}function f(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}return c.prototype.parseFromString=function(e,t){var i=this.options,s=new o,a=i.domBuilder||new d,c=i.errorHandler,u=i.locator,p=i.xmlns||{},f=/\/x?html?$/.test(t),m=f?n.HTML_ENTITIES:n.XML_ENTITIES;u&&a.setDocumentLocator(u),s.errorHandler=function(e,t,n){if(!e){if(t instanceof d)return t;e=t}var i={},s=e instanceof Function;function r(t){var r=e[t];!r&&s&&(r=2==e.length?function(n){e(t,n)}:e),i[t]=r&&function(e){r("[xmldom "+t+"]\t"+e+h(n))}||function(){}}return n=n||{},r("warning"),r("error"),r("fatalError"),i}(c,a,u),s.domBuilder=i.domBuilder||a,f&&(p[""]=r.HTML),p.xml=p.xml||r.XML;var g=i.normalizeLineEndings||l;return e&&"string"==typeof e?s.parse(g(e),p,m):s.errorHandler.error("invalid doc source"),a.doc},d.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var s=this.doc,r=s.createElementNS(e,n||t),a=i.length;f(this,r),this.currentElement=r,this.locator&&u(this.locator,r);for(var o=0;o<a;o++){e=i.getURI(o);var l=i.getValue(o),c=(n=i.getQName(o),s.createAttributeNS(e,n));this.locator&&u(i.getLocator(o),c),c.value=c.nodeValue=l,r.setAttributeNode(c)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&u(this.locator,n),f(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=p.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&u(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=p.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&u(this.locator,i),f(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var s=i.createDocumentType(e,t,n);this.locator&&u(this.locator,s),f(this,s),this.doc.doctype=s}},warning:function(e){console.warn("[xmldom warning]\t"+e,h(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,h(this.locator))},fatalError:function(e){throw new a(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){d.prototype[e]=function(){return null}})),rf.__DOMHandler=d,rf.normalizeLineEndings=l,rf.DOMParser=c,rf}var pf=function(){if(cf)return Jp;cf=1;var e=nf();return Jp.DOMImplementation=e.DOMImplementation,Jp.XMLSerializer=e.XMLSerializer,Jp.DOMParser=hf().DOMParser,Jp}();
42/*! @name mpd-parser @version 1.3.1 @license Apache-2.0 */const ff=e=>!!e&&"object"==typeof e,mf=(...e)=>e.reduce(((e,t)=>("object"!=typeof t||Object.keys(t).forEach((n=>{Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):ff(e[n])&&ff(t[n])?e[n]=mf(e[n],t[n]):e[n]=t[n]})),e)),{}),gf=e=>Object.keys(e).map((t=>e[t])),yf=e=>e.reduce(((e,t)=>e.concat(t)),[]),vf=e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t};var bf="INVALID_NUMBER_OF_PERIOD",_f="DASH_EMPTY_MANIFEST",Tf="DASH_INVALID_XML",Sf="NO_BASE_URL",wf="SEGMENT_TIME_UNSPECIFIED",Ef="UNSUPPORTED_UTC_TIMING_SCHEME";const Cf=({baseUrl:e="",source:t="",range:n="",indexRange:i=""})=>{const s={uri:t,resolvedUri:yp(e||"",t)};if(n||i){const e=(n||i).split("-");let t,r=Eh.BigInt?Eh.BigInt(e[0]):parseInt(e[0],10),a=Eh.BigInt?Eh.BigInt(e[1]):parseInt(e[1],10);r<Number.MAX_SAFE_INTEGER&&"bigint"==typeof r&&(r=Number(r)),a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),t="bigint"==typeof a||"bigint"==typeof r?Eh.BigInt(a)-Eh.BigInt(r)+Eh.BigInt(1):a-r+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),s.byterange={length:t,offset:r}}return s},xf=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),kf={static(e){const{duration:t,timescale:n=1,sourceDuration:i,peri
42odDuration:s}=e,r=xf(e.endNumber),a=t/n;return"number"==typeof r?{start:0,end:r}:"number"==typeof s?{start:0,end:s/a}:{start:0,end:i/a}},dynamic(e){const{NOW:t,clientOffset:n,availabilityStartTime:i,timescale:s=1,duration:r,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,c=xf(e.endNumber),d=(t+n)/1e3,u=i+a,h=d+o-u,p=Math.ceil(h*s/r),f=Math.floor((d-u-l)*s/r),m=Math.floor((d-u)*s/r);return{start:Math.max(0,f),end:"number"==typeof c?c:Math.min(p,m)}}},If=e=>{const{type:t,duration:n,timescale:i=1,periodDuration:s,sourceDuration:r}=e,{start:a,end:o}=kf[t](e),l=((e,t)=>{const n=[];for(let i=e;i<t;i++)n.push(i);return n})(a,o).map((e=>t=>{const{duration:n,timescale:i=1,periodStart:s,startNumber:r=1}=e;return{number:r+t,duration:n/i,timeline:s,time:t*n}})(e));if("static"===t){const e=l.length-1,t="number"==typeof s?s:r;l[e].duration=t-n/i*e}return l},Af=e=>{const{baseUrl:t,initialization:n={},sourceDuration:i,indexRange:s="",periodStart:r,presentationTime:a,number:o=0,duration:l}=e;if(!t)throw new Error(Sf);const c=Cf({baseUrl:t,source:n.sourceURL,range:n.range}),d=Cf({baseUrl:t,source:t,indexRange:s});if(d.map=c,l){const t=If(e);t.length&&(d.duration=t[0].duration,d.timeline=t[0].timeline)}else i&&(d.duration=i,d.timeline=r);return d.presentationTime=a||r,d.number=o,[d]},Pf=(e,t,n)=>{const i=e.sidx.map?e.sidx.map:null,s=e.sidx.duration,r=e.timeline||0,a=e.sidx.byterange,o=a.offset+a.length,l=t.timescale,c=t.references.filter((e=>1!==e.referenceType)),d=[],u=e.endList?"static":"dynamic",h=e.sidx.timeline;let p,f=h,m=e.mediaSequence||0;p="bigint"==typeof t.firstOffset?Eh.BigInt(o)+t.firstOffset:o+t.firstOffset;for(let g=0;g<c.length;g++){const e=t.references[g],a=e.referencedSize,o=e.subsegmentDuration;let c;c="bigint"==typeof p?p+Eh.BigInt(a)-Eh.BigInt(1):p+a-1;const y=Af({baseUrl:n,timescale:l,timeline:r,periodStart:h,presentationTime:f,number:m,duration:o,sourceDuration:s,indexRange:`${p}-${c}`,type:u})[0];i&&(y.map=i),d.push(y),p+="bigint"==typeof p?Eh.BigInt(a):a,f+=o/l,m++}return e.segments=d,e},Of=["AUDIO","SUBTITLES"],Lf=1/60,Nf=e=>((e,t)=>gf(e.reduce(((e,n)=>(n.forEach((n=>{e[t(n)]=n})),e)),{})))(e,(({timeline:e})=>e)).sort(((e,t)=>e.timeline>t.timeline?1:-1)),Df=e=>{let t=[];return function(e,t,n){t.forEach((function(t){for(var i in e.mediaGroups[t])for(var s in e.mediaGroups[t][i]){var r=e.mediaGroups[t][i][s];n(r,t,i,s)}}))}(e,Of,((e,n,i,s)=>{t=t.concat(e.playlists||[])})),t},Mf=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach(((t,n)=>{t.number=e.mediaSequence+n}))},Rf=({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(Df(e)),i=t.playlists.concat(Df(t));return t.timelineStarts=Nf([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach((t=>{t.discontinuitySequence=n.findIndex((function({timeline:e}){return e===t.timeline}));const i=((e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null})(e,t.attributes.NAME);if(!i||t.sidx)return;const s=t.segments[0],r=i.segments.findIndex((function(e){return Math.abs(e.presentationTime-s.presentationTime)<Lf}));if(-1===r)return Mf({playlist:t,mediaSequence:i.mediaSequence+i.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!i.segments.length&&t.timeline>i.timeline||i.segments.length&&t.timeline>i.segments[i.segments.length-1].timeline)&&t.discontinuitySequence--);i.segments[r].discontinuity&&!s.discontinuity&&(s.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),Mf({playlist:t,mediaSequence:i.segments[r].number})}))})({oldPlaylists:n,newPlaylists:i,timelineStarts:t.timelineStarts}),t},Bf=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?Eh.BigInt(e.offset)+Eh.BigInt(e.length)-Eh.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),Uf=e=>{const t=e.reduce((function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e}),{});let n=[];return Object.values(t).forEach((e=>{const t=gf(e.reduce(((e,t)=>{const n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[n].segments.push(...t.segments)),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):(e[n]=t,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{}));n=n.concat(t)})),n.map((e=>(e.discontinuityStarts=((e,t)=>e.reduce(((e,n,i)=>(n[t]&&e.push(i),e)),[]))(e.segments||[],"discontinuity"),e)))},Ff=(e,t)=>
42{const n=Bf(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&Pf(e,i,e.sidx.resolvedUri),e},jf=(e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=Ff(e[n],t);return e},Vf=({attributes:e,segments:t,sidx:n,discontinuityStarts:i})=>{const s={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:i,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(s.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(s.contentProtection=e.contentProtection),e.serviceLocation&&(s.attributes.serviceLocation=e.serviceLocation),n&&(s.sidx=n),s},$f=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,qf=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,Hf=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,zf=e=>e?Object.keys(e).reduce(((t,n)=>{const i=e[n];return t.concat(i.playlists)}),[]):[],Gf=({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:i={},previousManifest:s,eventStream:r})=>{if(!e.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:c}=e[0].attributes,d=Uf(e.filter($f)).map(Vf),u=Uf(e.filter(qf)),h=Uf(e.filter(Hf)),p=e.map((e=>e.attributes.captionServices)).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:jf(d,i)};c>=0&&(f.minimumUpdatePeriod=1e3*c),t&&(f.locations=t),n&&(f.contentSteering=n),"dynamic"===o&&(f.suggestedPresentationDelay=l),r&&r.length>0&&(f.eventStream=r);const m=0===f.playlists.length,g=u.length?((e,t={},n=!1)=>{let i;const s=e.reduce(((e,s)=>{const r=s.attributes.role&&s.attributes.role.value||"",a=s.attributes.lang||"";let o=s.attributes.label||"main";if(a&&!s.attributes.label){const e=r?` (${r})`:"";o=`${s.attributes.lang}${e}`}e[o]||(e[o]={language:a,autoselect:!0,default:"main"===r,playlists:[],uri:""});const l=Ff((({attributes:e,segments:t,sidx:n,mediaSequence:i,discontinuitySequence:s,discontinuityStarts:r},a)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:s,discontinuityStarts:r,timelineStarts:e.timelineStarts,mediaSequence:i,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),n&&(o.sidx=n),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o})(s,n),t);return e[o].playlists.push(l),typeof i>"u"&&"main"===r&&(i=s,i.default=!0),e}),{});i||(s[Object.keys(s)[0]].default=!0);return s})(u,i,m):null,y=h.length?((e,t={})=>e.reduce(((e,n)=>{const i=n.attributes.label||n.attributes.lang||"text",s=n.attributes.lang||"und";return e[i]||(e[i]={language:s,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(Ff((({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:i,discontinuitySequence:s})=>{typeof t>"u"&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const r={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(r.CODECS=e.codecs);const a={attributes:r,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:i,discontinuitySequence:s,mediaSequence:n,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a})(n),t)),e}),{}))(h,i):null,v=d.concat(zf(g),zf(y)),b=v.map((({timelineStarts:e})=>e));return f.timelineStarts=Nf(b),((e,t)=>{e.forEach((e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex((function({timeline:t}){return t===e.timeline})),e.segments&&e.segments.forEach(((e,t)=>{e.number=t}))}))})(v,f.timelineStarts),g&&(f.mediaGroups.AUDIO.audio=g),y&&(f.mediaGroups.SUBTITLES.subs=y),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=(e=>e.reduce(((e,t)=>(t&&t.forEach((t=>{const{channel:n,language:i}=t;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e)),{}))(p)),s?Rf({oldManifest:s,newManifest:f}):f},Wf=(e,t,n)=>{const{NOW:i,clientOffset:s,availabilityStartTime:r,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e,c=(i+s)/1e3+l-(r+o);return Math.ceil((c*a-t)/n)},Xf=(e,t)=>
vendor: 4,555 bytes, line 42
42{const{type:n,minimumUpdatePeriod:i=0,media:s="",sourceDuration:r,timescale:a=1,startNumber:o=1,periodStart:l}=e,c=[];let d=-1;for(let u=0;u<t.length;u++){const h=t[u],p=h.d,f=h.r||0,m=h.t||0;let g;if(d<0&&(d=m),m&&m>d&&(d=m),f<0){const o=u+1;g=o===t.length?"dynamic"===n&&i>0&&s.indexOf("$Number$")>0?Wf(e,d,p):(r*a-d)/p:(t[o].t-d)/p}else g=f+1;const y=o+c.length+g;let v=o+c.length;for(;v<y;)c.push({number:v,duration:p/a,time:d,timeline:l}),d+=p,v++}return c},Kf=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Yf=(e,t)=>e.replace(Kf,(e=>(t,n,i,s)=>{if("$$"===t)return"$";if(typeof e[n]>"u")return t;const r=""+e[n];return"RepresentationID"===n||(s=i?parseInt(s,10):1,r.length>=s)?r:`${new Array(s-r.length+1).join("0")}${r}`})(t)),Qf=(e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:i={sourceURL:"",range:""}}=e,s=Cf({baseUrl:e.baseUrl,source:Yf(i.sourceURL,n),range:i.range});return((e,t)=>e.duration||t?e.duration?If(e):Xf(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t).map((t=>{n.Number=t.number,n.Time=t.time;const i=Yf(e.media||"",n),r=e.timescale||1,a=e.presentationTimeOffset||0,o=e.periodStart+(t.time-a)/r;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:yp(e.baseUrl||"",i),map:s,number:t.number,presentationTime:o}}))},Jf=(e,t)=>{const{duration:n,segmentUrls:i=[],periodStart:s}=e;if(!n&&!t||n&&t)throw new Error(wf);const r=i.map((t=>((e,t)=>{const{baseUrl:n,initialization:i={}}=e,s=Cf({baseUrl:n,source:i.sourceURL,range:i.range}),r=Cf({baseUrl:n,source:t.media,range:t.mediaRange});return r.map=s,r})(e,t)));let a;return n&&(a=If(e)),t&&(a=Xf(e,t)),a.map(((t,n)=>{if(r[n]){const i=r[n],a=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=s+(t.time-o)/a,i}})).filter((e=>e))},Zf=({attributes:e,segmentInfo:t})=>{let n,i;t.template?(i=Qf,n=mf(e,t.template)):t.base?(i=Af,n=mf(e,t.base)):t.list&&(i=Jf,n=mf(e,t.list));const s={attributes:e};if(!i)return s;const r=i(n,t.segmentTimeline);if(n.duration){const{duration:e,timescale:t=1}=n;n.duration=e/t}else r.length?n.duration=r.reduce(((e,t)=>Math.max(e,Math.ceil(t.duration))),0):n.duration=0;return s.attributes=n,s.segments=r,t.base&&n.indexRange&&(s.sidx=r[0],s.segments=[]),s},em=(e,t)=>vf(e.childNodes).filter((({tagName:e})=>e===t)),tm=e=>e.textContent.trim(),nm=e=>{const t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;const[n,i,s,r,a,o]=t.slice(1);return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(s||0)+3600*parseFloat(r||0)+60*parseFloat(a||0)+parseFloat(o||0)},im={mediaPresentationDuration:e=>nm(e),availabilityStartTime:e=>(e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)))(e)/1e3,minimumUpdatePeriod:e=>nm(e),suggestedPresentationDelay:e=>nm(e),type:e=>e,timeShiftBufferDepth:e=>nm(e),start:e=>nm(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>(e=>parseFloat(e.split("/").reduce(((e,t)=>e/t))))(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){const t=parseInt(e,10);return isNaN(t)?nm(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},sm=e=>e&&e.attributes?vf(e.attributes).reduce(((e,t)=>{const n=im[t.name]||im.DEFAULT;return e[t.name]=n(t.value),e}),{}):{},rm={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},am=(e,t)=>t.length?yf(e.map((function(e){return t.map((function(t){const n=tm(t),i=yp(e.baseUrl,n),s=mf(sm(t),{baseUrl:i});return i!==n&&!s.serviceLocation&&e.serviceLocation&&(s.serviceLocation=e.serviceLocation),s}))}))):e,om=e=>{const t=em(e,"SegmentTemplate")[0],n=em(e,"SegmentList")[0],i=n&&em(n,"SegmentURL").map((e=>mf({tag:"SegmentURL"},sm(e)))),s=em(e,"SegmentBase")[0],r=n||t,a=r&&em(r,"SegmentTimeline")[0],o=n||s||t,l=o&&em(o,"Initialization")[0],c=t&&sm(t);c&&l?c.initialization=l&&sm(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});const d={template:c,segmentTimeline:a&&em(a,"S").map((e=>sm(e))),list:n&&mf(sm(n),{segmentUrls:i,initialization:sm(l)}),base:s&&mf(sm(s),{initialization:sm(l)})};
vendor: 4,666 bytes, line 42
42return Object.keys(d).forEach((e=>{d[e]||delete d[e]})),d},lm=e=>yf(em(e.node,"EventStream").map((t=>{const n=sm(t),i=n.schemeIdUri;return em(t,"Event").map((t=>{const s=sm(t),r=s.presentationTime||0,a=n.timescale||1,o=s.duration||0,l=r/a+e.attributes.start;return{schemeIdUri:i,value:n.value,id:s.id,start:l,end:l+o/a,messageData:tm(t)||s.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}}))}))),cm=(e,t,n)=>i=>{const s=sm(i),r=am(t,em(i,"BaseURL")),a=em(i,"Role")[0],o={role:sm(a)};let l=mf(e,s,o);const c=em(i,"Accessibility")[0],d=(e=>"urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map((e=>{let t,n;return n=e,/^CC\d=/.test(e)?[t,n]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:n}})):"urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri?("string"!=typeof e.value?[]:e.value.split(";")).map((e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[n,i=""]=e.split("=");t.channel=n,t.language=e,i.split(",").forEach((e=>{const[n,i]=e.split(":");"lang"===n?t.language=i:"er"===n?t.easyReader=Number(i):"war"===n?t.aspectRatio=Number(i):"3D"===n&&(t["3D"]=Number(i))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})):void 0)(sm(c));d&&(l=mf(l,{captionServices:d}));const u=em(i,"Label")[0];if(u&&u.childNodes.length){const e=u.childNodes[0].nodeValue.trim();l=mf(l,{label:e})}const h=(e=>e.reduce(((e,t)=>{const n=sm(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());const i=rm[n.schemeIdUri];if(i){e[i]={attributes:n};const s=em(t,"cenc:pssh")[0];if(s){const t=tm(s);e[i].pssh=t&&Kp(t)}}return e}),{}))(em(i,"ContentProtection"));Object.keys(h).length&&(l=mf(l,{contentProtection:h}));const p=om(i),f=em(i,"Representation"),m=mf(n,p);return yf(f.map(((e,t,n)=>i=>{const s=em(i,"BaseURL"),r=am(t,s),a=mf(e,sm(i)),o=om(i);return r.map((e=>({segmentInfo:mf(n,o),attributes:mf(a,e)})))})(l,r,m)))},dm=(e,t)=>(n,i)=>{const s=am(t,em(n.node,"BaseURL")),r=mf(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(r.periodDuration=n.attributes.duration);const a=em(n.node,"AdaptationSet"),o=om(n.node);return yf(a.map(cm(r,s,o)))},um=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const n=mf({serverURL:tm(e[0])},sm(e[0]));return n.queryBeforeStart="true"===n.queryBeforeStart,n},hm=e=>{if(""===e)throw new Error(_f);const t=new pf.DOMParser;let n,i;try{n=t.parseFromString(e,"application/xml"),i=n&&"MPD"===n.documentElement.tagName?n.documentElement:null}catch{}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error(Tf);return i},pm=(e,t={})=>{const n=((e,t={})=>{const{manifestUri:n="",NOW:i=Date.now(),clientOffset:s=0,eventHandler:r=function(){}}=t,a=em(e,"Period");if(!a.length)throw new Error(bf);const o=em(e,"Location"),l=sm(e),c=am([{baseUrl:n}],em(e,"BaseURL")),d=em(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=i,l.clientOffset=s,o.length&&(l.locations=o.map(tm));const u=[];return a.forEach(((e,t)=>{const n=sm(e),i=u[t-1];n.start=(({attributes:e,priorPeriodAttributes:t,mpdType:n})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==n?null:0)({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:l.type}),u.push({node:e,attributes:n})})),{locations:l.locations,contentSteeringInfo:um(d,r),representationInfo:yf(u.map(dm(l,c))),eventStream:yf(u.map(lm))}})(hm(e),t),i=(e=>e.map(Zf))(n.representationInfo);return Gf({dashPlaylists:i,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},fm=e=>(e=>{const t=em(e,"UTCTiming")[0];if(!t)return null;const n=sm(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error(Ef)}return n})(hm(e));var mm,gm,ym,vm;var bm=function(){if(vm)return ym;vm=1;var e=function(){if(gm)return mm;gm=1;var e=Math.pow(2,32);return mm={getUint64:function(t){var n,i=new DataView(t.buffer,t.byteOffset,t.byteLength);return i.getBigUint64?(n=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
vendor: 7,164 bytes, lines 42-53
42Number(n):n:i.getUint32(0)*e+i.getUint32(4)},MAX_UINT32:e},mm}().getUint64;return ym=function(t){var n=new DataView(t.buffer,t.byteOffset,t.byteLength),i={version:t[0],flags:new Uint8Array(t.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8)},s=12;0===i.version?(i.earliestPresentationTime=n.getUint32(s),i.firstOffset=n.getUint32(s+4),s+=8):(i.earliestPresentationTime=e(t.subarray(s)),i.firstOffset=e(t.subarray(s+8)),s+=16),s+=2;var r=n.getUint16(s);for(s+=2;r>0;s+=12,r--)i.references.push({referenceType:(128&t[s])>>>7,referencedSize:2147483647&n.getUint32(s),subsegmentDuration:n.getUint32(s+4),startsWithSap:!!(128&t[s+8]),sapType:(112&t[s+8])>>>4,sapDeltaTime:268435455&n.getUint32(s+8)});return i},ym}();const _m=Th(bm);var Tm=$p([73,68,51]),Sm=function e(t,n){return void 0===n&&(n=0),(t=$p(t)).length-n<10||!Xp(t,Tm,{offset:n})?n:(n+=function(e,t){void 0===t&&(t=0);var n=(e=$p(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?i+20:i+10}(t,n),e(t,n))},wm=function(e){return"string"==typeof e?Wp(e):e},Em=function e(t,n,i){void 0===i&&(i=!1),n=function(e){return Array.isArray(e)?e.map((function(e){return wm(e)})):[wm(e)]}(n),t=$p(t);var s=[];if(!n.length)return s;for(var r=0;r<t.length;){var a=(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0,o=t.subarray(r+4,r+8);if(0===a)break;var l=r+a;if(l>t.length){if(i)break;l=t.length}var c=t.subarray(r+8,l);Xp(o,n[0])&&(1===n.length?s.push(c):s.push.apply(s,e(c,n.slice(1),i))),r=l}return s},Cm={EBML:$p([26,69,223,163]),DocType:$p([66,130]),Segment:$p([24,83,128,103]),SegmentInfo:$p([21,73,169,102]),Tracks:$p([22,84,174,107]),Track:$p([174]),TrackNumber:$p([215]),DefaultDuration:$p([35,227,131]),TrackEntry:$p([174]),TrackType:$p([131]),FlagDefault:$p([136]),CodecID:$p([134]),CodecPrivate:$p([99,162]),VideoTrack:$p([224]),AudioTrack:$p([225]),Cluster:$p([31,67,182,117]),Timestamp:$p([231]),TimestampScale:$p([42,215,177]),BlockGroup:$p([160]),BlockDuration:$p([155]),Block:$p([161]),SimpleBlock:$p([163])},xm=[128,64,32,16,8,4,2,1],km=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var s=function(e){for(var t=1,n=0;n<xm.length&&!(e&xm[n]);n++)t++;return t}(e[t]),r=e.subarray(t,t+s);return n&&((r=Array.prototype.slice.call(e,t,t+s))[0]^=xm[s-1]),{length:s,value:zp(r,{signed:i}),bytes:r}},Im=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"==typeof t?Gp(t):t},Am=function e(t,n,i){if(i>=n.length)return n.length;var s=km(n,i,!1);if(Xp(t.bytes,s.bytes))return i;var r=km(n,i+s.length);return e(t,n,i+r.length+r.value+s.length)},Pm=function e(t,n){n=function(e){return Array.isArray(e)?e.map((function(e){return Im(e)})):[Im(e)]}(n),t=$p(t);var i=[];if(!n.length)return i;for(var s=0;s<t.length;){var r=km(t,s,!1),a=km(t,s+r.length),o=s+r.length+a.length;127===a.value&&(a.value=Am(r,t,o),a.value!==t.length&&(a.value-=o));var l=o+a.value>t.length?t.length:o+a.value,c=t.subarray(o,l);Xp(n[0],r.bytes)&&(1===n.length?i.push(c):i=i.concat(e(c,n.slice(1)))),s+=r.length+a.length+c.length}return i},Om=$p([0,0,0,1]),Lm=$p([0,0,1]),Nm=$p([0,0,3]),Dm=function(e){for(var t=[],n=1;n<e.length-2;)Xp(e.subarray(n,n+3),Nm)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,s=new Uint8Array(i),r=0;for(n=0;n<i;r++,n++)r===t[0]&&(r++,t.shift()),s[n]=e[r];return s},Mm=function(e,t,n,i){e=$p(e),n=[].concat(n);for(var s,r=0,a=0;r<e.length&&(a<i||s);){var o=void 0;if(Xp(e.subarray(r),Om)?o=4:Xp(e.subarray(r),Lm)&&(o=3),o){if(a++,s)return Dm(e.subarray(s,r));var l=void 0;"h264"===t?l=31&e[r+o]:"h265"===t&&(l=e[r+o]>>1&63),-1!==n.indexOf(l)&&(s=r+o),r+=o+("h264"===t?1:2)}else r++}return e.subarray(0,0)},Rm={webm:$p([119,101,98,109]),matroska:$p([109,97,116,114,111,115,107,97]),flac:$p([102,76,97,67]),ogg:$p([79,103,103,83]),ac3:$p([11,119]),riff:$p([82,73,70,70]),avi:$p([65,86,73]),wav:$p([87,65,86,69]),"3gp":$p([102,116,121,112,51,103]),mp4:$p([102,116,121,112]),fmp4:$p([115,116,121,112]),mov:$p([102,116,121,112,113,116]),moov:$p([109,111,111,118]),moof:$p([109,111,111,102])},Bm={aac:function(e){var t=Sm(e);return Xp(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Sm(e);return Xp(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=Pm(e,[Cm.EBML,Cm.DocType])[0];return Xp(t,Rm.webm)},mkv:function(e){var t=Pm(e,[Cm.EBML,Cm.DocType])[0];return Xp(t,Rm.matroska)},mp4:function(e){return!Bm["3gp"](e)&&!Bm.mov(e)&&(!!(Xp(e,Rm.mp4,{offset:4})||Xp(e,Rm.fmp4,{offset:4})||Xp(e,Rm.moof,{offset:4})||Xp(e,Rm.moov,{offset:4}))||void 0)},mov:function(e){return Xp(e,Rm.mov,{offset:4})},"3gp":function(e){return Xp(e,Rm["3gp"],{offset:4})},ac3:function(e){var t=Sm(e);return Xp(e,Rm.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Sm(e);return Xp(e,Rm.flac,{offset:t})},ogg:function(e){return Xp(e,Rm.ogg)},avi:function(e){return Xp(e,Rm.riff)&&Xp(e,Rm.avi,{offset:8})},wav:function(e){return Xp(e,Rm.riff)&&Xp(e,Rm.wav,{offset:8})},h264:function(e){return function(e,t,n){return Mm(e,"h264",t,n)}(e,7,3).length},h265:function(e){return function(e,t,n){return Mm(e,"h265",t,n)}(e,[32,33],3).length}},Um=Object.keys(Bm).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);Um.forEach((function(e){var t=Bm[e];Bm[e]=function(e){return t($p(e))}}));var Fm,jm,Vm=Bm,$m=function(e){e=$p(e);for(var t=0;t<Um.length;t++){var n=Um[t];if(Vm[n](e))return n}return""};var qm=function(){if(jm)return Fm;jm=1;var e,t,n,i,s,r,a,o=9e4;return s=function(t,n){return e(i(t,n))},r=function(e,i){return t(n(e),i)},a=function(e,t,i){return n(i?e:e-t)},Fm={ONE_SECOND_IN_TS:o,secondsToVideoTs:e=function(e){return e*o},secondsToAudioTs:t=function(e,t){return e*t},videoTsToSeconds:n=function(e){return e/o},audioTsToSeconds:i=function(e,t){return e/t},audioTsToVideoTs:s,videoTsToAudioTs:r,metadataTsToSeconds:a}}(),Hm="8.10.0";
43/**
44 * @license
45 * Video.js 8.10.0 <http://videojs.com/>
46 * Copyright Brightcove, Inc. <https://www.brightcove.com/>
47 * Available under Apache License Version 2.0
48 * <https://github.com/videojs/video.js/blob/main/LICENSE>
49 *
50 * Includes vtt.js <https://github.com/mozilla/vtt.js>
51 * Available under Apache License Version 2.0
52 * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
53 */const zm={},Gm=function(e,t){return zm[e]=zm[e]||[],t&&(zm[e]=zm[e].concat(t)),zm[e]},Wm=function(e,t){const n=Gm(e).indexOf(t);return!(n<=-1)&&(zm[e]=zm[e].slice(),zm[e].splice(n,1),!0)},Xm={prefixed:!0},Km=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Ym=Km[0];let Qm;for(let r$=0;r$<Km.length;r$++)if(Km[r$][1]in Ah){Qm=Km[r$];break}if(Qm){for(let e=0;e<Qm.length;e++)Xm[Ym[e]]=Qm[e];Xm.prefixed=Qm[0]!==Ym[0]}let Jm=[];const Zm=function e(t,n=":",i=""){let s,r="info";const a=function(...e){s("log",r,e)};return s=((e,t,n)=>(i,s,r)=>
vendor: 27,615 bytes, line 53
53{const a=t.levels[s],o=new RegExp(`^(${a})$`);let l=e;if("log"!==i&&r.unshift(i.toUpperCase()+":"),n&&(l=`%c${e}`,r.unshift(n)),r.unshift(l+":"),Jm){Jm.push([].concat(r));const e=Jm.length-1e3;Jm.splice(0,e>0?e:0)}if(!Eh.console)return;let c=Eh.console[i];!c&&"debug"===i&&(c=Eh.console.info||Eh.console.log),c&&a&&o.test(i)&&c[Array.isArray(r)?"apply":"call"](Eh.console,r)})(t,a,i),a.createLogger=(s,r,a)=>{const o=void 0!==r?r:n;return e(`${t} ${o} ${s}`,o,void 0!==a?a:i)},a.createNewLogger=(t,n,i)=>e(t,n,i),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},a.level=e=>{if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);r=e}return r},(a.history=()=>Jm?[].concat(Jm):[]).filter=e=>(Jm||[]).filter((t=>new RegExp(`.*${e}.*`).test(t[0]))),a.history.clear=()=>{Jm&&(Jm.length=0)},a.history.disable=()=>{null!==Jm&&(Jm.length=0,Jm=null)},a.history.enable=()=>{null===Jm&&(Jm=[])},a.error=(...e)=>s("error",r,e),a.warn=(...e)=>s("warn",r,e),a.debug=(...e)=>s("debug",r,e),a}("VIDEOJS"),eg=Zm.createLogger,tg=Object.prototype.toString,ng=function(e){return rg(e)?Object.keys(e):[]};function ig(e,t){ng(e).forEach((n=>t(e[n],n)))}function sg(e,t,n=0){return ng(e).reduce(((n,i)=>t(n,e[i],i)),n)}function rg(e){return!!e&&"object"==typeof e}function ag(e){return rg(e)&&"[object Object]"===tg.call(e)&&e.constructor===Object}function og(...e){const t={};return e.forEach((e=>{e&&ig(e,((e,n)=>{ag(e)?(ag(t[n])||(t[n]={}),t[n]=og(t[n],e)):t[n]=e}))})),t}function lg(e={}){const t=[];for(const n in e)if(e.hasOwnProperty(n)){const i=e[n];t.push(i)}return t}function cg(e,t,n,i=!0){const s=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0}),r={configurable:!0,enumerable:!0,get(){const e=n();return s(e),e}};return i&&(r.set=s),Object.defineProperty(e,t,r)}var dg=Object.freeze({__proto__:null,each:ig,reduce:sg,isObject:rg,isPlain:ag,merge:og,values:lg,defineLazyProperty:cg});let ug,hg=!1,pg=null,fg=!1,mg=!1,gg=!1,yg=!1,vg=!1,bg=null,_g=null,Tg=null,Sg=!1,wg=!1,Eg=!1,Cg=!1;const xg=!(!Lg()||!("ontouchstart"in Eh||Eh.navigator.maxTouchPoints||Eh.DocumentTouch&&Eh.document instanceof Eh.DocumentTouch)),kg=Eh.navigator&&Eh.navigator.userAgentData;if(kg&&kg.platform&&kg.brands&&(fg="Android"===kg.platform,gg=!!kg.brands.find((e=>"Microsoft Edge"===e.brand)),yg=!!kg.brands.find((e=>"Chromium"===e.brand)),vg=!gg&&yg,bg=_g=(kg.brands.find((e=>"Chromium"===e.brand))||{}).version||null,wg="Windows"===kg.platform),!yg){const e=Eh.navigator&&Eh.navigator.userAgent||"";hg=/iPod/i.test(e),pg=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),fg=/Android/i.test(e),ug=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const n=t[1]&&parseFloat(t[1]),i=t[2]&&parseFloat(t[2]);return n&&i?parseFloat(t[1]+"."+t[2]):n||null}(),mg=/Firefox/i.test(e),gg=/Edg/i.test(e),yg=/Chrome/i.test(e)||/CriOS/i.test(e),vg=!gg&&yg,bg=_g=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),Tg=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let n=t&&parseFloat(t[1]);return!n&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(n=11),n}(),Sg=/Safari/i.test(e)&&!vg&&!fg&&!gg,wg=/Windows/i.test(e),Eg=/iPad/i.test(e)||Sg&&xg&&!/iPhone/i.test(e),Cg=/iPhone/i.test(e)&&!Eg}const Ig=Cg||Eg||hg,Ag=(Sg||Ig)&&!vg;var Pg=Object.freeze({__proto__:null,get IS_IPOD(){return hg},get IOS_VERSION(){return pg},get IS_ANDROID(){return fg},get ANDROID_VERSION(){return ug},get IS_FIREFOX(){return mg},get IS_EDGE(){return gg},get IS_CHROMIUM(){return yg},get IS_CHROME(){return vg},get CHROMIUM_VERSION(){return bg},get CHROME_VERSION(){return _g},get IE_VERSION(){return Tg},get IS_SAFARI(){return Sg},get IS_WINDOWS(){return wg},get IS_IPAD(){return Eg},get IS_IPHONE(){return Cg},TOUCH_ENABLED:xg,IS_IOS:Ig,IS_ANY_SAFARI:Ag});function Og(e){return"string"==typeof e&&!!e.trim()}function Lg(){return Ah===Eh.document}function Ng(e){return rg(e)&&1===e.nodeType}function Dg(){try{return Eh.parent!==Eh.self}catch{return!0}}function Mg(e){return function(t,n){if(!Og(t))return Ah[e](null);Og(n)&&(n=Ah.querySelector(n));const i=Ng(n)?n:Ah;return i[e]&&i[e](t)}}function Rg(e="div",t={},n={},i){const s=Ah.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){const n=t[e];"textContent"===e?Bg(s,n):(s[e]!==n||"tabIndex"===e)&&(s[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){s.setAttribute(e,n[e])})),i&&ny(s,i),s}function Bg(e,t){return typeof e.textContent>"u"?e.innerText=t:e.textContent=t,e}function Ug(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Fg(e,t){return function(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(t),e.classList.contains(t)}function jg(e,...t){return e.classList.add(...t.reduce(((e,t)=>e.concat(t.split(/\s+/))),[])),e}function Vg(e,...t){return e?(e.classList.remove(...t.reduce(((e,t)=>e.concat(t.split(/\s+/))),[])),e):(Zm.warn("removeClass was called with an element that doesn't exist"),null)}function $g(e,t,n){return"function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=void 0),t.split(/\s+/).forEach((t=>e.classList.toggle(t,n))),e}function qg(e,t){Object.getOwnPropertyNames(t).forEach((function(n){const i=t[n];null===i||typeof i>"u"||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function Hg(e){const t={},n=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const i=e.attributes;for(let e=i.length-1;e>=0;e--){const s=i[e].name;let r=i[e].value;n.includes(s)&&(r=null!==r),t[s]=r}}return t}function zg(e,t){return e.getAttribute(t)}function Gg(e,t,n){e.setAttribute(t,n)}function Wg(e,t){e.removeAttribute(t)}function Xg(){Ah.body.focus(),Ah.onselectstart=function(){return!1}}function Kg(){Ah.onselectstart=function(){return!0}}function Yg(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((e=>{void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(oy(e,"height"))),n.width||(n.width=parseFloat(oy(e,"width"))),n}}function Qg(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,n=e.offsetHeight;let i=0,s=0;for(;e.offsetParent&&e!==Ah[Xm.fullscreenElement];)i+=e.offsetLeft,s+=e.offsetTop,e=e.offsetParent;return{left:i,top:s,width:t,height:n}}function Jg(e,t){const n={x:0,y:0};if(Ig){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){const e=oy(t,"transform");if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);n.x+=t[4],n.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);n.x+=t[12],n.y+=t[13]}t=t.parentNode}}const i={},s=Qg(t.target),r=Qg(e),a=r.width,o=r.height;let l=t.offsetY-(r.top-s.top),c=t.offsetX-(r.left-s.left);return t.changedTouches&&(c=t.changedTouches[0].pageX-r.left,l=t.changedTouches[0].pageY+r.top,Ig&&(c-=n.x,l-=n.y)),i.y=1-Math.max(0,Math.min(1,l/o)),i.x=Math.max(0,Math.min(1,c/a)),i}function Zg(e){return rg(e)&&3===e.nodeType}function ey(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function ty(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((e=>("function"==typeof e&&(e=e()),Ng(e)||Zg(e)?e:"string"==typeof e&&/\S/.test(e)?Ah.createTextNode(e):void 0))).filter((e=>e))}function ny(e,t){return ty(t).forEach((t=>e.appendChild(t))),e}function iy(e,t){return ny(ey(e),t)}function sy(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||!(0!==e.button||1!==e.buttons)}const ry=Mg("querySelector"),ay=Mg("querySelectorAll");function oy(e,t){if(!e||!t)return"";if("function"==typeof Eh.getComputedStyle){let n;try{n=Eh.getComputedStyle(e)}catch{return""}return n?n.getPropertyValue(t)||n[t]:""}return""}function ly(e){[...Ah.styleSheets].forEach((t=>{try{const n=[...t.cssRules].map((e=>e.cssText)).join(""),i=Ah.createElement("style");i.textContent=n,e.document.head.appendChild(i)}catch{const n=Ah.createElement("link");n.rel="stylesheet",n.type=t.type,n.media=t.media.mediaText,n.href=t.href,e.document.head.appendChild(n)}}))}var cy=Object.freeze({__proto__:null,isReal:Lg,isEl:Ng,isInFrame:Dg,createEl:Rg,textContent:Bg,prependTo:Ug,hasClass:Fg,addClass:jg,removeClass:Vg,toggleClass:$g,setAttributes:qg,getAttributes:Hg,getAttribute:zg,setAttribute:Gg,removeAttribute:Wg,blockTextSelection:Xg,unblockTextSelection:Kg,getBoundingClientRect:Yg,findPosition:Qg,getPointerPosition:Jg,isTextNode:Zg,emptyEl:ey,normalizeContent:ty,appendContent:ny,insertContent:iy,isSingleLeftClick:sy,$:ry,$$:ay,computedStyle:oy,copyStyleSheetsToWindow:ly});let dy,uy=!1;const hy=function(){if(!1===dy.options.autoSetup)return;const e=Array.prototype.slice.call(Ah.getElementsByTagName("video")),t=Array.prototype.slice.call(Ah.getElementsByTagName("audio")),n=Array.prototype.slice.call(Ah.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(let s=0,r=i.length;s<r;s++){const e=i[s];if(!e||!e.getAttribute){py(1);break}void 0===e.player&&null!==e.getAttribute("data-setup")&&dy(e)}else uy||py(1)};function py(e,t){Lg()&&(t&&(dy=t),Eh.setTimeout(hy,e))}function fy(){uy=!0,Eh.removeEventListener("load",fy)}Lg()&&("complete"===Ah.readyState?fy():Eh.addEventListener("load",fy));const my=function(e){const t=Ah.createElement("style");return t.className=e,t},gy=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var yy=new WeakMap;let vy,by=3;function _y(){return by++}function Ty(e,t){if(!yy.has(e))return;const n=yy.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&yy.delete(e)}function Sy(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function wy(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const i=e||Eh.event;e={};for(const t in i)"layerX"!==t&&"layerY"!==t&&"keyLocation"!==t&&"webkitMovementX"!==t&&"webkitMovementY"!==t&&"path"!==t&&("returnValue"===t&&i.preventDefault||(e[t]=i[t]));if(e.target||(e.target=e.srcElement||Ah),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){const t=Ah.documentElement,n=Ah.body;e.pageX=e.clientX+(t&&t.scrollLeft||n&&n.scrollLeft||0)-(t&&t.clientLeft||n&&n.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||n&&n.scrollTop||0)-(t&&t.clientTop||n&&n.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}const Ey=["touchstart","touchmove"];function Cy(e,t,n){if(Array.isArray(t))return Sy(Cy,e,t,n);yy.has(e)||yy.set(e,{});const i=yy.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=_y()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(i.disabled)return;t=wy(t);const s=i.handlers[t.type];if(s){const i=s.slice(0);for(let s=0,a=i.length;s<a&&!t.isImmediatePropagationStopped();s++)try{i[s].call(e,t,n)}catch(r){Zm.error(r)}}}),1===i.handlers[t].length)if(e.addEventListener){let n=!1;(function(){if("boolean"!=typeof vy){vy=!1;try{const e=Object.defineProperty({},"passive",{get(){vy=!0}});Eh.addEventListener("test",null,e),Eh.removeEventListener("test",null,e)}catch{}}return vy})()&&Ey.indexOf(t)>-1&&(n={passive:!0}),e.addEventListener(t,i.dispatcher,n)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function xy(e,t,n){if(!yy.has(e))return;const i=yy.get(e);if(!i.handlers)return;if(Array.isArray(t))return Sy(xy,e,t,n);const s=function(e,t){i.handlers[t]=[],Ty(e,t)};if(void 0===t){for(const t in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},t)&&s(e,t);return}const r=i.handlers[t];if(r){if(!n)return void s(e,t);if(n.guid)for(let e=0;e<r.length;e++)r[e].guid===n.guid&&r.splice(e--,1);Ty(e,t)}}function ky(e,t,n){const i=yy.has(e)?yy.get(e):{},s=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=wy(t),i.dispatcher&&i.dispatcher.call(e,t,n),s&&!t.isPropagationStopped()&&!0===t.bubbles)ky.call(null,s,t,n);else if(!s&&!t.defaultPrevented&&t.target&&t.target[t.type]){yy.has(t.target)||yy.set(t.target,{});const e=yy.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function Iy(e,t,n){if(Array.isArray(t))return Sy(Iy,e,t,n);const i=function(){xy(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||_y(),Cy(e,t,i)}function Ay(e,t,n){const i=function(){xy(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||_y(),Cy(e,t,i)}var Py=Object.freeze({__proto__:null,fixEvent:wy,on:Cy,off:xy,trigger:ky,one:Iy,any:Ay});const Oy=30,Ly=function(e,t,n){t.guid||(t.guid=_y());const i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},Ny=function(e,t){let n=Eh.performance.now();return function(...i){const s=Eh.performance.now();s-n>=t&&(e(...i),n=s)}},Dy=function(e,t,n,i=Eh){let s;const r=function(){const r=this,a=arguments;let o=function(){s=null,o=null,n||e.apply(r,a)};!s&&n&&e.apply(r,a),i.clearTimeout(s),s=i.setTimeout(o,t)};return r.cancel=()=>{i.clearTimeout(s),s=null},r};var My=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:Oy,bind_:Ly,throttle:Ny,debounce:Dy});let Ry,By=class{on(e,t){const n=this.addEventListener;this.addEventListener=()=>{},Cy(this,e,t),this.addEventListener=n}off(e,t){xy(this,e,t)}one(e,t){const n=this.addEventListener;this.addEventListener=()=>{},Iy(this,e,t),this.addEventListener=n}any(e,t){const n=this.addEventListener;this.addEventListener=()=>{},Ay(this,e,t),this.addEventListener=n}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=wy(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ky(this,e)}queueTrigger(e){Ry||(Ry=new Map);const t=e.type||e;let n=Ry.get(this);n||(n=new Map,Ry.set(this,n));const i=n.get(t);n.delete(t),Eh.clearTimeout(i);const s=Eh.setTimeout((()=>{n.delete(t),0===n.size&&(n=null,Ry.delete(this)),this.trigger(e)}),0);n.set(t,s)}};By.prototype.allowedEvents_={},By.prototype.addEventListener=By.prototype.on,By.prototype.removeEventListener=By.prototype.off,By.prototype.dispatchEvent=By.prototype.trigger;const Uy=e=>"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,Fy=e=>e instanceof By||!!e.eventBusEl_&&["on","one","off","trigger"].every((t=>"function"==typeof e[t])),jy=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Vy=(e,t,n)=>{if(!e||!e.nodeName&&!Fy(e))throw new Error(`Invalid target for ${Uy(t)}#${n}; must be a DOM node or evented object.`)},$y=(e,t,n)=>{if(!jy(e))throw new Error(`Invalid event type for ${Uy(t)}#${n}; must be a non-empty string or array.`)},qy=(e,t,n)=>{if("function"!=typeof e)throw new Error(`Invalid listener for ${Uy(t)}#${n}; must be a function.`)},Hy=(e,t,n)=>{const i=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let s,r,a;return i?(s=e.eventBusEl_,t.length>=3&&t.shift(),[r,a]=t):[s,r,a]=t,Vy(s,e,n),$y(r,e,n),qy(a,e,n),a=Ly(e,a),{isTargetingSelf:i,target:s,type:r,listener:a}},zy=(e,t,n,i)=>{Vy(e,e,t),e.nodeName?Py[t](e,n,i):e[t](n,i)},Gy={on(...e){const{isTargetingSelf:t,target:n,type:i,listener:s}=Hy(this,e,"on");if(zy(n,"on",i,s),!t){const e=()=>this.off(n,i,s);e.guid=s.guid;const t=()=>this.off("dispose",e);t.guid=s.guid,zy(this,"on","dispose",e),zy(n,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:n,type:i,listener:s}=Hy(this,e,"one");if(t)zy(n,"one",i,s);else{const e=(...t)=>{this.off(n,i,e),s.apply(null,t)};e.guid=s.guid,zy(n,"one",i,e)}},any(...e){const{isTargetingSelf:t,target:n,type:i,listener:s}=Hy(this,e,"any");if(t)zy(n,"any",i,s);else{const e=(...t)=>{this.off(n,i,e),s.apply(null,t)};e.guid=s.guid,zy(n,"any",i,e)}},off(e,t,n){if(!e||jy(e))xy(this.eventBusEl_,e,t);else{const i=e,s=t;Vy(i,this,"off"),$y(s,this,"off"),qy(n,this,"off"),n=Ly(this,n),this.off("dispose",n),i.nodeName?(xy(i,s,n),xy(i,"dispose",n)):Fy(i)&&(i.off(s,n),i.off("dispose",n))}},trigger(e,t){Vy(this.eventBusEl_,this,"trigger");const n=e&&"string"!=typeof e?e.type:e;if(!jy(n))throw new Error(`Invalid event type for ${Uy(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return ky(this.eventBusEl_,e,t)}};function Wy(e,t={}){const{eventBusKey:n}=t;if(n){if(!e[n].nodeName)throw new Error(`The eventBusKey "${n}" does not refer to an element.`);e.eventBusEl_=e[n]}else e.eventBusEl_=Rg("span",{className:"vjs-event-bus"});return Object.assign(e,Gy),e.eventedCallbacks&&e.eventedCallbacks.forEach((e=>{e()})),e.on("dispose",(()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&yy.has(e)&&yy.delete(e)})),Eh.setTimeout((()=>{e.eventBusEl_=null}),0)})),e}const Xy={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),ig(e,((e,n)=>{this.state[n]!==e&&(t=t||{},t[n]={from:this.state[n],to:e}),this.state[n]=e})),t&&Fy(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Ky(e,t){return Object.assign(e,Xy),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&Fy(e)&&e.on("statechanged",e.handleStateChanged),e}const Yy=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toLowerCase()))},Qy=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toUpperCase()))},Jy=function(e,t){return Qy(e)===Qy(t)};var Zy=Object.freeze({__proto__:null,toLowerCase:Yy,toTitleCase:Qy,titleCaseEquals:Jy});class ev{constructor(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=og({},this.options_),t=this.options_=og(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${_y()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((e=>this.addClass(e))),["on","off","one","any","trigger"].forEach((e=>{this[e]=void 0})),!1!==t.evented&&(Wy(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Ky(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}on(e,t){}off(e,t){}one(e,t){}any(e,t){}trigger(e,t){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(e){return e?(this.options_=og(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,n){return Rg(e,t,n)}localize(e,t,n=e){const i=this.player_.language&&this.player_.language(),s=this.player_.languages&&this.player_.languages(),r=s&&s[i],a=i&&i.split("-")[0],o=s&&s[a];let l=n;return r&&r[e]?l=r[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){const i=t[n-1];let s=i;return typeof i>"u"&&(s=e),s}))),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce(((e,t)=>e.concat(t)),[]);let t=this;for(let n=0;n<e.length;n++)if(t=t.getChild(e[n]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const n="http://www.w3.org/2000/svg",i=Rg("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),s=Ah.createElementNS(n,"svg");s.setAttributeNS(null,"viewBox","0 0 512 512");const r=Ah.createElementNS(n,"use");return s.appendChild(r),r.setAttributeNS(null,"href",`#vjs-icon-${e}`),i.appendChild(s),this.iconIsSet_?t.replaceChild(i,t.querySelector(".vjs-icon-placeholder")):t.appendChild(i),this.iconIsSet_=!0,i}addChild(e,t={},n=this.children_.length){let i,s;if("string"==typeof e){s=Qy(e);const n=t.componentClass||s;t.name=s;const r=ev.getComponent(n);if(!r)throw new Error(`Component ${n} does not exist`);if("function"!=typeof r)return null;i=new r(this.player_||this,t)}else i=e;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(n,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),s=s||i.name&&Qy(i.name()),s&&(this.childNameIndex_[s]=i,this.childNameIndex_[Yy(s)]=i),"function"==typeof i.el&&i.el()){let e=null;this.children_[n+1]&&(this.children_[n+1].el_?e=this.children_[n+1].el_:Ng(this.children_[n+1])&&(e=this.children_[n+1])),this.contentEl().insertBefore(i.el(),e)}return i}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Qy(e.name())]=null,this.childNameIndex_[Yy(e.name())]=null;const n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,n=e=>{const n=e.name;let i=e.opts;if(void 0!==t[n]&&(i=t[n]),!1===i)return;!0===i&&(i={}),i.playerOptions=this.options_.playerOptions;const s=this.addChild(n,i);s&&(this[n]=s)};let i;const s=ev.getComponent("Tech");i=Array.isArray(e)?e:Object.keys(e),i.concat(Object.keys(this.options_).filter((function(e){return!i.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((t=>{let n,i;return"string"==typeof t?(n=t,i=e[n]||this.options_[n]||{}):(n=t.name,i=t),{name:n,opts:i}})).filter((e=>{const t=ev.getComponent(e.opts.componentClass||Qy(e.name));return t&&!s.isTech(t)})).forEach(n)}}buildCSSClass(){return""}ready(e,t=!1){if(e){if(!this.isReady_)return this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e);t?e.call(this):this.setTimeout(e,1)}}triggerReady(){this.isReady_=!0,this.setTimeout((function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)}$(e,t){return ry(e,t||this.contentEl())}$$(e,t){return ay(e,t||this.contentEl())}hasClass(e){return Fg(this.el_,e)}addClass(...e){jg(this.el_,...e)}removeClass(...e){Vg(this.el_,...e)}toggleClass(e,t){$g(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return zg(this.el_,e)}setAttribute(e,t){Gg(this.el_,e,t)}removeAttribute(e){Wg(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,n){if(void 0!==t)return(null===t||t!=t)&&(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;const i=this.el_.style[e],s=i.indexOf("px");return parseInt(-1!==s?i.slice(0,s):this.el_["offset"+Qy(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=oy(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const n=`offset${Qy(e)}`;t=this.el_[n]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(Nh.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,t=null;let n;this.on("touchstart",(function(i){1===i.touches.length&&(t={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=Eh.performance.now(),n=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)n=!1;else if(t){const i=e.touches[0].pageX-t.pageX,s=e.touches[0].pageY-t.pageY;Math.sqrt(i*i+s*s)>10&&(n=!1)}}));const i=function(){n=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",(function(i){t=null,!0===n&&Eh.performance.now()-e<200&&(i.preventDefault(),this.trigger("tap"))}))}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=Ly(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));const n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}setTimeout(e,t){var n;return e=Ly(this,e),this.clearTimersOnDispose_(),n=Eh.setTimeout((()=>{this.setTimeoutIds_.has(n)&&this.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),Eh.clearTimeout(e)),e}setInterval(e,t){e=Ly(this,e),this.clearTimersOnDispose_();const n=Eh.setInterval(e,t);return this.setIntervalIds_.add(n),n}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),Eh.clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=Ly(this,e),t=Eh.requestAnimationFrame((()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()})),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),t=Ly(this,t);const n=this.requestAnimationFrame((()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)}));return this.namedRafs_.set(e,n),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),Eh.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
53h((([e,t])=>{this[e].forEach(((e,n)=>this[t](n)))})),this.clearingTimersOnDispose_=!1})))}static registerComponent(e,t){if("string"!=typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const n=ev.getComponent("Tech"),i=n&&n.isTech(t),s=ev===t||ev.prototype.isPrototypeOf(t.prototype);if(i||!s){let t;throw t=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=Qy(e),ev.components_||(ev.components_={});const r=ev.getComponent("Player");if("Player"===e&&r&&r.players){const e=r.players,t=Object.keys(e);if(e&&t.length>0&&t.map((t=>e[t])).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return ev.components_[e]=t,ev.components_[Yy(e)]=t,t}static getComponent(e){if(e&&ev.components_)return ev.components_[e]}}function tv(e,t,n,i){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${n}).`)}(e,i,n.length-1),n[i][t]}function nv(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:tv.bind(null,"start",0,e),end:tv.bind(null,"end",1,e)},Eh.Symbol&&Eh.Symbol.iterator&&(t[Eh.Symbol.iterator]=()=>(e||[]).values()),t}function iv(e,t){return Array.isArray(e)?nv(e):void 0===e||void 0===t?nv():nv([[e,t]])}ev.registerComponent("Component",ev);const sv=function(e,t){e=e<0?0:e;let n=Math.floor(e%60),i=Math.floor(e/60%60),s=Math.floor(e/3600);const r=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(s=i=n="-"),s=s>0||a>0?s+":":"",i=((s||r>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,s+i+n};let rv=sv;function av(e){rv=e}function ov(){rv=sv}function lv(e,t=e){return rv(e,t)}var cv=Object.freeze({__proto__:null,createTimeRanges:iv,createTimeRange:iv,setFormatTime:av,resetFormatTime:ov,formatTime:lv});function dv(e,t){let n,i,s=0;if(!t)return 0;(!e||!e.length)&&(e=iv(0,0));for(let r=0;r<e.length;r++)n=e.start(r),i=e.end(r),i>t&&(i=t),s+=i-n;return s/t}function uv(e){if(e instanceof uv)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:rg(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=uv.defaultMessages[this.code]||"")}uv.prototype.code=0,uv.prototype.message="",uv.prototype.status=null,uv.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],uv.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(let r$=0;r$<uv.errorTypes.length;r$++)uv[uv.errorTypes[r$]]=r$,uv.prototype[uv.errorTypes[r$]]=r$;function hv(e){return null!=e&&"function"==typeof e.then}function pv(e){hv(e)&&e.then(null,(e=>{}))}const fv=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(((t,n,i)=>(e[n]&&(t[n]=e[n]),t)),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))})};var mv=function(e){const t=e.$$("track"),n=Array.prototype.map.call(t,(e=>e.track));return Array.prototype.map.call(t,(function(e){const t=fv(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(fv))},gv=function(e,t){return e.forEach((function(e){const n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((e=>n.addCue(e)))})),t.textTracks()};const yv="vjs-modal-dialog";class vv extends ev{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Rg("div",{className:`${yv}-content`},{role:"document"}),this.descEl_=Rg("p",{className:`${yv}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),Bg(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${yv} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(!this.opened_){const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
53n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let n=this.getChild("closeButton");if(t&&!n){const e=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),iy(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);const s=this.getChild("closeButton");s&&n.appendChild(s.el_)}empty(){this.trigger("beforemodalempty"),ey(this.contentEl()),this.trigger("modalempty")}content(e){return typeof e<"u"&&(this.content_=e),this.content_}conditionalFocus_(){const e=Ah.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),Nh.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(!Nh.isEventKey(e,"Tab"))return;const t=this.focusableEls_(),n=this.el_.querySelector(":focus");let i;for(let s=0;s<t.length;s++)if(n===t[s]){i=s;break}Ah.activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&i===t.length-1&&(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(e=>(e instanceof Eh.HTMLAnchorElement||e instanceof Eh.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof Eh.HTMLInputElement||e instanceof Eh.HTMLSelectElement||e instanceof Eh.HTMLTextAreaElement||e instanceof Eh.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof Eh.HTMLIFrameElement||e instanceof Eh.HTMLObjectElement||e instanceof Eh.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")))}}vv.prototype.options_={pauseOnOpen:!0,temporary:!0},ev.registerComponent("ModalDialog",vv);let bv=class extends By{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Fy(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let n=0,i=this.length;n<i;n++){const i=this[n];if(i.id===e){t=i;break}}return t}};bv.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const r$ in bv.prototype.allowedEvents_)bv.prototype["on"+r$]=null;const _v=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].enabled=!1)};const Tv=function(e,t){for(let n=0;n<e.length;
53n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].selected=!1)};class Sv extends bv{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class wv{constructor(e){wv.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let n=0;const i=e.length;this.cues_=e,this.length_=e.length;const s=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)s.call(this,n)}getCueById(e){let t=null;for(let n=0,i=this.length;n<i;n++){const i=this[n];if(i.id===e){t=i;break}}return t}}const Ev={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Cv={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},xv={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},kv={disabled:"disabled",hidden:"hidden",showing:"showing"};class Iv extends By{constructor(e={}){super();const t={id:e.id||"vjs_track_"+_y(),kind:e.kind||"",language:e.language||""};let n=e.label||"";for(const i in t)Object.defineProperty(this,i,{get:()=>t[i],set(){}});Object.defineProperty(this,"label",{get:()=>n,set(e){e!==n&&(n=e,this.trigger("labelchange"))}})}}const Av=function(e){const t=["protocol","hostname","port","pathname","search","hash","host"],n=Ah.createElement("a");n.href=e;const i={};for(let s=0;s<t.length;s++)i[t[s]]=n[t[s]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=Eh.location.protocol),i.host||(i.host=Eh.location.host),i},Pv=function(e){if(!e.match(/^https?:\/\//)){const t=Ah.createElement("a");t.href=e,e=t.href}return e},Ov=function(e){if("string"==typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},Lv=function(e,t=Eh.location){const n=Av(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host};var Nv=Object.freeze({__proto__:null,parseUrl:Av,getAbsoluteURL:Pv,getFileExtension:Ov,isCrossOrigin:Lv});const Dv=function(e,t){const n=new Eh.WebVTT.Parser(Eh,Eh.vttjs,Eh.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(Eh.console&&Eh.console.groupCollapsed&&Eh.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),i.forEach((e=>Zm.error(e))),Eh.console&&Eh.console.groupEnd&&Eh.console.groupEnd()),n.flush()},Mv=function(e,t){const n={uri:e},i=Lv(e);i&&(n.cors=i);const s="use-credentials"===t.tech_.crossOrigin();s&&(n.withCredentials=s),Wh(n,Ly(this,(function(e,n,i){if(e)return Zm.error(e,n);t.loaded_=!0,"function"!=typeof Eh.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(e=>{if("vttjserror"!==e.type)return Dv(i,t);Zm.error(`vttjs failed to load, stopping trying to process ${t.src}`)})):Dv(i,t)})))};class Rv extends Iv{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=og(e,{kind:xv[e.kind]||"subtitles",language:e.language||e.srclang||""});let n=kv[t.mode]||"disabled";const i=t.default;("metadata"===t.kind||"chapters"===t.kind)&&(n="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const s=new wv(this.cues_),r=new wv(this.activeCues_);let a=!1;this.timeupdateHandler=Ly(this,(function(e={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_)return void("timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)));this.activeCues=this.activeCues,a&&(this.trigger("cuechange"),a=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}}));this.tech_.one("dispose",(()=>{this.stopTracking()})),"disabled"!==n&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>i,set(){}},mode:{get:()=>n,set(e){kv[e]&&n!==e&&(n=e,!this.preload_&&"disabled"!==n&&0===this.cues.length&&Mv(this.src,this),this.stopTracking(),"disabled"!==n&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?s:null},set(){}}
vendor: 24,546 bytes, line 53
53,activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return r;const e=this.tech_.currentTime(),t=[];for(let n=0,i=this.cues.length;n<i;n++){const i=this.cues[n];i.startTime<=e&&i.endTime>=e&&t.push(i)}if(a=!1,t.length!==this.activeCues_.length)a=!0;else for(let n=0;n<t.length;n++)-1===this.activeCues_.indexOf(t[n])&&(a=!0);return this.activeCues_=t,r.setCues_(this.activeCues_),r},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&Mv(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new Eh.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const n in e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}const n=this.tech_.textTracks();for(let i=0;i<n.length;i++)n[i]!==this&&n[i].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;for(;t--;){const n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}Rv.prototype.allowedEvents_={cuechange:"cuechange"};class Bv extends Iv{constructor(e={}){const t=og(e,{kind:Cv[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"enabled",{get:()=>n,set(e){"boolean"!=typeof e||e===n||(n=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class Uv extends Iv{constructor(e={}){const t=og(e,{kind:Ev[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"selected",{get:()=>n,set(e){"boolean"!=typeof e||e===n||(n=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}let Fv=class e extends By{constructor(t={}){let n;super();const i=new Rv(t);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get:()=>n},track:{get:()=>i}}),n=e.NONE,i.addEventListener("loadeddata",(()=>{n=e.LOADED,this.trigger({type:"load",target:this})}))}};Fv.prototype.allowedEvents_={load:"load"},Fv.NONE=0,Fv.LOADING=1,Fv.LOADED=2,Fv.ERROR=3;const jv={audio:{ListClass:class extends bv{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){_v(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&_v(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,_v(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}},TrackClass:Bv,capitalName:"Audio"},video:{ListClass:class extends bv{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){Tv(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&Tv(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,Tv(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}},TrackClass:Uv,capitalName:"Video"},text:{ListClass:Sv,TrackClass:Rv,capitalName:"Text"}};Object.keys(jv).forEach((function(e){jv[e].getterName=`${e}Tracks`,jv[e].privateName=`${e}Tracks_`}));const Vv={remoteText:{ListClass:Sv,TrackClass:Rv,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t}removeTrackElement_(e){for(let t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}},TrackClass:Fv,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},$v=Object.assign({},jv,Vv);Vv.names=Object.keys(Vv),jv.names=Object.keys(jv),$v.names=[].concat(Vv.names).concat(jv.names);class qv extends ev{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",(function(){this.hasStarted_=!0})),this.on("loadstart",(function(){this.hasStarted_=!1})),$v.names.forEach((t=>{const n=$v[t];e&&e[n.getterName]&&(this[n.privateName]=e[n.getterName])})),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)})),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:(!0===e.nativeCaptions||!0===e.nativeTextTracks)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new $v.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",(()=>this.setTimeout((()=>this.triggerSourceset(e)),1))),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ly(this,(function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return iv(0,0)}bufferedPercent(){return dv(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(jv.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){(e=[].concat(e)).forEach((e=>{const t=this[`${e}Tracks`]()||[];let n=t.length;for(;n--;){const i=t[n];"text"===e&&this.removeRemoteTextTrack(i),t.removeTrack(i)}}))}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;){const n=e[t];this.removeRemoteTextTrack(n)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new uv(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?iv(0,0):iv()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){jv.names.forEach((e=>{const t=jv[e],n=()=>{this.trigger(`${e}trackchange`)},i=this[t.getterName]();i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),this.on("dispose",(()=>{i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n)}))}))}addWebVttScript_(){if(!Eh.WebVTT)if(Ah.body.contains(this.el())){if(!this.options_["vtt.js"]&&ag(ap)&&Object.keys(ap).length>0)return void this.trigger("vttjsloaded");const e=Ah.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",(()=>{e.onload=null,e.onerror=null})),Eh.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),n=t=>e.addTrack(t.track),i=t=>e.removeTrack(t.track);t.on("addtrack",n),t.on("removetrack",i),this.addWebVttScript_();const s=()=>this.trigger("texttrackchange"),r=()=>{s();for(let t=0;t<e.length;t++){const n=e[t];n.removeEventListener("cuechange",s),"showing"===n.mode&&n.addEventListener("cuechange",s)}};r(),e.addEventListener("change",r),e.addEventListener("addtrack",r),e.addEventListener("removetrack",r),this.on("dispose",(function(){t.off("addtrack",n),t.off("removetrack",i),e.removeEventListener("change",r),e.removeEventListener("addtrack",r),e.removeEventListener("removetrack",r);for(let t=0;t<e.length;t++)e[t].removeEventListener("cuechange",s)}))}addTextTrack(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,i,s={}){const r=e.textTracks();s.kind=t,n&&(s.label=n),i&&(s.language=i),s.tech=e;const a=new $v.text.TrackClass(s);return r.addTrack(a),a}(this,e,t,n)}createRemoteTextTrack(e){const t=og(e,{tech:this});return new Vv.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const n=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!1===t&&this.ready((()=>this.autoRemoteTextTracks_.addTrack(n.track))),n}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=_y();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",(()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())}))):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return qv.canPlayType(e.type)}static isTech(e){return e.prototype instanceof qv||e instanceof qv||e===qv}static registerTech(e,t){if(qv.techs_||(qv.techs_={}),!qv.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!qv.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!qv.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Qy(e),qv.techs_[e]=t,qv.techs_[Yy(e)]=t,"Tech"!==e&&qv.defaultTechOrder_.push(e),t}static getTech(e){if(e){if(qv.techs_&&qv.techs_[e])return qv.techs_[e];if(e=Qy(e),Eh&&Eh.videojs&&Eh.videojs[e])return Zm.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),Eh.videojs[e]}}}$v.names.forEach((function(e){const t=$v[e];qv.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),qv.prototype.featuresVolumeControl=!0,qv.prototype.featuresMuteControl=!0,qv.prototype.featuresFullscreenResize=!1,qv.prototype.featuresPlaybackRate=!1,qv.prototype.featuresProgressEvents=!1,qv.prototype.featuresSourceset=!1,qv.prototype.featuresTimeupdateEvents=!1,qv.prototype.featuresNativeTextTracks=!1,qv.prototype.featuresVideoFrameCallback=!1,qv.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){let i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){const n=e.sourceHandlers||[];let i;for(let e=0;e<n.length;e++)if(i=n[e].canPlayType(t),i)return i;return""},e.selectSourceHandler=function(t,n){const i=e.sourceHandlers||[];let s;for(let e=0;e<i.length;e++)if(s=i[e].canHandleSource(t,n),s)return i[e];return null},e.canPlaySource=function(t,n){const i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach((function(e){const t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){let n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:Zm.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},ev.registerComponent("Tech",qv),qv.registerTech("Tech",qv),qv.defaultTechOrder_=[];const Hv={},zv={},Gv={};function Wv(e,t,n){e.setTimeout((()=>Zv(t,Hv[t.type],n,e)),1)}function Xv(e,t,n,i=null){const s="call"+Qy(n),r=e.reduce(Jv(s),i),a=r===Gv,o=a?null:t[n](r);return function(e,t,n,i){for(let s=e.length-1;s>=0;s--){const r=e[s];r[t]&&r[t](i,n)}}(e,n,o,a),o}const Kv={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Yv={setCurrentTime:1,setMuted:1,setVolume:1},Qv={play:1,pause:1};function Jv(e){return(t,n)=>t===Gv?Gv:n[e]?n[e](t):t}function Zv(e={},t=[],n,i,s=[],r=!1){const[a,...o]=t;if("string"==typeof a)Zv(e,Hv[a],n,i,s,r);else if(a){const t=function(e,t){const n=zv[e.id()];let i=null;if(null==n)return i=t(e),zv[e.id()]=[[t,i]],i;for(let s=0;s<n.length;s++){const[e,r]=n[s];e===t&&(i=r)}return null===i&&(i=t(e),n.push([t,i])),i}(i,a);if(!t.setSource)return s.push(t),Zv(e,o,n,i,s,r);t.setSource(Object.assign({},e),(function(a,l){if(a)return Zv(e,o,n,i,s,r);s.push(t),Zv(l,e.type===l.type?o:Hv[l.type],n,i,s,r)}))}else o.length?Zv(e,o,n,i,s,r):r?n(e,s):Zv(e,Hv["*"],n,i,s,!0)}const eb={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},tb=function(e=""){const t=Ov(e);return eb[t.toLowerCase()]||""},nb=function(e){if(Array.isArray(e)){let t=[];e.forEach((function(e){e=nb(e),Array.isArray(e)?t=t.concat(e):rg(e)&&t.push(e)})),e=t}else e="string"==typeof e&&e.trim()?[ib({src:e})]:rg(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[ib(e)]:[];return e};function ib(e){if(!e.type){const t=tb(e.src);t&&(e.type=t)}return e}ev.registerComponent("MediaLoader",class extends ev{constructor(e,t,n){if(super(e,og({createEl:!1},t),n),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let i=0,s=t.playerOptions.techOrder;i<s.length;i++){const t=Qy(s[i]);let n=qv.getTech(t);if(t||(n=ev.getComponent(t)),n&&n.isSupported()){e.loadTech_(t);break}}}});class sb extends ev{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},n={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&Zm.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),n=Object.assign({role:"button"},n),this.tabIndex_=t.tabIndex;const i=Rg(e,t,n);return this.player_.options_.experimentalSvgIcons||i.appendChild(Rg("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=Rg("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const n=this.localize(e);this.controlText_=e,Bg(this.controlTextEl_,n),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&t.setAttribute("title",n)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){Nh.isEventKey(e,"Space")||Nh.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}ev.registerComponent("ClickableComponent",sb);class rb extends sb{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Rg("div",{className:"vjs-poster"})}crossOrigin(e){if(typeof e>"u")return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(Rg("picture",{className:"vjs-poster",tabIndex:-1},{},Rg("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?pv(this.player_.play()):this.player_.pause())}}rb.prototype.crossorigin=rb.prototype.crossOrigin,ev.registerComponent("PosterImage",rb);const ab="#222",ob="#ccc",lb={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function cb(e,t){let n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function db(e,t,n){try{e.style[t]=n}catch{return}}function ub(e){return e?`${e}px`:""}ev.registerComponent("TextTrackDisplay",class extends ev{constructor(e,t,n){super(e,t,n);const i=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",(e=>this.toggleDisplay(e))),e.on("texttrackchange",(e=>this.updateDisplay(e))),e.on("loadedmetadata",(e=>{this.updateDisplayOverlay(),this.preselectTrack(e)})),e.ready(Ly(this,(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",i),e.on("playerresize",i);const t=Eh.screen.orientation||Eh,n=Eh.screen.orientation?"change":"orientationchange";t.addEventListener(n,i),e.on("dispose",(()=>t.removeEventListener(n,i)));const s=this.options_.playerOptions.tracks||[];for(let e=0;e<s.length;e++)this.player_.addRemoteTextTrack(s[e],!0);this.preselectTrack()})))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage;let i,s,r;for(let a=0;a<t.length;a++){const o=t[a];n&&n.enabled&&n.language&&n.language===o.language&&o.kind in e?o.kind===n.kind?r=o:r||(r=o):n&&!n.enabled?(r=null,i=null,s=null):o.default&&("descriptions"!==o.kind||i?o.kind in e&&!s&&(s=o):i=o)}r?r.mode="showing":s?s.mode="showing":i&&(i.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof Eh.WebVTT&&Eh.WebVTT.processCues(Eh,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const t=[];for(let n=0;n<e.length;++n){const i=e[n];"showing"===i.mode&&t.push(i)}return void this.updateForTrack(t)}let n=null,i=null,s=e.length;for(;s--;){const t=e[s];"showing"===t.mode&&("descriptions"===t.kind?n=t:i=t)}i?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(i)):n&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(n))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!Eh.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),n=e/t,i=this.player_.videoWidth()/this.player_.videoHeight();let s=0,r=0;Math.abs(n-i)>.1&&(n>i?s=Math.round((e-t*i)/2):r=Math.round((t-e/i)/2)),db(this.el_,"insetInline",ub(s)),db(this.el_,"insetBlock",ub(r))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),n=e.activeCues;let i=n.length;for(;i--;){const e=n[i];if(!e)continue;const s=e.displayState;if(t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&db(s.firstChild,"color",cb(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&db(s.firstChild,"backgroundColor",cb(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?db(s,"backgroundColor",cb(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow=`2px 2px 3px ${ab}, 2px 2px 4px ${ab}, 2px 2px 5px ${ab}`:"raised"===t.edgeStyle?s.firstChild.style.textShadow=`1px 1px ${ab}, 2px 2px ${ab}, 3px 3px ${ab}`:"depressed"===t.edgeStyle?s.firstChild.style.textShadow=`1px 1px ${ob}, 0 1px ${ob}, -1px -1px ${ab}, 0 -1px ${ab}
53`:"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow=`0 0 4px ${ab}, 0 0 4px ${ab}, 0 0 4px ${ab}, 0 0 4px ${ab}`)),t.fontPercent&&1!==t.fontPercent){const e=Eh.parseFloat(s.style.fontSize);s.style.fontSize=e*t.fontPercent+"px",s.style.height="auto",s.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=lb[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof Eh.WebVTT||e.every((e=>!e.activeCues)))return;const t=[];for(let n=0;n<e.length;++n){const i=e[n];for(let e=0;e<i.activeCues.length;++e)t.push(i.activeCues[e])}Eh.WebVTT.processCues(Eh,t,this.el_);for(let n=0;n<e.length;++n){const t=e[n];for(let e=0;e<t.activeCues.length;++e){const i=t.activeCues[e].displayState;jg(i,"vjs-text-track-cue","vjs-text-track-cue-"+(t.language?t.language:n)),t.language&&Gg(i,"lang",t.language)}this.player_.textTrackSettings&&this.updateDisplayState(t)}}});ev.registerComponent("LoadingSpinner",class extends ev{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),n=Rg("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),i=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(n),i}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});let hb=class extends sb{createEl(e,t={},n={}){const i=Rg("button",t=Object.assign({className:this.buildCSSClass()},t),n=Object.assign({type:"button"},n));return this.player_.options_.experimentalSvgIcons||i.appendChild(Rg("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}addChild(e,t={}){const n=this.constructor.name;return Zm.warn(`Adding an actionable (user controllable) child to a Button (${n}) is not supported; use a ClickableComponent instead.`),ev.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){Nh.isEventKey(e,"Space")||Nh.isEventKey(e,"Enter")?e.stopPropagation():super.handleKeyDown(e)}};ev.registerComponent("Button",hb);class pb extends hb{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",(e=>this.handleMouseDown(e)))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return pv(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(!i)return void this.player_.tech(!0).focus();const s=()=>i.focus();hv(t)?t.then(s,(()=>{})):this.setTimeout(s,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}pb.prototype.controlText_="Play Video",ev.registerComponent("BigPlayButton",pb);ev.registerComponent("CloseButton",class extends hb{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){Nh.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class fb extends hb{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",(e=>this.handlePlay(e))),this.on(e,"pause",(e=>this.handlePause(e))),t.replay&&this.on(e,"ended",(e=>this.handleEnded(e)))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?pv(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",(e=>this.handleSeeked(e)))}}fb.prototype.controlText_="Play",ev.registerComponent("PlayToggle",fb);class mb extends ev{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],(e=>this.update(e))),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),n=Rg("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return t.appendChild(n),this.contentEl_=Rg("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){!this.player_.options_.enableSmoothSeeking&&"seeking"===e.type||this.updateContent(e)}updateTextNode_(e=0){e=lv(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,Zm.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=Ah.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))})))}updateContent(e){}}mb.prototype.labelText_="Time",mb.prototype.controlText_="Time",ev.registerComponent("TimeDisplay",mb);class gb extends mb{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}gb.prototype.labelText_="Current Time",gb.prototype.controlText_="Current Time",ev.registerComponent("CurrentTimeDisplay",gb);
vendor: 11,056 bytes, line 53
53class yb extends mb{constructor(e,t){super(e,t);const n=e=>this.updateContent(e);this.on(e,"durationchange",n),this.on(e,"loadstart",n),this.on(e,"loadedmetadata",n)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}yb.prototype.labelText_="Duration",yb.prototype.controlText_="Duration",ev.registerComponent("DurationDisplay",yb);ev.registerComponent("TimeDivider",class extends ev{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),n=super.createEl("span",{textContent:"/"});return t.appendChild(n),e.appendChild(t),e}});class vb extends mb{constructor(e,t){super(e,t),this.on(e,"durationchange",(e=>this.updateContent(e)))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(Rg("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}vb.prototype.labelText_="Remaining Time",vb.prototype.controlText_="Remaining Time",ev.registerComponent("RemainingTimeDisplay",vb);ev.registerComponent("LiveDisplay",class extends ev{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",(e=>this.updateShowing(e)))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Rg("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Rg("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(Ah.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});class bb extends hb{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=Rg("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function _b(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}bb.prototype.controlText_="Seek to live, currently playing live",ev.registerComponent("SeekToLive",bb);var Tb=Object.freeze({__proto__:null,clamp:_b});class Sb extends ev{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},n={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),n=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},n),super.createEl(e,t,n)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"===e.type&&!vg&&e.preventDefault(),Xg(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;Kg(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",(()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"}))),e}getProgress(){return Number(_b(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=Jg(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){Nh.isEventKey(e,"Left")||Nh.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):Nh.isEventKey(e,"Right")||Nh.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}ev.registerComponent("Slider",Sb);const wb=(e,t)=>_b(e/t*100,0,100).toFixed(2)+"%";ev.registerComponent("LoadProgressBar",class extends ev{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",(e=>this.update(e)))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=Rg("span",{className:"vjs-control-text"}),n=Rg("span",{textContent:this.localize("Loaded")}),i=Ah.createTextNode(": ");return this.percentageEl_=Rg("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(n),t.appendChild(i),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",(()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():this.player_.duration(),i=this.player_.bufferedEnd(),s=this.partEls_,r=wb(i,n);this.percent_!==r&&(this.el_.style.width=r,Bg(this.percentageEl_,r),this.percent_=r);for(let a=0;a<t.length;a++){const e=t.start(a),n=t.end(a);let r=s[a];r||(r=this.el_.appendChild(Rg()),s[a]=r),(r.dataset.start!==e||r.dataset.end!==n)&&(r.dataset.start=e,r.dataset.end=n,r.style.left=wb(e,i),r.style.width=wb(n-e,i))}for(let a=s.length;a>t.length;a--)this.el_.removeChild(s[a-1]);s.length=t.length}))}});ev.registerComponent("TimeTooltip",class extends ev{constructor(e,t){super(e,t),this.update=Ny(Ly(this,this.update),Oy)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,n){const i=Qg(this.el_),s=Yg(this.player_.el()),r=e.width*t;if(!s||!i)return;const a=e.left-s.left+r,o=e.width-r+(s.right-e.right);let l=i.width/2;a<l?l+=l-a:o<l&&(l=o),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(n)}write(e){Bg(this.el_,e)}updateTime(e,t,n,i){this.requestNamedAnimationFrame("TimeTooltip#updateTime",(()=>{let s;const r=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),n=e-t*e;s=(n<1?"":"-")+lv(n,e)}else s=lv(n,r);this.update(e,t,s),i&&i()}))}});class Eb extends ev{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=Ny(Ly(this,this.update),Oy)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const n=this.getChild("timeTooltip");if(!n)return;const i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}}Eb.prototype.options_={children:[]},!Ig&&!fg&&Eb.prototype.options_.children.push("timeTooltip"),ev.registerComponent("PlayProgressBar",Eb);class Cb extends ev{constructor(e,t){super(e,t),this.update=Ny(Ly(this,this.update),Oy)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,(()=>{this.el_.style.left=e.width*t+"px"}))}}Cb.prototype.options_={children:["timeTooltip"]},ev.registerComponent("MouseTimeDisplay",Cb);class xb extends Sb{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=Ly(this,this.update),this.update=Ny(this.update_,Oy),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Ah&&"visibilityState"in Ah&&this.on(Ah,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===Ah.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,Oy))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===Ah.visibilityState)return;
53const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",(()=>{const e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),n=this.player_.liveTracker;let i=this.player_.duration();n&&n.isLive()&&(i=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),(this.currentTime_!==e||this.duration_!==i)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[lv(e,i),lv(i,i)],"{1} of {2}")),this.currentTime_=e,this.duration_=i),this.bar&&this.bar.update(Yg(this.el()),this.getProgress())})),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let t;const n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){sy(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!sy(e)||isNaN(this.player_.duration()))return;let n;!t&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);const i=this.calculateDistance(e),s=this.player_.liveTracker;if(s&&s.isLive()){if(i>=.99)return void s.seekToLiveEdge();const e=s.seekableStart(),t=s.liveCurrentTime();if(n=e+i*s.liveWindow(),n>=t&&(n=t),n<=e&&(n=e+.1),n===1/0)return}else n=i*this.player_.duration(),n===this.player_.duration()&&(n-=.1);this.userSeek_(n),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?pv(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+5)}stepBack(){this.userSeek_(this.player_.currentTime()-5)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(Nh.isEventKey(e,"Space")||Nh.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(Nh.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(Nh.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(Nh(e))){e.preventDefault(),e.stopPropagation();const n=10*(Nh.codes[Nh(e)]-Nh.codes[0])/100;t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else Nh.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):Nh.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in Ah&&"visibilityState"in Ah&&this.off(Ah,"visibilitychange",this.toggleVisibility_),super.dispose()}}xb.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},!Ig&&!fg&&xb.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),ev.registerComponent("SeekBar",xb);class kb extends ev{constructor(e,t){super(e,t),this.handleMouseMove=Ny(Ly(this,this.handleMouseMove),Oy),this.throttledHandleMouseSeek=Ny(Ly(this,this.handleMouseSeek),Oy),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(!n&&!i)return;const s=t.el(),r=Qg(s);let a=Jg(s,e).x;a=_b(a,0,1),i&&i.update(r,a),n&&n.update(r,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}
vendor: 6,548 bytes, line 53
53disable(){if(this.children().forEach((e=>e.disable&&e.disable())),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&pv(this.player_.play())}}enable(){this.children().forEach((e=>e.enable&&e.enable())),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}kb.prototype.options_={children:["seekBar"]},ev.registerComponent("ProgressControl",kb);class Ib extends hb{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],(e=>this.handlePictureInPictureChange(e))),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],(e=>this.handlePictureInPictureEnabledChange(e))),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(()=>this.handlePictureInPictureAudioModeChange())),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){Ah.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in Eh?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof Ah.exitPictureInPicture&&super.show()}}Ib.prototype.controlText_="Picture-in-Picture",ev.registerComponent("PictureInPictureToggle",Ib);class Ab extends hb{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",(e=>this.handleFullscreenChange(e))),!1===Ah[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}Ab.prototype.controlText_="Fullscreen",ev.registerComponent("FullscreenToggle",Ab);ev.registerComponent("VolumeLevel",class extends ev{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}});ev.registerComponent("VolumeLevelTooltip",class extends ev{constructor(e,t){super(e,t),this.update=Ny(Ly(this,this.update),Oy)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,n,i){if(!n){const n=Yg(this.el_),i=Yg(this.player_.el()),s=e.width*t;if(!i||!n)return;const r=e.left-i.left+s,a=e.width-s+(i.right-e.right);let o=n.width/2;r<o?o+=o-r:a<o&&(o=a),o<0?o=0:o>n.width&&(o=n.width),this.el_.style.right=`-${o}px`}this.write(`${i}%`)}write(e){Bg(this.el_,e)}updateVolume(e,t,n,i,s){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(()=>{this.update(e,t,n,i.toFixed(0)),s&&s()}))}});class Pb extends ev{constructor(e,t){super(e,t),this.update=Ny(Ly(this,this.update),Oy)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,n){const i=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,i,(()=>{n?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"}))}}Pb.prototype.options_={children:["volumeLevelTooltip"]},ev.registerComponent("MouseVolumeLevelDisplay",Pb);class Ob extends Sb{constructor(e,t){super(e,t),this.on("slideractive",(e=>this.updateLastVolume_(e))),this.on(e,"volumechange",(e=>this.updateARIAAttributes(e))),e.ready((()=>this.updateARIAAttributes()))}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){sy(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const n=this.el(),i=Yg(n),s=this.vertical();let r=Jg(n,e);r=s?r.y:r.x,r=_b(r,0,1),t.update(i,r,s)}sy(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",(()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)}))}}Ob.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},!Ig&&!fg&&Ob.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Ob.prototype.playerEvent="volumechange",ev.registerComponent("
vendor: 4,806 bytes, line 53
53VolumeBar",Ob);class Lb extends ev{constructor(e,t={}){t.vertical=t.vertical||!1,(typeof t.volumeBar>"u"||ag(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(this,e),this.throttledHandleMouseMove=Ny(Ly(this,this.handleMouseMove),Oy),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",(e=>this.handleMouseDown(e))),this.on("touchstart",(e=>this.handleMouseDown(e))),this.on("mousemove",(e=>this.handleMouseMove(e))),this.on(this.volumeBar,["focus","slideractive"],(()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")})),this.on(this.volumeBar,["blur","sliderinactive"],(()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")}))}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}Lb.prototype.options_={children:["volumeBar"]},ev.registerComponent("VolumeControl",Lb);class Nb extends hb{constructor(e,t){super(e,t),function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(this,e),this.on(e,["loadstart","volumechange"],(e=>this.update(e)))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){const e=n<.1?.1:n;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),Ig&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),Vg(this.el_,[0,1,2,3].reduce(((e,t)=>e+`${t?" ":""}vjs-vol-${t}`),"")),jg(this.el_,`vjs-vol-${t}`)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}Nb.prototype.controlText_="Mute",ev.registerComponent("MuteToggle",Nb);class Db extends ev{constructor(e,t={}){typeof t.inline<"u"?t.inline=t.inline:t.inline=!0,(typeof t.volumeControl>"u"||ag(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],(e=>this.volumePanelState_(e))),this.on(this.muteToggle,"keyup",(e=>this.handleKeyPress(e))),this.on(this.volumeControl,"keyup",(e=>this.handleVolumeControlKeyUp(e))),this.on("keydown",(e=>this.handleKeyPress(e))),this.on("mouseover",(e=>this.handleMouseOver(e))),this.on("mouseout",(e=>this.handleMouseOut(e))),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){Nh.isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),Cy(Ah,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),xy(Ah,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){Nh.isEventKey(e,"Esc")&&this.handleMouseOut()}}Db.prototype.options_={children:["muteToggle","volumeControl"]}
vendor: 4,905 bytes, line 53
53,ev.registerComponent("VolumePanel",Db);class Mb extends hb{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),n=this.player_.liveTracker,i=n&&n.isLive()?n.seekableEnd():this.player_.duration();let s;s=t+this.skipTime<=i?t+this.skipTime:i,this.player_.currentTime(s)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}Mb.prototype.controlText_="Skip Forward",ev.registerComponent("SkipForward",Mb);class Rb extends hb{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),n=this.player_.liveTracker,i=n&&n.isLive()&&n.seekableStart();let s;s=i&&t-this.skipTime<=i?i:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(s)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}Rb.prototype.controlText_="Skip Backward",ev.registerComponent("SkipBackward",Rb);class Bb extends ev{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",(e=>this.handleKeyDown(e))),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof ev&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof ev&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=Rg(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),Cy(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||Ah.activeElement;if(!this.children().some((e=>e.el()===t))){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const n=t.filter((t=>t.el()===e.target))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}}handleKeyDown(e){Nh.isEventKey(e,"Left")||Nh.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(Nh.isEventKey(e,"Right")||Nh.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}ev.registerComponent("Menu",Bb);class Ub extends ev{constructor(e,t={}){super(e,t),this.menuButton_=new hb(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const n=hb.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+n,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const i=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",i),this.on(this.menuButton_,"click",i),this.on(this.menuButton_,"keydown",(e=>this.handleKeyDown(e))),this.on(this.menuButton_,"mouseenter",(()=>{this.addClass("vjs-hover"),this.menu.show(),Cy(Ah,"keyup",this.handleMenuKeyUp_)}
53)),this.on("mouseleave",(e=>this.handleMouseLeave(e))),this.on("keydown",(e=>this.handleSubmenuKeyDown(e)))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new Bb(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=Rg("li",{className:"vjs-menu-title",textContent:Qy(this.options_.title),tabIndex:-1}),n=new ev(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";return`vjs-menu-button ${e} ${hb.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),xy(Ah,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){Nh.isEventKey(e,"Esc")||Nh.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),Nh.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(Nh.isEventKey(e,"Up")||Nh.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(Nh.isEventKey(e,"Esc")||Nh.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(Nh.isEventKey(e,"Esc")||Nh.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Nh.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Ig&&Dg())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}ev.registerComponent("MenuButton",Ub);class Fb extends Ub{constructor(e,t){const n=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!n)return;const i=Ly(this,this.update);n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),n.addEventListener("labelchange",i),this.player_.on("ready",i),this.player_.on("dispose",(function(){n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i),n.removeEventListener("labelchange",i)}))}}ev.registerComponent("TrackButton",Fb);const jb=["Tab","Esc","Up","Down","Right","Left"];class Vb extends sb{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,n){this.nonIconControl=!0;const i=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),n),s=Rg("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?i.appendChild(s):i.replaceChild(s,i.querySelector(".vjs-icon-placeholder")),i}handleKeyDown(e){jb.some((t=>Nh.isEventKey(e,t)))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","fal
53se"),this.controlText(""),this.isSelected_=!1))}}ev.registerComponent("MenuItem",Vb);class $b extends Vb{constructor(e,t){const n=t.track,i=e.textTracks();t.label=n.label||n.language||"Unknown",t.selected="showing"===n.mode,super(e,t),this.track=n,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const s=(...e)=>{this.handleTracksChange.apply(this,e)},r=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],s),i.addEventListener("change",s),i.addEventListener("selectedlanguagechange",r),this.on("dispose",(function(){e.off(["loadstart","texttrackchange"],s),i.removeEventListener("change",s),i.removeEventListener("selectedlanguagechange",r)})),void 0===i.onchange){let e;this.on(["tap","click"],(function(){if("object"!=typeof Eh.Event)try{e=new Eh.Event("change")}catch{}e||(e=Ah.createEvent("Event"),e.initEvent("change",!0,!0)),i.dispatchEvent(e)}))}this.handleTracksChange()}handleClick(e){const t=this.track,n=this.player_.textTracks();if(super.handleClick(e),n)for(let i=0;i<n.length;i++){const e=n[i];-1!==this.kinds.indexOf(e.kind)&&(e===t?"showing"!==e.mode&&(e.mode="showing"):"disabled"!==e.mode&&(e.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}ev.registerComponent("TextTrackMenuItem",$b);class qb extends $b{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let n=!0;for(let i=0,s=t.length;i<s;i++){const e=t[i];if(this.options_.kinds.indexOf(e.kind)>-1&&"showing"===e.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let n=!0;for(let i=0,s=t.length;i<s;i++){const e=t[i];if(["captions","descriptions","subtitles"].indexOf(e.kind)>-1&&"showing"===e.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}ev.registerComponent("OffTextTrackMenuItem",qb);class Hb extends Fb{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=$b){let n;this.label_&&(n=`${this.label_} off`),e.push(new qb(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;const i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let s=0;s<i.length;s++){const n=i[s];if(this.kinds_.indexOf(n.kind)>-1){const i=new t(this.player_,{track:n,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});i.addClass(`vjs-${n.kind}-menu-item`),e.push(i)}}return e}}ev.registerComponent("TextTrackButton",Hb);class zb extends Vb{constructor(e,t){const n=t.track,i=t.cue,s=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=i.text,t.selected=i.startTime<=s&&s<i.endTime,super(e,t),this.track=n,this.cue=i}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}ev.registerComponent("ChaptersTrackMenuItem",zb);class Gb extends Hb{constructor(e,t,n){super(e,t,n),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach((e=>{e.selected(this.track_.activeCues[0]===e.cue)}))}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update(
vendor: 9,379 bytes, line 53
53)}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.kind===this.kind_)return n}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Qy(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let n=0,i=t.length;n<i;n++){const i=t[n],s=new zb(this.player_,{track:this.track_,cue:i});e.push(s)}return e}}Gb.prototype.kind_="chapters",Gb.prototype.controlText_="Chapters",ev.registerComponent("ChaptersButton",Gb);class Wb extends Hb{constructor(e,t,n){super(e,t,n),this.setIcon("audio-description");const i=e.textTracks(),s=Ly(this,this.handleTracksChange);i.addEventListener("change",s),this.on("dispose",(function(){i.removeEventListener("change",s)}))}handleTracksChange(e){const t=this.player().textTracks();let n=!1;for(let i=0,s=t.length;i<s;i++){const e=t[i];if(e.kind!==this.kind_&&"showing"===e.mode){n=!0;break}}n?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}Wb.prototype.kind_="descriptions",Wb.prototype.controlText_="Descriptions",ev.registerComponent("DescriptionsButton",Wb);class Xb extends Hb{constructor(e,t,n){super(e,t,n),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}Xb.prototype.kind_="subtitles",Xb.prototype.controlText_="Subtitles",ev.registerComponent("SubtitlesButton",Xb);class Kb extends $b{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}ev.registerComponent("CaptionSettingsMenuItem",Kb);class Yb extends Hb{constructor(e,t,n){super(e,t,n),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new Kb(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}Yb.prototype.kind_="captions",Yb.prototype.controlText_="Captions",ev.registerComponent("CaptionsButton",Yb);class Qb extends $b{createEl(e,t,n){const i=super.createEl(e,t,n),s=i.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",i):s.appendChild(Rg("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(Rg("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),i}}ev.registerComponent("SubsCapsMenuItem",Qb);class Jb extends Hb{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Qy(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(e.push(new Kb(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,Qb),e}}Jb.prototype.kinds_=["captions","subtitles"],Jb.prototype.controlText_="Subtitles",ev.registerComponent("SubsCapsButton",Jb);class Zb extends Vb{constructor(e,t){const n=t.track,i=e.audioTracks();t.label=n.label||n.language||"Unknown",t.selected=n.enabled,super(e,t),this.track=n,this.addClass(`vjs-${n.kind}-menu-item`);const s=(...e)=>{this.handleTracksChange.apply(this,e)};i.addEventListener("change",s),this.on("dispose",(()=>{i.removeEventListener("change",s)}))}createEl(e,t,n){const i=super.createEl(e,t,n),s=i.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(s.appendChild(Rg("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),s.appendChild(Rg("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),i}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const n=e[t];n!==this.track&&(n.enabled=n===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}ev.registerComponent("AudioTrackMenuItem",Zb);class e_ extends Fb{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let n=0;n<t.length;n++){const i=t[n];e.push(new Zb(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e}}e_.prototype.controlText_="Audio Track",ev.registerComponent("AudioTrackButton",e_);class t_ extends Vb{constructor(e,t){const n=t.rate,i=parseFloat(n,10);t.label=n,t.selected=i===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=n,this.rate=i,this.on(e,"ratechange",(e=>this.update(e)))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}t_.prototype.contentElType="button",ev.registerComponent("PlaybackRateMenuItem",t_);class n_ extends Ub{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",(e=>this.updateVisibility(e))),this.on(e,"ratechange",(e=>this.updateLabel(e))),this.on(e,"playbackrateschange",(e=>this.handlePlaybackRateschange(e)))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Rg("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let n=e.length-1;n>=0;n--)t.push(new t_(this.player(),{rate:e[n]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}n_.prototype.controlText_="Playback Rate",ev.registerComponent("PlaybackRateMenuButton",n_);class i_ extends ev{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},n={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,n)}}ev.registerComponent("Spacer",i_);ev.registerComponent("CustomControlSpacer",class extends i_{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}});class s_ extends ev{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}s_.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},ev.registerComponent("ControlBar",s_);class r_ extends vv{constructor(e,t){super(e,t),this.on(e,"error",(e=>{this.close(),this.open(e)}))}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}r_.prototype.options_=Object.assign({}
53,vv.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),ev.registerComponent("ErrorDisplay",r_);const a_="vjs-text-track-settings",o_=["#000","Black"],l_=["#00F","Blue"],c_=["#0FF","Cyan"],d_=["#0F0","Green"],u_=["#F0F","Magenta"],h_=["#F00","Red"],p_=["#FFF","White"],f_=["#FF0","Yellow"],m_=["1","Opaque"],g_=["0.5","Semi-Transparent"],y_=["0","Transparent"],v_={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[o_,p_,h_,d_,l_,f_,u_,c_]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[m_,g_,y_]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[p_,o_,h_,d_,l_,f_,u_,c_]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[m_,g_]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[y_,g_,m_]}};function b_(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}v_.windowColor.options=v_.backgroundColor.options;ev.registerComponent("TextTrackSettings",class extends vv{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=Rg("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",(()=>{this.saveSettings(),this.close()})),this.on(this.$(".vjs-default-button"),"click",(()=>{this.setDefaults(),this.updateDisplay()})),ig(v_,(e=>{this.on(this.$(e.selector),"change",this.updateDisplay)})),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,t="",n="label"){const i=v_[e],s=i.id.replace("%s",this.id_),r=[t,s].join(" ").trim(),a=`vjs_select_${_y()}`;return[`<${n} id="${s}"${"label"===n?` for="${a}" class="vjs-label"`:""}>`,this.localize(i.label),`</${n}>`,`<select aria-labelledby="${r}" id="${a}">`].concat(i.options.map((e=>{const t=s+"-"+e[1].replace(/\W+/g,"");return[`<option id="${t}" value="${e[0]}" `,`aria-labelledby="${r} ${t}">`,this.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")}createElFgColor_(){const e=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e=`captions-window-${this.id_}`;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">
53`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return Rg("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return Rg("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return Rg("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${e}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${e}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return sg(v_,((e,t,n)=>{const i=function(e,t){return b_(e.options[e.options.selectedIndex].value,t)}(this.$(t.selector),t.parser);return void 0!==i&&(e[n]=i),e}),{})}setValues(e){ig(v_,((t,n)=>{!function(e,t,n){if(t)for(let i=0;i<e.options.length;i++)if(b_(e.options[i].value,n)===t){e.selectedIndex=i;break}}(this.$(t.selector),e[n],t.parser)}))}setDefaults(){ig(v_,(e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t}))}restoreSettings(){let e;try{e=JSON.parse(Eh.localStorage.getItem(a_))}catch(t){Zm.warn(t)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?Eh.localStorage.setItem(a_,JSON.stringify(e)):Eh.localStorage.removeItem(a_)}catch(t){Zm.warn(t)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()}handleLanguagechange(){this.fill()}});ev.registerComponent("ResizeManager",class extends ev{constructor(e,t){let n=t.ResizeObserver||Eh.ResizeObserver;null===t.ResizeObserver&&(n=!1);super(e,og({createEl:!n,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||Eh.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=Dy((()=>{this.resizeHandler()}),100,!1,this),n?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){xy(this,"resize",e),xy(this,"unload",t),t=null};Cy(this.el_.contentWindow,"unload",t),Cy(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}});const __={trackingThreshold:20,liveTolerance:15};ev.registerComponent("LiveTracker",class extends ev{constructor(e,t){super(e,og(__,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",(e=>this.handleDurationchange(e))),this.on(this.player_,"canplay",(()=>this.toggleTracking()))}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(Eh.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;const i=this.liveCurrentTime(),s=this.player_.currentTime();let r=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-s)>this.options_.liveTolerance;(!this.timeupdateSeen_||i===1/0)&&(r=!1),r!==this.behindLiveEdge_&&(this.behindLiveEdge_=r,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,Oy),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let n=e?e.length:0;for(;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let n=e?e.length:0;for(;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0}
vendor: 19,826 bytes, line 53
53liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}});ev.registerComponent("TitleBar",class extends ev{constructor(e,t){super(e,t),this.on("statechanged",(e=>this.updateDom_())),this.updateDom_()}createEl(){return this.els={title:Rg("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${_y()}`}),description:Rg("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${_y()}`})},Rg("div",{className:"vjs-title-bar"},{},lg(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,n={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach((e=>{const i=this.state[e],s=this.els[e],r=n[e];ey(s),i&&Bg(s,i),t&&(t.removeAttribute(r),i&&t.setAttribute(r,s.id))})),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});const T_=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const n=e.$$("source"),i=[];let s="";if(!n.length)return!1;for(let r=0;r<n.length;r++){const e=n[r].src;e&&-1===i.indexOf(e)&&i.push(e)}return!!i.length&&(1===i.length&&(s=i[0]),e.triggerSourceset(s),!0)},S_=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=Ah.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const n=Ah.createDocumentFragment();for(;t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",Eh.Element.prototype.appendChild.call(this,n),this.innerHTML}}),w_=(e,t)=>{let n={};for(let i=0;i<e.length&&(n=Object.getOwnPropertyDescriptor(e[i],t),!(n&&n.set&&n.get));i++);return n.enumerable=!0,n.configurable=!0,n},E_=function(e){const t=e.el();if(t.resetSourceWatch_)return;const n={},i=(e=>w_([e.el(),Eh.HTMLMediaElement.prototype,Eh.Element.prototype,S_],"innerHTML"))(e),s=n=>(...i)=>{const s=n.apply(t,i);return T_(e),s};["append","appendChild","insertAdjacentHTML"].forEach((e=>{t[e]&&(n[e]=t[e],t[e]=s(n[e]))})),Object.defineProperty(t,"innerHTML",og(i,{set:s(i.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(n).forEach((e=>{t[e]=n[e]})),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)},C_=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?Pv(Eh.Element.prototype.getAttribute.call(this,"src")):""},set(e){return Eh.Element.prototype.setAttribute.call(this,"src",e),e}}),x_=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const n=(e=>w_([e.el(),Eh.HTMLMediaElement.prototype,C_],"src"))(e),i=t.setAttribute,s=t.load;Object.defineProperty(t,"src",og(n,{set:i=>{const s=n.set.call(t,i);return e.triggerSourceset(t.src),s}})),t.setAttribute=(n,s)=>{const r=i.call(t,n,s);return/src/i.test(n)&&e.triggerSourceset(t.src),r},t.load=()=>{const n=s.call(t);return T_(e)||(e.triggerSourceset(""),E_(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):T_(e)||E_(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=s,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}};class k_ extends qv{constructor(e,t){super(e,t);const n=e.source;let i=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,n&&(this.el_.currentSrc!==n.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(n):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const n=[];for(;t--;){const s=e[t];"track"===s.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(s),this.remoteTextTracks().addTrack(s.track),this.textTracks().addTrack(s.track),!i&&!this.el_.hasAttribute("crossorigin")&&Lv(s.src)&&(i=!0)):n.push(s))}for(let i=0;i<n.length;i++)this.el_.removeChild(n[i])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&i&&Zm.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(xg||Cg)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),k_.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){x_(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const n=()=>{t=[];for(let n=0;n<e.length;n++){const i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};n(),e.addEventListener("change",n),this.on("dispose",(()=>e.removeEventListener("change",n)));const i=()=>{for(let e=0;e<t.length;e++){const n=t[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}e.removeEventListener("change",i)};this.on("webkitbeginfullscreen",(()=>{e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)})),this.on("webkitendfullscreen",(()=>{e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)}))}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const n=e.toLowerCase();this[`${n}TracksListeners_`]&&Object.keys(this[`${n}TracksListeners_`]).forEach((e=>{this.el()[`${n}Tracks`].removeEventListener(e,this[`${n}TracksListeners_`][e])})),this[`featuresNative${e}Tracks`]=!t,this[`${n}TracksListeners_`]=null,this.proxyNativeTracksForType_(n)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=jv[e],n=this.el()[t.getterName],i=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!n||!n.addEventListener)return;const s={change:t=>{const n={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(n),"text"===e&&this[Vv.remoteText.getterName]().trigger(n)},addtrack(e){i.addTrack(e.track)},removetrack(e){i.removeTrack(e.track)}},r=function(){const e=[];for(let t=0;t<i.length;t++){let s=!1;for(let e=0;e<n.length;e++)if(n[e]===i[t]){s=!0;break}s||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=s,Object.keys(s).forEach((e=>{const t=s[e];n.addEventListener(e,t),this.on("dispose",(i=>n.removeEventListener(e,t)))})),this.on("loadstart",r),this.on("dispose",(e=>this.off("loadstart",r)))}proxyNativeTracks_(){jv.names.forEach((e=>{this.proxyNativeTracksForType_(e)}))}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),k_.disposeMediaElement(e),e=t}else{e=Ah.createElement("video");const t=og({},this.options_.tag&&Hg(this.options_.tag));(!xg||!0!==this.options_.nativeControlsForTouch)&&delete t.controls,qg(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&Gg(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let n=0;n<t.length;n++){const i=t[n],s=this.options_[i];typeof s<"u"&&(s?Gg(e,i,i):Wg(e,i),e[i]=s)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=function(){e=!0};this.on("loadstart",t);const n=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready((function(){this.off("loadstart",t),this.off("loadedmetadata",n),e||this.trigger("loadstart")}))}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready((function(){t.forEach((function(e){this.trigger(e)}),this)}))}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&Ag?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){Zm(t,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&fg&&vg&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",(()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)}))}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)pv(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}reset(){k_.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,n):super.addTextTrack(e,t,n)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=Ah.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const n=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(n),n}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let n=t.length;for(;n--;)(e===t[n]||e===t[n].track)&&this.el().removeChild(t[n])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),Eh.performance&&(e.creationTime=Eh.performance.now()),e}}cg(k_,"TEST_VID",(function(){if(!Lg())return;const e=Ah.createElement("video"),t=Ah.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e})),k_.isSupported=function(){try{k_.TEST_VID.volume=.5}catch{return!1}return!(!k_.TEST_VID||!k_.TEST_VID.canPlayType)},k_.canPlayType=function(e){return k_.TEST_VID.canPlayType(e)},k_.canPlaySource=function(e,t){return k_.canPlayType(e.type)},k_.canControlVolume=function(){try{const e=k_.TEST_VID.volume;k_.TEST_VID.volume=e/2+.1;const t=e!==k_.TEST_VID.volume;return t&&Ig?(Eh.setTimeout((()=>{k_&&k_.prototype&&(k_.prototype.featuresVolumeControl=e!==k_.TEST_VID.volume)})),!1):t}catch{return!1}},k_.canMuteVolume=function(){try{const e=k_.TEST_VID.muted;return k_.TEST_VID.muted=!e,k_.TEST_VID.muted?Gg(k_.TEST_VID,"muted","muted"):Wg(k_.TEST_VID,"muted"),e!==k_.TEST_VID.muted}catch{return!1}},k_.canControlPlaybackRate=function(){if(fg&&vg&&_g<58)return!1;try{const e=k_.TEST_VID.playbackRate;return k_.TEST_VID.playbackRate=e/2+.1,e!==k_.TEST_VID.playbackRate}catch{return!1}},k_.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(Ah.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(Ah.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(Ah.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(Ah.createElement("audio"),"innerHTML",{get:e,set:e})}catch{return!1}return!0},k_.supportsNativeTextTracks=function(){return Ag||Ig&&vg},k_.supportsNativeVideoTracks=function(){return!(!k_.TEST_VID||!k_.TEST_VID.videoTracks)},k_.supportsNativeAudioTracks=function(){return!(!k_.TEST_VID||!k_.TEST_VID.audioTracks)},k_.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function([e,t]){cg(k_.prototype,e,(()=>k_[t]()),!0)})),k_.prototype.featuresVolumeControl=k_.canControlVolume(),k_.prototype.movingMediaElementInDOM=!Ig,k_.prototype.featuresFullscreenResize=!0,k_.prototype.featuresProgressEvents=!0,k_.prototype.featuresTimeupdateEvents=!0,k_.prototype.featuresVideoFrameCallback=!(!k_.TEST_VID||!k_.TEST_VID.requestVideoFrameCallback),k_.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch{}}()}},k_.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let n=t.length;for(;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch{}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){k_.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){k_.prototype["set"+Qy(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){k_.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){k_.prototype["set"+Qy(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){k_.prototype[e]=function(){return this.el_[e]()}})),qv.withSourceHandlers(k_),k_.nativeSourceHandler={},k_.nativeSourceHandler.canPlayType=function(e){try{return k_.TEST_VID.canPlayType(e)}catch{return""}},k_.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return k_.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=Ov(e.src);return k_.nativeSourceHandler.canPlayType(`video/${t}`)}return""},k_.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},k_.nativeSourceHandler.dispose=function(){},k_.registerSourceHandler(k_.nativeSourceHandler),qv.registerTech("Html5",k_);const I_=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],A_={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},P_=["tiny","xsmall","small","medium","large","xlarge","huge"],O_={};P_.forEach((e=>{const t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;O_[e]=`vjs-layout-${t}`}));const L_={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};let N_=class e extends ev{constructor(t,n,i){if(t.id=t.id||n.id||`vjs_video_${_y()}`,(n=Object.assign(e.getTagSettings(t),n)).initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){const e=t.closest("[lang]");e&&(n.language=e.getAttribute("lang"))}if(super(null,n,i),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.isFullscreen_=!1,this.log=eg(this.id_),this.fsApi_=Xm,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=t,this.tagAttributes=t&&Hg(t),this.language(this.options_.language),n.languages){const e={};Object.getOwnPropertyNames(n.languages).forEach((function(t){e[t.toLowerCase()]=n.languages[t]})),this.languages_=e}else this.languages_=e.prototype.options_.languages;this.resetCache_(),this.poster_=n.poster||"",this.controls_=!!n.controls,t.controls=!1,t.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],t.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach((e=>{if("function"!=typeof this[e])throw new Error(`plugin "${e}" does not exist`)})),this.scrubbing_=!1,this.el_=this.createEl(),Wy(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(Cy(Ah,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const s=og(this.options_);if(n.plugins&&Object.keys(n.plugins).forEach((e=>{this[e](n.plugins[e])})),n.debug&&this.debug(!0),this.options_.playerOptions=s,this.middleware_=[],this.playbackRates(n.playbackRates),n.experimentalSvgIcons){const e=(new Eh
vendor: 8,151 bytes, line 53
53.DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n      <path d="M16 10v28l22-14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n      <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n      <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n      <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n      <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n      <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n      <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n      <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n      <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n      <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n      <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n      <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n      <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n    </symbol>\n    <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n      <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n      <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n    </symbol>\n    <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n      <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n      <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n      <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n      <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n      <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n      <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n      <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n      <circle cx="24" cy="24" r="20"></circle>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n      <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n      <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n      <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-
vendor: 8,220 bytes, line 53
537.16 16-16-7.16-16-16-16z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n      <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n      <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n      <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n      <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n      <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n      <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n    </symbol>\n    <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n      <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n    </symbol>\n    <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n      <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n      <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n      <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n      <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n      <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n    </symbol>\n    <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n      <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n      <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n      <path fill="none" d="M-1-3h24v24H-1z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n      <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n      <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1
53792 1792" id="vjs-icon-twitter">\n      <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n      <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n    </symbol>\n    <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n      <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n    </symbol>\n  </defs>\n</svg>',"image/svg+xml");if(e.querySelector("parsererror"))Zm.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===t.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),xg&&this.addClass("vjs-touch-enabled"),Ig||this.addClass("vjs-workinghover"),e.players[this.id_]=this;const r=Hm.split(".")[0];this.addClass(`vjs-v${r}`),this.userActive(!0),this.reportUserActivity(),this.one("play",(e=>this.listenForUserActivity_(e))),this.on("keydown",(e=>this.handleKeyDown(e))),this.on("languagechange",(e=>this.handleLanguagechange(e))),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",(()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)}))}dispose(){this.trigger("dispose"),this.off("dispose"),xy(Ah,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),xy(Ah,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),function(e){zv[e.id()]=null}
vendor: 5,104 bytes, line 53
53(this),$v.names.forEach((e=>{const t=this[$v[e].getterName]();t&&t.off&&t.off()})),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,n=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const i="video-js"===this.tag.tagName.toLowerCase();n?e=this.el_=t.parentNode:i||(e=this.el_=super.createEl("div"));const s=Hg(t);if(i){for(e=this.el_=t,t=this.tag=Ah.createElement("video");e.children.length;)t.appendChild(e.firstChild);Fg(e,"video-js")||jg(e,"video-js"),e.appendChild(t),n=this.playerElIngest_=e,Object.keys(e).forEach((n=>{try{t[n]=e[n]}catch{}}))}if(t.setAttribute("tabindex","-1"),s.tabindex="-1",vg&&wg&&(t.setAttribute("role","application"),s.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(n){i&&"class"===n||e.setAttribute(n,s[n]),i&&t.setAttribute(n,s[n])})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused"),!0!==Eh.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=my("vjs-styles-dimensions");const e=ry(".vjs-styles-defaults"),t=ry("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const r=t.getElementsByTagName("a");for(let a=0;a<r.length;a++){const e=r.item(a);jg(e,"vjs-hidden"),e.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!n&&t.parentNode.insertBefore(e,t),Ug(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if(typeof e>"u")return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):Zm.warn(`crossOrigin must be null,  "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();const i=parseFloat(t);isNaN(i)?Zm.error(`Improper value "${t}" supplied for for ${e}`):(this[n]=i,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Fy(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),((e,t)=>{Fy(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))})(this,(()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)}))):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===Eh.VIDEOJS_NO_DYNAMIC_STYLE){const e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void(n&&(e>=0&&(n.width=e),t>=0&&(n.height=t)))}let e,t,n,i;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const s=n.split(":"),r=s[1]/s[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),gy(this.styleEl_,`\n      .${i} {\n        width: ${e}px;\n        height: ${t}px;\n      }\n\n      .${i}.vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: ${100*r}%;\n      }\n    `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const n=Qy(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(qv.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;let s=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(s=!1);const r={source:t,autoplay:s,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${i}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};
53$v.names.forEach((e=>{const t=$v[e];r[t.getterName]=this[t.privateName]})),Object.assign(r,this.options_[n]),Object.assign(r,this.options_[i]),Object.assign(r,this.options_[e.toLowerCase()]),this.tag&&(r.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(r.startTime=this.cache_.currentTime);const a=qv.getTech(e);if(!a)throw new Error(`No Tech named '${n}' exists! '${n}' should be registered using videojs.registerTech()'`);this.tech_=new a(r),this.tech_.ready(Ly(this,this.handleTechReady_),!0),gv(this.textTracksJson_||[],this.tech_),I_.forEach((e=>{this.on(this.tech_,e,(t=>this[`handleTech${Qy(e)}_`](t)))})),Object.keys(A_).forEach((e=>{this.on(this.tech_,e,(t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${A_[e]}_`].bind(this),event:t}):this[`handleTech${A_[e]}_`](t)}))})),this.on(this.tech_,"loadstart",(e=>this.handleTechLoadStart_(e))),this.on(this.tech_,"sourceset",(e=>this.handleTechSourceset_(e))),this.on(this.tech_,"waiting",(e=>this.handleTechWaiting_(e))),this.on(this.tech_,"ended",(e=>this.handleTechEnded_(e))),this.on(this.tech_,"seeking",(e=>this.handleTechSeeking_(e))),this.on(this.tech_,"play",(e=>this.handleTechPlay_(e))),this.on(this.tech_,"pause",(e=>this.handleTechPause_(e))),this.on(this.tech_,"durationchange",(e=>this.handleTechDurationChange_(e))),this.on(this.tech_,"fullscreenchange",((e,t)=>this.handleTechFullscreenChange_(e,t))),this.on(this.tech_,"fullscreenerror",((e,t)=>this.handleTechFullscreenError_(e,t))),this.on(this.tech_,"enterpictureinpicture",(e=>this.handleTechEnterPictureInPicture_(e))),this.on(this.tech_,"leavepictureinpicture",(e=>this.handleTechLeavePictureInPicture_(e))),this.on(this.tech_,"error",(e=>this.handleTechError_(e))),this.on(this.tech_,"posterchange",(e=>this.handleTechPosterChange_(e))),this.on(this.tech_,"textdata",(e=>this.handleTechTextData_(e))),this.on(this.tech_,"ratechange",(e=>this.handleTechRateChange_(e))),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&("Html5"!==n||!this.tag)&&Ug(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){$v.names.forEach((e=>{const t=$v[e];this[t.privateName]=this[t.getterName]()})),this.textTracksJson_=mv(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&Zm.warn("Using the tech directly can be dangerous. I hope you know 
53what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":Hm}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=()=>{const e=this.muted();this.muted(!0);const t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);const n=this.play();if(hv(n))return n.catch((e=>{throw t(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)}))};let n;return"any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():t():(n=this.play(),hv(n)&&(n=n.catch(t))),hv(n)?n.then((()=>{this.trigger({type:"autoplay-success",autoplay:e})})).catch((()=>{this.trigger({type:"autoplay-failure",autoplay:e})})):void 0}updateSourceCaches_(e=""){let t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=((e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const n=e.cache_.sources.filter((e=>e.src===t));if(n.length)return n[0].type;const i=e.$$("source");for(let s=0;s<i.length;s++){const e=i[s];if(e.type&&e.src&&e.src===t)return e.type}return tb(t)})(this,t)),this.cache_.source=og({},e,{src:t,type:n});const i=this.cache_.sources.filter((e=>e.src&&e.src===t)),s=[],r=this.$$("source"),a=[];for(let o=0;o<r.length;o++){const e=Hg(r[o]);s.push(e),e.src&&e.src===t&&a.push(e.src)}a.length&&!i.length?this.cache_.sources=s:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e);const n=this.currentSource().src,i=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==n)&&(t=()=>{}),t(i),e.src||this.tech_.any(["sourceset","loadstart"],(e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((e=>e.callback(e.event))),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
53handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.click||!1!==this.options_.userActions.click)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?pv(this.play()):this.pause())}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(t=>t.contains(e.target)))||(void 0===this.options_||void 0===this.options_.userActions||void 0===this.options_.userActions.doubleClick||!1!==this.options_.userActions.doubleClick)&&(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const n=this.el();let i=Ah[this.fsApi_.fullscreenElement]===n;!i&&n.matches&&(i=n.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(()=>{this.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready((function(){if(e in Yv)return function(e,t,n,i){return t[n](e.reduce(Jv(n),i))}(this.middleware_,this.tech_,e,t);if(e in Qv)return Xv(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(cp){throw Zm(cp),cp}}),!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in Kv)return function(e,t,n){return e.reduceRight(Jv(n),t[n]())}(this.middleware_,this.tech_,e);if(e in Qv)return Xv(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){throw void 0===this.tech_[e]?(Zm(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t):"TypeError"===t.name?(Zm(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t):(Zm(t),t)}}}play(){return new Promise((e=>{this.play_(e)}))}play_(e=pv){this.playCallbacks_.push(e);const t=!(this.changingSrc_||!this.src()&&!this.currentSrc()),n=!(!Ag&&!Ig);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&n&&this.load());const i=this.techGet_("play");n&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}
vendor: 20,841 bytes, line 53
53))}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||iv(0,0)}scrubbing(e){if(typeof e>"u")return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return(!e||!e.length)&&(e=iv(0,0)),e}seekable(){let e=this.techGet_("seekable");return(!e||!e.length)&&(e=iv(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return dv(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let n=e.end(e.length-1);return n>t&&(n=t),n}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=!!e,this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise(((n,i)=>{function s(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){s(),n()}function a(e,t){s(),i(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);const o=t.requestFullscreenHelper_(e);o&&(o.then(s,s),o.then(n,i))}))}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then((()=>this.isFullscreen(!0)),(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise(((t,n)=>{function i(){e.off("fullscreenerror",r),e.off("fullscreenchange",s)}function s(){i(),t()}function r(e,t){i(),n(t)}e.one("fullscreenchange",s),e.one("fullscreenerror",r);const a=e.exitFullscreenHelper_();a&&(a.then(i,i),a.then(t,n))}))}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=Ah[this.fsApi_.exitFullscreen]();return e&&pv(e.then((()=>this.isFullscreen(!1)))),e}this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=Ah.documentElement.style.overflow,Cy(Ah,"keydown",this.boundFullWindowOnEscKey_),Ah.documentElement.style.overflow="hidden",jg(Ah.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){Nh.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,xy(Ah,"keydown",this.boundFullWindowOnEscKey_),Ah.documentElement.style.overflow=this.docOrigOverflow,Vg(Ah.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&Eh.documentPictureInPicture){const e=Ah.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(Rg("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),Eh.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then((t=>(ly(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger("enterpictureinpicture"),t.addEventListener("pagehide",(t=>{const n=t.target.querySelector(".video-js");e.parentNode.replaceChild(n,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")})),t)))}return"pictureInPictureEnabled"in Ah&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return Eh.documentPictureInPicture&&Eh.documentPictureInPicture.window?(Eh.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in Ah?Ah.exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;!t||!t.hotkeys||(e=>{const t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;return"input"===t?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type):-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:n=e=>Nh.isEventKey(e,"f"),muteKey:i=e=>Nh.isEventKey(e,"m"),playPauseKey:s=e=>Nh.isEventKey(e,"k")||Nh.isEventKey(e,"Space")}=t;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();const t=ev.getComponent("FullscreenToggle");!1!==Ah[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else i.call(this,e)?(e.preventDefault(),e.stopPropagation(),ev.getComponent("MuteToggle").prototype.handleClick.call(this,e)):s.call(this,e)&&(e.preventDefault(),e.stopPropagation(),ev.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let n=0,i=this.options_.techOrder;n<i.length;n++){const s=i[n];let r=qv.getTech(s);if(r||(r=ev.getComponent(s)),r){if(r.isSupported()&&(t=r.canPlayType(e),t))return t}else Zm.error(`The "${s}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map((e=>[e,qv.getTech(e)])).filter((([e,t])=>t?t.isSupported():(Zm.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1))),n=function(e,t,n){let i;return e.some((e=>t.some((t=>{if(i=n(e,t),i)return!0})))),i};let i;const s=([e,t],n)=>{if(t.canPlaySource(n,this.options_[e.toLowerCase()]))return{source:n,tech:e}};return i=this.options_.sourceOrder?n(e,t,(e=>(t,n)=>e(n,t))(s)):n(t,e,s),i||!1}handleSrc_(e,t){if(typeof e>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const n=nb(e);if(n.length){if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),Wv(this,n[0],((e,i)=>{if(this.middleware_=i,t||(this.cache_.sources=n),this.updateSourceCaches_(e),this.src_(e))return n.length>1?this.handleSrc_(n.slice(1)):(this.changingSrc_=!1,this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void this.triggerReady());!function(e,t){e.forEach((e=>e.setTech&&e.setTech(t)))}(i,this.tech_)})),n.length>1){const e=()=>{this.error(null),this.handleSrc_(n.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(Jy(t.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready((()=>{this.changingSrc_=!1})),!1))}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{pv(this.play().then((()=>this.doReset_())))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Fy(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:n,remainingTimeDisplay:i}=this.controlBar||{},{seekBar:s}=n||{};e&&e.updateContent(),t&&t.updateContent(),i&&i.updateContent(),s&&(s.update(),s.loadProgressBar&&s.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=typeof t>"u"?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(Gm("beforeerror").forEach((t=>{const n=t(this,e);rg(n)&&!Array.isArray(n)||"string"==typeof n||"number"==typeof n||null===n?e=n:this.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new uv(e),this.addClass("vjs-error"),Zm.error(`(CODE:${this.error_.code} ${uv.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),Gm("error").forEach((e=>e(this,this.error_)))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,n;const i=Ly(this,this.reportUserActivity),s=function(t){i(),this.clearInterval(e)};this.on("mousedown",(function(){i(),this.clearInterval(e),e=this.setInterval(i,250)})),this.on("mousemove",(function(e){(e.screenX!==t||e.screenY!==n)&&(t=e.screenX,n=e.screenY,i())})),this.on("mouseup",s),this.on("mouseleave",s);const r=this.getChild("controlBar");let a;r&&!Ig&&!fg&&(r.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),r.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",i),this.on("keyup",i);this.setInterval((function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);const e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}),250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),n=t&&t.currentHeight();e.forEach((e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((e=>e.show())),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then((()=>this.enableAudioOnlyUI_()))}return Promise.resolve().then((()=>this.disableAudioOnlyUI_()))}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then((()=>{this.enablePosterModeUI_()})):Promise.resolve().then((()=>{this.enablePosterModeUI_()})):Promise.resolve().then((()=>{this.disablePosterModeUI_()})))}addTextTrack(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Fy(this)&&this.trigger("languagechange"))}languages(){return og(e.prototype.options_.languages,this.languages_)}toJSON(){const e=og(this.options_),t=e.tracks;e.tracks=[];for(let n=0;n<t.length;n++){let i=t[n];i=og(i),i.player=void 0,e.tracks[n]=i}return e}createModal(e,t){(t=t||{}).content=e||"";const n=new vv(this,t);return this.addChild(n),n.on("dispose",(()=>{this.removeChild(n)})),n.open(),n}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let n=0;n<P_.length;n++){const i=P_[n];if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(O_[e]),this.addClass(O_[i]),this.breakpoint_=i;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},L_,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){if(void 0===e)return this.responsive_;return(e=!!e)!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return O_[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const n=this.crossOrigin();this.reset(),this.cache_.media=og(e);const{artist:i,artwork:s,description:r,poster:a,src:o,textTracks:l,title:c}=this.cache_.media;!s&&a&&(this.cache_.media.artwork=[{src:a,type:tb(a)}]),n&&this.crossOrigin(n),o&&this.src(o),a&&this.poster(a),Array.isArray(l)&&l.forEach((e=>this.addRemoteTextTrack(e,!1))),this.titleBar&&this.titleBar.update({title:c,description:r||i||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t=this.currentSources(),n=Array.prototype.map.call(this.remoteTextTracks(),(e=>({kind:e.kind,label:e.label,language:e.language,src:e.src}))),i={src:t,textTracks:n};return e&&(i.poster=e,i.artwork=[{src:i.poster,type:tb(i.poster)}]),i}return og(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},n=Hg(e),i=n["data-setup"];if(Fg(e,"vjs-fill")&&(n.fill=!0),Fg(e,"vjs-fluid")&&(n.fluid=!0),null!==i){const[e,t]=Bh(i||"{}");e&&Zm.error(e),Object.assign(n,t)}if(Object.assign(t,n),e.hasChildNodes()){const n=e.childNodes;for(let e=0,i=n.length;e<i;e++){const i=n[e],s=i.nodeName.toLowerCase();"source"===s?t.sources.push(Hg(i)):"track"===s&&t.tracks.push(Hg(i))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((e=>"number"==typeof e))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}};
53$v.names.forEach((function(e){const t=$v[e];N_.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),N_.prototype.crossorigin=N_.prototype.crossOrigin,N_.players={};const D_=Eh.navigator;N_.prototype.options_={techOrder:qv.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:D_&&(D_.languages&&D_.languages[0]||D_.userLanguage||D_.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1},I_.forEach((function(e){N_.prototype[`handleTech${Qy(e)}_`]=function(){return this.trigger(e)}})),ev.registerComponent("Player",N_);const M_="plugin",R_="activePlugins_",B_={},U_=e=>B_.hasOwnProperty(e),F_=e=>U_(e)?B_[e]:void 0,j_=(e,t)=>{e[R_]=e[R_]||{},e[R_][t]=!0},V_=(e,t,n)=>{const i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},$_=(e,t)=>(t.prototype.name=e,function(...n){V_(this,{name:e,plugin:t,instance:null},!0);const i=new t(this,...n);return this[e]=()=>i,V_(this,i.getEventHash()),i});let q_=class e{constructor(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),Wy(this),delete this.trigger,Ky(this,this.constructor.defaultState),j_(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return ky(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[R_][e]=!1,this.player=this.state=null,t[e]=$_(e,B_[e])}static isBasic(t){const n="string"==typeof t?F_(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)}static registerPlugin(t,n){if("string"!=typeof t)throw new Error(`Illegal plugin name, "${t}", must be a string, was ${typeof t}.`);if(U_(t))Zm.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if(N_.prototype.hasOwnProperty(t))throw new Error(`Illegal plugin name, "${t}", cannot share a name with an existing player method!`);if("function"!=typeof n)throw new Error(`Illegal plugin for "${t}", must be a function, was ${typeof n}.`);return B_[t]=n,t!==M_&&(e.isBasic(n)?N_.prototype[t]=function(e,t){const n=function(){V_(this,{name:e,plugin:t,instance:null},!0);const n=t.apply(this,arguments);return j_(this,e),V_(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}(t,n):N_.prototype[t]=$_(t,n)),n}static deregisterPlugin(e){if(e===M_)throw new Error("Cannot de-register base plugin.");U_(e)&&(delete B_[e],delete N_.prototype[e])}static getPlugins(e=Object.keys(B_)){let t;return e.forEach((e=>{const n=F_(e);n&&(t=t||{},t[e]=n)})),t}static getPluginVersion(e){const t=F_(e);return t&&t.VERSION||""}};function H_(e,t,n,i){return function(e,t){let n=!1;return function(...i){return n||Zm.warn(e),n=!0,t.apply(this,i)}}(`${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`,i)}q_.getPlugin=F_,q_.BASE_PLUGIN_NAME=M_,q_.registerPlugin(M_,q_),N_.prototype.usingPlugin=function(e){return!!this[R_]&&!0===this[R_][e]},N_.prototype.hasPlugin=function(e){return!!U_(e)};const z_=e=>0===e.indexOf("#")?e.slice(1):e;function G_(e,t,n){let i=G_.getPlayer(e);if(i)return t&&Zm.warn(`Player "${e}" is already initialised. Options will not be applied.`),n&&i.ready(n),i;const s="string"==typeof e?ry("#"+z_(e)):e;if(!Ng(s))throw new TypeError("The element or ID supplied is not valid. (videojs)");const r="getRootNode"in s&&s.getRootNode()instanceof Eh.ShadowRoot?s.getRootNode():s.ownerDocument.body;(!s.ownerDocument.defaultView||!r.contains(s))&&Zm.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(s.parentNode&&s.parentNode.hasAttribute("data-vjs-player")?s.parentNode:s).cloneNode(!0)),Gm
vendor: 1,187 bytes, line 53
53("beforesetup").forEach((e=>{const n=e(s,og(t));rg(n)&&!Array.isArray(n)?t=og(t,n):Zm.error("please return an object in beforesetup hooks")}));const a=ev.getComponent("Player");return i=new a(s,t,n),Gm("setup").forEach((e=>e(i))),i}if(G_.hooks_=zm,G_.hooks=Gm,G_.hook=function(e,t){Gm(e,t)},G_.hookOnce=function(e,t){Gm(e,[].concat(t).map((t=>{const n=(...i)=>(Wm(e,n),t(...i));return n})))},G_.removeHook=Wm,!0!==Eh.VIDEOJS_NO_DYNAMIC_STYLE&&Lg()){let e=ry(".vjs-styles-defaults");if(!e){e=my("vjs-styles-defaults");const t=ry("head");t&&t.insertBefore(e,t.firstChild),gy(e,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: 56.25%\n      }\n    ")}}py(1,G_),G_.VERSION=Hm,G_.options=N_.prototype.options_,G_.getPlayers=()=>N_.players,G_.getPlayer=e=>{const t=N_.players;let n;if("string"==typeof e){const i=z_(e),s=t[i];if(s)return s;n=ry("#"+i)}else n=e;if(Ng(n)){const{player:e,playerId:i}=n;if(e||t[i])return e||t[i]}},G_.getAllPlayers=()=>Object.keys(N_.players).map((e=>N_.players[e])).filter(Boolean),G_.players=N_.players,G_.getComponent=ev.getComponent,G_.registerComponent=(e,t)=>
vendor: 4,186 bytes, lines 53-57
53(qv.isTech(t)&&Zm.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),ev.registerComponent.call(ev,e,t)),G_.getTech=qv.getTech,G_.registerTech=qv.registerTech,G_.use=function(e,t){Hv[e]=Hv[e]||[],Hv[e].push(t)},Object.defineProperty(G_,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(G_.middleware,"TERMINATOR",{value:Gv,writeable:!1,enumerable:!0}),G_.browser=Pg,G_.obj=dg,G_.mergeOptions=H_(9,"videojs.mergeOptions","videojs.obj.merge",og),G_.defineLazyProperty=H_(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",cg),G_.bind=H_(9,"videojs.bind","native Function.prototype.bind",Ly),G_.registerPlugin=q_.registerPlugin,G_.deregisterPlugin=q_.deregisterPlugin,G_.plugin=(e,t)=>(Zm.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),q_.registerPlugin(e,t)),G_.getPlugins=q_.getPlugins,G_.getPlugin=q_.getPlugin,G_.getPluginVersion=q_.getPluginVersion,G_.addLanguage=function(e,t){return e=(""+e).toLowerCase(),G_.options.languages=og(G_.options.languages,{[e]:t}),G_.options.languages[e]},G_.log=Zm,G_.createLogger=eg,G_.time=cv,G_.createTimeRange=H_(9,"videojs.createTimeRange","videojs.time.createTimeRanges",iv),G_.createTimeRanges=H_(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",iv),G_.formatTime=H_(9,"videojs.formatTime","videojs.time.formatTime",lv),G_.setFormatTime=H_(9,"videojs.setFormatTime","videojs.time.setFormatTime",av),G_.resetFormatTime=H_(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",ov),G_.parseUrl=H_(9,"videojs.parseUrl","videojs.url.parseUrl",Av),G_.isCrossOrigin=H_(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Lv),G_.EventTarget=By,G_.any=Ay,G_.on=Cy,G_.one=Iy,G_.off=xy,G_.trigger=ky,G_.xhr=Wh,G_.TextTrack=Rv,G_.AudioTrack=Bv,G_.VideoTrack=Uv,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((e=>{G_[e]=function(){return Zm.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),cy[e].apply(null,arguments)}})),G_.computedStyle=H_(9,"videojs.computedStyle","videojs.dom.computedStyle",oy),G_.dom=cy,G_.fn=My,G_.num=Tb,G_.str=Zy,G_.url=Nv;
54/*! @name videojs-contrib-quality-levels @version 4.0.0 @license Apache-2.0 */
55class W_{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class X_ extends G_.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const n=this.levels_.length;return t=new W_(e),""+n in this||Object.defineProperty(this,n,{get(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let n=0,i=this.length;n<i;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,n=this.length;t<n;t++){const n=this[t];if(n.id===e)return n}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}X_.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const r$ in X_.prototype.allowedEvents_)X_.prototype["on"+r$]=null;var K_="4.0.0";const Y_=function(e){return function(e){const t=e.qualityLevels,n=new X_,i=function(){n.dispose(),e.qualityLevels=t,e.off("dispose",i)};return e.on("dispose",i),e.qualityLevels=()=>n,e.qualityLevels.VERSION=K_,n}(this,G_.obj.merge({},e))};G_.registerPlugin("qualityLevels",Y_),Y_.VERSION=K_;
56/*! @name @videojs/http-streaming @version 3.10.0 @license Apache-2.0 */
57const Q_=yp,J_=(e,t)=>
vendor: 5,345 bytes, line 57
57t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,Z_=e=>G_.log.debug?G_.log.debug.bind(G_,"VHS:",`${e} >`):function(){};function eT(...e){const t=G_.obj||G_;return(t.merge||t.mergeOptions).apply(t,e)}function tT(...e){const t=G_.time||G_;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const nT=1/30,iT=.1,sT=function(e,t){const n=[];let i;if(e&&e.length)for(i=0;i<e.length;i++)t(e.start(i),e.end(i))&&n.push([e.start(i),e.end(i)]);return tT(n)},rT=function(e,t){return sT(e,(function(e,n){return e-iT<=t&&n+iT>=t}))},aT=function(e,t){return sT(e,(function(e){return e-nT>=t}))},oT=e=>{const t=[];if(!e||!e.length)return"";for(let n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},lT=e=>{const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},cT=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},dT=function(e,t){let n=0;if(!e||!e.length)return n;for(let i=0;i<e.length;i++){const s=e.start(i),r=e.end(i);if(!(t>r)){if(t>s&&t<=r){n+=r-t;continue}n+=r-s}}return n},uT=(e,t)=>{if(!t.preload)return t.duration;let n=0;return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n},hT=e=>(e.segments||[]).reduce(((e,t,n)=>(t.parts?t.parts.forEach((function(i,s){e.push({duration:i.duration,segmentIndex:n,partIndex:s,part:i,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e)),[]),pT=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},fT=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:n}=e;let i=(n||[]).reduce(((e,t)=>e+("PART"===t.type?1:0)),0);return i+=t&&t.length?t.length:0,i},mT=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const n=pT(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},gT=function(e,t,n){if(typeof t>"u"&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const i=function(e,t){let n=0,i=t-e.mediaSequence,s=e.segments[i];if(s){if(typeof s.start<"u")return{result:s.start,precise:!0};if(typeof s.end<"u")return{result:s.end-s.duration,precise:!0}}for(;i--;){if(s=e.segments[i],typeof s.end<"u")return{result:n+s.end,precise:!0};if(n+=uT(e,s),typeof s.start<"u")return{result:n+s.start,precise:!0}}return{result:n,precise:!1}}(e,t);if(i.precise)return i.result;const s=function(e,t){let n,i=0,s=t-e.mediaSequence;for(;s<e.segments.length;s++){if(n=e.segments[s],typeof n.start<"u")return{result:n.start-i,precise:!0};if(i+=uT(e,n),typeof n.end<"u")return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(e,t);return s.precise?s.result:i.result+n},yT=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),typeof t>"u"){if(e.totalDuration)return e.totalDuration;if(!e.endList)return Eh.Infinity}return gT(e,t,n)},vT=function({defaultDuration:e,durationList:t,startIndex:n,endIndex:i}){let s=0;if(n>i&&([n,i]=[i,n]),n<0){for(let t=n;t<Math.min(0,i);t++)s+=e;n=0}for(let r=n;r<i;r++)s+=t[r].duration;return s},bT=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return yT(e);if(null===t)return null;t=t||0;let s=gT(e,e.mediaSequence+e.segments.length,t);return n&&(s-=i="number"==typeof i?i:mT(null,e)),Math.max(0,s)},_T=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},TT=function(e){return e.excludeUntil&&e.excludeUntil===1/0},ST=function(e){const t=_T(e);return!e.disabled&&!t},wT=function(e,t){return t.attributes&&t.attributes[e]},ET=(e,t)=>{if(1===e.playlists.length)return!0;const n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((e=>!!ST(e)&&(e.attributes.BANDWIDTH||0)<n)).length},CT=(e,t)=>!(!e&&!t||!e&&t||e&&!t)&&!!(e===t||e.id&&t.id&&e.id===t.id||e.resolvedUri&&t.resolvedUri&&e.resolvedUri===t.resolvedUri||e.uri&&t.uri&&e.uri===t.uri),xT=function(e,t){const n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let i=!1;for(const s in n){for(const e in n[s])if(i=t(n[s][e]),i)break;if(i)break}return!!i},kT=e=>{if(!e||!e.playlists||!e.playlists.length)return xT(e,(e=>e.playlists&&e.playlists.length||e.uri));for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;if(!(i&&i.split(",").every((e=>Np(e)))||xT(e,(e=>CT(n,e)))))return!1}return!0};var IT={liveEdgeDelay:mT,duration:yT,seekable:function(e,t,n){const i=t||0;let s=bT(e,t,!0,n);return null===s?tT():(s<i&&(s=i),tT(i,s))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:n,startingPartIndex:i,startTime:s,exactManifestTimings:r}){let a=t-s;const o=hT(e);let l=0;for(let c=0;c<o.length;c++){const e=o[c];if(n===e.segmentIndex&&("number"!=typeof i||"number"!=typeof e.partIndex||i===e.partIndex)){l=c;break}}if(a<0){if(l>0)for(let t=l-1;t>=0;t--){const n=o[t];if(a+=n.duration,r){if(a<0)continue}else if(a+nT<=0)continue;return{partIndex:n.partIndex,segmentIndex:n.segmentIndex,startTime:s-vT({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t}}if(l<0){for(let n=l;n<0;
vendor: 1,721 bytes, line 57
57n++)if(a-=e.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t};l=0}for(let c=l;c<o.length;c++){const t=o[c];a-=t.duration;const n=t.duration>nT;if(!(0===a)&&!(n&&a+nT>=0)||c===o.length-1){if(r){if(a>0)continue}else if(a-nT>=0)continue;return{partIndex:t.partIndex,segmentIndex:t.segmentIndex,startTime:s+vT({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:c})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}},isEnabled:ST,isDisabled:function(e){return e.disabled},isExcluded:_T,isIncompatible:TT,playlistEnd:bT,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:wT,estimateSegmentRequestTime:function(e,t,n,i=0){return wT("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*i)/t:NaN},isLowestEnabledRendition:ET,isAudioOnly:kT,playlistMatch:CT,segmentDurationWithParts:uT};const{log:AT}=G_,PT=(e,t)=>`${e}-${t}`,OT=(e,t,n)=>`placeholder-uri-${e}-${t}-${n}`,LT=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((n=>{if(e.mediaGroups[n])for(const i in e.mediaGroups[n])for(const s in e.mediaGroups[n][i]){const r=e.mediaGroups[n][i][s];t(r,n,i,s)}}))},NT=({playlist:e,uri:t,id:n})=>{e.id=n,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},DT=(e,t,n=OT)=>{e.uri=t;for(let s=0;s<e.playlists.length;s++)if(!e.playlists[s].uri){const t=`placeholder-uri-${s}`;e.playlists[s].uri=t}const i=kT(e);LT(e,((t,s,r,a)=>{if(!t.playlists||!t.playlists.length){if(i&&"AUDIO"===s&&!t.uri)for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t];if(n.attributes&&n.attributes.AUDIO&&n.attributes.AUDIO===r)return}t.playlists=[op({},t)]}
vendor: 11,290 bytes, line 57
57t.playlists.forEach((function(t,i){const o=n(s,r,a,t),l=PT(i,o);t.uri?t.resolvedUri=t.resolvedUri||Q_(e.uri,t.uri):(t.uri=0===i?o:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),(e=>{let t=e.playlists.length;for(;t--;){const n=e.playlists[t];NT({playlist:n,id:PT(t,n.uri)}),n.resolvedUri=Q_(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||AT.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(e),(e=>{LT(e,(t=>{t.uri&&(t.resolvedUri=Q_(e.uri,t.uri))}))})(e)};class MT{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_||!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,n=t.startDate.getTime();this.trimProcessedDateRanges_(n),this.pendingDateRanges_=e.reduce(((e,t)=>(e.set(t.id,t),e)),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach(((n,i)=>{if(!this.processedDateRanges_.has(i)&&(n.startTime=n.startDate.getTime()/1e3-this.offset_,n.processDateRange=()=>this.processDateRange(n),t.push(n),n.class))if(e[n.class]){const t=e[n.class].push(n);n.classListIndex=t-1}else e[n.class]=[n],n.classListIndex=0}));for(const n of t){const t=e[n.class]||[];n.endDate?n.endTime=n.endDate.getTime()/1e3-this.offset_:n.endOnNext&&t[n.classListIndex+1]?n.endTime=t[n.classListIndex+1].startTime:n.duration?n.endTime=n.startTime+n.duration:n.plannedDuration?n.endTime=n.startTime+n.plannedDuration:n.endTime=n.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach(((t,n)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(n)}))}}const{EventTarget:RT}=G_,BT=(e,t)=>{if(!e)return t;const n=eT(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(let i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=eT(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},UT=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=Q_(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Q_(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Q_(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Q_(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((e=>{e.resolvedUri||(e.resolvedUri=Q_(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((e=>{e.resolvedUri||(e.resolvedUri=Q_(t,e.uri))}))},FT=function(e){const t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(let e=0;e<n.preloadHints.length;e++)if("MAP"===n.preloadHints[e].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},jT=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,VT=(e,t,n=jT)=>{const i=eT(e,{}),s=i.playlists[t.id];if(!s||n(s,t))return null;t.segments=FT(t);const r=eT(s,t);if(r.preloadSegment&&!t.preloadSegment&&delete r.preloadSegment,s.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}r.segments=((e,t,n)=>{const i=e.slice(),s=t.slice();n=n||0;const r=[];let a;for(let o=0;o<s.length;o++){const e=i[o+n],t=s[o];e?(a=e.map||a,r.push(BT(e,t))):(a&&!t.map&&(t.map=a),r.push(t))}return r})(s.segments,t.segments,t.mediaSequence-s.mediaSequence)}r.segments.forEach((e=>{UT(e,r.resolvedUri)}));for(let a=0;a<i.playlists.length;a++)i.playlists[a].id===t.id&&(i.playlists[a]=r);return i.playlists[t.id]=r,i.playlists[t.uri]=r,LT(e,((e,n,i,s)=>{if(e.playlists)for(let a=0;a<e.playlists.length;a++)t.id===e.playlists[a].id&&(e.playlists[a]=r)})),i},$T=(e,t)=>{const n=e.segments||[],i=n[n.length-1],s=i&&i.parts&&i.parts[i.parts.length-1],r=s&&s.duration||i&&i.duration;return t&&r?1e3*r:500*(e.partTargetDuration||e.targetDuration||10)};let qT=class extends RT{constructor(e,t,n={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=Z_("PlaylistLoader");const{withCredentials:i=!1}=n;this.src=e,this.vhs_=t,this.withCredentials=i,this.addDateRangesToTextTrack_=n.addDateRangesToTextTrack;const s=t.options_;this.customTagParsers=s&&s.customTagParsers||[],this.customTagMappers=s&&s.customTagMappers||[],this.llhls=s&&s.llhls,this.dateRangesStorage_=new MT,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();!t.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=Q_(this.main.uri,e.uri);this.llhls&&(t=((e,t)=>{if(t.endList||!t.serverControl)return e;const n={};if(t.serverControl.canBlockReload){const{preloadSegment:e}=t;let i=t.mediaSequence+t.segments.length;if(e){const s=e.parts||[],r=fT(t)-1;r>-1&&r!==s.length-1&&(n._HLS_part=r),(r>-1||s.length)&&i--}n._HLS_msn=i}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){const t=new Eh.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&t.searchParams.set(e,n[e])})),e=t.toString()}return e})(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials},((e,t)=>{if(this.request){if(e)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}}))}playlistRequestError(e,t,n){const{uri:i,id:s}=t;this.request=null,n&&(this.state=n),this.error={playlist:this.main.playlists[s],status:e.status,message:`HLS playlist request error at URL: ${i}.`,responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}parseManifest_({url:e,manifestString:t}){return(({onwarn:e,oninfo:t,manifestString:n,customTagParsers:i=[],customTagMappers:s=[],llhls:r})=>{const a=new kp;e&&a.on("warn",e),t&&a.on("info",t),i.forEach((e=>a.addParser(e))),s.forEach((e=>a.addTagMapper(e))),a.push(n),a.end();const o=a.manifest;if(r||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){o.hasOwnProperty(e)&&delete o[e]})),o.segments&&o.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!o.targetDuration){let t=10;o.segments&&o.segments.length&&(t=o.segments.reduce(((e,t)=>Math.max(e,t.duration)),0)),e&&e({message:`manifest has no targetDuration defaulting to ${t}`}),o.targetDuration=t}const l=pT(o);if(l.length&&!o.partTargetDuration){const t=l.reduce(((e,t)=>Math.max(e,t.duration)),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${t}`}),AT.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=t}return o})({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}haveMetadata({playlistString:e,playlistObject:t,url:n,id:i}){this.request=null,this.state="HAVE_METADATA";const s=t||this.parseManifest_({url:n,manifestString:e});s.lastRequest=Date.now(),NT({playlist:s,uri:n,id:i});const r=VT(this.main,s);this.targetDuration=s.partTargetDuration||s.targetDuration,this.pendingMedia_=null,r?(this.main=r,this.media_=this.main.playlists[i]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_($T(this.media(),!!r)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),Eh.clearTimeout(this.mediaUpdateTimeout),Eh.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new MT,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(Eh.clearTimeout(this.finalRenditionTimeout),t){const t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=Eh.setTimeout(this.media.bind(this,e,!1),t))}const n=this.state,i=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===n?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_($T(e,!0)),i){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},((t,i)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=J_(e.resolvedUri,i),t)return this.playlistRequestError(this.request,e,n);this.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===n?this.trigger("loadedmetadata"):this.trigger("mediachange")}}))}}pause(){this.mediaUpdateTimeout&&(Eh.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(Eh.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=Eh.setTimeout((()=>{this.mediaUpdateTimeout=null,this.load()}),e)}else this.started?t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(Eh.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=Eh.setTimeout((()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)}),e))}
vendor: 6,563 bytes, line 57
57start(){if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=Eh.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((()=>{this.setupInitialPlaylist(this.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},((e,t)=>{if(!this.request)return;if(this.request=null,e)return this.error={status:t.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:t.responseText,code:2},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.src=J_(this.src,t);const n=this.parseManifest_({manifestString:t.responseText,url:this.src});this.setupInitialPlaylist(n)}))}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,DT(this.main,this.srcUri()),e.playlists.forEach((e=>{e.segments=FT(e),e.segments.forEach((t=>{UT(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||Eh.location.href;this.main=((e,t)=>{const n=PT(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:Eh.location.href,resolvedUri:Eh.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i})(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const n=this.main,i=e.ID;let s=n.playlists.length;for(;s--;){const r=n.playlists[s];if(r.attributes["PATHWAY-ID"]===i){const a=r.resolvedUri,o=r.id;if(t){const t=this.createCloneURI_(r.resolvedUri,e),a=PT(i,t),o=this.createCloneAttributes_(i,r.attributes),l=this.createClonePlaylist_(r,a,e,o);n.playlists[s]=l,n.playlists[a]=l,n.playlists[t]=l}else n.playlists.splice(s,1);delete n.playlists[o],delete n.playlists[a]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const n=this.main,i=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((e=>{if(n.mediaGroups[e]&&n.mediaGroups[e][i])for(const t in n.mediaGroups[e])if(t===i){for(const i in n.mediaGroups[e][t])n.mediaGroups[e][t][i].playlists.forEach(((e,t)=>{const i=n.playlists[e.id],s=i.id,r=i.resolvedUri;delete n.playlists[s],delete n.playlists[r]}));delete n.mediaGroups[e][t]}})),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const n=this.main,i=n.playlists.length,s=this.createCloneURI_(t.resolvedUri,e),r=PT(e.ID,s),a=this.createCloneAttributes_(e.ID,t.attributes),o=this.createClonePlaylist_(t,r,e,a);n.playlists[i]=o,n.playlists[r]=o,n.playlists[s]=o,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,n=e["BASE-ID"],i=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((s=>{if(i.mediaGroups[s]&&!i.mediaGroups[s][t])for(const r in i.mediaGroups[s])if(r===n){i.mediaGroups[s][t]={};for(const n in i.mediaGroups[s][r]){const a=i.mediaGroups[s][r][n];i.mediaGroups[s][t][n]=op({},a);const o=i.mediaGroups[s][t][n],l=this.createCloneURI_(a.resolvedUri,e);o.resolvedUri=l,o.uri=l,o.playlists=[],a.playlists.forEach(((r,a)=>{const l=i.playlists[r.id],c=OT(s,t,n),d=PT(t,c);if(l&&!i.playlists[d]){const t=this.createClonePlaylist_(l,d,e),n=t.resolvedUri;i.playlists[d]=t,i.playlists[n]=t}o.playlists[a]=this.createClonePlaylist_(r,d,e)}))}}}))}createClonePlaylist_(e,t,n,i){const s=this.createCloneURI_(e.resolvedUri,n),r={resolvedUri:s,uri:s,id:t};return e.segments&&(r.segments=[]),i&&(r.attributes=i),eT(e,r)}createCloneURI_(e,t){const n=new URL(e);n.hostname=t["URI-REPLACEMENT"].HOST;const i=t["URI-REPLACEMENT"].PARAMS;for(const s of Object.keys(i))n.searchParams.set(s,i[s]);return n.href}createCloneAttributes_(e,t){const n={"PATHWAY-ID":e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((i=>{t[i]&&(n[i]=e)})),n}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const n in e.contentProtection){const i=e.contentProtection[n].attributes.keyId;i&&t.add(i.toLowerCase())}return t}}};const{xhr:HT}=G_,zT=function(e,t,n,i){const s="arraybuffer"===e.responseType?e.response:e.responseText;!t&&s&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=s.byteLength||s.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),!t&&!e.aborted&&200!==n.statusCode&&206!==n.statusCode&&0!==n.statusCode&&(t=new Error("XHR Failed with a response of: "+(e&&(s||e.responseText)))),i(t,e)},GT=function(){const e=function e(t,n){t=eT({timeout:45e3},t);const i=e.beforeRequest||G_.Vhs.xhr.beforeRequest,s=e._requestCallbackSet||G_.Vhs.xhr._requestCallbackSet||new Set,r=e._responseCallbackSet||G_.Vhs.xhr._responseCallbackSet;i&&"function"==typeof i&&(G_.log.warn("beforeRequest is deprecated, use onRequest instead."),s.add(i));const a=!0===G_.Vhs.xhr.original?HT:G_.Vhs.xhr,o=((e,t)=>{if(!e||!e.size)return;let n=t;return e.forEach((e=>{n=e(n)})),n})(s,t);s.delete(i);const l=a(o||t,(function(e,t){return((e,t,n,i)=>{!e||!e.size||e.forEach((e=>{e(t,n,i)}))})(r,l,e,t),zT(l,e,t,n)})),c=l.abort;return l.abort=function(){return l.aborted=!0,c.apply(l,arguments)},l.uri=t.uri,l.requestTime=Date.now(),l};return e.original=!0,e},WT=function(e){const t={};return e.byterange&&(t.Range=function(e){let t;const n=e.offset;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?Eh.BigInt(e.offset)+Eh.BigInt(e.length)-Eh.BigInt(1):e.offset+e.length-1,"bytes="+n+"-"+t}(e.byterange)),t},XT=function(e,t){return e.start(t)+"-"+e.end(t)},KT=function(e,t){const n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},YT=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},QT=function(e){const t={};return Object.keys(e).forEach((n=>{const i=e[n];Vp(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},JT=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},ZT=function(e){return e.resolvedUri},eS=e=>{const t=Array.prototype.slice.call(e),n=16;let i,s,r="";for(let a=0;a<t.length/n;a++)i=t.slice(a*n,a*n+n).map(KT).join(""),s=t.slice(a*n,a*n+n).map(YT).join(""),r+=i+" "+s+"\n";return r};var tS=Object.freeze({__proto__:null,createTransferableMessage:QT,initSegmentId:JT,segmentKeyId:ZT,hexDump:eS,tagDump:({bytes:e})=>eS(e),textRanges:e=>{let t,n="";for(t=0;t<e.length;t++)n+=XT(e,t)+" ";return n}});const nS=({playlist:e,time:t,callback:n})=>{if(!n)throw new Error("getProgramTime: callback must be provided");
57if(!e||void 0===t)return n({message:"getProgramTime: playlist and time must be provided"});const i=((e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let n,i=0;for(let r=0;r<t.segments.length&&(n=t.segments[r],i=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration,!(e<=i));r++);const s=t.segments[t.segments.length-1];if(s.videoTimingInfo&&s.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*s.duration)return null;n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}})(t,e);if(!i)return n({message:"valid programTime was not found"});if("estimate"===i.type)return n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const s={mediaSeconds:t},r=((e,t)=>{if(!t.dateTimeObject)return null;const n=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*i)})(t,i.segment);return r&&(s.programDateTime=r.toISOString()),n(null,s)},iS=({programTime:e,playlist:t,retryCount:n=2,seekTo:i,pauseAfterSeek:s=!0,tech:r,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(typeof e>"u"||!t||!i)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!r.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!(e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0})(t))return a({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const o=((e,t)=>{let n;try{n=new Date(e)}catch{return null}if(!t||!t.segments||0===t.segments.length)return null;let i=t.segments[0];if(n<new Date(i.dateTimeObject))return null;for(let o=0;o<t.segments.length-1&&(i=t.segments[o],!(n<new Date(t.segments[o+1].dateTimeObject)));o++);const s=t.segments[t.segments.length-1],r=s.dateTimeObject,a=s.videoTimingInfo?(e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds)(s.videoTimingInfo):s.duration+.25*s.duration;return n>new Date(r.getTime()+1e3*a)?null:(n>new Date(r)&&(i=s),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:IT.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})})(e,t);if(!o)return a({message:`${e} was not found in the stream`});const l=o.segment,c=((e,t)=>{let n,i;try{n=new Date(e),i=new Date(t)}catch{}const s=n.getTime();return(i.getTime()-s)/1e3})(l.dateTimeObject,e);if("estimate"===o.type)return 0===n?a({message:`${e} is not buffered yet. Try again`}):(i(o.estimatedStart+c),void r.one("seeked",(()=>{iS({programTime:e,playlist:t,retryCount:n-1,seekTo:i,pauseAfterSeek:s,tech:r,callback:a})})));const d=l.start+c;r.one("seeked",(()=>a(null,r.currentTime()))),s&&r.pause(),i(d)},sS=(e,t)=>{if(4===e.readyState)return t()},rS=(e,t,n)=>{let i,s=[],r=!1;const a=function(e,t,i,s){return t.abort(),r=!0,n(e,t,i,s)},o=function(e,t){if(r)return;if(e)return a(e,t,"",s);const n=t.responseText.substring(s&&s.byteLength||0,t.responseText.length);if(s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})),t.length<=1)return $p(t[0]);var i=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),s=new Uint8Array(i),r=0;return t.forEach((function(e){e=$p(e),s.set(e,r),r+=e.byteLength})),s}(s,Wp(n,!0)),i=i||Sm(s),s.length<10||i&&s.length<i+2)return sS(t,(()=>a(e,t,"",s)));const o=$m(s);return"ts"===o&&s.length<188||!o&&s.length<376?sS(t,(()=>a(e,t,"",s))):a(null,t,o,s)},l=t({uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function({total:t,loaded:n}){return zT(e,null,{statusCode:e.status},o)}))}},(function(e,t){return zT(l,e,t,o)}));return l},{EventTarget:aS}=G_,oS=function(e,t){if(!jT(e,t)||e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx||e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let n=0;n<e.segments.length;n++){const i=e.segments[n],s=t.segments[n];if(i.uri!==s.uri)return!1;if(!i.byterange&&!s.byterange)continue;const r=i.byterange,a=s.byterange;if(r&&!a||!r&&a||r.offset!==a.offset||r.length!==a.length)return!1}return!0},lS=(e,t,n,i)=>`placeholder-uri-${e}-${t}-${i.attributes.NAME||n}`,cS=(e,t,n)=>{let i=!0,s=eT(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let r=0;r<t.playlists.length;r++){const e=t.playlists[r];if(e.sidx){const t=Bf(e.sidx);n&&n[t]&&n[t].sidx&&Pf(e,n[t].sidx,e.sidx.resolvedUri)}const a=VT(s,e,oS);a&&(s=a,i=!1)}return LT(t,((e,t,n,r)=>{if(e.playlists&&e.playlists.length){const a=e.playlists[0].id,o=VT(s,e.playlists[0],oS);o&&(s=o,r in s.mediaGroups[t][n]||(s.mediaGroups[t][n][r]=e),s.mediaGroups[t][n][r].playlists[0]=s.playlists[a],i=!1)}})),((e,t)=>{LT(e,((n,i,s,r)=>{r in t.mediaGroups[i][s]||delete e.mediaGroups[i][s][r]}))})(s,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:s},dS=(e,t)=>(!e.map&&!t.map||!(!e.map||!t.map||e.map.byterange.offset!==t.map.byterange.offset||e.map.byterange.length!==t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,uS=(e,t)=>{const n={};for(const i in e){const s=e[i].sidx;if(s){const e=Bf(s);if(!t[e])break;const i=t[e].sidxInfo;dS(i,s)&&(n[e]=t[e])}}return n};class hS extends aS{constructor(e,t,n={},i){super(),this.mainPlaylistLoader_=i||this,i||(this.isMain_=!0);const{withCredentials:s=!1}=n;if(this.vhs_=t,this.withCredentials=s,this.addMetadataToTextTrack=n.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",(()=>{this.refreshXml_()})),this.on("mediaupdatetimeout",(()=>{this.refreshMedia_(this.media().id)})),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=Z_("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,n){const i=e.sidx&&Bf(e.sidx);if(!e.sidx||!i||this.mainPlaylistLoader_.sidxMapping_[i])return void(this.mediaRequest_=Eh.setTimeout((()=>n(!1)),0));const s=J_(e.sidx.resolvedUri),r=(s,r)=>{if(this.requestErrored_(s,r,t))return;const a=this.mainPlaylistLoader_.sidxMapping_;let o;try{o=_m($p(r.response).subarray(8))}catch(l){return void this.requestErrored_(l,r,t)}return a[i]={sidxInfo:e.sidx,sidx:o},Pf(e,o,e.sidx.resolvedUri),n(!0)};this.request=rS(s,this.vhs_.xhr,((t,n,i,a)=>
57{if(t)return r(t,n);if(!i||"mp4"!==i)return r({status:n.status,message:`Unsupported ${i||"unknown"} container type for sidx segment at URL: ${s}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},n);const{offset:o,length:l}=e.sidx.byterange;if(a.length>=l+o)return r(t,{response:a.subarray(o,o+l),status:n.status,uri:n.uri});this.request=this.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:WT({byterange:e.sidx.byterange})},r)}))}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},Eh.clearTimeout(this.minimumUpdatePeriodTimeout_),Eh.clearTimeout(this.mediaRequest_),Eh.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,(n=>{this.haveMetadata({startingState:t,playlist:e})})))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),Eh.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(Eh.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){Eh.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const e=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=Eh.setTimeout((()=>this.load()),e)}else this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){this.started=!0,this.isMain_?this.requestMain_(((e,t)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})):this.mediaRequest_=Eh.setTimeout((()=>this.haveMain_()),0)}requestMain_(e){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},((t,n)=>{if(this.requestErrored_(t,n))return void("HAVE_NOTHING"===this.state&&(this.started=!1));const i=n.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?this.mainLoaded_=Date.parse(n.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=J_(this.mainPlaylistLoader_.srcUrl,n),i?(this.handleMain_(),void this.syncClientServerClock_((()=>e(n,i)))):e(n,i)}))}syncClientServerClock_(e){const t=fm(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Q_(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials},((n,i)=>{if(!this.request)return;if(n)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();let s;s="HEAD"===t.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):this.mainLoaded_:Date.parse(i.responseText),this.mainPlaylistLoader_.clientOffset_=s-Date.now(),e()})))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main;let t=(({mainXml:e,srcUrl:t,clientOffset:n,sidxMapping:i,previousManifest:s})=>{const r=pm(e,{manifestUri:t,clientOffset:n,sidxMapping:i,previousManifest:s});return DT(r,t,lS),r})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=cS(e,t,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=t||e;const n=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return n&&n!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(t),!!t}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(Eh.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;
vendor: 4,331 bytes, line 57
570===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`):this.createMUPTimeout_(t)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=Eh.setTimeout((()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)}refreshXml_(){this.requestMain_(((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=((e,t)=>{let n=uS(e.playlists,t);return LT(e,((e,i,s,r)=>{if(e.playlists&&e.playlists.length){const i=e.playlists;n=eT(n,uS(i,t))}})),n})(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,(e=>{this.refreshMedia_(this.media().id)})))}))}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,n=!this.media_||this.media_!==t[e];if(n?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const e=()=>{this.media().endList||(this.mediaUpdateTimeout=Eh.setTimeout((()=>{this.trigger("mediaupdatetimeout"),e()}),$T(this.media(),!!n)))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const e=this.mainPlaylistLoader_.main.eventStream.map((e=>({cueTime:e.start,frames:[{data:e.messageData}]})));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const n in e.contentProtection){const i=e.contentProtection[n].attributes["cenc:default_KID"];i&&t.add(i.replace(/-/g,"").toLowerCase())}return t}}}var pS={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const fS=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},mS=function(e){return function(){const t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch{const t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),n=fS(new Worker(t));n.objURL=t;const i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},gS=function(e){return`var browserWorkerPolyFill = ${fS.toString()};\nbrowserWorkerPolyFill(self);\n`+e},yS=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},vS=gS(yS((function(){var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,s,r;if(n=e[t])if(2===arguments.length)for(s=n.length,i=0;i<s;++i)n[i].call(this,arguments[1]);else{for(r=[],i=arguments.length,i=1;i<arguments.length;++i)r.push(arguments[i]);for(s=n.length,i=0;i<s;++i)n[i].apply(this,r)}},this.dispose=function(){e={}}}};t.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var n,i,s,r,a,o,l,c,d,u,h,p,f,m,g,y,v,b,_,T,S,w,E,C,x,k,I,A,P,O,L,N,D,M,R,B,U,F,j=t,V=Math.pow(2,32),$={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
vendor: 4,144 bytes, line 57
57Number(t):t:n.getUint32(0)*V+n.getUint32(4)},MAX_UINT32:V},q=$.MAX_UINT32;(function(){var e;if(E={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(e in E)E.hasOwnProperty(e)&&(E[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array([105,115,111,109]),k=new Uint8Array([97,118,99,49]),x=new Uint8Array([0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),A=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),P={video:I,audio:A},N=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),L=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),M=D,R=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),B=D,O=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),n=function(e){var t,n,i=[],s=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)s+=i[t].byteLength;for(n=new Uint8Array(s+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,s=8;t<i.length;t++)n.set(i[t],s),s+=i[t].byteLength;return n},i=function(){return n(E.dinf,n(E.dref,N))},s=function(e){return n(E.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},r=function(){return n(E.ftyp,C,x,C,k)},y=function(e){return n(E.hdlr,P[e])},a=function(e){return n(E.mdat,e)},g=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(E.mdhd,t)},m=function(e){return n(E.mdia,g(e),y(e.type),l(e))},o=function(e){return n(E.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},l=function(e){return n(E.minf,"video"===e.type?n(E.vmhd,O):n(E.smhd,L),i(),b(e))},c=function(e,t){for(var i=[],s=t.length;s--;)i[s]=T(t[s]);return n.apply(null,[E.moof,o(e)].concat(i))},d=function(e){for(var t=e.length,i=[];t--;)i[t]=p(e[t]);return n.apply(null,[E.moov,h(4294967295)].concat(i).concat(u(e)))},u=function(e){for(var t=e.length,i=[];t--;)i[t]=S(e[t]);return n.apply(null,[E.mvex].concat(i))},h=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(E.mvhd,t)},v=function(e){var t,i,s=e.samples||[],r=new Uint8Array(4+s.length);for(i=0;i<s.length;i++)t=s[i].flags,r[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(E.sdtp,r)},b=function(e){return n(E.stbl,_(e),n(E.stts,B),n(E.stsc,M),n(E.stsz,R),n(E.stco,D))},_=function(e){return n(E.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?U(e):F(e))},U=function(e){var t,i,s=e.sps||[],r=e.pps||[],a=[],o=[];for(t=0;t<s.length;t++)a.push((65280&s[t].byteLength)>>>8),a.push(255&s[t].byteLength),a=a.concat(Array.prototype.slice.call(s[t]));for(t=0;t<r.length;t++)o.push((65280&r[t].byteLength)>>>8),o.push(255&r[t].byteLength),o=o.concat(Array.prototype.slice.call(r[t]));if(i=[E.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(E.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([s.length],a,[r.length],o))),n(E.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.s
vendor: 11,382 bytes, line 57
57arRatio[0],c=e.sarRatio[1];i.push(n(E.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return n.apply(null,i)},F=function(e){return n(E.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),s(e))},f=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return n(E.tkhd,t)},T=function(e){var t,i,s,r,a,o;return t=n(E.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/q),o=Math.floor(e.baseMediaDecodeTime%q),i=n(E.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),"audio"===e.type?(s=w(e,92),n(E.traf,t,i,s)):(r=v(e),s=w(e,r.length+92),n(E.traf,t,i,s,r))},p=function(e){return e.duration=e.duration||4294967295,n(E.trak,f(e),m(e))},S=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(E.trex,t)},function(){var e,t,i;i=function(e,t){var n=0,i=0,s=0,r=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(s=4),void 0!==e[0].compositionTimeOffset&&(r=8)),[0,0,n|i|s|r,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},t=function(e,t){var s,r,a,o,l,c;for(t+=20+16*(o=e.samples||[]).length,a=i(o,t),(r=new Uint8Array(a.length+16*o.length)).set(a),s=a.length,c=0;c<o.length;c++)l=o[c],r[s++]=(4278190080&l.duration)>>>24,r[s++]=(16711680&l.duration)>>>16,r[s++]=(65280&l.duration)>>>8,r[s++]=255&l.duration,r[s++]=(4278190080&l.size)>>>24,r[s++]=(16711680&l.size)>>>16,r[s++]=(65280&l.size)>>>8,r[s++]=255&l.size,r[s++]=l.flags.isLeading<<2|l.flags.dependsOn,r[s++]=l.flags.isDependedOn<<6|l.flags.hasRedundancy<<4|l.flags.paddingValue<<1|l.flags.isNonSyncSample,r[s++]=61440&l.flags.degradationPriority,r[s++]=15&l.flags.degradationPriority,r[s++]=(4278190080&l.compositionTimeOffset)>>>24,r[s++]=(16711680&l.compositionTimeOffset)>>>16,r[s++]=(65280&l.compositionTimeOffset)>>>8,r[s++]=255&l.compositionTimeOffset;return n(E.trun,r)},e=function(e,t){var s,r,a,o,l,c;for(t+=20+8*(o=e.samples||[]).length,a=i(o,t),(s=new Uint8Array(a.length+8*o.length)).set(a),r=a.length,c=0;c<o.length;c++)l=o[c],s[r++]=(4278190080&l.duration)>>>24,s[r++]=(16711680&l.duration)>>>16,s[r++]=(65280&l.duration)>>>8,s[r++]=255&l.duration,s[r++]=(4278190080&l.size)>>>24,s[r++]=(16711680&l.size)>>>16,s[r++]=(65280&l.size)>>>8,s[r++]=255&l.size;return n(E.trun,s)},w=function(n,i){return"audio"===n.type?e(n,i):t(n,i)}}();var H,z,G,W,X,K,Y,Q,J={ftyp:r,mdat:a,moof:c,moov:d,initSegment:function(e){var t,n=r(),i=d(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t}},Z=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ee={groupNalsIntoFrames:function(e){var t,n,i=[],s=[];for(s.byteLength=0,s.nalCount=0,s.duration=0,i.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,s.byteLength+=i.byteLength,s.nalCount+=i.length,s.duration+=i.duration,s.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return s.length&&(!i.duration||i.duration<=0)&&(i.duration=s[s.length-1].duration),s.byteLength+=i.byteLength,s.nalCount+=i.length,s.duration+=i.duration,s.push(i),s},groupFramesIntoGops:function(e){var t,n,i=[],s=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,s.byteLength=0,s.nalCount=0,s.duration=0,s.pts=e[0].pts,s.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(s.push(i),s.byteLength+=i.byteLength,s.nalCount+=i.nalCount,s.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return s.length&&i.duration<=0&&(i.duration=s[s.length-1].duration),s.byteLength+=i.byteLength,s.nalCount+=i.nalCount,s.duration+=i.duration,s.push(i),s},extendFirstKeyFrame:function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},generateSampleTable:function(e,t){var n,i,s,r,a,o=t||0,l=[];for(n=0;n<e.length;n++)for(r=e[n],i=0;i<r.length;i++)a=r[i],o+=(s=Z(a,o)).size,l.push(s);return l},concatenateNalData:function(e){var t,n,i,s,r,a,o=0,l=e.byteLength,c=e.nalCount,d=new Uint8Array(l+4*c),u=new DataView(d.buffer);for(t=0;t<e.length;t++)for(s=e[t],n=0;n<s.length;n++)for(r=s[n],i=0;i<r.length;i++)a=r[i],u.setUint32(o,a.data.byteLength),o+=4,d.set(a.data,o),o+=a.data.byteLength;return d},generateSampleTableForFrame:function(e,t){var n,i=[];return n=Z(e,t||0),i.push(n),i},concatenateNalDataForFrame:function(e){var t,n,i=0,s=e.byteLength,r=e.length,a=new Uint8Array(s+4*r),o=new DataView(a.buffer);for(t=0;t<e.length;t++)n=e[t],o.setUint32(i,n.data.byteLength),i+=4,a.set(n.data,i),i+=n.data.byteLength;return a}},te=[33,16,5,32,164,27],ne=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ie=function(e){for(var t=[];e--;)t.push(0);return t},se=9e4;z=function(e){return e*se},G=function(e,t){return e*t},W=function(e){return e/se},X=function(e,t){return e/t},K=function(e,t){return z(X(e,t))},Y=function(e,t){return G(W(e),t)},Q=function(e,t,n){return W(n?e:e-t)};var re={ONE_SECOND_IN_TS:se,secondsToVideoTs:z,secondsToAudioTs:G,videoTsToSeconds:W,audioTsToSeconds:X,audioTsToVideoTs:K,videoTsToAudioTs:Y,metadataTsToSeconds:Q},ae=function(){if(!H){var e={96e3:[te,[227,64],ie(154),[56]],88200:[te,[231],ie(170),[56]],64e3:[te,[248,192],ie(240),[56]],48e3:[te,[255,192],ie(268),[55,148,128],ie(54),[112]],44100:[te,[255,192],ie(268),[55,163,128],ie(84),[112]],32e3:[te,[255,192],ie(268),[55,234],ie(226),[112]],24e3:[te,[255,192],ie(268),[55,255,128],ie(268),[111,112],ie(126),[224]],16e3:[te,[255,192],ie(268),[55,255,128],ie(268),[111,255],ie(269),[223,108],ie(195),[1,192]],12e3:[ne,ie(268),[3,127,248],ie(268),[6,255,240],ie(268),[13,255,224],ie(268),[27,253,128],ie(259),[56]],11025:[ne,ie(268),[3,127,248],ie(268),[6,255,240],ie(268),[13,255,224],ie(268),[27,255,192],ie(268),[55,175,128],ie(108),[112]],8e3:[ne,ie(268),[3,121,16],ie(47),[7]]};H=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(e,t){return e.concat(t)}),[])),t}),{})}(e)}return H},oe=re,le={prefixWithSilence:function(e,t,n,i){var s,r,a,o,l=0,c=0,d=0,u=0;if(t.length&&(s=oe.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(oe.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&i&&(c=s-Math.max(n,i),u=(d=Math.floor(c/l))*l),!(d<1||u>oe.ONE_SECOND_IN_TS/2))){for((r=ae()[e.samplerate])||(r=t[0].data),a=0;a<d;a++)o=t[0],t.splice(0,0,{data:r,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(oe.videoTsToAudioTs(u,e.samplerate)),u}},trimAdtsFramesByEarliestDts:function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},generateSampleTable:function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},concatenateFrameData:function(e){var t,n,i=0,s=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)n=e[t],s.set(n.data,i),i+=n.data.byteLength;return s}},ce=re.ONE_SECOND_IN_TS,de={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime:function(e,t){var n,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/ce,n=Math.floor(n)),n},collectDtsInfo:function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))}},ue={parseSei:function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,s=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)s+=255,t++;if(s+=e[t++],!n.payload&&4===i){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=s,n.payload=e.subarray(t,t+s);break}n.payload=void 0}t+=s,i=0,s=0}return n},parseUserData:function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},parseCaptionPackets:function(e,t){var n,i,s,r,a=[];if(!(64&t[0]))return a;for(i=31&t[0],n=0;n<i;n++)r={type:3&t[(s=3*n)+2],pts:e},4&t[s+2]&&(r.ccData=t[s+3]<<8|t[s+4],a.push(r));return a},discardEmulationPreventionBytes:function(e){for(var t,n,i=e.byteLength,s=[],r=1;r<i-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(s.push(r+2),r+=2):r++;if(0===s.length)return e;t=i-s.length,n=new Uint8Array(t);var a=0;for(r=0;r<t;a++,r++)a===s[0]&&(a++,s.shift()),n[r]=e[a];return n},USER_DATA_REGISTERED_ITU_T_T35:4},he=j,pe=ue,fe=function(e){e=e||{},fe.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Ee(0,0),new Ee(0,1),new Ee(1,0),new Ee(1,1)],this.parse708captions_&&(this.cc708Stream_=new be({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};fe.prototype=new he,fe.prototype.push=function(e){var t,n,i;
vendor: 4,455 bytes, line 57
57if("sei_rbsp"===e.nalUnitType&&((t=pe.parseSei(e.escapedRBSP)).payload&&t.payloadType===pe.USER_DATA_REGISTERED_ITU_T_T35&&(n=pe.parseUserData(t)))){if(e.dts<this.latestDts_)return void(this.ignoreNextEqualDts_=!0);if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=pe.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},fe.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},fe.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},fe.prototype.flush=function(){return this.flushStream("flush")},fe.prototype.partialFlush=function(){return this.flushStream("partialFlush")},fe.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},fe.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},fe.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},fe.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},fe.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},fe.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var me={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},ge=function(e){return 32<=e&&e<=127||160<=e&&e<=255},ye=function(e){this.windowNum=e,this.reset()};ye.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},ye.prototype.getText=function(){return this.rows.join("\n")},ye.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ye.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ye.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},ye.prototype.addText=function(e){this.rows[this.rowIdx]+=e},ye.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var ve=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new ye(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};ve.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new ye(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},ve.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},ve.prototype.createTextDecoder=function(e){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(F){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+F})}};var be=function(e){e=e||{},be.prototype.init.call(this);var t,n=this,i=e.captionServices||{},s={};
vendor: 12,959 bytes, line 57
57Object.keys(i).forEach((e=>{t=i[e],/^SERVICE/.test(e)&&(s[e]=t.encoding)})),this.serviceEncodings=s,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}};be.prototype=new he,be.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},be.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},be.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,s=0,r=t[s++];for(e.seq=r>>6,e.sizeCode=63&r;s<t.length;s++)i=31&(r=t[s++]),7===(n=r>>5)&&i>0&&(n=r=t[s++]),this.pushServiceBlock(n,s,i),i>0&&(s+=i-1)},be.prototype.pushServiceBlock=function(e,t,n){var i,s=t,r=this.current708Packet.data,a=this.services[e];for(a||(a=this.initService(e,s));s<t+n&&s<r.length;s++)i=r[s],ge(i)?s=this.handleText(s,a):24===i?s=this.multiByteCharacter(s,a):16===i?s=this.extendedCommands(s,a):128<=i&&i<=135?s=this.setCurrentWindow(s,a):152<=i&&i<=159?s=this.defineWindow(s,a):136===i?s=this.clearWindows(s,a):140===i?s=this.deleteWindows(s,a):137===i?s=this.displayWindows(s,a):138===i?s=this.hideWindows(s,a):139===i?s=this.toggleWindows(s,a):151===i?s=this.setWindowAttributes(s,a):144===i?s=this.setPenAttributes(s,a):145===i?s=this.setPenColor(s,a):146===i?s=this.setPenLocation(s,a):143===i?a=this.reset(s,a):8===i?a.currentWindow.backspace():12===i?a.currentWindow.clearText():13===i?a.currentWindow.pendingNewLine=!0:14===i?a.currentWindow.clearText():141===i&&s++},be.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return ge(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},be.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},be.prototype.initService=function(e,t){var n,i,s=this;return(n="SERVICE"+e)in this.serviceEncodings&&(i=this.serviceEncodings[n]),this.services[e]=new ve(e,i,s),this.services[e].init(this.getPts(t),(function(t){s.flushDisplayed(t,s.services[e])})),this.services[e]},be.prototype.handleText=function(e,t,n){var i,s,r=n&&n.isExtended,a=n&&n.isMultiByte,o=this.current708Packet.data,l=r?4096:0,c=o[e],d=o[e+1],u=t.currentWindow;if(a?(s=[c,d],e++):s=[c],t.textDecoder_&&!r)i=t.textDecoder_.decode(new Uint8Array(s));else if(a){const e=function(e){return e.map((e=>("0"+(255&e).toString(16)).slice(-2))).join("")}(s);i=String.fromCharCode(parseInt(e,16))}else i=function(e){var t=me[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)}(l|c);return u.pendingNewLine&&!u.isEmpty()&&u.newLine(this.getPts(e)),u.pendingNewLine=!1,u.addText(i),e},be.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],s=n[e+2];return ge(i)&&ge(s)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},be.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},be.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],s=7&i;t.setCurrentWindow(s);var r=t.currentWindow;return i=n[++e],r.visible=(32&i)>>5,r.rowLock=(16&i)>>4,r.columnLock=(8&i)>>3,r.priority=7&i,i=n[++e],r.relativePositioning=(128&i)>>7,r.anchorVertical=127&i,i=n[++e],r.anchorHorizontal=i,i=n[++e],r.anchorPoint=(240&i)>>4,r.rowCount=15&i,i=n[++e],r.columnCount=63&i,i=n[++e],r.windowStyle=(56&i)>>3,r.penStyle=7&i,r.virtualRowCount=r.rowCount+1,e},be.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],s=t.currentWindow.winAttr;return i=n[++e],s.fillOpacity=(192&i)>>6,s.fillRed=(48&i)>>4,s.fillGreen=(12&i)>>2,s.fillBlue=3&i,i=n[++e],s.borderType=(192&i)>>6,s.borderRed=(48&i)>>4,s.borderGreen=(12&i)>>2,s.borderBlue=3&i,i=n[++e],s.borderType+=(128&i)>>5,s.wordWrap=(64&i)>>6,s.printDirection=(48&i)>>4,s.scrollDirection=(12&i)>>2,s.justify=3&i,i=n[++e],s.effectSpeed=(240&i)>>4,s.effectDirection=(12&i)>>2,s.displayEffect=3&i,e},be.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},be.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},be.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var s=0;s<8;s++)n&1<<s&&(t.windows[s].visible=1);return e},be.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var s=0;s<8;s++)n&1<<s&&(t.windows[s].visible=0);return e},be.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var s=0;s<8;s++)n&1<<s&&(t.windows[s].visible^=1);return e},be.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var s=0;s<8;s++)n&1<<s&&t.windows[s].clearText();return e},be.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var s=0;s<8;s++)n&1<<s&&t.windows[s].reset();return e},be.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],s=t.currentWindow.penAttr;return i=n[++e],s.textTag=(240&i)>>4,s.offset=(12&i)>>2,s.penSize=3&i,i=n[++e],s.italics=(128&i)>>7,s.underline=(64&i)>>6,s.edgeType=(56&i)>>3,s.fontStyle=7&i,e},be.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],s=t.currentWindow.penColor;return i=n[++e],s.fgOpacity=(192&i)>>6,s.fgRed=(48&i)>>4,s.fgGreen=(12&i)>>2,s.fgBlue=3&i,i=n[++e],s.bgOpacity=(192&i)>>6,s.bgRed=(48&i)>>4,s.bgGreen=(12&i)>>2,s.bgBlue=3&i,i=n[++e],s.edgeRed=(48&i)>>4,s.edgeGreen=(12&i)>>2,s.edgeBlue=3&i,e},be.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],s=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],s.row=15&i,i=n[++e],s.column=63&i,e},be.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var _e={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Te=function(e){return null===e?"":(e=_e[e]||e,String.fromCharCode(e))},Se=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],we=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},Ee=function(e,t){Ee.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,s,r;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,s=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=we();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=we();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=we()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,s))r=Te((i=(3&i)<<8)|s),this[this.mode_](e.pts,r),this.column_++;else if(this.isExtCharacter(i,s))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),r=Te((i=(3&i)<<8)|s),this[this.mode_](e.pts,r),this.column_++;else if(this.isMidRowCode(i,s))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,!(14&~s)&&this.addFormatting(e.pts,["i"]),!(1&~s)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,s)){const e=3&s;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(i,s)){var a=Se.indexOf(7968&t);if("rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&s&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),!(16&~t)){const e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(s)&&!(14&~s)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===s&&(s=null),r=Te(i),r+=Te(s),this[this.mode_](e.pts,r),this.column_+=r.length)}else this.lastControlCode_=null}};Ee.prototype=new he,Ee.prototype.flushDisplayed=function(e){const t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},n=[];this.displayed_.forEach(((e,i)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch{t(i)}e.text.length&&n.push({text:e.text,line:i+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(i)})),n.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:n,stream:this.name_})},Ee.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=we(),this.nonDisplayed_=we(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Ee.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ee.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ee.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ee.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ee.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ee.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ee.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ee.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ee.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=we(),this.displayed_=we()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ee.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},Ee.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},Ee.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_].text;n+=t,this.nonDisplayed_[this.row_].text=n},Ee.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n},Ee.prototype.shiftRowsUp_=function(){var e;
vendor: 9,744 bytes, line 57
57for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},Ee.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n};var Ce={CaptionStream:fe,Cea608Stream:Ee,Cea708Stream:be},xe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},ke=j,Ie="shared",Ae=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Pe=function(e){var t,n;Pe.prototype.init.call(this),this.type_=e||Ie,this.push=function(e){"metadata"!==e.type?this.type_!==Ie&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=Ae(e.dts,n),e.pts=Ae(e.pts,n),t=e.dts,this.trigger("data",e)):this.trigger("data",e)},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Pe.prototype=new ke;var Oe,Le={TimestampRolloverStream:Pe,handleRollover:Ae},Ne=(e,t,n)=>{if(!e)return-1;for(var i=n;i<e.length;i++)if(e[i]===t)return i;return-1},De=Ne,Me=3,Re=function(e,t,n){var i,s="";for(i=t;i<n;i++)s+="%"+("00"+e[i].toString(16)).slice(-2);return s},Be=function(e,t,n){return decodeURIComponent(Re(e,t,n))},Ue=function(e,t,n){return unescape(Re(e,t,n))},Fe=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},je={APIC:function(e){var t,n,i=1;e.data[0]===Me&&(!((t=De(e.data,0,i))<0)&&(e.mimeType=Ue(e.data,i,t),i=t+1,e.pictureType=e.data[i],i++,!((n=De(e.data,0,i))<0)&&(e.description=Be(e.data,i,n),i=n+1,"--\x3e"===e.mimeType?e.url=Ue(e.data,i,e.data.length):e.pictureData=e.data.subarray(i,e.data.length))))},"T*":function(e){e.data[0]===Me&&(e.value=Be(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;e.data[0]===Me&&(-1!==(t=De(e.data,0,1))&&(e.description=Be(e.data,1,t),e.value=Be(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value))},"W*":function(e){e.url=Ue(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;e.data[0]===Me&&(-1!==(t=De(e.data,0,1))&&(e.description=Be(e.data,1,t),e.url=Ue(e.data,t+1,e.data.length).replace(/\0.*$/,"")))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=Ue(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},Ve={parseId3Frames:function(e){var t,n=10,i=0,s=[];if(!(e.length<10||73!==e[0]||68!==e[1]||51!==e[2])){i=Fe(e.subarray(6,10)),i+=10,64&e[5]&&(n+=4,n+=Fe(e.subarray(10,14)),i-=Fe(e.subarray(16,20)));do{if((t=Fe(e.subarray(n+4,n+8)))<1)break;var r={id:String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]),data:e.subarray(n+10,n+t+10)};r.key=r.id,je[r.id]?je[r.id](r):"T"===r.id[0]?je["T*"](r):"W"===r.id[0]&&je["W*"](r),s.push(r),n+=10,n+=t}while(n<i);return s}},parseSyncSafeInteger:Fe,frameParsers:je},$e=j,qe=xe,He=Ve;Oe=function(e){var t,n={descriptor:e&&e.descriptor},i=0,s=[],r=0;if(Oe.prototype.init.call(this),this.dispatchType=qe.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,a,o,l;if("timed-metadata"===e.type){if(e.dataAlignmentIndicator&&(r=0,s.length=0),0===s.length&&(e.data.length<10||73!==e.data[0]||68!==e.data[1]||51!==e.data[2]))return void this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});if(s.push(e),r+=e.data.byteLength,1===s.length&&(i=He.parseSyncSafeInteger(e.data.subarray(6,10)),i+=10),!(r<i)){for(t={data:new Uint8Array(i),frames:[],pts:s[0].pts,dts:s[0].dts},l=0;l<i;)t.data.set(s[0].data.subarray(0,i-l),l),l+=s[0].data.byteLength,r-=s[0].data.byteLength,s.shift();n=10,64&t.data[5]&&(n+=4,n+=He.parseSyncSafeInteger(t.data.subarray(10,14)),i-=He.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((a=He.parseSyncSafeInteger(t.data.subarray(n+4,n+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((o={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+a+10)}).key=o.id,He.frameParsers[o.id]?He.frameParsers[o.id](o):"T"===o.id[0]?He.frameParsers["T*"](o):"W"===o.id[0]&&He.frameParsers["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var c=o.data,d=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;d*=4,d+=3&c[7],o.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),n+=10,n+=a}while(n<i);this.trigger("data",t)}}}},Oe.prototype=new $e;var ze,Ge,We,Xe=Oe,Ke=j,Ye=Ce,Qe=xe,Je=Le.TimestampRolloverStream,Ze=188;ze=function(){var e=new Uint8Array(Ze),t=0;ze.prototype.init.call(this),this.push=function(n){var i,s=0,r=Ze;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;r<i.byteLength;)71!==i[s]||71!==i[r]?(s++,r++):(this.trigger("data",i.subarray(s,r)),s+=Ze,r+=Ze);s<i.byteLength&&(e.set(i.subarray(s),0),t=i.byteLength-s)},this.flush=function(){t===Ze&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}},ze.prototype=new Ke,Ge=function(){var e,t,n,i;Ge.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var s=0;i.payloadUnitStartIndicator&&(s+=e[s]+1),"pat"===i.type?t(e.subarray(s),i):n(e.subarray(s),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,s;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,s=12+((15&e[10])<<8|e[11]);s<n;){var r=e[s],a=(31&e[s+1])<<8|e[s+2];r===Qe.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=a:r===Qe.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=a:r===Qe.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][a]=r),s+=5+((15&e[s+3])<<8|e[s+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=Qe.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Qe.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},Ge.prototype=new Ke,Ge.STREAM_TYPES={h264:27,adts:15},We=function(){var e,t=this,n=!1,i={data:[],size:0},s={data:[],size:0},r={data:[],size:0},a=function(e,n,i){var s,r=new Uint8Array(e.size),a={type:n},o=0,l=0,c=!1;if(e.data.length&&!(e.size<9)){for(a.trackId=e.data[0].pid,o=0;o<e.data.length;o++)s=e.data[o],r.set(s.data,l),l+=s.data.byteLength;(function(e,t){var n;const i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=!!(4&e[6]),192&(n=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))})(r,a),c="video"===n||a.packetLength<=e.size,(i||c)&&(e.size=0,e.data.length=0),c&&t.trigger("data",a)}};We.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case Qe.H264_STREAM_TYPE:e=i,t="video";break;case Qe.ADTS_STREAM_TYPE:e=s,t="audio";break;case Qe.METADATA_STREAM_TYPE:e=r,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&a(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=o.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[o.type]()},this.reset=function(){i.size=0,i.data.length=0,s.size=0,s.data.length=0,this.trigger("reset")},this.flushStreams_=function(){a(i,"video"),a(s,"audio"),a(r,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}},We.prototype=new Ke;var et={PAT_PID:0,MP2T_PACKET_LENGTH:Ze,TransportPacketStream:ze,TransportParseStream:Ge,ElementaryStream:We,TimestampRolloverStream:Je,CaptionStream:Ye.CaptionStream,Cea608Stream:Ye.Cea608Stream,Cea708Stream:Ye.Cea708Stream,MetadataStream:Xe};for(var tt in Qe)Qe.hasOwnProperty(tt)&&(et[tt]=Qe[tt]);var nt,it=et,st=j,rt=re.ONE_SECOND_IN_TS,at=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];nt=function(e){var t,n=0;nt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts ski
57ping bytes ${e} to ${t} in frame ${n} outside syncword`})},this.push=function(i){var s,r,a,o,l,c=0;if(e||(n=0),"audio"===i.type){t&&t.length?(a=t,(t=new Uint8Array(a.byteLength+i.data.byteLength)).set(a),t.set(i.data,a.byteLength)):t=i.data;for(var d;c+7<t.length;)if(255===t[c]&&240==(246&t[c+1])){if("number"==typeof d&&(this.skipWarn_(d,c),d=null),r=2*(1&~t[c+1]),s=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,l=(o=1024*(1+(3&t[c+6])))*rt/at[(60&t[c+2])>>>2],t.byteLength-c<s)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:o,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:at[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+r,c+s)}),n++,c+=s}else"number"!=typeof d&&(d=c),c++;"number"==typeof d&&(this.skipWarn_(d,c),d=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},nt.prototype=new st;var ot,lt=nt;ot=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var s=e.byteLength-t,r=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");r.set(e.subarray(s,s+a)),n=new DataView(r.buffer).getUint32(0),i=8*a,t-=a},this.skipBits=function(e){var s;i>e?(n<<=e,i-=e):(e-=i,e-=8*(s=Math.floor(e/8)),t-=s,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var s=Math.min(i,e),r=n>>>32-s;return(i-=s)>0?n<<=s:t>0&&this.loadWord(),(s=e-s)>0?r<<s|this.readBits(s):r},this.skipLeadingZeros=function(){var e;for(e=0;e<i;++e)if(n&2147483648>>>e)return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var ct,dt,ut,ht=j,pt=ot;dt=function(){var e,t,n=0;dt.prototype.init.call(this),this.push=function(i){var s;t?((s=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),s.set(i.data,t.byteLength),t=s):t=i.data;for(var r=t.byteLength;n<r-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<r;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<r);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},dt.prototype=new ht,ut={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},ct=function(){var e,t,n,i,s,r,a,o=new dt;ct.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,o.push(e))},o.on("data",(function(a){var o={trackId:t,pts:n,dts:i,data:a,nalUnitTypeCode:31&a[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=s(a.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=s(a.subarray(1)),o.config=r(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)})),o.on("done",(function(){e.trigger("done")})),o.on("partialdone",(function(){e.trigger("partialdone")})),o.on("reset",(function(){e.trigger("reset")})),o.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},a=function(e,t){var n,i=8,s=8;for(n=0;n<e;n++)0!==s&&(s=(i+t.readExpGolomb()+256)%256),i=0===s?i:s},s=function(e){for(var t,n,i=e.byteLength,s=[],r=1;r<i-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(s.push(r+2),r+=2):r++;if(0===s.length)return e;t=i-s.length,n=new Uint8Array(t);var a=0;for(r=0;r<t;a++,r++)a===s[0]&&(a++,s.shift()),n[r]=e[a];return n},r=function(e){var t,n,i,s,r,o,l,c,d,u,h,p,f=0,m=0,g=0,y=0,v=[1,1];if(n=(t=new pt(e)).readUnsignedByte(),s=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),ut[n]&&(3===(r=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==r?8:12,p=0;p<h;p++)t.readBoolean()&&a(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),d=t.readUnsignedExpGolomb(),0===(u=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:v=[1,1];break;case 2:v=[12,11];break;case 3:v=[10,11];break;case 4:v=[16,11];break;case 5:v=[40,33];break;case 6:v=[24,11];break;case 7:v=[20,11];break;case 8:v=[32,11];break;case 9:v=[80,33];break;case 10:v=[18,11];break;case 11:v=[15,11];break;case 12:v=[64,33];break;case 13:v=[160,99];break;case 14:v=[4,3];break;case 15:v=[3,2];break;case 16:v=[2,1];break;case 255:v=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}v&&(v[0],v[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:s,width:16*(c+1)-2*f-2*m,height:(2-u)*(d+1)*16-2*g-2*y,sarRatio:v}}},ct.prototype=new ht;var ft,mt={H264Stream:ct},gt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],yt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},vt=function(e,t){return e.length-t<10||73!==e[t]||68!==e[t+1]||51!==e[t+2]?t:(t+=yt(e,t),vt(e,t))},bt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},_t=function(e,t,n){return unescape(function(e,t,n){var i,s="";for(i=t;i<n;i++)s+="%"+("00"+e[i].toString(16)).slice(-2);return s}
57(e,t,n))},Tt={isLikelyAacData:function(e){var t=vt(e,0);return e.length>=t+2&&!(255&~e[t])&&!(240&~e[t+1])&&16==(22&e[t+1])},parseId3TagSize:yt,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return 73===e[t]&&68===e[t+1]&&51===e[t+2]?"timed-metadata":!0&e[t]&&!(240&~e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return gt[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=bt(e.subarray(10,14)));do{if((n=bt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var s=0;s<i.byteLength;s++)if(0===i[s]){if("com.apple.streaming.transportStreamTimestamp"===_t(i,0,s)){var r=i.subarray(s+1),a=(1&r[3])<<30|r[4]<<22|r[5]<<14|r[6]<<6|r[7]>>>2;return a*=4,a+=3&r[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}},St=j,wt=Tt;ft=function(){var e=new Uint8Array,t=0;ft.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,s,r,a,o=0,l=0;for(e.length?(a=e.length,(e=new Uint8Array(n.byteLength+a)).set(e.subarray(0,a)),e.set(n,a)):e=n;e.length-l>=3;)if(73!==e[l]||68!==e[l+1]||51!==e[l+2])if(255&~e[l]||240&~e[l+1])l++;else{if(e.length-l<7||l+(o=wt.parseAdtsSize(e,l))>e.length)break;r={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",r),l+=o}else{if(e.length-l<10||l+(o=wt.parseId3TagSize(e,l))>e.length)break;s={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",s),l+=o}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},ft.prototype=new St;var Et,Ct,xt,kt,It=j,At=J,Pt=ee,Ot=le,Lt=de,Nt=it,Dt=re,Mt=lt,Rt=mt.H264Stream,Bt=ft,Ut=Tt.isLikelyAacData,Ft=re.ONE_SECOND_IN_TS,jt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Vt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],$t=function(e,t){t.stream=e,this.trigger("log",t)},qt=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var s=n[i];"headOfPipeline"===s||!t[s].on||t[s].on("log",$t.bind(e,s))}},Ht=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},zt=function(e,t,n,i,s,r){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(s-n)},prependedContentDuration:r,baseMediaDecodeTime:e}};Ct=function(e,t){var n,i=[],s=0,r=0,a=1/0;n=(t=t||{}).firstSequenceNumber||0,Ct.prototype.init.call(this),this.push=function(t){Lt.collectDtsInfo(e,t),e&&jt.forEach((function(n){e[n]=t[n]})),i.push(t)},this.setEarliestDts=function(e){s=e},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){r=e},this.flush=function(){var o,l,c,d,u,h,p;0!==i.length?(o=Ot.trimAdtsFramesByEarliestDts(i,e,s),e.baseMediaDecodeTime=Lt.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=Ot.prefixWithSilence(e,o,r,a),e.samples=Ot.generateSampleTable(o),c=At.mdat(Ot.concatenateFrameData(o)),i=[],l=At.moof(n,[e]),d=new Uint8Array(l.byteLength+c.byteLength),n++,d.set(l),d.set(c,l.byteLength),Lt.clearDtsInfo(e),u=Math.ceil(1024*Ft/e.samplerate),o.length&&(h=o.length*u,this.trigger("segmentTimingInfo",zt(Dt.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,p||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+h})),this.trigger("data",{track:e,boxes:d}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Lt.clearDtsInfo(e),i=[],this.trigger("reset")}},Ct.prototype=new It,Et=function(e,t){var n,i,s,r=[],a=[];n=(t=t||{}).firstSequenceNumber||0,Et.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Lt.collectDtsInfo(e,t),"seq_parameter_set_rbsp"===t.nalUnitType&&!i&&(i=t.config,e.sps=[t.data],Vt.forEach((function(t){e[t]=i[t]}),this)),"pic_parameter_set_rbsp"===t.nalUnitType&&!s&&(s=t.data,e.pps=[t.data]),r.push(t)},this.flush=function(){for(var i,s,o,l,c,d,u,h,p=0;r.length&&"access_unit_delimiter_rbsp"!==r[0].nalUnitType;)r.shift();
vendor: 9,207 bytes, line 57
57if(0===r.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=Pt.groupNalsIntoFrames(r),(o=Pt.groupFramesIntoGops(i))[0][0].keyFrame||((s=this.getGopForFusion_(r[0],e))?(p=s.duration,o.unshift(s),o.byteLength+=s.byteLength,o.nalCount+=s.nalCount,o.pts=s.pts,o.dts=s.dts,o.duration+=s.duration):o=Pt.extendFirstKeyFrame(o)),a.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),r=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Lt.clearDtsInfo(e),o=f}Lt.collectDtsInfo(e,o),e.samples=Pt.generateSampleTable(o),c=At.mdat(Pt.concatenateNalData(o)),e.baseMediaDecodeTime=Lt.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),u=o[0],h=o[o.length-1],this.trigger("segmentTimingInfo",zt(e.baseMediaDecodeTime,u.dts,u.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),r=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=At.moof(n,[e]),d=new Uint8Array(l.byteLength+c.byteLength),n++,d.set(l),d.set(c,l.byteLength),this.trigger("data",{track:e,boxes:d}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),r=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){Lt.clearDtsInfo(e),i=void 0,s=void 0},this.getGopForFusion_=function(t){var n,i,s,r,a,o=1/0;for(a=0;a<this.gopCache_.length;a++)s=(r=this.gopCache_[a]).gop,e.pps&&Ht(e.pps[0],r.pps[0])&&e.sps&&Ht(e.sps[0],r.sps[0])&&(s.dts<e.timelineStartInfo.dts||(n=t.dts-s.dts-s.duration)>=-1e4&&n<=45e3&&(!i||o>n)&&(i=r,o=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,s,r,o,l,c;for(r=e.byteLength,o=e.nalCount,l=e.duration,t=n=0;t<a.length&&n<e.length&&(i=a[t],s=e[n],i.pts!==s.pts);)s.pts>i.pts?t++:(n++,r-=s.byteLength,o-=s.nalCount,l-=s.duration);return 0===n?e:n===e.length?null:((c=e.slice(n)).byteLength=r,c.duration=l,c.nalCount=o,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,n,i,s,r,o,l;for(t=a.length-1,n=e.length-1,r=null,o=!1;t>=0&&n>=0;){if(i=a[t],s=e[n],i.pts===s.pts){o=!0;break}i.pts>s.pts?t--:(t===a.length-1&&(r=n),n--)}if(!o&&null===r)return null;if(0===(l=o?n:r))return e;var c=e.slice(l),d=c.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return c.byteLength=d.byteLength,c.duration=d.duration,c.nalCount=d.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){a=e}},Et.prototype=new It,kt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,typeof(e=e||{}).remux<"u"?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,kt.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},kt.prototype=new It,kt.prototype.flush=function(e){var t,n,i,s,r=0,a={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Vt.forEach((function(e){a.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,jt.forEach((function(e){a.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,i=At.initSegment(this.pendingTracks),a.initSegment=new Uint8Array(i.byteLength),a.initSegment.set(i),a.data=new Uint8Array(this.pendingBytes),s=0;s<this.pendingBoxes.length;s++)a.data.set(this.pendingBoxes[s],r),r+=this.pendingBoxes[s].byteLength;for(s=0;s<this.pendingCaptions.length;s++)(t=this.pendingCaptions[s]).startTime=Dt.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=Dt.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(s=0;s<this.pendingMetadata.length;s++)(n=this.pendingMetadata[s]).cueTime=Dt.metadataTsToSeconds(n.pts,o,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),s=0;s<a.captions.length;s++)t=a.captions[s],this.trigger("caption",t);for(s=0;s<a.metadata.length;s++)n=a.metadata[s],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},kt.prototype.setRemux=function(e){this.remuxTracks=e},xt=function(e){var t,n,i=this,s=!0;xt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var s={};this.transmuxPipeline_=s,s.type="aac",s.metadataStream=new Nt.MetadataStream,s.aacStream=new Bt,s.audioTimestampRolloverStream=new Nt.TimestampRolloverStream("audio"),s.timedMetadataTimestampRolloverStream=new Nt.TimestampRolloverStream("timed-metadata"),s.adtsStream=new Mt,s.coalesceStream=new kt(e,s.metadataStream),s.headOfPipeline=s.aacStream,s.aacStream.pipe(s.audioTimestampRolloverStream).pipe(s.adtsStream),s.aacStream.pipe(s.timedMetadataTimestampRolloverStream).pipe(s.metadataStream).pipe(s.coalesceStream),s.metadataStream.on("timestamp",(function(e){s.aacStream.setTimestamp(e.timeStamp)})),s.aacStream.on("data",(function(r){"timed-metadata"!==r.type&&"audio"!==r.type||s.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},s.coalesceStream.numberOfTracks++,s.audioSegmentStream=new Ct(n,e),s.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),s.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),s.adtsStream.pipe(s.audioSegmentStream).pipe(s.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),s.coalesceStream.on("data",this.trigger.bind(this,"data")),s.coalesceStream.on("done",this.trigger.bind(this,"done")),qt(this,s)},this.setupTsPipeline=function(){var s={};this.transmuxPipeline_=s,s.type="ts",s.metadataStream=new Nt.MetadataStream,s.packetStream=new Nt.TransportPacketStream,s.parseStream=new Nt.TransportParseStream,s.elementaryStream=new Nt.ElementaryStream,s.timestampRolloverStream=new Nt.TimestampRolloverStream,s.adtsStream=new Mt,s.h264Stream=new Rt,s.captionStream=new Nt.CaptionStream(e),s.coalesceStream=new kt(e,s.metadataStream),s.headOfPipeline=s.packetStream,s.packetStream.pipe(s.parseStream).pipe(s.elementaryStream).pipe(s.timestampRolloverStream),s.timestampRolloverStream.pipe(s.h264Stream),s.timestampRolloverStream.pipe(s.adtsStream),s.timestampRolloverStream.pipe(s.metadataStream).pipe(s.coalesceStream),s.h264Stream.pipe(s.captionStream).pipe(s.coalesceStream),s.elementaryStream.on("data",(function(r){var a;if("metadata"===r.type){for(a=r.tracks.length;a--;)t||"video"!==r.tracks[a].type?!n&&"audio"===r.tracks[a].type&&((n=r.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=r.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!s.videoSegmentStream&&(s.coalesceStream.numberOfTracks++,s.videoSegmentStream=new Et(t,e),s.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),s.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,s.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),s.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),s.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),s.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&s.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),s.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),s.h264Stream.pipe(s.videoSegmentStream).pipe(s.coalesceStream)),n&&!s.audioSegmentStream&&(s.coalesceStream.numberOfTracks++,s.audioSegmentStream=new Ct
vendor: 4,954 bytes, line 57
57(n,e),s.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),s.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),s.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),s.adtsStream.pipe(s.audioSegmentStream).pipe(s.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),s.coalesceStream.on("data",this.trigger.bind(this,"data")),s.coalesceStream.on("id3Frame",(function(e){e.dispatchType=s.metadataStream.dispatchType,i.trigger("id3Frame",e)})),s.coalesceStream.on("caption",this.trigger.bind(this,"caption")),s.coalesceStream.on("done",this.trigger.bind(this,"done")),qt(this,s)},this.setBaseMediaDecodeTime=function(i){var s=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Lt.clearDtsInfo(n),s.audioTimestampRolloverStream&&s.audioTimestampRolloverStream.discontinuity()),t&&(s.videoSegmentStream&&(s.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Lt.clearDtsInfo(t),s.captionStream.reset()),s.timestampRolloverStream&&s.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(s){var t=Ut(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():!t&&"ts"!==this.transmuxPipeline_.type&&this.setupTsPipeline(),s=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){s=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},xt.prototype=new It;var Gt,Wt,Xt,Kt,Yt,Qt={Transmuxer:xt},Jt=function(e){return e>>>0},Zt=function(e){return("00"+e.toString(16)).slice(-2)},en=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},tn=Jt,nn=en,sn=function(e,t){var n,i,s,r,a,o=[];if(!t.length)return null;for(n=0;n<e.byteLength;)i=tn(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),s=nn(e.subarray(n+4,n+8)),r=i>1?n+i:e.byteLength,s===t[0]&&(1===t.length?o.push(e.subarray(n+8,r)):(a=sn(e.subarray(n+8,r),t.slice(1))).length&&(o=o.concat(a))),n=r;return o},rn=Jt,an=$.getUint64,on=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=an(e.subarray(4)):t.baseMediaDecodeTime=rn(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},ln=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},cn=ln,dn=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),s=1&n.flags[2],r=4&n.flags[2],a=1&n.flags[1],o=2&n.flags[1],l=4&n.flags[1],c=8&n.flags[1],d=i.getUint32(4),u=8;for(s&&(n.dataOffset=i.getInt32(u),u+=4),r&&d&&(t={flags:cn(e.subarray(u,u+4))},u+=4,a&&(t.duration=i.getUint32(u),u+=4),o&&(t.size=i.getUint32(u),u+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(u):t.compositionTimeOffset=i.getUint32(u),u+=4),n.samples.push(t),d--);d--;)t={},a&&(t.duration=i.getUint32(u),u+=4),o&&(t.size=i.getUint32(u),u+=4),l&&(t.flags=cn(e.subarray(u,u+4)),u+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(u):t.compositionTimeOffset=i.getUint32(u),u+=4),n.samples.push(t);return n},un=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},s=1&i.flags[2],r=2&i.flags[2],a=8&i.flags[2],o=16&i.flags[2],l=32&i.flags[2],c=65536&i.flags[0],d=131072&i.flags[0];return t=8,s&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),r&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),a&&(i.defaultSampleDuration=n.getUint32(t),t+=4),o&&(i.defaultSampleSize=n.getUint32(t),t+=4),l&&(i.defaultSampleFlags=n.getUint32(t)),c&&(i.durationIsEmpty=!0),!s&&d&&(i.baseDataOffsetIsMoof=!0),i},hn=(Gt=typeof window<"u"?window:typeof e<"u"?e:typeof self<"u"?self:{},ue.discardEmulationPreventionBytes),pn=Ce.CaptionStream,fn=sn,mn=on,gn=dn,yn=un,vn=Gt,bn=function(e,t){for(var n=e,i=0;i<t.length;i++){var s=t[i];if(n<s.size)return s;n-=s.size}return null},_n=function(e,t){var n=fn(e,["moof","traf"]),i=fn(e,["mdat"]),s={},r=[];
vendor: 15,906 bytes, line 57
57return i.forEach((function(e,t){var i=n[t];r.push({mdat:e,traf:i})})),r.forEach((function(e){var n,i,r=e.mdat,a=e.traf,o=fn(a,["tfhd"]),l=yn(o[0]),c=l.trackId,d=fn(a,["tfdt"]),u=d.length>0?mn(d[0]).baseMediaDecodeTime:0,h=fn(a,["trun"]);t===c&&h.length>0&&(n=function(e,t,n){var i=t,s=n.defaultSampleDuration||0,r=n.defaultSampleSize||0,a=n.trackId,o=[];return e.forEach((function(e){var t=gn(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=s),void 0===e.size&&(e.size=r),e.trackId=a,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+vn.BigInt(e.compositionTimeOffset),i+=vn.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)})),o=o.concat(t)})),o}(h,u,l),i=function(e,t,n){var i,s,r,a,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(s=0;s+4<e.length;s+=r)if(r=o.getUint32(s),s+=4,!(r<=0))switch(31&e[s]){case 6:var c=e.subarray(s+1,s+1+r),d=bn(s,t);if(i={nalUnitType:"sei_rbsp",size:r,data:c,escapedRBSP:hn(c),trackId:n},d)i.pts=d.pts,i.dts=d.dts,a=d;else{if(!a){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+s+" for trackId "+n+". See mux.js#223."});break}i.pts=a.pts,i.dts=a.dts}l.seiNals.push(i)}return l}(r,n,c),s[c]||(s[c]={seiNals:[],logs:[]}),s[c].seiNals=s[c].seiNals.concat(i.seiNals),s[c].logs=s[c].logs.concat(i.logs))})),s},Tn=function(){var e,t,n,i,s,r,a=!1;this.isInitialized=function(){return a},this.init=function(t){e=new pn,a=!0,r=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,s.captions.push(e),s.captionStreams[e.stream]=!0})),e.on("log",(function(e){s.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||i!==t[n])},this.parse=function(e,r,a){var o;if(!this.isInitialized())return null;if(!r||!a)return null;if(this.isNewInit(r,a))n=r[0],i=a[n];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,r,a)}return o=function(e,t,n){if(null===t)return null;var i=_n(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}(e,n,i),o&&o.logs&&(s.logs=s.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),s):s.logs.length?{logs:s.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;r?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){s.captions=[],s.captionStreams={},s.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,s?this.clearParsedCaptions():s={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Sn=function(e){for(var t=0,n=String.fromCharCode(e[t]),i="";"\0"!==n;)i+=n,t++,n=String.fromCharCode(e[t]);return i+=n},wn=Sn,En=$.getUint64,Cn=function(e,t){var n="\0"!==t.scheme_id_uri,i=0===e&&xn(t.presentation_time_delta)&&n,s=1===e&&xn(t.presentation_time)&&n;return!(e>1)&&i||s},xn=function(e){return void 0!==e||null!==e},kn={parseEmsgBox:function(e){var t,n,i,s,r,a,o,l=4,c=e[0];if(0===c)l+=(t=wn(e.subarray(l))).length,l+=(n=wn(e.subarray(l))).length,i=(d=new DataView(e.buffer)).getUint32(l),l+=4,r=d.getUint32(l),l+=4,a=d.getUint32(l),l+=4,o=d.getUint32(l),l+=4;else if(1===c){var d;i=(d=new DataView(e.buffer)).getUint32(l),l+=4,s=En(e.subarray(l)),l+=8,a=d.getUint32(l),l+=4,o=d.getUint32(l),l+=4,l+=(t=wn(e.subarray(l))).length,l+=(n=wn(e.subarray(l))).length}var u={scheme_id_uri:t,value:n,timescale:i||1,presentation_time:s,presentation_time_delta:r,event_duration:a,id:o,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return Cn(c,u)?u:void 0},scaleTime:function(e,t,n,i){return e||0===e?e/t:i+n/t}},In=Jt,An=Zt,Pn=sn,On=en,Ln=kn,Nn=un,Dn=dn,Mn=on,Rn=$.getUint64,Bn=Gt,Un=Ve.parseId3Frames;Wt=function(e,t){var n=Pn(t,["moof","traf"]).reduce((function(t,n){var i,s=Pn(n,["tfhd"])[0],r=In(s[4]<<24|s[5]<<16|s[6]<<8|s[7]),a=e[r]||9e4,o=Pn(n,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);let c;return"bigint"==typeof(i=1===o[0]?Rn(o.subarray(4,12)):l.getUint32(4))?c=i/Bn.BigInt(a):"number"==typeof i&&!isNaN(i)&&(c=i/a),c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),c<t&&(t=c),t}),1/0);return"bigint"==typeof n||isFinite(n)?n:0},Kt=function(e){var t=0===e[0]?12:20;return In(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Xt=function(e){var t=Pn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,i,s={},r=Pn(e,["tkhd"])[0];r&&(i=(t=new DataView(r.buffer,r.byteOffset,r.byteLength)).getUint8(0),s.id=0===i?t.getUint32(12):t.getUint32(20));var a=Pn(e,["mdia","hdlr"])[0];if(a){var o=On(a.subarray(8,12));s.type="vide"===o?"video":"soun"===o?"audio":o}var l=Pn(e,["mdia","minf","stbl","stsd"])[0];if(l){var c=l.subarray(8);s.codec=On(c.subarray(4,8));var d,u=Pn(c,[s.codec])[0];u&&(/^[asm]vc[1-9]$/i.test(s.codec)?(d=u.subarray(78),"avcC"===On(d.subarray(4,8))&&d.length>11?(s.codec+=".",s.codec+=An(d[9]),s.codec+=An(d[10]),s.codec+=An(d[11])):s.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(s.codec)?(d=u.subarray(28),"esds"===On(d.subarray(4,8))&&d.length>20&&0!==d[19]?(s.codec+="."+An(d[19]),s.codec+="."+An(d[20]>>>2&63).replace(/^0/,"")):s.codec="mp4a.40.2"):s.codec=s.codec.toLowerCase())}var h=Pn(e,["mdia","mdhd"])[0];h&&(s.timescale=Kt(h)),n.push(s)})),n},Yt=function(e,t=0){return Pn(e,["emsg"]).map((e=>{var n=Ln.parseEmsgBox(new Uint8Array(e)),i=Un(n.message_data);return{cueTime:Ln.scaleTime(n.presentation_time,n.timescale,n.presentation_time_delta,t),duration:Ln.scaleTime(n.event_duration,n.timescale),frames:i}}))};var Fn=Wt,jn=Xt,Vn=Yt,$n=xe,qn=function(e){var t=31&e[1];return t<<=8,t|=e[2]},Hn=function(e){return!!(64&e[1])},zn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Gn=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Wn={parseType:function(e,t){var n=qn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=Hn(e),n=4+zn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=Hn(e),i=4+zn(e);if(n&&(i+=e[i]+1),1&e[i+5]){var s;s=3+((15&e[i+1])<<8|e[i+2])-4;for(var r=12+((15&e[i+10])<<8|e[i+11]);r<s;){var a=i+r;t[(31&e[a+1])<<8|e[a+2]]=e[a],r+=5+((15&e[a+3])<<8|e[a+4])}return t}},parsePayloadUnitStartIndicator:Hn,parsePesType:function(e,t){switch(t[qn(e)]){case $n.H264_STREAM_TYPE:return"video";case $n.ADTS_STREAM_TYPE:return"audio";case $n.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Hn(e))return null;var t=4+zn(e);if(t>=e.byteLength)return null;var n,i=null;return 192&(n=e[t+7])&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i},videoPacketContainsKeyFrame:function(e){for(var t=4+zn(e),n=e.subarray(t),i=0,s=0,r=!1;s<n.byteLength-3;s++)if(1===n[s+2]){i=s+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}s+3!==i-2&&("slice_layer_without_partitioning_rbsp_idr"===Gn(31&n[s+3])&&(r=!0));do{i++}while(1!==n[i]&&i<n.length);s=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Gn(31&n[s+3])&&(r=!0),s=i-2,i+=3;break;default:i+=3}return n=n.subarray(s),i-=s,s=0,n&&n.byteLength>3&&("slice_layer_without_partitioning_rbsp_idr"===Gn(31&n[s+3])&&(r=!0)),r}},Xn=xe,Kn=Le.handleRollover,Yn={};Yn.ts=Wn,Yn.aac=Tt;var Qn=re.ONE_SECOND_IN_TS,Jn=188,Zn=71,ei=function(e,t,n){for(var i,s,r,a,o=0,l=Jn,c=!1;l<=e.byteLength;)if(e[o]!==Zn||e[l]!==Zn&&l!==e.byteLength)o++,l++;else{if("pes"===(i=e.subarray(o,l),Yn.ts.parseType(i,t.pid)))s=Yn.ts.parsePesType(i,t.table),r=Yn.ts.parsePayloadUnitStartIndicator(i),"audio"===s&&r&&((a=Yn.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),c=!0));if(c)break;o+=Jn,l+=Jn}for(o=(l=e.byteLength)-Jn,c=!1;o>=0;)if(e[o]!==Zn||e[l]!==Zn&&l!==e.byteLength)o--,l--;else{if("pes"===(i=e.subarray(o,l),Yn.ts.parseType(i,t.pid)))s=Yn.ts.parsePesType(i,t.table),r=Yn.ts.parsePayloadUnitStartIndicator(i),"audio"===s&&r&&((a=Yn.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),c=!0));if(c)break;o-=Jn,l-=Jn}},ti=function(e,t,n){for(var i,s,r,a,o,l,c,d=0,u=Jn,h=!1,p={data:[],size:0};u<e.byteLength;)if(e[d]!==Zn||e[u]!==Zn)d++,u++;else{if("pes"===(i=e.subarray(d,u),Yn.ts.parseType(i,t.pid)))if(s=Yn.ts.parsePesType(i,t.table),r=Yn.ts.parsePayloadUnitStartIndicator(i),"video"===s&&(r&&!h&&((a=Yn.ts.parsePesTime(i))&&(a.type="video",n.video.push(a),h=!0)),!n.firstKeyFrame)){if(r&&0!==p.size){for(o=new Uint8Array(p.size),l=0;p.data.length;)c=p.data.shift(),o.set(c,l),l+=c.byteLength;if(Yn.ts.videoPacketContainsKeyFrame(o)){var f=Yn.ts.parsePesTime(o);f?(n.firstKeyFrame=f,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}p.size=0}p.data.push(i),p.size+=i.byteLength}if(h&&n.firstKeyFrame)break;d+=Jn,u+=Jn}for(d=(u=e.byteLength)-Jn,h=!1;d>=0;)if(e[d]!==Zn||e[u]!==Zn)d--,u--;else{if("pes"===(i=e.subarray(d,u),Yn.ts.parseType(i,t.pid)))s=Yn.ts.parsePesType(i,t.table),r=Yn.ts.parsePayloadUnitStartIndicator(i),"video"===s&&r&&((a=Yn.ts.parsePesTime(i))&&(a.type="video",n.video.push(a),h=!0));if(h)break;d-=Jn,u-=Jn}},ni=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,i=0,s=Jn;s<e.byteLength;)if(e[i]!==Zn||e[s]!==Zn)i++,s++;else{switch(n=e.subarray(i,s),Yn.ts.parseType(n,t.pid)){case"pat":t.pid=Yn.ts.parsePat(n);break;case"pmt":var r=Yn.ts.parsePmt(n);t.table=t.table||{},Object.keys(r).forEach((function(e){t.table[e]=r[e]}))}i+=Jn,s+=Jn}}(e,t),t.table)if(t.table.hasOwnProperty(i)){switch(t.table[i]){case Xn.H264_STREAM_TYPE:n.video=[],ti(e,t,n),0===n.video.length&&delete n.video;break;case Xn.ADTS_STREAM_TYPE:n.audio=[],ei(e,t,n),0===n.audio.length&&delete n.audio}}return n},ii=function(e,t){var n;return n=Yn.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,i=0,s=null,r=null,a=0,o=0;e.length-o>=3;){switch(Yn.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){n=!0;break}if((a=Yn.aac.parseId3TagSize(e,o))>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+a),r=Yn.aac.parseAacTimestamp(t)),o+=a;break;case"audio":if(e.length-o<7){n=!0;break}if((a=Yn.aac.parseAdtsSize(e,o))>e.length){n=!0;break}null===s&&(t=e.subarray(o,o+a),s=Yn.aac.parseSampleRate(t)),i++,o+=a;break;default:o++}if(n)return null}if(null===s||null===r)return null;var l=Qn/s;return{audio:[{type:"audio",dts:r,pts:r},{type:"audio",dts:r+1024*i*l,pts:r+1024*i*l}]}}(e):ni(e),n&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;(typeof n>"u"||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=Kn(e.dts,n),e.pts=Kn(e.pts,n),e.dtsTime=e.dts/Qn,e.ptsTime=e.pts/Qn}))}if(e.video&&e.video.length){var i=t;if((typeof i>"u"||isNaN(i))&&(i=e.video[0].dts),e.video.forEach((function(e){e.dts=Kn(e.dts,i),e.pts=Kn(e.pts,i),e.dtsTime=e.dts/Qn,e.ptsTime=e.pts/Qn})),e.firstKeyFrame){var s=e.firstKeyFrame;s.dts=Kn(s.dts,i),s.pts=Kn(s.pts,i),s.dtsTime=s.dts/Qn,s.ptsTime=s.pts/Qn}}}(n,t),n):null};class si{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Qt.Transmuxer(this.options),function(e,t){t.on("data",(function(t){const n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};const i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){const n={start:{decode:re.videoTsToSeconds(t.start.dts),presentation:re.videoTsToSeconds(t.start.pts)},end:{decode:re.videoTsToSeconds(t.end.dts),presentation:re.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:re.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=re.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){const n={start:{decode:re.videoTsToSeconds(t.start.dts),presentation:re.videoTsToSeconds(t.start.pts)},end:{decode:re.videoTsToSeconds(t.end.dts),presentation:re.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:re.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=re.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:re.videoTsToSeconds(t.start),end:re.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:re.videoTsToSeconds(t.start),end:re.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))}(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new Tn,this.captionParser.init());const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){const n=Fn(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=jn(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const n=Vn(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:n,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){const n="number"!=typeof t||isNaN(t)?void 0:t*re.ONE_SECOND_IN_TS,i=ii(e,n);let s=null;i&&(s={hasVideo:i.video&&2===i.video.length||!1,hasAudio:i.audio&&2===i.audio.length||!1},s.hasVideo&&(s.videoStart=i.video[0].ptsTime),s.hasAudio&&(s.audioStart=i.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:s,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){const t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(re.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(re.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}
57self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new si(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new si(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})));var bS=mS(vS);const _S=e=>{const{transmuxer:t,bytes:n,audioAppendStart:i,gopsToAlignWith:s,remux:r,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:c,onVideoSegmentTimingInfo:d,onAudioSegmentTimingInfo:u,onId3:h,onCaptions:p,onDone:f,onEndedTimeline:m,onTransmuxerLog:g,isEndOfTimeline:y}=e,v={buffer:[]};let b=y;if(t.onmessage=n=>{t.currentTransmux===e&&("data"===n.data.action&&((e,t,n)=>{const{type:i,initSegment:s,captions:r,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:c}=e.data.segment;t.buffer.push({captions:r,captionStreams:a,metadata:o});const d=e.data.segment.boxes||{data:e.data.segment.data},u={type:i,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(s.data,s.byteOffset,s.byteLength)};typeof l<"u"&&(u.videoFrameDtsTime=l),typeof c<"u"&&(u.videoFramePtsTime=c),n(u)})(n,v,a),"trackinfo"===n.data.action&&o(n.data.trackInfo),"gopInfo"===n.data.action&&((e,t)=>{t.gopInfo=e.data.gopInfo})(n,v),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&c(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&d(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&u(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&p(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(b||(t.onmessage=null,(({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)})({transmuxedData:v,callback:f}),TS(t))))},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(s)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:s}),typeof r<"u"&&t.postMessage({action:"setRemux",remux:r}),n.byteLength){const e=n instanceof ArrayBuffer?n:n.buffer,i=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:e,byteOffset:i,byteLength:n.byteLength},[e])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},TS=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():_S(e.currentTransmux))},SS=(e,t)=>{e.postMessage({action:t}),TS(e)},wS=(e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void SS(t,e);t.transmuxQueue.push(SS.bind(null,t,e))},ES=e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void _S(e);e.transmuxer.transmuxQueue.push(e)};var CS=e=>{wS("reset",e)},xS=e=>{const t=new bS;t.currentTransmux=null,t.transmuxQueue=[];const n=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)),t.postMessage({action:"init",options:e}),t};const kS=function(e){const t=e.transmuxer,n=e.endAction||e.action,i=e.callback,s=op({},e,{endAction:null,transmuxer:null,callback:null}),r=s=>{s.data.action===n&&(t.removeEventListener("message",r),s.data.data&&(s.data.data=new Uint8Array(s.data.data,e.byteOffset||0,e.byteLength||s.data.data.byteLength),e.data&&(e.data=s.data.data)),i(s.data))};if(t.addEventListener("message",r),e.data){const n=e.data instanceof ArrayBuffer;s.byteOffset=n?0:e.data.byteOffset,s.byteLength=e.data.byteLength;const i=[n?e.data:e.data.buffer];t.postMessage(s,i)}else t.postMessage(s)},IS=2,AS=-101,PS=-102,OS=e=>{e.forEach((e=>{e.abort()}))},LS=(e,t)=>t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:AS,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:PS,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:IS,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:IS,xhr:t}:null,NS=(e,t,n)=>(i,s)=>{const r=s.response,a=LS(i,s);if(a)return n(a,e);if(16!==r.byteLength)return n({status:s.status,message:"Invalid HLS key at URL: "+s.uri,code:IS,xhr:s},e);const o=new DataView(r),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=l;return n(null,e)},DS=(e,t)=>{const n=$m(e.map.bytes);if("mp4"!==n){const i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:`Found unsupported ${n||"unknown"} container for initialization segment at URL: ${i}`,code:IS})}kS({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:n,data:i})=>
57(e.map.bytes=i,n.forEach((function(t){e.map.tracks=e.map.tracks||{},!e.map.tracks[t.type]&&(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))})),t(null))})},MS=({segment:e,finishProcessingFn:t,responseType:n})=>(i,s)=>{const r=LS(i,s);if(r)return t(r,e);const a="arraybuffer"!==n&&s.responseText?(e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer})(s.responseText.substring(e.lastReachedChar||0)):s.response;return e.stats=(e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}))(s),e.key?e.encryptedBytes=new Uint8Array(a):e.bytes=new Uint8Array(a),t(null,e)},RS=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:u,onTransmuxerLog:h})=>{const p=e.map&&e.map.tracks||{},f=!(!p.audio||!p.video);let m=i.bind(null,e,"audio","start");const g=i.bind(null,e,"audio","end");let y=i.bind(null,e,"video","start");const v=i.bind(null,e,"video","end");kS({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:i=>{e.bytes=t=i.data;const p=i.result;p&&(n(e,{hasAudio:p.hasAudio,hasVideo:p.hasVideo,isMuxed:f}),n=null),ES({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:f,onData:t=>{t.type="combined"===t.type?"video":t.type,d(e,t)},onTrackInfo:t=>{n&&(f&&(t.isMuxed=!0),n(e,t))},onAudioTimingInfo:e=>{m&&typeof e.start<"u"&&(m(e.start),m=null),g&&typeof e.end<"u"&&g(e.end)},onVideoTimingInfo:e=>{y&&typeof e.start<"u"&&(y(e.start),y=null),v&&typeof e.end<"u"&&v(e.end)},onVideoSegmentTimingInfo:e=>{s(e)},onAudioSegmentTimingInfo:e=>{r(e)},onId3:(t,n)=>{a(e,t,n)},onCaptions:t=>{o(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{c()},onTransmuxerLog:h,onDone:t=>{u&&(t.type="combined"===t.type?"video":t.type,u(null,e,t))}})}})},BS=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:u,onTransmuxerLog:h})=>{let p=new Uint8Array(t);if(function(e){return Em(e,["moof"]).length>0}(p)){e.isFmp4=!0;const{tracks:s}=e.map,r={isFmp4:!0,hasVideo:!!s.video,hasAudio:!!s.audio};s.audio&&s.audio.codec&&"enca"!==s.audio.codec&&(r.audioCodec=s.audio.codec),s.video&&s.video.codec&&"encv"!==s.video.codec&&(r.videoCodec=s.video.codec),s.video&&s.audio&&(r.isMuxed=!0),n(e,r);const l=(t,n)=>{d(e,{data:p,type:r.hasAudio&&!r.isMuxed?"audio":"video"}),n&&n.length&&a(e,n),t&&t.length&&o(e,t),u(null,e,{})};kS({action:"probeMp4StartTime",timescales:e.map.timescales,data:p,transmuxer:e.transmuxer,callback:({data:n,startTime:a})=>{t=n.buffer,e.bytes=p=n,r.hasAudio&&!r.isMuxed&&i(e,"audio","start",a),r.hasVideo&&i(e,"video","start",a),kS({action:"probeEmsgID3",data:p,transmuxer:e.transmuxer,offset:a,callback:({emsgData:n,id3Frames:i})=>{t=n.buffer,e.bytes=p=n,s.video&&n.byteLength&&e.transmuxer?kS({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:p,timescales:e.map.timescales,trackIds:[s.video.id],callback:n=>{t=n.data.buffer,e.bytes=p=n.data,n.logs.forEach((function(e){h(eT(e,{stream:"mp4CaptionParser"}))})),l(n.captions,i)}}):l(void 0,i)}})}})}else{if(e.transmuxer)return typeof e.container>"u"&&(e.container=$m(p)),"ts"!==e.container&&"aac"!==e.container?(n(e,{hasAudio:!1,hasVideo:!1}),void u(null,e,{})):void RS({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:u,onTransmuxerLog:h});u(null,e,{})}},US=function({id:e,key:t,encryptedBytes:n,decryptionWorker:i},s){const r=t=>{if(t.data.source===e){i.removeEventListener("message",r);const e=t.data.decrypted;s(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};let a;i.addEventListener("message",r),a=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),i.postMessage(QT({source:e,encrypted:n,key:a,iv:t.iv}),[n.buffer,a.buffer])},FS=({activeXhrs:e,decryptionWorker:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:u,onTransmuxerLog:h})=>{let p=0,f=!1;return(m,g)=>{if(!f){if(m)return f=!0,OS(e),u(m,g);if(p+=1,p===e.length){const p=function(){if(g.encryptedBytes)return(({decryptionWorker:e,segment:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:u,onTransmuxerLog:h})=>{US({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e},(e=>{t.bytes=e,BS({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:u,onTransmuxerLog:h})}))})({decryptionWorker:t,segment:g,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:u,onTransmuxerLog:h});BS({segment:g,bytes:g.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:u,onTransmuxerLog:h})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return US({decryptionWorker:t,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(t=>{g.map.bytes=t,DS(g,(t=>{if(t)return OS(e),u(t,g);p()}))}));p()}}}},jS=({segment:e,progressFn:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:r,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d})=>n=>{if(!n.target.aborted)return e.stats=eT(e.stats,(e=>{const t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n})(n)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(n,e)},VS=({xhr:e,xhrOptions:t,decryptionWorker:n,segment:i,abortFn:s,progressFn:r,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g})=>{const y=[],v=FS({activeXhrs:y,decryptionWorker:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g});if(i.key&&!i.key.bytes){const n=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&n.push(i.map.
57key);const s=e(eT(t,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),NS(i,n,v));y.push(s)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const n=e(eT(t,{uri:i.map.key.resolvedUri,responseType:"arraybuffer"}),NS(i,[i.map.key],v));y.push(n)}const n=eT(t,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:WT(i.map)}),s=(({segment:e,finishProcessingFn:t})=>(n,i)=>{const s=LS(n,i);if(s)return t(s,e);const r=new Uint8Array(i.response);if(e.map.key)return e.map.encryptedBytes=r,t(null,e);e.map.bytes=r,DS(e,(function(n){if(n)return n.xhr=i,n.status=i.status,t(n,e);t(null,e)}))})({segment:i,finishProcessingFn:v}),r=e(n,s);y.push(r)}const b=eT(t,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:WT(i)}),_=e(b,MS({segment:i,finishProcessingFn:v,responseType:b.responseType}));_.addEventListener("progress",jS({segment:i,progressFn:r,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:u,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f})),y.push(_);const T={};return y.forEach((e=>{e.addEventListener("loadend",(({loadendState:e,abortFn:t})=>n=>{n.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)})({loadendState:T,abortFn:s}))})),()=>OS(y)},$S=Z_("CodecUtils"),qS=(e,t)=>{const n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},HS=function(e){const t={};return e.forEach((({mediaType:e,type:n,details:i})=>{t[e]=t[e]||[],t[e].push(Op(`${n}${i}`))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return $S(`multiple ${e} codecs found as attributes: ${t[e].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),void(t[e]=null);t[e]=t[e][0]})),t},zS=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},GS=function(e,t){const n=t.attributes||{},i=HS(function(e){const t=e.attributes||{};if(t.CODECS)return Lp(t.CODECS)}(t)||[]);if(qS(e,t)&&!i.audio&&!((e,t)=>{if(!qS(e,t))return!0;const n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(const s in i)if(!i[s].uri&&!i[s].playlists)return!0;return!1})(e,t)){const t=HS(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var s=n[i];if(s.default&&s.playlists)return Lp(s.playlists[0].attributes.CODECS)}return null}(e,n.AUDIO)||[]);t.audio&&(i.audio=t.audio)}return i},WS=Z_("PlaylistSelector"),XS=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},KS=function(e,t){if(!e)return"";const n=Eh.getComputedStyle(e);return n?n[t]:""},YS=function(e,t){const n=e.slice();e.sort((function(e,i){const s=t(e,i);return 0===s?n.indexOf(e)-n.indexOf(i):s}))},QS=function(e,t){let n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||Eh.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),i=i||Eh.Number.MAX_VALUE,n-i};let JS=function(e,t,n,i,s,r){if(!e)return;const a={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:s};let o=e.playlists;IT.isAudioOnly(e)&&(o=r.getAudioTrackPlaylists_(),a.audioOnly=!0);let l=o.map((e=>{let t;const n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||Eh.Number.MAX_VALUE,{bandwidth:t,width:n,height:i,playlist:e}}));YS(l,((e,t)=>e.bandwidth-t.bandwidth)),l=l.filter((e=>!IT.isIncompatible(e.playlist)));let c=l.filter((e=>IT.isEnabled(e.playlist)));c.length||(c=l.filter((e=>!IT.isDisabled(e.playlist))));const d=c.filter((e=>e.bandwidth*pS.BANDWIDTH_VARIANCE<t));let u=d[d.length-1];const h=d.filter((e=>e.bandwidth===u.bandwidth))[0];if(!1===s){const e=h||c[0]||l[0];if(e&&e.playlist){let t="sortedPlaylistReps";return h&&(t="bandwidthBestRep"),c[0]&&(t="enabledPlaylistReps"),WS(`choosing ${XS(e)} using ${t} with options`,a),e.playlist}return WS("could not choose a playlist with options",a),null}const p=d.filter((e=>e.width&&e.height));YS(p,((e,t)=>e.width-t.width));const f=p.filter((e=>e.width===n&&e.height===i));u=f[f.length-1];const m=f.filter((e=>e.bandwidth===u.bandwidth))[0];let g,y,v,b;if(m||(g=p.filter((e=>e.width>n||e.height>i)),y=g.filter((e=>e.width===g[0].width&&e.height===g[0].height)),u=y[y.length-1],v=y.filter((e=>e.bandwidth===u.bandwidth))[0]),r.leastPixelDiffSelector){const e=p.map((e=>(e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e)));YS(e,((e,t)=>
57e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff)),b=e[0]}const _=b||v||m||h||c[0]||l[0];if(_&&_.playlist){let e="sortedPlaylistReps";return b?e="leastPixelDiffRep":v?e="resolutionPlusOneRep":m?e="resolutionBestRep":h?e="bandwidthBestRep":c[0]&&(e="enabledPlaylistReps"),WS(`choosing ${XS(_)} using ${e} with options`,a),_.playlist}return WS("could not choose a playlist with options",a),null};const ZS=function(){const e=this.useDevicePixelRatio&&Eh.devicePixelRatio||1;return JS(this.playlists.main,this.systemBandwidth,parseInt(KS(this.tech_.el(),"width"),10)*e,parseInt(KS(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},ew=({inbandTextTracks:e,metadataArray:t,timestampOffset:n,videoDuration:i})=>{if(!t)return;const s=Eh.WebKitDataCue||Eh.VTTCue,r=e.metadataTrack_;if(!r||(t.forEach((e=>{const t=e.cueTime+n;"number"!=typeof t||Eh.isNaN(t)||t<0||!(t<1/0)||!e.frames||!e.frames.length||e.frames.forEach((e=>{const n=new s(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:()=>(G_.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(G_.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(G_.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})}(n),r.addCue(n)}))})),!r.cues||!r.cues.length))return;const a=r.cues,o=[];for(let d=0;d<a.length;d++)a[d]&&o.push(a[d]);const l=o.reduce(((e,t)=>{const n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),c=Object.keys(l).sort(((e,t)=>Number(e)-Number(t)));c.forEach(((e,t)=>{const n=l[e],s=isFinite(i)?i:e,r=Number(c[t+1])||s;n.forEach((e=>{e.endTime=r}))}))},tw={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},nw=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),iw=(e,t,n)=>{e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,G_.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},sw=function(e,t,n){let i,s;if(n&&n.cues)for(i=n.cues.length;i--;)s=n.cues[i],s.startTime>=e&&s.endTime<=t&&n.removeCue(s)},rw=e=>"number"==typeof e&&isFinite(e),aw=1/60,ow=e=>{const{startOfSegment:t,duration:n,segment:i,part:s,playlist:{mediaSequence:r,id:a,segments:o=[]},mediaIndex:l,partIndex:c,timeline:d}=e,u=o.length-1;let h="mediaIndex/partIndex increment";e.getMediaInfoForTime?h=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(h+=` with independent ${e.independent}`);const p="number"==typeof c,f=e.segment.uri?"segment":"pre-segment",m=p?fT({preloadSegment:i})-1:0;return`${f} [${r+l}/${r+u}]`+(p?` part [${c}/${m}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(p?` part start/end [${s.start} => ${s.end}]`:"")+` startOfSegment [${t}] duration [${n}] timeline [${d}] selected by [${h}] playlist [${a}]`},lw=e=>`${e}TimingInfo`,cw=({timelineChangeController:e,currentTimeline:t,segmentTimeline:n,loaderType:i,audioDisabled:s})=>{if(t===n)return!1;if("audio"===i){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==n}if("main"===i&&s){const t=e.pendingTimelineChange({type:"audio"});return!(t&&t.to===n)}return!1},dw=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+nT,uw=(e,t)=>{if("hls"!==t)return null;const n=(e=>{let t=0;return["video","audio"].forEach((function(n){const i=e[`${n}TimingInfo`];if(!i)return;const{start:s,end:r}=i;let a;"bigint"==typeof s||"bigint"==typeof r?a=Eh.BigInt(r)-Eh.BigInt(s):"number"==typeof s&&"number"==typeof r&&(a=r-s),typeof a<"u"&&a>t&&(t=a)})),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t})({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;const i=e.playlist.targetDuration,s=dw({segmentDuration:n,maxDuration:2*i}),r=dw({segmentDuration:n,maxDuration:i}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${n} when the reported duration is ${e.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return s||r?{severity:s?"warn":"info",message:a}:null};class hw extends G_.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={}
57,this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",(()=>{this.isEndOfStream_()||(this.ended_=!1)})),this.fetchAtBuffer_=!1,this.logger_=Z_(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",(()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",(()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",(()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}))}createTransmuxer_(){return xS({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&Eh.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,Eh.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return typeof e<"u"&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&CS(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return tT();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:n,isMuxed:i}=e;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const n=JT(e);let i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e}segmentKey(e,t=!1){if(!e)return null;const n=ZT(e);let i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});const s={resolvedUri:(i||e).resolvedUri};return i&&(s.bytes=i.bytes),s}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_){if("INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;const n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let s=null;if(n&&(n.id?s=n.id:n.uri&&(s=n.uri)),this.logger_(`playlist update [${s} => ${e.id||e.uri}]`),this.syncController_.updateMediaSequenceMap(e,this.currentTime_(),this.loaderType_),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");const r=e.mediaSequence-n.mediaSequence;if(this.logger_(`live window shift [${r}]`),null!==this.mediaIndex)if(this.mediaIndex-=r,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){const e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}i&&(i.mediaIndex-=r,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}pause(){this.checkBufferTimeout_&&(Eh.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}
vendor: 5,737 bytes, line 57
57resetLoader(){this.fetchAtBuffer_=!1,this.resyncLoader()}resyncLoader(){this.transmuxer_&&CS(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.shouldForceTimestampOffsetAfterResync_=!0,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,n=()=>{},i=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let s=1;const r=()=>{s--,0===s&&n()};(i||!this.audioDisabled_)&&(s++,this.sourceUpdater_.removeAudio(e,t,r)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=((e,t,n,i)=>{const s=Math.ceil((t-i)*qm.ONE_SECOND_IN_TS),r=Math.ceil((n-i)*qm.ONE_SECOND_IN_TS),a=e.slice();let o=e.length;for(;o--&&!(e[o].pts<=r););if(-1===o)return a;let l=o+1;for(;l--&&!(e[l].pts<=s););return l=Math.max(l,0),a.splice(l,o-l+1),a})(this.gopBuffer_,e,t,this.timeMapping_),s++,this.sourceUpdater_.removeVideo(e,t,r));for(const a in this.inbandTextTracks_)sw(e,t,this.inbandTextTracks_[a]);sw(e,t,this.segmentMetadataTrack_),r()}monitorBuffer_(){this.checkBufferTimeout_&&Eh.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Eh.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&Eh.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Eh.setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,n=this.partIndex){if(!t||!this.mediaSource_)return!1;const i="number"==typeof e&&t.segments[e],s=e+1===t.segments.length,r=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&s&&r}chooseNextRequest_(){const e=this.buffered_(),t=cT(e)||0,n=dT(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,s=n>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||i||s)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const a={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(a.isSyncRequest)a.mediaIndex=function(e,t,n){t=t||[];const i=[];let s=0;for(let r=0;r<t.length;r++){const a=t[r];if(e===a.timeline&&(i.push(r),s+=a.duration,s>n))return r}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,r,t),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${a.mediaIndex}`);else if(null!==this.mediaIndex){const e=r[this.mediaIndex],n="number"==typeof this.partIndex?this.partIndex:-1;a.startOfSegment=e.end?e.end:t,e.parts&&e.parts[n+1]?(a.mediaIndex=this.mediaIndex,a.partIndex=n+1):a.mediaIndex=this.mediaIndex+1}else{const{segmentIndex:e,startTime:n,partIndex:i}=IT.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});a.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${t}`:`currentTime ${this.currentTime_()}`,a.mediaIndex=e,a.startOfSegment=n,a.partIndex=i,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${a.mediaIndex} `)}const o=r[a.mediaIndex];let l=o&&"number"==typeof a.partIndex&&o.parts&&o.parts[a.partIndex];if(!o||"number"==typeof a.partIndex&&!l)return null;"number"!=typeof a.partIndex&&o.parts&&(a.partIndex=0,l=o.parts[0]);const c=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!n&&l&&!c&&!l.independent)if(0===a.partIndex){const e=r[a.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(a.mediaIndex-=1,a.partIndex=e.parts.length-1,a.independent="previous segment")}else o.parts[a.partIndex-1].independent&&(a.partIndex-=1,a.independent="previous part");const d=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return a.mediaIndex>=r.length-1&&d&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,a.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(a))}generateSegmentInfo_(e){const{independent:t,playlist:n,mediaIndex:i,startOfSegment:s,isSyncRequest:r,partIndex:a,forceTimestampOffset:o,getMediaInfoForTime:l}=e,c=n.segments[i],d="number"==typeof a&&c.parts[a],u={requestId:"segment-loader-"+Math.random(),uri:d&&d.resolvedUri||c.resolvedUri,mediaIndex:i,partIndex:d?a:null,isSyncRequest:r,startOfSegment:s,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:d&&d.duration||c.duration,segment:c,part:d,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=typeof o<"u"?o:this.isPendingTimestampOffset_;u.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:s,buffered:this.buffered_(),overrideCheck:h});
57const p=cT(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(u.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(u.gopsToAlignWith=((e,t,n)=>{if(typeof t>"u"||null===t||!e.length)return[];const i=Math.ceil((t-n+3)*qm.ONE_SECOND_IN_TS);let s;for(s=0;s<e.length&&!(e[s].pts>i);s++);return e.slice(s)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),u}timestampOffsetForSegment_(e){return(({segmentTimeline:e,currentTimeline:t,startOfSegment:n,buffered:i,overrideCheck:s})=>s||e!==t?e<t?n:i.length?i.end(i.length-1):n:null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,s=IT.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),r=function(e,t,n=1){return((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(s<=r)return;const a=function(e){const{main:t,currentTime:n,bandwidth:i,duration:s,segmentDuration:r,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=e,c=t.playlists.filter((e=>!IT.isIncompatible(e)));let d=c.filter(IT.isEnabled);d.length||(d=c.filter((e=>!IT.isDisabled(e))));const u=d.filter(IT.hasAttribute.bind(null,"BANDWIDTH")).map((e=>{const t=l.getSyncPoint(e,s,o,n)?1:2;return{playlist:e,rebufferingImpact:IT.estimateSegmentRequestTime(r,i,e)*t-a}})),h=u.filter((e=>e.rebufferingImpact<=0));return YS(h,((e,t)=>QS(t.playlist,e.playlist))),h.length?h[0]:(YS(u,((e,t)=>e.rebufferingImpact-t.rebufferingImpact)),u[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:r,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!a)return;const o=s-r-a.rebufferingImpact;let l=.5;r<=nT&&(l=1),a.playlist&&a.playlist.uri!==this.playlist_.uri&&!(o<l)&&(this.bandwidth=a.playlist.attributes.BANDWIDTH*pS.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${ow(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&this.trigger("progress")}handleTrackInfo_(e,t){this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)&&(this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;const n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(let s=0;s<n.length;s++){const r=n[s];if(r!==i[s]||e[r]!==t[r])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),!this.checkForAbort_(e.requestId)&&(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))}handleTimingInfo_(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const s=this.pendingSegment_,r=lw(t);s[r]=s[r]||{},s[r][n]=i,this.logger_(`timinginfo: ${t} - ${n} - ${i}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),i={};t.forEach((e=>{i[e.stream]=i[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=i[e.stream];t.startTime=Math.min(t.startTime,e.startTime+n),t.endTime=Math.max(t.endTime,e.endTime+n),t.captions.push(e)}
vendor: 5,018 bytes, line 57
57)),Object.keys(i).forEach((e=>{const{startTime:t,endTime:s,captions:r}=i[e],a=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${s} for ${e}`),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"});let i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);const s=t.textTracks().getTrackById(i);if(s)e[n]=s;else{let s=n,r=n,a=!1;const o=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];o&&(s=o.label,r=o.language,a=o.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:a,label:s,language:r},!1).track}}}(a,this.vhs_.tech_,e),sw(t,s,a[e]),function({inbandTextTracks:e,captionArray:t,timestampOffset:n}){if(!t)return;const i=Eh.WebKitDataCue||Eh.VTTCue;t.forEach((t=>{const s=t.stream;t.content?t.content.forEach((r=>{const a=new i(t.startTime+n,t.endTime+n,r.text);a.line=r.line,a.align="left",a.position=r.position,a.positionAlign="line-left",e[s].addCue(a)})):e[s].addCue(new i(t.startTime+n,t.endTime+n,t.text))}))}({captionArray:r,inbandTextTracks:a,timestampOffset:n})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,n){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(n,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n)))}processMetadataQueue_(){this.metadataQueue_.id3.forEach((e=>e())),this.metadataQueue_.caption.forEach((e=>e())),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach((e=>e()))}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach((e=>e()))}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!cw({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:n,hasVideo:i,isMuxed:s}=t;return!(i&&!e.videoTimingInfo||n&&!this.audioDisabled_&&!s&&!e.audioTimingInfo||cw({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return void this.callQueue_.push(this.handleData_.bind(this,e,t));const n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[lw(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let i;t&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});const e=this.chooseNextRequest_();if(e.mediaIndex!==n.mediaIndex||e.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}updateAppendInitSegmentStatus(e,t){"main"===this.loaderType_&&"number"==typeof e.timestampOffset&&!e.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:n,playlist:i}){if(n){const e=JT(n);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=i,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n}
vendor: 4,219 bytes, line 57
57,i){const s=this.sourceUpdater_.audioBuffered(),r=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+lT(s).join(", ")),r.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+lT(r).join(", "));const a=s.length?s.start(0):0,o=s.length?s.end(s.length-1):0,l=r.length?r.start(0):0,c=r.length?r.end(r.length-1):0;if(o-a<=1&&c-l<=1)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${n.byteLength}, audio buffer: ${lT(s).join(", ")}, video buffer: ${lT(r).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:n}));const d=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${d}`),this.remove(0,d,(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=Eh.setTimeout((()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()}),1e3)}),!0)}handleAppendError_({segmentInfo:e,type:t,bytes:n},i){if(i){if(22===i.code)return void this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n});this.logger_("Received non QUOTA_EXCEEDED_ERR on append",i),this.error(`${t} append of ${n.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:n,data:i,bytes:s}){if(!s){const e=[i];let t=i.byteLength;n&&(e.unshift(n),t+=n.byteLength),s=(e=>{let t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach((e=>{t.set(e,n),n+=e.byteLength}))),t})({bytes:t,segments:e})}this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:s},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:s}))}handleSegmentTimingInfo_(e,t,n){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const i=this.pendingSegment_.segment,s=`${e}TimingInfo`;i[s]||(i[s]={}),i[s].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[s].transmuxedPresentationStart=n.start.presentation,i[s].transmuxedDecodeStart=n.start.decode,i[s].transmuxedPresentationEnd=n.end.presentation,i[s].transmuxedDecodeEnd=n.end.decode,i[s].baseMediaDecodeTime=n.baseMediaDecodeTime}appendData_(e,t){const{type:n,data:i}=t;if(!i||!i.byteLength||"audio"===n&&this.audioDisabled_)return;const s=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:s,data:i})}loadSegment_(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((()=>{const t=op({},e,{forceTimestampOffset:!0});op(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)}))}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const t=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),i=null!==this.mediaIndex,s=e.timeline!==this.currentTimeline_&&e.timeline>0,r=n||i&&s;this.logger_(`Requesting ${ow(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=VS({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.b
57ind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:r,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:n,stream:i})=>{this.logger_(`${ow(e)} logged from transmuxer stream ${i} as a ${n}: ${t}`)}})}trimBackBuffer_(e){const t=((e,t,n)=>{let i=t-pS.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));const s=t-n;return Math.min(s,i)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},s=e.playlist.segments[e.mediaIndex-1];if(s&&s.timeline===t.timeline&&(s.videoTimingInfo?i.baseStartTime=s.videoTimingInfo.transmuxedDecodeEnd:s.audioTimingInfo&&(i.baseStartTime=s.audioTimingInfo.transmuxedDecodeEnd)),t.key){const n=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=n}return t.map&&(i.map=this.initSegmentForMap(t.map)),i}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<aw?this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${aw}`):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,n){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));if(this.saveTransferStats_(t.stats),!this.pendingSegment_||t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===PS)return;return this.pause(),e.code===AS?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=((e,t,n)=>{if(!t.length)return e;if(n)return t.slice();const i=t[0].pts;let s=0;for(;s<e.length&&!(e[s].pts>=i);s++);return e.slice(0,s).concat(t)})(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:n,firstVideoFrameTimeForData:i,currentVideoTimestampOffset:s,useVideoTimingInfo:r,videoTimingInfo:a,audioTimingInfo:o}){if(typeof e<"u")return e;if(!r)return o.start;const l=t.segments[n-1];return 0===n||!l||typeof l.start>"u"||l.end!==i+s?i:a.start}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:n,hasVideo:i,isMuxed:s}=t,r="main"===this.loaderType_&&i,a=!this.audioDisabled_&&n&&!s;if(e.waitingOnAppends=0,!e.hasAppendedData_)return!e.timingInfo&&"number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);r&&e.waitingOnAppends++,a&&e.waitingOnAppends++,r&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}
vendor: 4,579 bytes, line 57
57checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=((e,t,n)=>"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null)(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:n}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n.start:n.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=uw(e,this.sourceType_);if(t&&("warn"===t.severity?G_.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${ow(e)}`);this.logger_(`Appended ${ow(e)}`),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"===this.loaderType_&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const n=e.segment,i=e.part,s=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,r=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(s||r)return this.logger_(`bad ${s?"segment":"part"} ${ow(e)}`),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<aw)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record ${aw}`);const t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,n=t.start,i=t.end;if(!rw(n)||!rw(i))return;sw(n,i,this.segmentMetadataTrack_);const s=Eh.WebKitDataCue||Eh.VTTCue,r={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.ur
57i,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},a=new s(n,i,JSON.stringify(r));a.value=r,this.segmentMetadataTrack_.addCue(a)}}function pw(){}const fw=function(e){return"string"!=typeof e?e:e.replace(/./,(e=>e.toUpperCase()))},mw=["video","audio"],gw=(e,t)=>{const n=t[`${e}Buffer`];return n&&n.updating||t.queuePending[e]},yw=(e,t)=>{if(0===t.queue.length)return;let n=0,i=t.queue[n];if("mediaSource"!==i.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!gw(e,t)){if(i.type!==e){if(n=((e,t)=>{for(let n=0;n<t.length;n++){const i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null})(e,t.queue),null===n)return;i=t.queue[n]}if(t.queue.splice(n,1),t.queuePending[e]=i,i.action(e,t),!i.doneFn)return t.queuePending[e]=null,void yw(e,t)}}else!t.updating()&&"closed"!==t.mediaSource.readyState&&(t.queue.shift(),i.action(t),i.doneFn&&i.doneFn(),yw("audio",t),yw("video",t))},vw=(e,t)=>{const n=t[`${e}Buffer`],i=fw(e);n&&(n.removeEventListener("updateend",t[`on${i}UpdateEnd_`]),n.removeEventListener("error",t[`on${i}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},bw=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),_w=(e,t,n)=>(i,s)=>{const r=s[`${i}Buffer`];if(bw(s.mediaSource,r)){s.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${i}Buffer`);try{r.appendBuffer(e)}catch(hp){s.logger_(`Error with code ${hp.code} `+(22===hp.code?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${i}Buffer`),s.queuePending[i]=null,n(hp)}}},Tw=(e,t)=>(n,i)=>{const s=i[`${n}Buffer`];if(bw(i.mediaSource,s)){i.logger_(`Removing ${e} to ${t} from ${n}Buffer`);try{s.remove(e,t)}catch{i.logger_(`Remove ${e} to ${t} from ${n}Buffer failed`)}}},Sw=e=>(t,n)=>{const i=n[`${t}Buffer`];bw(n.mediaSource,i)&&(n.logger_(`Setting ${t}timestampOffset to ${e}`),i.timestampOffset=e)},ww=e=>(t,n)=>{e()},Ew=e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(n){G_.log.warn("Failed to call media source endOfStream",n)}}},Cw=e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(n){G_.log.warn("Failed to set media source duration",n)}},xw=()=>(e,t)=>{if("open"!==t.mediaSource.readyState)return;const n=t[`${e}Buffer`];if(bw(t.mediaSource,n)){t.logger_(`calling abort on ${e}Buffer`);try{n.abort()}catch(cp){G_.log.warn(`Failed to abort on ${e}Buffer`,cp)}}},kw=(e,t)=>n=>{const i=fw(e),s=Dp(t);n.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const r=n.mediaSource.addSourceBuffer(s);r.addEventListener("updateend",n[`on${i}UpdateEnd_`]),r.addEventListener("error",n[`on${i}Error_`]),n.codecs[e]=t,n[`${e}Buffer`]=r},Iw=e=>t=>{const n=t[`${e}Buffer`];if(vw(e,t),bw(t.mediaSource,n)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(n)}catch(cp){G_.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,cp)}}},Aw=e=>(t,n)=>{const i=n[`${t}Buffer`],s=Dp(e);if(bw(n.mediaSource,i)&&n.codecs[t]!==e){n.logger_(`changing ${t}Buffer codec from ${n.codecs[t]} to ${e}`);try{i.changeType(s),n.codecs[t]=e}catch(up){G_.log.warn(`Failed to changeType on ${t}Buffer`,up)}}},Pw=({type:e,sourceUpdater:t,action:n,doneFn:i,name:s})=>{t.queue.push({type:e,action:n,doneFn:i,name:s}),yw(e,t)},Ow=(e,t)=>n=>{if(t.queuePending[e]){const n=t.queuePending[e].doneFn;t.queuePending[e]=null,n&&n(t[`${e}Error_`])}yw(e,t)};class Lw extends G_.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>yw("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Z_("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=Ow("video",this),this.onAudioUpdateEnd_=Ow("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
vendor: 4,195 bytes, line 57
57triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){Pw({type:"mediaSource",sourceUpdater:this,action:kw(e,t),name:"addSourceBuffer"})}abort(e){Pw({type:e,sourceUpdater:this,action:xw(e),name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?Pw({type:"mediaSource",sourceUpdater:this,action:Iw(e),name:"removeSourceBuffer"}):G_.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!G_.browser.IS_FIREFOX&&Eh.MediaSource&&Eh.MediaSource.prototype&&"function"==typeof Eh.MediaSource.prototype.removeSourceBuffer}static canChangeType(){return Eh.SourceBuffer&&Eh.SourceBuffer.prototype&&"function"==typeof Eh.SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?Pw({type:e,sourceUpdater:this,action:Aw(t),name:"changeType"}):G_.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((t=>{const n=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,n);this.canChangeType()&&this.changeType(t,n)}))}appendBuffer(e,t){const{segmentInfo:n,type:i,bytes:s}=e;if(this.processedAppend_=!0,"audio"===i&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${s.length} until video append`);if(Pw({type:i,sourceUpdater:this,action:_w(s,n||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===i){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach((e=>{this.appendBuffer.apply(this,e)}))}}audioBuffered(){return bw(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:tT()}videoBuffered(){return bw(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:tT()}buffered(){const e=bw(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=bw(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){let n=null,i=null,s=0;const r=[],a=[];if(!(e&&e.length&&t&&t.length))return tT();let o=e.length;for(;o--;)r.push({time:e.start(o),type:"start"}),r.push({time:e.end(o),type:"end"});for(o=t.length;o--;)r.push({time:t.start(o),type:"start"}),r.push({time:t.end(o),type:"end"});for(r.sort((function(e,t){return e.time-t.time})),o=0;o<r.length;o++)"start"===r[o].type?(s++,2===s&&(n=r[o].time)):"end"===r[o].type&&(s--,1===s&&(i=r[o].time)),null!==n&&null!==i&&(a.push([n,i]),n=null,i=null);return tT(a)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=pw){Pw({type:"mediaSource",sourceUpdater:this,action:Cw(e),name:"duration",doneFn:t})}endOfStream(e=null,t=pw){"string"!=typeof e&&(e=void 0),Pw({type:"mediaSource",sourceUpdater:this,action:Ew(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,n=pw){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Pw({type:"audio",sourceUpdater:this,action:Tw(e,t),doneFn:n,name:"remove"}):n()}removeVideo(e,t,n=pw){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Pw({type:"video",sourceUpdater:this,action:Tw(e,t),doneFn:n,name:"remove"}):n()}updating(){return!(!gw("audio",this)&&!gw("video",this))}audioTimestampOffset(e){return typeof e<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Pw({type:"audio",sourceUpdater:this,action:Sw(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return typeof e<"u"&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Pw({type:"video",sourceUpdater:this,action:Sw(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&Pw({type:"audio",sourceUpdater:this,action:ww(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&Pw({type:"video",sourceUpdater:this,action:ww(e),name:"callback"})}
vendor: 4,947 bytes, line 57
57dispose(){this.trigger("dispose"),mw.forEach((e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`]((()=>vw(e,this)))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const Nw=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),Dw=new Uint8Array("\n\n".split("").map((e=>e.charCodeAt(0))));class Mw extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Rw extends hw{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.loaderType_="subtitle",this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return tT();const e=this.subtitlesTrack_.cues;return tT([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const n=JT(e);let i=this.initSegments_[n];if(t&&!i&&e.bytes){const t=Dw.byteLength+e.bytes.byteLength,s=new Uint8Array(t);s.set(e.bytes),s.set(Dw,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:s}}return i||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return typeof e>"u"||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){sw(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){const e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};return this.syncController_.one("timestampoffset",e),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,n){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===AS&&this.handleTimeout_(),e.code===PS?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const s=i.segment;if(s.map&&(s.map.bytes=t.map.bytes),i.bytes=t.bytes,"function"!=typeof Eh.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((()=>this.segmentRequestFinished_(e,t,n)),(()=>this.stopForError({message:"Error loading vtt.js"})));s.requested=!0;try{this.parseVTTCues_(i)}catch(hp){return void this.stopForError({message:hp.message})}if(this.updateTimeMapping_(i,this.syncController_.timelines[i.timeline],this.playlist_),i.cues.length?i.timingInfo={start:i.cues[0].startTime,end:i.cues[i.cues.length-1].endTime}:i.timingInfo={start:i.startOfSegment,end:i.startOfSegment+i.duration},i.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");i.byteLength=i.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,i.cues.forEach((e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new Eh.VTTCue(e.startTime,e.endTime,e.text):e)})),function(e){const t=e.cues;if(!t)return;const n={};for(let i=t.length-1;i>=0;i--){const s=t[i],r=`${s.startTime}-${s.endTime}-${s.text}`;n[r]?e.removeCue(s):n[r]=s}}(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t,n=!1;if("function"!=typeof Eh.WebVTT)throw new Mw;"function"==typeof Eh.TextDecoder?t=new Eh.TextDecoder("utf8"):(t=Eh.WebVTT.StringDecoder(),n=!0);const i=new Eh.WebVTT.Parser(Eh,Eh.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=t=>{e.timestampmap=t},i.onparsingerror=e=>{G_.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;n&&(t=Nw(t)),i.parse(t)}let s=e.bytes;n&&(s=Nw(s)),i.parse(s),i.flush()}updateTimeMapping_(e,t,n){const i=e.segment;if(!t)return;if(!e.cues.length)return void(i.empty=!0);const{MPEGTS:s,LOCAL:r}=e.timestampmap,a=s/qm.ONE_SECOND_IN_TS-r+t.mapping;
57if(e.cues.forEach((e=>{const n=e.endTime-e.startTime,i=0===s?e.startTime+a:this.handleRollover_(e.startTime+a,t.time);e.startTime=Math.max(i,0),e.endTime=Math.max(i+n,0)})),!n.syncInfo){const t=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(t,s-i.duration)}}}handleRollover_(e,t){if(null===t)return e;let n=e*qm.ONE_SECOND_IN_TS;const i=t*qm.ONE_SECOND_IN_TS;let s;for(s=i<n?-8589934592:8589934592;Math.abs(n-i)>4294967296;)n+=s;return n/qm.ONE_SECOND_IN_TS}}const Bw=function(e,t){const n=e.cues;for(let i=0;i<n.length;i++){const e=n[i];if(t>=e.adStartTime&&t<=e.adEndTime)return e}return null},Uw=[{name:"VOD",run:(e,t,n,i,s)=>n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(e,t,n,i,s,r)=>{if(!r)return null;const a=e.getMediaSequenceMap(r);if(!a||0===a.size||void 0===t.mediaSequence||!Array.isArray(t.segments)||!t.segments.length)return null;let o=t.mediaSequence,l=0;for(const c of t.segments){const e=a.get(o);if(!e)break;if(s>=e.start&&s<e.end){if(Array.isArray(c.parts)&&c.parts.length){let t=e.start,n=0;for(const i of c.parts){const r=t,a=r+i.duration;if(s>=r&&s<a)return{time:e.start,segmentIndex:l,partIndex:n};n++,t=a}}return{time:e.start,segmentIndex:l,partIndex:null}}l++,o++}return null}},{name:"ProgramDateTime",run:(e,t,n,i,s)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let r=null,a=null;const o=hT(t);s=s||0;for(let l=0;l<o.length;l++){const n=o[t.endList||0===s?l:o.length-(l+1)],i=n.segment,c=e.timelineToDatetimeMappings[i.timeline];if(!c||!i.dateTimeObject)continue;let d=i.dateTimeObject.getTime()/1e3+c;if(i.parts&&"number"==typeof n.partIndex)for(let e=0;e<n.partIndex;e++)d+=i.parts[e].duration;const u=Math.abs(s-d);if(null!==a&&(0===u||a<u))break;a=u,r={time:d,segmentIndex:n.segmentIndex,partIndex:n.partIndex}}return r}},{name:"Segment",run:(e,t,n,i,s)=>{let r=null,a=null;s=s||0;const o=hT(t);for(let l=0;l<o.length;l++){const e=o[t.endList||0===s?l:o.length-(l+1)],n=e.segment,c=e.part&&e.part.start||n&&n.start;if(n.timeline===i&&typeof c<"u"){const t=Math.abs(s-c);if(null!==a&&a<t)break;(!r||null===a||a>=t)&&(a=t,r={time:c,segmentIndex:e.segmentIndex,partIndex:e.partIndex})}}return r}},{name:"Discontinuity",run:(e,t,n,i,s)=>{let r=null;if(s=s||0,t.discontinuityStarts&&t.discontinuityStarts.length){let n=null;for(let i=0;i<t.discontinuityStarts.length;i++){const a=t.discontinuityStarts[i],o=t.discontinuitySequence+i+1,l=e.discontinuities[o];if(l){const e=Math.abs(s-l.time);if(null!==n&&n<e)break;(!r||null===n||n>=e)&&(n=e,r={time:l.time,segmentIndex:a,partIndex:null})}}}return r}},{name:"Playlist",run:(e,t,n,i,s)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}];class Fw extends G_.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.mediaSequenceStorage_=new Map,this.logger_=Z_("SyncController")}getMediaSequenceMap(e){return this.mediaSequenceStorage_.get(e)}updateMediaSequenceMap(e,t,n){if(void 0===e.mediaSequence||!Array.isArray(e.segments)||!e.segments.length)return;const i=this.getMediaSequenceMap(n),s=new Map;let r,a=e.mediaSequence;i?i.has(e.mediaSequence)?r=i.get(e.mediaSequence).start:(this.logger_(`MediaSequence sync for ${n} segment loader - received a gap between playlists.\nFallback base time to: ${t}.\nReceived media sequence: ${a}.\nCurrent map: `,i),r=t):r=0,this.logger_(`MediaSequence sync for ${n} segment loader.\nReceived media sequence: ${a}.\nbase time is ${r}\nCurrent map: `,i),e.segments.forEach((e=>{const t=r,n=t+e.duration,i={start:t,end:n};s.set(a,i),a++,r=n})),this.mediaSequenceStorage_.set(n,s)}getSyncPoint(e,t,n,i,s){if(t!==1/0)return Uw.find((({name:e})=>"VOD"===e)).run(this,e,t);const r=this.runStrategies_(e,t,n,i,s);if(!r.length)return null;for(const a of r){const{syncPoint:t,strategy:n}=a,{segmentIndex:s,time:r}=t;if(s<0)continue;const o=r,l=o+e.segments[s].duration;if(this.logger_(`Strategy: ${n}. Current time: ${i}. selected segment: ${s}. Time: [${o} -> ${l}]}`),i>=o&&i<l)return this.logger_("Found sync point with exact match: ",t),t}return this.selectSyncPoint_(r,{key:"time",value:i})}getExpiredTime(e,t){if(!e||!e.segments)return null;const n=this.runStrategies_(e,t,e.discontinuitySequence,0,"main");if(!n.length)return null;const i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+vT({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))}runStrategies_(e,t,n,i,s){const r=[];for(let a=0;a<Uw.length;a++){const o=Uw[a],l=o.run(this,e,t,n,i,s);l&&(l.strategy=o.name,r.push({strategy:o.name,syncPoint:l}))}return r}selectSyncPoint_(e,t){let n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),s=e[0].strategy;for(let r=1;r<e.length;r++){const a=Math.abs(e[r].syncPoint[t.key]-t.value);a<i&&(i=a,n=e[r].syncPoint,s=e[r].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${s}]: [time:${n.time}, segmentIndex:${n.segmentIndex}`+("number"==typeof n.partIndex?`,partIndex:${n.partIndex}`:"")+"]"),n}saveExpiredSegmentInfo(e,t){const n=t.mediaSequence-e.mediaSequence;if(n>86400)G_.log.warn(`Not saving expired segment info. Media sequence gap ${n} is too large.`);else for(let i=n-1;i>=0;i--){const n=e.segments[i];if(n&&typeof n.start<"u"){t.syncInfo={mediaSequence:e.mediaSequence+i,time:n.start}
vendor: 4,044 bytes, lines 57-58
57,this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const n=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),i=e.segment;n&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:i.start}));const s=i.dateTimeObject;i.discontinuity&&t&&s&&(this.timelineToDatetimeMappings[i.timeline]=-s.getTime()/1e3)}timestampOffsetForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].time}mappingForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,n){const i=e.segment,s=e.part;let r,a,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),r=e.startOfSegment,a=t.end+o.mapping;else{if(!o)return!1;r=t.start+o.mapping,a=t.end+o.mapping}return s&&(s.start=r,s.end=a),(!i.start||r<i.start)&&(i.start=r),i.end=a,!0}saveDiscontinuitySyncInfo_(e){const t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let i=0;i<t.discontinuityStarts.length;i++){const s=t.discontinuityStarts[i],r=t.discontinuitySequence+i+1,a=s-e.mediaIndex,o=Math.abs(a);if(!this.discontinuities[r]||this.discontinuities[r].accuracy>o){let i;i=a<0?n.start-vT({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:s}):n.end+vT({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:s}),this.discontinuities[r]={time:i,accuracy:o}}}}dispose(){this.trigger("dispose"),this.off()}}class jw extends G_.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:n}){return"number"==typeof t&&"number"==typeof n&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:n}){return"number"==typeof t&&"number"==typeof n&&(this.lastTimelineChanges_[e]={type:e,from:t,to:n},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const Vw=gS(yS((function(){var e=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var s=Array.prototype.slice.call(arguments,1),r=t.length,a=0;a<r;++a)t[a].apply(this,s)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();
58/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */let t=null;class n{constructor(e){let n,i,s;t||(t=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],i=t[4],s=n[4];let r,a,o;const l=[],c=[];let d,u,h,p,f,m;for(r=0;r<256;r++)c[(l[r]=r<<1^283*(r>>7))^r]=r;for(a=o=0;!i[a];a^=d||1,o=c[o]||1)for(p=o^o<<1^o<<2^o<<3^o<<4,p=p>>
vendor: 4,287 bytes, lines 58-59
588^255&p^99,i[a]=p,s[p]=a,h=l[u=l[d=l[a]]],m=16843009*h^65537*u^257*d^16843008*a,f=257*l[p]^16843008*p,r=0;r<4;r++)t[r][a]=f=f<<24^f>>>8,n[r][p]=m=m<<24^m>>>8;for(r=0;r<5;r++)t[r]=t[r].slice(0),n[r]=n[r].slice(0);return e}()),this._tables=[[t[0][0].slice(),t[0][1].slice(),t[0][2].slice(),t[0][3].slice(),t[0][4].slice()],[t[1][0].slice(),t[1][1].slice(),t[1][2].slice(),t[1][3].slice(),t[1][4].slice()]];const r=this._tables[0][4],a=this._tables[1],o=e.length;let l=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");const c=e.slice(0),d=[];for(this._key=[c,d],n=o;n<4*o+28;n++)s=c[n-1],(n%o==0||8===o&&n%o==4)&&(s=r[s>>>24]<<24^r[s>>16&255]<<16^r[s>>8&255]<<8^r[255&s],n%o==0&&(s=s<<8^s>>>24^l<<24,l=l<<1^283*(l>>7))),c[n]=c[n-o]^s;for(i=0;n;i++,n--)s=c[3&i?n:n-4],d[i]=n<=4||i<4?s:a[0][r[s>>>24]]^a[1][r[s>>16&255]]^a[2][r[s>>8&255]]^a[3][r[255&s]]}decrypt(e,t,n,i,s,r){const a=this._key[1];let o,l,c,d=e^a[0],u=i^a[1],h=n^a[2],p=t^a[3];const f=a.length/4-2;let m,g=4;const y=this._tables[1],v=y[0],b=y[1],_=y[2],T=y[3],S=y[4];for(m=0;m<f;m++)o=v[d>>>24]^b[u>>16&255]^_[h>>8&255]^T[255&p]^a[g],l=v[u>>>24]^b[h>>16&255]^_[p>>8&255]^T[255&d]^a[g+1],c=v[h>>>24]^b[p>>16&255]^_[d>>8&255]^T[255&u]^a[g+2],p=v[p>>>24]^b[d>>16&255]^_[u>>8&255]^T[255&h]^a[g+3],g+=4,d=o,u=l,h=c;for(m=0;m<4;m++)s[(3&-m)+r]=S[d>>>24]<<24^S[u>>16&255]<<16^S[h>>8&255]<<8^S[255&p]^a[g++],o=d,d=u,u=h,h=p,p=o}}class i extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const s=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24};class r{constructor(e,t,n,a){const o=r.STEP,l=new Int32Array(e.buffer),c=new Uint8Array(e.byteLength);let d=0;for(this.asyncStream_=new i,this.asyncStream_.push(this.decryptChunk_(l.subarray(d,d+o),t,n,c)),d=o;d<l.length;d+=o)n=new Uint32Array([s(l[d-4]),s(l[d-3]),s(l[d-2]),s(l[d-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(d,d+o),t,n,c));this.asyncStream_.push((function(){var e;
59/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */a(null,(e=c).subarray(0,e.byteLength-e[e.byteLength-1]))}))}static get STEP(){return 32e3}decryptChunk_(e,t,i,r){return function(){const a=function(e,t,i){const r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),a=new n(Array.prototype.slice.call(t)),o=new Uint8Array(e.byteLength),l=new Int32Array(o.buffer);let c,d,u,h,p,f,m,g,y;for(c=i[0],d=i[1],u=i[2],h=i[3],y=0;y<r.length;y+=4)p=s(r[y]),f=s(r[y+1]),m=s(r[y+2]),g=s(r[y+3]),a.decrypt(p,f,m,g,l,y),l[y]=s(l[y]^c),l[y+1]=s(l[y+1]^d),l[y+2]=s(l[y+2]^u),l[y+3]=s(l[y+3]^h),c=p,d=f,u=m,h=g;return o}(e,t,i);r.set(a,e.byteOffset)}}}var a,o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};a=typeof window<"u"?window:typeof o<"u"?o:typeof self<"u"?self:{};var l,c,d=a.BigInt||Number;d("0x1"),d("0x100"),d("0x10000"),d("0x1000000"),d("0x100000000"),d("0x10000000000"),d("0x1000000000000"),d("0x100000000000000"),d("0x10000000000000000"),l=new Uint16Array([65484]),255===(c=new Uint8Array(l.buffer,l.byteOffset,l.byteLength))[0]||c[0];const u=function(e){const t={};return Object.keys(e).forEach((n=>{const i=e[n];!function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer}(i)?t[n]=i:t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}})),t};self.onmessage=function(e){const t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),s=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new r(n,i,s,(function(e,n){self.postMessage(u({source:t.source,decrypted:n}),[n.buffer])}))}})));var $w=mS(Vw);const qw=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Hw=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},zw=(e,t)=>{t.activePlaylistLoader=e,e.load()},Gw={AUDIO:(e,t)=>
vendor: 3,437 bytes, line 59
59()=>{const{mediaTypes:{[e]:n},excludePlaylist:i}=t,s=n.activeTrack(),r=n.activeGroup(),a=(r.filter((e=>e.default))[0]||r[0]).id,o=n.tracks[a];if(s!==o){G_.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in n.tracks)n.tracks[e].enabled=n.tracks[e]===o;n.onTrackChanged()}else i({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:n}}=t;G_.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=n.activeTrack();i&&(i.mode="disabled"),n.onTrackChanged()}},Ww={AUDIO:(e,t,n)=>{if(!t)return;const{tech:i,requestOptions:s,segmentLoaders:{[e]:r}}=n;t.on("loadedmetadata",(()=>{const e=t.media();r.playlist(e,s),(!i.paused()||e.endList&&"none"!==i.preload())&&r.load()})),t.on("loadedplaylist",(()=>{r.playlist(t.media(),s),i.paused()||r.load()})),t.on("error",Gw[e](e,n))},SUBTITLES:(e,t,n)=>{const{tech:i,requestOptions:s,segmentLoaders:{[e]:r},mediaTypes:{[e]:a}}=n;t.on("loadedmetadata",(()=>{const e=t.media();r.playlist(e,s),r.track(a.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&r.load()})),t.on("loadedplaylist",(()=>{r.playlist(t.media(),s),i.paused()||r.load()})),t.on("error",Gw[e](e,n))}},Xw={AUDIO:(e,t)=>{const{vhs:n,sourceType:i,segmentLoaders:{[e]:s},requestOptions:r,main:{mediaGroups:a},mediaTypes:{[e]:{groups:o,tracks:l,logger_:c}},mainPlaylistLoader:d}=t,u=kT(d.main);(!a[e]||0===Object.keys(a[e]).length)&&(a[e]={main:{default:{default:!0}}},u&&(a[e].main.default.playlists=d.main.playlists));for(const h in a[e]){o[h]||(o[h]=[]);for(const s in a[e][h]){let p,f=a[e][h][s];if(u?(c(`AUDIO group '${h}' label '${s}' is a main playlist`),f.isMainPlaylist=!0,p=null):p="vhs-json"===i&&f.playlists?new qT(f.playlists[0],n,r):f.resolvedUri?new qT(f.resolvedUri,n,r):f.playlists&&"dash"===i?new hS(f.playlists[0],n,r,d):null,f=eT({id:s,playlistLoader:p},f),Ww[e](e,f.playlistLoader,t),o[h].push(f),typeof l[s]>"u"){const e=new G_.AudioTrack({id:s,kind:qw(f),enabled:!1,language:f.language,default:f.default,label:s});l[s]=e}}}s.on("error",Gw[e](e,t))},SUBTITLES:(e,t)=>{const{tech:n,vhs:i,sourceType:s,segmentLoaders:{[e]:r},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:c}},mainPlaylistLoader:d}=t;for(const u in o[e]){l[u]||(l[u]=[]);for(const r in o[e][u]){if(!i.options_.useForcedSubtitles&&o[e][u][r].forced)continue;let h,p=o[e][u][r];if("hls"===s)h=new qT(p.resolvedUri,i,a);else if("dash"===s){if(!p.playlists.filter((e=>e.excludeUntil!==1/0)).length)return;h=new hS(p.playlists[0],i,a,d)}else"vhs-json"===s&&(h=new qT(p.playlists?p.playlists[0]:p.resolvedUri,i,a));if(p=eT({id:r,playlistLoader:h},p),Ww[e](e,p.playlistLoader,t),l[u].push(p),typeof c[r]>"u"){const e=n.addRemoteTextTrack({id:r,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:r},!1).track;c[r]=e}}}r.on("error",Gw[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:n,main:{mediaGroups:i},mediaTypes:{[e]:{groups:s,tracks:r}}}=t;for(const a in i[e]){s[a]||(s[a]=[]);for(const t in i[e][a]){const o=i[e][a][t];if(!/^(?:CC|SERVICE)/.test(o.instreamId))continue;const l=n.options_.vhs&&n.options_.vhs.captionServices||{};let c={label:t,language:o.language,instreamId:o.instreamId,default:o.default&&o.autoselect};if(l[c.instreamId]&&(c=eT(c,l[c.instreamId])),void 0===c.default&&delete c.default,s[a].push(eT({id:t},o)),typeof r[t]>
vendor: 6,965 bytes, line 59
59"u"){const e=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;r[t]=e}}}}},Kw=(e,t)=>{for(let n=0;n<e.length;n++)if(CT(t,e[n])||e[n].playlists&&Kw(e[n].playlists,t))return!0;return!1},Yw={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const e in n)if(n[e].enabled)return n[e];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const e in n)if("showing"===n[e].mode||"hidden"===n[e].mode)return n[e];return null}},Qw=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((t=>{Xw[t](t,e)}));const{mediaTypes:t,mainPlaylistLoader:n,tech:i,vhs:s,segmentLoaders:{AUDIO:r,main:a}}=e;["AUDIO","SUBTITLES"].forEach((n=>{t[n].activeGroup=((e,t)=>n=>{const{mainPlaylistLoader:i,mediaTypes:{[e]:{groups:s}}}=t,r=i.media();if(!r)return null;let a=null;r.attributes[e]&&(a=s[r.attributes[e]]);const o=Object.keys(s);if(!a)if("AUDIO"===e&&o.length>1&&kT(t.main))for(let e=0;e<o.length;e++){const t=s[o[e]];if(Kw(t,r)){a=t;break}}else s.main?a=s.main:1===o.length&&(a=s[o[0]]);return typeof n>"u"?a:null!==n&&a&&a.filter((e=>e.id===n.id))[0]||null})(n,e),t[n].activeTrack=Yw[n](n,e),t[n].onGroupChanged=((e,t)=>()=>{const{segmentLoaders:{[e]:n,main:i},mediaTypes:{[e]:s}}=t,r=s.activeTrack(),a=s.getActiveGroup(),o=s.activePlaylistLoader,l=s.lastGroup_;if((!a||!l||a.id!==l.id)&&(s.lastGroup_=a,s.lastTrack_=r,Hw(n,s),a&&!a.isMainPlaylist)){if(!a.playlistLoader)return void(o&&i.resetEverything());n.resyncLoader(),zw(a.playlistLoader,s)}})(n,e),t[n].onGroupChanging=((e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:i}}=t;i.lastGroup_=null,n.abort(),n.pause()})(n,e),t[n].onTrackChanged=((e,t)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[e]:i,main:s},mediaTypes:{[e]:r}}=t,a=r.activeTrack(),o=r.getActiveGroup(),l=r.activePlaylistLoader,c=r.lastTrack_;if((!c||!a||c.id!==a.id)&&(r.lastGroup_=o,r.lastTrack_=a,Hw(i,r),o)){if(o.isMainPlaylist){if(!a||!c||a.id===c.id)return;const e=t.vhs.playlistController_,i=e.selectPlaylist();if(e.media()===i)return;return r.logger_(`track change. Switching main audio from ${c.id} to ${a.id}`),n.pause(),s.resetEverything(),void e.fastQualityChange_(i)}if("AUDIO"===e){if(!o.playlistLoader)return s.setAudio(!0),void s.resetEverything();i.setAudio(!0),s.setAudio(!1)}if(l===o.playlistLoader)return void zw(o.playlistLoader,r);i.track&&i.track(a),i.resetEverything(),zw(o.playlistLoader,r)}})(n,e),t[n].getActiveGroup=((e,{mediaTypes:t})=>()=>{const n=t[e].activeTrack();return n?t[e].activeGroup(n):null})(n,e)}));const o=t.AUDIO.activeGroup();if(o){const e=(o.filter((e=>e.default))[0]||o[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),r.setAudio(!0)):a.setAudio(!0)}n.on("mediachange",(()=>{["AUDIO","SUBTITLES"].forEach((e=>t[e].onGroupChanged()))})),n.on("mediachanging",(()=>{["AUDIO","SUBTITLES"].forEach((e=>t[e].onGroupChanging()))}));const l=()=>{t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),s.on("dispose",(()=>{i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),i.clearTracks("audio");for(const c in t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[c])};class Jw{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=Q_(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map((e=>[e.ID,e]))))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Zw extends G_.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new Jw,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Z_("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const n=t.serverUri||t.serverURL;if(!n)return this.logger_(`steering manifest URL is ${n}, cannot request steering manifest.`),void this.trigger("error");n.startsWith("data:")?this.decodeDataUriManifest_(n.substring(n.indexOf(",")+1)):(this.steeringManifest.reloadUri=Q_(e,n),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const n=e?t:this.getRequestURI(t);if(!n)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();this.request_=this.xhr_({uri:n},((e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${n} this session.`),void this.excludedSteeringManifestURLs.add(n);if(429===t.status){const n=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${n} seconds.`),void this.startTTLTimeout_(parseInt(n,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}const i=JSON.parse(this.request_.responseText);this.assignSteeringProperties_(i),this.startTTLTimeout_()}))}setProxyServerUrl_(e){const t=new Eh.URL(e),n=new Eh.URL(this.proxyServerUrl_);return n.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(n.toString())}decodeDataUriManifest_(e){const t=JSON.parse(Eh.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new Eh.URL(e),n=this.getPathway(),i=this.getBandwidth_();if(n){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,n)}if(i){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,i)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for c
59ontent steering. Ending content steering."),this.trigger("error"),this.dispose());const t=(e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){const n=this.setProxyServerUrl_(e);if(!t(n))return n}const n=this.setSteeringParams_(e);return t(n)?null:n}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=Eh.setTimeout((()=>{this.requestSteeringManifest()}),t)}clearTTLTimeout_(){Eh.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new Jw}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(Q_(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}let eE;const tE=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],nE=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]};class iE extends G_.EventTarget{constructor(e){super();const{src:t,withCredentials:n,tech:i,bandwidth:s,externVhs:r,useCueTags:a,playlistExclusionDuration:o,enableLowInitialPlaylist:l,sourceType:c,cacheEncryptionKeys:d,bufferBasedABR:u,leastPixelDiffSelector:h,captionServices:p}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:f}=e;(null===f||typeof f>"u")&&(f=1/0),eE=r,this.bufferBasedABR=!!u,this.leastPixelDiffSelector=!!h,this.withCredentials=n,this.tech_=i,this.vhs_=i.vhs,this.sourceType_=c,this.useCueTags_=a,this.playlistExclusionDuration=o,this.maxPlaylistRetries=f,this.enableLowInitialPlaylist=l,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:n,maxPlaylistRetries:f,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:pw,activeTrack:pw,getActiveGroup:pw,onGroupChanged:pw,onTrackChanged:pw,lastTrack_:null,logger_:Z_(`MediaGroups[${t}]`)}})),e})(),this.mediaSource=new Eh.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=tT(),this.hasPlayed_=!1,this.syncController_=new Fw(e),this.segmentMetadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new $w,this.sourceUpdater_=new Lw(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new jw,this.keyStatusMap_=new Map;const m={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:p,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:s,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:d,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new hS(t,this.vhs_,eT(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new qT(t,this.vhs_,eT(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new hw(eT(m,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new hw(eT(m,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Rw(eT(m,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise(((e,t)=>{function n(){i.off("vttjserror",s),e()}function s(){i.off("vttjsloaded",n),t()}i.one("vttjsloaded",n),i.one("vttjserror",s),i.addWebVttScript_()}))}),e);this.contentSteeringController_=new Zw(this.vhs_.xhr,(()=>this.mainSegmentLoader_.bandwidth)),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",(()=>this.startABRTimer_())),this.tech_.on("pause",(()=>this.stopABRTimer_())),this.tech_.on("play",(()=>
vendor: 9,279 bytes, line 59
59this.startABRTimer_()))),tE.forEach((e=>{this[e+"_"]=nE.bind(this,e)})),this.logger_=Z_("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const g="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(g,(()=>{const e=Date.now();this.tech_.one("loadeddata",(()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends}))}))}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,n){const i=this.media(),s=i&&(i.id||i.uri),r=e&&(e.id||e.uri);s&&s!==r&&(this.logger_(`switch media ${s} -> ${r} from ${t}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})),this.mainPlaylistLoader_.media(e,n)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((e=>{const t=this.mediaTypes_[e],n=t?t.activeGroup():null,i=this.contentSteeringController_.getPathway();if(n&&i){const t=(n.length?n[0].playlists:n.playlists).filter((e=>e.attributes.serviceLocation===i));t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}}))}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=Eh.setInterval((()=>this.checkABR_()),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(Eh.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const n=e.mediaGroups.AUDIO,i=Object.keys(n);let s;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)s=this.mediaTypes_.AUDIO.activeTrack();else{const e=n.main||i.length&&n[i[0]];for(const t in e)if(e[t].default){s={label:t};break}}if(!s)return t;const r=[];for(const a in n)if(n[a][s.label]){const t=n[a][s.label];if(t.playlists&&t.playlists.length)r.push.apply(r,t.playlists);else if(t.uri)r.push(t);else if(e.playlists.length)for(let n=0;n<e.playlists.length;n++){const t=e.playlists[n];t.attributes&&t.attributes.AUDIO&&t.attributes.AUDIO===a&&r.push(t)}}return r.length?r:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",(()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;ET(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),Qw({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(()=>{this.trigger("selectedinitialmedia")}))})),this.mainPlaylistLoader_.on("loadedplaylist",(()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t)||(this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial"),"vhs-json"!==this.sourceType_||!this.initialMedia_.segments))return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)})),this.mainPlaylistLoader_.on("error",(()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})})),this.mainPlaylistLoader_.on("mediachanging",(()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()})),this.mainPlaylistLoader_.on("mediachange",(()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;ET(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})})),this.mainPlaylistLoader_.on("playlistunchanged",(()=>{const e=this.mainPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))})),this.mainPlaylistLoader_.on("renditiondisabled",(()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})})),this.mainPlaylistLoader_.on("renditionenabled",(()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}))}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const n=e.mediaGroups||{};let i=!0;const s=Object.keys(n.AUDIO);for(const r in n.AUDIO)for(const e in n.AUDIO[r])n.AUDIO[r][e].uri||(i=!1);i&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),eE.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),s.length&&Object.keys(n.AUDIO[s[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),s=this.bufferHighWaterLine();return function({currentPlaylist:e,buffered:t,currentTime:n,nextPlaylist:i,bufferLowWaterLine:s,bufferHighWaterLine:r,duration:a,bufferBasedABR:o,log:l}){if(!i)return G_.log.warn("We received no playlist to switch to. Please check your stream."),!1;const c=`allowing switch ${e&&e.id||"null"} -> ${i.id}`;if(!e)return l(`${c} as current playlist is not set`),!0;if(i.id===e.id)return!1;const d=!!rT(t,n).length;if(!e.endList)return d||"number"!=typeof e.partTargetDuration?(l(`${c} as current playlist is live`),!0):(l(`not ${c} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const u=dT(t,n),h=o?pS.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:pS.MAX_BUFFER_LOW_WATER_LINE;if(a<h)return l(`${c} as duration < max low water line (${a} < ${h})`),!0;const p=i.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(p<f&&(!o||u<r)){let e=`${c} as next bandwidth < current bandwidth (${p} < ${f})`;return o&&(e+=` and forwardBuffer < bufferHighWaterLine (${u} < ${r})`),l(e),!0}if((!o||p>f)&&u>=s){let e=`${c} as forwardBuffer >= bufferLowWaterLine (${u} >= ${s})`;return o&&(e+=` and next bandwidth > current bandwidth (${p} > ${f})`),l(e),!0}return l(`not ${c} as no switching criteria met`),!1}({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:s,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",(()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()})),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",(()=>{this.trigger("progress")})),this.mainSegmentLoader_.on("error",(()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})})),this.mainSegmentLoader_.on("appenderror",(()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(()=>{this.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(()=>{this.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")})),this.mainSegmentLoader_.on("ended",(()=>
vendor: 4,527 bytes, line 59
59{this.logger_("main segment loader ended"),this.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))}));const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",(()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}))}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything((()=>{this.tech_.setCurrentTime(this.tech_.currentTime())}))}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const n=t.end(0);let i=n;if(e.start){const s=e.start.timeOffset;i=s<0?Math.max(n+s,t.start(0)):Math.min(n,s)}this.trigger("firstplay"),this.tech_.setCurrentTime(i)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();typeof e<"u"&&"function"==typeof e.then&&e.then(null,(e=>{}))}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;const n=eE.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),s=this.tech_.buffered();if(!s.length)return n-i<=iT;const r=s.end(s.length-1);return r-i<=iT&&n-r<=iT}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:n}){if(e=e||this.mainPlaylistLoader_.media(),n=n||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const i=this.mainPlaylistLoader_.main.playlists,s=i.filter(ST),r=1===s.length&&s[0]===e;if(1===i.length&&n!==1/0)return G_.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(r);if(r){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),n=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout((()=>{this.contentSteeringController_.addAvailablePathway(t)}),n)}let t=!1;
59i.forEach((n=>{if(n===e)return;const i=n.excludeUntil;typeof i<"u"&&i!==1/0&&(t=!0,delete n.excludeUntil)})),t&&(G_.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let a;a=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*n,e.excludeUntil=a,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const o=this.selectPlaylist();if(!o)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:G_.log.warn,c=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${c} Switching to playlist ${o.id}.`),o.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),o.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const d=o.targetDuration/2*1e3||5e3,u="number"==typeof o.lastRequest&&Date.now()-o.lastRequest<=d;return this.switchMedia_(o,"exclude",r||u)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const n=[],i="all"===e;(i||"main"===e)&&n.push(this.mainPlaylistLoader_);const s=[];(i||"audio"===e)&&s.push("AUDIO"),(i||"subtitle"===e)&&(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach((e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)})),["main","audio","subtitle"].forEach((t=>{const i=this[`${t}SegmentLoader_`];i&&(e===t||"all"===e)&&n.push(i)})),n.forEach((e=>t.forEach((t=>{"function"==typeof e[t]&&e[t]()}))))}setCurrentTime(e){const t=rT(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:eE.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let t=this.mainPlaylistLoader_.media();if(!t)return;let n=this.syncController_.getExpiredTime(t,this.duration());if(null===n)return;const i=this.mainPlaylistLoader_.main,s=eE.Playlist.seekable(t,n,eE.Playlist.liveEdgeDelay(i,t));if(0===s.length||this.mediaTypes_.AUDIO.activePlaylistLoader&&(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),n=this.syncController_.getExpiredTime(t,this.duration()),null===n||(e=eE.Playlist.seekable(t,n,eE.Playlist.liveEdgeDelay(i,t)),0===e.length)))return;let r,a;this.seekable_&&this.seekable_.length&&(r=this.seekable_.end(0),a=this.seekable_.start(0)),e?e.start(0)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=tT([[e.start(0)>s.start(0)?e.start(0):s.start(0),e.end(0)<s.end(0)?e.end(0):s.end(0)]]):this.seekable_=s,(!this.seekable_||!this.seekable_.length||this.seekable_.end(0)!==r||this.seekable_.start(0)!==a)&&(this.logger_(`seekable updated [${oT(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let n=eE.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(n=Math.max(n,t.end(t.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((e=>{const t=this.mediaTypes_[e].groups;
59for(const n in t)t[n].forEach((e=>{e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const n=GS(this.main(),t),i={},s=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(i.video=n.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(i.video+=`,${n.audio||e.main.audioCodec||Bp}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||s)&&(i.audio=n.audio||e.main.audioCodec||e.audio.audioCodec||Bp,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!i.audio&&!i.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const r={};let a;if(["video","audio"].forEach((function(t){if(i.hasOwnProperty(t)&&!((e,t)=>e?Mp(t):Rp(t))(e[t].isFmp4,i[t])){const n=e[t].isFmp4?"browser":"muxer";r[n]=r[n]||[],r[n].push(i[t]),"audio"===t&&(a=n)}})),s&&a&&t.attributes.AUDIO){const e=t.attributes.AUDIO;
vendor: 4,305 bytes, line 59
59this.main().playlists.forEach((n=>{(n.attributes&&n.attributes.AUDIO)===e&&n!==t&&(n.excludeUntil=1/0)})),this.logger_(`excluding audio group ${e} as ${a} does not support codec(s): "${i.audio}"`)}if(!Object.keys(r).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach((t=>{const n=(Lp(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,s=(Lp(i[t]||"")[0]||{}).type;n&&s&&n.toLowerCase()!==s.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${i[t]}"`)})),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return i}{const e=Object.keys(r).reduce(((e,t)=>(e&&(e+=", "),e+=`${t} does not support codec(s): "${r[t].join(",")}"`)),"")+".";this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach((n=>{const i=e[n];if(-1!==t.indexOf(i.id))return;t.push(i.id);const s=GS(this.main,i),r=[];s.audio&&!Rp(s.audio)&&!Mp(s.audio)&&r.push(`audio codec ${s.audio}`),s.video&&!Rp(s.video)&&!Mp(s.video)&&r.push(`video codec ${s.video}`),s.text&&"stpp.ttml.im1t"===s.text&&r.push(`text codec ${s.text}`),r.length&&(i.excludeUntil=1/0,this.logger_(`excluding ${i.id} for unsupported: ${r.join(", ")}`))}))}excludeIncompatibleVariants_(e){const t=[],n=this.main().playlists,i=HS(Lp(e)),s=zS(i),r=i.video&&Lp(i.video)[0]||null,a=i.audio&&Lp(i.audio)[0]||null;Object.keys(n).forEach((e=>{const i=n[e];if(-1!==t.indexOf(i.id)||i.excludeUntil===1/0)return;t.push(i.id);const o=[],l=GS(this.mainPlaylistLoader_.main,i),c=zS(l);if(l.audio||l.video){if(c!==s&&o.push(`codec count "${c}" !== "${s}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&Lp(l.video)[0]||null,t=l.audio&&Lp(l.audio)[0]||null;e&&r&&e.type.toLowerCase()!==r.type.toLowerCase()&&o.push(`video codec "${e.type}" !== "${r.type}"`),t&&a&&t.type.toLowerCase()!==a.type.toLowerCase()&&o.push(`audio codec "${t.type}" !== "${a.type}"`)}o.length&&(i.excludeUntil=1/0,this.logger_(`excluding ${i.id}: ${o.join(" && ")}`))}}))}updateAdCues_(e){let t=0;const n=this.seekable();n.length&&(t=n.start(0)),function(e,t,n=0){if(!e.segments)return;let i,s=n;for(let r=0;r<e.segments.length;r++){const n=e.segments[r];if(i||(i=Bw(t,s+n.duration/2)),i){if("cueIn"in n){i.endTime=s,i.adEndTime=s,s+=n.duration,i=null;continue}if(s<i.endTime){s+=n.duration;continue}i.endTime+=n.duration}else if("cueOut"in n&&(i=new Eh.VTTCue(s,s+n.duration,n.cueOut),i.adStartTime=s,i.adEndTime=s+parseFloat(n.cueOut),t.addCue(i)),"cueOutCont"in n){const[e,r]=n.cueOutCont.split("/").map(parseFloat);i=new Eh.VTTCue(s,s+n.duration,""),i.adStartTime=s-e,i.adEndTime=i.adStartTime+r,t.addCue(i)}s+=n.duration}}(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=pS.GOAL_BUFFER_LENGTH,n=pS.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,pS.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=pS.BUFFER_LOW_WATER_LINE,n=pS.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,pS.MAX_BUFFER_LOW_WATER_LINE),s=Math.max(t,pS.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.bufferBasedABR?s:i)}bufferHighWaterLine(){return pS.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){iw(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:e,dateRanges:t})=>{const n=e.metadataTrack_;if(!n)return;const i=Eh.WebKitDataCue||Eh.VTTCue;t.forEach((e=>{for(const t of Object.keys(e)){if(nw.has(t))continue;const s=new i(e.startTime,e.endTime,"");s.id=e.id,s.type="com.apple.quicktime.HLS",s.value={key:tw[t],data:e[t]},("scte35Out"===t||"scte35In"===t)&&(s.value.data=new Uint8Array(s.value.data.match(/[\da-f]{2}/gi)).buffer),n.addCue(s)}e.processDateRange()}))})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}
vendor: 3,853 bytes, line 59
59addMetadataToTextTrack(e,t,n){const i=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();iw(this.inbandTextTracks_,e,this.tech_),ew({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:n})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart)return void this.contentSteeringController_.requestSteeringManifest(!0);this.tech_.one("canplay",(()=>{this.contentSteeringController_.requestSteeringManifest()}))}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",(()=>{const e=this.main();(this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering)||(()=>{const t=this.contentSteeringController_.getAvailablePathways(),n=[];for(const i of e.playlists){const e=i.attributes.serviceLocation;if(e&&(n.push(e),!t.has(e)))return!0}return!(n.length||!t.size)})())&&this.resetContentSteeringController_()}))}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const t=this.main().playlists,n=new Set;let i=!1;Object.keys(t).forEach((s=>{const r=t[s],a=this.pathwayAttribute_(r),o=a&&e!==a;r.excludeUntil===1/0&&"content-steering"===r.lastExcludeReason_&&!o&&(delete r.excludeUntil,delete r.lastExcludeReason_,i=!0);const l=!r.excludeUntil&&r.excludeUntil!==1/0;!n.has(r.id)&&o&&l&&(n.add(r.id),r.excludeUntil=1/0,r.lastExcludeReason_="content-steering",this.logger_(`excluding ${r.id} for ${r.lastExcludeReason_}`))})),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach((t=>{const n=this.mediaTypes_[t];if(n.activePlaylistLoader){const t=n.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(i=!0)}})),i&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main().playlists,t=this.contentSteeringController_.currentPathwayClones,n=this.contentSteeringController_.nextPathwayClones;if(t&&t.size||n&&n.size){for(const[e,i]of t.entries())n.get(e)||(this.mainPlaylistLoader_.updateOrDeleteClone(i),this.contentSteeringController_.excludePathway(e));for(const[i,s]of n.entries()){const n=t.get(i);n?this.equalPathwayClones_(n,s)||(this.mainPlaylistLoader_.updateOrDeleteClone(s,!0),this.contentSteeringController_.addAvailablePathway(i)):(e.filter((e=>e.attributes["PATHWAY-ID"]===s["BASE-ID"])).forEach((e=>{this.mainPlaylistLoader_.addClonePathway(s,e)})),this.contentSteeringController_.addAvailablePathway(i))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...n])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const n=e["URI-REPLACEMENT"].PARAMS,i=t["URI-REPLACEMENT"].PARAMS;for(const s in n)if(n[s]!==i[s])return!1;for(const s in i)if(n[s]!==i[s])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";
59this.mainPlaylistLoader_.main.playlists.forEach((n=>{const i=this.mainPlaylistLoader_.getKeyIdSet(n);!i||!i.size||i.forEach((i=>{const s="usable",r=this.keyStatusMap_.has(i)&&this.keyStatusMap_.get(i)===s,a=n.lastExcludeReason_===t&&n.excludeUntil===1/0;r?r&&a&&(delete n.excludeUntil,delete n.lastExcludeReason_,this.logger_(`enabling playlist ${n.id} because key ID ${i} is ${s}`)):(n.excludeUntil!==1/0&&n.lastExcludeReason_!==t&&(n.excludeUntil=1/0,n.lastExcludeReason_=t,this.logger_(`excluding playlist ${n.id} because the key ID ${i} doesn't exist in the keyStatusMap or is not ${s}`)),e++)}))})),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach((e=>{const n=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,i=e.excludeUntil===1/0&&e.lastExcludeReason_===t;n&&i&&(delete e.excludeUntil,G_.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))}))}addKeyStatus_(e,t){const n=("string"==typeof e?e:(e=>{const t=new Uint8Array(e);return Array.from(t).map((e=>e.toString(16).padStart(2,"0"))).join("")})(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${n} added to the keyStatusMap`),this.keyStatusMap_.set(n,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}class sE{constructor(e,t,n){const{playlistController_:i}=e,s=i.fastQualityChange_.bind(i);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=GS(i.main(),t),this.playlist=t,this.id=n,this.enabled=((e,t,n)=>i=>{const s=e.main.playlists[t],r=TT(s),a=ST(s);return typeof i>"u"?a:(i?delete s.disabled:s.disabled=!0,i!==a&&!r&&(n(),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)})(e.playlists,t.id,s)}}const rE=["seeking","seeked","pause","playing","error"];class aE{constructor(e){this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Z_("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),n=()=>this.monitorCurrentTime_(),i=()=>this.techWaiting_(),s=()=>this.resetTimeUpdate_(),r=this.playlistController_,a=["main","subtitle","audio"],o={};a.forEach((e=>{o[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},r[`${e}SegmentLoader_`].on("appendsdone",o[e].updateend),r[`${e}SegmentLoader_`].on("playlistupdate",o[e].reset),this.tech_.on(["seeked","seeking"],o[e].reset)}));const l=e=>{["main","audio"].forEach((t=>{r[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)}))};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),l("off"))},this.clearSeekingAppendCheck_=()=>l("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),l("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",i),this.tech_.on(rE,s),this.tech_.on("canplay",n),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",i),this.tech_.off(rE,s),this.tech_.off("canplay",n),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),a.forEach((e=>{r[`${e}SegmentLoader_`].off("appendsdone",o[e].updateend),r[`${e}SegmentLoader_`].off("playlistupdate",o[e].reset),this.tech_.off(["seeked","seeking"],o[e].reset)})),this.checkCurrentTimeTimeout_&&Eh.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&Eh.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=Eh.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,n=t[`${e}SegmentLoader_`],i=n.buffered_(),s=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e||e.length!==t.length)return!0;for(let n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}(this[`${e}Buffered_`],i);this[`${e}Buffered_`]=i,s?this.resetSegmentDownloads_(e):(this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:n.playlist_&&n.playlist_.id,buffered:lT(i)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0})))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+iT>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),t=this.tech_.currentTime();let n;if(this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(n=e.end(e.length-1)),this.beforeSeekableWindow_(e,t)){const t=e.start(0);n=t+(t===e.end(0)?0:iT)}if(typeof n<"u")return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${oT(e)}. Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0;const i=this.playlistController_.sourceUpdater_,s=this.tech_.buffered(),r=i.audioBuffer?i.audioBuffered():null,a=i.videoBuffer?i.videoBuffered():null,o=this.media(),l=o.partTargetDuration?o.partTargetDuration:2*(o.targetDuration-nT),c=[r,a];for(let u=0;u<c.length;u++)if(c[u]&&dT(c[u],t)<l)return!1;const d=aT(s,t);return 0!==d.length&&(n=d.start(0)+iT,this.logger_(`Buffered region starts (${d.start(0)})  just beyond seek point (${t}). Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),n=rT(t,e);return n.length&&e+3<=n.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${n.start(0)} -> ${n.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;
vendor: 4,242 bytes, line 59
59if(this.beforeSeekableWindow_(e,t)){const n=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) ${n}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const n=this.tech_.vhs.playlistController_.sourceUpdater_,i=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const s=aT(i,t);return s.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${s.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,n,i=!1){if(!e.length)return!1;let s=e.end(e.length-1)+iT;const r=!n.endList,a="number"==typeof n.partTargetDuration;return r&&(a||i)&&(s=e.end(e.length-1)+3*n.targetDuration),t>s}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:n}){if(!e)return;let i;if(e.length&&t.length){const s=rT(e,n-3),r=rT(e,n),a=rT(t,n);a.length&&!r.length&&s.length&&(i={start:s.end(0),end:a.end(0)})}else aT(e,n).length||(i=this.gapFromVideoUnderflow_(e,n));return!!i&&(this.logger_(`Encountered a gap in video from ${i.start} to ${i.end}. Seeking to current time ${n}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),n=this.tech_.currentTime(),i=aT(t,n);this.resetTimeUpdate_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+nT),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,t){const n=function(e){if(e.length<2)return tT();const t=[];for(let n=1;n<e.length;n++){const i=e.end(n-1),s=e.start(n);t.push([i,s])}return tT(t)}(e);for(let i=0;i<n.length;i++){const e=n.start(i),s=n.end(i);if(t-e<4&&t-e>2)return{start:e,end:s}}return null}}const oE={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},lE=function(e,t){let n=0,i=0;const s=eT(oE,t);e.ready((()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})}));const r=function(){i&&e.currentTime(i)},a=function(t){null!=t&&(i=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",r),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=function(){if(Date.now()-n<1e3*s.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(s.getSource&&"function"==typeof s.getSource)return n=Date.now(),s.getSource.call(e,a);G_.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},l=function(){e.off("loadedmetadata",r),e.off("error",o),e.off("dispose",l)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=function(t){l(),lE(e,t)}};var cE="3.10.0";const dE={PlaylistLoader:qT,Playlist:IT,utils:tS,STANDARD_PLAYLIST_SELECTOR:ZS,INITIAL_PLAYLIST_SELECTOR:function(){const e=this.playlists.main.playlists.filter(IT.isEnabled);return YS(e,((e,t)=>QS(e,t))),e.filter((e=>!!GS(this.playlists.main,e).video))[0]||null},lastBandwidthSelector:ZS,movingAverageBandwidthSelector:function(e){let t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){const i=this.useDevicePixelRatio&&Eh.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),JS(this.playlists.main,t,parseInt(KS(this.tech_.el(),"width"),10)*i,parseInt(KS(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}},comparePlaylistBandwidth:QS,comparePlaylistResolution:function(e,t){let n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||Eh.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),i=i||Eh.Number.MAX_VALUE,n===i&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:GT()};
59Object.keys(pS).forEach((e=>{Object.defineProperty(dE,e,{get:()=>(G_.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),pS[e]),set(t){G_.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0?G_.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):pS[e]=t}})}));const uE="videojs-vhs",hE=function(e,t){const n=t.media();let i=-1;for(let s=0;s<e.length;s++)if(e[s].id===n.id){i=s;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})};dE.canPlaySource=function(){return G_.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const pE=({player:e,sourceKeySystems:t,audioMedia:n,mainPlaylists:i})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const s=((e,t)=>e.reduce(((e,n)=>{if(!n.contentProtection)return e;const i=t.reduce(((e,t)=>{const i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e}),{});return Object.keys(i).length&&e.push(i),e}),[]))(n?i.concat([n]):i,Object.keys(t)),r=[],a=[];return s.forEach((t=>{a.push(new Promise(((t,n)=>{e.tech_.one("keysessioncreated",t)}))),r.push(new Promise(((n,i)=>{e.eme.initializeMediaKeys({keySystems:t},(e=>{e?i(e):n()}))})))})),Promise.race([Promise.all(r),Promise.race(a)])},fE=({player:e,sourceKeySystems:t,media:n,audioMedia:i})=>{const s=((e,t,n)=>{if(!e)return e;let i={};t&&t.attributes&&t.attributes.CODECS&&(i=HS(Lp(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);const s=Dp(i.video),r=Dp(i.audio),a={};for(const o in e)a[o]={},r&&(a[o].audioContentType=r),s&&(a[o].videoContentType=s),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(a[o].pssh=t.contentProtection[o].pssh),"string"==typeof e[o]&&(a[o].url=e[o]);return eT(e,a)})(t,n,i);return!!s&&(e.currentSource().keySystems=s,!(s&&!e.eme)||(G_.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},mE=()=>
vendor: 11,000 bytes, line 59
59{if(!Eh.localStorage)return null;const e=Eh.localStorage.getItem(uE);if(!e)return null;try{return JSON.parse(e)}catch{return null}},gE=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},yE=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},vE=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},bE=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};dE.supportsNativeHls=function(){if(!Ah||!Ah.createElement)return!1;const e=Ah.createElement("video");return!!G_.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),dE.supportsNativeDash=!!(Ah&&Ah.createElement&&G_.getTech("Html5").isSupported())&&/maybe|probably/i.test(Ah.createElement("video").canPlayType("application/dash+xml")),dE.supportsTypeNatively=e=>"hls"===e?dE.supportsNativeHls:"dash"===e&&dE.supportsNativeDash,dE.isSupported=function(){return G_.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},dE.xhr.onRequest=function(e){gE(dE.xhr,e)},dE.xhr.onResponse=function(e){yE(dE.xhr,e)},dE.xhr.offRequest=function(e){vE(dE.xhr,e)},dE.xhr.offResponse=function(e){bE(dE.xhr,e)};const _E=G_.getComponent("Component");class TE extends _E{constructor(e,t,n){if(super(t,n.vhs),"number"==typeof n.initialBandwidth&&(this.options_.bandwidth=n.initialBandwidth),this.logger_=Z_("VhsHandler"),t.options_&&t.options_.playerId){const e=G_.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(Ah,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(e=>{const t=Ah.fullscreenElement||Ah.webkitFullscreenElement||Ah.mozFullScreenElement||Ah.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()})),this.on(this.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),this.on(this.tech_,"error",(function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()})),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=eT(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=mE();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=pS.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===pS.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach((e=>{typeof this.source_[e]<"u"&&(this.options_[e]=this.source_[e])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=(e=>0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e)(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=dE,this.options_.sourceType=jp(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.playlistController_=new iE(this.options_);const n=eT({liveRangeSafeTimeDelta:iT},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new aE(n),this.playlistController_.on("error",(()=>{const e=G_.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));const i=this.options_.bufferBasedABR?dE.movingAverageBandwidthSelector(.55):dE.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):i.bind(this),this.playlistController_.selectInitialPlaylist=dE.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const t=Eh.navigator.connection||Eh.navigator.mozConnection||Eh.navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&t){const i=1e3*t.downlink*1e3;e=i>=n&&e>=n?Math.max(e,i):i}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set(){G_.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>lT(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>lT(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",(()=>{this.options_.useBandwidthFromLocalStorage&&(e=>{if(!Eh.localStorage)return!1;let t=mE();t=t?eT(t,e):e;try{Eh.localStorage.setItem(uE,JSON.stringify(t))}catch{return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})})),this.playlistController_.on("selectedinitialmedia",(()=>{!function(e){e.representations=()=>{const t=e.playlistController_.main(),n=kT(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((e=>!TT(e))).map(((t,n)=>new sE(e,t,t.id))):[]}}(this)})),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",(()=>{this.setupEme_()})),this.on(this.playlistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.playlistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=Eh.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),pE({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then((()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()})).catch((e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media ke
59ys for EME",code:3})}))}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=fE({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",(e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=G_.players[this.tech_.options_.playerId];!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",(()=>{!function(e,t){t.representations().forEach((t=>{e.addQualityLevel(t)})),hE(e,t.playlists)}(this.qualityLevels_,this)})),this.playlists.on("mediachange",(()=>{hE(this.qualityLevels_,this.playlists)})))}static version(){return{"@videojs/http-streaming":cE,"mux.js":"7.0.2","mpd-parser":"1.3.0","m3u8-parser":"7.1.0","aes-decrypter":"4.0.1"}}version(){return this.constructor.version()}canChangeType(){return Lw.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&Eh.URL.revokeObjectURL&&(Eh.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return nS({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,n=!0,i=2){return iS({programTime:e,playlist:this.playlistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{gE(this.xhr,e)},this.xhr.onResponse=e=>{yE(this.xhr,e)},this.xhr.offRequest=e=>{vE(this.xhr,e)},this.xhr.offResponse=e=>{bE(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}}const SE={name:"videojs-http-streaming",VERSION:cE,canHandleSource(e,t={}){const n=eT(G_.options,t);return SE.canPlayType(e.type,n)},handleSource(e,t,n={}){const i=eT(G_.options,n);return t.vhs=new TE(e,t,i),t.vhs.xhr=GT(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const n=jp(e);if(!n)return"";const i=SE.getOverrideNative(t);return!dE.supportsTypeNatively(n)||i?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,n=!(G_.browser.IS_ANY_SAFARI||G_.browser.IS_IOS),{overrideNative:i=n}=t;return i}};Mp("avc1.4d400d,mp4a.40.2")&&G_.getTech("Html5").registerSourceHandler(SE,0),G_.VhsHandler=TE,G_.VhsSourceHandler=SE,G_.Vhs=dE,G_.use||G_.registerComponent("Vhs",dE),G_.options.vhs=G_.options.vhs||{},(!G_.getPlugin||!G_.getPlugin("reloadSourceOnError"))&&G_.registerPlugin("reloadSourceOnError",(function(e){lE(this,e)}));const wE={key:0,class:"player-section"},EE={class:"player-wrapper"},CE=Si({__name:"Player",props:{mode:{type:String,default:"ondemand"},options:{type:Object,default:()=>({})},source:{type:Object,default:()=>({type:"application/x-mpegURL",url:""})},playerContainerClass:String,playerHeaderClass:String,playerVideoJsClass:String,playerFooterClass:String},emits:["playerReady","playingStateChange"],setup(e,{emit:t}){const n=t,i=e,s=en(null),r=en(null),a=en(!1),o=en(i.source.mode),l=Pa((()=>{const e={controls:!0,autoplay:i.source.autoplay,audioOnlyMode:i.source.audioOnlyMode,playbackRates:[.5,1,1.5,2]};switch(i.source.mode){case"live":e.sources=[{src:i.source.url,type:i.source.type||"application/x-mpegURL"}];break;case"episode":e.sources=[{src:i.source.url,type:i.source.type||"audio/mp3"}];break;default:e.sources=[{src:i.source[0].url,type:"video/mp4"}]}return{...e,...i.options}})),c=async()=>{await Nn(),a.value=!0,r.value&&(r.value.dispose(),r.value=null);const e=document.getElementById("audioPlayer");if(!e)return void console.error("Player container not found in the DOM");e.innerHTML="";const t=document.createElement("video");t.setAttribute("ref","playerElement"),t.setAttribute("controls",""),t.setAttribute("preload","auto"),t.classList.add("video-js"),i.playerVideoJsClass&&i.playerVideoJsClass.split(" ").forEach((e=>{e.trim()&&t.classList.add(e.trim())})),e.appendChild(t),l.value,t?(l.value,r.value=G_(t,l.value,(()=>{a.value=!1,n("playerReady",t),r.value.on("play",(()=>{n("playingStateChange",!0)})),r.value.on("pause",(()=>{n("playingStateChange",!1)}))}))):console.error("Failed to create video element")};return pr((()=>i.source),(async e=>{e&&e.url&&(e.mode!==o.value?(o.value=e.mode,await c()):r.value&&(r.value.src({src:e.url,type:e.type||"application/x-mpegURL"}),r.value.load(),r.value.play()))}),{immediate:!0}),Yi((()=>{c()})),Zi((()=>{r.value&&r.value.dispose()})),(t,n)=>e.source?(Vr(),Gr("div",wE,[us(t.$slots,"header",{},(()=>[Jr("div",{class:ne(["player-header",e.playerHeaderClass])},n[0]||(n[0]=[Jr("h5",null,"Now Playing",-1)]),2)])),Jr("div",EE,[Jr("div",{id:"audioPlayer",class:ne(["player-container",e.playerContainerClass])},[Jr("video",{ref_key:"playerElement",ref:s,class:ne(["video-js",e.playerVideoJsClass]),controls:"",preload:"auto"},null,2)],2),us(t.$slots,"footer",{},(()=>[Jr("div",{class:ne(["player-footer",e.playerFooterClass])},[Jr("span",null,we("live"===e.source.mode?"LIVE":e.source.title),
591)],2)]))])])):sa("",!0)}}),xE={class:"episode-image-wrapper"},kE=["src","alt"],IE={class:"episode-play-button"},AE={class:"material-icons","aria-hidden":"true"},PE={class:"text-primary ms-2"},OE={class:"episode-item-content"},LE={class:"episode-publish-date"},NE={class:"default-footer"},DE=Si({__name:"EpisodeItem",props:{station:{type:Object,required:!0},programme:{type:Object,required:!0},selectedEpisode:{type:Object,required:!0},episodes:{type:Array,required:!0},loading:{type:Boolean,default:!1},defaultImage:{type:String,default:"/images/default.png"},routerSearch:{type:String,required:!0},routerEpisode:{type:String,required:!0},routerProgramme:{type:[String,Object],required:!0},episodeLimit:{type:Number,default:6},titleClass:String,containerClass:String,detailsSectionClass:String,imageClass:String,metadataClass:String,descriptionClass:String,linksClass:String,episodeContainerClass:String,episodeListClass:String,episodeItemClass:String,episodeTitleClass:String,episodeDateClass:String,episodePlayerClass:String,episodeButtonClass:String,episodeDownloadClass:String,episodeCopyClass:String,videoPlayerClass:String},emits:["play-episode","now-playing"],setup(e,{emit:t}){const n=e,{formatDate:i,currentNZDateTime:s}=Qc(),r=t,a=en("https://ondemand.accessmedia.nz"),o=en(null);en(!1);const l=Pa((()=>`https://images.accessmedia.nz/StationFolder/${n.station.Folder}/Images/${n.programme.Image}`.replace(/ /g,"%20"))),c=Pa((()=>n.episodes.filter((e=>e.ID!==n.selectedEpisode.ID)))),d=e=>{e.target.src=n.defaultImage},u=e=>{if(!e.PublishDate)return!1;const t=new Date(e.PublishDate).getTime();return new Date(s.value).getTime()-t<=6048e5},h=Pa((()=>{var e,t,i;if("string"==typeof n.routerProgramme)return{name:n.routerProgramme,params:{slug:null==(e=n.programme)?void 0:e.Slug}};const s={...n.routerProgramme},r=s&&"object"==typeof s&&"params"in s,a=null==(t=n.programme)?void 0:t.Slug;return a&&(r?null!=(i=s.params)&&i.slug||(s.params={...s.params,slug:a}):s.params={slug:a}),s}));return(t,s)=>{const p=as("RouterLink");return Vr(),Gr("div",{class:ne(["episode-item",e.containerClass])},[us(t.$slots,"image",{},(()=>[Jr("div",xE,[Jr("img",{src:l.value||e.defaultImage,alt:e.selectedEpisode.Title,class:ne(["episode-image",e.imageClass]),onError:d},null,42,kE)])])),us(t.$slots,"header",{},(()=>[Jr("h1",{class:ne(["episode-title",e.titleClass])},we(e.selectedEpisode.Title),3)])),Jr("div",{class:ne(["ep-details-section",e.detailsSectionClass])},[us(t.$slots,"metadata",{},(()=>[Jr("p",null,[Jr("span",null," Published: "+we(e.selectedEpisode.PublishDate?rn(i)(e.selectedEpisode.PublishDate,"do MMMM yyyy"):"Not Available"),1),s[4]||(s[4]=Jr("br",null,null,-1)),Jr("span",null,"Host: "+we(e.programme.Host||"Not Available"),1),s[5]||(s[5]=Jr("br",null,null,-1)),Jr("span",null,[s[2]||(s[2]=na(" Categories: ")),Zr(p,{to:{name:e.routerSearch,query:{Category:e.selectedEpisode.Category}}},{default:Gn((()=>[na(we(e.programme.Category||"Not Available"),1)])),_:1},8,["to"])]),s[6]||(s[6]=Jr("br",null,null,-1)),Jr("span",null,[s[3]||(s[3]=na(" Languages: ")),Zr(p,{to:{name:e.routerSearch,query:{Language:e.selectedEpisode.Language}}},{default:Gn((()=>[na(we(e.programme.Language||"Not Available"),1)])),_:1},8,["to"])])])]))],2),us(t.$slots,"description",{},(()=>[Jr("p",{class:ne(["programme-description",e.descriptionClass])},we(e.selectedEpisode.Description||"Description not available"),3)])),Jr("div",IE,[Jr("button",{onClick:s[0]||(s[0]=ul((t=>(e=>{r("play-episode",e),o.value=e.ID})(e.selectedEpisode)),["stop"])),type:"button",class:ne(["btn bg-gradient-primary p-0 epIcons",e.episodeButtonClass]),"aria-label":"Play episode"},[Jr("i",AE,we(o.value===e.selectedEpisode.ID?"chevron_right":"play_arrow"),1)],2),Jr("span",PE,we(o.value===e.selectedEpisode.ID?"Now Playing":""),1)]),Jr("div",{class:ne(["video-player-container",e.videoPlayerClass])},[us(t.$slots,"video-player")],2),us(t.$slots,"episodes",{},(()=>[c.value.length>0?(Vr(),Gr("div",{key:0,class:ne(["episode-list-container",e.episodeContainerClass])},[Jr("div",{id:"vid-player-section",class:ne(["video-player",e.videoPlayerClass])}
59,[Jr("div",{class:ne(["episodes-list-section",e.episodeListClass])},[us(t.$slots,"header",{},(()=>[s[7]||(s[7]=Jr("h4",{class:"default-header"},"More episodes from programme",-1))])),(Vr(!0),Gr(Mr,null,ds(c.value.slice(0,n.episodeLimit),((n,s)=>(Vr(),Gr("div",{key:s,class:ne(["episode-item",e.episodeItemClass])},[us(t.$slots,"episode-item",{episode:n},(()=>[Jr("div",OE,[Zr(p,{to:{name:e.routerEpisode,params:{EID:n.ID}}},{default:Gn((()=>[Jr("h5",{class:ne(["p-0 m-0",e.episodeTitleClass])},we(n.Title),3)])),_:2},1032,["to"]),Jr("p",LE,we(n.PublishDate?rn(i)(n.PublishDate,"do MMMM yyyy"):"Not Available"),1)])]))],2)))),128))],2)],2)],2)):sa("",!0)])),us(t.$slots,"footer",{},(()=>[Jr("div",NE,[Zr(p,{to:h.value,class:"back-to-programme"},{default:Gn((()=>s[8]||(s[8]=[na(" Go to programme ")]))),_:1},8,["to"]),u(e.selectedEpisode)?(Vr(),Gr("button",{key:0,onClick:s[1]||(s[1]=ul((t=>(e=>{const t=`/StationFolder/${n.station.Folder}/`,i=`${a.value}${t}${e.MediaFile}`,s=document.createElement("a");s.href=i,s.download=e.Title||"download",document.body.appendChild(s),s.click(),document.body.removeChild(s)})(e.selectedEpisode)),["stop"])),class:"download-episode","aria-label":"download episode",title:"download episode"}," Download Episode ")):sa("",!0)])]))],2)}}}),ME={class:"category-title"},RE={class:"default-programme"},BE=["src","alt"],UE={class:"category-title"},FE={class:"swiper-container-wrapper",style:{position:"relative"}},jE={class:"programme-slide"},VE={class:"default-programme"},$E=["src","alt"],qE=["onKeydown"],HE=["onKeydown"],zE={class:"all-programme"},GE=["src","alt"],WE={key:0,class:"programme-category"},XE={key:1,class:"programme-language"},KE={class:"programme-description"},YE=Si({__name:"ProgrammeGroups",props:{station:{type:Object,required:!0},allProgrammes:{type:Array},groupBy:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},limit:{type:Number},defaultImage:{type:String,default:"/images/default.png"},displayGroups:{type:[String,Array],default:null},enableSwiper:{type:Boolean,default:()=>!1},customSwiperOptions:{type:Object,default:()=>({})},categoryGroupClass:String,containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,titleClass:String,descClass:String,emptyClass:String,routerName:String,routerClass:String},setup(e){const t=[Su,vu,_u,yu,Tu],n=e,i=e=>{e.target.src=n.defaultImage},s=Pa((()=>{if(!n.displayGroups)return n.groupBy;const e="string"==typeof n.displayGroups?[n.displayGroups.toLowerCase()]:n.displayGroups.map((e=>e.toLowerCase())),t={};return Object.keys(n.groupBy).forEach((i=>{e.includes(i.toLowerCase())&&(t[i]=n.groupBy[i])})),t})),r=Pa((()=>{const e={};return Object.keys(s.value).forEach((t=>{e[t]=s.value[t].slice(0,n.limit)})),e})),a={slidesPerView:1,spaceBetween:0,loop:!0,keyboard:{enabled:!0},navigation:{nextEl:null,prevEl:null},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"},breakpoint:{600:{slidesPerView:2,spaceBetween:15},1200:{slidesPerView:3,spaceBetween:15},1500:{slidesPerView:4,spaceBetween:15},2100:{slidesPerView:5,spaceBetween:15}}},o=Pa((()=>({...a,...n.customSwiperOptions,navigation:{...a.navigation,...n.customSwiperOptions.navigation||{}},a11y:{...a.a11y,...n.customSwiperOptions.a11y||{}},breakpoints:{...a.breakpoint,...n.customSwiperOptions.breakpoints||{}}}))),l=en([]),c=en([]),d=en([]);ur((()=>{l.value.forEach(((e,t)=>{const n=c.value[t],i=d.value[t];e&&n&&i&&(e.params.navigation.nextEl=n,e.params.navigation.prevEl=i,e.navigation&&e.navigation.destroy&&e.navigation.init&&(e.navigation.destroy(),e.navigation.init(),e.navigation.update()))}))}));return(n,s)=>{const a=as("RouterLink");return Vr(),Gr("div",{class:ne(["programme-group",e.containerClass])},[e.enableSwiper?(Vr(),Gr("div",{key:1,class:ne(["category-group",e.categoryGroupClass])},[(Vr(!0),Gr(Mr,null,ds(r.value,((r,u,h)=>(Vr(),Gr("div",{key:u,class:"category-section"},[us(n.$slots,"header",{},(()=>[Jr("h2",UE,we(u),1)])),r&&r.length?(Vr(),Gr("div",{key:0,class:ne(["programmes-list",e.listClass])},[Jr("div",FE,[Zr(rn(mu),la({modules:t,ref_for:!0},o.value,{onSwiper:e=>((e,t)=>{l.value[e]=t})(h,e),style:{width:"100%"}}),{default:Gn((()=>[(Vr(!0),Gr(Mr,null,ds(r,(t=>(Vr(),Wr(rn(gu),{key:t.ID,class:ne(["programme-item",e.itemClass])},{default:Gn((()=>[Jr("div",jE,[us(n.$slots,"programme",{programme:t},(()=>[Jr("div",VE,[Zr(a,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title},{default:Gn((()=>[Jr("img",{src:`https://images.accessmedia.nz/StationFolder/${e.station.Folder}/Images/${t.Image}`,alt:t.Title,class:ne(["programme-image",e.imageClass]),onError:i},null,42,$E)])),_:2},1032,["to","title"]),Zr(a,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("h5",{class:ne(["programme-title",e.titleClass])},we(t.Title),3),Jr("span",{class:ne(["programme-desc",e.descClass])}
59,we(t.Short_Description),3)])),_:2},1032,["to","title","class"])])]))])])),_:2},1032,["class"])))),128))])),_:2},1040,["onSwiper"]),Jr("button",{class:"swiper-button-next",ref_for:!0,ref:e=>c.value[h]=e||null,onKeydown:e=>((e,t)=>{var n;"Enter"===t.key&&(null==(n=c.value[e])||n.click())})(h,e)},s[1]||(s[1]=[Jr("span",{class:"sr-only"},"Next",-1)]),40,qE),Jr("button",{class:"swiper-button-prev",ref_for:!0,ref:e=>d.value[h]=e||null,onKeydown:e=>((e,t)=>{var n;"Enter"===t.key&&(null==(n=d.value[e])||n.click())})(h,e)},s[2]||(s[2]=[Jr("span",{class:"sr-only"},"Prev",-1)]),40,HE)])],2)):(Vr(),Gr("div",{key:1,class:ne(["no-episodes",e.emptyClass])},[us(n.$slots,"empty",{},(()=>[s[3]||(s[3]=Jr("p",null,"No episodes available.",-1))]))],2))])))),128))],2)):(Vr(),Gr(Mr,{key:0},[e.groupBy?(Vr(),Gr("div",{key:0,class:ne(["category-group",e.categoryGroupClass])},[(Vr(!0),Gr(Mr,null,ds(r.value,((t,r)=>(Vr(),Gr("div",{key:r,class:"category-section"},[us(n.$slots,"header",{},(()=>[Jr("h2",ME,we(r),1)])),t&&t.length?(Vr(),Gr("div",{key:0,class:ne(["programmes-list",e.listClass])},[(Vr(!0),Gr(Mr,null,ds(t,(t=>(Vr(),Gr("div",{key:t.ID,class:ne(["programme-item",e.itemClass])},[us(n.$slots,"programme",{programme:t},(()=>[Jr("div",RE,[Zr(a,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title},{default:Gn((()=>[Jr("img",{src:`https://images.accessmedia.nz/StationFolder/${e.station.Folder}/Images/${t.Image}`,alt:t.Title,class:ne(["programme-image",e.imageClass]),onError:i},null,42,BE)])),_:2},1032,["to","title"]),Zr(a,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("h5",{class:ne(["programme-title",e.titleClass])},we(t.Title),3),Jr("span",{class:ne(["programme-desc",e.descClass])},we(t.Short_Description),3)])),_:2},1032,["to","title","class"])])]))],2)))),128))],2)):(Vr(),Gr("div",{key:1,class:ne(["no-episodes",e.emptyClass])},[us(n.$slots,"empty",{},(()=>[s[0]||(s[0]=Jr("p",null,"No episodes available.",-1))]))],2))])))),128))],2)):sa("",!0)],64)),e.allProgrammes?(Vr(),Gr("div",{key:2,class:ne(["category-group",e.categoryGroupClass])},[e.allProgrammes&&e.allProgrammes.length?(Vr(),Gr("div",{key:0,class:ne(["programmes-list",e.listClass])},[(Vr(!0),Gr(Mr,null,ds(e.allProgrammes,(t=>(Vr(),Gr("div",{key:t.ID,class:ne(["programme-item",e.itemClass])},[us(n.$slots,"programme",{programme:t},(()=>[Jr("div",zE,[Zr(a,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title},{default:Gn((()=>[Jr("img",{src:`https://images.accessmedia.nz/StationFolder/${e.station.Folder}/Images/${t.Image}`,alt:t.Title,class:ne(["programme-image",e.imageClass]),onError:i},null,42,GE)])),_:2},1032,["to","title"]),Zr(a,{to:{name:e.routerName,params:{slug:t.Slug}},title:t.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("span",{class:ne(["programme-title",e.titleClass])},we(t.Title),3),t.Category?(Vr(),Gr("span",WE,"Category: "+we(t.Category),1)):sa("",!0),t.Language?(Vr(),Gr("span",XE,"Language: "+we(t.Language),1)):sa("",!0),Jr("span",KE,we(t.Short_Description),1)])),_:2},1032,["to","title","class"])]),s[4]||(s[4]=Jr("hr",null,null,-1))]))],2)))),128))],2)):(Vr(),Gr("div",{key:1,class:ne(["no-episodes",e.emptyClass])},[us(n.$slots,"empty",{},(()=>[s[5]||(s[5]=Jr("p",null,"No episodes available.",-1))]))],2))],2)):sa("",!0)],2)}}}),QE={class:"default-programme"},JE={class:"text-xs text-uppercase"},ZE={class:"programme-image"},eC=["src","alt"],tC=Si({__name:"RecommendedProgrammes",props:{station:{type:Object,required:!0},programmes:{type:Array,required:!0},type:{type:String,required:!0},loading:{type:Boolean,default:!1},defaultImage:{type:String,default:"/images/default.png"},limit:{type:Number,default:10},containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,titleClass:String,dateClass:String,descClass:String,routerName:String,routerClass:String,routerSearch:String},setup(e){const t=e,n=e=>{e.target.src=t.defaultImage};return(i,s)=>{const r=as("RouterLink");return Vr(),Gr("div",{class:ne(["recommended-programmes",e.containerClass])},[e.programmes&&e.programmes.length?(Vr(),Gr("div",{key:0,class:ne(["programmes-list",e.listClass])},[(Vr(!0),Gr(Mr,null,ds(e.programmes.slice(0,e.limit),(s=>(Vr(),Gr("div",{key:s.ID,class:ne(["programme-item",e.itemClass])},[us(i.$slots,"programme",{programme:s},(()=>[Jr("div",QE,[Zr(r,{to:{name:e.routerSearch,query:"Language"===e.type?{Lang:s.Language}:{Category:s.Category}},class:"d-block"},{default:Gn((()=>[Jr("span",JE,"More in this "+we(e.type),1)])),_:2},1032,["to"]),Zr(r,{to:{name:e.routerName,params:{slug:s.Slug}},title:s.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("p",ZE,[Jr("img",{src:`https://images.accessmedia.nz/StationFolder/${t.station.Folder}/Images/${s.Image}`,alt:s.Title,class:"img-raised rounded",onError:n},null,40,eC)])])),_:2},1032,["to","title","class"]),Zr(r,{to:{name:e.routerName,params:{slug:s.Slug}},title:s.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("h5",{class:ne(["programme-title",e.titleClass])},we(s.Title),3),Jr("span",{class:ne(["programme-desc",e.descClass])}
59,we(s.Short_Description),3)])),_:2},1032,["to","title","class"])])]),!0)],2)))),128))],2)):sa("",!0)],2)}}}),nC=Nu(tC,[["__scopeId","data-v-31019595"]]),iC={class:"search-control-container"},sC={class:"search-wrapper"},rC={key:0},aC={class:"filter-item"},oC=["value"],lC={class:"filter-item"},cC=["value"],dC={key:0,class:"search-validation-text"},uC=Si({__name:"SearchControl",props:{selectedLanguage:{},selectedCategory:{},searchQuery:{},categories:{},languages:{},route:{},router:{},searchClass:{},buttonClass:{},filterClass:{},toggleButtonClass:{},filterToggle:{type:Boolean},navigateOnSearch:{type:Boolean},requireMinChars:{type:Boolean}},emits:["search"],setup(e,{emit:t}){const n=e,i=t,s=en(n.searchQuery??""),r=en(n.selectedCategory??"All"),a=en(n.selectedLanguage??"All"),o=en(!1),l=en(""),c=Pa((()=>!n.filterToggle||o.value)),d=Pa((()=>[{Name:"All",Value:"All"},...n.categories.filter((e=>"All"!==e.Value))])),u=Pa((()=>[{Value:"All"},...n.languages.filter((e=>"All"!==e.Value))])),h=()=>{o.value=!o.value};Yi((()=>{n.route.query.Search&&(s.value=n.route.query.Search),n.route.query.Lang&&(a.value=n.route.query.Lang),n.route.query.Category&&(r.value=n.route.query.Category)}));const p=()=>{var e;const t=(null==(e=s.value)?void 0:e.trim())??"",o="All"!==r.value||"All"!==a.value;if(n.requireMinChars&&t.length>0&&t.length<3)l.value="Please enter at least 3 characters to search.";else if(!n.requireMinChars||0!==t.length||o){if(l.value="",i("search",{query:s.value.trim(),category:r.value,language:a.value}),!1!==n.navigateOnSearch){const e={};"All"!==a.value&&(e.Lang=a.value),"All"!==r.value&&(e.Category=r.value),s.value&&(e.Search=s.value.trim()),n.router.push({path:"/search",query:e})}}else l.value="Please enter at least 3 characters to search."};return(e,t)=>(Vr(),Gr("div",iC,[Jr("div",sC,[Wn(Jr("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=e=>s.value=e),placeholder:"Search for programmes and podcasts",class:ne(["search-textfield",e.searchClass]),onKeydown:pl(p,["enter"])},null,34),[[Jo,s.value]]),e.filterToggle?(Vr(),Gr("div",rC,[Jr("button",{onClick:h,class:ne(["toggle-filter",e.toggleButtonClass])},t[3]||(t[3]=[Jr("i",{class:"mdi mdi-filter"},null,-1),na(" Filter Search ")]),2)])):sa("",!0),c.value?(Vr(),Gr("div",{key:1,class:ne(["filter-section",e.filterClass])},[Jr("div",aC,[t[4]||(t[4]=Jr("label",{for:"category-select"},"Category",-1)),Wn(Jr("select",{id:"category-select","onUpdate:modelValue":t[1]||(t[1]=e=>r.value=e),class:"filter-select"},[(Vr(!0),Gr(Mr,null,ds(d.value,(e=>(Vr(),Gr("option",{key:e.Value,value:e.Value},we(e.Name||e.Value),9,oC)))),128))],512),[[nl,r.value]])]),Jr("div",lC,[t[5]||(t[5]=Jr("label",{for:"language-select"},"Language",-1)),Wn(Jr("select",{id:"language-select","onUpdate:modelValue":t[2]||(t[2]=e=>a.value=e),class:"filter-select"},[(Vr(!0),Gr(Mr,null,ds(u.value,(e=>(Vr(),Gr("option",{key:e.Value,value:e.Value},we(e.Value),9,cC)))),128))],512),[[nl,a.value]])])],2)):sa("",!0),Jr("button",{onClick:p,class:ne(["search-button",e.buttonClass])},t[6]||(t[6]=[Jr("i",{class:"mdi mdi-magnify"},null,-1)]),2)]),l.value?(Vr(),Gr("p",dC,we(l.value),1)):sa("",!0)]))}}),hC=Nu(uC,[["__scopeId","data-v-756654f4"]]),pC={class:"station-schedule"},fC={class:"week-navigation"},mC={class:"day-tabs"},gC=["onClick"],yC={key:0},vC=["src","alt"],bC=["src","alt"],_C=Si({__name:"StationSchedule",props:{station:{type:Object,required:!0},schedule:{type:Array,required:!0},initialDate:{type:String,required:!1},defaultImage:{type:String,default:"/images/default.png"},routerName:{type:String,required:!0},showImage:{type:Boolean,default:!0},schedNavClass:String,tabsClass:String,programmeListClass:String,programmeItemClass:String,programmeDetailsClass:String,titleClass:String,timeClass:String,timeWrapperClass:String,hostClass:String,descClass:String,categoryClass:String,languageClass:String,imageClass:String,tagsClass:String},emits:["date-selected"],setup(e,{emit:t}){const{formatDate:n}=Qc(),i=e,s=t,r=en(i.initialDate?new Date(i.initialDate):new Date),a=()=>{r.value=function(e){return dc(e,-1)}(r.value),s("date-selected",n(r.value,"yyyy-MM-dd"))},o=()=>{r.value=dc(r.value,1),s("date-selected",n(r.value,"yyyy-MM-dd"))},l=e=>{e.target.src=i.defaultImage},c=Pa((()=>i.schedule||[])),d=Pa((()=>{const e=sc(r.value,{weekStartsOn:1}
59);return Array.from({length:7},((t,n)=>{const i=tc(e,n);return{name:Kc(i,"EEE d"),value:Kc(i,"yyyy-MM-dd")}}))}));return Yi((()=>{s("date-selected",n(r.value,"yyyy-MM-dd"))})),(t,u)=>{const h=as("RouterLink");return Vr(),Gr("div",pC,[Jr("div",fC,[Jr("button",{onClick:a},"◀ Previous"),Jr("div",mC,[(Vr(!0),Gr(Mr,null,ds(d.value,(e=>(Vr(),Gr("button",{key:e.name,class:ne({active:e.value===rn(n)(r.value,"yyyy-MM-dd")}),onClick:t=>(e=>{r.value=new Date(e.value),s("date-selected",e.value)})(e)},we(e.name),11,gC)))),128))]),Jr("button",{onClick:o},"Next ▶")]),c.value&&0!=c.value.length?(Vr(),Gr("div",yC,[Jr("ul",{class:ne(["programme-list",e.programmeListClass])},[(Vr(!0),Gr(Mr,null,ds(c.value,((s,r)=>(Vr(),Gr("li",{key:`${s.ScheduleID}-${r}`},[us(t.$slots,"programme-item",{programme:s},(()=>[Jr("div",{class:ne(["programme-time-wrapper",e.timeWrapperClass])},[Jr("p",{class:ne(["programme-time",e.timeClass])},we(rn(n)(s.Start,"h:mm a").toUpperCase()),3)],2),1==s.IsProgramme?(Vr(),Gr("div",{key:0,class:ne(["programme-item",e.programmeItemClass])},[Zr(h,{to:{name:e.routerName,params:{slug:s.Slug}},title:s.Title},{default:Gn((()=>[e.showImage?(Vr(),Gr("img",{key:0,class:ne([["programme-image",e.imageClass],"img-raised rounded"]),src:`https://images.accessmedia.nz/StationFolder/${i.station.Folder}/Images/${s.Image}`,alt:s.Title,onError:l},null,42,vC)):sa("",!0)])),_:2},1032,["to","title"]),Jr("div",{class:ne(["programme-details",e.programmeDetailsClass])},[Zr(h,{to:{name:e.routerName,params:{slug:s.Slug}},title:s.Title},{default:Gn((()=>[s.Title?(Vr(),Gr("h5",{key:0,class:ne(["programme-title",e.titleClass])},we(s.Title),3)):sa("",!0),s.Host?(Vr(),Gr("h6",{key:1,class:ne(["programme-host",e.hostClass])},"Host: "+we(s.Host),3)):sa("",!0),Jr("div",{class:ne(["programme-tags",e.tagsClass])},[s.Category?(Vr(),Gr("span",{key:0,class:ne(["programme-category",e.categoryClass])}," Category: "+we(s.Category),3)):sa("",!0),s.Language?(Vr(),Gr("span",{key:1,class:ne(["programme-language",e.languageClass])}," Language: "+we(s.Language),3)):sa("",!0)],2),s.ShortDescription?(Vr(),Gr("span",{key:2,class:ne(["programme-desc",e.descClass])},we(s.ShortDescription),3)):sa("",!0)])),_:2},1032,["to","title"])],2)],2)):(Vr(),Gr("div",{key:1,class:ne(["programme-item",e.programmeItemClass])},[e.showImage?(Vr(),Gr("img",{key:0,class:ne([["programme-image",e.imageClass],"img-raised rounded"]),src:`https://images.accessmedia.nz/StationFolder/${i.station.Folder}/Images/${s.Image}`,alt:s.Title,onError:l},null,42,bC)):sa("",!0),Jr("div",{class:ne(["programme-details",e.programmeDetailsClass])},[s.Title?(Vr(),Gr("h5",{key:0,class:ne(["programme-title",e.titleClass])},we(s.Title),3)):sa("",!0),s.Host?(Vr(),Gr("h6",{key:1,class:ne(["programme-host",e.hostClass])},"Host: "+we(s.Host),3)):sa("",!0),s.ShortDescription?(Vr(),Gr("p",{key:2,class:ne(["programme-desc",e.descClass])},we(s.ShortDescription),3)):sa("",!0)],2)],2))]),!0)])))),128))],2)])):sa("",!0)])}}}),TC=Nu(_C,[["__scopeId","data-v-a3ad2b98"]]),SC=Si({__name:"NowPlaying",props:{nowPlaying:{type:Object,required:!0},nowPlayingClass:String,titleClass:String},setup:e=>(t,n)=>e.nowPlaying?(Vr(),Gr("div",{key:0,class:ne(["now-playing-programme",e.nowPlayingClass])},[us(t.$slots,"now-playing",{nowPlaying:e.nowPlaying},(()=>[Jr("span",{class:ne(["now-playing-title",e.titleClass])},[n[0]||(n[0]=Jr("b",null,"Played:",-1)),na(" "+we(e.nowPlaying.lastTitle)+" - "+we(e.nowPlaying.lastArtist),1)],2),Jr("span",{class:ne(["now-playing-title",e.titleClass])},[n[1]||(n[1]=Jr("b",null,"Now:",-1)),na(" "+we(e.nowPlaying.currentTitle)+" - "+we(e.nowPlaying.currentArtist),1)],2),Jr("span",{class:ne(["now-playing-title",e.titleClass])},[n[2]||(n[2]=Jr("b",null,"Next:",-1)),na(" "+we(e.nowPlaying.nextTitle)+" - "+we(e.nowPlaying.nextArtist),1)],2)]))],2)):sa("",!0)}),wC={install(e,t={}){Number(e.version.split(".")[0])<3?console.warn("This plugin requires Vue 3"):(e.provide("station",t),e.component("LatestEpisodes",Du),e.component("FeaturedProgrammes",qu),e.component("ProgrammeItem",yh),e.component("Player",CE),e.component("EpisodeItem",DE),e.component("ProgrammeGroups",YE),e.component("RecommendedProgrammes",nC),e.component("SearchControl",hC),e.component("StationSchedule",TC),e.component("NowPlaying",SC))}},EC={class:"fc-article"},CC=["src"],xC={key:0},kC=["innerHTML"],IC={key:1},AC={key:2,class:"article-author"},PC={key:3,class:"article-time"},OC=Si({__name:"Article",props:{article:{type:Object,required:!0},showTitle:{type:Boolean,default:!0},showAuthor:{type:Boolean,default:!0},showTime:{type:Boolean,default:!0},showFeaturedImg:{type:Boolean,default:!0},articleItemClass:String,featuredImgClass:String,articleBodyClass:String},setup(e){const t=e,n=Pa((()=>{const e=new Date(t.article.createdOn);return e.toLocaleDateString()+" "+e.toLocaleTimeString()}));return(t,i)=>(Vr(),Gr("div",EC,[Jr("div",{class:ne(["fc-article-item",e.articleItemClass])},[e.showFeaturedImg?(Vr(),Gr("div",{key:0,class:ne(["fc-article-featuredimg",e.featuredImgClass])},[us(t.$slots,"featured-image",{article:e.article,formattedDate:n.value},(()=>[Jr("div",null,[e.article.featuredImage?(Vr(),Gr("img",{key:0,src:e.article.featuredImage,alt:"Featured Image"},null,8,CC)):sa("",!0)])]),!0)],2)):sa("",!0),Jr("div",{class:ne(["fc-article-body",e.articleBodyClass])},[us(t.$slots,"body",{article:e.article,formattedDate:n.value},(()=>
59[e.showTitle?(Vr(),Gr("h1",xC,we(e.article.title),1)):sa("",!0),Jr("div",{class:"article-text",innerHTML:e.article.text},null,8,kC),e.article.excerpt?(Vr(),Gr("p",IC,we(e.article.excerpt),1)):sa("",!0),e.showAuthor?(Vr(),Gr("p",AC,"By: "+we(e.article.createdBy),1)):sa("",!0),e.showTime?(Vr(),Gr("p",PC,"Published on: "+we(n.value),1)):sa("",!0)]),!0)],2),us(t.$slots,"default",{},void 0,!0)],2)]))}}),LC=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},NC=LC(OC,[["__scopeId","data-v-708c2966"]]),DC={class:"default-article-list"},MC={class:"programme-image"},RC=["src","alt"],BC=Si({__name:"ArticleList",props:{station:{type:Object,required:!0},articles:{type:Object,required:!0},type:{type:String},defaultImage:{type:String,default:"/images/default.png"},containerClass:String,loaderClass:String,listClass:String,itemClass:String,imageClass:String,titleClass:String,dateClass:String,descClass:String,emptyClass:String,routerName:String,routerClass:String,routerSearch:String,loaderRows:Number,loaderLayout:String},setup(e){const t=e;function n(e){e.target.src=t.defaultImage}return(i,s)=>{const r=as("RouterLink");return Vr(),Gr("div",{class:ne(["article-list-container",e.containerClass])},[Jr("div",{class:ne(["article-list",e.listClass])},[(Vr(!0),Gr(Mr,null,ds(e.articles,(s=>(Vr(),Gr("div",{key:s.ID,class:ne(["article-list-item",e.itemClass])},[us(i.$slots,"article-list",{article:s},(()=>[Jr("div",DC,[Zr(r,{to:{name:e.routerName,params:{slug:s.Slug}},title:s.Title,class:ne(e.routerClass)},{default:Gn((()=>[Jr("p",MC,[Jr("img",{src:`https://images.accessmedia.nz/StationFolder/${t.station.Folder}/Images/${s.Image}`,alt:s.Title,class:"img-raised rounded",onError:n},null,40,RC)]),Jr("h5",{class:ne(["programme-title",e.titleClass])},we(s.Title),3),Jr("span",{class:ne(["programme-desc",e.descClass])},we(s.Short_Description),3)])),_:2},1032,["to","title","class"])])]),!0)],2)))),128))],2)],2)}}}),UC=LC(BC,[["__scopeId","data-v-d5498258"]]),FC={class:"form-group"},jC={key:0,class:"error"},VC={class:"form-group"},$C={key:0,class:"error"},qC={class:"form-group"},HC={key:0,class:"error"},zC={class:"form-group"},GC={key:0,class:"error"},WC=["disabled"],XC={class:"messages"},KC={key:0},YC={key:1},QC=Si({__name:"Form",emits:["submit"],setup(e,{emit:t}){const n=en({name:"",email:"",phone:"",message:""}),i=en({}),s=en(!1),r=en(!1),a=en(!1),o=t,l=()=>{i.value={},n.value.name.trim()||(i.value.name="Name is required."),n.value.email.trim()?/\S+@\S+\.\S+/.test(n.value.email)||(i.value.email="Invalid email format."):i.value.email="Email is required.",n.value.phone.trim()?/^\d{10,15}$/.test(n.value.phone)||(i.value.phone="Phone number must be 10-15 digits."):i.value.phone="Phone number is required.",n.value.message.trim()||(i.value.message="Message is required."),0===Object.keys(i.value).length&&(s.value=!0,setTimeout((()=>{s.value=!1,r.value=!0,o("submit",{...n.value}),c()}),2e3))},c=()=>{n.value={name:"",email:"",phone:"",message:""},i.value={},r.value=!1,a.value=!1};return(e,t)=>(Vr(),Gr(Mr,null,[r.value?sa("",!0):(Vr(),Gr("form",{key:0,onSubmit:ul(l,["prevent"]),class:"contact-form"},[Jr("div",FC,[t[4]||(t[4]=Jr("label",{for:"name"},"Name",-1)),Wn(Jr("input",{id:"name","onUpdate:modelValue":t[0]||(t[0]=e=>n.value.name=e),type:"text",required:""},null,512),[[Jo,n.value.name]]),i.value.name?(Vr(),Gr("span",jC,we(i.value.name),1)):sa("",!0)]),Jr("div",VC,[t[5]||(t[5]=Jr("label",{for:"email"},"Email",-1)),Wn(Jr("input",{id:"email","onUpdate:modelValue":t[1]||(t[1]=e=>n.value.email=e),type:"email",required:""},null,512),[[Jo,n.value.email]]),i.value.email?(Vr(),Gr("span",$C,we(i.value.email),1)):sa("",!0)]),Jr("div",qC,[t[6]||(t[6]=Jr("label",{for:"phone"},"Phone Number",-1)),Wn(Jr("input",{id:"phone","onUpdate:modelValue":t[2]||(t[2]=e=>n.value.phone=e),type:"tel",required:""},null,512),[[Jo,n.value.phone]]),i.value.phone?(Vr(),Gr("span",HC,we(i.value.phone),1)):sa("",!0)]),Jr("div",zC,[t[7]||(t[7]=Jr("label",{for:"message"},"Message",-1)),Wn(Jr("textarea",{id:"message","onUpdate:modelValue":t[3]||(t[3]=e=>n.value.message=e),required:""},null,512),[[Jo,n.value.message]]),i.value.message?(Vr(),Gr("span",GC,we(i.value.message),1)):sa("",!0)]),Jr("button",{type:"submit",class:"submit-btn",disabled:s.value},we(s.value?"Sending...":"Send Message"),9,WC)],32)),Jr("div",XC,[r.value?(Vr(),Gr("div",KC,[t[8]||(t[8]=Jr("h4",null,"Your message has been sent, we will be in touch soon.",-1)),Jr("button",{type:"button",class:"mt-4",onClick:c},"Reset Form")])):sa("",!0),a.value?(Vr(),Gr("div",YC,t[9]||(t[9]=[Jr("h4",null,"There was an issue sending your message. Please try again later.",-1)]))):sa("",!0)])],64))}}),JC=LC(QC,[["__scopeId","data-v-b6dda880"]]);function ZC(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function ex(e,t){void 0===e&&(e={}),void 0===t&&(t={});const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>
vendor: 6,096 bytes, line 59
59n.indexOf(e)<0)).forEach((n=>{typeof e[n]>"u"?e[n]=t[n]:ZC(t[n])&&ZC(e[n])&&Object.keys(t[n]).length>0&&ex(e[n],t[n])}))}const tx={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function nx(){const e=typeof document<"u"?document:{};return ex(e,tx),e}const ix={document:tx,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>typeof setTimeout>"u"?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function sx(){const e=typeof window<"u"?window:{};return ex(e,ix),e}function rx(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function ax(){return Date.now()}function ox(e,t){void 0===t&&(t="x");const n=sx();let i,s,r;const a=function(e){const t=sx();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((e=>e.replace(",","."))).join(", ")),r=new n.WebKitCSSMatrix("none"===s?"":s)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(s=n.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=n.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0}function lx(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function cx(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function dx(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i&&!cx(i)){const n=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,s=n.length;t<s;t+=1){const s=n[t],r=Object.getOwnPropertyDescriptor(i,s);void 0!==r&&r.enumerable&&(lx(e[s])&&lx(i[s])?i[s].__swiper__?e[s]=i[s]:dx(e[s],i[s]):!lx(e[s])&&lx(i[s])?(e[s]={},i[s].__swiper__?e[s]=i[s]:dx(e[s],i[s])):e[s]=i[s])}}}return e}function ux(e,t,n){e.style.setProperty(t,n)}function hx(e){let{swiper:t,targetPosition:n,side:i}=e;const s=sx(),r=-t.translate;let a,o=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",s.cancelAnimationFrame(t.cssModeFrameID);const c=n>r?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{a=(new Date).getTime(),null===o&&(o=a);const e=Math.max(Math.min((a-o)/l,1),0),c=.5-Math.cos(e*Math.PI)/2;let h=r+c*(n-r);if(d(h,n)&&(h=n),t.wrapperEl.scrollTo({[i]:h}),d(h,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:h})})),void s.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=s.requestAnimationFrame(u)};u()}function px(e,t){void 0===t&&(t="");const n=sx(),i=[...e.children];return n.HTMLSlotElement&&e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter((e=>e.matches(t))):i}function fx(e){try{return void console.warn(e)}catch{}}function mx(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:function(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}(t)),n}function gx(e,t){return sx().getComputedStyle(e,null).getPropertyValue(t)}function yx(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function vx(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function bx(e,t,n){const i=sx();return e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom"))}function _x(e){return(Array.isArray(e)?e:[e]).filter((e=>!!e))}let Tx,Sx,wx;function Ex(){return Tx||(Tx=function(){const e=sx(),t=nx();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),Tx}function Cx(e){return void 0===e&&(e={}),Sx||(Sx=function(e){let{userAgent:t}=void 0===e?{}:e;const n=Ex(),i=sx(),s=i.navigator.platform,r=t||i.navigator.userAgent,a={ios:!1,android:!1},o=i.screen.width,l=i.screen.height,c=r.match(/(Android);?[\s\/]+([\d.]+)?/);let d=r.match(/(iPad).*OS\s([\d_]+)/);const u=r.match(/(iPod)(.*OS\s([\d_]+))?/),h=!d&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===s;let f="MacIntel"===s;return!d&&f&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(d=r.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),f=!1),c&&!p&&(a.os="android",a.android=!0),(d||h||u)&&(a.os="ios",a.ios=!0),a}(e)),Sx}function xx(){return wx||(wx=function(){const e=sx(),t=Cx();let n=!1;function i(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(i()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,i]=t.split("Version/")[1].split(" ")[0].split(".").map((e=>Number(e)));
59n=e<16||16===e&&i<2}}const s=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=i();return{isSafari:n||r,needPerspectiveFix:n,need3dFix:r||s&&t.ios,isWebView:s}}()),wx}var kx={on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof t)return i;const s=n?"unshift":"push";return e.split(" ").forEach((e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][s](t)})),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed||"function"!=typeof t)return i;function s(){i.off(e,s),s.__emitterProxy&&delete s.__emitterProxy;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];t.apply(i,r)}return s.__emitterProxy=t,i.on(e,s,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||"function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach((e=>{typeof t>"u"?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach(((i,s)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(s,1)}))})),n},emit(){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsListeners)return e;let t,n,i;for(var s=arguments.length,r=new Array(s),a=0;a<s;a++)r[a]=arguments[a];return"string"==typeof r[0]||Array.isArray(r[0])?(t=r[0],n=r.slice(1,r.length),i=e):(t=r[0].events,n=r[0].data,i=r[0].context||e),n.unshift(i),(Array.isArray(t)?t:t.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(i,[t,...n])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((e=>{e.apply(i,n)}))})),e}};const Ix=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const Ax=(e,t,n)=>{t&&!e.classList.contains(n)?e.classList.add(n):!t&&e.classList.contains(n)&&e.classList.remove(n)};const Px=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(n){let t=n.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame((()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`),t&&t.remove())}))),t&&t.remove()}},Ox=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Lx=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),s=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=s,r=[n-t];return r.push(...Array.from({length:t}).map(((e,t)=>n+i+t))),void e.slides.forEach(((t,n)=>{r.includes(t.column)&&Ox(e,n)}))}const r=s+i-1;if(e.params.rewind||e.params.loop)for(let a=s-t;a<=r+t;a+=1){const t=(a%n+n)%n;(t<s||t>r)&&Ox(e,t)}else for(let a=Math.max(s-t,0);a<=Math.min(r+t,n-1);a+=1)a!==s&&(a>r||a<s)&&Ox(e,a)};var Nx={updateSize:function(){const e=this;let t,n;const i=e.el;t=typeof e.params.width<"u"&&null!==e.params.width?e.params.width:i.clientWidth,n=typeof e.params.height<"u"&&null!==e.params.height?e.params.height:i.clientHeight,!(0===t&&e.isHorizontal()||0===n&&e.isVertical())&&(t=t-parseInt(gx(i,"padding-left")||0,10)-parseInt(gx(i,"padding-right")||0,10),n=n-parseInt(gx(i,"padding-top")||0,10)-parseInt(gx(i,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:s,size:r,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&n.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=px(s,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let h=[];const p=[],f=[];let m=n.slidesOffsetBefore;"function"==typeof m&&(m=n.slidesOffsetBefore.call(e));let g=n.slidesOffsetAfter;"function"==typeof g&&(g=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,v=e.slidesGrid.length;let b=n.spaceBetween,_=-m,T=0,S=0;if(typeof r>"u")return;"string"==typeof b&&b.indexOf("%")>=0?b=parseFloat(b.replace("%",""))/100*r:"string"==typeof b&&(b=parseFloat(b)),e.virtualSize=-b,d.forEach((e=>{a?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""})),n.centeredSlides&&n.cssMode&&(ux(i,"--swiper-centered-offset-before",""),ux(i,"--swiper-centered-offset-after",""));const w=n.grid&&n.grid.rows>1&&e.grid;let E;w?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter((e=>typeof n.breakpoints[e].slidesPerView<"u")).length>0;for(let x=0;x<u;x+=1){let i;if(E=0,d[x]&&(i=d[x]),w&&e.grid.updateSlide(x,i,d),!d[x]||"none"!==gx(i,"dis
59play")){if("auto"===n.slidesPerView){C&&(d[x].style[e.getDirectionLabel("width")]="");const s=getComputedStyle(i),r=i.style.transform,a=i.style.webkitTransform;if(r&&(i.style.transform="none"),a&&(i.style.webkitTransform="none"),n.roundLengths)E=e.isHorizontal()?bx(i,"width"):bx(i,"height");else{const e=t(s,"width"),n=t(s,"padding-left"),r=t(s,"padding-right"),a=t(s,"margin-left"),o=t(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)E=e+a+o;else{const{clientWidth:t,offsetWidth:s}=i;E=e+n+r+a+o+(s-t)}}r&&(i.style.transform=r),a&&(i.style.webkitTransform=a),n.roundLengths&&(E=Math.floor(E))}else E=(r-(n.slidesPerView-1)*b)/n.slidesPerView,n.roundLengths&&(E=Math.floor(E)),d[x]&&(d[x].style[e.getDirectionLabel("width")]=`${E}px`);d[x]&&(d[x].swiperSlideSize=E),f.push(E),n.centeredSlides?(_=_+E/2+T/2+b,0===T&&0!==x&&(_=_-r/2-b),0===x&&(_=_-r/2-b),Math.abs(_)<.001&&(_=0),n.roundLengths&&(_=Math.floor(_)),S%n.slidesPerGroup==0&&h.push(_),p.push(_)):(n.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&h.push(_),p.push(_),_=_+E+b),e.virtualSize+=E+b,T=E,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,r)+g,a&&o&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=`${e.virtualSize+b}px`),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=`${e.virtualSize+b}px`),w&&e.grid.updateWrapperSize(E,h),!n.centeredSlides){const t=[];for(let i=0;i<h.length;i+=1){let s=h[i];n.roundLengths&&(s=Math.floor(s)),h[i]<=e.virtualSize-r&&t.push(s)}h=t,Math.floor(e.virtualSize-r)-Math.floor(h[h.length-1])>1&&h.push(e.virtualSize-r)}if(l&&n.loop){const t=f[0]+b;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),s=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)h.push(h[h.length-1]+s)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&h.push(h[h.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(0===h.length&&(h=[0]),0!==b){const t=e.isHorizontal()&&a?"marginLeft":e.getDirectionLabel("marginRight");d.filter(((e,t)=>!(n.cssMode&&!n.loop)||t!==d.length-1)).forEach((e=>{e.style[t]=`${b}px`}))}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;f.forEach((t=>{e+=t+(b||0)})),e-=b;const t=e>r?e-r:0;h=h.map((e=>e<=0?-m:e>t?t+g:e))}if(n.centerInsufficientSlides){let e=0;f.forEach((t=>{e+=t+(b||0)})),e-=b;const t=(n.slidesOffsetBefore||0)+(n.slidesOffsetAfter||0);if(e+t<r){const n=(r-e-t)/2;h.forEach(((e,t)=>{h[t]=e-n})),p.forEach(((e,t)=>{p[t]=e+n}))}}if(Object.assign(e,{slides:d,snapGrid:h,slidesGrid:p,slidesSizesGrid:f}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){ux(i,"--swiper-centered-offset-before",-h[0]+"px"),ux(i,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map((e=>e+t)),e.slidesGrid=e.slidesGrid.map((e=>e+n))}if(u!==c&&e.emit("slidesLengthChange"),h.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==v&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=`${n.containerModifierClass}backface-hidden`,i=e.el.classList.contains(t);u<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let s,r=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach((e=>{n.push(e)}));else for(s=0;s<Math.ceil(t.params.slidesPerView);s+=1){const e=t.activeIndex+s;if(e>t.slides.length&&!i)break;n.push(a(e))}else n.push(a(t.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const e=n[s].offsetHeight;r=e>r?e:r}(r||0===r)&&(t.wrapperEl.style.height=`${r}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:s,snapGrid:r}=t;if(0===i.length)return;typeof i[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let a=-e;s&&(a=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=n.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let l=0;l<i.length;l+=1){const e=i[l];let c=e.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const d=(a+(n.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+o),u=(a-r[0]+(n.centeredSlides?t.minTranslate():0)-c)/(e.swiperSlideSize+o),h=-(a-c),p=h+t.slidesSizesGrid[l],f=h>=0&&h<=t.size-t.slidesSizesGrid[l],m=h>=0&&h<t.size-1||p>1&&p<=t.size||h<=0&&p>=t.size;m&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(l)),Ix(e,m,n.slideVisibleClass),Ix(e,f,n.slideFullyVisibleClass),e.progress=s?-d:d,e.originalProgress=s?-u:u}},updateProgress:function(e){const t=this;if(typeof e>"u"){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:s,isBeginning:r,isEnd:a,progressLoop:o}=t;const l=r,c=a;if(0===i)s=0,r=!0,a=!0;else{s=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;r=n||s<=0,a=o||s>=1,n&&(s=0),o&&(s=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),s=t.slidesGrid[n],r=t.slidesGrid[i],a=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);o=l>=s?(l-s)/a:(l+a-r)/a,o>1&&(o-=1)}Object.assign(t,{progress:s,progressLoop:o,isBeginning:r,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),a&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!a)&&t.emit("fromEdge"),t.emit("progress",s)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:s}=e,r=e.virtual&&n.virtual.enabled,a=e.grid&&n.grid&&n.grid.rows>1,o=e=>px(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(r)if(n.loop){let t=s-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${s}"]`);else a?(l=t.find((e=>e.column===s)),d=t.find((e=>e.column===s+1)),c=t.find((e=>e.column===s-1))):l=t[s];l&&(a||(d=function(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),c=function(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}(l,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!c&&(c=t[t.length-1]))),t.forEach((e=>{Ax(e,e===l,n.slideActiveClass),Ax(e,e===d,n.slideNextClass),Ax(e,e===c,n.slidePrevClass)})),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:s,activeIndex:r,realIndex:a,snapIndex:o}=t;let l,c=e;const d=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(typeof c>"u"&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let s;for(let r=0;r<t.length;r+=1)typeof t[r+1]<"u"?i>=t[r]&&i<t[r+1]-(t[r+1]-t[r])/2?s=r:i>=t[r]&&i<t[r+1]&&(s=r+1):i>=t[r]&&(s=r);return n.normalizeSlideIndex&&(s<0||typeof s>"u")&&(s=0),s}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/s.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===r&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===r&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&s.grid&&s.grid.rows>1;let h;if(t.virtual&&s.virtual.enabled&&s.loop)h=d(c);else if(u){const e=t.slides.find((e=>e.column===c));let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/s.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:a,realIndex:h,previousIndex:r,activeIndex:c}),t.initialized&&Lx(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(a!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let s=e.closest(`.${i.slideClass}, swiper-slide`);!s&&n.isElement&&t&&t.length>
591&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach((e=>{!s&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(s=e)}));let r,a=!1;if(s)for(let o=0;o<n.slides.length;o+=1)if(n.slides[o]===s){a=!0,r=o;break}if(!s||!a)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=s,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(s.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=r,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}};var Dx={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:i,wrapperEl:s}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let r=ox(s,e);return r+=this.cssOverflowAdjustment(),n&&(r=-r),r||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:s,wrapperEl:r,progress:a}=n;let o,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,s.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,s.cssMode?r[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:s.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),r.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=n.maxTranslate()-n.minTranslate();o=0===d?0:(e-n.minTranslate())/d,o!==a&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const r=this,{params:a,wrapperEl:o}=r;if(r.animating&&a.preventInteractionOnTransition)return!1;const l=r.minTranslate(),c=r.maxTranslate();let d;if(d=i&&e>l?l:i&&e<c?c:e,r.updateProgress(d),a.cssMode){const e=r.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-d;else{if(!r.support.smoothScroll)return hx({swiper:r,targetPosition:-d,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(r.setTransition(0),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionEnd"))):(r.setTransition(t),r.setTranslate(d),n&&(r.emit("beforeTransitionStart",t,s),r.emit("transitionStart")),r.animating||(r.animating=!0,r.onTranslateToWrapperTransitionEnd||(r.onTranslateToWrapperTransitionEnd=function(e){!r||r.destroyed||e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onTranslateToWrapperTransitionEnd),r.onTranslateToWrapperTransitionEnd=null,delete r.onTranslateToWrapperTransitionEnd,r.animating=!1,n&&r.emit("transitionEnd"))}),r.wrapperEl.addEventListener("transitionend",r.onTranslateToWrapperTransitionEnd))),!0}};function Mx(e){let{swiper:t,runCallbacks:n,direction:i,step:s}=e;const{activeIndex:r,previousIndex:a}=t;let o=i;if(o||(o=r>a?"next":r<a?"prev":"reset"),t.emit(`transition${s}`),n&&r!==a){if("reset"===o)return void t.emit(`slideResetTransition${s}`);t.emit(`slideChangeTransition${s}`),"next"===o?t.emit(`slideNextTransition${s}`):t.emit(`slidePrevTransition${s}`)}}var Rx={setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`,n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),Mx({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;n.animating=!1,!i.cssMode&&(n.setTransition(0),Mx({swiper:n,runCallbacks:e,direction:t,step:"End"}))}};var Bx={slideTo:function(e,t,n,i,s){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const r=this;let a=e;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:p,enabled:f}=r;if(!f&&!i&&!s||r.destroyed||r.animating&&o.preventInteractionOnTransition)return!1;typeof t>"u"&&(t=r.params.speed);const m=Math.min(r.params.slidesPerGroupSkip,a);let g=m+Math.floor((a-m)/r.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const y=-l[g];if(o.normalizeSlideIndex)for(let T=0;T<c.length;T+=1){const e=-Math.floor(100*y),t=Math.floor(100*c[T]),n=Math.floor(100*c[T+1]);typeof c[T+1]<"u"?e>=t&&e<n-(n-t)/2?a=T:e>=t&&e<n&&(a=T+1):e>=t&&(a=T)}if(r.initialized&&a!==u&&(!r.allowSlideNext&&(h?y>r.translate&&y>r.minTranslate():y<r.translate&&y<r.minTranslate())||!r.allowSlidePrev&&y>r.translate&&y>r.maxTranslate()&&(u||0)!==a))return!1;let v;a!==(d||0)&&n&&r.emit("beforeSlideChangeStart"),r.updateProgress(y),v=a>u?"next":a<u?"prev":"reset";const b=r.virtual&&r.params.virtual.enabled;if((!b||!s)&&(h&&-y===r.translate||!h&&y===r.translate))return r.updateActiveIndex(a),o.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==o.effect&&r.setTranslate(y),"reset"!==v&&(r.transitionStart(n,v),r.transitionEnd(n,v)),!1;
59if(o.cssMode){const e=r.isHorizontal(),n=h?y:-y;if(0===t)b&&(r.wrapperEl.style.scrollSnapType="none",r._immediateVirtual=!0),b&&!r._cssModeVirtualInitialSet&&r.params.initialSlide>0?(r._cssModeVirtualInitialSet=!0,requestAnimationFrame((()=>{p[e?"scrollLeft":"scrollTop"]=n}))):p[e?"scrollLeft":"scrollTop"]=n,b&&requestAnimationFrame((()=>{r.wrapperEl.style.scrollSnapType="",r._immediateVirtual=!1}));else{if(!r.support.smoothScroll)return hx({swiper:r,targetPosition:n,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}const _=xx().isSafari;return b&&!s&&_&&r.isElement&&r.virtual.update(!1,!1,a),r.setTransition(t),r.setTranslate(y),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,i),r.transitionStart(n,v),0===t?r.transitionEnd(n,v):r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){!r||r.destroyed||e.target===this&&(r.wrapperEl.removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,v))}),r.wrapperEl.addEventListener("transitionend",r.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,i){void 0===e&&(e=0),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const s=this;if(s.destroyed)return;typeof t>"u"&&(t=s.params.speed);const r=s.grid&&s.params.grid&&s.params.grid.rows>1;let a=e;if(s.params.loop)if(s.virtual&&s.params.virtual.enabled)a+=s.virtual.slidesBefore;else{let e;if(r){const t=a*s.params.grid.rows;e=s.slides.find((e=>1*e.getAttribute("data-swiper-slide-index")===t)).column}else e=s.getSlideIndexByData(a);const t=r?Math.ceil(s.slides.length/s.params.grid.rows):s.slides.length,{centeredSlides:n}=s.params;let o=s.params.slidesPerView;"auto"===o?o=s.slidesPerViewDynamic():(o=Math.ceil(parseFloat(s.params.slidesPerView,10)),n&&o%2==0&&(o+=1));let l=t-e<o;if(n&&(l=l||e<Math.ceil(o/2)),i&&n&&"auto"!==s.params.slidesPerView&&!r&&(l=!1),l){const i=n?e<s.activeIndex?"prev":"next":e-s.activeIndex-1<s.params.slidesPerView?"next":"prev";s.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?s.realIndex:void 0})}if(r){const e=a*s.params.grid.rows;a=s.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)).column}else a=s.getSlideIndexByData(a)}return requestAnimationFrame((()=>{s.slideTo(a,t,n,i)})),s},slideNext:function(e,t,n){void 0===t&&(t=!0);const i=this,{enabled:s,params:r,animating:a}=i;if(!s||i.destroyed)return i;typeof e>"u"&&(e=i.params.speed);let o=r.slidesPerGroup;"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<r.slidesPerGroupSkip?1:o,c=i.virtual&&r.virtual.enabled;if(r.loop){if(a&&!c&&r.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&r.cssMode)return requestAnimationFrame((()=>{i.slideTo(i.activeIndex+l,e,t,n)})),!0}return r.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===t&&(t=!0);const i=this,{params:s,snapGrid:r,slidesGrid:a,rtlTranslate:o,enabled:l,animating:c}=i;if(!l||i.destroyed)return i;typeof e>"u"&&(e=i.params.speed);const d=i.virtual&&s.virtual.enabled;if(s.loop){if(c&&!d&&s.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(o?i.translate:-i.translate),p=r.map((e=>u(e))),f=s.freeMode&&s.freeMode.enabled;let m=r[p.indexOf(h)-1];if(typeof m>"u"&&(s.cssMode||f)){let e;r.forEach(((t,n)=>{h>=t&&(e=n)})),typeof e<"u"&&(m=f?r[e]:r[e>0?e-1:e])}let g=0;if(typeof m<"u"&&(g=a.indexOf(m),g<0&&(g=i.activeIndex-1),"auto"===s.slidesPerView&&1===s.slidesPerGroup&&s.slidesPerGroupAuto&&(g=g-i.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),s.rewind&&i.isBeginning){const s=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(s,e,t,n)}return s.loop&&0===i.activeIndex&&s.cssMode?(requestAnimationFrame((()=>{i.slideTo(g,e,t,n)})),!0):i.slideTo(g,e,t,n)},slideReset:function(e,t,n){void 0===t&&(t=!0);const i=this;if(!i.destroyed)return typeof e>"u"&&(e=i.params.speed),i.slideTo(i.activeIndex,e,t,n)},slideToClosest:function(e,t,n,i){void 0===t&&(t=!0),void 0===i&&(i=.5);const s=this;if(s.destroyed)return;typeof e>"u"&&(e=s.params.speed);let r=s.activeIndex;const a=Math.min(s.params.slidesPerGroupSkip,r),o=a+Math.floor((r-a)/s.params.slidesPerGroup),l=s.rtlTranslate?s.translate:-s.translate;if(l>=s.snapGrid[o]){const e=s.snapGrid[o];l-e>(s.snapGrid[o+1]-e)*i&&(r+=s.params.slidesPerGroup)}else{const e=s.snapGrid[o-1];l-e<=(s.snapGrid[o]-e)*i&&(r-=s.params.slidesPerGroup)}return r=Math.max(r,0),r=Math.min(r,s.slidesGrid.length-1),s.slideTo(r,e,t,n)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let s,r=e.clickedIndex;const a=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;s=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-i/2||r>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),r=e.getSlideIndex(px(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),rx((()=>{e.slideTo(r)}))):e.slideTo(r):r>e.slides.length-i?(e.loopFix(),r=e.getSlideIndex(px(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),rx((()=>{e.slideTo(r)}))):e.slideTo(r)}else e.slideTo(r)}};var Ux={loopCreate:function(e,t){const n=this,{params:i,slidesEl:s}=n;if(!i.loop||n.virtual&&n.params.virtual.enabled)return;const r=()=>{px(s,`.${i.slideClass}, swiper-slide`).forEach(((e,t)=>{e.setAttribute("data-swiper-slide-index",t)}))},a=n.grid&&i.grid&&i.grid.rows>1,o=i.slidesPerGroup*(a?i.grid.rows:1),l=n.slides.length%o!=0,c=a&&n.slides.length%i.grid.rows!=0,d=e=>{for(let t=0;t<e;t+=1){const e=n.isElement?mx("swiper-slide",[i.slideBlankClass]):mx("div",[i.slideClass,i.slideBlankClass]);n.slidesEl.append(e)}};if(l){if(i.loopAddBlankSlides){d(o-n.slides.length%o),n.recalcSlides(),n.updateSlides()}else fx("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may 
59not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else if(c){if(i.loopAddBlankSlides){d(i.grid.rows-n.slides.length%i.grid.rows),n.recalcSlides(),n.updateSlides()}else fx("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");r()}else r();n.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next",initial:t})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:s,activeSlideIndex:r,initial:a,byController:o,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:d,allowSlidePrev:u,allowSlideNext:h,slidesEl:p,params:f}=c,{centeredSlides:m,initialSlide:g}=f;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&f.virtual.enabled)return n&&(f.centeredSlides||0!==c.snapIndex?f.centeredSlides&&c.snapIndex<f.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=u,c.allowSlideNext=h,void c.emit("loopFix");let y=f.slidesPerView;"auto"===y?y=c.slidesPerViewDynamic():(y=Math.ceil(parseFloat(f.slidesPerView,10)),m&&y%2==0&&(y+=1));const v=f.slidesPerGroupAuto?y:f.slidesPerGroup;let b=v;b%v!=0&&(b+=v-b%v),b+=f.loopAdditionalSlides,c.loopedSlides=b;const _=c.grid&&f.grid&&f.grid.rows>1;d.length<y+b||"cards"===c.params.effect&&d.length<y+2*b?fx("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):_&&"row"===f.grid.fill&&fx("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const T=[],S=[],w=_?Math.ceil(d.length/f.grid.rows):d.length,E=a&&w-g<y&&!m;let C=E?g:c.activeIndex;typeof r>
vendor: 9,218 bytes, line 59
59"u"?r=c.getSlideIndex(d.find((e=>e.classList.contains(f.slideActiveClass)))):C=r;const x="next"===i||!i,k="prev"===i||!i;let I=0,A=0;const P=(_?d[r].column:r)+(m&&typeof s>"u"?-y/2+.5:0);if(P<b){I=Math.max(b-P,v);for(let e=0;e<b-P;e+=1){const t=e-Math.floor(e/w)*w;if(_){const e=w-t-1;for(let t=d.length-1;t>=0;t-=1)d[t].column===e&&T.push(t)}else T.push(w-t-1)}}else if(P+y>w-b){A=Math.max(P-(w-2*b),v),E&&(A=Math.max(A,y-w+g+1));for(let e=0;e<A;e+=1){const t=e-Math.floor(e/w)*w;_?d.forEach(((e,n)=>{e.column===t&&S.push(n)})):S.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame((()=>{c.__preventObserver__=!1})),"cards"===c.params.effect&&d.length<y+2*b&&(S.includes(r)&&S.splice(S.indexOf(r),1),T.includes(r)&&T.splice(T.indexOf(r),1)),k&&T.forEach((e=>{d[e].swiperLoopMoveDOM=!0,p.prepend(d[e]),d[e].swiperLoopMoveDOM=!1})),x&&S.forEach((e=>{d[e].swiperLoopMoveDOM=!0,p.append(d[e]),d[e].swiperLoopMoveDOM=!1})),c.recalcSlides(),"auto"===f.slidesPerView?c.updateSlides():_&&(T.length>0&&k||S.length>0&&x)&&c.slides.forEach(((e,t)=>{c.grid.updateSlide(t,e,c.slides)})),f.watchSlidesProgress&&c.updateSlidesOffset(),n)if(T.length>0&&k){if(typeof t>"u"){const e=c.slidesGrid[C],t=c.slidesGrid[C+I]-e;l?c.setTranslate(c.translate-t):(c.slideTo(C+Math.ceil(I),0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(s){const e=_?T.length/f.grid.rows:T.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(S.length>0&&x)if(typeof t>"u"){const e=c.slidesGrid[C],t=c.slidesGrid[C-A]-e;l?c.setTranslate(c.translate-t):(c.slideTo(C-A,0,!1,!0),s&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=_?S.length/f.grid.rows:S.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=u,c.allowSlideNext=h,c.controller&&c.controller.control&&!o){const e={slideRealIndex:t,direction:i,setTranslate:s,activeSlideIndex:r,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach((t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===f.slidesPerView&&n})})):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===f.slidesPerView&&n})}c.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||!n||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const i=[];e.slides.forEach((e=>{const t=typeof e.swiperSlideIndex>"u"?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;i[t]=e})),e.slides.forEach((e=>{e.removeAttribute("data-swiper-slide-index")})),i.forEach((e=>{n.append(e)})),e.recalcSlides(),e.slideTo(e.realIndex,0)}};var Fx={setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame((()=>{t.__preventObserver__=!1}))},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame((()=>{e.__preventObserver__=!1})))}};function jx(e,t,n){const i=sx(),{params:s}=e,r=s.edgeSwipeDetection,a=s.edgeSwipeThreshold;return!r||!(n<=a||n>=i.innerWidth-a)||"prevent"===r&&(t.preventDefault(),!0)}function Vx(e){const t=this,n=nx();let i=e;i.originalEvent&&(i=i.originalEvent);const s=t.touchEventsData;if("pointerdown"===i.type){if(null!==s.pointerId&&s.pointerId!==i.pointerId)return;s.pointerId=i.pointerId}else"touchstart"===i.type&&1===i.targetTouches.length&&(s.touchId=i.targetTouches[0].identifier);if("touchstart"===i.type)return void jx(t,i,i.targetTouches[0].pageX);const{params:r,touches:a,enabled:o}=t;if(!o||!r.simulateTouch&&"mouse"===i.pointerType||t.animating&&r.preventInteractionOnTransition)return;!t.animating&&r.cssMode&&r.loop&&t.loopFix();let l=i.target;if("wrapper"===r.touchEventsTarget&&!function(e,t){const n=sx();let i=t.contains(e);return!i&&n.HTMLSlotElement&&t instanceof HTMLSlotElement&&(i=[...t.assignedElements()].includes(e),i||(i=function(e,t){const n=[t];for(;n.length>0;){const t=n.shift();if(e===t)return!0;n.push(...t.children,...t.shadowRoot?t.shadowRoot.children:[],...t.assignedElements?t.assignedElements():[])}}(e,t))),i}(l,t.wrapperEl)||"which"in i&&3===i.which||"button"in i&&i.button>0||s.isTouched&&s.isMoved)return;const c=!!r.noSwipingClass&&""!==r.noSwipingClass,d=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&d&&(l=d[0]);const u=r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`,h=!(!i.target||!i.target.shadowRoot);if(r.noSwiping&&(h?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===nx()||n===sx())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(e);return i||n.getRootNode?i||t(n.getRootNode().host):null}(t)}(u,l):l.closest(u)))return void(t.allowClick=!0);if(r.swipeHandler&&!l.closest(r.swipeHandler))return;a.currentX=i.pageX,a.currentY=i.pageY;const p=a.currentX,f=a.currentY;if(!jx(t,i,p))return;Object.assign(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=p,a.startY=f,s.touchStartTime=ax(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(s.allowThresholdMove=!1);let m=!0;l.matches(s.focusableElements)&&(m=!1,"SELECT"===l.nodeName&&(s.isTouched=!1)),n.activeElement&&n.activeElement.matches(s.focusableElements)&&n.activeElement!==l&&("mouse"===i.pointerType||"mouse"!==i.pointerType&&!l.matches(s.focusableElements))&&n.activeElement.blur();const g=m&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||g)&&!l.isContentEditable&&i.preventDefault(),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.animating&&!r.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",i)}function $x(e){const t=nx(),n=this,i=n.touchEventsData,{params:s,touches:r,rtlTranslate:a,enabled:o}=n;if(!o||!s.simulateTouch&&"mouse"===e.pointerType)return;let l,c=e;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type&&(null!==i.touchId||c.pointerId!==i.pointerId))return;if("touchmove"===c.type){if(l=[...c.changedTouches].find((e=>e.identifier===i.touchId)),!l||l.identifier!==i.touchId)return}else l=c;if(!i.isTouched)return void(i.startMoving&&i.isScrolling&&n.emit("touchMoveOpposite",c));const d=l.pageX,u=l.pageY;if(c.preventedByNestedSwiper)return r.startX=d,void(r.startY=u);if(!n.allowTouchMove)return c.target.matches(i.focusableElements)||(n.allowClick=!1),void(i.isTouched&&(Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u}),i.touchStartTime=ax()));if(s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(u<r.startY&&n.translate<=n.maxTranslate()||u>r.startY&&n.translate>=n.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else{if(a&&(d>r.startX&&-n.translate<=n.maxTranslate()||d<r.startX&&-n.translate>=n.minTranslate()))return;if(!a&&(d<r.startX&&n.translate<=n.maxTranslate()||d>r.startX&&n.translate>=n.minTranslate()))return}if(t.activeElement&&t.activeElement.matches(i.focusableElements)&&t.activeElement!==c.target&&"mouse"!==c.pointerType&&t.activeElement.blur(),t.activeElement&&c.target===t.activeElement&&c.target.matches(i.focusableElements))return i.isMoved=!0,void(n.allowClick=!1);i.allowTouchCallbacks&&n.emit("touchMove",c),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=d,r.currentY=u;const h=r.currentX-r.startX,p=r.currentY-r.startY;if(n.params.threshold&&Math.sqrt(h**2+p**2)<n.params.threshold)return;if(typeof i.isScrolling>"u"){let e;n.isHorizontal()&&r.currentY===r.startY||n.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:h*h+p*p>=25&&(e=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,i.isScrolling=n.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(i.isScrolling&&n.emit("touchMoveOpposite",c),typeof i.startMoving>"u"&&(r.currentX!==r.startX||r.currentY!==r.startY)&&(i.startMoving=!0),i.isScrolling||"touchmove"===c.type&&i.preventTouchMoveFromPointerMove)return void(i.isTouched=!1);if(!i.startMoving)return;n.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation();let f=n.isHorizontal()?h:p,m=n.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;s.oneWayMovement&&(f=Math.abs(f)*(a?1:-1),m=Math.abs(m)*(a?1:-1)),r.diff=f,f*=s.touchRatio,a&&(f=-f,m=-m);const g=n.touchesDirection;n.swipeDirection=f>0?"prev":"next",n.touchesDirection=m>0?"prev":"next";const y=n.params.loop&&!s.cssMode,v="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!i.isMoved){if(y&&v&&n.loopFix({direction:n.swipeDirection}),i.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});
vendor: 2,165 bytes, line 59
59n.wrapperEl.dispatchEvent(e)}i.allowMomentumBounce=!1,s.grabCursor&&(!0===n.allowSlideNext||!0===n.allowSlidePrev)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==s._loopSwapReset&&i.isMoved&&i.allowThresholdMove&&g!==n.touchesDirection&&y&&v&&Math.abs(f)>=1)return Object.assign(r,{startX:d,startY:u,currentX:d,currentY:u,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,void(i.startTranslate=i.currentTranslate);n.emit("sliderMove",c),i.isMoved=!0,i.currentTranslate=f+i.startTranslate;let b=!0,_=s.resistanceRatio;if(s.touchReleaseOnEdges&&(_=0),f>0?(y&&v&&i.allowThresholdMove&&i.currentTranslate>(s.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]-("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.activeIndex+1]+n.params.spaceBetween:0)-n.params.spaceBetween:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>n.minTranslate()&&(b=!1,s.resistance&&(i.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+i.startTranslate+f)**_))):f<0&&(y&&v&&i.allowThresholdMove&&i.currentTranslate<(s.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween+("auto"!==s.slidesPerView&&n.slides.length-s.slidesPerView>=2?n.slidesSizesGrid[n.slidesSizesGrid.length-1]+n.params.spaceBetween:0):n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===s.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(s.slidesPerView,10)))}),i.currentTranslate<n.maxTranslate()&&(b=!1,s.resistance&&(i.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-i.startTranslate-f)**_))),b&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(i.currentTranslate=i.startTranslate),s.threshold>0){if(!(Math.abs(f)>s.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);
vendor: 10,118 bytes, line 59
59if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=n.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}!s.followFinger||s.cssMode||((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),s.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(i.currentTranslate),n.setTranslate(i.currentTranslate))}function qx(e){const t=this,n=t.touchEventsData;let i,s=e;if(s.originalEvent&&(s=s.originalEvent),"touchend"===s.type||"touchcancel"===s.type){if(i=[...s.changedTouches].find((e=>e.identifier===n.touchId)),!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId||s.pointerId!==n.pointerId)return;i=s}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(s.type)&&(!["pointercancel","contextmenu"].includes(s.type)||!t.browser.isSafari&&!t.browser.isWebView))return;n.pointerId=null,n.touchId=null;const{params:r,touches:a,rtlTranslate:o,slidesGrid:l,enabled:c}=t;if(!c||!r.simulateTouch&&"mouse"===s.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",s),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=ax(),u=d-n.touchStartTime;if(t.allowClick){const e=s.path||s.composedPath&&s.composedPath();t.updateClickedSlide(e&&e[0]||s.target,e),t.emit("tap click",s),u<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",s)}if(n.lastClickTime=ax(),rx((()=>{t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===a.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let h;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,h=r.followFinger?o?t.translate:-t.translate:-n.currentTranslate,r.cssMode)return;if(r.freeMode&&r.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:h});const p=h>=-t.maxTranslate()&&!t.params.loop;let f=0,m=t.slidesSizesGrid[0];for(let _=0;_<l.length;_+=_<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=_<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof l[_+e]<"u"?(p||h>=l[_]&&h<l[_+e])&&(f=_,m=l[_+e]-l[_]):(p||h>=l[_])&&(f=_,m=l[l.length-1]-l[l.length-2])}let g=null,y=null;r.rewind&&(t.isBeginning?y=r.virtual&&r.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const v=(h-l[f])/m,b=f<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(u>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(v>=r.longSwipesRatio?t.slideTo(r.rewind&&t.isEnd?g:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(v>1-r.longSwipesRatio?t.slideTo(f+b):null!==y&&v<0&&Math.abs(v)>r.longSwipesRatio?t.slideTo(y):t.slideTo(f))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||s.target!==t.navigation.nextEl&&s.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:f)):s.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f)}}function Hx(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:s,snapGrid:r}=e,a=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=a&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!a?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout((()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()}),500)),e.allowSlidePrev=s,e.allowSlideNext=i,e.params.watchOverflow&&r!==e.snapGrid&&e.checkOverflow()}function zx(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Gx(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let s;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const r=e.maxTranslate()-e.minTranslate();s=0===r?0:(e.translate-e.minTranslate())/r,s!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function Wx(e){const t=this;Px(t,e.target),!t.params.cssMode&&("auto"===t.params.slidesPerView||t.params.autoHeight)&&t.update()}function Xx(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const Kx=(e,t)=>{const n=nx(),{params:i,el:s,wrapperEl:r,device:a}=e,o=!!i.nested,l="on"===t?"addEventListener":"removeEventListener",c=t;!s||"string"==typeof s||(n[l]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:o}),s[l]("touchstart",e.onTouchStart,{passive:!1}),s[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("touchmove",e.onTouchMove,{passive:!1,capture:o}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:o}),n[l]("touchend",e.onTouchEnd,{passive:!0}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("touchcancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),n[l]("contextmenu",e.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&s[l]("click",e.onClick,!0),i.cssMode&&r[l]("scroll",e.onScroll),i.updateOnWindowResize?e[c](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",Hx,!0):e[c]("observerUpdate",Hx,!0),s[l]("load",e.onLoad,{capture:!0}))};const Yx=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var Qx={setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:s}=e,r=i.breakpoints;if(!r||r&&0===Object.keys(r).length)return;const a=nx(),o="window"!==i.breakpointsBase&&i.breakpointsBase?"container":i.breakpointsBase,l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?e.el:a.querySelector(i.breakpointsBase),c=e.getBreakpoint(r,o,l);if(!c||e.currentBreakpoint===c)return;const d=(c in r?r[c]:void 0)||e.originalParams,u=Yx(e,i),h=Yx(e,d),p=e.params.grabCursor,f=d.grabCursor,m=i.enabled;u&&!h?(s.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&h&&(s.classList.add(`${i.containerModifierClass}grid`),(d.grid.fill&&"column"===d.grid.fill||!d.grid.fill&&"column"===i.grid.fill)&&s.classList.add(`${i.containerModifierClass}grid-column`),e.emitContainerClasses()),p&&!f?e.unsetGrabCursor():!p&&f&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach((t=>{if(typeof d[t]>"u")return;const n=i[t]&&i[t].enabled,s=d[t]&&d[t].enabled;n&&!s&&e[t].disable(),!n&&s&&e[t].enable()}));const g=d.direction&&d.direction!==i.direction,y=i.loop&&(d.slidesPerView!==i.slidesPerView||g),v=i.loop;g&&n&&e.changeDirection(),dx(e.params,d);const b=e.params.enabled,_=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),m&&!b?e.disable():!m&&b&&e.enable(),e.currentBreakpoint=c,e.emit("_beforeBreakpoint",d),n&&(y?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!v&&_?(e.loopCreate(t),e.updateSlides()):v&&!_&&e.loopDestroy()),e.emit("breakpoint",d)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const s=sx(),r="window"===t?s.innerHeight:n.clientHeight,a=Object.keys(e).map((e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}}));a.sort(((e,t)=>parseInt(e.value,10)-parseInt(t.value,10)));for(let o=0;o<a.length;o+=1){const{point:e,value:r}=a[o];"window"===t?s.matchMedia(`(min-width: ${r}px)`).matches&&(i=e):r<=n.clientWidth&&(i=e)}return i||"max"}};var Jx={addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,el:s,device:r}=e,a=function(e,t){const n=[];return e.forEach((e=>{"object"==typeof e?Object.keys(e).forEach((i=>{e[i]&&n.push(t+i)})):"string"==typeof e&&n.push(t+e)})),n}(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...a),s.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;!e||"string"==typeof e||(e.classList.remove(...t),this.emitContainerClasses())}};var Zx={checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},ek={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
vendor: 3,203 bytes, line 59
59spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function tk(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],s=n[i];"object"==typeof s&&null!==s?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in s?("object"==typeof e[i]&&!("enabled"in e[i])&&(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),dx(t,n)):dx(t,n)):dx(t,n)}}const nk={eventsEmitter:kx,update:Nx,translate:Dx,transition:Rx,slide:Bx,loop:Ux,grabCursor:Fx,events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=Vx.bind(e),e.onTouchMove=$x.bind(e),e.onTouchEnd=qx.bind(e),e.onDocumentTouchStart=Xx.bind(e),t.cssMode&&(e.onScroll=Gx.bind(e)),e.onClick=zx.bind(e),e.onLoad=Wx.bind(e),Kx(e,"on")},detachEvents:function(){Kx(this,"off")}},breakpoints:Qx,checkOverflow:Zx,classes:Jx},ik={};let sk=class e{constructor(){let t,n;for(var i=arguments.length,s=new Array(i),r=0;r<i;r++)s[r]=arguments[r];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?n=s[0]:[t,n]=s,n||(n={}),n=dx({},n),t&&!n.el&&(n.el=t);const a=nx();if(n.el&&"string"==typeof n.el&&a.querySelectorAll(n.el).length>1){const t=[];return a.querySelectorAll(n.el).forEach((i=>{const s=dx({},n,{el:i});t.push(new e(s))})),t}const o=this;o.__swiper__=!0,o.support=Ex(),o.device=Cx({userAgent:n.userAgent}),o.browser=xx(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],n.modules&&Array.isArray(n.modules)&&o.modules.push(...n.modules);const l={};o.modules.forEach((e=>{e({params:n,swiper:o,extendParams:tk(n,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})}));const c=dx({},ek,l);return o.params=dx({},c,ik,n),o.originalParams=dx({},o.params),o.passedParams=dx({}
vendor: 4,604 bytes, line 59
59,n),o.params&&o.params.on&&Object.keys(o.params.on).forEach((e=>{o.on(e,o.params.on[e])})),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=yx(px(t,`.${n.slideClass}, swiper-slide`)[0]);return yx(e)-i}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find((t=>1*t.getAttribute("data-swiper-slide-index")===e)))}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=px(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),s=(n.maxTranslate()-i)*e+i;n.translateTo(s,typeof t>"u"?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter((t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass)));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter((e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass))).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach((n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)})),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:i,slidesGrid:s,slidesSizesGrid:r,size:a,activeIndex:o}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[o]?Math.ceil(i[o].swiperSlideSize):0;for(let n=o+1;n<i.length;n+=1)i[n]&&!e&&(t+=Math.ceil(i[n].swiperSlideSize),l+=1,t>a&&(e=!0));for(let n=o-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let c=o+1;c<i.length;c+=1)(t?s[c]+r[c]-s[o]<a:s[c]-s[o]<a)&&(l+=1);else for(let c=o-1;c>=0;c-=1)s[o]-s[c]<a&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach((t=>{t.complete&&Px(e,t)})),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(t.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEac
59h((t=>{"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const i=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):px(n,i())[0];return!s&&t.params.createElements&&(s=mx("div",t.params.wrapperClass),n.append(s),px(n,`.${t.params.slideClass}`).forEach((e=>{s.append(e)}))),Object.assign(t,{el:n,wrapperEl:s,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:s,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===gx(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===gx(n,"direction")),wrongRTL:"-webkit-box"===gx(s,"display")}),!0}init(e){const t=this;if(t.initialized||!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach((e=>{e.complete?Px(t,e):e.addEventListener("load",(e=>{Px(t,e.target)}))})),Lx(t),t.initialized=!0,Lx(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:i,el:s,wrapperEl:r,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),s&&"string"!=typeof s&&s.removeAttribute("style"),r&&r.removeAttribute("style"),a&&a.length&&a.forEach((e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")}))),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.el&&"string"!=typeof n.el&&(n.el.swiper=null),function(e){const t=e;Object.keys(t).forEach((e=>{try{t[e]=null}catch{}try{delete t[e]}catch{}}))}(n)),n.destroyed=!0),null}static extendDefaults(e){dx(ik,e)}static get extendedDefaults(){return ik}static get defaults(){return ek}static installModule(t){e.prototype.__modules__||(e.prototype.__modules__=[]);const n=e.prototype.__modules__;"function"==typeof t&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>e.installModule(t))),e):(e.installModule(t),e)}};Object.keys(nk).forEach((e=>{Object.keys(nk[e]).forEach((t=>{sk.prototype[t]=nk[e][t]}))})),sk.use([function(e){let{swiper:t,on:n,emit:i}=e;const s=sx();let r=null,a=null;const o=()=>{!t||t.destroyed||!t.initialized||(i("beforeResize"),i("resize"))},l=()=>{!t||t.destroyed||!t.initialized||i("orientationchange")};n("init",(()=>{t.params.resizeObserver&&typeof s.ResizeObserver<"u"?!t||t.destroyed||!t.initialized||(r=new ResizeObserver((e=>{a=s.requestAnimationFrame((()=>{const{width:n,height:i}=t;let s=n,r=i;e.forEach((e=>{let{contentBoxSize:n,contentRect:i,target:a}=e;a&&a!==t.el||(s=i?i.width:(n[0]||n).inlineSize,r=i?i.height:(n[0]||n).blockSize)})),(s!==n||r!==i)&&o()}))})),r.observe(t.el)):(s.addEventListener("resize",o),s.addEventListener("orientationchange",l))})),n("destroy",(()=>{a&&s.cancelAnimationFrame(a),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null),s.removeEventListener("resize",o),s.removeEventListener("orientationchange",l)}))},function(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;const r=[],a=sx(),o=function(e,n){void 0===n&&(n={});const i=new(a.MutationObserver||a.WebkitMutationObserver)((e=>{if(t.__preventObserver__)return;if(1===e.length)return void s("observerUpdate",e[0]);const n=function(){s("observerUpdate",e[0])};a.requestAnimationFrame?a.requestAnimationFrame(n):a.setTimeout(n,0)}));i.observe(e,{attributes:typeof n.attributes>"u"||n.attributes,childList:t.isElement||(typeof n.childList>"u"||n).childList,characterData:typeof n.characterData>"u"||n.characterData}),r.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=vx(t.hostEl);for(let t=0;t<e.length;t+=1)o(e[t])}o(t.hostEl,{childList:t.params.observeSlideChildren}),o(t.wrapperEl,{attributes:!1})}})),i("destroy",(()=>{r.forEach((e=>{e.disconnect()})),r.splice(0,r.length)}))}]);const rk=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
59ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function ak(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)&&!e.__swiper__}function ok(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter((e=>n.indexOf(e)<0)).forEach((n=>{typeof e[n]>"u"?e[n]=t[n]:ak(t[n])&&ak(e[n])&&Object.keys(t[n]).length>0?t[n].__swiper__?e[n]=t[n]:ok(e[n],t[n]):e[n]=t[n]}))}function lk(e){return void 0===e&&(e={}),e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function ck(e){return void 0===e&&(e={}),e.pagination&&typeof e.pagination.el>"u"}function dk(e){return void 0===e&&(e={}),e.scrollbar&&typeof e.scrollbar.el>"u"}function uk(e){void 0===e&&(e="");const t=e.split(" ").map((e=>e.trim())).filter((e=>!!e)),n=[];return t.forEach((e=>{n.indexOf(e)<0&&n.push(e)})),n.join(" ")}function hk(e){return void 0===e&&(e=""),e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}function pk(e,t){void 0===e&&(e={});const n={on:{}},i={};ok(n,ek),n._emitClasses=!0,n.init=!1;const s={},r=rk.map((e=>e.replace(/_/,""))),a=Object.assign({},e);return Object.keys(a).forEach((t=>{typeof e[t]>"u"||(r.indexOf(t)>=0?ak(e[t])?(n[t]={},i[t]={},ok(n[t],e[t]),ok(i[t],e[t])):(n[t]=e[t],i[t]=e[t]):0===t.search(/on[A-Z]/)&&"function"==typeof e[t]?n.on[`${t[2].toLowerCase()}${t.substr(3)}`]=e[t]:s[t]=e[t])})),["navigation","pagination","scrollbar"].forEach((e=>{!0===n[e]&&(n[e]={}),!1===n[e]&&delete n[e]})),{params:n,passedParams:i,rest:s,events:{}}}function fk(e,t,n){void 0===e&&(e={});const i=[],s={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},r=(e,t)=>{Array.isArray(e)&&e.forEach((e=>{const n="symbol"==typeof e.type;"default"===t&&(t="container-end"),n&&e.children?r(e.children,t):e.type&&("SwiperSlide"===e.type.name||"AsyncComponentWrapper"===e.type.name)||e.componentOptions&&"SwiperSlide"===e.componentOptions.tag?i.push(e):s[t]&&s[t].push(e)}))};return Object.keys(e).forEach((t=>{if("function"!=typeof e[t])return;const n=e[t]();r(n,t)})),n.value=t.value,t.value=i,{slides:i,slots:s}}const mk={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},swiperElementNodeName:{type:String,default:"SWIPER-CONTAINER"},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},breakpointsBase:{type:String,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0}
59,centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideFullyVisibleClass:{type:String,default:void 0},slideBlankClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slidesUpdated","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:i}=t;const{tag:s,wrapperTag:r}=e,a=en("swiper"),o=en(null),l=en(!1),c=en(!1),d=en(null),u=en(null),h=en(null),p={value:[]},f={value:[]},m=en(null),g=en(null),y=en(null),v=en(null),{params:b,passedParams:_}=pk(e);fk(n,p,f),h.value=_,f.value=p.value;b.onAny=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];i(e,...n)},Object.assign(b.on,{_beforeBreakpoint:()=>{fk(n,p,f),l.value=!0},_containerClasses(e,t){a.value=t}});const T={...b};if(delete T.wrapperClass,u.value=new sk(T),u.value.virtual&&u.value.params.virtual.enabled){u.value.virtual.slides=p.value;const e={cache:!1,slides:p.value,renderExternal:e=>{o.value=e},renderExternalUpdate:!1};ok(u.value.params.virtual,e),ok(u.value.originalParams.virtual,e)}function S(e){return b.virtual?function(e,t,n){if(!n)return null;const i=e=>{let n=e;return e<0?n=t.length+e:n>=t.length&&(n-=t.length),n},s=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:r,to:a}=n,o=e.value.params.loop?-t.length:0,l=e.value.params.loop?2*t.length:t.length,c=[];for(let d=o;d<l;d+=1)d>=r&&d<=a&&c.length<t.length&&c.push(t[i(d)]);return c.map((t=>(t.props||(t.props={}),t.props.style||(t.props.style={}),t.props.swiperRef=e,t.props.style=s,t.type?Oa(t.type,{...t.props},t.children):t.componentOptions?Oa(t.componentOptions.Ctor,{...t.props},t.componentOptions.children):void 0)))}(u,e,o.value):(e.forEach(((e,t)=>{e.props||(e.props={}),e.props.swiperRef=u,e.props.swiperSlideIndex=t})),e)}return Ji((()=>{!c.value&&u.value&&(u.value.emitSlidesClasses(),c.value=!0);const{passedParams:t}=pk(e),n=function(e,t,n,i,s){const r=[];if(!t)return r;const a=e=>{r.indexOf(e)<0&&r.push(e)};if(n&&i){const e=i.map(s),t=n.map(s);e.join("")!==t.join("")&&a("children"),i.length!==n.length&&a("children")}return rk.filter((e=>"_"===e[0])).map((e=>
59e.replace(/_/,""))).forEach((n=>{if(n in e&&n in t)if(ak(e[n])&&ak(t[n])){const i=Object.keys(e[n]),s=Object.keys(t[n]);i.length!==s.length?a(n):(i.forEach((i=>{e[n][i]!==t[n][i]&&a(n)})),s.forEach((i=>{e[n][i]!==t[n][i]&&a(n)})))}else e[n]!==t[n]&&a(n)})),r}(t,h.value,p.value,f.value,(e=>e.props&&e.props.key));h.value=t,(n.length||l.value)&&u.value&&!u.value.destroyed&&function(e){let{swiper:t,slides:n,passedParams:i,changedParams:s,nextEl:r,prevEl:a,scrollbarEl:o,paginationEl:l}=e;const c=s.filter((e=>"children"!==e&&"direction"!==e&&"wrapperClass"!==e)),{params:d,pagination:u,navigation:h,scrollbar:p,virtual:f,thumbs:m}=t;let g,y,v,b,_,T,S,w;s.includes("thumbs")&&i.thumbs&&i.thumbs.swiper&&!i.thumbs.swiper.destroyed&&d.thumbs&&(!d.thumbs.swiper||d.thumbs.swiper.destroyed)&&(g=!0),s.includes("controller")&&i.controller&&i.controller.control&&d.controller&&!d.controller.control&&(y=!0),s.includes("pagination")&&i.pagination&&(i.pagination.el||l)&&(d.pagination||!1===d.pagination)&&u&&!u.el&&(v=!0),s.includes("scrollbar")&&i.scrollbar&&(i.scrollbar.el||o)&&(d.scrollbar||!1===d.scrollbar)&&p&&!p.el&&(b=!0),s.includes("navigation")&&i.navigation&&(i.navigation.prevEl||a)&&(i.navigation.nextEl||r)&&(d.navigation||!1===d.navigation)&&h&&!h.prevEl&&!h.nextEl&&(_=!0);const E=e=>{t[e]&&(t[e].destroy(),"navigation"===e?(t.isElement&&(t[e].prevEl.remove(),t[e].nextEl.remove()),d[e].prevEl=void 0,d[e].nextEl=void 0,t[e].prevEl=void 0,t[e].nextEl=void 0):(t.isElement&&t[e].el.remove(),d[e].el=void 0,t[e].el=void 0))};s.includes("loop")&&t.isElement&&(d.loop&&!i.loop?T=!0:!d.loop&&i.loop?S=!0:w=!0),c.forEach((e=>{if(ak(d[e])&&ak(i[e]))Object.assign(d[e],i[e]),("navigation"===e||"pagination"===e||"scrollbar"===e)&&"enabled"in i[e]&&!i[e].enabled&&E(e);else{const t=i[e];!0!==t&&!1!==t||"navigation"!==e&&"pagination"!==e&&"scrollbar"!==e?d[e]=i[e]:!1===t&&E(e)}})),c.includes("controller")&&!y&&t.controller&&t.controller.control&&d.controller&&d.controller.control&&(t.controller.control=d.controller.control),s.includes("children")&&n&&f&&d.virtual.enabled?(f.slides=n,f.update(!0)):s.includes("virtual")&&f&&d.virtual.enabled&&(n&&(f.slides=n),f.update(!0)),s.includes("children")&&n&&d.loop&&(w=!0),g&&m.init()&&m.update(!0),y&&(t.controller.control=d.controller.control),v&&(t.isElement&&(!l||"string"==typeof l)&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),t.el.appendChild(l)),l&&(d.pagination.el=l),u.init(),u.render(),u.update()),b&&(t.isElement&&(!o||"string"==typeof o)&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),t.el.appendChild(o)),o&&(d.scrollbar.el=o),p.init(),p.updateSize(),p.setTranslate()),_&&(t.isElement&&((!r||"string"==typeof r)&&(r=document.createElement("div"),r.classList.add("swiper-button-next"),r.innerHTML=t.hostEl.constructor.nextButtonSvg,r.part.add("button-next"),t.el.appendChild(r)),(!a||"string"==typeof a)&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=t.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),t.el.appendChild(a))),r&&(d.navigation.nextEl=r),a&&(d.navigation.prevEl=a),h.init(),h.update()),s.includes("allowSlideNext")&&(t.allowSlideNext=i.allowSlideNext),s.includes("allowSlidePrev")&&(t.allowSlidePrev=i.allowSlidePrev),s.includes("direction")&&t.changeDirection(i.direction,!1),(T||w)&&t.loopDestroy(),(S||w)&&t.loopCreate(),t.update()}({swiper:u.value,slides:p.value,passedParams:t,changedParams:n,nextEl:m.value,prevEl:g.value,scrollbarEl:v.value,paginationEl:y.value}),l.value=!1})),Rs("swiper",u),pr(o,(()=>{Nn((()=>{(e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())})(u.value)}))})),Yi((()=>{d.value&&(function(e,t){let{el:n,nextEl:i,prevEl:s,paginationEl:r,scrollbarEl:a,swiper:o}=e;lk(t)&&i&&s&&(o.params.navigation.nextEl=i,o.originalParams.navigation.nextEl=i,o.params.navigation.prevEl=s,o.originalParams.navigation.prevEl=s),ck(t)&&r&&(o.params.pagination.el=r,o.originalParams.pagination.el=r),dk(t)&&a&&(o.params.scrollbar.el=a,o.originalParams.scrollbar.el=a),o.init(n)}({el:d.value,nextEl:m.value,prevEl:g.value,paginationEl:y.value,scrollbarEl:v.value,swiper:u.value},b),i("swiper",u.value))})),Zi((()=>{u.value&&!u.value.destroyed&&u.value.destroy(!0,!1)}
59)),()=>{const{slides:t,slots:i}=fk(n,p,f);return Oa(s,{ref:d,class:uk(a.value)},[i["container-start"],Oa(r,{class:hk(b.wrapperClass)},[i["wrapper-start"],S(t),i["wrapper-end"]]),lk(e)&&[Oa("div",{ref:g,class:"swiper-button-prev"}),Oa("div",{ref:m,class:"swiper-button-next"})],dk(e)&&Oa("div",{ref:v,class:"swiper-scrollbar"}),ck(e)&&Oa("div",{ref:y,class:"swiper-pagination"}),i["container-end"]])}}},gk={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,i=!1;const{swiperRef:s}=e,r=en(null),a=en("swiper-slide"),o=en(!1);function l(e,t,n){t===r.value&&(a.value=n)}Yi((()=>{!s||!s.value||(s.value.on("_slideClass",l),i=!0)})),Qi((()=>{i||!s||!s.value||(s.value.on("_slideClass",l),i=!0)})),Ji((()=>{!r.value||!s||!s.value||(typeof e.swiperSlideIndex<"u"&&(r.value.swiperSlideIndex=e.swiperSlideIndex),s.value.destroyed&&"swiper-slide"!==a.value&&(a.value="swiper-slide"))})),Zi((()=>{!s||!s.value||s.value.off("_slideClass",l)}));const c=Pa((()=>({isActive:a.value.indexOf("swiper-slide-active")>=0,isVisible:a.value.indexOf("swiper-slide-visible")>=0,isPrev:a.value.indexOf("swiper-slide-prev")>=0,isNext:a.value.indexOf("swiper-slide-next")>=0})));Rs("swiperSlide",c);const d=()=>{o.value=!0};return()=>Oa(e.tag,{class:uk(`${a.value}`),ref:r,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&s&&s.value&&s.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:d},e.zoom?Oa("div",{class:"swiper-zoom-container","data-swiper-zoom":"number"==typeof e.zoom?e.zoom:void 0},[n.default&&n.default(c.value),e.lazy&&!o.value&&Oa("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),e.lazy&&!o.value&&Oa("div",{class:"swiper-lazy-preloader"})])}};function yk(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;const r=nx(),a=sx();function o(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let i=e;i.originalEvent&&(i=i.originalEvent);const o=i.keyCode||i.charCode,l=t.params.keyboard.pageUpDown,c=l&&33===o,d=l&&34===o,u=37===o,h=39===o,p=38===o,f=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&h||t.isVertical()&&f||d)||!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&p||c))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||r.activeElement&&r.activeElement.nodeName&&("input"===r.activeElement.nodeName.toLowerCase()||"textarea"===r.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||d||u||h||p||f)){let e=!1;if(vx(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===vx(t.el,`.${t.params.slideActiveClass}`).length)return;const i=t.el,s=i.clientWidth,r=i.clientHeight,o=a.innerWidth,l=a.innerHeight,c=function(e){const t=sx(),n=nx(),i=e.getBoundingClientRect(),s=n.body,r=e.clientTop||s.clientTop||0,a=e.clientLeft||s.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,l=e===t?t.scrollX:e.scrollLeft;return{top:i.top+o-r,left:i.left+l-a}}(i);n&&(c.left-=i.scrollLeft);const d=[[c.left,c.top],[c.left+s,c.top],[c.left,c.top+r],[c.left+s,c.top+r]];for(let t=0;t<d.length;t+=1){const n=d[t];if(n[0]>=0&&n[0]<=o&&n[1]>=0&&n[1]<=l){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||u||h)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((d||h)&&!n||(c||u)&&n)&&t.slideNext(),((c||u)&&!n||(d||h)&&n)&&t.slidePrev()):((c||d||p||f)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(d||f)&&t.slideNext(),(c||p)&&t.slidePrev()),s("keyPress",o)}}function l(){t.keyboard.enabled||(r.addEventListener("keydown",o),t.keyboard.enabled=!0)}function c(){t.keyboard.enabled&&(r.removeEventListener("keydown",o),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),i("init",(()=>{t.params.keyboard.enabled&&l()})),i("destroy",(()=>{t.keyboard.enabled&&c()})),Object.assign(t.keyboard,{enable:l,disable:c})}function vk(e,t,n,i){return e.params.createElements&&Object.keys(i).forEac
vendor: 1,626 bytes, line 59
59h((s=>{if(!n[s]&&!0===n.auto){let r=px(e.el,`.${i[s]}`)[0];r||(r=mx("div",i[s]),r.className=i[s],e.el.append(r)),n[s]=r,t[s]=r}})),n}function bk(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;function r(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e)||t.hostEl.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n&&n.length>1&&1===t.el.querySelectorAll(e).length?n=t.el.querySelector(e):n&&1===n.length&&(n=n[0])),e&&!n?e:n)}function a(e,n){const i=t.params.navigation;(e=_x(e)).forEach((e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))}))}function o(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return a(n,!1),void a(e,!1);a(n,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),s("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),s("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=vk(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=r(e.nextEl),i=r(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}),n=_x(n),i=_x(i);const s=(n,i)=>{n&&n.addEventListener("click","next"===i?c:l),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach((e=>
59s(e,"next"))),i.forEach((e=>s(e,"prev")))}function u(){let{nextEl:e,prevEl:n}=t.navigation;e=_x(e),n=_x(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach((e=>i(e,"next"))),n.forEach((e=>i(e,"prev")))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},i("init",(()=>{!1===t.params.navigation.enabled?h():(d(),o())})),i("toEdge fromEdge lock unlock",(()=>{o()})),i("destroy",(()=>{u()})),i("enable disable",(()=>{let{nextEl:e,prevEl:n}=t.navigation;e=_x(e),n=_x(n),t.enabled?o():[...e,...n].filter((e=>!!e)).forEach((e=>e.classList.add(t.params.navigation.lockClass)))})),i("click",((e,n)=>{let{nextEl:i,prevEl:r}=t.navigation;i=_x(i),r=_x(r);const a=n.target;let o=r.includes(a)||i.includes(a);if(t.isElement&&!o){const e=n.path||n.composedPath&&n.composedPath();e&&(o=e.find((e=>i.includes(e)||r.includes(e))))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):r.length&&(e=r[0].classList.contains(t.params.navigation.hiddenClass)),s(!0===e?"navigationShow":"navigationHide"),[...i,...r].filter((e=>!!e)).forEach((e=>e.classList.toggle(t.params.navigation.hiddenClass)))}}));const h=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),o()},disable:h,update:o,init:d,destroy:u})}function _k(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function Tk(e){let{swiper:t,extendParams:n,on:i,emit:s}=e;const r="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${r}-bullet`,bulletActiveClass:`${r}-bullet-active`,modifierClass:`${r}-`,currentClass:`${r}-current`,totalClass:`${r}-total`,hiddenClass:`${r}-hidden`,progressbarFillClass:`${r}-progressbar-fill`,progressbarOppositeClass:`${r}-progressbar-opposite`,clickableClass:`${r}-clickable`,lockClass:`${r}-lock`,horizontalClass:`${r}-horizontal`,verticalClass:`${r}-vertical`,paginationDisabledClass:`${r}-disabled`}}),t.pagination={el:null,bullets:[]};let a,o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,n){const{bulletActiveClass:i}=t.params.pagination;e&&((e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${n}-${n}`)))}function d(e){const n=e.target.closest(_k(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=yx(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;const e=function(e,t,n){return(t%=n)==1+(e%=n)?"next":t===e-1?"previous":void 0}(t.realIndex,i,t.slides.length);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(i)}else t.slideTo(i)}function u(){const e=t.rtl,n=t.params.pagination;if(l())return;let i,r,d=t.pagination.el;d=_x(d);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,h=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=t.previousRealIndex||0,i=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(i=t.snapIndex,r=t.previousSnapIndex):(r=t.previousIndex||0,i=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const s=t.pagination.bullets;let l,u,h;if(n.dynamicBullets&&(a=bx(s[0],t.isHorizontal()?"width":"height"),d.forEach((e=>{e.style[t.isHorizontal()?"width":"height"]=a*(n.dynamicMainBullets+4)+"px"})),n.dynamicMainBullets>1&&void 0!==r&&(o+=i-(r||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(i-o,0),u=l+(Math.min(s.length,n.dynamicMainBullets)-1),h=(u+l)/2),s.forEac
vendor: 4,666 bytes, line 59
59h((e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map((e=>`${n.bulletActiveClass}${e}`))].map((e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e)).flat();e.classList.remove(...t)})),d.length>1)s.forEach((e=>{const s=yx(e);s===i?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(s>=l&&s<=u&&e.classList.add(...`${n.bulletActiveClass}-main`.split(" ")),s===l&&c(e,"prev"),s===u&&c(e,"next"))}));else{const e=s[i];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&s.forEach(((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")})),n.dynamicBullets){const e=s[l],t=s[u];for(let i=l;i<=u;i+=1)s[i]&&s[i].classList.add(...`${n.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(n.dynamicBullets){const i=Math.min(s.length,n.dynamicMainBullets+4),r=(a*i-a)/2-h*a,o=e?"right":"left";s.forEach((e=>{e.style[t.isHorizontal()?o:"top"]=`${r}px`}))}}d.forEach(((e,r)=>{if("fraction"===n.type&&(e.querySelectorAll(_k(n.currentClass)).forEach((e=>{e.textContent=n.formatFractionCurrent(i+1)})),e.querySelectorAll(_k(n.totalClass)).forEach((e=>{e.textContent=n.formatFractionTotal(h)}))),"progressbar"===n.type){let s;s=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const r=(i+1)/h;let a=1,o=1;"horizontal"===s?a=r:o=r,e.querySelectorAll(_k(n.progressbarFillClass)).forEach((e=>{e.style.transform=`translate3d(0,0,0) scaleX(${a}) scaleY(${o})`,e.style.transitionDuration=`${t.params.speed}ms`}))}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(t,i+1,h),0===r&&s("paginationRender",e)):(0===r&&s("paginationRender",e),s("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)}))}function h(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let i=t.pagination.el;i=_x(i);let r="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?r+=e.renderBullet.call(t,n,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],i.forEach((n=>{"custom"!==e.type&&(n.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(_k(e.bulletClass)))})),"custom"!==e.type&&s("paginationRender",i[0])}function p(){t.params.pagination=vk(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),!n&&"string"==typeof e.el&&(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.find((e=>vx(e,".swiper")[0]===t.el)))),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}),n=_x(n),n.forEach((n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",d),t.enabled||n.classList.add(e.lockClass)})))}function f(){const e=t.params.pagination;if(l())return;let n=t.pagination.el;n&&(n=_x(n),n.forEach((n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",d))}))),t.pagination.bullets&&t.pagination.bullets.forEach((t=>t.classList.remove(...e.bulletActiveClass.split(" "))))}i("changeDirection",(()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;
59n=_x(n),n.forEach((n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)}))})),i("init",(()=>{!1===t.params.pagination.enabled?m():(p(),h(),u())})),i("activeIndexChange",(()=>{typeof t.snapIndex>"u"&&u()})),i("snapIndexChange",(()=>{u()})),i("snapGridLengthChange",(()=>{h(),u()})),i("destroy",(()=>{f()})),i("enable disable",(()=>{let{el:e}=t.pagination;e&&(e=_x(e),e.forEach((e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))))})),i("lock unlock",(()=>{u()})),i("click",((e,n)=>{const i=n.target,r=_x(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);s(!0===e?"paginationShow":"paginationHide"),r.forEach((e=>e.classList.toggle(t.params.pagination.hiddenClass)))}}));const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=_x(e),e.forEach((e=>e.classList.add(t.params.pagination.paginationDisabledClass)))),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=_x(e),e.forEach((e=>e.classList.remove(t.params.pagination.paginationDisabledClass)))),p(),h(),u()},disable:m,render:h,update:u,init:p,destroy:f})}function Sk(e){let{swiper:t,extendParams:n,on:i}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let s,r,a=null,o=(new Date).getTime();function l(e){const t=a;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function c(e){(e=_x(e)).forEach((e=>{e.setAttribute("tabIndex","0")}))}function d(e){(e=_x(e)).forEach((e=>{e.setAttribute("tabIndex","-1")}))}function u(e,t){(e=_x(e)).forEach((e=>{e.setAttribute("role",t)}))}function h(e,t){(e=_x(e)).forEach((e=>{e.setAttribute("aria-roledescription",t)}))}function p(e,t){(e=_x(e)).forEach((e=>{e.setAttribute("aria-label",t)}))}function f(e){(e=_x(e)).forEach((e=>{e.setAttribute("aria-disabled",!0)}))}function m(e){(e=_x(e)).forEach((e=>{e.setAttribute("aria-disabled",!1)}))}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,i=e.target;if(!t.pagination||!t.pagination.el||i!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(_k(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=_x(t.navigation.prevEl);_x(t.navigation.nextEl).includes(i)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?l(n.lastSlideMessage):l(n.nextSlideMessage)),e.includes(i)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?l(n.firstSlideMessage):l(n.prevSlideMessage))}t.pagination&&i.matches(_k(t.params.pagination.bulletClass))&&i.click()}}function y(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function v(){return y()&&t.params.pagination.clickable}const b=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(u(e,"button"),e.addEventListener("keydown",g)),p(e,n),function(e,t){(e=_x(e)).forEach((e=>{e.setAttribute("aria-controls",t)}))}(e,t)},_=e=>{r&&r!==e.target&&!r.contains(e.target)&&(s=!0),t.a11y.clicked=!0},T=()=>{s=!1,requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.destroyed||(t.a11y.clicked=!1)}))}))},S=e=>{o=(new Date).getTime()},w=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus||(new Date).getTime()-o<100)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!n||!t.slides.includes(n))return;r=n;const i=t.slides.indexOf(n)===t.activeIndex,a=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);i||a||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame((()=>{s||(t.params.loop?t.slideToLoop(parseInt(n.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(n),0),s=!1)})))},E=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&h(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&u(t.slides,e.slideRole);const n=t.slides.length;
59e.slideLabelMessage&&t.slides.forEach(((i,s)=>{const r=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):s;p(i,e.slideLabelMessage.replace(/\{\{index\}\}/,r+1).replace(/\{\{slidesLength\}\}/,n))}))},C=()=>{const e=t.params.a11y;t.el.append(a);const n=t.el;e.containerRoleDescriptionMessage&&h(n,e.containerRoleDescriptionMessage),e.containerMessage&&p(n,e.containerMessage),e.containerRole&&u(n,e.containerRole);const i=t.wrapperEl,s=e.id||i.getAttribute("id")||`swiper-wrapper-${function(e){return"x".repeat(e).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}(16)}`,r=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";(function(e,t){(e=_x(e)).forEach((e=>{e.setAttribute("id",t)}))})(i,s),function(e,t){(e=_x(e)).forEach((e=>{e.setAttribute("aria-live",t)}))}(i,r),E();let{nextEl:o,prevEl:l}=t.navigation?t.navigation:{};o=_x(o),l=_x(l),o&&o.forEach((t=>b(t,s,e.nextSlideMessage))),l&&l.forEach((t=>b(t,s,e.prevSlideMessage))),v()&&_x(t.pagination.el).forEach((e=>{e.addEventListener("keydown",g)})),nx().addEventListener("visibilitychange",S),t.el.addEventListener("focus",w,!0),t.el.addEventListener("focus",w,!0),t.el.addEventListener("pointerdown",_,!0),t.el.addEventListener("pointerup",T,!0)};i("beforeInit",(()=>{a=mx("span",t.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")})),i("afterInit",(()=>{t.params.a11y.enabled&&C()})),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",(()=>{t.params.a11y.enabled&&E()})),i("fromEdge toEdge afterInit lock unlock",(()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:n}=t.navigation;n&&(t.isBeginning?(f(n),d(n)):(m(n),c(n))),e&&(t.isEnd?(f(e),d(e)):(m(e),c(e)))}()})),i("paginationUpdate",(()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;y()&&t.pagination.bullets.forEach((n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(u(n,"button"),p(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,yx(n)+1)))),n.matches(_k(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")}))}()})),i("destroy",(()=>{t.params.a11y.enabled&&function(){a&&a.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};e=_x(e),n=_x(n),e&&e.forEach((e=>e.removeEventListener("keydown",g))),n&&n.forEach((e=>e.removeEventListener("keydown",g))),v()&&_x(t.pagination.el).forEach((e=>{e.removeEventListener("keydown",g)})),nx().removeEventListener("visibilitychange",S),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",w,!0),t.el.removeEventListener("pointerdown",_,!0),t.el.removeEventListener("pointerup",T,!0))}()}))}function wk(e){let{swiper:t,extendParams:n,on:i,emit:s,params:r}=e;t.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,o,l,c,d,u,h,p,f,m,g=r&&r.autoplay?r.autoplay.delay:3e3,y=r&&r.autoplay?r.autoplay.delay:3e3,v=(new Date).getTime();function b(e){!t||t.destroyed||!t.wrapperEl||e.target===t.wrapperEl&&(t.wrapperEl.removeEventListener("transitionend",b),!(m||e.detail&&e.detail.bySwiperTouchMove)&&C())}const _=()=>{if(t.destroyed||!t.autoplay.running)return;t.autoplay.paused?c=!0:c&&(y=l,c=!1);const e=t.autoplay.paused?l:v+y-(new Date).getTime();t.autoplay.timeLeft=e,s("autoplayTimeLeft",e,e/g),o=requestAnimationFrame((()=>{_()}))},T=e=>{if(t.destroyed||!t.autoplay.running)return;cancelAnimationFrame(o),_();let n=typeof e>"u"?t.params.autoplay.delay:e;g=t.params.autoplay.delay,y=t.params.autoplay.delay;const i=(()=>{let e;return e=t.virtual&&t.params.virtual.enabled?t.slides.find((e=>e.classList.contains("swiper-slide-active"))):t.slides[t.activeIndex],e?parseInt(e.getAttribute("data-swiper-autoplay"),10):void 0})();!Number.isNaN(i)&&i>0&&typeof e>"u"&&(n=i,g=i,y=i),l=n;const r=t.params.speed,c=()=>{!t||t.destroyed||(t.params.autoplay.reverseDirection?!t.isBeginning||t.params.loop||t.params.rewind?(t.slidePrev(r,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(t.slides.length-1,r,!0,!0),s("autoplay")):!t.isEnd||t.params.loop||t.params.rewind?(t.slideNext(r,!0,!0),s("autoplay")):t.params.autoplay.stopOnLastSlide||(t.slideTo(0,r,!0,!0),s("autoplay")),t.params.cssMode&&(v=(new Date).getTime(),requestAnimationFrame((()=>{T()}))))};return n>0?(clearTimeout(a),a=setTimeout((()=>{c()}),n)):requestAnimationFrame((()=>{c()})),n},S=()=>{v=(new Date).getTime(),t.autoplay.running=!0,T(),s("autoplayStart")},w=()=>
59{t.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(o),s("autoplayStop")},E=(e,n)=>{if(t.destroyed||!t.autoplay.running)return;clearTimeout(a),e||(f=!0);const i=()=>{s("autoplayPause"),t.params.autoplay.waitForTransition?t.wrapperEl.addEventListener("transitionend",b):C()};if(t.autoplay.paused=!0,n)return p&&(l=t.params.autoplay.delay),p=!1,void i();l=(l||t.params.autoplay.delay)-((new Date).getTime()-v),(!(t.isEnd&&l<0)||t.params.loop)&&(l<0&&(l=0),i())},C=()=>{t.isEnd&&l<0&&!t.params.loop||t.destroyed||!t.autoplay.running||(v=(new Date).getTime(),f?(f=!1,T(l)):T(),t.autoplay.paused=!1,s("autoplayResume"))},x=()=>{if(t.destroyed||!t.autoplay.running)return;const e=nx();"hidden"===e.visibilityState&&(f=!0,E(!0)),"visible"===e.visibilityState&&C()},k=e=>{"mouse"===e.pointerType&&(f=!0,m=!0,!t.animating&&!t.autoplay.paused&&E(!0))},I=e=>{"mouse"===e.pointerType&&(m=!1,t.autoplay.paused&&C())};i("init",(()=>{t.params.autoplay.enabled&&(t.params.autoplay.pauseOnMouseEnter&&(t.el.addEventListener("pointerenter",k),t.el.addEventListener("pointerleave",I)),nx().addEventListener("visibilitychange",x),S())})),i("destroy",(()=>{t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("pointerenter",k),t.el.removeEventListener("pointerleave",I)),nx().removeEventListener("visibilitychange",x),t.autoplay.running&&w()})),i("_freeModeStaticRelease",(()=>{(u||f)&&C()})),i("_freeModeNoMomentumRelease",(()=>{t.params.autoplay.disableOnInteraction?w():E(!0,!0)})),i("beforeTransitionStart",((e,n,i)=>{t.destroyed||!t.autoplay.running||(i||!t.params.autoplay.disableOnInteraction?E(!0,!0):w())})),i("sliderFirstMove",(()=>{if(!t.destroyed&&t.autoplay.running){if(t.params.autoplay.disableOnInteraction)return void w();d=!0,u=!1,f=!1,h=setTimeout((()=>{f=!0,u=!0,E(!0)}),200)}})),i("touchEnd",(()=>{if(!t.destroyed&&t.autoplay.running&&d){if(clearTimeout(h),clearTimeout(a),t.params.autoplay.disableOnInteraction)return u=!1,void(d=!1);u&&t.params.cssMode&&C(),u=!1,d=!1}})),i("slideChange",(()=>{t.destroyed||!t.autoplay.running||(p=!0)})),Object.assign(t.autoplay,{start:S,stop:w,pause:E,resume:C})}function Ek(e){let t,n,i,s,{swiper:r,extendParams:a,on:o}=e;a({grid:{rows:1,fill:"column"}});const l=()=>{let e=r.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*r.size:"string"==typeof e&&(e=parseFloat(e)),e};o("init",(()=>{s=r.params.grid&&r.params.grid.rows>1})),o("update",(()=>{const{params:e,el:t}=r,n=e.grid&&e.grid.rows>1;s&&!n?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),i=1,r.emitContainerClasses()):!s&&n&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),r.emitContainerClasses()),s=n})),r.grid={initSlides:e=>{const{slidesPerView:s}=r.params,{rows:a,fill:o}=r.params.grid,l=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:e.length;i=Math.floor(l/a),t=Math.floor(l/a)===l/a?l:Math.ceil(l/a)*a,"auto"!==s&&"row"===o&&(t=Math.max(t,s*a)),n=t/a},unsetSlides:()=>{r.slides&&r.slides.forEach((e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[r.getDirectionLabel("margin-top")]="")}))},updateSlide:(e,s,a)=>{const{slidesPerGroup:o}=r.params,c=l(),{rows:d,fill:u}=r.params.grid,h=r.virtual&&r.params.virtual.enabled?r.virtual.slides.length:a.length;let p,f,m;if("row"===u&&o>1){const n=Math.floor(e/(o*d)),i=e-d*o*n,r=0===n?o:Math.min(Math.ceil((h-n*d*o)/d),o);m=Math.floor(i/r),f=i-m*r+n*o,p=f+m*t/d,s.style.order=p}else"column"===u?(f=Math.floor(e/d),m=e-f*d,(f>i||f===i&&m===d-1)&&(m+=1,m>=d&&(m=0,f+=1))):(m=Math.floor(e/n),f=e-m*n);s.row=m,s.column=f,s.style.height=`calc((100% - ${(d-1)*c}px) / ${d})`,s.style[r.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",s.swiperSlideGridSet=!0},updateWrapperSize:(e,n)=>{const{centeredSlides:i,roundLengths:s}=r.params,a=l(),{rows:o}=r.params.grid;if(r.virtualSize=(e+a)*t,r.virtualSize=Math.ceil(r.virtualSize/o)-a,r.params.cssMode||(r.wrapperEl.style[r.getDirectionLabel("width")]=`${r.virtualSize+a}px`),i){const e=[];for(let t=0;t<n.length;t+=1){let i=n[t];
59s&&(i=Math.floor(i)),n[t]<r.virtualSize+n[0]&&e.push(i)}n.splice(0,n.length),n.push(...e)}}}}const Ck={key:0,class:"hero-banner-wrapper"},xk={class:"hero-banner-slide"},kk=["src","alt"],Ik={class:"hero-banner-content"},Ak={class:"hero-banner-title"},Pk=["onClick"],Ok={key:1,class:"carousel-wrapper"},Lk={class:"swiper-container-wrapper",style:{position:"relative"}},Nk={class:"carousel-slide"},Dk=["src","alt"],Mk={key:2,class:"gallery-wrapper"},Rk=["onClick"],Bk=["src","alt"],Uk={class:"modal-content"},Fk={class:"gallery-slide"},jk=["src","alt"],Vk=Si({__name:"ImageCollection",props:{image:{type:Object,required:!0},type:{type:String,default:"carousel",required:!0},wrapperClass:String},setup(e){const t=[Ek,bk,Tk,Sk,yk,wk],n=e,i=Pa((()=>{const e=n.image.imageItems.length;return{slidesPerView:1,spaceBetween:30,loop:e>1,keyboard:{enabled:!0},autoplay:e>1?{delay:3e3,disableOnInteraction:!1}:void 0,a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"}}})),s=jt({slidesPerView:1,spaceBetween:0,loop:!0,keyboard:{enabled:!0},navigation:{nextEl:null,prevEl:null},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"},breakpoints:{600:{slidesPerView:2,spaceBetween:15},1200:{slidesPerView:3,spaceBetween:15},1500:{slidesPerView:4,spaceBetween:15},2100:{slidesPerView:5,spaceBetween:15}}}),r=Pa((()=>({slidesPerView:1,spaceBetween:0,loop:!0,keyboard:{enabled:!0},a11y:{enabled:!0,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",slideLabelMessage:"Slide {{index}} of {{slidesLength}}"},breakpoints:{600:{slidesPerView:2,spaceBetween:15},1200:{slidesPerView:3,spaceBetween:15},1500:{slidesPerView:4,spaceBetween:15},2100:{slidesPerView:5,spaceBetween:15}}}))),a=en(null),o=en(null);Yi((()=>{a.value&&o.value&&(s.navigation.nextEl=a.value,s.navigation.prevEl=o.value,a.value.addEventListener("keydown",(e=>{var t;"Enter"===e.key&&(null==(t=a.value)||t.click())})),o.value.addEventListener("keydown",(e=>{var t;"Enter"===e.key&&(null==(t=o.value)||t.click())})))}));const l=Pa((()=>[...n.image.imageItems].sort(((e,t)=>
59e.sortKey<t.sortKey?-1:e.sortKey>t.sortKey?1:0)))),c=Pa((()=>{var e;const t=null==(e=n.type)?void 0:e.toLowerCase();return"banner"===t?"banner":"gallery"===t?"gallery":"carousel"})),d=en(!1),u=en(0),h=()=>{d.value=!1};return(n,p)=>(Vr(),Gr("div",{class:ne(e.wrapperClass)},["banner"===c.value?(Vr(),Gr("div",Ck,[Zr(rn(mk),la({modules:t},i.value),{default:Gn((()=>[(Vr(!0),Gr(Mr,null,ds(l.value,((e,t)=>(Vr(),Wr(rn(gk),{key:t},{default:Gn((()=>[Jr("div",xk,[us(n.$slots,"banner-content",{content:e},(()=>[Jr("img",{src:e.path,alt:e.altText,class:"hero-banner-image"},null,8,kk),Jr("div",Ik,[Jr("h1",Ak,we(e.title),1),Jr("button",{onClick:t=>n.$emit("navigate",e.link),class:"hero-banner-button"}," See all programmes ",8,Pk)])]),!0)])])),_:2},1024)))),128))])),_:3},16)])):"carousel"===c.value?(Vr(),Gr("div",Ok,[Jr("div",Lk,[Zr(rn(mk),la({modules:t},s,{style:{width:"100%"}}),{default:Gn((()=>[(Vr(!0),Gr(Mr,null,ds(l.value,((e,t)=>(Vr(),Wr(rn(gk),{key:t},{default:Gn((()=>[Jr("div",Nk,[us(n.$slots,"carousel-content",{content:e},(()=>[Jr("img",{src:e.path,alt:e.altText,class:"carousel-image"},null,8,Dk)]),!0)])])),_:2},1024)))),128))])),_:3},16),Jr("div",{class:"swiper-button-next",ref_key:"nextElCarousel",ref:a,tabindex:"0"},null,512),Jr("div",{class:"swiper-button-prev",ref_key:"prevElCarousel",ref:o,tabindex:"0"},null,512)])])):(Vr(),Gr("div",Mk,[(Vr(!0),Gr(Mr,null,ds(l.value,((e,t)=>(Vr(),Gr("div",{key:t,class:"gallery-item",onClick:e=>(e=>{u.value=e,d.value=!0})(t)},[Jr("img",{src:e.path,alt:e.altText},null,8,Bk)],8,Rk)))),128))])),d.value?(Vr(),Gr("div",{key:3,class:"modal-overlay",role:"dialog","aria-modal":"true",onClick:ul(h,["self"])},[Jr("div",Uk,[Jr("button",{class:"close-button",onClick:h},"X"),Zr(rn(mk),la({modules:t},r.value,{initialSlide:u.value}),{default:Gn((()=>[(Vr(!0),Gr(Mr,null,ds(l.value,((e,t)=>(Vr(),Wr(rn(gk),{key:t},{default:Gn((()=>[Jr("div",Fk,[us(n.$slots,"gallery-content",{content:e},(()=>[Jr("img",{src:e.path,alt:e.altText,class:"gallery-image"},null,8,jk)]),!0)])])),_:2},1024)))),128))])),_:3},16,["initialSlide"]),Jr("div",{class:"swiper-button-next",ref_key:"nextElCarousel",ref:a,tabindex:"0"},null,512),Jr("div",{class:"swiper-button-prev",ref_key:"prevElCarousel",ref:o,tabindex:"0"},null,512)])])):sa("",!0)],2))}}),$k=LC(Vk,[["__scopeId","data-v-0678d2b7"]]),qk={install(e,t={}){Number(e.version.split(".")[0])<3?console.warn("This plugin requires Vue 3"):(e.provide("station",t),e.component("Article",NC),e.component("ArticleList",UC),e.component("Form",JC),e.component("ImageCollection",$k))}};var Hk;!function(e){e.DEBUG="DEBUG",e.ERROR="ERROR",e.INFO="INFO",e.WARN="WARN",e.VERBOSE="VERBOSE",e.NONE="NONE"}(Hk||(Hk={}));const zk={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class Gk{constructor(e,t=Hk.WARN){this.name=e,this.level=t,this._pluggables=[]}_padding(e){return e<10?"0"+e:""+e}_ts(){const e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()}configure(e){return e?(this._config=e,this._config):this._config}_log(e,...t){let n=this.level;Gk.LOG_LEVEL&&(n=Gk.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(n=window.LOG_LEVEL);if(!(zk[e]>=zk[n]))return;let i=console.log.bind(console);e===Hk.ERROR&&console.error&&(i=console.error.bind(console)),e===Hk.WARN&&console.warn&&(i=console.warn.bind(console)),Gk.BIND_ALL_LOG_LEVELS&&(e===Hk.INFO&&console.info&&(i=console.info.bind(console)),e===Hk.DEBUG&&console.debug&&(i=console.debug.bind(console)));const s=`[${e}] ${this._ts()} ${this.name}`;let r="";if(1===t.length&&"string"==typeof t[0])r=`${s} - ${t[0]}`,i(r);else if(1===t.length)r=`${s} ${t[0]}`,i(s,t[0]);else if("string"==typeof t[0]){let e=t.slice(1);1===e.length&&(e=e[0]),r=`${s} - ${t[0]} ${e}`,i(`${s} - ${t[0]}`,e)}else r=`${s} ${t}`,i(s,t);for(const a of this._pluggables){const e={message:r,timestamp:Date.now()};a.pushLogs([e])}}log(...e){this._log(Hk.INFO,...e)}info(...e){this._log(Hk.INFO,...e)}warn(...e){this._log(Hk.WARN,...e)}error(...e){this._log(Hk.ERROR,...e)}debug(...e){this._log(Hk.DEBUG,...e)}verbose(...e){this._log(Hk.VERBOSE,...e)}addPluggable(e){e&&"Logging"===e.getCategoryName()&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}Gk.LOG_LEVEL=null,Gk.BIND_ALL_LOG_LEVELS=!1;
59class Wk extends Error{constructor({message:e,name:t,recoverySuggestion:n,underlyingError:i,metadata:s}){if(super(e),this.name=t,this.underlyingError=i,this.recoverySuggestion=n,s){const{extendedRequestId:e,httpStatusCode:t,requestId:n}=s;this.metadata={extendedRequestId:e,httpStatusCode:t,requestId:n}}this.constructor=Wk,Object.setPrototypeOf(this,Wk.prototype)}}var Xk;!function(e){e.NoEndpointId="NoEndpointId",e.PlatformNotSupported="PlatformNotSupported",e.Unknown="Unknown",e.NetworkError="NetworkError"}(Xk||(Xk={}));const Kk=(e,t=Wk)=>(n,i,s)=>{const{message:r,recoverySuggestion:a}=e[i];if(!n)throw new t({name:i,message:s?`${r} ${s}`:r,recoverySuggestion:a})},Yk="undefined"!=typeof Symbol?Symbol("amplify_default"):"@@amplify_default",Qk=new Gk("Hub");const Jk=new class{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,t){const n=this.listeners.get(e);n?this.listeners.set(e,[...n.filter((({callback:e})=>e!==t))]):Qk.warn(`No listeners for ${e}`)}dispatch(e,t,n,i){if("string"==typeof e&&this.protectedChannels.indexOf(e)>-1){i===Yk||Qk.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`)}const s={channel:e,payload:{...t},source:n,patternInfo:[]};try{this._toListeners(s)}catch(s$){Qk.error(s$)}}listen(e,t,n="noname"){let i;if("function"!=typeof t)throw new Wk({name:"NoHubcallbackProvidedException",message:"No callback supplied to Hub"});i=t;let s=this.listeners.get(e);return s||(s=[],this.listeners.set(e,s)),s.push({name:n,callback:i}),()=>{this._remove(e,i)}}_toListeners(e){const{channel:t,payload:n}=e,i=this.listeners.get(t);i&&i.forEach((i=>{Qk.debug(`Dispatching to ${t} with `,n);try{i.callback(e)}catch(s$){Qk.error(s$)}}))}}("__default__"),Zk={convert(e,t){let n=e;return t?.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),(()=>{if("undefined"!=typeof window&&"function"==typeof window.atob)return window.atob;if("function"==typeof atob)return atob;throw new Wk({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})})()(n)}};var eI;!function(e){e.AuthTokenConfigException="AuthTokenConfigException",e.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",e.AuthUserPoolException="AuthUserPoolException",e.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",e.OAuthNotConfigureException="OAuthNotConfigureException"}(eI||(eI={}));const tI=Kk({[eI.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[eI.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[eI.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[eI.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[eI.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}});function nI(e){let t=!0;t=!!e&&(!!e.userPoolId&&!!e.userPoolClientId),tI(t,eI.AuthUserPoolException)}function iI(e){tI(!!e?.identityPoolId,eI.InvalidIdentityPoolIdException)}function sI(e){const t=e.split(".");if(3!==t.length)throw new Error("Invalid token");try{const n=t[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(Zk.convert(n).split("").map((e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`)).join(""));return{toString:()=>e,payload:JSON.parse(i)}}catch(n){throw new Error("Invalid token payload")}}const rI=e=>{const t=Reflect.ownKeys(e);for(const n of t){const t=e[n];(t&&"object"==typeof t||"function"==typeof t)&&rI(t)}return Object.freeze(e)},aI=new Gk("parseAWSExports"),oI={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},lI=e=>e?.split(",")??[],cI=({domain:e,scope:t,redirectSignIn:n,redirectSignOut:i,responseType:s})=>({domain:e,scopes:t,redirectSignIn:lI(n),redirectSignOut:lI(i),responseType:s}),dI=e=>e.map((e=>{const t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)})),uI=Symbol("oauth-listener");let hI;const pI=new Uint8Array(16);function fI(){if(!hI&&(hI="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!hI))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return hI(pI)}const mI=[];for(let r$=0;r$<256;++r$)mI.push((r$+256).toString(16).slice(1));const gI={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yI(e){const t={};if(e.storage&&(t.Storage=function(e){if(!e)return;const{bucket_name:t,aws_region:n,buckets:i}=e;return{S3:{bucket:t,region:n,buckets:i&&wI(i)}}}(e.storage)),e.auth&&(t.Auth=function(e){if(!e)return;const{user_pool_id:t,user_pool_client_id:n,identity_pool_id:i,password_policy:s,mfa_configuration:r,mfa_methods:a,unauthenticated_identities_enabled:o,oauth:l,username_attributes:c,standard_required_attributes:d,groups:u}=e,h={Cognito:{userPoolId:t,userPoolClientId:n,groups:u}};return i&&(h.Cognito={...h.Cognito,identityPoolId:i}),s&&(h.Cognito.passwordFormat={requireLowercase:s.require_lowercase,requireNumbers:s.require_numbers,requireUppercase:s.require_uppercase,requireSpecialCharacters:s.require_symbols,minLength:s.min_length??6}),r&&(h.Cognito.mfa={status:SI(r),smsEnabled:a?.includes("SMS"),totpEnabled:a?.includes("TOTP")}),o&&(h.Cognito.allowGuestAccess=o),l&&(h.Cognito.loginWith={oauth:{domain:l.domain,redirectSignIn:l.redirect_sign_in_uri,redirectSignOut:l.redirect_sign_out_uri,responseType:"token"===l.response_type?"token":"code",scopes:l.scopes,providers:TI(l.identity_providers)}}),c&&(h.Cognito.loginWith={...h.Cognito.loginWith,email:c.includes("email"),phone:c.includes("phone_number"),username:c.includes("username")}),d&&(h.Cognito.userAttributes=d.reduce(((e,t)=>({...e,[t]:{required:!0}})),{})),h}(e.auth)),e.analytics&&(t.Analytics=function(e){if(!e?.amazon_pinpoint)return;const{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}(e.analytics)),e.geo&&(t.Geo=function(e){if(!e)return;const{aws_region:t,geofence_collections:n,maps:i,search_indices:s}=e;return{LocationService:{region:t,searchIndices:s,geofenceCollections:n,maps:i}}}(e.geo)),e.data&&(t.API=function(e){if(!e)return;const{aws_region:t,default_authorization_type:n,url:i,api_key:s,model_introspection:r}=e;return{GraphQL:{endpoint:i,defaultAuthMode:bI(n),region:t,apiKey:s,modelIntrospection:r}}}(e.data)),e.custom){const n=function(e){if(!e?.events)return;const{url:t,aws_region:n,api_key:i,default_authorization_type:s}=e.events;return{Events:{endpoint:t,defaultAuthMode:bI(s),region:n,apiKey:i}}}(e.custom);
59n&&"Events"in n&&(t.API={...t.API,...n})}return e.notifications&&(t.Notifications=function(e){if(!e)return;const{aws_region:t,channels:n,amazon_pinpoint_app_id:i}=e,s=n.includes("IN_APP_MESSAGING"),r=n.includes("APNS")||n.includes("FCM");if(!s&&!r)return;const a={};return s&&(a.InAppMessaging={Pinpoint:{appId:i,region:t}}),r&&(a.PushNotification={Pinpoint:{appId:i,region:t}}),a}(e.notifications)),t}const vI={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function bI(e){return vI[e]}const _I={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function TI(e=[]){return e.reduce(((e,t)=>(void 0!==_I[t]&&e.push(_I[t]),e)),[])}function SI(e){return"OPTIONAL"===e?"optional":"REQUIRED"===e?"on":"off"}function wI(e){const t={};return e.forEach((({name:e,bucket_name:n,aws_region:i,paths:s})=>{if(e in t)throw new Error(`Duplicate friendly name found: ${e}. Name must be unique.`);const r=s?Object.entries(s).reduce(((e,[t,n])=>(void 0!==n&&(e[t]=n),e)),{}):void 0;t[e]={bucketName:n,region:i,paths:r}})),t}const EI=e=>Object.keys(e).some((e=>e.startsWith("aws_")))?((e={})=>{if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new Wk({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from  `amplifyconfiguration.json`."});const{aws_appsync_apiKey:t,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:i,aws_appsync_region:s,aws_bots_config:r,aws_cognito_identity_pool_id:a,aws_cognito_sign_up_verification_method:o,aws_cognito_mfa_configuration:l,aws_cognito_mfa_types:c,aws_cognito_password_protection_settings:d,aws_cognito_verification_mechanisms:u,aws_cognito_signup_attributes:h,aws_cognito_social_providers:p,aws_cognito_username_attributes:f,aws_mandatory_sign_in:m,aws_mobile_analytics_app_id:g,aws_mobile_analytics_app_region:y,aws_user_files_s3_bucket:v,aws_user_files_s3_bucket_region:b,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:_,aws_user_pools_id:T,aws_user_pools_web_client_id:S,geo:w,oauth:E,predictions:C,aws_cloud_logic_custom:x,Notifications:k,modelIntrospection:I}=e,A={};g&&(A.Analytics={Pinpoint:{appId:g,region:y}});const{InAppMessaging:P,Push:O}=k??{};if(P?.AWSPinpoint||O?.AWSPinpoint){if(P?.AWSPinpoint){const{appId:e,region:t}=P.AWSPinpoint;A.Notifications={InAppMessaging:{Pinpoint:{appId:e,region:t}}}}if(O?.AWSPinpoint){const{appId:e,region:t}=O.AWSPinpoint;A.Notifications={...A.Notifications,PushNotification:{Pinpoint:{appId:e,region:t}}}}}if(Array.isArray(r)&&(A.Interactions={LexV1:Object.fromEntries(r.map((e=>[e.name,e])))}),i){const e=oI[n];e||aI.debug(`Invalid authentication type ${n}. Falling back to IAM.`),A.API={GraphQL:{endpoint:i,apiKey:t,region:s,defaultAuthMode:e??"iam"}},I&&(A.API.GraphQL.modelIntrospection=I)}const L=l?{status:l&&l.toLowerCase(),totpEnabled:c?.includes("TOTP")??!1,smsEnabled:c?.includes("SMS")??!1}:void 0,N=d?{minLength:d.passwordPolicyMinLength,requireLowercase:d.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:d.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:d.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:d.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,D=Array.from(new Set([...u??[],...h??[]])).reduce(((e,t)=>({...e,[t.toLowerCase()]:{required:!0}})),{}),M=f?.includes("EMAIL")??!1,R=f?.includes("PHONE_NUMBER")??!1;(a||T)&&(A.Auth={Cognito:{identityPoolId:a,allowGuestAccess:"enable"!==m,signUpVerificationMethod:o,userAttributes:D,userPoolClientId:S,userPoolId:T,mfa:L,passwordFormat:N,loginWith:{username:!(M||R),email:M,phone:R}}});const B=!!E&&Object.keys(E).length>0,U=!!p&&p.length>0;if(A.Auth&&B&&(A.Auth.Cognito.loginWith={...A.Auth.Cognito.loginWith,oauth:{...cI(E),...U&&{providers:dI(p)}}}),v&&(A.Storage={S3:{bucket:v,region:b,dangerouslyConnectToHttpEndpointForTesting:_}}),w){const{amazon_location_service:e}=w;A.Geo={LocationService:{maps:e.maps,geofenceCollections:e.geofenceCollections,searchIndices:e.search_indices,region:e.region}}}if(x&&(A.API={...A.API,REST:x.reduce(((e,t)=>{const{name:n,endpoint:i,region:s,service:r}=t;return{...e,[n]:{endpoint:i,...r?{service:r}:void 0,...s?{region:s}:void 0}}}),{})}),C){const{VoiceId:e}
59=C?.convert?.speechGenerator?.defaults??{};A.Predictions=e?{...C,convert:{...C.convert,speechGenerator:{...C.convert.speechGenerator,defaults:{voiceId:e}}}}:C}return A})(e):function(e){const{version:t}=e;return!!t&&t.startsWith("1")}(e)?yI(e):e;function CI(e,t,n,i){return new(n||(n=Promise))((function(s,r){function a(e){try{l(i.next(e))}catch(s$){r(s$)}}function o(e){try{l(i.throw(e))}catch(s$){r(s$)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))}function xI(e,t){var n,i,s,r={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(r=0)),r;)try{if(n=1,i&&(s=2&o[0]?i.return:o[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;switch(i=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(s=r.trys,(s=s.length>0&&s[s.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(6===o[0]&&r.label<s[1]){r.label=s[1],s=o;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(o);break}s[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(s$){o=[6,s$],i=0}finally{n=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}"function"==typeof SuppressedError&&SuppressedError;var kI=64,II=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),AI=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],PI=Math.pow(2,53)-1,OI=function(){function e(){this.state=Int32Array.from(AI),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>PI)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===kI&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%kI>=56){for(var i=this.bufferLength;i<kI;i++)t.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<56;i++)t.setUint8(i,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}var s=new Uint8Array(32);for(i=0;i<8;i++)s[4*i]=this.state[i]>>>24&255,s[4*i+1]=this.state[i]>>>16&255,s[4*i+2]=this.state[i]>>>8&255,s[4*i+3]=this.state[i]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,n=t[0],i=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],c=t[7],d=0;d<kI;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var u=this.temp[d-2],h=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10,p=((u=this.temp[d-15])>>>7|u<<25)^(u>>>18|u<<14)^u>>>3;this.temp[d]=(h+this.temp[d-7]|0)+(p+this.temp[d-16]|0)}var f=(((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&o^~a&l)|0)+(c+(II[d]+this.temp[d]|0)|0)|0,m=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&i^n&s^i&s)|0;c=l,l=o,o=a,a=r+f|0,r=s,s=i,i=n,n=f+m|0}t[0]+=n,t[1]+=i,t[2]+=s,t[3]+=r,t[4]+=a,t[5]+=o,t[6]+=l,t[7]+=c},e}();var LI="undefined"!=typeof Buffer&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:e=>(new TextEncoder).encode(e);function NI(e){return e instanceof Uint8Array?e:"string"==typeof e?LI(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var DI=function(){function e(e){this.secret=e,this.hash=new OI,this.reset()}return e.prototype.update=function(e){var t;if(("string"==typeof(t=e)?0!==t.length:0!==t.byteLength)&&!this.error)try{this.hash.update(NI(e))}catch(s$){this.error=s$}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return CI(this,void 0,void 0,(function(){return xI(this,(function(e){return[2,this.digestSync()]}))}))},e.prototype.reset=function(){if(this.hash=new OI,this.secret){this.outer=new OI;var e=function(e){var t=NI(e);if(t.byteLength>kI){var n=new OI;n.update(t),t=n.digest()}var i=new Uint8Array(kI);return i.set(t),i}(this.secret),t=new Uint8Array(kI);t.set(e);for(var n=0;n<kI;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(n=0;n<e.byteLength;n++)e[n]=0}},e}();const MI={};for(let r$=0;r$<256;r$++){let e=r$.toString(16).toLowerCase();1===e.length&&(e=`0${e}`),MI[r$]=e}var RI,BI,UI,FI,jI,VI,$I,qI,HI,zI,GI,WI,XI,KI;!function(e){e.WebUnknown="0",e.React="1",e.NextJs="2",e.Angular="3",e.VueJs="4",e.Nuxt="5",e.Svelte="6",e.ServerSideUnknown="100",e.ReactSSR="101",e.NextJsSSR="102",e.AngularSSR="103",e.VueJsSSR="104",e.NuxtSSR="105",e.SvelteSSR="106",e.ReactNative="201",e.Expo="202"}(RI||(RI={})),function(e){e.AI="ai",e.API="api",e.Auth="auth",e.Analytics="analytics",e.DataStore="datastore",e.Geo="geo",e.InAppMessaging="inappmessaging",e.Interactions="interactions",e.Predictions="predictions",e.PubSub="pubsub",e.PushNotification="pushnotification",e.Storage="storage"}(BI||(BI={})),function(e){e.CreateConversation="1",e.GetConversation="2",e.ListConversations="3",e.DeleteConversation="4",e.SendMessage="5",e.ListMessages="6",e.OnMessage="7",e.Generation="8",e.UpdateConversation="9"}(UI||(UI={})),function(e){e.Record="1",e.IdentifyUser="2"}(FI||(FI={})),function(e){e.GraphQl="1",e.Get="2",e.Post="3",e.Put="4",e.Patch="5",e.Del="6",e.Head="7"}(jI||(jI={})),function(e){e.SignUp="1",e.ConfirmSignUp="2",e.ResendSignUpCode="3",e.SignIn="4",e.FetchMFAPreference="6",e.UpdateMFAPreference="7",e.SetUpTOTP="10",e.VerifyTOTPSetup="11",e.ConfirmSignIn="12",e.DeleteUserAttributes="15",e.DeleteUser="16",e.UpdateUserAttributes="17",e.FetchUserAttributes="18",e.ConfirmUserAttribute="22",e.SignOut="26",e.UpdatePassword="27",e.ResetPassword="28",e.ConfirmResetPassword="29",e.FederatedSignIn="30",e.RememberDevice="32",e.ForgetDevice="33",e.FetchDevices="34",e.SendUserAttributeVerificationCode="35",e.SignInWithRedirect="36",e.StartWebAuthnRegistration="37",e.CompleteWebAuthnRegistration="38",e.ListWebAuthnCredentials="39",e.DeleteWebAuthnCredential="40"}(VI||(VI={})),function(e){e.Subscribe="1",e.GraphQl="2"}($I||($I={})),function(e){e.SearchByText="0",e.SearchByCoordinates="1",e.SearchForSuggestions="2",e.SearchByPlaceId="3",e.SaveGeofences="4",e.GetGeofence="5",e.ListGeofences="6",e.DeleteGeofences="7"}(qI||(qI={})),function(e){e.SyncMessages="1",e.IdentifyUser="2",e.NotifyMessageInteraction="3"}
59(HI||(HI={})),function(e){e.None="0"}(zI||(zI={})),function(e){e.Convert="1",e.Identify="2",e.Interpret="3"}(GI||(GI={})),function(e){e.Subscribe="1"}(WI||(WI={})),function(e){e.InitializePushNotifications="1",e.IdentifyUser="2"}(XI||(XI={})),function(e){e.UploadData="1",e.DownloadData="2",e.List="3",e.Copy="4",e.Remove="5",e.GetProperties="6",e.GetUrl="7",e.GetDataAccess="8",e.ListCallerAccessGrants="9"}(KI||(KI={}));const YI=()=>"undefined"!=typeof global,QI=()=>"undefined"!=typeof window,JI=()=>"undefined"!=typeof document,ZI=()=>"undefined"!=typeof process,eA=(e,t)=>!!Object.keys(e).find((e=>e.startsWith(t)));var tA={};var nA={};var iA={};const sA=[{platform:RI.Expo,detectionMethod:function(){return YI()&&void 0!==global.expo}},{platform:RI.ReactNative,detectionMethod:function(){return"undefined"!=typeof navigator&&void 0!==navigator.product&&"ReactNative"===navigator.product}},{platform:RI.NextJs,detectionMethod:function(){return QI()&&window.next&&"object"==typeof window.next}},{platform:RI.Nuxt,detectionMethod:function(){return QI()&&(void 0!==window.__NUXT__||void 0!==window.$nuxt)}},{platform:RI.Angular,detectionMethod:function(){const e=Boolean(JI()&&document.querySelector("[ng-version]")),t=Boolean(QI()&&void 0!==window.ng);return e||t}},{platform:RI.React,detectionMethod:function(){const e=e=>e.startsWith("_react")||e.startsWith("__react");return JI()&&Array.from(document.querySelectorAll("[id]")).some((t=>Object.keys(t).find(e)))}},{platform:RI.VueJs,detectionMethod:function(){return QI()&&eA(window,"__VUE")}},{platform:RI.Svelte,detectionMethod:function(){return QI()&&eA(window,"__SVELTE")}},{platform:RI.WebUnknown,detectionMethod:function(){return QI()}},{platform:RI.NextJsSSR,detectionMethod:function(){return YI()&&(eA(global,"__next")||eA(global,"__NEXT"))}},{platform:RI.NuxtSSR,detectionMethod:function(){return YI()&&void 0!==global.__NUXT_PATHS__}},{platform:RI.ReactSSR,detectionMethod:function(){return ZI()&&!!Object.keys(tA).find((e=>e.includes("react")))}},{platform:RI.VueJsSSR,detectionMethod:function(){return YI()&&eA(global,"__VUE")}},{platform:RI.AngularSSR,detectionMethod:function(){return ZI()&&"object"==typeof iA&&iA.npm_lifecycle_script?.startsWith("ng ")||!1}},{platform:RI.SvelteSSR,detectionMethod:function(){return ZI()&&!!Object.keys(nA).find((e=>e.includes("svelte")))}}];let rA;const aA=[];let oA=!1;const lA=()=>{if(!rA){if(rA=sA.find((e=>e.detectionMethod()))?.platform||RI.ServerSideUnknown,oA)for(;aA.length;)aA.pop()?.();else aA.forEach((e=>{e()}));cA(RI.ServerSideUnknown,10),cA(RI.WebUnknown,10)}return rA};function cA(e,t){rA!==e||oA||setTimeout((()=>{rA=void 0,oA=!0,setTimeout(lA,1e3)}),t)}const dA={},uA=({category:e,action:t}={})=>{const n=[["aws-amplify",(i="6.14.4",i.replace(/\+.*/,""))]];var i;if(e&&n.push([e,t]),n.push(["framework",lA()]),e&&t){const i=((e,t)=>dA[e]?.[t]?.additionalDetails)(e,t);i&&i.forEach((e=>{n.push(e)}))}return n},hA=e=>uA(e).map((([e,t])=>e&&t?`${e}/${t}`:e)).join(" ");class pA{configure(e,t){this.authConfig=e,this.authOptions=t}async fetchAuthSession(e={}){let t,n;const i=await this.getTokens(e);return i?(n=i.accessToken?.payload?.sub,t=await(this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:i,authenticated:!0,forceRefresh:e.forceRefresh}))):t=await(this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:e.forceRefresh})),{tokens:i,credentials:t?.credentials,identityId:t?.identityId,userSub:n}}async clearCredentials(){await(this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId())}async getTokens(e){return await(this.authOptions?.tokenProvider?.getTokens(e))??void 0}}const fA=new class{constructor(){this.oAuthListener=void 0,this.resourcesConfig={},this.libraryOptions={},this.Auth=new pA}configure(e,t){const n=EI(e);this.resourcesConfig=n,t&&(this.libraryOptions=t),this.resourcesConfig=rI(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),Jk.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",Yk),this.notifyOAuthListener()}getConfig(){return this.resourcesConfig}[uI](e){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?e(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=e}notifyOAuthListener(){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth&&this.oAuthListener&&(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}},mA=e=>{const{headers:t,statusCode:n}=e;return{...gA(e)?e.$metadata:{},httpStatusCode:n,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},gA=e=>"object"==typeof e?.$metadata,yA=async e=>{if(!e||e.statusCode<300)return;const t=await vA(e),n=(e=>{const[t]=e.toString().split(/[,:]+/);return t.includes("#")?t.split("#")[1]:t})(e.headers["x-amzn-errortype"]??t.code??t.__type??"UnknownError"),i=t.message??t.Message??"Unknown error",s=new Error(i);return Object.assign(s,{name:n,$metadata:mA(e)})},vA=async e=>{if(!e.body)throw new Error("Missing response payload");const t=await e.body.json();return Object.assign(t,{$metadata:mA(e)})},bA=(e,t,n,i)=>async(s,r)=>{const a={...i,...s},o=await a.endpointResolver(a,r),l=await t(r,o),c=await e(l,{...a}
59);return n(c)},_A={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},TA={partitions:[_A,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},SA=e=>{const{partitions:t}=TA;for(const{regions:n,outputs:i,regionRegex:s}of t){const t=new RegExp(s);if(n.includes(e)||t.test(e))return i.dnsSuffix}return _A.outputs.dnsSuffix},wA="amz-sdk-invocation-id",EA=3e5,CA=({maxAttempts:e=3,retryDecider:t,computeDelay:n,abortSignal:i})=>{if(e<1)throw new Error("maxAttempts must be greater than 0");return(s,r)=>async function(a){let o,l,c=r.attemptsCount??0;const d=()=>{if(l)return kA(l,c),l;throw kA(o,c),o};for(;!i?.aborted&&c<e;){try{l=await s(a),o=void 0}catch(s$){o=s$,l=void 0}c=(r.attemptsCount??0)>c?r.attemptsCount??0:c+1,r.attemptsCount=c;const{isCredentialsExpiredError:u,retryable:h}=await t(l,o,r);if(!h)return d();if(r.isCredentialsExpired=!!u,!i?.aborted&&c<e){const e=n(c);await xA(e,i)}}if(i?.aborted)throw new Error("Request aborted.");return d()}},xA=(e,t)=>{if(t?.aborted)return Promise.resolve();let n,i;const s=new Promise((t=>{i=t,n=setTimeout(t,e)}));return t?.addEventListener("abort",(function e(s){clearTimeout(n),t?.removeEventListener("abort",e),i()})),s},kA=(e,t)=>{"[object Object]"===Object.prototype.toString.call(e)&&(e.$metadata={...e.$metadata??{},attempts:t})},IA=function(e,t,n){if(gI.randomUUID&&!t&&!e)return gI.randomUUID();const i=(e=e||{}).random||(e.rng||fI)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e,t=0){return mI[e[t+0]]+mI[e[t+1]]+mI[e[t+2]]+mI[e[t+3]]+"-"+mI[e[t+4]]+mI[e[t+5]]+"-"+mI[e[t+6]]+mI[e[t+7]]+"-"+mI[e[t+8]]+mI[e[t+9]]+"-"+mI[e[t+10]]+mI[e[t+11]]+mI[e[t+12]]+mI[e[t+13]]+mI[e[t+14]]+mI[e[t+15]]}(i)},AA=({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>n=>async function(i){if(0===t.trim().length){return await n(i)}{const s=e.toLowerCase();i.headers[s]=i.headers[s]?`${i.headers[s]} ${t}`:t;return await n(i)}},PA=(e,t)=>(n,i)=>{const s={};let r=t=>e(t,i);for(let e=t.length-1;e>=0;e--){r=(0,t[e])(i)(r,s)}return r(n)},OA=e=>{let t;return()=>(t||(t=e()),t)},LA=e=>!["HEAD","GET","DELETE"].includes(e.toUpperCase()),NA=async({url:e,method:t,headers:n,body:i},{abortSignal:s,cache:r,withCrossDomainCredentials:a})=>{let o;try{o=await fetch(e,{method:t,headers:n,body:LA(t)?i:void 0,signal:s,cache:r,credentials:a?"include":"same-origin"})}catch(s$){if(s$ instanceof TypeError)throw new Wk({name:Xk.NetworkError,message:"A network error has occurred.",underlyingError:s$});throw s$}const l={};o.headers?.forEach(((e,t)=>{l[t.toLowerCase()]=e}));return{...{statusCode:o.status,headers:l,body:null},body:Object.assign(o.body??{},{text:OA((()=>o.text())),blob:OA((()=>o.blob())),json:OA((()=>o.json()))})}},DA=PA(NA,[AA,()=>e=>async function(t){return t.headers[wA]||(t.headers[wA]=IA()),e(t)},CA,({maxAttempts:e=3})=>(t,n)=>async function(i){const s=n.attemptsCount??0;return i.headers["amz-sdk-request"]=`attempt=${s+1}; max=${e}`,t(i)}]);const MA=e=>{const t=function(e=3e5){return t=>{const n=2**t*100+100*Math.random();return!(n>e)&&n}}(EA),n=t(e);return!1===n?EA:n},RA=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],BA=e=>async(t,n)=>{const i=n??await e(t)??void 0,s=i?.code||i?.name,r=t?.statusCode;return{retryable:VA(n)||jA(r,s)||(e=>!!e&&RA.includes(e))(s)||$A(r,s)}},UA=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],FA=["TimeoutError","RequestTimeout","RequestTimeoutException"],jA=(e,t)=>429===e||!!t&&UA.includes(t),VA=e=>[Xk.NetworkError,"ERR_NETWORK"].includes(e?.name),$A=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&FA.includes(t),qA=URL,HA=URLSearchParams,zA=PA(DA,[()=>e=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]),GA={service:"cognito-identity",endpointResolver:({region:e})=>({url:new qA(`https://cognito-identity.${e}.${SA(e)}`)}),retryDecider:BA(yA),computeDelay:MA,userAgentValue:hA(),cache:"no-store"};var WA;WA=()=>{GA.userAgentValue=hA()},oA||aA.push(WA);const XA=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),KA=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"}),YA=bA(zA,((e,t)=>
59{const n=XA("GetId"),i=JSON.stringify(e);return KA(t,n,i)}),(async e=>{if(e.statusCode>=300){throw await yA(e)}return{IdentityId:(await vA(e)).IdentityId,$metadata:mA(e)}}),GA),QA=({AccessKeyId:e,SecretKey:t,SessionToken:n,Expiration:i}={})=>({AccessKeyId:e,SecretKey:t,SessionToken:n,Expiration:i&&new Date(1e3*i)}),JA=bA(zA,((e,t)=>{const n=XA("GetCredentialsForIdentity"),i=JSON.stringify(e);return KA(t,n,i)}),(async e=>{if(e.statusCode>=300){throw await yA(e)}{const t=await vA(e);return{IdentityId:t.IdentityId,Credentials:QA(t.Credentials),$metadata:mA(e)}}}),GA);class ZA extends Wk{constructor(){super({name:Xk.PlatformNotSupported,message:"Function not supported on current platform"})}}class eP{constructor(e){this.storage=e}async setItem(e,t){if(!this.storage)throw new ZA;this.storage.setItem(e,t)}async getItem(e){if(!this.storage)throw new ZA;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new ZA;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new ZA;this.storage.clear()}}class tP{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,t){this.storage.set(e,t)}getItem(e){return this.storage.get(e)??null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}}const nP=new Gk("CoreStorageUtils"),iP=()=>{try{if("undefined"!=typeof window&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch(s$){return nP.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new tP}};class sP{constructor(e){this._storage=e}get storage(){if(!this._storage)throw new ZA;return this._storage}setItem(e,t){this.storage.setItem(e,t)}getItem(e){return this.storage.getItem(e)}removeItem(e){this.storage.removeItem(e)}clear(){this.storage.clear()}}
60/*! js-cookie v3.0.5 | MIT */
61function rP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var aP=function e(t,n){function i(e,i,s){if("undefined"!=typeof document){"number"==typeof(s=rP({},n,s)).expires&&(s.expires=new Date(Date.now()+864e5*s.expires)),s.expires&&(s.expires=s.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var a in s)s[a]&&(r+="; "+a,!0!==s[a]&&(r+="="+s[a].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+r}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},s=0;s<n.length;s++){var r=n[s].split("="),a=r.slice(1).join("=");try{var o=decodeURIComponent(r[0]);if(i[o]=t.read(a,o),e===o)break}catch(s$){}}return e?i[e]:i}},remove:function(e,t){i(e,"",rP({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,rP({},this.attributes,t))},withConverter:function(t){return e(rP({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});class oP{constructor(e={}){const{path:t,domain:n,expires:i,sameSite:s,secure:r}=e;if(this.domain=n,this.path=t||"/",this.expires=Object.prototype.hasOwnProperty.call(e,"expires")?i:365,this.secure=!Object.prototype.hasOwnProperty.call(e,"secure")||r,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!s||!["strict","lax","none"].includes(s))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===s&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=s}}async setItem(e,t){aP.set(e,t,this.getData())}async getItem(e){return aP.get(e)??null}async removeItem(e){aP.remove(e,this.getData())}async clear(){const e=aP.get(),t=Object.keys(e).map((e=>this.removeItem(e)));await Promise.all(t)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const lP=new class extends eP{constructor(){super((()=>{try{if("undefined"!=typeof window&&window.localStorage)return window.localStorage}catch(s$){nP.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new tP})())}};new class extends eP{constructor(){super(iP())}},new class extends sP{constructor(){super(iP())}};const cP=e=>Object.keys(e).map((e=>e.toLowerCase())).sort().join(";"),dP="X-Amz-Date".toLowerCase(),uP="X-Amz-Security-Token".toLowerCase(),hP="aws4_request",pP="AW
61S4-HMAC-SHA256",fP=({credentials:e,signingDate:t=new Date,signingRegion:n,signingService:i,uriEscapePath:s=!0})=>{const{accessKeyId:r,secretAccessKey:a,sessionToken:o}=e,{longDate:l,shortDate:c}=(e=>{const t=e.toISOString().replace(/[:-]|\.\d{3}/g,"");return{longDate:t,shortDate:t.slice(0,8)}})(t);return{accessKeyId:r,credentialScope:`${c}/${n}/${i}/${hP}`,longDate:l,secretAccessKey:a,sessionToken:o,shortDate:c,signingRegion:n,signingService:i,uriEscapePath:s}},mP=(e,t)=>{const n=new DI(e??void 0);n.update(t);return n.digestSync()},gP=(e,t)=>function(e){let t="";for(let n=0;n<e.byteLength;n++)t+=MI[e[n]];return t}(mP(e,t)),yP=e=>Object.entries(e).map((([e,t])=>({key:e.toLowerCase(),value:t?.trim().replace(/\s+/g," ")??""}))).sort(((e,t)=>e.key<t.key?-1:1)).map((e=>`${e.key}:${e.value}\n`)).join(""),vP=e=>encodeURIComponent(e).replace(/[!'()*]/g,bP),bP=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,_P=(e,t=!0)=>e?t?encodeURIComponent(e).replace(/%2F/g,"/"):e:"/",TP=e=>{if(null==e)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(SP(e)){return gP(null,e)}return"UNSIGNED-PAYLOAD"},SP=e=>"string"==typeof e||ArrayBuffer.isView(e)||wP(e),wP=e=>"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e),EP=(e,{credentialScope:t,longDate:n,secretAccessKey:i,shortDate:s,signingRegion:r,signingService:a,uriEscapePath:o})=>{const l=(({body:e,headers:t,method:n,url:i},s=!0)=>{return[n,_P(i.pathname,s),(r=i.searchParams,Array.from(r).sort((([e,t],[n,i])=>e===n?t<i?-1:1:e<n?-1:1)).map((([e,t])=>`${vP(e)}=${vP(t)}`)).join("&")),yP(t),cP(t),TP(e)].join("\n");var r})(e,o),c=((e,t,n)=>[pP,e,t,n].join("\n"))(n,t,gP(null,l)),d=gP(((e,t,n,i)=>{const s=mP(`AWS4${e}`,t),r=mP(s,n),a=mP(r,i);return mP(a,hP)})(i,s,r,a),c);return d},CP=e=>new Date(Date.now()+e),xP=(e,t)=>((e,t)=>Math.abs(CP(t).getTime()-e)>=3e5)(e,t)?e-Date.now():t,kP=({headers:e}={})=>e?.date??e?.Date??e?.["x-amz-date"];function IP({expiresAt:e,clockDrift:t,tolerance:n=5e3}){return Date.now()+t+n>e}class AP extends Wk{get response(){return this._response?PP(this._response):void 0}constructor(e){super(e),this.constructor=AP,Object.setPrototypeOf(this,AP.prototype),e.response&&(this._response=e.response)}}const PP=e=>({...e,headers:{...e.headers}});class OP extends Wk{constructor(e){super(e),this.constructor=OP,Object.setPrototypeOf(this,OP.prototype)}}function LP(e){if(!e||!e.includes(":"))throw new OP({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}const NP="UserUnAuthenticatedException";new OP({name:"InvalidRedirectException",message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."}),new OP({name:"InvalidAppSchemeException",message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."}),new OP({name:"InvalidPreferredRedirectUrlException",message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."});new OP({name:"InvalidOriginException",message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."});const DP=new OP({name:"TokenRefreshException",message:"Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. \n\tPlease change your oauth configuration to use 'code grant' flow.",recoverySuggestion:"Please logout and change your Amplify configuration to use \"code grant\" flow. \n\tE.g { responseType: 'code' }"}),MP=new OP({name:NP,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function RP(e){if(function(e){return UP(e)&&!e?.refreshToken}(e))throw DP;if(!function(e){return UP(e)&&e?.refreshToken}(e))throw MP}const BP={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function UP(e){return e?.accessToken||e?.idToken}const FP=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProvi
61derService.${e}`}),jP=({url:e},t,n)=>({headers:t,url:e,body:n,method:"POST"});function VP(e){if(!e||"Error"===e.name||e instanceof TypeError)throw new OP({name:Xk.Unknown,message:"An unknown error has occurred.",underlyingError:e})}const $P=PA(DA,[()=>(e,t)=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]),qP="cognito-idp",HP={service:qP,retryDecider:BA(yA),computeDelay:MA,userAgentValue:hA(),cache:"no-store"},zP=e=>{return bA($P,(t="InitiateAuth",(e,n)=>{const i=FP(t),s=JSON.stringify(e);return jP(n,i,s)}),(async e=>{if(e.statusCode>=300){const t=await yA(e);throw VP(t),new OP({name:t.name,message:t.message,metadata:t.$metadata})}return vA(e)}),{...HP,...e});var t},GP=({endpointOverride:e})=>t=>e?{url:new qA(e)}:(({region:e})=>({url:new qA(`https://${qP}.${e}.${SA(e)}`)}))(t);const WP=(e=>{let t;return async(...n)=>t||(t=new Promise(((i,s)=>{e(...n).then((e=>{i(e)})).catch((e=>{s(e)})).finally((()=>{t=void 0}))})),t)})((async({tokens:e,authConfig:t,username:n})=>{nI(t?.Cognito);const{userPoolId:i,userPoolClientId:s,userPoolEndpoint:r}=t.Cognito,a=function(e){const t=e?.split("_")[0];if(!e||e.indexOf("_")<0||!t||"string"!=typeof t)throw new OP({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}(i);RP(e);const o=e.refreshToken,l={REFRESH_TOKEN:o};e.deviceMetadata?.deviceKey&&(l.DEVICE_KEY=e.deviceMetadata.deviceKey);const c=function({username:e,userPoolId:t,userPoolClientId:n}){if("undefined"==typeof window)return;const i=window.AmazonCognitoAdvancedSecurityData;if(void 0===i)return;const s=i.getData(e,t,n);if(s)return{EncodedData:s};return{}}({username:n,userPoolId:i,userPoolClientId:s}),d=zP({endpointResolver:GP({endpointOverride:r})}),{AuthenticationResult:u}=await d({region:a},{ClientId:s,AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:l,UserContextData:c}),h=sI(u?.AccessToken??""),p=u?.IdToken?sI(u.IdToken):void 0,{iat:f}=h.payload;if(!f)throw new OP({name:"iatNotFoundException",message:"iat not found in access token"});return{accessToken:h,idToken:p,clockDrift:1e3*f-(new Date).getTime(),refreshToken:o,username:n}})),XP={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var KP;!function(e){e.InvalidAuthTokens="InvalidAuthTokens"}(KP||(KP={}));const YP=Kk({[KP.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}}),QP="CognitoIdentityServiceProvider";class JP{getKeyValueStorage(){if(!this.keyValueStorage)throw new OP({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{const e=await this.getAuthKeys(),t=await this.getKeyValueStorage().getItem(e.accessToken);if(!t)throw new OP({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const n=sI(t),i=await this.getKeyValueStorage().getItem(e.idToken),s=i?sI(i):void 0,r=await this.getKeyValueStorage().getItem(e.refreshToken)??void 0,a=await this.getKeyValueStorage().getItem(e.clockDrift)??"0",o=Number.parseInt(a),l=await this.getKeyValueStorage().getItem(e.signInDetails),c={accessToken:n,idToken:s,refreshToken:r,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:o,username:await this.getLastAuthUser()};return l&&(c.signInDetails=JSON.parse(l)),c}catch(e){return null}}async storeTokens(e){YP(void 0!==e,KP.InvalidAuthTokens);const t=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),t);const n=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n.accessToken,e.accessToken.toString()),e.idToken?await this.getKeyValueStorage().setItem(n.idToken,e.idToken.toString()):await this.getKeyValueStorage().removeItem(n.idToken),e.refreshToken?await this.getKeyValueStorage().setItem(n.refreshToken,e.refreshToken):await this.getKeyValueStorage().removeItem(n.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(n.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(n.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(n.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetail
61s?await this.getKeyValueStorage().setItem(n.signInDetails,JSON.stringify(e.signInDetails)):await this.getKeyValueStorage().removeItem(n.signInDetails),await this.getKeyValueStorage().setItem(n.clockDrift,`${e.clockDrift}`)}async clearTokens(){const e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(e.oauthMetadata)])}async getDeviceMetadata(e){const t=await this.getAuthKeys(e),n=await this.getKeyValueStorage().getItem(t.deviceKey),i=await this.getKeyValueStorage().getItem(t.deviceGroupKey),s=await this.getKeyValueStorage().getItem(t.randomPasswordKey);return s&&i&&n?{deviceKey:n,deviceGroupKey:i,randomPassword:s}:null}async clearDeviceMetadata(e){const t=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(t.deviceKey),this.getKeyValueStorage().removeItem(t.deviceGroupKey),this.getKeyValueStorage().removeItem(t.randomPasswordKey)])}async getAuthKeys(e){nI(this.authConfig?.Cognito);const t=e??await this.getLastAuthUser();return ZP(QP,`${this.authConfig.Cognito.userPoolClientId}.${t}`)}getLastAuthUserKey(){nI(this.authConfig?.Cognito);const e=this.authConfig.Cognito.userPoolClientId;return`${QP}.${e}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(e){const{oauthMetadata:t}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(t,JSON.stringify(e))}async getOAuthMetadata(){const{oauthMetadata:e}=await this.getAuthKeys(),t=await this.getKeyValueStorage().getItem(e);return t&&JSON.parse(t)}}const ZP=(e,t)=>eO(XP)(`${e}`,t);function eO(e){const t=Object.values({...e});return(e,n)=>t.reduce(((t,i)=>({...t,[i]:`${e}.${n}.${i}`})),{})}const tO="amplify-signin-with-hostedUI",nO="CognitoIdentityServiceProvider";const iO=(e,t)=>eO(BP)(e,t),sO=new class{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){nI(this.cognitoConfig);const e=iO(nO,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){nI(this.cognitoConfig);const e=iO(nO,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(tO),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){nI(this.cognitoConfig);const e=iO(nO,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){nI(this.cognitoConfig);const t=iO(nO,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthState,e)}loadPKCE(){nI(this.cognitoConfig);const e=iO(nO,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){nI(this.cognitoConfig);const t=iO(nO,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){nI(this.cognitoConfig);const e=iO(nO,this.cognitoConfig.userPoolClientId);return"true"===await this.keyValueStorage.getItem(e.inflightOAuth)}async storeOAuthInFlight(e){nI(this.cognitoConfig);const t=iO(nO,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(t.inflightOAuth,`${e}`)}async loadOAuthSignIn(){nI(this.cognitoConfig);const e=iO(nO,this.cognitoConfig.userPoolClientId),t=await this.keyValueStorage.getItem(tO),[n,i]=(await this.keyValueStorage.getItem(e.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:"true"===n||"true"===t,preferPrivateSession:"true"===i}}async storeOAuthSignIn(e,t=!1){nI(this.cognitoConfig);const n=iO(nO,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.oauthSignIn,`${e},${t}`)}}(lP);class rO{constructor(){this.waitForInflightOAuth="undefined"!=typeof window&&void 0!==window.document?async()=>
61{if(await sO.loadOAuthInFlight())return this.inflightPromise||(this.inflightPromise=new Promise(((e,t)=>{}))),this.inflightPromise}:async()=>{}}setAuthConfig(e){sO.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new OP({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new OP({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}async getTokens(e){let t;try{nI(this.authConfig?.Cognito)}catch(r){return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,t=await this.getTokenStore().loadTokens();const n=await this.getTokenStore().getLastAuthUser();if(null===t)return null;const i=!!t?.idToken&&IP({expiresAt:1e3*(t.idToken?.payload?.exp??0),clockDrift:t.clockDrift??0}),s=IP({expiresAt:1e3*(t.accessToken?.payload?.exp??0),clockDrift:t.clockDrift??0});return(e?.forceRefresh||i||s)&&(t=await this.refreshTokens({tokens:t,username:n}),null===t)?null:{accessToken:t?.accessToken,idToken:t?.idToken,signInDetails:t?.signInDetails}}async refreshTokens({tokens:e,username:t}){try{const{signInDetails:n}=e,i=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:t});return i.signInDetails=n,await this.setTokens({tokens:i}),Jk.dispatch("auth",{event:"tokenRefresh"},"Auth",Yk),i}catch(n){return this.handleErrors(n)}}handleErrors(e){if(VP(e),e.name!==Xk.NetworkError&&this.clearTokens(),Jk.dispatch("auth",{event:"tokenRefresh_failure",data:{error:e}},"Auth",Yk),e.name.startsWith("NotAuthorizedException"))return null;throw e}async setTokens({tokens:e}){return this.getTokenStore().storeTokens(e)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}setOAuthMetadata(e){return this.getTokenStore().setOAuthMetadata(e)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}const aO=new class{constructor(){this.authTokenStore=new JP,this.authTokenStore.setKeyValueStorage(lP),this.tokenOrchestrator=new rO,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(WP)}getTokens({forceRefresh:e}={forceRefresh:!1}){return this.tokenOrchestrator.getTokens({forceRefresh:e})}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}},{tokenOrchestrator:oO}=aO,lO={identityId:"identityId"},cO=new Gk("DefaultIdentityIdStore");class dO{setAuthConfig(e){iI(e.Cognito),this.authConfig=e,this._authKeys=uO("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=e}async loadIdentityId(){iI(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const e=await this.keyValueStorage.getItem(this._authKeys.identityId);return e?(this._hasGuestIdentityId=!0,{id:e,type:"guest"}):null}}catch(e){return cO.log("Error getting stored IdentityId.",e),null}}async storeIdentityId(e){iI(this.authConfig?.Cognito),"guest"===e.type?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=e.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const uO=(e,t)=>eO(lO)(`com.amplify.${e}`,t);function hO(e){const t=sI(e).payload.iss,n={};if(!t)throw new OP({name:"InvalidIdTokenException",message:"Invalid Idtoken."});return n[t.replace(/(^\w+:|^)\/\//,"")]=e,n}async function pO({tokens:e,authConfig:t,identityIdStore:n}){n.setAuthConfig({Cognito:t});const i=await n.loadIdentityId();if(i)return i.id;const s=e?.idToken?hO(e.idToken.toString()):{},r=await async function(e,t){const n=t?.identityPoolId,i=LP(n);let s;try{s=(await YA({region:i},{IdentityPoolId:n,Logins:e})).IdentityId}catch(s$){throw VP(s$),new OP(s$)}if(!s)throw new OP({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}(s,t);return n.storeIdentityId({id:r,type:e?"primary":"guest"}),r}const fO=new Gk("CognitoCredentialsProvider"),mO=3e6;class gO{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){fO.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){fO.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){const t=e.authenticated,{tokens:n}=e,{authConfig:i}=e;try{iI(i?.Cognito)}catch{return}if(!t&&!i.Cognito.allowGuestAccess)return;const{forceRefresh:s}
61=e,r=this.hasTokenChanged(n),a=await pO({tokens:n,authConfig:i.Cognito,identityIdStore:this._identityIdStore});return(s||r)&&this.clearCredentials(),t?(function(e){if(!e||!e.idToken)throw new OP({name:NP,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}(n),this.credsForOIDCTokens(i.Cognito,n,a)):this.getGuestCredentials(a,i.Cognito)}async getGuestCredentials(e,t){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!1===this._credentialsAndIdentityId.isAuthenticatedCreds)return fO.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const n=LP(t.identityPoolId);let i;try{i=await JA({region:n},{IdentityId:e})}catch(s$){throw VP(s$),new OP(s$)}if(i?.Credentials?.AccessKeyId&&i?.Credentials?.SecretKey){this._nextCredentialsRefresh=(new Date).getTime()+mO;const t={credentials:{accessKeyId:i.Credentials.AccessKeyId,secretAccessKey:i.Credentials.SecretKey,sessionToken:i.Credentials.SessionToken,expiration:i.Credentials.Expiration},identityId:e};return i.IdentityId&&(t.identityId=i.IdentityId,this._identityIdStore.storeIdentityId({id:i.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...t,isAuthenticatedCreds:!1},t}throw new OP({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,t,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!0===this._credentialsAndIdentityId.isAuthenticatedCreds)return fO.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const i=t.idToken?hO(t.idToken.toString()):{},s=LP(e.identityPoolId);let r;try{r=await JA({region:s},{IdentityId:n,Logins:i})}catch(s$){throw VP(s$),new OP(s$)}if(r?.Credentials?.AccessKeyId&&r?.Credentials?.SecretKey){this._nextCredentialsRefresh=(new Date).getTime()+mO;const e={credentials:{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration},identityId:n};return r.IdentityId&&(e.identityId=r.IdentityId,this._identityIdStore.storeIdentityId({id:r.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...e,isAuthenticatedCreds:!0,associatedIdToken:t.idToken?.toString()},e}throw new OP({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return void 0===this._nextCredentialsRefresh||this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){return!!e&&!!this._credentialsAndIdentityId?.associatedIdToken&&e.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const yO=new gO(new dO(lP)),vO={configure(e,t){const n=EI(e),i=new oP({sameSite:"lax"}),s=t?.ssr?i:lP,r=t?.ssr?new gO(new dO(i)):yO;if(n.Auth)if(t?.Auth)fA.configure(n,t);else{if(!fA.libraryOptions.Auth)return aO.setAuthConfig(n.Auth),aO.setKeyValueStorage(s),void fA.configure(n,{...t,Auth:{tokenProvider:aO,credentialsProvider:r}});if(t){const e=fA.libraryOptions.Auth;return void 0!==t.ssr&&(aO.setKeyValueStorage(s),e.credentialsProvider=r),void fA.configure(n,{Auth:e,...t})}fA.configure(n)}else fA.configure(n,t)},getConfig:()=>fA.getConfig()};
62/*!
63 * pinia v2.3.1
64 * (c) 2025 Eduardo San Martin Morote
65 * @license MIT
66 */
67let bO;const _O=e=>bO=e,TO=Symbol();function SO(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var wO,EO;(EO=wO||(wO={})).direct="direct",EO.patchObject="patch object",EO.patchFunction="patch function";const CO=()=>{};function xO(e,t,n,i=CO){e.push(t);const s=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),i())};return!n&&Oe()&&Le(s),s}function kO(e,...t){e.slice().forEach((e=>{e(...t)}))}const IO=e=>e(),AO=Symbol(),PO=Symbol();function OO(e,t){e instanceof Map&&t instanceof Map?t.forEach(((t,n)=>e.set(n,t))):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const i=t[n],s=e[n];SO(s)&&SO(i)&&e.hasOwnProperty(n)&&!Zt(i)&&!zt(i)?e[n]=OO(s,i):e[n]=i}return e}const LO=Symbol();const{assign:NO}=Object;function DO(e){return!(!Zt(e)||!e.effect)}function MO(e,t,n={},i,s,r){let a;const o=NO({actions:{}},n),l={deep:!0};let c,d,u,h=[],p=[];const f=i.state.value[e];let m;function g(t){let n;c=d=!1,"function"==typeof t?(t(i.state.value[e]),n={type:wO.patchFunction,storeId:e,events:u}):(OO(i.state.value[e],t),n={type:wO.patchObject,payload:t,storeId:e,events:u});const s=m=Symbol();Nn().then((()=>{m===s&&(c=!0)})),d=!0,kO(h,n,i.state.value[e])}r||f||(i.state.value[e]={}),en({});const y=r?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{NO(e,t)}))}:CO;const v=(t,n="")=>{if(AO in t)return t[PO]=n,t;const s=function(){_O(i);const n=Array.from(arguments),r=[],a=[];let o;kO(p,{args:n,name:s[PO],store:b,after:function(e){r.push(e)},onError:function(e){a.push(e)}});try{o=t.apply(this&&this.$id===e?this:b,n)}catch(l){throw kO(a,l),l}return o instanceof Promise?o.then((e=>(kO(r,e),e))).catch((e=>(kO(a,e),Promise.reject(e)))):(kO(r,o),o)};return s[AO]=!0,s[PO]=n,s},b=jt({_p:i,$id:e,$onAction:xO.bind(null,p),$patch:g,$reset:y,$subscribe(t,n={}){const s=xO(h,t,n.detached,(()=>r())),r=a.run((()=>pr((()=>i.state.value[e]),(i=>{("sync"===n.flush?d:c)&&t({storeId:e,type:wO.direct,events:u},i)}),NO({},l,n))));return s},$dispose:function(){a.stop(),h=[],p=[],i._s.delete(e)}});i._s.set(e,b);const _=(i._a&&i._a.runWithContext||IO)((()=>i._e.run((()=>(a=Pe()).run((()=>t({action:v})))))));for(const S in _){const t=_[S];if(Zt(t)&&!DO(t)||zt(t))r||(!f||SO(T=t)&&T.hasOwnProperty(LO)||(Zt(t)?t.value=f[S]:OO(t,f[S])),i.state.value[e][S]=t);else if("function"==typeof t){const e=v(t,S);_[S]=e,o.actions[S]=t}}var T;return NO(b,_),NO(Kt(b),_),Object.defineProperty(b,"$state",{get:()=>i.state.value[e],set:e=>{g((t=>{NO(t,e)}))}}),i._p.forEach((e=>{NO(b,a.run((()=>e({store:b,app:i._a,pinia:i,options:o}))))}
67)),f&&r&&n.hydrate&&n.hydrate(b.$state,f),c=!0,d=!0,b}
68/*! #__NO_SIDE_EFFECTS__ */function RO(e){{const t=Kt(e),n={};for(const i in t){const s=t[i];s.effect?n[i]=Pa({get:()=>e[i],set(t){e[i]=t}}):(Zt(s)||zt(s))&&(n[i]=pn(e,i))}return n}}
69/*!
70 * vue-router v4.6.4
71 * (c) 2025 Eduardo San Martin Morote
72 * @license MIT
73 */const BO="undefined"!=typeof document;function UO(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const FO=Object.assign;function jO(e,t){const n={};for(const i in t){const s=t[i];n[i]=$O(s)?s.map(e):e(s)}return n}const VO=()=>{},$O=Array.isArray;function qO(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}const HO=/#/g,zO=/&/g,GO=/\//g,WO=/=/g,XO=/\?/g,KO=/\+/g,YO=/%5B/g,QO=/%5D/g,JO=/%5E/g,ZO=/%60/g,eL=/%7B/g,tL=/%7C/g,nL=/%7D/g,iL=/%20/g;function sL(e){return null==e?"":encodeURI(""+e).replace(tL,"|").replace(YO,"[").replace(QO,"]")}function rL(e){return sL(e).replace(KO,"%2B").replace(iL,"+").replace(HO,"%23").replace(zO,"%26").replace(ZO,"`").replace(eL,"{").replace(nL,"}").replace(JO,"^")}function aL(e){return function(e){return sL(e).replace(HO,"%23").replace(XO,"%3F")}(e).replace(GO,"%2F")}function oL(e){if(null==e)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const lL=/\/$/;function cL(e,t,n="/"){let i,s={},r="",a="";const o=t.indexOf("#");let l=t.indexOf("?");return l=o>=0&&l>o?-1:l,l>=0&&(i=t.slice(0,l),r=t.slice(l,o>0?o:t.length),s=e(r.slice(1))),o>=0&&(i=i||t.slice(0,o),a=t.slice(o,t.length)),i=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),s=i[i.length-1];".."!==s&&"."!==s||i.push("");let r,a,o=n.length-1;for(r=0;r<i.length;r++)if(a=i[r],"."!==a){if(".."!==a)break;o>1&&o--}return n.slice(0,o).join("/")+"/"+i.slice(r).join("/")}(null!=i?i:t,n),{fullPath:i+r+a,path:i,query:s,hash:oL(a)}}function dL(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function uL(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hL(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!pL(e[n],t[n]))return!1;return!0}function pL(e,t){return $O(e)?fL(e,t):$O(t)?fL(t,e):e?.valueOf()===t?.valueOf()}function fL(e,t){return $O(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const mL={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let gL=function(e){return e.pop="pop",e.push="push",e}({}),yL=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function vL(e){if(!e)if(BO){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(lL,"")}const bL=/^[^#]+#/;function _L(e,t){return e.replace(bL,"#")+t}const TL=()=>({left:window.scrollX,top:window.scrollY});function SL(e){let t;if("el"in e){const n=e.el,i="string"==typeof n&&n.startsWith("#"),s="string"==typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function wL(e,t){return(history.state?history.state.position-t:-1)+e}const EL=new Map;function CL(e){return"string"==typeof e||"symbol"==typeof e}let xL=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const kL=Symbol("");function IL(e,t){return FO(new Error,{type:e,[kL]:!0},t)}function AL(e,t){return e instanceof Error&&kL in e&&(null==t||!!(e.type&t))}xL.MATCHER_NOT_FOUND,xL.NAVIGATION_GUARD_REDIRECT,xL.NAVIGATION_ABORTED,xL.NAVIGATION_CANCELLED,xL.NAVIGATION_DUPLICATED;function PL(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const e=n[i].replace(KO," "),s=e.indexOf("="),r=oL(s<0?e:e.slice(0,s)),a=s<0?null:oL(e.slice(s+1));if(r in t){let e=t[r];$O(e)||(e=t[r]=[e]),e.push(a)}else t[r]=a}return t}function OL(e){let t="";for(let n in e){const i=e[n];n=rL(n).replace(WO,"%3D"),null!=i?($O(i)?i.map((e=>
73e&&rL(e))):[i&&rL(i)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==i&&(t+=(t.length?"&":"")+n)}return t}function LL(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=$O(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const NL=Symbol(""),DL=Symbol(""),ML=Symbol(""),RL=Symbol(""),BL=Symbol("");function UL(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function FL(e,t,n,i,s,r=e=>e()){const a=i&&(i.enterCallbacks[s]=i.enterCallbacks[s]||[]);return()=>new Promise(((o,l)=>{const c=e=>{var r;!1===e?l(IL(xL.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(IL(xL.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(a&&i.enterCallbacks[s]===a&&"function"==typeof e&&a.push(e),o())},d=r((()=>e.call(i&&i.instances[s],t,n,c)));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch((e=>l(e)))}))}function jL(e,t,n,i,s=e=>e()){const r=[];for(const a of e)for(const e in a.components){let o=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if(UO(o)){const l=(o.__vccOpts||o)[t];l&&r.push(FL(l,n,i,a,e,s))}else{let l=o();r.push((()=>l.then((r=>{if(!r)throw new Error(`Couldn't resolve component "${e}" at "${a.path}"`);const o=(l=r).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&UO(l.default)?r.default:r;var l;a.mods[e]=r,a.components[e]=o;const c=(o.__vccOpts||o)[t];return c&&FL(c,n,i,a,e,s)()}))))}}return r}function VL(e,t){const{pathname:n,search:i,hash:s}=t,r=e.indexOf("#");if(r>-1){let t=s.includes(e.slice(r))?e.slice(r).length:1,n=s.slice(t);return"/"!==n[0]&&(n="/"+n),dL(n,"")}return dL(n,e)+i+s}function $L(e,t,n,i=!1,s=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:s?TL():null}}function qL(e){const{history:t,location:n}=window,i={value:VL(e,n)},s={value:t.state};function r(i,r,a){const o=e.indexOf("#"),l=o>-1?(n.host&&document.querySelector("base")?e:e.slice(o))+i:location.protocol+"//"+location.host+e+i;try{t[a?"replaceState":"pushState"](r,"",l),s.value=r}catch(c){console.error(c),n[a?"replace":"assign"](l)}}return s.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:s,push:function(e,n){const a=FO({},s.value,t.state,{forward:e,scroll:TL()});r(a.current,a,!0),r(e,FO({},$L(i.value,e,null),{position:a.position+1},n),!1),i.value=e},replace:function(e,n){r(e,FO({},t.state,$L(s.value.back,e,s.value.forward,!0),n,{position:s.value.position}),!0),i.value=e}}}function HL(e){const t=qL(e=vL(e)),n=function(e,t,n,i){let s=[],r=[],a=null;const o=({state:r})=>{const o=VL(e,location),l=n.value,c=t.value;let d=0;if(r){if(n.value=o,t.value=r,a&&a===l)return void(a=null);d=c?r.position-c.position:0}else i(o);s.forEach((e=>{e(n.value,l,{delta:d,type:gL.pop,direction:d?d>0?yL.forward:yL.back:yL.unknown})}))};function l(){if("hidden"===document.visibilityState){const{history:e}=window;if(!e.state)return;e.replaceState(FO({},e.state,{scroll:TL()}),"")}}return window.addEventListener("popstate",o),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:function(){a=n.value},listen:function(e){s.push(e);const t=()=>{const t=s.indexOf(e);t>-1&&s.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}}}(e,t.state,t.location,t.replace);const i=FO({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:_L.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let zL=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var GL=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(GL||{});const WL={type:zL.Static,value:""},XL=/[a-zA-Z0-9_]/;const KL="[^/]+?",YL={sensitive:!1,strict:!1,start:!0,end:!0};var QL=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(QL||{});const JL=/[.+*?^${}()[\]/\\]/g;function ZL(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}
73return e.length<t.length?1===e.length&&e[0]===QL.Static+QL.Segment?-1:1:e.length>t.length?1===t.length&&t[0]===QL.Static+QL.Segment?1:-1:0}function eN(e,t){let n=0;const i=e.score,s=t.score;for(;n<i.length&&n<s.length;){const e=ZL(i[n],s[n]);if(e)return e;n++}if(1===Math.abs(s.length-i.length)){if(tN(i))return 1;if(tN(s))return-1}return s.length-i.length}function tN(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const nN={strict:!1,end:!0,sensitive:!1};function iN(e,t,n){const i=function(e,t){const n=FO({},YL,t),i=[];let s=n.start?"^":"";const r=[];for(const o of e){const e=o.length?[]:[QL.Root];n.strict&&!o.length&&(s+="/");for(let t=0;t<o.length;t++){const i=o[t];let a=QL.Segment+(n.sensitive?QL.BonusCaseSensitive:0);if(i.type===zL.Static)t||(s+="/"),s+=i.value.replace(JL,"\\$&"),a+=QL.Static;else if(i.type===zL.Param){const{value:e,repeatable:n,optional:l,regexp:c}=i;r.push({name:e,repeatable:n,optional:l});const d=c||KL;d!==KL&&(a+=QL.BonusCustomRegExp);let u=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(u=l&&o.length<2?`(?:/${u})`:"/"+u),l&&(u+="?"),s+=u,a+=QL.Dynamic,l&&(a+=QL.BonusOptional),n&&(a+=QL.BonusRepeatable),".*"===d&&(a+=QL.BonusWildcard)}e.push(a)}i.push(e)}if(n.strict&&n.end){const e=i.length-1;i[e][i[e].length-1]+=QL.BonusStrict}n.strict||(s+="/?"),n.end?s+="$":n.strict&&!s.endsWith("/")&&(s+="(?:/|$)");const a=new RegExp(s,n.sensitive?"":"i");return{re:a,score:i,keys:r,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let i=1;i<t.length;i++){const e=t[i]||"",s=r[i-1];n[s.name]=e&&s.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",i=!1;for(const s of e){i&&n.endsWith("/")||(n+="/"),i=!1;for(const e of s)if(e.type===zL.Static)n+=e.value;else if(e.type===zL.Param){const{value:r,repeatable:a,optional:o}=e,l=r in t?t[r]:"";if($O(l)&&!a)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);const c=$O(l)?l.join("/"):l;if(!c){if(!o)throw new Error(`Missing required param "${r}"`);s.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[WL]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=GL.Static,i=n;const s=[];let r;function a(){r&&s.push(r),r=[]}let o,l=0,c="",d="";function u(){c&&(n===GL.Static?r.push({type:zL.Static,value:c}):n===GL.Param||n===GL.ParamRegExp||n===GL.ParamRegExpEnd?(r.length>1&&("*"===o||"+"===o)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:zL.Param,value:c,regexp:d,repeatable:"*"===o||"+"===o,optional:"*"===o||"?"===o})):t("Invalid state to consume buffer"),c="")}function h(){c+=o}for(;l<e.length;)if(o=e[l++],"\\"!==o||n===GL.ParamRegExp)switch(n){case GL.Static:"/"===o?(c&&u(),a()):":"===o?(u(),n=GL.Param):h();break;case GL.EscapeNext:h(),n=i;break;case GL.Param:"("===o?n=GL.ParamRegExp:XL.test(o)?h():(u(),n=GL.Static,"*"!==o&&"?"!==o&&"+"!==o&&l--);break;case GL.ParamRegExp:")"===o?"\\"==d[d.length-1]?d=d.slice(0,-1)+o:n=GL.ParamRegExpEnd:d+=o;break;case GL.ParamRegExpEnd:u(),n=GL.Static,"*"!==o&&"?"!==o&&"+"!==o&&l--,d="";break;default:t("Unknown state")}else i=n,n=GL.EscapeNext;return n===GL.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),u(),a(),s}(e.path),n),s=FO(i,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function sN(e,t){const n=[],i=new Map;function s(e,n,i){const o=!i,l=aN(e);l.aliasOf=i&&i.record;const c=qO(t,e),d=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)d.push(aN(FO({},l,{components:i?i.record.components:l.components,path:e,aliasOf:i?i.record:l})))}let u,h;for(const t of d){const{path:d}=t;if(n&&"/"!==d[0]){const e=n.record.path,i="/"===e[e.length-1]?"":"/";t.path=n.record.path+(d&&i+d)}if(u=iN(t,n,c),i?i.alias.push(u):(h=h||u,h!==u&&h.alias.push(u),o&&e.name&&!lN(u)&&r(e.name)),dN(u)&&a(u),l.children){const e=l.children;for(let t=0;t<e.length;t++)s(e[t],u,i&&i.children[t])}i=i||u}return h?()=>{r(h)}:VO}function r(e){if(CL(e)){const t=i.get(e);
73t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function a(e){const t=function(e,t){let n=0,i=t.length;for(;n!==i;){const s=n+i>>1;eN(e,t[s])<0?i=s:n=s+1}const s=function(e){let t=e;for(;t=t.parent;)if(dN(t)&&0===eN(e,t))return t}(e);s&&(i=t.lastIndexOf(s,i-1));return i}(e,n);n.splice(t,0,e),e.record.name&&!lN(e)&&i.set(e.record.name,e)}return t=qO(nN,t),e.forEach((e=>s(e))),{addRoute:s,resolve:function(e,t){let s,r,a,o={};if("name"in e&&e.name){if(s=i.get(e.name),!s)throw IL(xL.MATCHER_NOT_FOUND,{location:e});a=s.record.name,o=FO(rN(t.params,s.keys.filter((e=>!e.optional)).concat(s.parent?s.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&rN(e.params,s.keys.map((e=>e.name)))),r=s.stringify(o)}else if(null!=e.path)r=e.path,s=n.find((e=>e.re.test(r))),s&&(o=s.parse(r),a=s.record.name);else{if(s=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!s)throw IL(xL.MATCHER_NOT_FOUND,{location:e,currentLocation:t});a=s.record.name,o=FO({},t.params,e.params),r=s.stringify(o)}const l=[];let c=s;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:r,params:o,matched:l,meta:cN(l)}},removeRoute:r,clearRoutes:function(){n.length=0,i.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return i.get(e)}}}function rN(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function aN(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:oN(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function oN(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="object"==typeof n?n[i]:n;return t}function lN(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function cN(e){return e.reduce(((e,t)=>FO(e,t.meta)),{})}function dN({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function uN(e){const t=Bs(ML),n=Bs(RL),i=Pa((()=>{const n=rn(e.to);return t.resolve(n)})),s=Pa((()=>{const{matched:e}=i.value,{length:t}=e,s=e[t-1],r=n.matched;if(!s||!r.length)return-1;const a=r.findIndex(uL.bind(null,s));if(a>-1)return a;const o=pN(e[t-2]);return t>1&&pN(s)===o&&r[r.length-1].path!==o?r.findIndex(uL.bind(null,e[t-2])):a})),r=Pa((()=>s.value>-1&&function(e,t){for(const n in t){const i=t[n],s=e[n];if("string"==typeof i){if(i!==s)return!1}else if(!$O(s)||s.length!==i.length||i.some(((e,t)=>e.valueOf()!==s[t].valueOf())))return!1}return!0}(n.params,i.value.params))),a=Pa((()=>s.value>-1&&s.value===n.matched.length-1&&hL(n.params,i.value.params)));return{route:i,href:Pa((()=>i.value.href)),isActive:r,isExactActive:a,navigate:function(n={}){if(function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)){const n=t[rn(e.replace)?"replace":"push"](rn(e.to)).catch(VO);return e.viewTransition&&"undefined"!=typeof document&&"startViewTransition"in document&&document.startViewTransition((()=>n)),n}return Promise.resolve()}}}const hN=Si({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:uN,setup(e,{slots:t}){const n=jt(uN(e)),{options:i}=Bs(ML),s=Pa((()=>({[fN(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[fN(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=t.default&&(1===(r=t.default(n)).length?r[0]:r);var r;return e.custom?i:Oa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}});function pN(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fN=(e,t,n)=>null!=e?e:null!=t?t:n,mN=Si({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=Bs(BL),s=Pa((()=>e.route||i.value)),r=Bs(DL,0),a=Pa((()=>{let e=rn(r);const{matched:t}=s.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),o=Pa((()=>s.value.matched[a.value]));Rs(DL,Pa((()=>a.value+1))),Rs(NL,o),Rs(BL,s);const l=en();return pr((()=>[l.value,o.value,e.name]),(([e,t,n],[i,s,r])=>{t&&(t.instances[n]=e,s&&s!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=s.leaveGuards),t.updateGuards.size||(t.updateGuards=s.updateGuards))),!e||!t||s&&uL(t,s)&&i||(t.enterCallbacks[n]||[]).forEac
73h((t=>t(e)))}),{flush:"post"}),()=>{const i=s.value,r=e.name,a=o.value,c=a&&a.components[r];if(!c)return gN(n.default,{Component:c,route:i});const d=a.props[r],u=d?!0===d?i.params:"function"==typeof d?d(i):d:null,h=Oa(c,FO({},u,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[r]=null)},ref:l}));return gN(n.default,{Component:h,route:i})||h}}});function gN(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const yN=mN;function vN(e){const t=sN(e.routes,e),n=e.parseQuery||PL,i=e.stringifyQuery||OL,s=e.history,r=UL(),a=UL(),o=UL(),l=tn(mL);let c=mL;BO&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=jO.bind(null,(e=>""+e)),u=jO.bind(null,aL),h=jO.bind(null,oL);function p(e,r){if(r=FO({},r||l.value),"string"==typeof e){const i=cL(n,e,r.path),a=t.resolve({path:i.path},r),o=s.createHref(i.fullPath);return FO(i,a,{params:h(a.params),hash:oL(i.hash),redirectedFrom:void 0,href:o})}let a;if(null!=e.path)a=FO({},e,{path:cL(n,e.path,r.path).path});else{const t=FO({},e.params);for(const e in t)null==t[e]&&delete t[e];a=FO({},e,{params:u(t)}),r.params=u(r.params)}const o=t.resolve(a,r),c=e.hash||"";o.params=d(h(o.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(i,FO({},e,{hash:(f=c,sL(f).replace(eL,"{").replace(nL,"}").replace(JO,"^")),path:o.path}));var f;const m=s.createHref(p);return FO({fullPath:p,hash:c,query:i===OL?LL(e.query):e.query||{}},o,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?cL(n,e,l.value.path):FO({},e)}function m(e,t){if(c!==e)return IL(xL.NAVIGATION_CANCELLED,{from:t,to:e})}function g(e){return v(e)}function y(e,t){const n=e.matched[e.matched.length-1];if(n&&n.redirect){const{redirect:i}=n;let s="function"==typeof i?i(e,t):i;return"string"==typeof s&&(s=s.includes("?")||s.includes("#")?s=f(s):{path:s},s.params={}),FO({query:e.query,hash:e.hash,params:null!=s.path?{}:e.params},s)}}function v(e,t){const n=c=p(e),s=l.value,r=e.state,a=e.force,o=!0===e.replace,d=y(n,s);if(d)return v(FO(f(d),{state:"object"==typeof d?FO({},r,d.state):r,force:a,replace:o}),t||n);const u=n;let h;return u.redirectedFrom=t,!a&&function(e,t,n){const i=t.matched.length-1,s=n.matched.length-1;return i>-1&&i===s&&uL(t.matched[i],n.matched[s])&&hL(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(i,s,n)&&(h=IL(xL.NAVIGATION_DUPLICATED,{to:u,from:s}),O(s,s,!0,!1)),(h?Promise.resolve(h):T(u,s)).catch((e=>AL(e)?AL(e,xL.NAVIGATION_GUARD_REDIRECT)?e:P(e):A(e,u,s))).then((e=>{if(e){if(AL(e,xL.NAVIGATION_GUARD_REDIRECT))return v(FO({replace:o},f(e.to),{state:"object"==typeof e.to?FO({},r,e.to.state):r,force:a}),t||u)}else e=w(u,s,!0,o,r);return S(u,s,e),e}))}function b(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=D.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function T(e,t){let n;const[i,s,o]=function(e,t){const n=[],i=[],s=[],r=Math.max(t.matched.length,e.matched.length);for(let a=0;a<r;a++){const r=t.matched[a];r&&(e.matched.find((e=>uL(e,r)))?i.push(r):n.push(r));const o=e.matched[a];o&&(t.matched.find((e=>uL(e,o)))||s.push(o))}return[n,i,s]}
74/*!
75 * vue-router v4.6.4
76 * (c) 2025 Eduardo San Martin Morote
77 * @license MIT
78 */(e,t);n=jL(i.reverse(),"beforeRouteLeave",e,t);for(const r of i)r.leaveGuards.forEach((i=>{n.push(FL(i,e,t))}));const l=b.bind(null,e,t);return n.push(l),R(n).then((()=>{n=[];for(const i of r.list())n.push(FL(i,e,t));return n.push(l),R(n)})).then((()=>{n=jL(s,"beforeRouteUpdate",e,t);for(const i of s)i.updateGuards.forEach((i=>{n.push(FL(i,e,t))}));return n.push(l),R(n)})).then((()=>{n=[];for(const i of o)if(i.beforeEnter)if($O(i.beforeEnter))for(const s of i.beforeEnter)n.push(FL(s,e,t));else n.push(FL(i.beforeEnter,e,t));return n.push(l),R(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=jL(o,"beforeRouteEnter",e,t,_),n.push(l),R(n)))).then((()=>{n=[];for(const i of a.list())n.push(FL(i,e,t));return n.push(l),R(n)})).catch((e=>AL(e,xL.NAVIGATION_CANCELLED)?e:Promise.reject(e)))}
78function S(e,t,n){o.list().forEach((i=>_((()=>i(e,t,n)))))}function w(e,t,n,i,r){const a=m(e,t);if(a)return a;const o=t===mL,c=BO?history.state:{};n&&(i||o?s.replace(e.fullPath,FO({scroll:o&&c&&c.scroll},r)):s.push(e.fullPath,r)),l.value=e,O(e,t,n,o),P()}let E;function C(){E||(E=s.listen(((e,t,n)=>{if(!M.listening)return;const i=p(e),r=y(i,M.currentRoute.value);if(r)return void v(FO(r,{replace:!0,force:!0}),i).catch(VO);c=i;const a=l.value;var o,d;BO&&(o=wL(a.fullPath,n.delta),d=TL(),EL.set(o,d)),T(i,a).catch((e=>AL(e,xL.NAVIGATION_ABORTED|xL.NAVIGATION_CANCELLED)?e:AL(e,xL.NAVIGATION_GUARD_REDIRECT)?(v(FO(f(e.to),{force:!0}),i).then((e=>{AL(e,xL.NAVIGATION_ABORTED|xL.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===gL.pop&&s.go(-1,!1)})).catch(VO),Promise.reject()):(n.delta&&s.go(-n.delta,!1),A(e,i,a)))).then((e=>{(e=e||w(i,a,!1))&&(n.delta&&!AL(e,xL.NAVIGATION_CANCELLED)?s.go(-n.delta,!1):n.type===gL.pop&&AL(e,xL.NAVIGATION_ABORTED|xL.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),S(i,a,e)})).catch(VO)})))}let x,k=UL(),I=UL();function A(e,t,n){P(e);const i=I.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function P(e){return x||(x=!e,C(),k.list().forEach((([t,n])=>e?n(e):t())),k.reset()),e}function O(t,n,i,s){const{scrollBehavior:r}=e;if(!BO||!r)return Promise.resolve();const a=!i&&function(e){const t=EL.get(e);return EL.delete(e),t}(wL(t.fullPath,0))||(s||!i)&&history.state&&history.state.scroll||null;return Nn().then((()=>r(t,n,a))).then((e=>e&&SL(e))).catch((e=>A(e,t,n)))}const L=e=>s.go(e);let N;const D=new Set,M={currentRoute:l,listening:!0,addRoute:function(e,n){let i,s;return CL(e)?(i=t.getRecordMatcher(e),s=n):s=e,t.addRoute(s,i)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(FO(f(e),{replace:!0}))},go:L,back:()=>L(-1),forward:()=>L(1),beforeEach:r.add,beforeResolve:a.add,afterEach:o.add,onError:I.add,isReady:function(){return x&&l.value!==mL?Promise.resolve():new Promise(((e,t)=>{k.add([e,t])}))},install(e){e.component("RouterLink",hN),e.component("RouterView",yN),e.config.globalProperties.$router=M,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>rn(l)}),BO&&!N&&l.value===mL&&(N=!0,g(s.location).catch((e=>{})));const t={};for(const i in mL)Object.defineProperty(t,i,{get:()=>l.value[i],enumerable:!0});e.provide(ML,M),e.provide(RL,Vt(t)),e.provide(BL,l);const n=e.unmount;D.add(e),e.unmount=function(){D.delete(e),D.size<1&&(c=mL,E&&E(),E=null,l.value=mL,N=!1,x=!1),n()}}};function R(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return M}function bN(){return Bs(ML)}function _N(e){return Bs(RL)}function TN(e,t){return function(){return e.apply(t,arguments)}}const{toString:SN}=Object.prototype,{getPrototypeOf:wN}=Object,EN=(CN=Object.create(null),e=>{const t=SN.call(e);return CN[t]||(CN[t]=t.slice(8,-1).toLowerCase())});var CN;const xN=e=>(e=e.toLowerCase(),t=>EN(t)===e),kN=e=>t=>typeof t===e,{isArray:IN}=Array,AN=kN("undefined");const PN=xN("ArrayBuffer");const ON=kN("string"),LN=kN("function"),NN=kN("number"),DN=e=>null!==e&&"object"==typeof e,MN=e=>{if("object"!==EN(e))return!1;const t=wN(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},RN=xN("Date"),BN=xN("File"),UN=xN("Blob"),FN=xN("FileList"),jN=xN("URLSearchParams"),[VN,$N,qN,HN]=["ReadableStream","Request","Response","Headers"].map(xN);function zN(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,s;if("object"!=typeof e&&(e=[e]),IN(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),r=s.length;let a;for(i=0;i<r;i++)a=s[i],t.call(null,e[a],a,e)}}function GN(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,s=n.length;for(;s-- >0;)if(i=n[s],t===i.toLowerCase())return i;return null}const WN="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,XN=e=>!AN(e)&&e!==WN;const KN=(YN="undefined"!=typeof Uint8Array&&wN(Uint8Array),e=>YN&&e instanceof YN);var YN;const QN=xN("HTMLFormElement"),JN=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ZN=xN("RegExp"),eD=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};zN(n,((n,s)=>{let r;!1!==(r=t(n,s,e))&&(i[s]=r||n)})),Object.defineProperties(e,i)},tD="abcdefghijklmnopqrstuvwxyz",nD="0123456789",iD={DIGIT:nD,ALPHA:tD,ALPHA_DIGIT:tD+tD.toUpperCase()+nD};const sD=xN("AsyncFunction"),rD={isArray:IN,isArrayBuffer:PN,isBuffer:function(e){return null!==e&&!AN(e)&&null!==e.constructor&&!AN(e.constructor)&&LN(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||LN(e.append)&&("formdata"===(t=EN(e))||"object"===t&&LN(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&PN(e.buffer),t},isString:ON,isNumber:NN,isBoolean:e=>!0===e||!1===e,isObject:DN,isPlainObject:MN,isReadableStream:VN,isRequest:$N,isResponse:qN,isHeaders:HN,isUndefined:AN,isDate:RN,isFile:BN,isBlob:UN,isRegExp:ZN,isFunction:LN,isStream:e=>
vendor: 9,208 bytes, line 78
78DN(e)&&LN(e.pipe),isURLSearchParams:jN,isTypedArray:KN,isFileList:FN,forEach:zN,merge:function e(){const{caseless:t}=XN(this)&&this||{},n={},i=(i,s)=>{const r=t&&GN(n,s)||s;MN(n[r])&&MN(i)?n[r]=e(n[r],i):MN(i)?n[r]=e({},i):IN(i)?n[r]=i.slice():n[r]=i};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&zN(arguments[s],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(zN(t,((t,i)=>{n&&LN(t)?e[i]=TN(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let s,r,a;const o={};if(t=t||{},null==e)return t;do{for(s=Object.getOwnPropertyNames(e),r=s.length;r-- >0;)a=s[r],i&&!i(a,e,t)||o[a]||(t[a]=e[a],o[a]=!0);e=!1!==n&&wN(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:EN,kindOfTest:xN,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(IN(e))return e;let t=e.length;if(!NN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:QN,hasOwnProperty:JN,hasOwnProp:JN,reduceDescriptors:eD,freezeMethods:e=>{eD(e,((t,n)=>{if(LN(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];LN(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return IN(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:GN,global:WN,isContextDefined:XN,ALPHABET:iD,generateString:(e=16,t=iD.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&LN(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(DN(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const s=IN(e)?[]:{};return zN(e,((e,t)=>{const r=n(e,i+1);!AN(r)&&(s[t]=r)})),t[i]=void 0,s}}return e};return n(e,0)},isAsyncFn:sD,isThenable:e=>e&&(DN(e)||LN(e))&&LN(e.then)&&LN(e.catch)};function aD(e,t,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s)}rD.inherits(aD,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rD.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const oD=aD.prototype,lD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{lD[e]={value:e}})),Object.defineProperties(aD,lD),Object.defineProperty(oD,"isAxiosError",{value:!0}),aD.from=(e,t,n,i,s,r)=>{const a=Object.create(oD);return rD.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),aD.call(a,e.message,t,n,i,s),a.cause=e,a.name=e.name,r&&Object.assign(a,r),a};function cD(e){return rD.isPlainObject(e)||rD.isArray(e)}function dD(e){return rD.endsWith(e,"[]")?e.slice(0,-2):e}function uD(e,t,n){return e?e.concat(t).map((function(e,t){return e=dD(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const hD=rD.toFlatObject(rD,{},null,(function(e){return/^is[A-Z]/.test(e)}));function pD(e,t,n){if(!rD.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const i=(n=rD.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!rD.isUndefined(t[e])}))).metaTokens,s=n.visitor||c,r=n.dots,a=n.indexes,o=(n.Blob||"undefined"!=typeof Blob&&Blob)&&rD.isSpecCompliantForm(t);if(!rD.isFunction(s))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(rD.isDate(e))return e.toISOString();if(!o&&rD.isBlob(e))throw new aD("Blob is not supported. Use a Buffer instead.");return rD.isArrayBuffer(e)||rD.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,s){let o=e;if(e&&!s&&"object"==typeof e)if(rD.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(rD.isArray(e)&&function(e){return rD.isArray(e)&&!e.some(cD)}(e)||(rD.isFileList(e)||rD.endsWith(n,"[]"))&&(o=rD.toArray(e)))return n=dD(n),o.forEach((function(e,i){!rD.isUndefined(e)&&null!==e&&t.append(!0===a?uD([n],i,r):null===a?n:n+"[]",l(e))})),!1;return!!cD(e)||(t.append(uD(s,n,r),l(e)),!1)}const d=[],u=Object.assign(hD,{defaultVisitor:c,convertValue:l,isVisitable:cD});if(!rD.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!rD.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),rD.forEach(n,(function(n,r){!0===(!(rD.isUndefined(n)||null===n)&&s.call(t,n,rD.isString(r)?r.trim():r,i,u))&&e(n,i?i.concat(r):[r])})),d.pop()}}(e),t}function fD(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function mD(e,t){this._pairs=[],e&&pD(e,this,t)}const gD=mD.prototype;function yD(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function vD(e,t,n){if(!t)return e;const i=n&&n.encode||yD,s=n&&n.serialize;let r;if(r=s?s(t,n):rD.isURLSearchParams(t)?t.toString():new mD(t,n).toString(i),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}gD.append=function(e,t){this._pairs.push([e,t])},gD.toString=function(e){const t=e?function(t){return e.call(this,t,fD)}:fD;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class bD{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rD.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const _D={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},TD={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:mD,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},SD="undefined"!=typeof window&&"undefined"!=typeof document,wD=(ED="undefined"!=typeof navigator&&navigator.product,SD&&["ReactNative","NativeScript","NS"].indexOf(ED)<0);var ED;const CD="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,xD=SD&&window.location.href||"http://localhost",kD={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:SD,hasStandardBrowserEnv:wD,hasStandardBrowserWebWorkerEnv:CD,origin:xD},Symbol.toStringTag,{value:"Module"})),...TD};function ID(e){function t(e,n,i,s){let r=e[s++];if("__proto__"===r)return!0;const a=Number.isFinite(+r),o=s>=e.length;if(r=!r&&rD.isArray(i)?i.length:r,o)return rD.hasOwnProp(i,r)?i[r]=[i[r],n]:i[r]=n,!a;i[r]&&rD.isObject(i[r])||(i[r]=[]);return t(e,n,i[r],s)&&rD.isArray(i[r])&&(i[r]=function(e){const t={},n=Object.keys(e);let i;const s=n.length;let r;for(i=0;i<s;i++)r=n[i],t[r]=e[r];return t}(i[r])),!a}if(rD.isFormData(e)&&rD.isFunction(e.entries)){const n={};return rD.forEachEntry(e,((e,i)=>{t(function(e){return rD.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const AD={transitional:_D,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=rD.isObject(e);s&&rD.isHTMLForm(e)&&(e=new FormData(e));if(rD.isFormData(e))return i?JSON.stringify(ID(e)):e;if(rD.isArrayBuffer(e)||rD.isBuffer(e)||rD.isStream(e)||rD.isFile(e)||rD.isBlob(e)||rD.isReadableStream(e))return e;if(rD.isArrayBufferView(e))return e.buffer;if(rD.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let r;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return pD(e,new kD.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return kD.isNode&&rD.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}
vendor: 4,183 bytes, line 78
78(e,this.formSerializer).toString();if((r=rD.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return pD(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),function(e,t,n){if(rD.isString(e))try{return(t||JSON.parse)(e),rD.trim(e)}catch(s$){if("SyntaxError"!==s$.name)throw s$}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||AD.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(rD.isResponse(e)||rD.isReadableStream(e))return e;if(e&&rD.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s$){if(n){if("SyntaxError"===s$.name)throw aD.from(s$,aD.ERR_BAD_RESPONSE,this,null,this.response);throw s$}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:kD.classes.FormData,Blob:kD.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};rD.forEach(["delete","get","head","post","put","patch"],(e=>{AD.headers[e]={}}));const PD=rD.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),OD=Symbol("internals");function LD(e){return e&&String(e).trim().toLowerCase()}function ND(e){return!1===e||null==e?e:rD.isArray(e)?e.map(ND):String(e)}function DD(e,t,n,i,s){return rD.isFunction(i)?i.call(this,t,n):(s&&(t=n),rD.isString(t)?rD.isString(i)?-1!==t.indexOf(i):rD.isRegExp(i)?i.test(t):void 0:void 0)}let MD=class{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function s(e,t,n){const s=LD(t);if(!s)throw new Error("header name must be a non-empty string");const r=rD.findKey(i,s);(!r||void 0===i[r]||!0===n||void 0===n&&!1!==i[r])&&(i[r||t]=ND(e))}const r=(e,t)=>rD.forEach(e,((e,n)=>s(e,n,t)));if(rD.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(rD.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))r((e=>{const t={};let n,i,s;return e&&e.split("\n").forEach((function(e){s=e.indexOf(":"),n=e.substring(0,s).trim().toLowerCase(),i=e.substring(s+1).trim(),!n||t[n]&&PD[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t);else if(rD.isHeaders(e))for(const[a,o]of e.entries())s(o,a,n);else null!=e&&s(t,e,n);return this}get(e,t){if(e=LD(e)){const n=rD.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(rD.isFunction(t))return t.call(this,e,n);if(rD.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=LD(e)){const n=rD.findKey(this,e);return!(!n||void 0===this[n]||t&&!DD(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function s(e){if(e=LD(e)){const s=rD.findKey(n,e);!s||t&&!DD(0,n[s],s,t)||(delete n[s],i=!0)}}return rD.isArray(e)?e.forEach(s):s(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const s=t[n];e&&!DD(0,this[s],s,e,!0)||(delete this[s],i=!0)}return i}normalize(e){const t=this,n={};return rD.forEach(this,((i,s)=>{const r=rD.findKey(n,s);if(r)return t[r]=ND(i),void delete t[s];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(s):String(s).trim();a!==s&&delete t[s],t[a]=ND(i),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return rD.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&rD.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}
78static accessor(e){const t=(this[OD]=this[OD]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=LD(e);t[i]||(!function(e,t){const n=rD.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,s){return this[i].call(this,t,e,n,s)},configurable:!0})}))}(n,e),t[i]=!0)}return rD.isArray(e)?e.forEach(i):i(e),this}};function RD(e,t){const n=this||AD,i=t||n,s=MD.from(i.headers);let r=i.data;return rD.forEach(e,(function(e){r=e.call(n,r,s.normalize(),t?t.status:void 0)})),s.normalize(),r}function BD(e){return!(!e||!e.__CANCEL__)}function UD(e,t,n){aD.call(this,null==e?"canceled":e,aD.ERR_CANCELED,t,n),this.name="CanceledError"}function FD(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new aD("Request failed with status code "+n.status,[aD.ERR_BAD_REQUEST,aD.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}MD.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rD.reduceDescriptors(MD.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),rD.freezeMethods(MD),rD.inherits(UD,aD,{__CANCEL__:!0});const jD=(e,t,n=3)=>{let i=0;const s=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s,r=0,a=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=i[a];s||(s=l),n[r]=o,i[r]=l;let d=a,u=0;for(;d!==r;)u+=n[d++],d%=e;if(r=(r+1)%e,r===a&&(a=(a+1)%e),l-s<t)return;const h=c&&l-c;return h?Math.round(1e3*u/h):void 0}}(50,250);return function(e,t){let n=0;const i=1e3/t;let s=null;return function(){const t=!0===this,r=Date.now();if(t||r-n>i)return s&&(clearTimeout(s),s=null),n=r,e.apply(null,arguments);s||(s=setTimeout((()=>(s=null,n=Date.now(),e.apply(null,arguments))),i-(r-n)))}}((n=>{const r=n.loaded,a=n.lengthComputable?n.total:void 0,o=r-i,l=s(o);i=r;const c={loaded:r,total:a,progress:a?r/a:void 0,bytes:o,rate:l||void 0,estimated:l&&a&&r<=a?(a-r)/l:void 0,event:n,lengthComputable:null!=a};c[t?"download":"upload"]=!0,e(c)}),n)},VD=kD.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=rD.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},$D=kD.hasStandardBrowserEnv?{write(e,t,n,i,s,r){const a=[e+"="+encodeURIComponent(t)];rD.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),rD.isString(i)&&a.push("path="+i),rD.isString(s)&&a.push("domain="+s),!0===r&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function qD(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const HD=e=>e instanceof MD?{...e}:e;function zD(e,t){t=t||{};const n={};function i(e,t,n){return rD.isPlainObject(e)&&rD.isPlainObject(t)?rD.merge.call({caseless:n},e,t):rD.isPlainObject(t)?rD.merge({},t):rD.isArray(t)?t.slice():t}function s(e,t,n){return rD.isUndefined(t)?rD.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function r(e,t){if(!rD.isUndefined(t))return i(void 0,t)}function a(e,t){return rD.isUndefined(t)?rD.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function o(n,s,r){return r in t?i(n,s):r in e?i(void 0,n):void 0}const l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
78dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(e,t)=>s(HD(e),HD(t),!0)};return rD.forEach(Object.keys(Object.assign({},e,t)),(function(i){const r=l[i]||s,a=r(e[i],t[i],i);rD.isUndefined(a)&&r!==o||(n[i]=a)})),n}const GD=e=>{const t=zD({},e);let n,{data:i,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:a,headers:o,auth:l}=t;if(t.headers=o=MD.from(o),t.url=vD(qD(t.baseURL,t.url),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),rD.isFormData(i))if(kD.hasStandardBrowserEnv||kD.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(!1!==(n=o.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}if(kD.hasStandardBrowserEnv&&(s&&rD.isFunction(s)&&(s=s(t)),s||!1!==s&&VD(t.url))){const e=r&&a&&$D.read(a);e&&o.set(r,e)}return t},WD="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const i=GD(e);let s=i.data;const r=MD.from(i.headers).normalize();let a,{responseType:o}=i;function l(){i.cancelToken&&i.cancelToken.unsubscribe(a),i.signal&&i.signal.removeEventListener("abort",a)}let c=new XMLHttpRequest;function d(){if(!c)return;const i=MD.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());FD((function(e){t(e),l()}),(function(e){n(e),l()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:i,config:e,request:c}),c=null}c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(n(new aD("Request aborted",aD.ECONNABORTED,i,c)),c=null)},c.onerror=function(){n(new aD("Network Error",aD.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const t=i.transitional||_D;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),n(new aD(e,t.clarifyTimeoutError?aD.ETIMEDOUT:aD.ECONNABORTED,i,c)),c=null},void 0===s&&r.setContentType(null),"setRequestHeader"in c&&rD.forEach(r.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),rD.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),o&&"json"!==o&&(c.responseType=i.responseType),"function"==typeof i.onDownloadProgress&&c.addEventListener("progress",jD(i.onDownloadProgress,!0)),"function"==typeof i.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",jD(i.onUploadProgress)),(i.cancelToken||i.signal)&&(a=t=>{c&&(n(!t||t.type?new UD(null,e,c):t),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(a),i.signal&&(i.signal.aborted?a():i.signal.addEventListener("abort",a)));const u=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(i.url);u&&-1===kD.protocols.indexOf(u)?n(new aD("Unsupported protocol "+u+":",aD.ERR_BAD_REQUEST,e)):c.send(s||null)}))},XD=(e,t)=>{let n,i=new AbortController;const s=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;i.abort(t instanceof aD?t:new UD(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{s(new aD(`timeout ${t} of ms exceeded`,aD.ETIMEDOUT))}),t);const a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",s):e.unsubscribe(s))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",s)));const{signal:o}=i;return o.unsubscribe=a,[o,()=>{r&&clearTimeout(r),r=null}]},KD=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let i,s=0;for(;s<n;)i=s+t,yield e.slice(s,i),s=i},YD=(e,t,n,i,s)=>{const r=async function*(e,t,n){for await(const i of e)yield*KD(ArrayBuffer.isView(i)?i:await n(String(i)),t)}(e,t,s);let a=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:s}=await r.next();if(t)return e.close(),void i();let o=s.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(s))},cancel:e=>(i(e),r.return())},{highWaterMark:2})},QD=(e,t)=>{const n=null!=e;return i=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:i})))},JD="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,ZD=JD&&"function"==typeof ReadableStream,eM=JD&&("function"==typeof TextEncoder?(tM=new TextEncoder,e=>tM.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var tM;const nM=ZD&&(()=>{let e=!1;
78const t=new Request(kD.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),iM=ZD&&!!(()=>{try{return rD.isReadableStream(new Response("").body)}catch(e){}})(),sM={stream:iM&&(e=>e.body)};var rM;JD&&(rM=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!sM[e]&&(sM[e]=rD.isFunction(rM[e])?t=>t[e]():(t,n)=>{throw new aD(`Response type '${e}' is not supported`,aD.ERR_NOT_SUPPORT,n)})})));const aM=async(e,t)=>{const n=rD.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:rD.isBlob(e)?e.size:rD.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:rD.isArrayBufferView(e)?e.byteLength:(rD.isURLSearchParams(e)&&(e+=""),rD.isString(e)?(await eM(e)).byteLength:void 0))(t):n},oM=JD&&(async e=>{let{url:t,method:n,data:i,signal:s,cancelToken:r,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:h}=GD(e);c=c?(c+"").toLowerCase():"text";let p,f,[m,g]=s||r||a?XD([s,r],a):[];const y=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let v;try{if(l&&nM&&"get"!==n&&"head"!==n&&0!==(v=await aM(d,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});rD.isFormData(i)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body&&(i=YD(n.body,65536,QD(v,jD(l)),null,eM))}rD.isString(u)||(u=u?"cors":"omit"),f=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",withCredentials:u});let s=await fetch(f);const r=iM&&("stream"===c||"response"===c);if(iM&&(o||r)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=rD.toFiniteNumber(s.headers.get("content-length"));s=new Response(YD(s.body,65536,o&&QD(t,jD(o,!0)),r&&y,eM),e)}c=c||"text";let a=await sM[rD.findKey(sM,c)||"text"](s,e);return!r&&y(),g&&g(),await new Promise(((t,n)=>{FD(t,n,{data:a,headers:MD.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:f})}))}catch(b){if(y(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new aD("Network Error",aD.ERR_NETWORK,e,f),{cause:b.cause||b});throw aD.from(b,b&&b.code,e,f)}}),lM={http:null,xhr:WD,fetch:oM};rD.forEach(lM,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(s$){}Object.defineProperty(e,"adapterName",{value:t})}}));const cM=e=>`- ${e}`,dM=e=>rD.isFunction(e)||null===e||!1===e,uM=e=>{e=rD.isArray(e)?e:[e];const{length:t}=e;let n,i;const s={};for(let r=0;r<t;r++){let t;if(n=e[r],i=n,!dM(n)&&(i=lM[(t=String(n)).toLowerCase()],void 0===i))throw new aD(`Unknown adapter '${t}'`);if(i)break;s[t||"#"+r]=i}if(!i){const e=Object.entries(s).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new aD("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(cM).join("\n"):" "+cM(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function hM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new UD(null,e)}function pM(e){hM(e),e.headers=MD.from(e.headers),e.data=RD.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return uM(e.adapter||AD.adapter)(e).then((function(t){return hM(e),t.data=RD.call(e,e.transformResponse,t),t.headers=MD.from(t.headers),t}),(function(t){return BD(t)||(hM(e),t&&t.response&&(t.response.data=RD.call(e,e.transformResponse,t.response),t.response.headers=MD.from(t.response.headers))),Promise.reject(t)}))}const fM="1.7.2",mM={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{mM[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const gM={};mM.transitional=function(e,t,n){function i(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,s,r)=>{if(!1===e)throw new aD(i(s," has been removed"+(t?" in "+t:"")),aD.ERR_DEPRECATED);return t&&!gM[s]&&(gM[s]=!0,console.warn(i(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,s,r)}};const yM={assertOptions:function(e,t,n){if("object"!=typeof e)throw new aD("options must be an object",aD.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const r=i[s],a=t[r];if(a){const t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new aD("option "+r+" must be "+n,aD.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new aD("Unknown option "+r,aD.ERR_BAD_OPTION)}},validators:mM},vM=yM.validators;let bM=class{constructor(e){this.defaults=e,this.interceptors={request:new bD,response:new bD}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;
vendor: 1,278 bytes, line 78
78const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(s$){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=zD(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:s}=t;void 0!==n&&yM.assertOptions(n,{silentJSONParsing:vM.transitional(vM.boolean),forcedJSONParsing:vM.transitional(vM.boolean),clarifyTimeoutError:vM.transitional(vM.boolean)},!1),null!=i&&(rD.isFunction(i)?t.paramsSerializer={serialize:i}:yM.assertOptions(i,{encode:vM.function,serialize:vM.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=s&&rD.merge(s.common,s[t.method]);s&&rD.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete s[e]})),t.headers=MD.concat(r,s);const a=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let d,u=0;if(!o){const e=[pM.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let h=t;for(u=0;
78u<d;){const e=a[u++],t=a[u++];try{h=e(h)}catch(p){t.call(this,p);break}}try{c=pM.call(this,h)}catch(p){return Promise.reject(p)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return vD(qD((e=zD(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}};rD.forEach(["delete","get","head","options"],(function(e){bM.prototype[e]=function(t,n){return this.request(zD(n||{},{method:e,url:t,data:(n||{}).data}))}})),rD.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,s){return this.request(zD(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}bM.prototype[e]=t(),bM.prototype[e+"Form"]=t(!0)}));const _M={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_M).forEach((([e,t])=>{_M[t]=e}));const TM=function e(t){const n=new bM(t),i=TN(bM.prototype.request,n);return rD.extend(i,bM.prototype,n,{allOwnKeys:!0}),rD.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(zD(t,n))},i}(AD);TM.Axios=bM,TM.CanceledError=UD,TM.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,s){n.reason||(n.reason=new UD(e,i,s),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let t;return{token:new e((function(e){t=e})),cancel:t}}},TM.isCancel=BD,TM.VERSION=fM,TM.toFormData=pD,TM.AxiosError=aD,TM.Cancel=TM.CanceledError,TM.all=function(e){return Promise.all(e)},TM.spread=function(e){return function(t){return e.apply(null,t)}},TM.isAxiosError=function(e){return rD.isObject(e)&&!0===e.isAxiosError},TM.mergeConfig=zD,TM.AxiosHeaders=MD,TM.formToJSON=e=>ID(rD.isHTMLForm(e)?new FormData(e):e),TM.getAdapter=uM,TM.HttpStatusCode=_M,TM.default=TM;const{Axios:SM,AxiosError:wM,CanceledError:EM,isCancel:CM,CancelToken:xM,VERSION:kM,all:IM,Cancel:AM,isAxiosError:PM,spread:OM,toFormData:LM,AxiosHeaders:NM,HttpStatusCode:DM,formToJSON:MM,getAdapter:RM,mergeConfig:BM}=TM,UM=(e,t,n=3e5)=>{const i=(new Date).getTime()+n;sessionStorage.setItem(e,JSON.stringify({data:t,expiry:i}))},FM=e=>{const t=sessionStorage.getItem(e);if(!t)return null;const{data:n,expiry:i}=JSON.parse(t);return i<(new Date).getTime()?(sessionStorage.removeItem(e),null):n},jM=TM.create({baseURL:"https://kingfisher.api.firecrest.systems",headers:{"Content-Type":"application/json","x-api-key":"Lo3WJZfVzBa3WUK4JoaXybJc516qI3J1uIHgSMq0",PrimaryDomain:"accessradiotaranaki.com"}});let VM="";class $M extends AP{constructor(e){super(e),this.constructor=$M,Object.setPrototypeOf(this,$M.prototype)}}class qM extends $M{constructor(e={}){super({name:"CanceledError",message:"Request is canceled by user",...e}),this.constructor=qM,Object.setPrototypeOf(this,qM.prototype)}}var HM;!function(e){e.InvalidApiName="InvalidApiName"}(HM||(HM={}));
78const zM={[HM.InvalidApiName]:{message:"API name is invalid.",recoverySuggestion:"Check if the API name matches the one in your configuration or `aws-exports.js`"}},GM=async e=>{if(!e)return;const t=await yA(WM(e));if(t){const n=await(e.body?.text());return XM(t,{statusCode:e.statusCode,headers:e.headers,body:n})}},WM=e=>{let t;const n=new Proxy(e.body,{get:(e,n,i)=>"json"===n?async()=>{t||(t=e.text());try{return JSON.parse(await t)}catch(n){return{}}}:"text"===n?async()=>(t||(t=e.text()),t):Reflect.get(e,n,i)});return new Proxy(e,{get:(e,t,i)=>"body"===t?n:Reflect.get(e,t,i)})},XM=(e,t)=>{const n=new $M({name:e?.name,message:e.message,underlyingError:e,response:t});return Object.assign(n,{$metadata:e.$metadata})},KM=new Gk("RestApis");const YM="execute-api",QM="us-east-1",JM=/^.+\.([a-z0-9-]+)\.([a-z0-9-]+)\.amazonaws\.com/,ZM=(e,t)=>{const{service:n=YM,region:i=QM}=t?.amplify.getConfig()?.API?.REST?.[t?.apiName]??{},{hostname:s}=e,[,r,a]=JM.exec(s)??[];return r===YM?{service:r,region:a??i}:"appsync-api"===r?{service:"appsync",region:a??i}:{service:n,region:i}};const eR=(e,t,n,i)=>{const s=e.getConfig()?.API?.REST?.[t]?.endpoint;!function(e,t){const{message:n,recoverySuggestion:i}=zM[t];if(!e)throw new $M({name:t,message:n,recoverySuggestion:i})}(!!s,HM.InvalidApiName);try{const e=new qA(s+n);if(i){const t=new HA(e.searchParams);Object.entries(i).forEach((([e,n])=>{t.set(e,n)})),e.search=new HA(t).toString()}return e}catch(r){throw new $M({name:HM.InvalidApiName,...zM[HM.InvalidApiName],recoverySuggestion:`Please make sure the REST endpoint URL is a valid URL string. Got ${s}`})}},tR=({headers:e},t)=>!e.authorization&&!!t,nR=PA(NA,[AA,CA,({credentials:e,region:t,service:n,uriEscapePath:i=!0})=>{let s;return(r,a)=>async function(o){s=s??0;const l={credentials:"function"==typeof e?await e({forceRefresh:!!a?.isCredentialsExpired}):e,signingDate:CP(s),signingRegion:t,signingService:n,uriEscapePath:i},c=await((e,t)=>{const n=fP(t),{accessKeyId:i,credentialScope:s,longDate:r,sessionToken:a}=n,o={...e.headers};o.host=e.url.host,o[dP]=r,a&&(o[uP]=a);const l={...e,headers:o},c=EP(l,n),d=`Credential=${i}/${s}`,u=`SignedHeaders=${cP(o)}`,h=`Signature=${c}`;return o.authorization=`${pP} ${d}, ${u}, ${h}`,l})(o,l),d=await r(c),u=kP(d);return u&&(s=xP(Date.parse(u),s)),d}}]),iR=PA(NA,[AA,CA]),sR=async(e,t,n,i)=>{const{url:s,method:r,headers:a,body:o,withCredentials:l,abortSignal:c,retryStrategy:d}=t,u=o?o instanceof FormData?o:JSON.stringify(o??""):void 0,h=((e,t)=>{const n={};for(const i in e)n[i.toLowerCase()]=e[i];return t&&(n["content-type"]="application/json; charset=UTF-8",t instanceof FormData&&delete n["content-type"]),n})(a,o),p={url:s,headers:h,method:r,body:u},f={retryDecider:rR(d??e?.libraryOptions?.API?.REST?.retryStrategy),computeDelay:MA,withCrossDomainCredentials:l,abortSignal:c},m=n(p,i);let g;const y=await aR(e);if(m&&y){const e=ZM(s),t=i?.service??e.service,n=i?.region??e.region;g=await nR(p,{...f,credentials:y,region:n,service:t})}else g=await iR(p,{...f});return{statusCode:g.statusCode,headers:g.headers,body:g.body}},rR=e=>{const t=e?.strategy;return"no-retry"===t?()=>Promise.resolve({retryable:!1}):BA(GM)},aR=async e=>{try{const{credentials:t}=await e.Auth.fetchAuthSession();if(t)return t}catch(s$){KM.debug("No credentials available, the request will be unsigned.")}return null},oR=(e,t,n)=>function(e){const t=new AbortController,n=t.signal;let i;{const s=e=>{!0!==n.aborted&&(t.abort(e),e&&n.reason!==e&&(i=e))};return{response:(async()=>{try{const t=await e(n);if(t.statusCode>=300)throw await GM(t);return t}catch(t){const e=n,s=i??e.reason;if("AbortError"===t.name||!0===e?.aborted){const e=new qM({...s&&{message:s},underlyingError:t,recoverySuggestion:"The API request was explicitly canceled. If this is not intended, validate if you called the `cancel()` function on the API request erroneously."});throw KM.debug(t),e}throw KM.debug(t),t}})(),cancel:s}}}((async i=>{const{apiName:s,options:r={},path:a}=t,o=eR(e,s,a,r?.queryParams),l=await(e.libraryOptions?.API?.REST?.headers?.({apiName:s})),{headers:c={}}=r,d={...l,...c},u=ZM(o,{amplify:e,apiName:s});return KM.debug(n,o,d,`IAM signing options: ${JSON.stringify(u)}`),sR(e,{...r,url:o,method:n,headers:d,abortSignal:i},tR,u)})),lR=e=>((e,t)=>oR(e,t,"GET"))(fA,e);const cR=new class{fetchWithCache=async(e,t,n=e=>e)=>{const i=FM(e);if(i)return i;try{const i=n((await jM.get(t)).data);return UM(e,i),i}catch(s){console.error(`Error fetching data from ${t}`,s)}};fetchBatchLatestEpisodes=async(e=1,t=25)=>{try{return(await jM.get("/station/programmes/latest-episodes",{params:{page:e,pageSize:t}})).data}catch(n){throw console.error("Error fetching batch latest episodes",n),n}};fetchBatchFeaturedProgrammes=async(e=1,t=25)=>{try{return(await jM.get("/station/programmes/featured",{params:{page:e,pageSize:t}})).data}catch(n){throw console.error("Error fetching batch featured programmes",n),n}};get=async(e,t={})=>{try{return(await jM.get(e,{params:t})).data}catch(n){throw console.error(`Error fetching data from ${e}:`,n),n}};async fetchNowPlayingData(){try{const e=await fetch("https://live.accessmedia.nz/art/playingnow.xml"),t=await e.text();return t!==VM?(VM=t,t):null}catch(e){throw e}}},dR=new class{async GetPublishedVersion(e){return lR({apiName:"KeaPublic",path:`/article/${e}/published`})}async GetImageCollection(e){return lR({apiName:"KeaPublic",path:`/imagecollection/${e}/published`})}},uR=(e,t)=>`${e}_${t}`,hR=function(e,t,n){let i,s;const r="function"==typeof t;function a(e,n){const a=Us();(e=e||(a?Bs(TO,null):null))&&_O(e),(e=bO)._s.has(i)||(r?MO(i,t,s,e):function(e,t,n){const{state:i,actions:s,getters:r}=t,a=n.state.value[e];let o;o=MO(e,(function(){a||(n.state.value[e]=i?i():{});const t=dn(n.state.value[e]);return NO(t,s,Object.keys(r||{}).reduce(((t,i)=>(t[i]=Yt(Pa((()=>{_O(n);const t=n._s.get(e);return r[i].call(t,t)}))),t)),{}))}),t,n,0,!0)}(i,s,e));return e._s.get(i)}return i=e,s=r?n:t,a.$id=i,a}("storeId",{state:()=>({stationId:"663d951f-a0a1-4ead-ab2c-5a5bfd0b2534",stationInfo:{},stationLatestEpisodes:[],stationFeaturedProgrammes:[],stationLanguages:[],stationCategories:[],stationSchedule:[],dateSchedule:[],weekSchedule:[],nowPlaying:{},pollInterval:null,programmes:[],programmeAndEpisodesSlug:[],relatedProgrammes:{Category:[],Language:[],Station:[]},selectedProgramme:{},programmeEpisodes:[],currentEpisode:{},selectedEpisode:{},showMainPlayer:!1,playerSource:{url:"",type:"application/x-mpegURL",title:"Live Broadcast",mode:"live",autoplay:!1,audioOnlyMode:!0},isFetching:!1,errorCount:0}),actions:{async fetchStationInfo(){try{this.stationInfo=await cR.fetchWithCache(uR("station_info",this.stationId),`/station/${this.stationId}`)}catch(e){console.error("Error fetching station info:",e)}},async fetchStationLatestEpisodes(e=1,t=25){const n=`${this.stationInfo?.DisplayName}_latest_episodes`;let i=FM(n);if(i&&i[`${e}_${t}`]){const n=i[`${e}_${t}`];this.stationLatestEpisodes=n.stationLatestEpisodes}else try{this.stationInfo||await this.fetchStationInfo();const s=this.stationInfo?.DisplayName;if(!s)return void console.error("Station display name not found in stationInfo");const r=await cR.fetchBatchLatestEpisodes(e,t),a=r[s]?.Station,o=r[s]?.Programmes;if(!a||!o)return void console.error("Station data not found for ID:",this.stationId);const l=Object.keys(o).map((e=>{const t=o[e].Programme,n=o[e].Episodes.map((e=>({...e,station:a.DisplayName,folder:a.Folder,id:a.ID,programmeSlug:t.Slug,programmeImage:`https://images.accessmedia.nz/StationFolder/${a.Folder}/Images/${t.Image}`.replace(/ /g,"%20")})));return{programme:t,episodes:n}})).flatMap((e=>
78e.episodes));l.sort(((e,t)=>new Date(t.PublishDate).getTime()-new Date(e.PublishDate).getTime())),this.stationLatestEpisodes=l,i=i||{},i[`${e}_${t}`]={stationLatestEpisodes:this.stationLatestEpisodes},UM(n,i)}catch(s){console.error("Error fetching station latest episodes",s)}},async fetchStationFeaturedProgrammes(e=1,t=25){const n=`${this.stationInfo?.DisplayName}_featured_programmes`;let i=FM(n);if(i&&i[`${e}_${t}`]){const n=i[`${e}_${t}`];this.stationFeaturedProgrammes=n.featuredProgrammes}else try{this.stationInfo||await this.fetchStationInfo();const s=this.stationInfo?.DisplayName;if(!s)return void console.error("Station display name not found in stationInfo");const r=await cR.fetchBatchFeaturedProgrammes(e,t),a=r[s]?.Station,o=r[s]?.Programmes;if(!a||!o)return void console.error(`Station data not found for display name: ${s}`);const l=o.map((e=>({...e,station:a.DisplayName,folder:a.Folder})));l.sort(((e,t)=>new Date(t.LastEditedOn).getTime()-new Date(e.LastEditedOn).getTime())),this.stationFeaturedProgrammes=l,i=i||{},i[`${e}_${t}`]={featuredProgrammes:this.stationFeaturedProgrammes},UM(n,i)}catch(s){console.error("Error fetching featured programmes for station",s)}},async fetchProgrammeById(e){const t=uR("programme",e);try{this.stationInfo||await this.fetchStationInfo();const n=await cR.fetchWithCache(t,`/programme/${e}`,(t=>{if(!t||0===Object.keys(t).length)throw new Error(`Programme with ID ${e} not found.`);return t}));return n.Slug=n.Slug||n.ID,this.selectedProgramme=n,n}catch(n){console.error(`Error fetching programme with ID ${e}:`,n.message),this.selectedProgramme={}}},async fetchProgrammeEpisodes(e){const t=uR("programme_episodes",e);try{this.stationInfo||await this.fetchStationInfo();const n=await cR.fetchWithCache(t,`/programme/${e}/episodes`,(t=>{if(!t||0===t.length)throw new Error(`No episodes found for programme with ID ${e}.`);return t}));return this.programmeEpisodes=n,n}catch(n){return console.error(`Error fetching episodes for programme with ID ${e}:`,n.message),this.programmeEpisodes=[],[]}},async fetchStationProgrammes(){const e=`${this.stationInfo?.DisplayName}_all_programmes`;try{const t=await cR.fetchWithCache(e,`/station/${this.stationId}/programmes`,(e=>{if(!e||0===e.length)throw new Error(`No Station programmes found for ID ${this.stationId}.`);return e}));return this.programmes=t,t}catch(t){return console.error(`Error fetching related programmes for programme with ID ${this.stationId}:`,t),this.programmes=[],[]}},async fetchEpisodeById(e){try{this.stationInfo||await this.fetchStationInfo();const t=await cR.fetchWithCache(uR("episode",e),`/episode/${e}`);return this.selectedEpisode=t.Episode||t,t}catch(t){console.error(`Error fetching episode ${e}:`,t)}},async fetchProgrammeSlug(e){try{this.stationInfo||await this.fetchStationInfo();const t=await cR.fetchWithCache(uR(`${this.stationInfo?.DisplayName}_programme_slug`,e),`/station/${this.stationId}/slug/${e}`);if(this.selectedProgramme=t,"00000000-0000-0000-0000-000000000000"==t.ID)return;await this.fetchRecommendedProgrammes(t.ID)}catch(t){console.error(`Error fetching slug ${e}:`,t)}},async fetchProgrammeAndEpisodesBySlug(e){try{this.stationInfo||await this.fetchStationInfo();const t=await cR.fetchWithCache(uR("station_episodes_slug",e),`/station/${this.stationId}/slug/${e}/episodes`);if(t.length){this.programmeAndEpisodesSlug=t;const e=this.programmeAndEpisodesSlug[0].Programme;await this.fetchProgrammeById(e),await this.fetchRecommendedProgrammes(e)}else await this.fetchProgrammeSlug(e);return this.programmeAndEpisodesSlug}catch(t){console.error(`Error fetching slug ${e}:`,t)}},async searchProgrammesAndEpisodes(e=null,t=null,n=null){try{const i=e?.trim(),s=Object.fromEntries(Object.entries({searchType:"ProgrammesEpisodes",station:this.stationId,searchTerm:i,category:t,language:n}).filter((([,e])=>null!=e&&""!==e))),r=await cR.get("/search",s),a=this.stationId,o=r.Programmes.filter((e=>e.Station===a||e.Stations&&e.Stations.some((e=>e.StationID===a))));return{Programmes:o,Episodes:r.Episodes.filter((e=>e.StationID===a))}}catch(i){return console.error("Error in searchProgrammesAndEpisodes:",i),{Programmes:[],Episodes:[]}}},async fetchStationIdLanguages(){const e=await cR.fetchWithCache(uR("languages",""),`/station/${this.stationId}/languages`);return this.stationLanguages=e,e},async fetchStationIdCategories(){this.stationCategories=await cR.fetchWithCache(uR("categories",""),`/station/${this.stationId}/categories`)},async fetchRecommendedProgrammes(e){const t=uR("programme_related",e);try{const n=await cR.fetchWithCache(t,`/programme/${e}/related`,(t=>{if(!t||0===t.length)throw new Error(`No related programmes found for programme with ID ${e}.`);return t}));return this.relatedProgrammes=n,n}catch(n){console.error(`Error fetching related programmes for programme with ID ${e}:`,n.message),this.relatedProgrammes=[]}},async fetchStationSchedule(){const e=await cR.get(`/station/${this.stationId}/schedule`);return this.stationSchedule=e,e},async fetchStationScheduleByDate(e){const t=await cR.get(`/station/${this.stationId}/schedule/${e}`);return this.programmes&&0!==this.programmes.length||await this.fetchStationProgrammes(),this.dateSchedule=t,t},async fetchStationScheduleByWeek(e){const t=await cR.get(`/station/${this.stationId}/schedule/week/${e}`);return this.weekSchedule=t,t},async fetchNowPlaying(){if(this.isFetching)return this.nowPlaying;this.isFetching=!0;try{const e=await cR.fetchNowPlayingData();if(null===e)return this.errorCount=0,this.nowPlaying;const t=(new DOMParser).parseFromString(e,"application/xml"),n=t.querySelector("NowPlaying > Current > Title")?.textContent??"",i=t.querySelector("NowPlaying > Next1 > Title")?.textContent??"",s=t.querySelector("NowPlaying > Last1 > Title")?.textContent??"",r=t.querySelector("NowPlaying > Current > Artist")?.textContent??"",a=t.querySelector("NowPlaying > Next1 > Artist")?.textContent??"",o=t.querySelector("NowPlaying > Last1 > Artist")?.textContent??"";return this.nowPlaying={currentTitle:n,currentArtist:r,nextTitle:i,nextArtist:a,lastTitle:s,lastArtist:o},this.errorCount=0,this.nowPlaying}catch(e){return this.errorCount++,console.error("Error fetching Now Playing data:",e),this.errorCount>=3&&(console.warn("Too many errors, pausing polling."),this.stopPolling()),null}finally{this.isFetching=!1}},initializeNowPlaying(){this.startPolling();const e=()=>{document.hidden?this.stopPolling():this.startPolling()};return document.addEventListener("visibilitychange",e),window.addEventListener("offline",(()=>this.stopPolling())),window.addEventListener("online",(()=>this.startPolling())),()=>{document.removeEventListener("visibilitychange",e),window.removeEventListener("offline",(()=>this.stopPolling())),window.removeEventListener("online",(()=>this.startPolling())),this.stopPolling()}},startPolling(){this.fetchNowPlaying(),this.pollInterval||(this.pollInterval=setInterval((()=>{this.fetchNowPlaying()}),9e5))},stopPolling(){this.pollInterval&&(clearInterval(this.pollInterval),this.pollInterval=null)}
78,async playLive(e,t=!1){this.stationInfo||await this.fetchStationInfo(),this.playerSource={url:e,type:"application/x-mpegURL",title:"Live Broadcast",mode:"live",autoplay:t,audioOnlyMode:!0}},playEpisode(e){this.playerSource={url:e.url,type:"audio/mp3",title:e.Title,mode:"episode",autoplay:!0,audioOnlyMode:!0}},resetSelectedProgramme(){this.selectedProgramme={},this.relatedProgrammes={Category:[],Language:[],Station:[]},this.programmeAndEpisodesSlug=[]},resetSelectedEpisode(){this.selectedEpisode={},this.programmeEpisodes=[],this.selectedProgramme={}},resetSchedule(){this.stationSchedule=[],this.dateSchedule=[],this.weekSchedule=[]},async getArticleById(e){const t=await dR.GetPublishedVersion(e),n=await t.response;return await n.body.json()},async getImageCollectionById(e){const t=await dR.GetImageCollection(e),n=await t.response;return await n.body.json()}},getters:{stationFolder:e=>e.stationInfo?.Folder,programmesByCategory:e=>e.programmes.reduce(((e,t)=>{const n=t.Category||"Uncategorized";return e[n]||(e[n]=[]),e[n].push(t),e}),{}),programmesByLanguage:e=>e.programmes.reduce(((e,t)=>{const n=t.Language||"Unknown";return e[n]||(e[n]=[]),e[n].push(t),e}),{})}}),pR={class:"contain p-0"},fR={class:"player-head row"},mR={class:"col-md-8 mt-md-3"},gR={class:"col-md-4"},yR={key:1,role:"button",class:"btn my-2 btn-lg text-white toast-btn me-2 ms-4"},vR=Si({__name:"FCPlayer",setup(e){const t=hR(),n=en(!1),i=async()=>{await t.playLive(t.stationInfo?.Apple_Live_Stream_Url,!0)},s=e=>{t.fetchNowPlaying(),n.value=e},r=Pa((()=>n.value?"now-playing":"wait-playing"));return Yi((async()=>{t.stationInfo?.Apple_Live_Stream_Url||await t.fetchStationInfo(),await t.playLive(t.stationInfo?.Apple_Live_Stream_Url),await Nn()})),(e,n)=>{const a=as("NowPlaying"),o=as("Player");return Vr(),Gr("div",{class:ne(["controlContainer z-index-3 fixed-bottom w-100",r.value])},[Jr("div",pR,[rn(t).playerSource.url?(Vr(),Wr(o,{key:0,source:rn(t).playerSource,playerContainerClass:"player-container col-md-8",playerVideoJsClass:"w-100",playerFooterClass:"player-footer col-md-4",onPlayingStateChange:s},{header:Gn((()=>[Jr("div",fR,[Jr("div",mR,[Zr(a,{nowPlaying:rn(t).nowPlaying,titleClass:"spl-Label"},null,8,["nowPlaying"])]),Jr("div",gR,["live"!==rn(t).playerSource.mode?(Vr(),Gr("button",{key:0,role:"button",class:"btn bg-white btn-lg my-2 toast-btn me-2 ms-4",onClick:i}," Live Stream 104.4 FM ")):(Vr(),Gr("button",yR," Live stream 104.4 FM ready "))])])])),_:1},8,["source"])):sa("",!0)])],2)}}}),bR={class:"footer pt-5 pb-7 bg-dark"},_R={class:"container"},TR={class:"row"},SR={class:"col-md-2 col-sm-6 col-12 mb-4"},wR={class:"flex-column ms-n3 nav"},ER={class:"nav-item"},CR={class:"nav-item"},xR={class:"nav-item"},kR={class:"flex-column ms-n3 nav"},IR={class:"nav-item"},AR={class:"nav-item"},PR={class:"col-md-3 col-sm-6 col-12 mb-4"},OR={class:"flex-column ms-n3 nav"},LR={class:"nav-item"},NR={class:"nav-item"},DR={class:"nav-item"},MR={class:"flex-column ms-n3 nav"},RR={class:"nav-item"},BR={class:"nav-item"},UR={class:"col-12 copyright"},FR={class:"text-center"},jR={class:"my-4 text-sm font-weight-normal"},VR=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},$R=VR(Si({__name:"FCFooterDefault",setup(e){const t=()=>{n.value=window.scrollY>200};Yi((()=>{window.addEventListener("scroll",t)})),Zi((()=>{window.removeEventListener("scroll",t)}));const n=en(!1);return(e,t)=>{const i=as("RouterLink");return Vr(),Gr("footer",bR,[Jr("div",_R,[Jr("div",TR,[t[21]||(t[21]=ia('<div class="col-md-3 col-sm-6 col-12 mb-4" data-v-f6c6741c><a href="https://cama.nz/" target="_blank" data-v-f6c6741c><img src="/v1.0.20_Live/images/CAMA_Logo_2019White.DmJeOP5C.svg" alt="CAMA" data-v-f6c6741c></a><a href="https://www.nzonair.govt.nz/" target="_blank" data-v-f6c6741c><img src="/v1.0.20_Live/images/NZoA_RGB_White.B6hZ-90K.svg" alt="NZ On Air" data-v-f6c6741c></a><p class="text-white text-sm mt-3" data-v-f6c6741c>The home of community media in Taranaki, where radio, podcasts, and video bring local stories to life.</p></div>',1)),Jr("div",SR,[t[6]||(t[6]=Jr("h6",{class:"text-sm text-white"}
78,"ART Media",-1)),t[7]||(t[7]=Jr("hr",null,null,-1)),Jr("ul",wR,[Jr("li",ER,[Zr(i,{to:"/home",class:"nav-link text-white"},{default:Gn((()=>t[1]||(t[1]=[Jr("span",null,"Home",-1)]))),_:1})]),Jr("li",CR,[Zr(i,{to:"/who-we-are",class:"nav-link text-white"},{default:Gn((()=>t[2]||(t[2]=[Jr("span",null,"About Us",-1)]))),_:1})]),Jr("li",xR,[Zr(i,{to:"/contact",class:"nav-link text-white"},{default:Gn((()=>t[3]||(t[3]=[Jr("span",null,"Contact",-1)]))),_:1})])]),t[8]||(t[8]=Jr("h6",{class:"text-sm text-white mt-4"},"Legal",-1)),t[9]||(t[9]=Jr("hr",null,null,-1)),Jr("ul",kR,[Jr("li",IR,[Zr(i,{to:"/terms",class:"nav-link text-white"},{default:Gn((()=>t[4]||(t[4]=[na("Terms & Conditions")]))),_:1})]),Jr("li",AR,[Zr(i,{to:"/privacy",class:"nav-link text-white"},{default:Gn((()=>t[5]||(t[5]=[na("Privacy Policy")]))),_:1})])])]),Jr("div",PR,[t[15]||(t[15]=Jr("h6",{class:"text-sm text-white"},"Get Involved",-1)),t[16]||(t[16]=Jr("hr",null,null,-1)),Jr("ul",OR,[Jr("li",LR,[Zr(i,{to:"/make-a-show",class:"nav-link text-white"},{default:Gn((()=>t[10]||(t[10]=[Jr("span",null,"Make a Show",-1)]))),_:1})]),Jr("li",NR,[Zr(i,{to:"/sponsor-a-show",class:"nav-link text-white"},{default:Gn((()=>t[11]||(t[11]=[Jr("span",null,"Sponsor a Show",-1)]))),_:1})]),Jr("li",DR,[Zr(i,{to:"/advertise",class:"nav-link text-white"},{default:Gn((()=>t[12]||(t[12]=[Jr("span",null,"Advertise",-1)]))),_:1})])]),t[17]||(t[17]=Jr("h6",{class:"text-sm text-white mt-4"},"Listen",-1)),t[18]||(t[18]=Jr("hr",null,null,-1)),Jr("ul",MR,[Jr("li",RR,[Zr(i,{to:"/listen/programmes",class:"nav-link text-white"},{default:Gn((()=>t[13]||(t[13]=[Jr("span",null,"Programmes",-1)]))),_:1})]),Jr("li",BR,[Zr(i,{to:"/listen/schedule",class:"nav-link text-white"},{default:Gn((()=>t[14]||(t[14]=[Jr("span",null,"Weekly Schedule",-1)]))),_:1})])])]),t[22]||(t[22]=ia('<div class="col-md-4 col-sm-6 col-12 mb-4" data-v-f6c6741c><h6 class="text-sm text-white" data-v-f6c6741c>Join &amp; Follow</h6><hr data-v-f6c6741c><div class="social-links" data-v-f6c6741c><a href="https://www.facebook.com/ARTFMTARANAKI" title="ART Media on Facebook" target="Blank" data-v-f6c6741c><i class="fab fa-facebook" data-v-f6c6741c></i></a><a href="https://www.instagram.com/artfm_taranaki/" title="ART Media on Instagram" target="Blank" data-v-f6c6741c><i class="fab fa-instagram" data-v-f6c6741c></i></a></div><h6 class="text-sm text-white mt-4" data-v-f6c6741c>Get In Touch</h6><hr data-v-f6c6741c><ul class="list-unstyled contact-details text-white" data-v-f6c6741c><li data-v-f6c6741c><span class="material-icons" data-v-f6c6741c>location_on</span> Shop 4, Top Town (Cinema Complex)<br data-v-f6c6741c>119-123 Devon St East, New Plymouth</li><li data-v-f6c6741c><span class="material-icons" data-v-f6c6741c>phone</span> <a class="text-white" href="tel:+6467513720" data-v-f6c6741c>06 751 3720</a></li><li data-v-f6c6741c><span class="material-icons" data-v-f6c6741c>email</span> <a class="text-white" href="mailto:[email protected]" data-v-f6c6741c>[email protected]</a></li></ul></div>',1)),Jr("div",UR,[Jr("div",FR,[Jr("p",jR,[na(" All rights reserved. Copyright © "+we((new Date).getFullYear())+" Developed by ",1),t[19]||(t[19]=Jr("a",{href:"https://firecrest.co.nz/",target:"_blank"},"Firecrest Systems",-1)),na(". "+we(rn("v1.0.20")),1)])])]),Jr("div",null,[Jr("a",{href:"#top",class:ne(["topLink",{visible:n.value}]),onClick:t[0]||(t[0]=ul((e=>(e=>{const t=document.querySelector(e);t&&t.scrollIntoView({behavior:"smooth"})})("#top")),["prevent"])),"aria-label":"Back to top"},t[20]||(t[20]=[Jr("i",{class:"material-icons","aria-hidden":"true"},"keyboard_arrow_up",-1)]),2)])])])])}}}),[["__scopeId","data-v-f6c6741c"]]),qR="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='10px'%20height='7px'%20viewBox='0%200%2010%207'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3edown-arrow%3c/title%3e%3cg%20id='Page-1'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='2'%20transform='translate(-938.000000,%20-135.000000)'%20fill='%23252f40'%20fill-rule='nonzero'%3e%3cg%20id='down-arrow'%20transform='translate(938.000000,%20135.000000)'%3e%3cpath%20d='M7.91769231,0.994615385%20L4.61538462,4.29692308%20L1.31307692,0.994615385%20C1.01124701,0.7030983%200.531473248,0.707267405%200.234754942,1.00398571%20C-0.0619633645,1.30070402%20-0.0661324689,1.78047778%200.225384615,2.08230769%20L4.07153846,5.92846154%20C4.37192296,6.22875534%204.85884627,6.22875534%205.15923077,5.92846154%20L9.00538462,2.08230769%20C9.20535122,1.88917348%209.28554815,1.60317085%209.21515166,1.33422514%20C9.14475517,1.06527942%208.93472058,0.855244834%208.66577486,0.784848341%20C8.39682915,0.714451848%208.11082652,0.794648781%207.91769231,0.994615385%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",HR={class:"start-0 end-0"},zR={class:"row mt-n3"},GR={class:"col-12"},WR={class:"skip-links"}
78,XR={class:"container"},KR={id:"top",ref:"top"},YR={class:"sitemenu navbar navbar-expand-lg z-index-3 shadow-none position-relative py-2 start-0 end-0"},QR={class:"container container-fluid px-0"},JR={class:"row w-100 align-items-center justify-content-between"},ZR={class:"col-auto"},eB={class:"collapse navbar-collapse w-100 py-lg-0",id:"navigation"},tB={class:"navbar-nav navbar-nav-hover ms-lg-auto flex-lg-row flex-column me-lg-3"},nB={class:"nav-item dropdown dropdown-hover mx-2"},iB={class:"dropdown-menu dropdown-menu-lg-end dropdown-menu-animation dropdown-md mt-0 mt-lg-3 p-3 border-radius-lg"},sB={class:"list-group"},rB={class:"nav-item dropdown dropdown-hover mx-2"},aB={class:"dropdown-menu dropdown-menu-lg-end dropdown-menu-animation dropdown-md mt-0 mt-lg-3 p-3 border-radius-lg"},oB={class:"list-group"},lB={class:"nav-item dropdown dropdown-hover mx-2"},cB={class:"dropdown-menu dropdown-menu-lg-end dropdown-menu-animation dropdown-md mt-0 mt-lg-3 p-3 border-radius-lg"},dB={class:"list-group"},uB=Si({__name:"FCNavbarDefault",setup(e){const t=hR(),n=e=>{e.classList.add("show"),e.setAttribute("aria-expanded","true"),s.value=e},i=e=>{e.classList.remove("show"),e.setAttribute("aria-expanded","false"),s.value=null},s=en(null),r=e=>{const t=e.target.closest(".nav-item");if(!t)return;const i=t.querySelector(".dropdown-menu");i&&n(i)},a=e=>{const t=e.relatedTarget,n=e.target;t&&n.closest(".nav-item")?.contains(t)||s.value&&i(s.value)},o=e=>{const t=e.target.closest(".nav-item");if(!t)return;const s=t.querySelector(".dropdown-menu");s&&(s.classList.contains("show")?i(s):n(s))},l=e=>{if("Enter"===e.key){const t=e.target;r(new FocusEvent("focusin",{relatedTarget:t}))}},c=en(!1),d=()=>{c.value=!c.value;const e=document.querySelector(".navbar-toggler");e&&e.setAttribute("aria-expanded",String(c.value));const t=document.getElementById("navigation");t&&!1===c.value&&t.classList.remove("show")};return Yi((async()=>{t.playLive(t.stationInfo?.Apple_Live_Stream_Url);document.querySelectorAll(".dropdown-hover > a").forEach((e=>{e.addEventListener("focusin",r),e.addEventListener("focusout",a),e.addEventListener("click",o),e.addEventListener("keydown",l)}));document.querySelectorAll(".dropdown-menu a").forEach((e=>{e.addEventListener("focusout",a)})),"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{("Tab"===e.key||e.key.startsWith("Arrow"))&&document.body.classList.add("user-tab")})),document.addEventListener("mousedown",(()=>{document.body.classList.remove("user-tab")})))})),es((()=>{document.querySelectorAll(".dropdown-hover > a").forEach((e=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",a),e.removeEventListener("click",o),e.removeEventListener("keydown",l)}));document.querySelectorAll(".dropdown-menu a").forEach((e=>{e.removeEventListener("focusout",a)}))})),(e,t)=>(Vr(),Gr("div",HR,[Jr("div",zR,[Jr("div",GR,[Jr("ul",WR,[Jr("li",null,[Jr("a",{href:"#main",ref:"skipLink",class:"skip-link",onClick:t[0]||(t[0]=ul((e=>(e=>{const t=document.querySelector(e);t&&t.scrollIntoView({behavior:"smooth"})})("#main")),["prevent"]))},"Skip to main content",512)])])])]),Jr("div",XR,[Jr("a",KR,null,512),Jr("nav",YR,[Jr("div",QR,[Jr("div",JR,[Jr("div",ZR,[Zr(rn(hN),{class:"navbar-brand d-block",to:{name:"home"}
78,rel:"tooltip",title:"Access Media Taranaki","data-placement":"bottom"},{default:Gn((()=>t[1]||(t[1]=[Jr("img",{src:"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20version='1.1'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20603.21%20676.58'%3e%3c!--%20Generator:%20Adobe%20Illustrator%2029.8.2,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%202.1.1%20Build%203)%20--%3e%3cdefs%3e%3cstyle%3e%20.st0%20{%20fill:%20none;%20}%20.st1%20{%20fill:%20%232a3d45;%20}%20.st2%20{%20fill:%20%23eaeaea;%20}%20.st3%20{%20clip-path:%20url(%23clippath);%20}%20%3c/style%3e%3cclipPath%20id='clippath'%3e%3crect%20class='st0'%20width='603.21'%20height='676.58'/%3e%3c/clipPath%3e%3c/defs%3e%3cpolygon%20class='st1'%20points='522.27%200%20520.98%20.26%20520.98%20459.27%20603.21%20522.44%20603.21%2062.14%20522.27%200'/%3e%3cpath%20class='st1'%20d='M28.89,103.68L509.19,14.62v433.62l-181.04,33.59-4.02.68-2.82,2.91-98.13,96.76-.17-65.22v-15.73l-15.47,2.82-178.65,33.25V103.68ZM522.27,0l-1.28.26L15.81,94.28v458.84l82.23-15.39,111.89-20.77.09,32.14.09,64.02v.34l.08-.09,120.35-118.64,190.44-35.47h.17l1.11-.17V0Z'/%3e%3cpolygon%20class='st2'%20points='509.25%2014.76%20509.25%20448.39%20328.25%20482.02%20324.26%20482.72%20321.41%20485.57%20223.24%20582.4%20223.11%20517.1%20223.11%20501.4%20207.66%20504.25%2028.94%20537.5%2028.94%20103.86%20509.25%2014.76'/%3e%3cpolygon%20class='st1'%20points='210.07%20517.13%20210.07%20595.57%2098.15%20616.4%2015.91%20553.24%2098.15%20537.96%20210.07%20517.13'/%3e%3cpolygon%20class='st1'%20points='329.78%20494.87%20232.33%20591.41%20210.07%20613.46%20292.31%20676.58%20411.99%20558%20603.18%20522.43%20520.98%20459.28%20329.78%20494.87'/%3e%3cg%20class='st3'%3e%3cpath%20class='st1'%20d='M94.42,371.09l-.56,52.32-22.63,4.01.31-29.21-15.17,2.69.13-12.03,5.66-1c9.35-1.66,11.17-4.12,13.15-13.39l19.1-3.39Z'/%3e%3cpath%20class='st1'%20d='M155.41,390.6c-.13,12.67-10,24.37-26.64,27.32-16.73,2.97-26.21-5.3-26.08-17.97l.09-8.07c.13-12.67,9.83-24.26,26.56-27.23,16.64-2.95,26.29,5.21,26.16,17.79l-.09,8.15ZM123.85,396.2c-.06,5.46,1.07,7.32,5.09,6.6,3.93-.7,5.18-2.97,5.24-8.44l.09-8.15c.05-4.83-1.16-6.43-5.09-5.73-4.02.71-5.18,2.74-5.24,7.57l-.09,8.15Z'/%3e%3cpath%20class='st1'%20d='M191.07,406.16l.09-8.79-31.15,5.53.13-12.51,30.08-35.83,21.4-3.8-.31,29.21,6.31-1.12-1.29,14.05-5.16.92-.09,8.79-20,3.55ZM191.64,383.46l.51-9.89-.16.03-8.71,11.18v.16s8.36-1.48,8.36-1.48Z'/%3e%3cpolygon%20class='st1'%20points='225.23%20386.82%20239.57%20384.28%20239.43%20397.58%20225.09%20400.12%20225.23%20386.82'/%3e%3cpath%20class='st1'%20d='M278.28,390.68l.09-8.79-31.15,5.53.13-12.51,30.08-35.83,21.4-3.8-.31,29.21,6.31-1.12-1.29,14.05-5.16.92-.09,8.79-20,3.55ZM278.85,367.99l.51-9.89-.16.03-8.71,11.18v.16s8.36-1.48,8.36-1.48Z'/%3e%3cpolygon%20class='st1'%20points='381.29%20320.66%20381.12%20336.73%20355.71%20341.24%20355.65%20346.14%20376.97%20342.36%20376.82%20356.77%20355.5%20360.55%20355.33%20377.01%20331.88%20381.17%20332.43%20329.33%20381.29%20320.66'/%3e%3cpolygon%20class='st1'%20points='465.56%20305.71%20465.01%20357.55%20443.69%20361.33%20443.94%20338.06%20443.77%20338.09%20431.87%20357.66%20422.19%20359.38%20410.74%20344.03%20410.57%20344.06%20410.33%20367.25%20389.09%20371.02%20389.64%20319.18%20412.1%20315.19%20427.34%20336.59%20443.01%20309.71%20465.56%20305.71'/%3e%3cpath%20class='st1'%20d='M202.68,238.44l-7.35-17.03-13.87-32.23-70.47,12.5-58.83,150.76,63.56-11.28,6-19.46,46.24-8.21,5.8,17.37,63.78-11.32-34.85-81.1ZM133.65,282.51l11.02-36.68.48-.08,10.95,32.78-22.45,3.98Z'/%3e%3cpath%20class='st1'%20d='M363.29,281.13l-7.45-10.35-18.41-25.71c8.1-5.41,14.4-12,18.88-18.91,4.47-6.85,7.08-13.97,7.78-20.6.11-1.06.18-2.14.19-3.18.19-17.85-10.73-33.37-41.95-34.89-2.4-.12-4.9-.17-7.53-.13-7.63.16-16.28,1.05-26.05,2.79l-74.02,13.13-.35,33.38,42.76,99.42,19.44-3.45.47-44.18,5.11-.91,22.65,40.08,68.69-12.19-10.2-14.3ZM290.09,228.8l-12.66,2.25.2-18.86,11.13-1.98c9.99-1.77,12.62.97,12.56,6.76-.04,3.46-.1,9.86-11.24,11.83'/%3e%3cpath%20class='st1'%20d='M484.46,135.4l-.47,44.25-42.5,7.54-1.02,96.33-44.53,7.9-34.53-48.06,8.38-8.36c2.92-3.33,5.49-6.84,7.64-10.46,5.03-8.41,7.88-17.35,7.97-25.93.12-11.51-3.89-33.33-34.72-39.47l133.77-23.74Z'/%3e%3c/g%3e%3c/svg%3e",alt:"Access Media Taranaki Home",width:"150"},null,-1)]))),_:1})]),Jr("div",{class:"col-auto d-lg-none"},[Jr("button",{class:"navbar-toggler shadow-none",type:"button","data-bs-toggle":"collapse","data-bs-target":"#navigation","aria-controls":"navigation","aria-expanded":"false","aria-label":"Toggle navigation",onClick:d},t[2]||(t[2]=[Jr("span",{class:"navbar-toggler-icon mt-2"},[Jr("span",{class:"navbar-toggler-bar bar1"}),Jr("span",{class:"navbar-toggler-bar bar2"}),Jr("span",{class:"navbar-toggler-bar bar3"})],-1)]))])]),Jr("div",eB,[Jr("ul",tB,[Zr(rn(hN),{to:{name:"home"},class:"nav-link cursor-pointer align-items-center mx-2",onClick:d},{default:Gn((()=>t[3]||(t[3]=[Jr("span",{class:"reo"},"Kāinga",-1),Jr("span",null,"Home",-1)]))),_:1}),Jr("li",nB,[Jr("a",{role:"button",class:"nav-link ps-2 cursor-pointer align-items-center",id:"dropdownMenuListen","data-bs-toggle":"dropdown","aria-expanded":"false",onKeydown:pl(l,["enter"]),tabindex:"0"},t[4]||(t[4]=[Jr("span",{class:"reo"},"Whakarongo",-1),Jr("span",null,[na("Listen "),Jr("img",{src:qR,alt:"down-arrow",class:"arrow ms-2"})],-1)]),32),Jr("div",iB,[Jr("ul",sB,[Zr(rn(hN),{to:"/listen/programmes",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>t[5]||(t[5]=[Jr("span",null,"Programmes",-1)]))),_:1}),Zr(rn(hN),{to:"/listen/schedule",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>t[6]||(t[6]=[Jr("span",null,"Weekly Schedule",-1)]))),_:1})])])]),Jr("li",rB,[Jr("a",{role:"button",class:"nav-link ps-2 cursor-pointer align-items-center",id:"dropdownMenuAbout","data-bs-toggle":"dropdown","aria-expanded":"false",onKeydown:pl(l,["enter"]),tabindex:"0"},t[7]||(t[7]=[Jr("span",{class:"reo"},"Mātou",-1),Jr("span",null,[na("About Us "),Jr("img",{src:qR,alt:"down-arrow",class:"arrow ms-2"})],-1)]),32),Jr("div",aB,[Jr("ul",oB,[Zr(rn(hN),{to:"/who-we-are",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>t[8]||(t[8]=[Jr("span",null,"Who We Are",-1)]))),_:1}),Zr(rn(hN),{to:"/our-facilities",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>t[9]||(t[9]=[Jr("span",null,"Our Facilities",-1)]))),_:1}),Zr(rn(hN),{to:"/gallery",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>t[10]||(t[10]=[Jr("span",null,"Gallery",-1)]))),_:1})])])]),Jr("li",lB,[Jr("a",{role:"button",class:"nav-link ps-2 cursor-pointer align-items-center",id:"dropdownMenuGetInvolved","data-bs-toggle":"dropdown","aria-expanded":"false",onKeydown:pl(l,["enter"]),tabindex:"0"},t[11]||(t[11]=[Jr("span",{class:"reo"},"Mahi Tahi",-1),Jr("span",null,[na("Get Involved "),Jr("img",{src:qR,alt:"down-arrow",class:"arrow ms-2"})],-1)]),32),Jr("div",cB,[Jr("ul",dB,[Zr(rn(hN),{to:"/make-a-show",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>t[12]||(t[12]=[Jr("span",null,"Make a Show",-1)]))),_:1}),Zr(rn(hN),{to:"/sponsor-a-show",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>t[13]||(t[13]=[Jr("span",null,"Sponsor a Show",-1)]))),_:1}),Zr(rn(hN),{to:"/advertise",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>
78t[14]||(t[14]=[Jr("span",null,"Advertise",-1)]))),_:1}),Zr(rn(hN),{to:"/show-maker-resources",class:"nav-link cursor-pointer align-items-center mx-2 text-dark",tabindex:"0",onClick:d},{default:Gn((()=>t[15]||(t[15]=[Jr("span",null,"Show Maker Resources",-1)]))),_:1})])])]),Zr(rn(hN),{to:"/contact",class:"nav-link cursor-pointer align-items-center mx-2",onClick:d},{default:Gn((()=>t[16]||(t[16]=[Jr("span",{class:"reo"},"Whakapā Mai",-1),Jr("span",null,"Contact",-1)]))),_:1}),Zr(rn(hN),{to:"/search",class:"nav-link cursor-pointer align-items-center mx-2",onClick:d},{default:Gn((()=>t[17]||(t[17]=[Jr("span",{class:"search-tool"},[Jr("i",{class:"material-icons text-dark mt-2","aria-hidden":"true"},"search")],-1)]))),_:1})])])])])])]))}}),hB={id:"main"},pB=Si({__name:"App",setup:e=>(e,t)=>(Vr(),Gr(Mr,null,[Zr(uB),Jr("main",hB,[Zr(rn(yN))]),Zr($R),Zr(vR)],64))}),fB=[{path:"/",redirect:"/home"},{path:"/home",name:"home",component:()=>t((()=>import("./Home.DjyLTXTC.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),meta:{title:"ART Media – Your Community Voice"}},{path:"/listen",redirect:"/listen/programmes"},{path:"/listen/programmes",name:"Programmes",component:()=>t((()=>import("./Programmes.DJsegNMN.js")),__vite__mapDeps([10,11,12,3,4,13])),meta:{title:"Programmes | ART Media"}},{path:"/listen/schedule/:date?",name:"Schedule",component:()=>t((()=>import("./Schedule.BTS3FlEN.js")),__vite__mapDeps([14,11,12,15,3,4,16])),meta:{title:"Weekly Schedule | ART Media"}},{path:"/programme/:slug",name:"Programme",component:()=>t((()=>import("./Programme.BvIskQRv.js")),__vite__mapDeps([17,12,11,3,4,18,19,20])),meta:{title:"Programme | ART Media"}},{path:"/episode/:EID",name:"Episode",component:()=>t((()=>import("./Episode.BDAcmefL.js")),__vite__mapDeps([21,11,3,4,18,19,22])),meta:{title:"Episode | ART Media"}},{path:"/about",redirect:"/who-we-are"},{path:"/who-we-are",name:"WhoWeAre",component:()=>t((()=>import("./WhoWeAre.2iqVk4nv.js")),__vite__mapDeps([23,11,12,6,24])),meta:{title:"Who We Are | ART Media"}},{path:"/our-facilities",name:"OurFacilities",component:()=>t((()=>import("./OurFacilities.DSBf0UdV.js")),__vite__mapDeps([25,11,6])),meta:{title:"Our Facilities | ART Media"}},{path:"/get-involved",redirect:"/make-a-show"},{path:"/make-a-show",name:"MakeAShow",component:()=>t((()=>import("./MakeAShow.C6Wps89n.js")),__vite__mapDeps([26,11,6,27])),meta:{title:"Make a Show | ART Media"}},{path:"/sponsor-a-show",name:"SponsorAShow",component:()=>t((()=>import("./SponsorAShow.DnxuZyld.js")),__vite__mapDeps([28,11,7,8,6])),meta:{title:"Sponsor a Show | ART Media"}},{path:"/advertise",name:"Advertise",component:()=>t((()=>import("./Advertise.DJOFAYUT.js")),__vite__mapDeps([29,11,30])),meta:{title:"Advertise | ART Media"}},{path:"/show-maker-resources",name:"ShowMakerResources",component:()=>t((()=>import("./ShowMakerResources.Bmhn-2iY.js")),__vite__mapDeps([31,11])),meta:{title:"Show Maker Resources | ART Media"}},{path:"/gallery",name:"Gallery",component:()=>t((()=>import("./Gallery.K3RXv2cu.js")),__vite__mapDeps([32,11,33])),meta:{title:"Gallery | ART Media"}},{path:"/contact",name:"Contact",component:()=>t((()=>import("./Contact.D4No6MAC.js")),__vite__mapDeps([34,11,1,2,6,35])),meta:{title:"Contact | ART Media"}},{path:"/search",name:"Search",component:()=>t((()=>import("./Search.BfSAFrB9.js")),__vite__mapDeps([36,12,11,5,3,4,15,37])),meta:{title:"Search | ART Media"}},{path:"/privacy",name:"privacy",component:()=>t((()=>import("./PrivacyPage.DR5jFcfH.js")),__vite__mapDeps([38,11])),meta:{title:"Privacy Policy"}},{path:"/terms",name:"terms",component:()=>t((()=>import("./TermsPage.MX1aQMHZ.js")),__vite__mapDeps([39,11])),meta:{title:"Terms and Conditions"}},{path:"/notfound",name:"Page not found",component:()=>t((()=>import("./Error.A-Kw3ZVP.js")),__vite__mapDeps([40,41])),meta:{title:"Page not found!"}}];function mB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gB(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})})),n}var yB,vB,bB,_B={},TB={},SB={},wB={};function EB(){if(yB)return wB;yB=1;
78var e=wB&&wB.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function a(e){try{l(i.next(e))}catch(s$){r(s$)}}function o(e){try{l(i.throw(e))}catch(s$){r(s$)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))},t=wB&&wB.__generator||function(e,t){var n,i,s,r,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function o(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,o[0]&&(a=0)),a;)try{if(n=1,i&&(s=2&o[0]?i.return:o[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;switch(i=0,s&&(o=[2&o[0],s.value]),o[0]){case 0:case 1:s=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(s=a.trys,(s=s.length>0&&s[s.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!s||o[1]>s[0]&&o[1]<s[3])){a.label=o[1];break}if(6===o[0]&&a.label<s[1]){a.label=s[1],s=o;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(o);break}s[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s$){o=[6,s$],i=0}finally{n=s=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};Object.defineProperty(wB,"__esModule",{value:!0}),wB.ReCaptchaInstance=void 0;var n=function(){function n(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return n.prototype.execute=function(n){return e(this,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return this.recaptcha.enterprise?[4,this.recaptcha.enterprise.execute(this.recaptchaID,{action:n})]:[3,2];case 1:return e=t.sent(),[3,4];case 2:return[4,this.recaptcha.execute(this.recaptchaID,{action:n})];case 3:e=t.sent(),t.label=4;case 4:return[2,e]}}))}))},n.prototype.getSiteKey=function(){return this.siteKey},n.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},n.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},n}();return wB.ReCaptchaInstance=n,wB}function CB(){return bB||(bB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=function(){if(vB)return SB;vB=1;var e=SB&&SB.__assign||function(){return e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var s in t=arguments[n])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e},e.apply(this,arguments)};Object.defineProperty(SB,"__esModule",{value:!0}),SB.getInstance=SB.load=void 0;var t,n=EB();!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(t||(t={}));var i=function(){function i(){}return i.load=function(e,s){if(void 0===s&&(s={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(i.getLoadingState()===t.LOADED)return i.instance.getSiteKey()===e?Promise.resolve(i.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(i.getLoadingState()===t.LOADING)return e!==i.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(e,t){i.successfulLoadingConsumers.push((function(t){return e(t)})),i.errorLoadingRunnable.push((function(e){return t(e)}))}));i.instanceSiteKey=e,i.setLoadingState(t.LOADING);var r=new i;return new Promise((function(a,o){r.loadScript(e,s.useRecaptchaNet||!1,s.useEnterprise||!1,s.renderParameters?s.renderParameters:{},s.customUrl).then((function(){i.setLoadingState(t.LOADED);var o=r.doExplicitRender(grecaptcha,e,s.explicitRenderParameters?s.explicitRenderParameters:{},s.useEnterprise||!1),l=new n.ReCaptchaInstance(e,o,grecaptcha);
78i.successfulLoadingConsumers.forEach((function(e){return e(l)})),i.successfulLoadingConsumers=[],s.autoHideBadge&&l.hideBadge(),i.instance=l,a(l)})).catch((function(e){i.errorLoadingRunnable.forEach((function(t){return t(e)})),i.errorLoadingRunnable=[],o(e)}))}))},i.getInstance=function(){return i.instance},i.setLoadingState=function(e){i.loadingState=e},i.getLoadingState=function(){return null===i.loadingState?t.NOT_LOADED:i.loadingState},i.prototype.loadScript=function(e,n,s,r,a){var o=this;void 0===n&&(n=!1),void 0===s&&(s=!1),void 0===r&&(r={}),void 0===a&&(a="");var l=document.createElement("script");l.setAttribute("recaptcha-v3-script",""),l.setAttribute("async",""),l.setAttribute("defer","");var c="https://www.google.com/recaptcha/api.js";n?c=s?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js":s&&(c="https://www.google.com/recaptcha/enterprise.js"),a&&(c=a),r.render&&(r.render=void 0);var d=this.buildQueryString(r);return l.src=c+"?render=explicit"+d,new Promise((function(e,n){l.addEventListener("load",o.waitForScriptToLoad((function(){e(l)}),s),!1),l.onerror=function(e){i.setLoadingState(t.NOT_LOADED),n(e)},document.head.appendChild(l)}))},i.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter((function(t){return!!e[t]})).map((function(t){return t+"="+e[t]})).join("&")},i.prototype.waitForScriptToLoad=function(e,t){var n=this;return function(){void 0===window.grecaptcha?setTimeout((function(){n.waitForScriptToLoad(e,t)}),i.SCRIPT_LOAD_DELAY):t?window.grecaptcha.enterprise.ready((function(){e()})):window.grecaptcha.ready((function(){e()}))}},i.prototype.doExplicitRender=function(t,n,i,s){var r=e({sitekey:n},i);return i.container?s?t.enterprise.render(i.container,r):t.render(i.container,r):s?t.enterprise.render(r):t.render(r)},i.loadingState=null,i.instance=null,i.instanceSiteKey=null,i.successfulLoadingConsumers=[],i.errorLoadingRunnable=[],i.SCRIPT_LOAD_DELAY=25,i}();return SB.load=i.load,SB.getInstance=i.getInstance,SB}();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=EB();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(TB)),TB}var xB={exports:{}},kB={};
79/**
80* @vue/compiler-core v3.5.13
81* (c) 2018-present Yuxi (Evan) You and Vue contributors
82* @license MIT
vendor: 2,619 bytes, lines 83-84
83**/
84const IB=Symbol(""),AB=Symbol(""),PB=Symbol(""),OB=Symbol(""),LB=Symbol(""),NB=Symbol(""),DB=Symbol(""),MB=Symbol(""),RB=Symbol(""),BB=Symbol(""),UB=Symbol(""),FB=Symbol(""),jB=Symbol(""),VB=Symbol(""),$B=Symbol(""),qB=Symbol(""),HB=Symbol(""),zB=Symbol(""),GB=Symbol(""),WB=Symbol(""),XB=Symbol(""),KB=Symbol(""),YB=Symbol(""),QB=Symbol(""),JB=Symbol(""),ZB=Symbol(""),eU=Symbol(""),tU=Symbol(""),nU=Symbol(""),iU=Symbol(""),sU=Symbol(""),rU=Symbol(""),aU=Symbol(""),oU=Symbol(""),lU=Symbol(""),cU=Symbol(""),dU=Symbol(""),uU=Symbol(""),hU=Symbol(""),pU={[IB]:"Fragment",[AB]:"Teleport",[PB]:"Suspense",[OB]:"KeepAlive",[LB]:"BaseTransition",[NB]:"openBlock",[DB]:"createBlock",[MB]:"createElementBlock",[RB]:"createVNode",[BB]:"createElementVNode",[UB]:"createCommentVNode",[FB]:"createTextVNode",[jB]:"createStaticVNode",[VB]:"resolveComponent",[$B]:"resolveDynamicComponent",[qB]:"resolveDirective",[HB]:"resolveFilter",[zB]:"withDirectives",[GB]:"renderList",[WB]:"renderSlot",[XB]:"createSlots",[KB]:"toDisplayString",[YB]:"mergeProps",[QB]:"normalizeClass",[JB]:"normalizeStyle",[ZB]:"normalizeProps",[eU]:"guardReactiveProps",[tU]:"toHandlers",[nU]:"camelize",[iU]:"capitalize",[sU]:"toHandlerKey",[rU]:"setBlockTracking",[aU]:"pushScopeId",[oU]:"popScopeId",[lU]:"withCtx",[cU]:"unref",[dU]:"isRef",[uU]:"withMemo",[hU]:"isMemoSame"};function fU(e){Object.getOwnPropertySymbols(e).forEach((t=>{pU[t]=e[t]}))}const mU={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function gU(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:mU}}function yU(e,t,n,i,s,r,a,o=!1,l=!1,c=!1,d=mU){return e&&(o?(e.helper(NB),e.helper(AU(e.inSSR,c))):e.helper(IU(e.inSSR,c)),a&&e.helper(zB)),{type:13,tag:t,props:n,children:i,patchFlag:s,dynamicProps:r,directives:a,isBlock:o,disableTracking:l,isComponent:c,loc:d}}function vU(e,t=mU){return{type:17,loc:t,elements:e}}function bU(e,t=mU){return{type:15,loc:t,properties:e}}function _U(e,t){return{type:16,loc:mU,key:_(e)?TU(e,!0):e,value:t}}function TU(e,t=!1,n=mU,i=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:i}}function SU(e,t=mU){return{type:8,loc:t,children:e}}function wU(e,t=[],n=mU){return{type:14,loc:n,callee:e,arguments:t}}function EU(e,t=void 0,n=!1,i=!1,s=mU){return{type:18,params:e,returns:t,newline:n,isSlot:i,loc:s}}function CU(e,t,n,i=!0){return{type:19,test:e,consequent:t,alternate:n,newline:i,loc:mU}}function xU(e,t,n=!1,i=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:i,needArraySpread:!1,loc:mU}}
vendor: 929 bytes, line 84
84function kU(e){return{type:21,body:e,loc:mU}}function IU(e,t){return e||t?RB:BB}function AU(e,t){return e||t?DB:MB}function PU(e,{helper:t,removeHelper:n,inSSR:i}){e.isBlock||(e.isBlock=!0,n(IU(i,e.isComponent)),t(NB),t(AU(i,e.isComponent)))}const OU=new Uint8Array([123,123]),LU=new Uint8Array([125,125]);function NU(e){return e>=97&&e<=122||e>=65&&e<=90}function DU(e){return 32===e||10===e||9===e||12===e||13===e}function MU(e){return 47===e||62===e||DU(e)}function RU(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const BU={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};const UU
vendor: 2,117 bytes, line 84
84={COMPILER_IS_ON_ELEMENT:{message:'Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".',link:"https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html"},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.",link:"https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html"},COMPILER_NATIVE_TEMPLATE:{message:"<template> with no special directives will render as a native template element instead of its inner content in Vue 3."},COMPILER_INLINE_TEMPLATE:{message:'"inline-template" has been removed in Vue 3.',link:"https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html"},COMPILER_FILTERS:{message:'filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.',link:"https://v3-migration.vuejs.org/breaking-changes/filters.html"}};function 
84FU(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function jU(e,t){const n=FU("MODE",t),i=FU(e,t);return 3===n?!0===i:!1!==i}function VU(e,t,n,...i){return jU(e,t)}function $U(e){throw e}function qU(e){}function HU(e,t,n,i){const s=new SyntaxError(String(`https://vuejs.org/error-reference/#compiler-${e}`));return s.code=e,s.loc=t,s}const zU={0:"Illegal comment.",1:"CDATA section is allowed only in XML context.",2:"Duplicate attribute.",3:"End tag cannot have attributes.",4:"Illegal '/' in tags.",5:"Unexpected EOF in tag.",6:"Unexpected EOF in CDATA section.",7:"Unexpected EOF in comment.",8:"Unexpected EOF in script.",9:"Unexpected EOF in tag.",10:"Incorrectly closed comment.",11:"Incorrectly opened comment.",12:"Illegal tag name. Use '&lt;' to print '<'.",13:"Attribute value was expected.",14:"End tag name was expected.",15:"Whitespace was expected.",16:"Unexpected '\x3c!--' in comment.",17:"Attribute name cannot contain U+0022 (\"), U+0027 ('), and U+003C (<).",18:"Unquoted attribute value cannot contain U+0022 (\"), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (`).",19:"Attribute name cannot start with '='.",21:"'<?' is allowed only in XML context.",20:"Unexpected null character.",22:"Illegal '/' in tags.",23:"Invalid end tag.",24:"Element is missing end tag.",25:"Interpolation end sign was not found.",27:"End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.",26:"Legal directive name was expected.",28:"v-if/v-else-if is missing expression.",29:"v-if/else branches must use unique keys.",30:"v-else/v-else-if has no adjacent v-if or v-else-if.",31:"v-for is missing expression.",32:"v-for has invalid expression.",33:"<template v-for> key should be placed on the <template> tag.",34:"v-bind is missing expression.",52:"v-bind with same-name shorthand only allows static argument.",35:"v-on is missing expression.",36:"Unexpected custom directive on <slot> outlet.",37:"Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.",38:"Duplicate slot names found. ",39:"Extraneous children found when component already has explicitly named default slot. These children will be ignored.",40:"v-slot can only be used on components or <template> tags.",41:"v-model is missing expression.",42:"v-model value must be a valid JavaScript member expression.",43:"v-model cannot be used on v-for or v-slot scope variables because they are not writable.",44:"v-model cannot be used on a prop, because local prop bindings are not writable.\nUse a v-bind binding combined with a v-on listener that emits update:x event instead.",45:"Error parsing JavaScript expression: ",46:"<KeepAlive> expects exactly one child component.",51:"@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.",47:'"prefixIdentifiers" option is not supported in this build of compiler.',48:"ES module mode is not supported in this build of compiler.",49:'"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.',50:'"scopeId" option is only supported in module mode.',53:""};function GU(e){return"ForOfStatement"===e.type||"ForInStatement"===e.type||"ForStatement"===e.type}function WU(e,t,n){const i="ForStatement"===e.type?e.init:e.left;
84if(i&&"VariableDeclaration"===i.type&&"var"===i.kind&&t)for(const s of i.declarations)for(const e of XU(s.id))n(e)}function XU(e,t=[]){switch(e.type){case"Identifier":t.push(e);break;case"MemberExpression":let n=e;for(;"MemberExpression"===n.type;)n=n.object;t.push(n);break;case"ObjectPattern":for(const i of e.properties)"RestElement"===i.type?XU(i.argument,t):XU(i.value,t);break;case"ArrayPattern":e.elements.forEach((e=>{e&&XU(e,t)}));break;case"RestElement":XU(e.argument,t);break;case"AssignmentPattern":XU(e.left,t)}return t}const KU=e=>e&&("ObjectProperty"===e.type||"ObjectMethod"===e.type)&&!e.computed,YU=["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"];const QU=e=>4===e.type&&e.isStatic;function JU(e){switch(e){case"Teleport":case"teleport":return AB;case"Suspense":case"suspense":return PB;case"KeepAlive":case"keep-alive":return OB;case"BaseTransition":case"base-transition":return LB}}const ZU=/^\d|[^\$\w\xA0-\uFFFF]/,eF=e=>!ZU.test(e),tF=/[A-Za-z_$\xA0-\uFFFF]/,nF=/[\.\?\w$\xA0-\uFFFF]/,iF=/\s+[.[]\s*|\s*[.[]\s+/g,sF=e=>4===e.type?e.content:e.loc.source,rF=e=>{const t=sF(e).trim().replace(iF,(e=>e.trim()));let n=0,i=[],s=0,r=0,a=null;for(let o=0;o<t.length;o++){const e=t.charAt(o);switch(n){case 0:if("["===e)i.push(n),n=1,s++;else if("("===e)i.push(n),n=2,r++;else if(!(0===o?tF:nF).test(e))return!1;break;case 1:"'"===e||'"'===e||"`"===e?(i.push(n),n=3,a=e):"["===e?s++:"]"===e&&(--s||(n=i.pop()));break;case 2:if("'"===e||'"'===e||"`"===e)i.push(n),n=3,a=e;else if("("===e)r++;else if(")"===e){if(o===t.length-1)return!1;--r||(n=i.pop())}break;case 3:e===a&&(n=i.pop(),a=null)}}return!s&&!r},aF=a,oF=rF,lF=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,cF=e=>lF.test(sF(e)),dF=a,uF=cF;function hF(e,t,n=t.length){let i=0,s=-1;for(let r=0;r<n;r++)10===t.charCodeAt(r)&&(i++,s=r);return e.offset+=n,e.line+=i,e.column=-1===s?e.column+n:n-s,e}function pF(e,t,n=!1){for(let i=0;i<e.props.length;i++){const s=e.props[i];if(7===s.type&&(n||s.exp)&&(_(t)?s.name===t:t.test(s.name)))return s}}function fF(e,t,n=!1,i=!1){for(let s=0;s<e.props.length;s++){const r=e.props[s];if(6===r.type){if(n)continue;if(r.name===t&&(r.value||i))return r}else if("bind"===r.name&&(r.exp||i)&&mF(r.arg,t))return r}}function mF(e,t){return!(!e||!QU(e)||e.content!==t)}function gF(e){return e.props.some((e=>!(7!==e.type||"bind"!==e.name||e.arg&&4===e.arg.type&&e.arg.isStatic)))}function yF(e){return 5===e.type||2===e.type}function vF(e){return 7===e.type&&"slot"===e.name}function bF(e){return 1===e.type&&3===e.tagType}function _F(e){return 1===e.type&&2===e.tagType}const TF=new Set([ZB,eU]);function SF(e,t=[]){if(e&&!_(e)&&14===e.type){const n=e.callee;if(!_(n)&&TF.has(n))return SF(e.arguments[0],t.concat(e))}return[e,t]}function wF(e,t,n){let i,s,r=13===e.type?e.props:e.arguments[2],a=[];if(r&&!_(r)&&14===r.type){const e=SF(r);r=e[0],a=e[1],s=a[a.length-1]}if(null==r||_(r))i=bU([t]);else if(14===r.type){const e=r.arguments[0];_(e)||15!==e.type?r.callee===tU?i=wU(n.helper(YB),[bU([t]),r]):r.arguments.unshift(bU([t])):EF(t,e)||e.properties.unshift(t),!i&&(i=r)}else 15===r.type?(EF(t,r)||r.properties.unshift(t),i=r):(i=wU(n.helper(YB),[bU([t]),r]),s&&s.callee===eU&&(s=a[a.length-2]));13===e.type?s?s.arguments[0]=i:e.props=i:s?s.arguments[0]=i:e.arguments[2]=i}function EF(e,t){let n=!1;if(4===e.key.type){const i=e.key.content;n=t.properties.some((e=>4===e.key.type&&e.key.content===i))}return n}function CF(e,t){return`_${t}_${e.replace(/[^\w]/g,((t,n)=>"-"===t?"_":e.charCodeAt(n).toString()))}`}function xF(e){return 14===e.type&&e.callee===uU?e.arguments[1].returns:e}const kF=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,IF={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:o,isPreTag:o,isIgnoreNewlineTag:o,isCustomElement:o,onError:$U,onWarn:qU,comments:!1,prefixIdentifiers:!1};let AF=IF,PF=null,OF="",LF=null,NF=null,DF="",MF=-1,RF=-1,BF=0,UF=!1,FF=null;const jF=[],VF=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=OU,this.delimiterClose=LU,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=OU,this.delimiterClose=LU}getPos(e){let t=1,n=e+1;for(let i=this.newlines.length-1;i>=0;i--){const s=this.newlines[i];if(e>s){t=i+2,n=e-s;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}
vendor: 10,646 bytes, line 84
84stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?MU(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||DU(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===BU.TitleEnd||this.currentSequence===BU.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===BU.Cdata[this.sequenceIndex]?++this.sequenceIndex===BU.Cdata.length&&(this.state=28,this.currentSequence=BU.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===BU.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):NU(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){MU(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(MU(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(RU("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){DU(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=NU(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||DU(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):DU(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):DU(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||MU(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||MU(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||MU(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||MU(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||MU(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):DU(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):DU(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){DU(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=BU.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===BU.ScriptEnd[3]?this.startSpecial(BU.ScriptEnd,4):e===BU.StyleEnd[3]?this.startSpecial(BU.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===BU.TitleEnd[3]?this.startSpecial(BU.TitleEnd,4):e===BU.TextareaEnd[3]?this.startSpecial(BU.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){const e=this.buffer.charCodeAt(this.index);switch(10===e&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity()}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===BU.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(jF,{onerr:oj,ontext(e,t){GF(HF(e,t),e,t)}
84,ontextentity(e,t,n){GF(e,t,n)},oninterpolation(e,t){if(UF)return GF(HF(e,t),e,t);let n=e+VF.delimiterOpen.length,i=t-VF.delimiterClose.length;for(;DU(OF.charCodeAt(n));)n++;for(;DU(OF.charCodeAt(i-1));)i--;let s=HF(n,i);s.includes("&")&&(s=AF.decodeEntities(s,!1)),nj({type:5,content:aj(s,!1,ij(n,i)),loc:ij(e,t)})},onopentagname(e,t){const n=HF(e,t);LF={type:1,tag:n,ns:AF.getNamespace(n,jF[0],AF.ns),tagType:0,props:[],children:[],loc:ij(e-1,t),codegenNode:void 0}},onopentagend(e){zF(e)},onclosetag(e,t){const n=HF(e,t);if(!AF.isVoidTag(n)){let i=!1;for(let e=0;e<jF.length;e++){if(jF[e].tag.toLowerCase()===n.toLowerCase()){i=!0,e>0&&oj(24,jF[0].loc.start.offset);for(let n=0;n<=e;n++){WF(jF.shift(),t,n<e)}break}}i||oj(23,XF(e,60))}},onselfclosingtag(e){const t=LF.tag;LF.isSelfClosing=!0,zF(e),jF[0]&&jF[0].tag===t&&WF(jF.shift(),e)},onattribname(e,t){NF={type:6,name:HF(e,t),nameLoc:ij(e,t),value:void 0,loc:ij(e)}},ondirname(e,t){const n=HF(e,t),i="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(UF||""!==i||oj(26,e),UF||""===i)NF={type:6,name:n,nameLoc:ij(e,t),value:void 0,loc:ij(e)};else if(NF={type:7,name:i,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[TU("prop")]:[],loc:ij(e)},"pre"===i){UF=VF.inVPre=!0,FF=LF;const e=LF.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=rj(e[t]))}},ondirarg(e,t){if(e===t)return;const n=HF(e,t);if(UF)NF.name+=n,sj(NF.nameLoc,t);else{const i="["!==n[0];NF.arg=aj(i?n:n.slice(1,-1),i,ij(e,t),i?3:0)}},ondirmodifier(e,t){const n=HF(e,t);if(UF)NF.name+="."+n,sj(NF.nameLoc,t);else if("slot"===NF.name){const e=NF.arg;e&&(e.content+="."+n,sj(e.loc,t))}else{const i=TU(n,!0,ij(e,t));NF.modifiers.push(i)}},onattribdata(e,t){DF+=HF(e,t),MF<0&&(MF=e),RF=t},onattribentity(e,t,n){DF+=e,MF<0&&(MF=t),RF=n},onattribnameend(e){const t=NF.loc.start.offset,n=HF(t,e);7===NF.type&&(NF.rawName=n),LF.props.some((e=>(7===e.type?e.rawName:e.name)===n))&&oj(2,t)},onattribend(e,t){if(LF&&NF){if(sj(NF.loc,t),0!==e)if(DF.includes("&")&&(DF=AF.decodeEntities(DF,!0)),6===NF.type)"class"===NF.name&&(DF=tj(DF).trim()),1!==e||DF||oj(13,t),NF.value={type:2,content:DF,loc:1===e?ij(MF,RF):ij(MF-1,RF+1)},VF.inSFCRoot&&"template"===LF.tag&&"lang"===NF.name&&DF&&"html"!==DF&&VF.enterRCDATA(RU("</template"),0);else{let e=0;NF.exp=aj(DF,!1,ij(MF,RF),0,e),"for"===NF.name&&(NF.forParseResult=function(e){const t=e.loc,n=e.content,i=n.match(kF);if(!i)return;const[,s,r]=i,a=(e,n,i=!1)=>{const s=t.start.offset+n;return aj(e,!1,ij(s,s+e.length),0,i?1:0)},o={source:a(r.trim(),n.indexOf(r,s.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=s.trim().replace(qF,"").trim();const c=s.indexOf(l),d=l.match($F);if(d){l=l.replace($F,"").trim();const e=d[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),o.key=a(e,t,!0)),d[2]){const i=d[2].trim();i&&(o.index=a(i,n.indexOf(i,o.key?t+e.length:c+l.length),!0))}}l&&(o.value=a(l,c,!0));return o}(NF.exp));let t=-1;"bind"===NF.name&&(t=NF.modifiers.findIndex((e=>"sync"===e.content)))>-1&&VU("COMPILER_V_BIND_SYNC",AF,NF.loc,NF.rawName)&&(NF.name="model",NF.modifiers.splice(t,1))}7===NF.type&&"pre"===NF.name||LF.props.push(NF)}DF="",MF=RF=-1},oncomment(e,t){AF.comments&&nj({type:3,content:HF(e,t),loc:ij(e-4,t+3)})},onend(){const e=OF.length;for(let t=0;t<jF.length;t++)WF(jF[t],e-1),oj(24,jF[t].loc.start.offset)},oncdata(e,t){0!==jF[0].ns?GF(HF(e,t),e,t):oj(1,e-9)},onprocessinginstruction(e){0===(jF[0]?jF[0].ns:AF.ns)&&oj(21,e-1)}}),$F=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,qF=/^\(|\)$/g;function HF(e,t){return OF.slice(e,t)}function zF(e){VF.inSFCRoot&&(LF.innerLoc=ij(e+1,e+1)),nj(LF);const{tag:t,ns:n}=LF;0===n&&AF.isPreTag(t)&&BF++,AF.isVoidTag(t)?WF(LF,e):(jF.unshift(LF),1!==n&&2!==n||(VF.inXML=!0)),LF=null}function GF(e,t,n){{const t=jF[0]&&jF[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=AF.decodeEntities(e,!1))}const i=jF[0]||PF,s=i.children[i.children.length-1];s&&2===s.type?(s.content+=e,sj(s.loc,n)):i.children.push({type:2,content:e,loc:ij(t,n)})}function WF(e,t,n=!1){sj(e.loc,n?XF(t,60):function(e,t){let n=e;for(;OF.charCodeAt(n)!==t&&n<OF.length-1;)n++;return n}(t,62)+1),VF.inSFCRoot&&(e.children.length?e.innerLoc.end=d({},e.children[e.children.length-1].loc.end):e.innerLoc.end=d({},e.innerLoc.start),e.innerLoc.source=HF(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:i,ns:s,children:r}=e;if(UF||("slot"===i?e.tagType=2:YF(e)?e.tagType=3:function({tag:e,props:t}){if(AF.isCustomElement(e))return!1;if("component"===e||(n=e.charCodeAt(0),n>64&&n<91)||JU(e)||AF.isBuiltInComponent&&AF.isBuiltInComponent(e)||AF.isNativeTag&&!AF.isNativeTag(e))return!0;var n;for(let i=0;i<t.length;i++){const e=t[i];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("vue:"))return!0;
84if(VU("COMPILER_IS_ON_ELEMENT",AF,e.loc))return!0}}else if("bind"===e.name&&mF(e.arg,"is")&&VU("COMPILER_IS_ON_ELEMENT",AF,e.loc))return!0}return!1}(e)&&(e.tagType=1)),VF.inRCDATA||(e.children=JF(r)),0===s&&AF.isIgnoreNewlineTag(i)){const e=r[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===s&&AF.isPreTag(i)&&BF--,FF===e&&(UF=VF.inVPre=!1,FF=null),VF.inXML&&0===(jF[0]?jF[0].ns:AF.ns)&&(VF.inXML=!1);{const t=e.props;if(!VF.inSFCRoot&&jU("COMPILER_NATIVE_TEMPLATE",AF)&&"template"===e.tag&&!YF(e)){const t=jF[0]||PF,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find((e=>6===e.type&&"inline-template"===e.name));n&&VU("COMPILER_INLINE_TEMPLATE",AF,n.loc)&&e.children.length&&(n.value={type:2,content:HF(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function XF(e,t){let n=e;for(;OF.charCodeAt(n)!==t&&n>=0;)n--;return n}const KF=new Set(["if","else","else-if","for","slot"]);function YF({tag:e,props:t}){if("template"===e)for(let n=0;n<t.length;n++)if(7===t[n].type&&KF.has(t[n].name))return!0;return!1}const QF=/\r\n/g;function JF(e,t){const n="preserve"!==AF.whitespace;let i=!1;for(let s=0;s<e.length;s++){const t=e[s];if(2===t.type)if(BF)t.content=t.content.replace(QF,"\n");else if(ZF(t.content)){const r=e[s-1]&&e[s-1].type,a=e[s+1]&&e[s+1].type;!r||!a||n&&(3===r&&(3===a||1===a)||1===r&&(3===a||1===a&&ej(t.content)))?(i=!0,e[s]=null):t.content=" "}else n&&(t.content=tj(t.content))}return i?e.filter(Boolean):e}function ZF(e){for(let t=0;t<e.length;t++)if(!DU(e.charCodeAt(t)))return!1;return!0}function ej(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function tj(e){let t="",n=!1;for(let i=0;i<e.length;i++)DU(e.charCodeAt(i))?n||(t+=" ",n=!0):(t+=e[i],n=!1);return t}function nj(e){(jF[0]||PF).children.push(e)}function ij(e,t){return{start:VF.getPos(e),end:null==t?t:VF.getPos(t),source:null==t?t:HF(e,t)}}function sj(e,t){e.end=VF.getPos(t),e.source=HF(e.start.offset,t)}function rj(e){const t={type:6,name:e.rawName,nameLoc:ij(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function aj(e,t=!1,n,i=0,s=0){return TU(e,t,n,i)}function oj(e,t,n){AF.onError(HU(e,ij(t,t)))}function lj(e,t){if(VF.reset(),LF=null,NF=null,DF="",MF=-1,RF=-1,jF.length=0,OF=e,AF=d({},IF),t){let e;for(e in t)null!=t[e]&&(AF[e]=t[e])}VF.mode="html"===AF.parseMode?1:"sfc"===AF.parseMode?2:0,VF.inXML=1===AF.ns||2===AF.ns;const n=t&&t.delimiters;n&&(VF.delimiterOpen=RU(n[0]),VF.delimiterClose=RU(n[1]));const i=PF=gU([],e);return VF.parse(OF),i.loc=ij(0,e.length),i.children=JF(i.children),PF=null,i}function cj(e,t){uj(e,void 0,t,dj(e,e.children[0]))}function dj(e,t){const{children:n}=e;return 1===n.length&&1===t.type&&!_F(t)}function uj(e,t,n,i=!1,s=!1){const{children:r}=e,a=[];for(let d=0;d<r.length;d++){const t=r[d];if(1===t.type&&0===t.tagType){const e=i?0:hj(t,n);if(e>0){if(e>=2){t.codegenNode.patchFlag=-1,a.push(t);continue}}else{const e=t.codegenNode;if(13===e.type){const i=e.patchFlag;if((void 0===i||512===i||1===i)&&mj(t,n)>=2){const i=gj(t);i&&(e.props=n.hoist(i))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===t.type){if((i?0:hj(t,n))>=2){a.push(t);continue}}if(1===t.type){const i=1===t.tagType;i&&n.scopes.vSlot++,uj(t,e,n,!1,s),i&&n.scopes.vSlot--}else if(11===t.type)uj(t,e,n,1===t.children.length,!0);else if(9===t.type)for(let i=0;i<t.branches.length;i++)uj(t.branches[i],e,n,1===t.branches[i].children.length,s)}let o=!1;if(a.length===r.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&f(e.codegenNode.children))e.codegenNode.children=l(vU(e.codegenNode.children)),o=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!f(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=c(e.codegenNode,"default");t&&(t.returns=l(vU(t.returns)),o=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!f(t.codegenNode.children)&&15===t.codegenNode.children.type){const n=pF(e,"slot",!0),i=n&&n.arg&&c(t.codegenNode,n.arg);
84i&&(i.returns=l(vU(i.returns)),o=!0)}if(!o)for(const d of a)d.codegenNode=n.cache(d.codegenNode);function l(e){const t=n.cache(e);return s&&n.hmr&&(t.needArraySpread=!0),t}function c(e,t){if(e.children&&!f(e.children)&&15===e.children.type){const n=e.children.properties.find((e=>e.key===t||e.key.content===t));return n&&n.value}}a.length&&n.transformHoist&&n.transformHoist(r,n,e)}function hj(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const i=n.get(e);if(void 0!==i)return i;const s=e.codegenNode;if(13!==s.type)return 0;if(s.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===s.patchFlag){let i=3;const r=mj(e,t);if(0===r)return n.set(e,0),0;r<i&&(i=r);for(let s=0;s<e.children.length;s++){const r=hj(e.children[s],t);if(0===r)return n.set(e,0),0;r<i&&(i=r)}if(i>1)for(let s=0;s<e.props.length;s++){const r=e.props[s];if(7===r.type&&"bind"===r.name&&r.exp){const s=hj(r.exp,t);if(0===s)return n.set(e,0),0;s<i&&(i=s)}}if(s.isBlock){for(let t=0;t<e.props.length;t++){if(7===e.props[t].type)return n.set(e,0),0}t.removeHelper(NB),t.removeHelper(AU(t.inSSR,s.isComponent)),s.isBlock=!1,t.helper(IU(t.inSSR,s.isComponent))}return n.set(e,i),i}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:default:return 0;case 5:case 12:return hj(e.content,t);case 4:return e.constType;case 8:let r=3;for(let n=0;n<e.children.length;n++){const i=e.children[n];if(_(i)||T(i))continue;const s=hj(i,t);if(0===s)return 0;s<r&&(r=s)}return r;case 20:return 2}}const pj=new Set([QB,JB,ZB,eU]);function fj(e,t){if(14===e.type&&!_(e.callee)&&pj.has(e.callee)){const n=e.arguments[0];if(4===n.type)return hj(n,t);if(14===n.type)return fj(n,t)}return 0}function mj(e,t){let n=3;const i=gj(e);if(i&&15===i.type){const{properties:e}=i;for(let i=0;i<e.length;i++){const{key:s,value:r}=e[i],a=hj(s,t);if(0===a)return a;let o;if(a<n&&(n=a),o=4===r.type?hj(r,t):14===r.type?fj(r,t):0,0===o)return o;o<n&&(n=o)}}return n}function gj(e){const t=e.codegenNode;if(13===t.type)return t.props}function yj(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:i=!1,hmr:r=!1,cacheHandlers:o=!1,nodeTransforms:l=[],directiveTransforms:c={},transformHoist:d=null,isBuiltInComponent:u=a,isCustomElement:h=a,expressionPlugins:p=[],scopeId:f=null,slotted:m=!0,ssr:g=!1,inSSR:y=!1,ssrCssVars:v="",bindingMetadata:b=s,inline:T=!1,isTS:S=!1,onError:w=$U,onWarn:E=qU,compatConfig:C}){const x=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),k={filename:t,selfName:x&&R(N(x[1])),prefixIdentifiers:n,hoistStatic:i,hmr:r,cacheHandlers:o,nodeTransforms:l,directiveTransforms:c,transformHoist:d,isBuiltInComponent:u,isCustomElement:h,expressionPlugins:p,scopeId:f,slotted:m,ssr:g,inSSR:y,ssrCssVars:v,bindingMetadata:b,inline:T,isTS:S,onError:w,onWarn:E,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=k.helpers.get(e)||0;return k.helpers.set(e,t+1),e},removeHelper(e){const t=k.helpers.get(e);if(t){const n=t-1;n?k.helpers.set(e,n):k.helpers.delete(e)}},helperString:e=>`_${pU[k.helper(e)]}`,replaceNode(e){k.parent.children[k.childIndex]=k.currentNode=e},removeNode(e){const t=k.parent.children,n=e?t.indexOf(e):k.currentNode?k.childIndex:-1;e&&e!==k.currentNode?k.childIndex>n&&(k.childIndex--,k.onNodeRemoved()):(k.currentNode=null,k.onNodeRemoved()),k.parent.children.splice(n,1)},onNodeRemoved:a,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){_(e)&&(e=TU(e)),k.hoists.push(e);const t=TU(`_hoisted_${k.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const i=xU(k.cached.length,e,t,n);return k.cached.push(i),i}};return k.filters=new Set,k}function vj(e,t){const n=yj(e,t);bj(e,n),t.hoistStatic&&cj(e,n),t.ssr||function(e,t){const{helper:n}=t,{children:i}=e;if(1===i.length){const n=i[0];if(dj(e,n)&&n.codegenNode){const i=n.codegenNode;13===i.type&&PU(i,t),e.codegenNode=i}else e.codegenNode=n}else if(i.length>1){let i=64;e.codegenNode=yU(t,n(IB),void 0,e.children,i,void 0,void 0,!0,void 0,!1)}}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function bj(e,t){t.currentNode=e;const{nodeTransforms:n}=t,i=[];for(let r=0;r<n.length;r++){const s=n[r](e,t);if(s&&(f(s)?i.push(...s):i.push(s)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(UB);break;case 5:t.ssr||t.helper(KB);break;case 9:for(let n=0;n<e.branches.length;n++)bj(e.branches[n],t);break;case 10:case 11:case 1:case 0:!function(e,t){let n=0;const i=()=>{n--};for(;n<e.children.length;n++){const s=e.children[n];_(s)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=i,bj(s,t))}}(e,t)}t.currentNode=e;let s=i.length;for(;s--;)i[s]()}function _j(e,t){const n=_(e)?t=>t===e:t=>e.test(t);return(e,i)=>{if(1===e.type){const{props:s}=e;if(3===e.tagType&&s.some(vF))return;const r=[];for(let a=0;a<s.length;a++){const o=s[a];if(7===o.type&&n(o.name)){s.splice(a,1),a--;const n=t(e,o,i);n&&r.push(n)}}return r}}}const Tj="/*@__PURE__*/",Sj=e=>`${pU[e]}: _${pU[e]}`;function wj(e,t={}){const n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:i=!1,filename:s="template.vue.html",scopeId:r=null,optimizeImports:a=!1,runtimeGlobalName:o="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:d=!1,isTS:u=!1,inSSR:h=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:i,filename:s,scopeId:r,optimizeImports:a,runtimeGlobalName:o,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:d,isTS:u,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${pU[e]}`,push(e,t=-2,n){p.code+=e},indent(){f(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:f(--p.indentLevel)},newline(){f(p.indentLevel)}};function f(e){p.push("\n"+"  ".repeat(e),0)}return p}(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:i,push:s,prefixIdentifiers:r,indent:a,deindent:o,newline:l,scopeId:c,ssr:d}=n,u=Array.from(e.helpers),h=u.length>0,p=!r&&"module"!==i;!function(e,t){const{ssr:n,prefixIdentifiers:i,push:s,newline:r,runtimeModuleName:a,runtimeGlobalName:o,ssrRuntimeModuleName:l}=t,c=o,d=Array.from(e.helpers);if(d.length>0&&(s(`const _Vue = ${c}\n`,-1),e.hoists.length)){s(`const { ${[RB,BB,UB,FB,jB].filter((e=>d.includes(e))).map(Sj).join(", ")} } = _Vue\n`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:i}=t;i();for(let s=0;s<e.length;s++){const r=e[s];r&&(n(`const _hoisted_${s+1} = `),kj(r,t),i())}t.pure=!1})(e.hoists,t),r(),s("return ")}(e,n);if(s(`function ${d?"ssrRender":"render"}(${(d?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"]).join(", ")}) {`),a(),p&&(s("with (_ctx) {"),a(),h&&(s(`const { ${u.map(Sj).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(Ej(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Ej(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Ej(e.filters,"filter",n),l()),e.temps>0){s("let ");for(let t=0;t<e.temps;t++)s(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(s("\n",0),l()),d||s("return "),e.codegenNode?kj(e.codegenNode,n):s("null"),p&&(o(),s("}")),o(),s("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Ej(e,t,{helper:n,push:i,newline:s,isTS:r}){const a=n("filter"===t?HB:"component"===t?VB:qB);for(let o=0;o<e.length;o++){let n=e[o];const l=n.endsWith("__self");l&&(n=n.slice(0,-6)),i(`const ${CF(n,t)} = ${a}(${JSON.stringify(n)}${l?", true":""})${r?"!":""}`),o<e.length-1&&s()}}function Cj(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),xj(e,t,n),n&&t.deindent(),t.push("]")}function xj(e,t,n=!1,i=!0){const{push:s,newline:r}=t;for(let a=0;a<e.length;a++){const o=e[a];_(o)?s(o,-3):f(o)?Cj(o,t):kj(o,t),a<e.length-1&&(n?(i&&s(","),r()):i&&s(", "))}}function kj(e,t){if(_(e))t.push(e,-3);else if(T(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:case 12:kj(e.codegenNode,t);break;case 2:!function(e,t){t.push(JSON.stringify(e.content),-3,e)}(e,t);break;case 4:Ij(e,t);break;case 5:!function(e,t){const{push:n,helper:i,pure:s}=t;s&&n(Tj);n(`${i(KB)}(`),kj(e.content,t),n(")")}(e,t);break;case 8:Aj(e,t);break;case 3:!function(e,t){const{push:n,helper:i,pure:s}=t;s&&n(Tj);n(`${i(UB)}(${JSON.stringify(e.content)})`,-3,e)}(e,t);break;case 13:!function(e,t){const{push:n,helper:i,pure:s}=t,{tag:r,props:a,children:o,patchFlag:l,dynamicProps:c,directives:d,isBlock:u,disableTracking:h,isComponent:p}=e;let f;l&&(f=String(l));d&&n(i(zB)+"(");u&&n(`(${i(NB)}(${h?"true":""}), `);s&&n(Tj);const m=u?AU(t.inSSR,p):IU(t.inSSR,p);n(i(m)+"(",-2,e),xj(function(e){let t=e.length;for(;t--&&null==e[t];);return e.slice(0,t+1).map((e=>e||"null"))}([r,a,o,f,c]),t),n(")"),u&&n(")");d&&(n(", "),kj(d,t),n(")"))}(e,t);break;case 14:!function(e,t){const{push:n,helper:i,pure:s}=t,r=_(e.callee)?e.callee:i(e.callee);s&&n(Tj);n(r+"(",-2,e),xj(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){const{push:n,indent:i,deindent:s,newline:r}=t,{properties:a}=e;if(!a.length)return void n("{}",-2,e);const o=a.length>1||!1;n(o?"{":"{ "),o&&i();for(let l=0;l<a.length;l++){const{key:e,value:i}=a[l];Pj(e,t),n(": "),kj(i,t),l<a.length-1&&(n(","),r())}o&&s(),n(o?"}":" }")}(e,t);break;case 17:!function(e,t){Cj(e.elements,t)}(e,t);break;case 18:!function(e,t){const{push:n,indent:i,deindent:s}=t,{params:r,returns:a,body:o,newline:l,isSlot:c}=e;c&&n(`_${pU[lU]}(`);n("(",-2,e),f(r)?xj(r,t):r&&kj(r,t);n(") => "),(l||o)&&(n("{"),i());a?(l&&n("return "),f(a)?Cj(a,t):kj(a,t)):o&&kj(o,t);(l||o)&&(s(),n("}"));c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}(e,t);break;case 19:!function(e,t){const{test:n,consequent:i,alternate:s,newline:r}=e,{push:a,indent:o,deindent:l,newline:c}=t;if(4===n.type){const e=!eF(n.content);e&&a("("),Ij(n,t),e&&a(")")}else a("("),kj(n,t),a(")");r&&o(),t.indentLevel++,r||a(" "),a("? "),kj(i,t),t.indentLevel--,r&&c(),r||a(" "),a(": ");const d=19===s.type;d||t.indentLevel++;kj(s,t),d||t.indentLevel--;r&&l(!0)}(e,t);break;case 20:!function(e,t){const{push:n,helper:i,indent:s,deindent:r,newline:a}=t,{needPauseTracking:o,needArraySpread:l}=e;l&&n("[...(");n(`_cache[${e.index}] || (`),o&&(s(),n(`${i(rU)}(-1`),e.inVOnce&&n(", true"),n("),"),a(),n("("));n(`_cache[${e.index}] = `),kj(e.value,t),o&&(n(`).cacheIndex = ${e.index},`),a(),n(`${i(rU)}(1),`),a(),n(`_cache[${e.index}]`),r());n(")"),l&&n(")]")}(e,t);break;case 21:xj(e.body,t,!0,!1)}}function Ij(e,t){const{content:n,isStatic:i}=e;t.push(i?JSON.stringify(n):n,-3,e)}function Aj(e,t){for(let n=0;n<e.children.length;n++){const i=e.children[n];_(i)?t.push(i,-3):kj(i,t)}}function Pj(e,t){const{push:n}=t;if(8===e.type)n("["),Aj(e,t),n("]");else if(e.isStatic){n(eF(e.content)?e.content:JSON.stringify(e.content),-2,e)}else n(`[${e.content}]`,-3,e)}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");function Oj(e,t,n=!1,i=!1,s=Object.create(t.identifiers)){return e}const Lj=_j(/^(if|else|else-if)$/,((e,t,n)=>Nj(e,t,n,((e,t,i)=>{const s=n.parent.children;let r=s.indexOf(e),a=0;for(;r-- >=0;){const e=s[r];e&&9===e.type&&(a+=e.branches.length)}return()=>{if(i)e.codegenNode=Mj(t,a,n);else{const i=function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode);i.alternate=Mj(t,a+e.branches.length-1,n)}}}))));function Nj(e,t,n,i){if(!("else"===t.name||t.exp&&t.exp.content.trim())){const i=t.exp?t.exp.loc:e.loc;n.onError(HU(28,t.loc)),t.exp=TU("true",!1,i)}if("if"===t.name){const r=Dj(e,t),a={type:9,loc:(s=e.loc,ij(s.start.offset,s.end.offset)),branches:[r]};if(n.replaceNode(a),i)return i(a,r,!0)}else{const s=n.parent.children;let r=s.indexOf(e);for(;r-- >=-1;){const a=s[r];if(a&&3===a.type)n.removeNode(a);else{if(!a||2!==a.type||a.content.trim().length){if(a&&9===a.type){"else-if"===t.name&&void 0===a.branches[a.branches.length-1].condition&&n.onError(HU(30,e.loc)),n.removeNode();const s=Dj(e,t);a.branches.push(s);const r=i&&i(a,s,!1);bj(s,n),r&&r(),n.currentNode=null}else n.onError(HU(30,e.loc));break}n.removeNode(a)}}}var s}function Dj(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!pF(e,"for")?e.children:[e],userKey:fF(e,"key"),isTemplateIf:n}}function Mj(e,t,n){return e.condition?CU(e.condition,Rj(e,t,n),wU(n.helper(UB),['""',"true"])):Rj(e,t,n)}function Rj(e,t,n){const{helper:i}=n,s=_U("key",TU(`${t}`,!1,mU,2)),{children:r}=e,a=r[0];if(1!==r.length||1!==a.type){if(1===r.length&&11===a.type){const e=a.codegenNode;return wF(e,s,n),e}{let t=64;
84return yU(n,i(IB),bU([s]),r,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=a.codegenNode,t=xF(e);return 13===t.type&&PU(t,n),wF(t,s,n),e}}const Bj=(e,t,n)=>{const{modifiers:i,loc:s}=e,r=e.arg;let{exp:a}=e;if(a&&4===a.type&&!a.content.trim()&&(a=void 0),!a){if(4!==r.type||!r.isStatic)return n.onError(HU(52,r.loc)),{props:[_U(r,TU("",!0,s))]};Uj(e),a=e.exp}return 4!==r.type?(r.children.unshift("("),r.children.push(') || ""')):r.isStatic||(r.content=`${r.content} || ""`),i.some((e=>"camel"===e.content))&&(4===r.type?r.isStatic?r.content=N(r.content):r.content=`${n.helperString(nU)}(${r.content})`:(r.children.unshift(`${n.helperString(nU)}(`),r.children.push(")"))),n.inSSR||(i.some((e=>"prop"===e.content))&&Fj(r,"."),i.some((e=>"attr"===e.content))&&Fj(r,"^")),{props:[_U(r,a)]}},Uj=(e,t)=>{const n=e.arg,i=N(n.content);e.exp=TU(i,!1,n.loc)},Fj=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},jj=_j("for",((e,t,n)=>{const{helper:i,removeHelper:s}=n;return Vj(e,t,n,(t=>{const r=wU(i(GB),[t.source]),a=bF(e),o=pF(e,"memo"),l=fF(e,"key",!1,!0);l&&7===l.type&&!l.exp&&Uj(l);let c=l&&(6===l.type?l.value?TU(l.value.content,!0):void 0:l.exp);const d=l&&c?_U("key",c):null,u=4===t.source.type&&t.source.constType>0,h=u?64:l?128:256;return t.codegenNode=yU(n,i(IB),void 0,r,h,void 0,void 0,!0,!u,!1,e.loc),()=>{let l;const{children:h}=t,p=1!==h.length||1!==h[0].type,f=_F(e)?e:a&&1===e.children.length&&_F(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,a&&d&&wF(l,d,n)):p?l=yU(n,i(IB),d?bU([d]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=h[0].codegenNode,a&&d&&wF(l,d,n),l.isBlock!==!u&&(l.isBlock?(s(NB),s(AU(n.inSSR,l.isComponent))):s(IU(n.inSSR,l.isComponent))),l.isBlock=!u,l.isBlock?(i(NB),i(AU(n.inSSR,l.isComponent))):i(IU(n.inSSR,l.isComponent))),o){const e=EU(qj(t.parseResult,[TU("_cached")]));e.body=kU([SU(["const _memo = (",o.exp,")"]),SU(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(hU)}(_cached, _memo)) return _cached`]),SU(["const _item = ",l]),TU("_item.memo = _memo"),TU("return _item")]),r.arguments.push(e,TU("_cache"),TU(String(n.cached.length))),n.cached.push(null)}else r.arguments.push(EU(qj(t.parseResult),l,!0))}}))}));function Vj(e,t,n,i){if(!t.exp)return void n.onError(HU(31,t.loc));const s=t.forParseResult;if(!s)return void n.onError(HU(32,t.loc));$j(s);const{addIdentifiers:r,removeIdentifiers:a,scopes:o}=n,{source:l,value:c,key:d,index:u}=s,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:d,objectIndexAlias:u,parseResult:s,children:bF(e)?e.children:[e]};n.replaceNode(h),o.vFor++;const p=i&&i(h);return()=>{o.vFor--,p&&p()}}function $j(e,t){e.finalized||(e.finalized=!0)}function qj({value:e,key:t,index:n},i=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map(((e,t)=>e||TU("_".repeat(t+1),!1)))}([e,t,n,...i])}const Hj=TU("undefined",!1),zj=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=pF(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},Gj=(e,t,n,i)=>EU(e,n,!1,!0,n.length?n[0].loc:i);function Wj(e,t,n=Gj){t.helper(lU);const{children:i,loc:s}=e,r=[],a=[];let o=t.scopes.vSlot>0||t.scopes.vFor>0;const l=pF(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!QU(e)&&(o=!0),r.push(_U(e||TU("default",!0),n(t,void 0,i,s)))}let c=!1,d=!1;const u=[],h=new Set;let p=0;for(let g=0;g<i.length;g++){const e=i[g];let s;if(!bF(e)||!(s=pF(e,"slot",!0))){3!==e.type&&u.push(e);continue}if(l){t.onError(HU(37,s.loc));break}c=!0;const{children:f,loc:m}=e,{arg:y=TU("default",!0),exp:v,loc:b}=s;let _;QU(y)?_=y?y.content:"default":o=!0;const T=pF(e,"for"),S=n(v,T,f,m);let w,E;if(w=pF(e,"if"))o=!0,a.push(CU(w.exp,Xj(y,S,p++),Hj));else if(E=pF(e,/^else(-if)?$/,!0)){let e,n=g;for(;n--&&(e=i[n],3===e.type););if(e&&bF(e)&&pF(e,/^(else-)?if$/)){let e=a[a.length-1];for(;19===e.alternate.type;)e=e.alternate;e.alternate=E.exp?CU(E.exp,Xj(y,S,p++),Hj):Xj(y,S,p++)}else t.onError(HU(30,E.loc))}else if(T){o=!0;const e=T.forParseResult;e?($j(e),a.push(wU(t.helper(GB),[e.source,EU(qj(e),Xj(y,S),!0)]))):t.onError(HU(32,T.loc))}else{if(_){if(h.has(_)){t.onError(HU(38,b));continue}h.add(_),"default"===_&&(d=!0)}r.push(_U(y,S))}}if(!l){const e=(e,i)=>{const r=n(e,void 0,i,s);return t.compatConfig&&(r.isNonScopedSlot=!0),_U("default",r)};c?u.length&&u.some((e=>Yj(e)))&&(d?t.onError(HU(39,u[0].loc)):r.push(e(void 0,u))):r.push(e(void 0,i))}const f=o?2:Kj(e.children)?3:1;let m=bU(r.concat(_U("_",TU(f+"",!1))),s);return a.length&&(m=wU(t.helper(XB),[m,vU(a)])),{slots:m,hasDynamicSlots:o}}function Xj(e,t,n){const i=[_U("name",e),_U("fn",t)];return null!=n&&i.push(_U("key",TU(String(n),!0))),bU(i)}function Kj(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||Kj(n.children))return!0;break;case 9:if(Kj(n.branches))return!0;break;case 10:case 11:if(Kj(n.children))return!0}}return!1}function Yj(e){return 2!==e.type&&12!==e.type||(2===e.type?!!e.content.trim():Yj(e.content))}const Qj=new WeakMap,Jj=(e,t)=>function(){if(1!==(e=t.currentNode).type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:i}=e,s=1===e.tagType;let r=s?Zj(e,t):`"${n}"`;const a=S(r)&&r.callee===$B;let o,l,c,d,u,h=0,p=a||r===AB||r===PB||!s&&("svg"===n||"foreignObject"===n||"math"===n);if(i.length>0){const n=eV(e,t,void 0,s,a);o=n.props,h=n.patchFlag,d=n.dynamicPropNames;const i=n.directives;u=i&&i.length?vU(i.map((e=>iV(e,t)))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0){r===OB&&(p=!0,h|=1024);if(s&&r!==AB&&r!==OB){const{slots:n,hasDynamicSlots:i}=Wj(e,t);l=n,i&&(h|=1024)}else if(1===e.children.length&&r!==AB){const n=e.children[0],i=n.type,s=5===i||8===i;s&&0===hj(n,t)&&(h|=1),l=s||2===i?n:e.children}else l=e.children}d&&d.length&&(c=function(e){let t="[";for(let n=0,i=e.length;n<i;n++)t+=JSON.stringify(e[n]),n<i-1&&(t+=", ");return t+"]"}(d)),e.codegenNode=yU(t,r,o,l,0===h?void 0:h,c,u,!!p,!1,s,e.loc)};function Zj(e,t,n=!1){let{tag:i}=e;const s=sV(i),r=fF(e,"is",!1,!0);if(r)if(s||jU("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===r.type?e=r.value&&TU(r.value.content,!0):(e=r.exp,e||(e=TU("is",!1,r.arg.loc))),e)return wU(t.helper($B),[e])}else 6===r.type&&r.value.content.startsWith("vue:")&&(i=r.value.content.slice(4));const a=JU(i)||t.isBuiltInComponent(i);return a?(n||t.helper(a),a):(t.helper(VB),t.components.add(i),CF(i,"component"))}function eV(e,t,n=e.props,i,s,r=!1){const{tag:a,loc:o,children:c}=e;let d=[];const u=[],h=[],p=c.length>0;let f=!1,m=0,g=!1,y=!1,v=!1,b=!1,_=!1,S=!1;const w=[],E=e=>
84{d.length&&(u.push(bU(tV(d),o)),d=[]),e&&u.push(e)},C=()=>{t.scopes.vFor>0&&d.push(_U(TU("ref_for",!0),TU("true")))},x=({key:e,value:n})=>{if(QU(e)){const r=e.content,a=l(r);if(!a||i&&!s||"onclick"===r.toLowerCase()||"onUpdate:modelValue"===r||A(r)||(b=!0),a&&A(r)&&(S=!0),a&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&hj(n,t)>0)return;"ref"===r?g=!0:"class"===r?y=!0:"style"===r?v=!0:"key"===r||w.includes(r)||w.push(r),!i||"class"!==r&&"style"!==r||w.includes(r)||w.push(r)}else _=!0};for(let l=0;l<n.length;l++){const s=n[l];if(6===s.type){const{loc:e,name:n,nameLoc:i,value:r}=s;let o=!0;if("ref"===n&&(g=!0,C()),"is"===n&&(sV(a)||r&&r.content.startsWith("vue:")||jU("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(_U(TU(n,!0,i),TU(r?r.content:"",o,r?r.loc:e)))}else{const{name:n,arg:l,exp:c,loc:g,modifiers:y}=s,v="bind"===n,b="on"===n;if("slot"===n){i||t.onError(HU(40,g));continue}if("once"===n||"memo"===n)continue;if("is"===n||v&&mF(l,"is")&&(sV(a)||jU("COMPILER_IS_ON_ELEMENT",t)))continue;if(b&&r)continue;if((v&&mF(l,"key")||b&&p&&mF(l,"vue:before-update"))&&(f=!0),v&&mF(l,"ref")&&C(),!l&&(v||b)){if(_=!0,c)if(v){if(C(),E(),jU("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(c);continue}u.push(c)}else E({type:14,loc:g,callee:t.helper(tU),arguments:i?[c]:[c,"true"]});else t.onError(HU(v?34:35,g));continue}v&&y.some((e=>"prop"===e.content))&&(m|=32);const S=t.directiveTransforms[n];if(S){const{props:n,needRuntime:i}=S(s,e,t);!r&&n.forEach(x),b&&l&&!QU(l)?E(bU(n,o)):d.push(...n),i&&(h.push(s),T(i)&&Qj.set(s,i))}else P(n)||(h.push(s),p&&(f=!0))}}let k;if(u.length?(E(),k=u.length>1?wU(t.helper(YB),u,o):u[0]):d.length&&(k=bU(tV(d),o)),_?m|=16:(y&&!i&&(m|=2),v&&!i&&(m|=4),w.length&&(m|=8),b&&(m|=32)),f||0!==m&&32!==m||!(g||S||h.length>0)||(m|=512),!t.inSSR&&k)switch(k.type){case 15:let e=-1,n=-1,i=!1;for(let t=0;t<k.properties.length;t++){const s=k.properties[t].key;QU(s)?"class"===s.content?e=t:"style"===s.content&&(n=t):s.isHandlerKey||(i=!0)}const s=k.properties[e],r=k.properties[n];i?k=wU(t.helper(ZB),[k]):(s&&!QU(s.value)&&(s.value=wU(t.helper(QB),[s.value])),r&&(v||4===r.value.type&&"["===r.value.content.trim()[0]||17===r.value.type)&&(r.value=wU(t.helper(JB),[r.value])));break;case 14:break;default:k=wU(t.helper(ZB),[wU(t.helper(eU),[k])])}return{props:k,directives:h,patchFlag:m,dynamicPropNames:w,shouldUseBlock:f}}function tV(e){const t=new Map,n=[];for(let i=0;i<e.length;i++){const s=e[i];if(8===s.key.type||!s.key.isStatic){n.push(s);continue}const r=s.key.content,a=t.get(r);a?("style"===r||"class"===r||l(r))&&nV(a,s):(t.set(r,s),n.push(s))}return n}function nV(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=vU([e.value,t.value],e.loc)}function iV(e,t){const n=[],i=Qj.get(e);i?n.push(t.helperString(i)):(t.helper(qB),t.directives.add(e.name),n.push(CF(e.name,"directive")));const{loc:s}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=TU("true",!1,s);n.push(bU(e.modifiers.map((e=>_U(e,t))),s))}return vU(n,e.loc)}function sV(e){return"component"===e||"Component"===e}const rV=(e,t)=>{if(_F(e)){const{children:n,loc:i}=e,{slotName:s,slotProps:r}=aV(e,t),a=[t.prefixIdentifiers?"_ctx.$slots":"$slots",s,"{}","undefined","true"];let o=2;r&&(a[2]=r,o=3),n.length&&(a[3]=EU([],n,!1,!1,i),o=4),t.scopeId&&!t.slotted&&(o=5),a.splice(o),e.codegenNode=wU(t.helper(WB),a,i)}};function aV(e,t){let n,i='"default"';const s=[];for(let r=0;r<e.props.length;r++){const t=e.props[r];if(6===t.type)t.value&&("name"===t.name?i=JSON.stringify(t.value.content):(t.name=N(t.name),s.push(t)));else if("bind"===t.name&&mF(t.arg,"name")){if(t.exp)i=t.exp;else if(t.arg&&4===t.arg.type){const e=N(t.arg.content);i=t.exp=TU(e,!1,t.arg.loc)}}else"bind"===t.name&&t.arg&&QU(t.arg)&&(t.arg.content=N(t.arg.content)),s.push(t)}if(s.length>0){const{props:i,directives:r}=eV(e,t,s,!1,!1);n=i,r.length&&t.onError(HU(36,r[0].loc))}return{slotName:i,slotProps:n}}const oV=(e,t,n,i)=>{const{loc:s,modifiers:r,arg:a}=e;let o;if(e.exp||r.length||n.onError(HU(35,s)),4===a.type)if(a.isStatic){let e=a.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);o=TU(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?B(N(e)):`on:${e}`,!0,a.loc)}else o=SU([`${n.helperString(sU)}(`,a,")"]);else o=a,o.children.unshift(`${n.helperString(sU)}(`),o.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=oF(l),t=!(e||uF(l)),n=l.content.includes(";");(t||c&&e)&&(l=SU([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let d={props:[_U(o,l||TU("() => {}",!1,s))]};return i&&(d=i(d)),c&&(d.props[0].value=n.cache(d.props[0].value)),d.props.forEach((e=>e.key.isHandlerKey=!0)),d},lV=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let i,s=!1;for(let e=0;e<n.length;e++){const t=n[e];if(yF(t)){s=!0;for(let s=e+1;s<n.length;s++){const r=n[s];if(!yF(r)){i=void 0;break}i||(i=n[e]=SU([t],t.loc)),i.children.push(" + ",r),n.splice(s,1),s--}}}if(s&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find((e=>7===e.type&&!t.directiveTransforms[e.name]))||"template"===e.tag)))for(let e=0;e<n.length;e++){const i=n[e];
84if(yF(i)||8===i.type){const s=[];2===i.type&&" "===i.content||s.push(i),t.ssr||0!==hj(i,t)||s.push("1"),n[e]={type:12,content:i,loc:i.loc,codegenNode:wU(t.helper(FB),s)}}}}},cV=new WeakSet,dV=(e,t)=>{if(1===e.type&&pF(e,"once",!0)){if(cV.has(e)||t.inVOnce||t.inSSR)return;return cV.add(e),t.inVOnce=!0,t.helper(rU),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},uV=(e,t,n)=>{const{exp:i,arg:s}=e;if(!i)return n.onError(HU(41,e.loc)),hV();const r=i.loc.source.trim(),a=4===i.type?i.content:r,o=n.bindingMetadata[r];if("props"===o||"props-aliased"===o)return n.onError(HU(44,i.loc)),hV();if(!a.trim()||!oF(i))return n.onError(HU(42,i.loc)),hV();const l=s||TU("modelValue",!0),c=s?QU(s)?`onUpdate:${N(s.content)}`:SU(['"onUpdate:" + ',s]):"onUpdate:modelValue";let d;d=SU([`${n.isTS?"($event: any)":"$event"} => ((`,i,") = $event)"]);const u=[_U(l,e.exp),_U(c,d)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map((e=>e.content)).map((e=>(eF(e)?e:JSON.stringify(e))+": true")).join(", "),n=s?QU(s)?`${s.content}Modifiers`:SU([s,' + "Modifiers"']):"modelModifiers";u.push(_U(n,TU(`{ ${t} }`,!1,e.loc,2)))}return hV(u)};function hV(e=[]){return{props:e}}const pV=/[\w).+\-_$\]]/,fV=(e,t)=>{jU("COMPILER_FILTERS",t)&&(5===e.type?mV(e.content,t):1===e.type&&e.props.forEach((e=>{7===e.type&&"for"!==e.name&&e.exp&&mV(e.exp,t)})))};function mV(e,t){if(4===e.type)gV(e,t);else for(let n=0;n<e.children.length;n++){const i=e.children[n];"object"==typeof i&&(4===i.type?gV(i,t):8===i.type?mV(e,t):5===i.type&&mV(i.content,t))}}function gV(e,t){const n=e.content;let i,s,r,a,o=!1,l=!1,c=!1,d=!1,u=0,h=0,p=0,f=0,m=[];for(r=0;r<n.length;r++)if(s=i,i=n.charCodeAt(r),o)39===i&&92!==s&&(o=!1);else if(l)34===i&&92!==s&&(l=!1);else if(c)96===i&&92!==s&&(c=!1);else if(d)47===i&&92!==s&&(d=!1);else if(124!==i||124===n.charCodeAt(r+1)||124===n.charCodeAt(r-1)||u||h||p){switch(i){case 34:l=!0;break;case 39:o=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:h++;break;case 93:h--;break;case 123:u++;break;case 125:u--}if(47===i){let e,t=r-1;for(;t>=0&&(e=n.charAt(t)," "===e);t--);e&&pV.test(e)||(d=!0)}}else void 0===a?(f=r+1,a=n.slice(0,r).trim()):g();function g(){m.push(n.slice(f,r).trim()),f=r+1}if(void 0===a?a=n.slice(0,r).trim():0!==f&&g(),m.length){for(r=0;r<m.length;r++)a=yV(a,m[r],t);e.content=a,e.ast=void 0}}function yV(e,t,n){n.helper(HB);const i=t.indexOf("(");if(i<0)return n.filters.add(t),`${CF(t,"filter")}(${e})`;{const s=t.slice(0,i),r=t.slice(i+1);return n.filters.add(s),`${CF(s,"filter")}(${e}${")"!==r?","+r:r}`}}const vV=new WeakSet,bV=(e,t)=>{if(1===e.type){const n=pF(e,"memo");if(!n||vV.has(e))return;return vV.add(e),()=>{const i=e.codegenNode||t.currentNode.codegenNode;i&&13===i.type&&(1!==e.tagType&&PU(i,t),e.codegenNode=wU(t.helper(uU),[n.exp,EU(void 0,i),"_cache",String(t.cached.length)]),t.cached.push(null))}}};function _V(e){return[[dV,Lj,bV,jj,fV,rV,Jj,zj,lV],{on:oV,bind:Bj,model:uV}]}function TV(e,t={}){const n=t.onError||$U,i="module"===t.mode;!0===t.prefixIdentifiers?n(HU(47)):i&&n(HU(48));t.cacheHandlers&&n(HU(49)),t.scopeId&&!i&&n(HU(50));const s=d({},t,{prefixIdentifiers:!1}),r=_(e)?lj(e,s):e,[a,o]=_V();return vj(r,d({},s,{nodeTransforms:[...a,...t.nodeTransforms||[]],directiveTransforms:d({},o,t.directiveTransforms||{})})),wj(r,s)}const SV=()=>({props:[]})
85/**
86* @vue/compiler-dom v3.5.13
87* (c) 2018-present Yuxi (Evan) You and Vue contributors
88* @license MIT
89**/,wV=Symbol(""),EV=Symbol(""),CV=Symbol(""),xV=Symbol(""),kV=Symbol(""),IV=Symbol(""),AV=Symbol(""),PV=Symbol(""),OV=Symbol(""),LV=Symbol("");let NV;fU({[wV]:"vModelRadio",[EV]:"vModelCheckbox",[CV]:"vModelText",[xV]:"vModelSelect",[kV]:"vModelDynamic",[IV]:"withModifiers",[AV]:"withKeys",[PV]:"vShow",[OV]:"Transition",[LV]:"TransitionGroup"});const DV={parseMode:"html",isVoidTag:oe,isNativeTag:e=>se(e)||re(e)||ae(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:function(e,t=!1){return NV||(NV=document.createElement("div")),t?(NV.innerHTML=`<div foo="${e.replace(/"/g,"&quot;")}">`,NV.children[0].getAttribute("foo")):(NV.innerHTML=e,NV.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?OV:"TransitionGroup"===e||"transition-group"===e?LV:void 0,getNamespace(e,t,n){let i=t?t.ns:n;if(t&&2===i)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some((e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content)))&&(i=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(i=0);else t&&1===i&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(i=0));if(0===i){if("svg"===e)return 1;if("math"===e)return 2}return i}},MV=e=>{1===e.type&&e.props.forEach(((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:TU("style",!0,t.loc),exp:RV(t.value.content,t.loc),modifiers:[],loc:t.loc})}))},RV=(e,t)=>{const n=te(e);return TU(JSON.stringify(n),!1,t,3)};function BV(e,t){return HU(e,t)}const UV={53:"v-html is missing expression.",54:"v-html will override element children.",55:"v-text is missing expression.",56:"v-text will override element children.",57:"v-model can only be used on <input>, <textarea> and <select> elements.",58:"v-model argument is not supported on plain elements.",59:"v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.",60:"Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.",61:"v-show is missing expression.",62:"<Transition> expects exactly one child element or component.",63:"Tags with side effect (<script> and <style>) are ignored in client component templates."},FV=i("passive,once,capture"),jV=i("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),VV=i("left,right"),$V=i("onkeyup,onkeydown,onkeypress"),qV=(e,t)=>QU(e)&&"onclick"===e.content.toLowerCase()?TU(t,!0):4!==e.type?SU(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,HV=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()},zV=[MV],GV={cloak:SV,html:(e,t,n)=>{const{exp:i,loc:s}=e;return i||n.onError(BV(53,s)),t.children.length&&(n.onError(BV(54,s)),t.children.length=0),{props:[_U(TU("innerHTML",!0,s),i||TU("",!0))]}},text:(e,t,n)=>{const{exp:i,loc:s}=e;return i||n.onError(BV(55,s)),t.children.length&&(n.onError(BV(56,s)),t.children.length=0),{props:[_U(TU("textContent",!0),i?hj(i,n)>0?i:wU(n.helperString(KB),[i],s):TU("",!0))]}},model:(e,t,n)=>{const i=uV(e,t,n);if(!i.props.length||1===t.tagType)return i;e.arg&&n.onError(BV(58,e.arg.loc));const{tag:s}=t,r=n.isCustomElement(s);if("input"===s||"textarea"===s||"select"===s||r){let a=CV,o=!1;if("input"===s||r){const i=fF(t,"type");if(i){if(7===i.type)a=kV;else if(i.value)switch(i.value.content){case"radio":a=wV;break;case"checkbox":a=EV;break;case"file":o=!0,n.onError(BV(59,e.loc))}}else gF(t)&&(a=kV)}else"select"===s&&(a=xV);o||(i.needRuntime=n.helper(a))}else n.onError(BV(57,e.loc));return i.props=i.props.filter((e=>!(4===e.key.type&&"modelValue"===e.key.content))),i},on:(e,t,n)=>oV(e,t,n,(t=>{const{modifiers:i}=e;if(!i.length)return t;let{key:s,value:r}=t.props[0];const{keyModifiers:a,nonKeyModifiers:o,eventOptionModifiers:l}=((e,t,n)=>{const i=[],s=[],r=[];for(let a=0;a<t.length;a++){const o=t[a].content;"native"===o&&VU("COMPILER_V_ON_NATIVE",n)||FV(o)?r.push(o):VV(o)?QU(e)?$V(e.content.toLowerCase())?i.push(o):s.push(o):(i.push(o),s.push(o)):jV(o)?s.push(o):i.push(o)}return{keyModifiers:i,nonKeyModifiers:s,eventOptionModifiers:r}})(s,i,n,e.loc);if(o.includes("right")&&(s=qV(s,"onContextmenu")),o.includes("middle")&&(s=qV(s,"onMouseup")),o.length&&(r=wU(n.helper(IV),[r,JSON.stringify(o)])),!a.length||QU(s)&&!$V(s.content.toLowerCase())||(r=wU(n.helper(AV),[r,JSON.stringify(a)])),l.length){const e=l.map(R).join("");s=QU(s)?TU(`${s.content}${e}`,!0):SU(["(",s,`) + "${e}"`])}return{props:[_U(s,r)]}})),show:(e,t,n)=>{const{exp:i,loc:s}=e;return i||n.onError(BV(61,s)),{props:[],needRuntime:n.helper(PV)}}};const WV=Object.freeze(Object.defineProperty({__proto__:null,BASE_TRANSITION:LB,BindingTypes:{DATA:"data",PROPS:"props",PROPS_ALIASED:"props-aliased",SETUP_LET
89:"setup-let",SETUP_CONST:"setup-const",SETUP_REACTIVE_CONST:"setup-reactive-const",SETUP_MAYBE_REF:"setup-maybe-ref",SETUP_REF:"setup-ref",OPTIONS:"options",LITERAL_CONST:"literal-const"},CAMELIZE:nU,CAPITALIZE:iU,CREATE_BLOCK:DB,CREATE_COMMENT:UB,CREATE_ELEMENT_BLOCK:MB,CREATE_ELEMENT_VNODE:BB,CREATE_SLOTS:XB,CREATE_STATIC:jB,CREATE_TEXT:FB,CREATE_VNODE:RB,CompilerDeprecationTypes:{COMPILER_IS_ON_ELEMENT:"COMPILER_IS_ON_ELEMENT",COMPILER_V_BIND_SYNC:"COMPILER_V_BIND_SYNC",COMPILER_V_BIND_OBJECT_ORDER:"COMPILER_V_BIND_OBJECT_ORDER",COMPILER_V_ON_NATIVE:"COMPILER_V_ON_NATIVE",COMPILER_V_IF_V_FOR_PRECEDENCE:"COMPILER_V_IF_V_FOR_PRECEDENCE",COMPILER_NATIVE_TEMPLATE:"COMPILER_NATIVE_TEMPLATE",COMPILER_INLINE_TEMPLATE:"COMPILER_INLINE_TEMPLATE",COMPILER_FILTERS:"COMPILER_FILTERS"},ConstantTypes:{NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_CACHE:2,2:"CAN_CACHE",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},DOMDirectiveTransforms:GV,DOMErrorCodes:{X_V_HTML_NO_EXPRESSION:53,53:"X_V_HTML_NO_EXPRESSION",X_V_HTML_WITH_CHILDREN:54,54:"X_V_HTML_WITH_CHILDREN",X_V_TEXT_NO_EXPRESSION:55,55:"X_V_TEXT_NO_EXPRESSION",X_V_TEXT_WITH_CHILDREN:56,56:"X_V_TEXT_WITH_CHILDREN",X_V_MODEL_ON_INVALID_ELEMENT:57,57:"X_V_MODEL_ON_INVALID_ELEMENT",X_V_MODEL_ARG_ON_ELEMENT:58,58:"X_V_MODEL_ARG_ON_ELEMENT",X_V_MODEL_ON_FILE_INPUT_ELEMENT:59,59:"X_V_MODEL_ON_FILE_INPUT_ELEMENT",X_V_MODEL_UNNECESSARY_VALUE:60,60:"X_V_MODEL_UNNECESSARY_VALUE",X_V_SHOW_NO_EXPRESSION:61,61:"X_V_SHOW_NO_EXPRESSION",X_TRANSITION_INVALID_CHILDREN:62,62:"X_TRANSITION_INVALID_CHILDREN",X_IGNORED_SIDE_EFFECT_TAG:63,63:"X_IGNORED_SIDE_EFFECT_TAG",__EXTEND_POINT__:64,64:"__EXTEND_POINT__"},DOMErrorMessages:UV,DOMNodeTransforms:zV,ElementTypes:{ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},ErrorCodes:{ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:"ABRUPT_CLOSING_OF_EMPTY_COMMENT",CDATA_IN_HTML_CONTENT:1,1:"CDATA_IN_HTML_CONTENT",DUPLICATE_ATTRIBUTE:2,2:"DUPLICATE_ATTRIBUTE",END_TAG_WITH_ATTRIBUTES:3,3:"END_TAG_WITH_ATTRIBUTES",END_TAG_WITH_TRAILING_SOLIDUS:4,4:"END_TAG_WITH_TRAILING_SOLIDUS",EOF_BEFORE_TAG_NAME:5,5:"EOF_BEFORE_TAG_NAME",EOF_IN_CDATA:6,6:"EOF_IN_CDATA",EOF_IN_COMMENT:7,7:"EOF_IN_COMMENT",EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:"EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT",EOF_IN_TAG:9,9:"EOF_IN_TAG",INCORRECTLY_CLOSED_COMMENT:10,10:"INCORRECTLY_CLOSED_COMMENT",INCORRECTLY_OPENED_COMMENT:11,11:"INCORRECTLY_OPENED_COMMENT",INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:"INVALID_FIRST_CHARACTER_OF_TAG_NAME",MISSING_ATTRIBUTE_VALUE:13,13:"MISSING_ATTRIBUTE_VALUE",MISSING_END_TAG_NAME:14,14:"MISSING_END_TAG_NAME",MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:"MISSING_WHITESPACE_BETWEEN_ATTRIBUTES",NESTED_COMMENT:16,16:"NESTED_COMMENT",UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:"UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME",UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:"UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE",UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:"UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME",UNEXPECTED_NULL_CHARACTER:20,20:"UNEXPECTED_NULL_CHARACTER",UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:"UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME",UNEXPECTED_SOLIDUS_IN_TAG:22,22:"UNEXPECTED_SOLIDUS_IN_TAG",X_INVALID_END_TAG:23,23:"X_INVALID_END_TAG",X_MISSING_END_TAG:24,24:"X_MISSING_END_TAG",X_MISSING_INTERPOLATION_END:25,25:"X_MISSING_INTERPOLATION_END",X_MISSING_DIRECTIVE_NAME:26,26:"X_MISSING_DIRECTIVE_NAME",X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:"X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END",X_V_IF_NO_EXPRESSION:28,28:"X_V_IF_NO_EXPRESSION",X_V_IF_SAME_KEY:29,29:"X_V_IF_SAME_KEY",X_V_ELSE_NO_ADJACENT_IF:30,30:"X_V_ELSE_NO_ADJACENT_IF",X_V_FOR_NO_EXPRESSION:31,31:"X_V_FOR_NO_EXPRESSION",X_V_FOR_MALFORMED_EXPRESSION:32,32:"X_V_FOR_MALFORMED_EXPRESSION",X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:"X_V_FOR_TEMPLATE_KEY_PLACEMENT",X_V_BIND_NO_EXPRESSION:34,34:"X_V_BIND_NO_EXPRESSION",X_V_ON_NO_EXPRESSION:35,35:"X_V_ON_NO_EXPRESSION",X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:"X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET",X_V_SLOT_MIXED_SLOT_USAGE:37,37:"X_V_SLOT_MIXED_SLOT_USAGE",X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:"X_V_SLOT_DUPLICATE_SLOT_NAMES",X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:"X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN",X_V_SLOT_MISPLACED:40,40:"X_V_SLOT_MISPLACED",X_V_MODEL_NO_EXPRESSION:41,41:"X_V_MODEL_NO_EXPRESSION",X_V_MODEL_MALFORMED_EXPRESSION:42,42:"X_V_MODEL_MALFORMED_EXPRESSION",X_V_MODEL_ON_SCOPE_VARIABLE:43,43:"X_V_MODEL_ON_SCOPE_VARIABLE",X_V_MODEL_ON_PROPS:44,44:"X_V_MODEL_ON_PROPS",X_INVA
89LID_EXPRESSION:45,45:"X_INVALID_EXPRESSION",X_KEEP_ALIVE_INVALID_CHILDREN:46,46:"X_KEEP_ALIVE_INVALID_CHILDREN",X_PREFIX_ID_NOT_SUPPORTED:47,47:"X_PREFIX_ID_NOT_SUPPORTED",X_MODULE_MODE_NOT_SUPPORTED:48,48:"X_MODULE_MODE_NOT_SUPPORTED",X_CACHE_HANDLER_NOT_SUPPORTED:49,49:"X_CACHE_HANDLER_NOT_SUPPORTED",X_SCOPE_ID_NOT_SUPPORTED:50,50:"X_SCOPE_ID_NOT_SUPPORTED",X_VNODE_HOOKS:51,51:"X_VNODE_HOOKS",X_V_BIND_INVALID_SAME_NAME_ARGUMENT:52,52:"X_V_BIND_INVALID_SAME_NAME_ARGUMENT",__EXTEND_POINT__:53,53:"__EXTEND_POINT__"},FRAGMENT:IB,GUARD_REACTIVE_PROPS:eU,IS_MEMO_SAME:hU,IS_REF:dU,KEEP_ALIVE:OB,MERGE_PROPS:YB,NORMALIZE_CLASS:QB,NORMALIZE_PROPS:ZB,NORMALIZE_STYLE:JB,Namespaces:{HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},NodeTypes:{ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},OPEN_BLOCK:NB,POP_SCOPE_ID:oU,PUSH_SCOPE_ID:aU,RENDER_LIST:GB,RENDER_SLOT:WB,RESOLVE_COMPONENT:VB,RESOLVE_DIRECTIVE:qB,RESOLVE_DYNAMIC_COMPONENT:$B,RESOLVE_FILTER:HB,SET_BLOCK_TRACKING:rU,SUSPENSE:PB,TELEPORT:AB,TO_DISPLAY_STRING:KB,TO_HANDLERS:tU,TO_HANDLER_KEY:sU,TRANSITION:OV,TRANSITION_GROUP:LV,TS_NODE_TYPES:YU,UNREF:cU,V_MODEL_CHECKBOX:EV,V_MODEL_DYNAMIC:kV,V_MODEL_RADIO:wV,V_MODEL_SELECT:xV,V_MODEL_TEXT:CV,V_ON_WITH_KEYS:AV,V_ON_WITH_MODIFIERS:IV,V_SHOW:PV,WITH_CTX:lU,WITH_DIRECTIVES:zB,WITH_MEMO:uU,advancePositionWithClone:function(e,t,n=t.length){return hF({offset:e.offset,line:e.line,column:e.column},t,n)},advancePositionWithMutation:hF,assert:function(e,t){if(!e)throw new Error(t||"unexpected compiler condition")},baseCompile:TV,baseParse:lj,buildDirectiveArgs:iV,buildProps:eV,buildSlots:Wj,checkCompatEnabled:VU,compile:function(e,t={}){return TV(e,d({},DV,t,{nodeTransforms:[HV,...zV,...t.nodeTransforms||[]],directiveTransforms:d({},GV,t.directiveTransforms||{}),transformHoist:null}))},convertToBlock:PU,createArrayExpression:vU,createAssignmentExpression:function(e,t){return{type:24,left:e,right:t,loc:mU}},createBlockStatement:kU,createCacheExpression:xU,createCallExpression:wU,createCompilerError:HU,createCompoundExpression:SU,createConditionalExpression:CU,createDOMCompilerError:BV,createForLoopParams:qj,createFunctionExpression:EU,createIfStatement:function(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:mU}},createInterpolation:function(e,t){return{type:5,loc:t,content:_(e)?TU(e,!1,t):e}},createObjectExpression:bU,createObjectProperty:_U,createReturnStatement:function(e){return{type:26,returns:e,loc:mU}},createRoot:gU,createSequenceExpression:function(e){return{type:25,expressions:e,loc:mU}},createSimpleExpression:TU,createStructuralDirectiveTransform:_j,createTemplateLiteral:function(e){return{type:22,elements:e,loc:mU}},createTransformContext:yj,createVNodeCall:yU,errorMessages:zU,extractIdentifiers:XU,findDir:pF,findProp:fF,forAliasRE:kF,generate:wj,generateCodeFrame:Y,getBaseTransformPreset:_V,getConstantType:hj,getMemoedVNodeCall:xF,getVNodeBlockHelper:AU,getVNodeHelper:IU,hasDynamicKeyVBind:gF,hasScopeRef:function e(t,n){if(!t||0===Object.keys(n).length)return!1;switch(t.type){case 1:for(let i=0;i<t.props.length;i++){const s=t.props[i];if(7===s.type&&(e(s.arg,n)||e(s.exp,n)))return!0}return t.children.some((t=>e(t,n)));case 11:return!!e(t.source,n)||t.children.some((t=>e(t,n)));case 9:return t.branches.some((t=>e(t,n)));case 10:return!!e(t.condition,n)||t.children.some((t=>e(t,n)));case 4:return!t.isStatic&&eF(t.content)&&!!n[t.content];case 8:return t.children.some((t=>S(t)&&e(t,n)));case 5:case 12:return e(t.content,n);default:return!1}},helperNameMap:pU,injectProp:wF,isCoreComponent:JU,isFnExpression:uF,isFnExpressionBrowser:cF,isFnExpressionNode:dF,isFunctionType:e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),isInDestructureAssignment:function(e,t){if(e&&("ObjectProperty"===e.type||"ArrayPattern"===e.type)){let e=t.length;for(;e--;){const n=t[e];if("AssignmentExpression"===n.type)return!0;
89if("ObjectProperty"!==n.type&&!n.type.endsWith("Pattern"))break}}return!1},isInNewExpression:function(e){let t=e.length;for(;t--;){const n=e[t];if("NewExpression"===n.type)return!0;if("MemberExpression"!==n.type)break}return!1},isMemberExpression:oF,isMemberExpressionBrowser:rF,isMemberExpressionNode:aF,isReferencedIdentifier:function(e,t,n){return!1},isSimpleIdentifier:eF,isSlotOutlet:_F,isStaticArgOf:mF,isStaticExp:QU,isStaticProperty:KU,isStaticPropertyKey:(e,t)=>KU(t)&&t.key===e,isTemplateNode:bF,isText:yF,isVSlot:vF,locStub:mU,noopDirectiveTransform:SV,parse:function(e,t={}){return lj(e,d({},DV,t))},parserOptions:DV,processExpression:Oj,processFor:Vj,processIf:Nj,processSlotOutlet:aV,registerRuntimeHelpers:fU,resolveComponentType:Zj,stringifyExpression:function e(t){return _(t)?t:4===t.type?t.content:t.children.map(e).join("")},toValidAssetId:CF,trackSlotScopes:zj,trackVForSlotScopes:(e,t)=>{let n;if(bF(e)&&e.props.some(vF)&&(n=pF(e,"for"))){const e=n.forParseResult;if(e){$j(e);const{value:n,key:i,index:s}=e,{addIdentifiers:r,removeIdentifiers:a}=t;return n&&r(n),i&&r(i),s&&r(s),()=>{n&&a(n),i&&a(i),s&&a(s)}}}},transform:vj,transformBind:Bj,transformElement:Jj,transformExpression:(e,t)=>{if(5===e.type)e.content=Oj(e.content,t);else if(1===e.type){const n=pF(e,"memo");for(let i=0;i<e.props.length;i++){const s=e.props[i];if(7===s.type&&"for"!==s.name){const e=s.exp,i=s.arg;!e||4!==e.type||"on"===s.name&&i||n&&i&&4===i.type&&"key"===i.content||(s.exp=Oj(e,t,"slot"===s.name)),i&&4===i.type&&!i.isStatic&&(s.arg=Oj(i,t))}}}},transformModel:uV,transformOn:oV,transformStyle:MV,traverseNode:bj,unwrapTSNode:function e(t){return YU.includes(t.type)?e(t.expression):t},walkBlockDeclarations:function(e,t){for(const n of e.body)if("VariableDeclaration"===n.type){if(n.declare)continue;for(const e of n.declarations)for(const n of XU(e.id))t(n)}else if("FunctionDeclaration"===n.type||"ClassDeclaration"===n.type){if(n.declare||!n.id)continue;t(n.id)}else GU(n)&&WU(n,!0,t)},walkFunctionParams:function(e,t){for(const n of e.params)for(const e of XU(n))t(e)},walkIdentifiers:function(e,t,n=!1,i=[],s=Object.create(null)){},warnDeprecation:function(e,t,n,...i){if("suppress-warning"===FU(e,t))return;const{message:s,link:r}=UU[e],a=`(deprecation ${e}) ${"function"==typeof s?s(...i):s}${r?`\n  Details: ${r}`:""}`,o=new SyntaxError(a);o.code=e,n&&(o.loc=n),t.onWarn(o)}},Symbol.toStringTag,{value:"Module"})),XV=gB(WV),KV=gB(Cl),YV=gB(xe);
90/**
91* vue v3.5.13
92* (c) 2018-present Yuxi (Evan) You and Vue contributors
93* @license MIT
94**/
95var QV,JV,ZV;function e$(){return JV||(JV=1,xB.exports=(QV||(QV=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=XV,n=KV,i=YV;function s(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var r=s(n);const a=Object.create(null);function o(e,n){if(!i.isString(e)){if(!e.nodeType)return i.NOOP;e=e.innerHTML}const s=i.genCacheKey(e,n),o=a[s];if(o)return o;if("#"===e[0]){const t=document.querySelector(e);e=t?t.innerHTML:""}const l=i.extend({hoistStatic:!0,onError:void 0,onWarn:i.NOOP},n);l.isCustomElement||"undefined"==typeof customElements||(l.isCustomElement=e=>!!customElements.get(e));const{code:c}=t.compile(e,l),d=new Function("Vue",c)(r);return d._rc=!0,a[s]=d}n.registerRuntimeCompiler(o),e.compile=o,Object.keys(n).forEach((function(t){"default"===t||Object.prototype.hasOwnProperty.call(e,t)||(e[t]=n[t])}))}(kB)),kB)),xB.exports}var t$=function(){if(ZV)return _B;ZV=1;var e=_B&&_B.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function a(e){try{l(i.next(e))}catch(s$){r(s$)}}function o(e){try{l(i.throw(e))}catch(s$){r(s$)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}l((i=i.apply(e,t||[])).next())}))},t=_B&&_B.__generator||function(e,t){var n,i,s,r,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function o(r){return function(o){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(s=2&r[0]?i.return:r[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(s=a.trys,(s=s.length>0&&s[s.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(6===r[0]&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(s$){r=[6,s$],i=0}finally{n=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}};Object.defineProperty(_B,"__esModule",{value:!0}),_B.useReCaptcha=_B.VueReCaptcha=void 0;var n=CB(),i=e$(),s=Symbol("VueReCaptchaInjectKey"),r={loadedWaiters:[],error:null};function a(e){return function(){return new Promise((function(t,n){return null!==r.error?n(r.error):e.value?t(!0):void r.loadedWaiters.push({resolve:t,reject:n})}))}}function o(n){var i=this;return function(s){return e(i,void 0,void 0,(function(){var e;return t(this,(function(t){switch(t.label){case 0:return[4,null===(e=n.value)||void 0===e?void 0:e.execute(s)];case 1:return[2,t.sent()]}}))}))}}return _B.VueReCaptcha={install:function(l,c){var d=i.ref(!1),u=i.ref(void 0);l.config.globalProperties.$recaptchaLoaded=a(d),function(i){return e(this,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,n.load(i.siteKey,i.loaderOptions)];case 1:return[2,e.sent()]}}))}))}(c).then((function(e){d.value=!0,u.value=e,l.config.globalProperties.$recaptcha=o(u),l.config.globalProperties.$recaptchaInstance=u,r.loadedWaiters.forEach((function(e){return e.resolve(!0)}))})).catch((function(e){r.error=e,r.loadedWaiters.forEach((function(t){return t.reject(e)}))})),l.provide(s,{instance:u,isLoaded:d,executeRecaptcha:o(u),recaptchaLoaded:a(d)})}},_B.useReCaptcha=function(){return i.inject(s)},_B}();t((()=>import("./bootstrap.min.BeQnocW8.js").then((e=>e.b))),[]),vO.configure({API:{REST:{Kea:{endpoint:"https://kea.api.firecrest.systems/artpublic"},KeaPublic:{endpoint:"https://kea.api.firecrest.systems/artpublic"}}}},{API:{REST:{headers:async()=>({PrimaryDomain:"accessradiotaranaki.com","x-api-key":"qIsfA7lTLO9H2jHvNzC2Z72AlI6q6RB370867iM5"})}}});const n$=_l(pB),i$=(()=>{const e=vN({history:HL("/"),routes:fB,scrollBehavior:(e,t,n)=>n||("Schedule"!==e.name||"Schedule"!==t.name)&&new Promise((e=>{setTimeout((()=>{e({top:0})}),100)}))});return e.beforeEach((async e=>{const t=hR();if(t.fetchStationInfo(),document.title=e.meta?.title??"ART Media",!e.name)return{name:"Page not found"};t.fetchNowPlaying()})),e})();n$.use(function(){const e=Pe(!0),t=e.run((()=>en({})));let n=[],i=[];const s=Yt({install(e){_O(s),s._a=e,e.provide(TO,s),e.config.globalProperties.$pinia=s,i.forEac
95h((e=>n.push(e))),i=[]},use(e){return this._a?n.push(e):i.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}());hR().initializeNowPlaying(),n$.use(i$),n$.use(n),n$.use(wC),n$.use(qk),n$.use(t$.VueReCaptcha,{siteKey:"6LcYuX0sAAAAALkP2lF_zwHNCCbamnJYH1SfJ_1G"}),n$.use((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;!function(e){e.config.globalProperties.$gtag=zl}(e),Dl(t),Ll=n,Ml().bootstrap&&Yl()}),{appName:"access radio taranaki",pageTrackerScreenviewEnabled:!0,config:{id:"G-1V9K781LTS"}},i$),n$.mount("#app");export{Nn as A,ne as B,us as C,jt as D,fa as E,Mr as F,Wn as G,nl as H,VR as _,mB as a,Jr as b,Wr as c,Si as d,Zr as e,hR as f,gB as g,en as h,Yi as i,Gr as j,bN as k,sa as l,na as m,Pa as n,Vr as o,_N as p,pr as q,as as r,RO as s,we as t,rn as u,Zi as v,Gn as w,ds as x,ia as y,ul as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.