PageSourceSearch

https://www.oetker.fi/_next/static/chunks/2515.743bfff422578174.js

js oetker.fi collected 2026-09-25 00:58:41 UTC 39,154 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2515],{22515:(e,t,n)=>{let r;n.d(t,{n:()=>eg,A:()=>eE});var o,i,a=n(14232);let s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),u=Object.freeze({...s,...l}),d=Object.freeze({...u,body:"",hidden:!1});function h(e,t){let n,r,o=(n={},!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0),(r=((e.rotate||0)+(t.rotate||0))%4)&&(n.rotate=r),n);for(let n in d)n in l?n in e&&!(n in o)&&(o[n]=l[n]):n in t?o[n]=t[n]:n in e&&(o[n]=e[n]);return o}function c(e,t){let n,r,o,i=[];if("object"!=typeof e||"object"!=typeof e.icons)return i;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),i.push(e)});let a=(n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null),Object.keys(n).concat(Object.keys(r)).forEach(function e(t){if(n[t])return o[t]=[];if(!(t in o)){o[t]=null;let n=r[t]&&r[t].parent,i=n&&e(n);i&&(o[t]=[n].concat(i))}return o[t]}),o);for(let n in a){let r=a[n];r&&(t(n,function(e,t,n){let r=e.icons,o=e.aliases||Object.create(null),i={};function a(e){i=h(r[e]||o[e],i)}return a(t),n.forEach(a),h(e,i)}(e,n,r)),i.push(n))}return i}let p={provider:"",aliases:{},not_found:{},...s};function m(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function f(e){if("object"!=typeof e||null===e||"string"!=typeof e.prefix||!e.icons||"object"!=typeof e.icons||!m(e,p))return null;let t=e.icons;for(let e in t){let n=t[e];if(!e||"string"!=typeof n.body||!m(n,d))return null}let n=e.aliases||Object.create(null);for(let e in n){let r=n[e],o=r.parent;if(!e||"string"!=typeof o||!t[o]&&!n[o]||!m(r,d))return null}return e}let g=/^[a-z0-9]+(-[a-z0-9]+)*$/,v=(e,t,n,r="")=>{let o=e.split(":");if("@"===e.slice(0,1)){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let e=o.pop(),n=o.pop(),i={provider:o.length>0?o[0]:r,prefix:n,name:e};return t&&!E(i)?null:i}let i=o[0],a=i.split("-");if(a.length>1){let e={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!E(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:i};return t&&!E(e,n)?null:e}return null},E=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name),b=Object.create(null);function w(e,t){let n=b[e]||(b[e]=Object.create(null));return n[t]||(n[t]={provider:e,prefix:t,icons:Object.create(null),missing:new Set})}function y(e,t){return f(t)?c(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}let T=!1;function L(e){return"boolean"==typeof e&&(T=e),T}function A(e){let t="string"==typeof e?v(e,!0,T):e;if(t){let e=w(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}let C=Object.freeze({width:null,height:null}),O=Object.freeze({...C,...l}),M=/(-?[0-9.]*[0-9]+[0-9.]*)/g,k=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function S(e,t,n){if(1===t)return e;if(n=n||100,"number"==typeof e)return Math.ceil(e*t*n)/n;if("string"!=typeof e)return e;let r=e.split(M);if(null===r||!r.length)return e;let o=[],i=r.shift(),a=k.test(i);for(;;){if(a){let e=parseFloat(i);isNaN(e)?o.push(i):o.push(Math.ceil(e*t*n)/n)}else o.push(i);if(void 0===(i=r.shift()))return o.join("");a=!a}}let _=/\sid="(\S+)"/g,x="IconifyId"+Date.now().toString(16)+(0x1000000*Math.random()|0).toString(16),P=0,D=Object.create(null);function N(e){return D[e]||D[""]}function U(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(!((t=e.resources)instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}let R=Object.create(null),I=["https://api.simplesvg.com","https://api.unisvg.com"],F=[];for(;I.length>0;)1===I.length||Math.random()>.5?F.push(I.shift()):F.push(I.pop());R[""]=U({resources:["https://api.iconify.design"].concat(F)});let V=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(e){}})();function j(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}let B=0;var W={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function $(e){let t={...W,...e},n=[];function r(){n=n.filter(e=>"pending"===e().status)}return{query:function(e,o,i){let a=function(e,t,n,r){let o,i,a=e.resources.length,s=e.random?Math.floor(Math.random()*a):e.index;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(s).concat(e.resources.slice(0,s));let l=Date.now(),u="pending",d=0,h=null,c=[],p=[];function m(){h&&(clearTimeout(h),h=null)}
1function f(){"pending"===u&&(u="aborted"),m(),c.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),c=[]}function g(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function v(){u="failed",p.forEach(e=>{e(void 0,i)})}function E(){c.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),c=[]}return"function"==typeof r&&p.push(r),setTimeout(function r(){if("pending"!==u)return;m();let a=o.shift();if(void 0===a){if(c.length){h=setTimeout(()=>{m(),"pending"===u&&(E(),v())},e.timeout);return}v();return}let s={status:"pending",resource:a,callback:(t,n)=>{!function(t,n,a){let s="success"!==n;switch(c=c.filter(e=>e!==t),u){case"pending":break;case"failed":if(s||!e.dataAfterTimeout)return;break;default:return}if("abort"===n){i=a,v();return}if(s){i=a,c.length||(o.length?r():v());return}if(m(),E(),!e.random){let n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}u="completed",p.forEach(e=>{e(a)})}(s,t,n)}};c.push(s),d++,h=setTimeout(r,e.rotate),n(a,t,s.callback)}),function(){return{startTime:l,payload:t,status:u,queriesSent:d,queriesPending:c.length,subscribe:g,abort:f}}}(t,e,o,(e,t)=>{r(),i&&i(e,t)});return n.push(a),a},find:function(e){return n.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}let z=Object.create(null);function J(){}function H(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&"object"==typeof n)try{if(!y(e,n).length)return void r()}catch(e){console.error(e)}r(),e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,o=e.prefix;t.forEach(t=>{let i=t.icons,a=i.pending.length;i.pending=i.pending.filter(t=>{if(t.prefix!==o)return!0;let a=t.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else{if(!e.missing.has(a))return n=!0,!0;i.missing.push({provider:r,prefix:o,name:a})}return!1}),i.pending.length!==a&&(n||j([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))})}))}))}function G(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}let K=/[\s,]+/,q={...O,inline:!1},Q={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},X={display:"inline-block"},Y={backgroundColor:"currentColor"},Z={backgroundColor:"transparent"},ee={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},et={WebkitMask:Y,mask:Y,background:Z};for(let e in et){let t=et[e];for(let n in ee)t[e+n]=ee[n]}let en={...q,inline:!0};function er(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}if(L(!0),o={prepare:(e,t,n)=>{let r=[],o=function(e,t){let n,r=R[e];if(!r)return 0;if(r.maxURL){let e=0;r.resources.forEach(t=>{e=Math.max(e,t.length)}),n=r.maxURL-e-r.path.length-(t+".json?icons=").length}else n=0;return n}(e,t),i="icons",a={type:i,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,l)=>{(s+=n.length+1)>=o&&l>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},s=n.length),a.icons.push(n)}),r.push(a),r},send:(e,t,n)=>{if(!V)return void n("abort",424);let r=function(e){if("string"==typeof e){let t=R[e];if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":r+=t.prefix+".json?"+new URLSearchParams({icons:t.icons.join(",")}).toString();break;case"custom":{let e=t.uri;r+="/"===e.slice(0,1)?e.slice(1):e;break}default:n("abort",400);return}let o=503;V(e+r).then(e=>{let t=e.status;return 200!==t?void setTimeout(()=>{n(404===t?"abort":"next",t)}):(o=501,e.json())}).then(e=>{"object"!=typeof e||null===e?setTimeout(()=>{404===e?n("abort",e):n("next",o)}):setTimeout(()=>{n("success",e)})}).catch(()=>{n("next",o)})}},D[""]=o,"u">typeof document&&"u">typeof window){let e=window;if(void 0!==e.IconifyPreload){let t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!function(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),T&&!t&&!e.prefix){let t=!1;return f(e)&&(e.prefix="",c(e,(e,n)=>{(function(e,t){let n=v(e,!0,T);if(!n)return!1;let r=w(n.provider,n.prefix);if(!t)return r.missing.add(n.name),!0;var o=n.name;try{if("string"==typeof t.body)return r.icons[o]={...t},!0}catch(e){}return!1})(e,n)&&(t=!0)})),t}let n=e.prefix;return!!E({prefix:n,name:"a"})&&!!y(w(t,n),e)}(e))&&console.error(n)}catch(e){console.error(n)}})}if(void 0!==e.IconifyProviders){let t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){let n="IconifyProviders["+e+"] is invali
1d.";try{let r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;!function(e,t){let n=U(t);return null!==n&&(R[e]=n,!0)}(e,r)&&console.error(n)}catch(e){console.error(n)}}}}function eo(e){let[t,n]=(0,a.useState)(!!e.ssr),[o,i]=(0,a.useState)({}),[s,l]=(0,a.useState)(function(t){if(t){let t=e.icon;if("object"==typeof t)return{name:"",data:t};let n=A(t);if(n)return{name:t,data:n}}return{name:""}}(!!e.ssr));function d(){let e=o.callback;e&&(e(),i({}))}function h(e){if(JSON.stringify(s)!==JSON.stringify(e))return d(),l(e),!0}(0,a.useEffect)(()=>(n(!0),d),[]),(0,a.useEffect)(()=>{t&&function t(){var n;let r=e.icon;if("object"==typeof r)return void h({name:"",data:r});let o=A(r);h({name:r,data:o})&&(void 0===o?i({callback:((e,t)=>{var n;let r,o,i,a,s,l=(n=function(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let o="string"==typeof e?v(e,t,n):e;o&&r.push(o)}),r}(e,!0,L()),i={loaded:[],missing:[],pending:[]},a=Object.create(null),n.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)),s={provider:"",prefix:"",name:""},n.forEach(e=>{if(s.name===e.name&&s.prefix===e.prefix&&s.provider===e.provider)return;s=e;let t=e.provider,n=e.prefix,r=e.name,o=a[t]||(a[t]=Object.create(null)),l=o[n]||(o[n]=w(t,n));(r in l.icons?i.loaded:""===n||l.missing.has(r)?i.missing:i.pending).push({provider:t,prefix:n,name:r})}),i);if(!l.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(l.loaded,l.missing,l.pending,J)}),()=>{e=!1}}let u=Object.create(null),d=[];return l.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===r)return;r=t,o=n,d.push(w(t,n));let i=u[t]||(u[t]=Object.create(null));i[n]||(i[n]=[])}),l.pending.forEach(e=>{let{provider:t,prefix:n,name:r}=e,o=w(t,n),i=o.pendingIcons||(o.pendingIcons=new Set);i.has(r)||(i.add(r),u[t][n].push(r))}),d.forEach(e=>{let t=u[e.provider][e.prefix];t.length&&(e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{let t,n;e.iconsQueueFlag=!1;let{provider:r,prefix:o}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;let a=e.loadIcon;if(e.loadIcons&&(i.length>1||!a))return void G(e.loadIcons(i,o,r),t=>{H(e,i,t)});if(a)return void i.forEach(t=>{G(a(t,o,r),n=>{let r=n?{prefix:o,icons:{[t]:n}}:null;H(e,[t],r)})});let{valid:s,invalid:l}=(t=[],n=[],i.forEach(e=>{(e.match(g)?t:n).push(e)}),{valid:t,invalid:n});if(l.length&&H(e,l,null),!s.length)return;let u=o.match(g)?N(r):null;u?u.prepare(r,o,s).forEach(t=>{!function(e,t,n){let r,o;if("string"==typeof e){let t=N(e);if(!t)return n(void 0,424);o=t.send;let i=function(e){if(!z[e]){let t=R[e];if(!t)return;let n=$(t);z[e]={config:t,redundancy:n}}return z[e]}(e);i&&(r=i.redundancy)}else{let t=U(e);if(t){r=$(t);let n=N(e.resources?e.resources[0]:"");n&&(o=n.send)}}r&&o?r.query(t,o,n)().abort:n(void 0,424)}(r,t,n=>{H(e,t.icons,n)})}):H(e,s,null)})))}),t?function(e,t,n){let r=B++,o=j.bind(null,n,r);if(!t.pending.length)return o;let i={id:r,icons:t,callback:e,abort:o};return n.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(i)}),o}(t,l,d):J})([r],t)}):o&&(null==(n=e.onLoad)||n.call(e,r)))}()},[e.icon,t]);let{name:c,data:p}=s;return p?((e,t,n)=>{var o;let i,s,l,d,h,c,p,m,f,g,E,b,w,y=t.inline?en:q,T=function(e,t){let n={...e};for(let e in t){let r=t[e],o=typeof r;e in C?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(y,t),L=t.mode||"svg",A={},M=t.style||{},k={..."svg"===L?Q:{}};if(n){let e=v(n,!1,!0);if(e){let t=["iconify"];for(let n of["provider","prefix"])e[n]&&t.push("iconify--"+e[n]);k.className=t.join(" ")}}for(let e in t){let n=t[e];if(void 0!==n)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":break;case"_ref":k.ref=n;break;case"className":k[e]=(k[e]?k[e]+" ":"")+n;break;case"inline":case"hFlip":case"vFlip":T[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&function(e,t){t.split(K).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}(T,n);break;case"color":A.color=n;break;case"rotate":"string"==typeof n?T[e]=function(e,t=0){let n=e.replace(/^-?[0-9.]*/,"");function r(e){for(;e<0;)e+=4;return e%4}if(""===n){let t=parseInt(e);return isNaN(t)?0:r(t)}if(n!==e){let t=0;switch(n){case"%":t=25;break;case"deg":t=90}if(t){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o/=t)%1==0?r(o):0}}return t}(n):"number"==typeof n&&(T[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete k["aria-hidden"];break;default:void 0===y[e]&&(k[e]=n)}}let D=(l={...u,...e},d={...O,...T},h={left:l.left,top:l.top,width:l.width,height:l.height}
1,c=l.body,[l,d].forEach(e=>{var t,n,r,o;let i,a,s=[],l=e.hFlip,u=e.vFlip,d=e.rotate;switch(l?u?d+=2:(s.push("translate("+(h.width+h.left).toString()+" "+(0-h.top).toString()+")"),s.push("scale(-1 1)"),h.top=h.left=0):u&&(s.push("translate("+(0-h.left).toString()+" "+(h.height+h.top).toString()+")"),s.push("scale(1 -1)"),h.top=h.left=0),d<0&&(d-=4*Math.floor(d/4)),d%=4){case 1:s.unshift("rotate(90 "+(i=h.height/2+h.top).toString()+" "+i.toString()+")");break;case 2:s.unshift("rotate(180 "+(h.width/2+h.left).toString()+" "+(h.height/2+h.top).toString()+")");break;case 3:s.unshift("rotate(-90 "+(i=h.width/2+h.left).toString()+" "+i.toString()+")")}d%2==1&&(h.left!==h.top&&(i=h.left,h.left=h.top,h.top=i),h.width!==h.height&&(i=h.width,h.width=h.height,h.height=i)),s.length&&(t=c,n='<g transform="'+s.join(" ")+'">',r=(a=function(e,t="defs"){let n="",r=e.indexOf("<"+t);for(;r>=0;){let o=e.indexOf(">",r),i=e.indexOf("</"+t);if(-1===o||-1===i)break;let a=e.indexOf(">",i);if(-1===a)break;n+=e.slice(o+1,i).trim(),e=e.slice(0,r).trim()+e.slice(a+1)}return{defs:n,content:e}}(t)).defs,o=n+a.content+"</g>",c=r?"<defs>"+r+"</defs>"+o:o)}),p=d.width,m=d.height,f=h.width,g=h.height,null===p?i=S(s=null===m?"1em":"auto"===m?g:m,f/g):(i="auto"===p?f:p,s=null===m?S(i,g/f):"auto"===m?g:m),E={},(b=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&(E[e]=t.toString())})("width",i),b("height",s),E.viewBox=(w=[h.left,h.top,f,g]).join(" "),{attributes:E,viewBox:w,body:c}),N=D.attributes;if(T.inline&&(A.verticalAlign="-0.125em"),"svg"===L){k.style={...A,...M},Object.assign(k,N);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),k.dangerouslySetInnerHTML={__html:(o=function(e,t=x){let n,r=[];for(;n=_.exec(e);)r.push(n[1]);if(!r.length)return e;let o="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(n=>{let r="function"==typeof t?t(n):t+(P++).toString(),i=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+r+o+"$3")}),e=e.replace(RegExp(o,"g"),"")}(D.body,n?()=>n+"ID"+e++:"iconifyReact"),void 0===r&&function(){try{r=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){r=null}}(),r?r.createHTML(o):o)},(0,a.createElement)("svg",k)}let{body:U,width:R,height:I}=e,F="mask"===L||"bg"!==L&&-1!==U.indexOf("currentColor"),V=function(e,t){let n=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)n+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}(U,{...N,width:R+"",height:I+""});return k.style={...A,"--svg":'url("data:image/svg+xml,'+V.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")+'")',width:er(N.width),height:er(N.height),...X,...F?Y:Z,...M},(0,a.createElement)("span",k)})({...u,...p},e,c):e.children?e.children:e.fallback?e.fallback:(0,a.createElement)("span",{})}let ei=(0,a.forwardRef)((e,t)=>eo({...e,_ref:t}));function ea(){return(ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}(0,a.forwardRef)((e,t)=>eo({inline:!0,...e,_ref:t}));let es=e=>e instanceof MouseEvent?e.clientX:e.touches[0].clientX,el=e=>e>9?e.toString():`0${e}`,eu=(e,t,n)=>{if(!isFinite(e))return null;let r=Math.floor(e/60),o=el(r),i=el(Math.floor(e%60)),a=el(Math.floor(r%60)),s=Math.floor(r/60),l=`${o}:${i}`,u=`${s}:${a}:${i}`;if("auto"===n)if(t>=3600)return u;else return l;return"mm:ss"===n?l:"hh:mm:ss"===n?u:void 0};function ed(e,t){let n=!1;return r=>{n||(e(r),n=!0,setTimeout(()=>n=!1,t))}}class eh extends a.Component{timeOnMouseMove=0;hasAddedAudioEventListener=!1;state={isDraggingProgress:!1,currentTimePos:"0%",hasDownloadProgressAnimation:!1,downloadProgressArr:[],waitingForSeekCallback:!1};getDuration(){let{audio:e,srcDuration:t}=this.props;return void 0===t?e.duration:t}getCurrentProgress=e=>{let{audio:t,progressBar:n}=this.props;if(0!==t.src.indexOf("blob:")&&void 0===this.props.srcDuration&&(!t.src||!isFinite(t.currentTime)||!n.current))return{currentTime:0,currentTimePos:"0%"};let r=n.current.getBoundingClientRect(),o=r.width,i=es(e)-r.left;return i<0?i=0:i>o&&(i=o),{currentTime:this.getDuration()*i/o,currentTimePos:`${(i/o*100).toFixed(2)}%`}};handleContextMenu=e=>{e.preventDefault()};handleMouseDownOrTouchStartProgressBar=e=>{e.stopPropagation();let{currentTime:t,currentTimePos:n}=this.getCurrentProgress(e.nativeEvent);isFinite(t)&&(this.timeOnMouseMove=t,this.setState({isDraggingProgress:!0,currentTimePos:n}),e.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",this.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",this.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",this.handleWindowMouseOrTouchMove),window.addEventListener("touchend",this.handleWindowMouseOrTouchUp)))};handleWindowMouseOrTouchMove=e=>{e instanceof MouseEvent&&e.preventDefault(),e.stopPropagation();let t=window.getSelection();t&&"Range"===t.type&&t.empty();let{isDraggingProgress:n}=this.state;if(n){let{currentTime:t,currentTimePos:n}=this.getCurrentProgress(e);this.timeOnMouseMove=t,this.setState({currentTimePos:n})}};handleWindowMouseOrTouchUp=e=>{e.stopPropagation();let t=this.timeOnMouseMove,{audio:n,onChangeCurrentTimeError:r,onSeek:o}=this.props;if(o)this.setState({isDraggingProgress:!1,waitingForSeekCallback:!0},()=>{o(n,t).then(()=>this.setState({waitingForSeekCallback:!1}),e=>{throw Error(e instanceof Error?e.message:String(e))})});else{let e={isDraggingProgress:!1};if(n.readyState===n.HAVE_NOTHING||n.readyState===n.HAVE_METADATA||!isFinite(t))try{n.load()}catch(t){return e.currentTimePos="0%",r&&r(t)}n.currentTime=t,this.setState(e)}e instanceof MouseEvent?(window.removeEventListener("mousemove",this.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",this.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",this.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",this.handleWindowMouseOrTouchUp))};handleAudioTimeUpdate=ed(e=>{let{isDraggingProgress:t}=this.state,n=e.target;if(t||!0===this.state.waitingForSeekCallback)return;let{currentTime:r}=n,o=this.getDuration();this.setState({currentTimePos:`${(r/o*100||0).toFixed(2)}%`})},this.props.progressUpdateInterval);handleAudioDownloadProgressUpdate=e=>{let t=e.target,n=this.getDuration(),r=[];for(let e=0;e<t.buffered.length;e++){let o=t.buffered.start(e),i=t.buffered.end(e);
1r.push({left:`${Math.round(100/n*o)||0}%`,width:`${Math.round(100/n*(i-o))||0}%`})}clearTimeout(this.downloadProgressAnimationTimer),this.setState({downloadProgressArr:r,hasDownloadProgressAnimation:!0}),this.downloadProgressAnimationTimer=setTimeout(()=>{this.setState({hasDownloadProgressAnimation:!1})},200)};initialize(){let{audio:e}=this.props;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",this.handleAudioTimeUpdate),e.addEventListener("progress",this.handleAudioDownloadProgressUpdate))}componentDidMount(){this.initialize()}componentDidUpdate(){this.initialize()}componentWillUnmount(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioTimeUpdate),this.audio.removeEventListener("progress",this.handleAudioDownloadProgressUpdate)),clearTimeout(this.downloadProgressAnimationTimer)}render(){let{showDownloadProgress:e,showFilledProgress:t,progressBar:n,i18nProgressBar:r}=this.props,{currentTimePos:o,downloadProgressArr:i,hasDownloadProgressAnimation:s}=this.state;return a.createElement("div",{className:"rhap_progress-container",ref:n,"aria-label":r,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number(o.split("%")[0]),tabIndex:0,onMouseDown:this.handleMouseDownOrTouchStartProgressBar,onTouchStart:this.handleMouseDownOrTouchStartProgressBar,onContextMenu:this.handleContextMenu},a.createElement("div",{className:`rhap_progress-bar ${e?"rhap_progress-bar-show-download":""}`},a.createElement("div",{className:"rhap_progress-indicator",style:{left:o}}),t&&a.createElement("div",{className:"rhap_progress-filled",style:{width:o}}),e&&i.map(({left:e,width:t},n)=>a.createElement("div",{key:n,className:"rhap_download-progress",style:{left:e,width:t,transitionDuration:s?".2s":"0s"}}))))}}let ec=(0,a.forwardRef)((e,t)=>a.createElement(eh,ea({},e,{progressBar:t})));class ep extends a.PureComponent{hasAddedAudioEventListener=!1;constructor(e){super(e);const{audio:t,defaultCurrentTime:n,isLeftTime:r,timeFormat:o}=e;let i=n;t&&(i=eu(r?t.duration-t.currentTime:t.currentTime,t.duration,o)),this.state={currentTime:i}}state={currentTime:this.props.defaultCurrentTime};handleAudioCurrentTimeChange=e=>{let t=e.target,{isLeftTime:n,timeFormat:r,defaultCurrentTime:o}=this.props;this.setState({currentTime:eu(n?t.duration-t.currentTime:t.currentTime,t.duration,r)||o})};addAudioEventListeners=()=>{let{audio:e}=this.props;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",this.handleAudioCurrentTimeChange),e.addEventListener("loadedmetadata",this.handleAudioCurrentTimeChange))};componentDidMount(){this.addAudioEventListeners()}componentDidUpdate(){this.addAudioEventListeners()}componentWillUnmount(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioCurrentTimeChange),this.audio.removeEventListener("loadedmetadata",this.handleAudioCurrentTimeChange))}render(){return this.state.currentTime}}class em extends a.PureComponent{hasAddedAudioEventListener=!1;constructor(e){super(e);const{audio:t,timeFormat:n,defaultDuration:r}=e;this.state={duration:t?eu(t.duration,t.duration,n):r}}state={duration:this.props.audio?eu(this.props.audio.duration,this.props.audio.duration,this.props.timeFormat):this.props.defaultDuration};handleAudioDurationChange=e=>{let t=e.target,{timeFormat:n,defaultDuration:r}=this.props;this.setState({duration:eu(t.duration,t.duration,n)||r})};addAudioEventListeners=()=>{let{audio:e}=this.props;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("durationchange",this.handleAudioDurationChange),e.addEventListener("abort",this.handleAudioDurationChange))};componentDidMount(){this.addAudioEventListeners()}componentDidUpdate(){this.addAudioEventListeners()}componentWillUnmount(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("durationchange",this.handleAudioDurationChange),this.audio.removeEventListener("abort",this.handleAudioDurationChange))}render(){return this.state.duration}}class ef extends a.Component{hasAddedAudioEventListener=!1;volumeBar=(0,a.createRef)();volumeAnimationTimer=0;lastVolume=this.props.volume;state={currentVolumePos:`${(this.lastVolume/1*100||0).toFixed(2)}%`,hasVolumeAnimation:!1,isDraggingVolume:!1};getCurrentVolume=e=>{let t,n,{audio:r}=this.props;if(!this.volumeBar.current)return{currentVolume:r.volume,currentVolumePos:this.state.currentVolumePos};let o=this.volumeBar.current.getBoundingClientRect(),i=o.width,a=es(e)-o.left;return a<0?(t=0,n="0%"):a>o.width?(t=1,n="100%"):(t=a/i,n=`${a/i*100}%`),{currentVolume:t,currentVolumePos:n}};handleContextMenu=e=>{e.preventDefault()};handleClickVolumeButton=()=>{let{audio:e}=this.props;e.volume>0?(this.lastVolume=e.volume,e.volume=0):e.volume=this.lastVolume};handleVolumnControlMouseOrTouchDown=e=>{e.stopPropagation();let{audio:t}=this.props,{currentVolume:n,currentVolumePos:r}=this.getCurrentVolume(e.nativeEvent);t.volume=n,this.setState({isDraggingVolume:!0,currentVolumePos:r}),e.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",this.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",this.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",this.handleWindowMouseOrTouchMove),window.addEventListener("touchend",this.handleWindowMouseOrTouchUp))};handleWindowMouseOrTouchMove=e=>{e instanceof MouseEvent&&e.preventDefault(),e.stopPropagation();let{audio:t}=this.props,n=window.getSelection();n&&"Range"===n.type&&n.empty();let{isDraggingVolume:r}=this.state;if(r){let{currentVolume:n,currentVolumePos:r}=this.getCurrentVolume(e);t.volume=n,this.setState({currentVolumePos:r})}};handleWindowMouseOrTouchUp=e=>{e.stopPropagation(),this.setState({isDraggingVolume:!1}),e instanceof MouseEvent?(window.removeEventListener("mousemove",this.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",this.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",this.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",this.handleWindowMouseOrTouchUp))};handleAudioVolumeChange=e=>{let{isDraggingVolume:t}=this.state,{volume:n}=e.target;(this.lastVolume>0&&0===n||0===this.lastVolume&&n>0)&&this.props.onMuteChange(),this.lastVolume=n,t||(this.setState({hasVolumeAnimation:!0,currentVolumePos:`${(n/1*100||0).toFixed(2)}%`}),clearTimeout(this.volumeAnimationTimer),this.volumeAnimationTimer=setTimeout(()=>{this.setState({hasVolumeAnimation:!1})},100))};componentDidUpdate(){let{audio:e}=this.props;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("volumechange",this.handleAudioVolumeChange))}componentWillUnmount(){this.audio&&this.hasAddedAudioEventListener&&this.audio.removeEventListener("volumechange",this.handleAudioVolumeChange),clearTimeout(this.volumeAnimationTimer)}render(){let{audio:e,showFilledVolume:t,i18nVolumeControl:n}=this.props,{currentVolumePos:r,hasVolumeAnimation:o}=this.state,{volume:i}=e||{};return a.createElement("div",{ref:this.volumeBar,onMouseDown:this.handleVolumnControlMouseOrTouchDown,onTouchStart:this.handleVolumnControlMouseOrTouchDown,onContextMenu:this.handleContextMenu,role:"progressbar","aria-label":n,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number((100*i).toFixed(0)),tabIndex:0,className:"rhap_volume-bar-area"},a.createElement("div",{className:"rhap_volume-bar"},a.createElement("div",{className:"rhap_volume-indicator",style:{left:r,transitionDuration:o?".1s":"0s"}}),t&&a.createElement("div",{className:"rhap_volume-filled",style:{width:r}})))}}let eg=((i={}).CURRENT_TIME="CURRENT_TIME",i.CURRENT_LEFT_TIME="CURRENT_LEFT_TIME",i.PROGRESS_BAR="PROGRESS_BAR",i.DURATION="DURATION",i.ADDITIONAL_CONTROLS="ADDITIONAL_CONTROLS",i.MAIN_CONTROLS="MAIN_CONTROLS",i.VOLUME_CONTROLS="VOLUME_CONTROLS",i.LOOP="LOOP",i.VOLUME="VOLUME",i);class ev extends a.Component{static defaultI18nAriaLabels={player:"Audio player",progressControl:"Audio progress control",volumeControl:"Volume control",play:"Play",pause:"Pause",rewind:"Rewind",forward:"Forward",previous:"Previous",next:"Skip",loop:"Disable loop",loopOff:"Enable loop",volume:"Mute",volumeMute:"Unmute"};static defaultProps={progressJumpSteps:{backward:5e3,forward:5e3},progressJumpStep:5e3,volumeJumpStep:.1};audio=(0,a.createRef)();progressBar=(0,a.createRef)();container=(0,a.createRef)();lastVolume=this.props.volume??1;togglePlay=e=>{e.stopPropagation();let t=this.audio.current;(t.paused||t.ended)&&t.src?this.playAudioPromise():t.paused||t.pause()};playAudioPromise=()=>{this.audio.current.error&&this.audio.current.load();let e=this.audio.current.play();
1e?e.then(null).catch(e=>{let{onPlayError:t}=this.props,n=e instanceof Error?e.message:String(e);t&&t(Error(n))}):this.forceUpdate()};isPlaying=()=>{let e=this.audio.current;return!!e&&!e.paused&&!e.ended};handlePlay=e=>{this.forceUpdate(),this.props.onPlay&&this.props.onPlay(e)};handlePause=e=>{this.audio&&(this.forceUpdate(),this.props.onPause&&this.props.onPause(e))};handleEnded=e=>{this.audio&&(this.forceUpdate(),this.props.onEnded&&this.props.onEnded(e))};handleAbort=e=>{this.props.onAbort&&this.props.onAbort(e)};handleClickVolumeButton=()=>{let e=this.audio.current;e.volume>0?(this.lastVolume=e.volume,e.volume=0):e.volume=this.lastVolume};handleMuteChange=()=>{this.forceUpdate()};handleClickLoopButton=()=>{this.audio.current.loop=!this.audio.current.loop,this.forceUpdate()};handleClickRewind=()=>{let{progressJumpSteps:e,progressJumpStep:t}=this.props,n=e.backward||t;this.setJumpTime(-n)};handleClickForward=()=>{let{progressJumpSteps:e,progressJumpStep:t}=this.props,n=e.forward||t;this.setJumpTime(n)};setJumpTime=e=>{let t=this.audio.current,{duration:n,currentTime:r}=t;if(t.readyState===t.HAVE_NOTHING||t.readyState===t.HAVE_METADATA||!isFinite(n)||!isFinite(r))try{t.load()}catch(e){return this.props.onChangeCurrentTimeError&&this.props.onChangeCurrentTimeError(e)}let o=r+e/1e3;o<0?(t.currentTime=0,o=0):o>n?(t.currentTime=n,o=n):t.currentTime=o};setJumpVolume=e=>{let t=this.audio.current,n=Number(e),r=t?.volume;if(!t||!Number.isFinite(n)||!Number.isFinite(r))return;let o=r+n;o<0?o=0:o>1&&(o=1),t.volume=o};handleKeyDown=e=>{if(this.props.hasDefaultKeyBindings??!0)switch(e.key){case" ":(e.target===this.container.current||e.target===this.progressBar.current)&&(e.preventDefault(),this.togglePlay(e));break;case"ArrowLeft":this.handleClickRewind();break;case"ArrowRight":this.handleClickForward();break;case"ArrowUp":e.preventDefault(),this.setJumpVolume(this.props.volumeJumpStep);break;case"ArrowDown":e.preventDefault(),this.setJumpVolume(-this.props.volumeJumpStep);break;case"l":this.handleClickLoopButton();break;case"m":this.handleClickVolumeButton()}};renderUIModules=e=>e.map((e,t)=>this.renderUIModule(e,t));renderUIModule=(e,t)=>{let{defaultCurrentTime:n="--:--",progressUpdateInterval:r=20,showDownloadProgress:o=!0,showFilledProgress:i=!0,showFilledVolume:s=!1,defaultDuration:l="--:--",customIcons:u={},showSkipControls:d=!1,onClickPrevious:h,onClickNext:c,onChangeCurrentTimeError:p,showJumpControls:m=!0,customAdditionalControls:f=[eg.LOOP],customVolumeControls:g=[eg.VOLUME],muted:v=!1,timeFormat:E="auto",volume:b=1,loop:w=!1,mse:y,i18nAriaLabels:T=ev.defaultI18nAriaLabels}=this.props;switch(e){case eg.CURRENT_TIME:return a.createElement("div",{key:t,id:"rhap_current-time",className:"rhap_time rhap_current-time"},a.createElement(ep,{audio:this.audio.current,isLeftTime:!1,defaultCurrentTime:n,timeFormat:E}));case eg.CURRENT_LEFT_TIME:return a.createElement("div",{key:t,id:"rhap_current-left-time",className:"rhap_time rhap_current-left-time"},a.createElement(ep,{audio:this.audio.current,isLeftTime:!0,defaultCurrentTime:n,timeFormat:E}));case eg.PROGRESS_BAR:return a.createElement(ec,{key:t,ref:this.progressBar,audio:this.audio.current,progressUpdateInterval:r,showDownloadProgress:o,showFilledProgress:i,onSeek:y&&y.onSeek,onChangeCurrentTimeError:p,srcDuration:y&&y.srcDuration,i18nProgressBar:T.progressControl});case eg.DURATION:return a.createElement("div",{key:t,className:"rhap_time rhap_total-time"},y&&y.srcDuration?eu(y.srcDuration,y.srcDuration,this.props.timeFormat):a.createElement(em,{audio:this.audio.current,defaultDuration:l,timeFormat:E}));case eg.ADDITIONAL_CONTROLS:return a.createElement("div",{key:t,className:"rhap_additional-controls"},this.renderUIModules(f));case eg.MAIN_CONTROLS:{let e,n=this.isPlaying();return e=n?u.pause?u.pause:a.createElement(ei,{icon:"mdi:pause-circle",ssr:!0}):u.play?u.play:a.createElement(ei,{icon:"mdi:play-circle",ssr:!0}),a.createElement("div",{key:t,className:"rhap_main-controls"},d&&a.createElement("button",{"aria-label":T.previous,className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",type:"button",onClick:h},u.previous?u.previous:a.createElement(ei,{icon:"mdi:skip-previous",ssr:!0})),m&&a.createElement("button",{"aria-label":T.rewind,className:"rhap_button-clear rhap_main-controls-button rhap_rewind-button",type:"button",onClick:this.handleClickRewind},u.rewind?u.rewind:a.createElement(ei,{icon:"mdi:rewind",ssr:!0})),a.createElement("button",{"aria-label":n?T.pause:T.play,className:"rhap_button-clear rhap_main-controls-button rhap_play-pause-button",type:"button",onClick:this.togglePlay},e),m&&a.createElement("button",{"aria-label":T.forward,className:"rhap_button-clear rhap_main-controls-button rhap_forward-button",type:"button",onClick:this.handleClick
1Forward},u.forward?u.forward:a.createElement(ei,{icon:"mdi:fast-forward",ssr:!0})),d&&a.createElement("button",{"aria-label":T.next,className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",type:"button",onClick:c},u.next?u.next:a.createElement(ei,{icon:"mdi:skip-next",ssr:!0})))}case eg.VOLUME_CONTROLS:return a.createElement("div",{key:t,className:"rhap_volume-controls"},this.renderUIModules(g));case eg.LOOP:{let e,n=this.audio.current?this.audio.current.loop:w;return e=n?u.loop?u.loop:a.createElement(ei,{icon:"mdi:repeat",ssr:!0}):u.loopOff?u.loopOff:a.createElement(ei,{icon:"mdi:repeat-off",ssr:!0}),a.createElement("button",{key:t,"aria-label":n?T.loop:T.loopOff,className:"rhap_button-clear rhap_repeat-button",type:"button",onClick:this.handleClickLoopButton},e)}case eg.VOLUME:{let e,{volume:n=v?0:b}=this.audio.current||{};return e=n?u.volume?u.volume:a.createElement(ei,{icon:"mdi:volume-high",ssr:!0}):u.volume?u.volumeMute:a.createElement(ei,{icon:"mdi:volume-mute",ssr:!0}),a.createElement("div",{key:t,className:"rhap_volume-container"},a.createElement("button",{"aria-label":n?T.volume:T.volumeMute,onClick:this.handleClickVolumeButton,type:"button",className:"rhap_button-clear rhap_volume-button"},e),a.createElement(ef,{audio:this.audio.current,volume:n,onMuteChange:this.handleMuteChange,showFilledVolume:s,i18nVolumeControl:T.volumeControl}))}default:if(!(0,a.isValidElement)(e))return null;return e.key?e:(0,a.cloneElement)(e,{key:t})}};componentDidMount(){this.forceUpdate();let e=this.audio.current;this.props.muted?e.volume=0:e.volume=this.lastVolume,e.addEventListener("error",e=>{let t=e.target;if(t.error&&t.currentTime===t.duration)return this.props.onEnded&&this.props.onEnded(e);this.props.onError&&this.props.onError(e)}),e.addEventListener("canplay",e=>{this.props.onCanPlay&&this.props.onCanPlay(e)}),e.addEventListener("canplaythrough",e=>{this.props.onCanPlayThrough&&this.props.onCanPlayThrough(e)}),e.addEventListener("play",this.handlePlay),e.addEventListener("abort",this.handleAbort),e.addEventListener("ended",this.handleEnded),e.addEventListener("playing",e=>{this.props.onPlaying&&this.props.onPlaying(e)}),e.addEventListener("seeking",e=>{this.props.onSeeking&&this.props.onSeeking(e)}),e.addEventListener("seeked",e=>{this.props.onSeeked&&this.props.onSeeked(e)}),e.addEventListener("waiting",e=>{this.props.onWaiting&&this.props.onWaiting(e)}),e.addEventListener("emptied",e=>{this.props.onEmptied&&this.props.onEmptied(e)}),e.addEventListener("stalled",e=>{this.props.onStalled&&this.props.onStalled(e)}),e.addEventListener("suspend",e=>{this.props.onSuspend&&this.props.onSuspend(e)}),e.addEventListener("loadstart",e=>{this.props.onLoadStart&&this.props.onLoadStart(e)}),e.addEventListener("loadedmetadata",e=>{this.props.onLoadedMetaData&&this.props.onLoadedMetaData(e)}),e.addEventListener("loadeddata",e=>{this.props.onLoadedData&&this.props.onLoadedData(e)}),e.addEventListener("pause",this.handlePause),e.addEventListener("timeupdate",ed(e=>{this.props.onListen&&this.props.onListen(e)},this.props.listenInterval)),e.addEventListener("volumechange",e=>{this.props.onVolumeChange&&this.props.onVolumeChange(e)}),e.addEventListener("encrypted",e=>{let{mse:t}=this.props;t&&t.onEcrypted&&t.onEcrypted(e)})}componentDidUpdate(e){let{src:t,autoPlayAfterSrcChange:n}=this.props;e.src!==t&&(n?this.playAudioPromise():this.forceUpdate())}render(){let{className:e="",src:t,loop:n=!1,preload:r="auto",autoPlay:o=!1,crossOrigin:i,mediaGroup:s,header:l,footer:u,layout:d="stacked",customProgressBarSection:h=[eg.CURRENT_TIME,eg.PROGRESS_BAR,eg.DURATION],customControlsSection:c=[eg.ADDITIONAL_CONTROLS,eg.MAIN_CONTROLS,eg.VOLUME_CONTROLS],children:p,style:m,i18nAriaLabels:f=ev.defaultI18nAriaLabels}=this.props,g=this.audio.current?this.audio.current.loop:n,v=g?"rhap_loop--on":"rhap_loop--off",E=this.isPlaying()?"rhap_play-status--playing":"rhap_play-status--paused";return a.createElement("div",{role:"group",tabIndex:0,"aria-label":f.player,className:`rhap_container ${v} ${E} ${e}`,onKeyDown:this.handleKeyDown,ref:this.container,style:m},a.createElement("audio",{src:t,controls:!1,loop:g,autoPlay:o,preload:r,crossOrigin:i,mediaGroup:s,ref:this.audio},p),l&&a.createElement("div",{className:"rhap_header"},l),a.createElement("div",{className:`rhap_main ${(e=>{switch(e){case"stacked":default:return"rhap_stacked";case"stacked-reverse":return"rhap_stacked-reverse";case"horizontal":return"rhap_horizontal";case"horizontal-reverse":return"rhap_horizontal-reverse"}})(d)}`},a.createElement("div",{className:"rhap_progress-section"},this.renderUIModules(h)),a.createElement("div",{className:"rhap_controls-section"},this.renderUIModules(c))),u&&a.createElement("div",{className:"rhap_footer"},u))}}let eE=ev}}]);
2//# sourceMappingURL=2515.743bfff422578174.js.map

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.