PageSourceSearch

https://www.treccani.it/_next/static/chunks/5180-dfc46186fbcf9839.js

js treccani.it collected 2026-09-24 08:26:43 UTC 47,740 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5180],{5189:()=>{},30806:(e,t,n)=>{"use strict";n.d(t,{W:()=>i});var r=n(55729);n(42330);let o={some:0,all:1};function i(e,{root:t,margin:n,amount:a,once:u=!1}={}){let[s,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(!e.current||u&&s)return;let r={root:t&&t.current||void 0,margin:n,amount:a};return function(e,t,{root:n,margin:r,amount:i="some"}={}){var a,u,s;let l=("string"==typeof(a=e)?a=document.querySelectorAll(a):a instanceof Element&&(a=[a]),Array.from(a||[])),c=new WeakMap,d=new IntersectionObserver(e=>{e.forEach(e=>{let n=c.get(e.target);if(!!n!==e.isIntersecting)if(e.isIntersecting){let n=t(e);"function"==typeof n?c.set(e.target,n):d.unobserve(e.target)}else n&&(n(e),c.delete(e.target))})},{root:n,rootMargin:r,threshold:"number"==typeof i?i:o[i]});return l.forEach(e=>d.observe(e)),()=>d.disconnect()}(e.current,()=>(l(!0),u?void 0:()=>l(!1)),r)},[t,e,n,u,a]),s}},54383:(e,t,n)=>{"use strict";let r;function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{A:()=>eH});var l,c,d=n(35987),p=n(73818);function f(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,p.A)(e,t)}function h(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,d.A)(e)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=n(55729);let y=/^[a-z0-9]+(-[a-z0-9]+)*$/,E=(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&&!b(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&&!b(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:i};return t&&!b(e,n)?null:e}return null},b=(e,t)=>!!e&&!!((""===e.provider||e.provider.match(y))&&(t&&""===e.prefix||e.prefix.match(y))&&e.name.match(y)),w=Object.freeze({left:0,top:0,width:16,height:16}),A=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),T=Object.freeze({...w,...A}),C=Object.freeze({...T,body:"",hidden:!1});function L(e,t){let n=function(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}(e,t);for(let r in C)r in A?r in e&&!(r in n)&&(n[r]=A[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function k(e,t){let n=[];if("object"!=typeof e||"object"!=typeof e.icons)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=function(e,t){let n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);return 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}(e);for(let o in r){let i=r[o];i&&(t(o,function(e,t,n){let r=e.icons,o=e.aliases||Object.create(null),i={};function a(e){i=L(r[e]||o[e],i)}
1return a(t),n.forEach(a),L(e,i)}(e,o,i)),n.push(o))}return n}let O={provider:"",aliases:{},not_found:{},...w};function M(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function _(e){if("object"!=typeof e||null===e||"string"!=typeof e.prefix||!e.icons||"object"!=typeof e.icons||!M(e,O))return null;let t=e.icons;for(let e in t){let n=t[e];if(!e.match(y)||"string"!=typeof n.body||!M(n,C))return null}let n=e.aliases||Object.create(null);for(let e in n){let r=n[e],o=r.parent;if(!e.match(y)||"string"!=typeof o||!t[o]&&!n[o]||!M(r,C))return null}return e}let P=Object.create(null);function S(e,t){let n=P[e]||(P[e]=Object.create(null));return n[t]||(n[t]={provider:e,prefix:t,icons:Object.create(null),missing:new Set})}function D(e,t){return _(t)?k(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}let x=!1;function R(e){return"boolean"==typeof e&&(x=e),x}let N=Object.freeze({width:null,height:null}),V=Object.freeze({...N,...A}),I=/(-?[0-9.]*[0-9]+[0-9.]*)/g,U=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function F(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(I);if(null===r||!r.length)return e;let o=[],i=r.shift(),a=U.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 j=e=>"unset"===e||"undefined"===e||"none"===e,B=/\sid="(\S+)"/g,W="IconifyId"+Date.now().toString(16)+(0x1000000*Math.random()|0).toString(16),z=0,J=Object.create(null);function H(e){return J[e]||J[""]}function G(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 $=Object.create(null),K=["https://api.simplesvg.com","https://api.unisvg.com"],q=[];for(;K.length>0;)1===K.length||Math.random()>.5?q.push(K.shift()):q.push(K.pop());$[""]=G({resources:["https://api.iconify.design"].concat(q)});let Q=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(e){}})();function X(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}let Y=0;var Z={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function ee(e){let t={...Z,...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,u=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(u).concat(e.resources.slice(0,u));let s=Date.now(),l="pending",c=0,d=null,p=[],f=[];function h(){d&&(clearTimeout(d),d=null)}function m(){"pending"===l&&(l="aborted"),h(),p.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),p=[]}function v(e,t){t&&(f=[]),"function"==typeof e&&f.push(e)}function g(){l="failed",f.forEach(e=>{e(void 0,i)})}function y(){p.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),p=[]}return"function"==typeof r&&f.push(r),setTimeout(function r(){if("pending"!==l)return;h();let a=o.shift();if(void 0===a){if(p.length){d=setTimeout(()=>{h(),"pending"===l&&(y(),g())},e.timeout);return}g();return}let u={status:"pending",resource:a,callback:(t,n)=>{!function(t,n,a){let u="success"!==n;switch(p=p.filter(e=>e!==t),l){case"pending":break;case"failed":if(u||!e.dataAfterTimeout)return;break;default:return}if("abort"===n){i=a,g();return}if(u){i=a,p.length||(o.length?r():g());return}if(h(),y(),!e.random){let n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}l="completed",f.forEach(e=>{e(a)})}(u,t,n)}};p.push(u),c++,d=setTimeout(r,e.rotate),n(a,t,u.callback)}),function(){return{startTime:s,payload:t,status:l,queriesSent:c,queriesPending:p.length,subscribe:v,abort:m}}}(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}
1,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}let et=Object.create(null),en="iconify2",er="iconify",eo=er+"-count",ei=er+"-version";function ea(e,t){try{return e.getItem(t)}catch(e){}}function eu(e,t,n){try{return e.setItem(t,n),!0}catch(e){}}function es(e,t){try{e.removeItem(t)}catch(e){}}function el(e,t){return eu(e,eo,t.toString())}function ec(e){return parseInt(ea(e,eo))||0}let ed={local:!0,session:!0},ep={local:new Set,session:new Set},ef=!1,eh="undefined"==typeof window?{}:window;function em(e){let t=e+"Storage";try{if(eh&&eh[t]&&"number"==typeof eh[t].length)return eh[t]}catch(e){}ed[e]=!1}function ev(e,t){let n=em(e);if(!n)return;let r=ea(n,ei);if(r!==en){if(r){let e=ec(n);for(let t=0;t<e;t++)es(n,er+t.toString())}eu(n,ei,en),el(n,0);return}let o=Math.floor(Date.now()/36e5)-168,i=e=>{let r=er+e.toString(),i=ea(n,r);if("string"==typeof i){try{let n=JSON.parse(i);if("object"==typeof n&&"number"==typeof n.cached&&n.cached>o&&"string"==typeof n.provider&&"object"==typeof n.data&&"string"==typeof n.data.prefix&&t(n,e))return!0}catch(e){}es(n,r)}},a=ec(n);for(let t=a-1;t>=0;t--)i(t)||(t===a-1?el(n,--a):ep[e].add(t))}function eg(){if(!ef)for(let e in ef=!0,ed)ev(e,e=>{let t=e.data,n=S(e.provider,t.prefix);if(!D(n,t).length)return!1;let r=t.lastModified||-1;return n.lastModifiedCached=n.lastModifiedCached?Math.min(n.lastModifiedCached,r):r,!0})}function ey(){}let eE=(e,t)=>{let n,r,o=function(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.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));let r={provider:"",prefix:"",name:""};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let o=e.provider,i=e.prefix,a=e.name,u=n[o]||(n[o]=Object.create(null)),s=u[i]||(u[i]=S(o,i));(a in s.icons?t.loaded:""===i||s.missing.has(a)?t.missing:t.pending).push({provider:o,prefix:i,name:a})}),t}(function(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let o="string"==typeof e?E(e,t,n):e;o&&r.push(o)}),r}(e,!0,R()));if(!o.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(o.loaded,o.missing,o.pending,ey)}),()=>{e=!1}}let i=Object.create(null),a=[];return o.pending.forEach(e=>{let{provider:t,prefix:o}=e;if(o===r&&t===n)return;n=t,r=o,a.push(S(t,o));let u=i[t]||(i[t]=Object.create(null));u[o]||(u[o]=[])}),o.pending.forEach(e=>{let{provider:t,prefix:n,name:r}=e,o=S(t,n),a=o.pendingIcons||(o.pendingIcons=new Set);a.has(r)||(a.add(r),i[t][n].push(r))}),a.forEach(e=>{let{provider:t,prefix:n}=e;i[t][n].length&&function(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{let t;e.iconsQueueFlag=!1;let{provider:n,prefix:r}=e,o=e.iconsToLoad;
1delete e.iconsToLoad,o&&(t=H(n))&&t.prepare(n,r,o).forEach(t=>{!function(e,t,n){let r,o;if("string"==typeof e){let t=H(e);if(!t)return n(void 0,424);o=t.send;let i=function(e){if(!et[e]){let t=$[e];if(!t)return;let n=ee(t);et[e]={config:t,redundancy:n}}return et[e]}(e);i&&(r=i.redundancy)}else{let t=G(e);if(t){r=ee(t);let n=H(e.resources?e.resources[0]:"");n&&(o=n.send)}}r&&o?r.query(t,o,n)().abort:n(void 0,424)}(n,t,n=>{if("object"!=typeof n)t.icons.forEach(t=>{e.missing.add(t)});else try{let t=D(e,n);if(!t.length)return;let r=e.pendingIcons;r&&t.forEach(e=>{r.delete(e)}),function(e,t){function n(n){let r,o;if(!ed[n]||!(r=em(n)))return;let i=ep[n];if(i.size)i.delete(o=Array.from(i).shift());else if(o=ec(r),!el(r,o+1))return;let a={cached:Math.floor(Date.now()/36e5),provider:e.provider,data:t};return eu(r,er+o.toString(),JSON.stringify(a))}ef||eg(),(!t.lastModified||function(e,t){let n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(let n in ed)ev(n,n=>{let r=n.data;return n.provider!==e.provider||r.prefix!==e.prefix||r.lastModified===t});return!0}(e,t.lastModified))&&Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}(e,n)}catch(e){console.error(e)}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||X([e],t.id),t.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),t.abort))})}))}))})})}))}(e,i[t][n])}),t?function(e,t,n){let r=Y++,o=X.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,o,a):ey},eb=/[\s,]+/,ew={...V,inline:!1},eA={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},eT={display:"inline-block"},eC={backgroundColor:"currentColor"},eL={backgroundColor:"transparent"},ek={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},eO={WebkitMask:eC,mask:eC,background:eL};for(let e in eO){let t=eO[e];for(let n in ek)t[e+n]=ek[n]}let eM={...ew,inline:!0};function e_(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}let eP=(e,t,n,o)=>{let i=n?eM:ew,a=function(e,t){let n={...e};for(let e in t){let r=t[e],o=typeof r;e in N?(null===r||r&&("string"===o||"number"===o))&&(n[e]=r):o===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(i,t),u=t.mode||"svg",s={},l=t.style||{},c={..."svg"===u?eA:{},ref:o};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"_ref":case"_inline":break;case"inline":case"hFlip":case"vFlip":a[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&function(e,t){t.split(eb).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}(a,n);break;case"color":s.color=n;break;case"rotate":"string"==typeof n?a[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&&(a[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete c["aria-hidden"];break;default:void 0===i[e]&&(c[e]=n)}}let d=function(e,t){let n,r,o={...T,...e},i={...V,...t},a={left:o.left,top:o.top,width:o.width,height:o.height},u=o.body;[o,i].forEach(e=>{let t,n=[],r=e.hFlip,o=e.vFlip,i=e.rotate;switch(r?o?i+=2:(n.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),n.push("scale(-1 1)"),a.top=a.left=0):o&&(n.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),n.push("scale(1 -1)"),a.top=a.left=0),i<0&&(i-=4*Math.floor(i/4)),i%=4){case 1:n.unshift("rotate(90 "+(t=a.height/2+a.top).toString()+" "+t.toString()+")");break;case 2:n.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:n.unshift("rotate(-90 "+(t=a.width/2+a.left).toString()+" "+t.toString()+")")}i%2==1&&(a.left!==a.top&&(t=a.left,a.left=a.top,a.top=t),a.width!==a.height&&(t=a.width,a.width=a.height,a.height=t)),n.length&&(u='<g transform="'+n.join(" ")+'">'+u+"</g>")});let s=i.width,l=i.height,c=a.width,d=a.height;null===s?n=F(r=null===l?"1em":"auto"===l?d:l,c/d):(n="auto"===s?c:s,r=null===l?F(n,d/c):"auto"===l?d:l);let p={},f=(e,t)=>{j(t)||(p[e]=t.toString())};return f("width",n),f("height",r),p.viewBox=a.left.toString()+" "+a.top.toString()+" "+c.toString()+" "+d.toString(),{attributes:p,body:u}}(e,a),p=d.attributes;if(a.inline&&(s.verticalAlign="-0.125em"),"svg"===u){c.style={...s,...l},Object.assign(c,p);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),c.dangerouslySetInnerHTML={__html:function(e){return void 0===r&&function(){try{r=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){r=null}}(),r?r.createHTML(e):e}(function(e,t=W){let n,r=[];for(;n=B.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+(z++).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"))},g.createElement("svg",c)}let{body:f,width:h,height:m}=e,v="mask"===u||"bg"!==u&&-1!==f.indexOf("currentColor"),y=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>"}(f,{...p,width:h+"",height:m+""});return c.style={...s,"--svg":'url("data:image/svg+xml,'+y.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")+'")',width:e_(p.width),height:e_(p.height),...eT,...v?eC:eL,...l},g.createElement("span",c)};
1if(R(!0),l={prepare:(e,t,n)=>{let r=[],o=function(e,t){let n,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:[]},u=0;return n.forEach((n,s)=>{(u+=n.length+1)>=o&&s>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},u=n.length),a.icons.push(n)}),r.push(a),r},send:(e,t,n)=>{if(!Q)return void n("abort",424);let r=function(e){if("string"==typeof e){let t=$[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;Q(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=>{if("object"!=typeof e||null===e)return void setTimeout(()=>{404===e?n("abort",e):n("next",o)});setTimeout(()=>{n("success",e)})}).catch(()=>{n("next",o)})}},J[""]=l,"undefined"!=typeof document&&"undefined"!=typeof window){eg();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||""),x&&!t&&!e.prefix){let t=!1;return _(e)&&(e.prefix="",k(e,(e,n)=>{n&&function(e,t){let n=E(e,!0,x);if(!n)return!1;var r=S(n.provider,n.prefix),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!!b({provider:t,prefix:n,name:"a"})&&!!D(S(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 invalid.";try{let r=t[e];if("object"!=typeof r||!r||void 0===r.resources)continue;!function(e,t){let n=G(t);return null!==n&&($[e]=n,!0)}(e,r)&&console.error(n)}catch(e){console.error(n)}}}}class eS extends g.Component{constructor(e){super(e),this.state={icon:null}}_abortLoading(){this._loading&&(this._loading.abort(),this._loading=null)}_setData(e){this.state.icon!==e&&this.setState({icon:e})}_checkIcon(e){let t,n=this.state,r=this.props.icon;if("object"==typeof r&&null!==r&&"string"==typeof r.body){this._icon="",this._abortLoading(),(e||null===n.icon)&&this._setData({data:r});return}if("string"!=typeof r||null===(t=E(r,!1,!0))){this._abortLoading(),this._setData(null);return}let o=function(e){let t="string"==typeof e?E(e,!0,x):e;if(t){let e=S(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}(t);if(!o){this._loading&&this._loading.name===r||(this._abortLoading(),this._icon="",this._setData(null),null!==o&&(this._loading={name:r,abort:eE([t],this._checkIcon.bind(this,!1))}));return}if(this._icon!==r||null===n.icon){this._abortLoading(),this._icon=r;let e=["iconify"];""!==t.prefix&&e.push("iconify--"+t.prefix),""!==t.provider&&e.push("iconify--"+t.provider),this._setData({data:o,classes:e}),this.props.onLoad&&this.props.onLoad(r)}}componentDidMount(){this._checkIcon(!1)}componentDidUpdate(e){e.icon!==this.props.icon&&this._checkIcon(!0)}componentWillUnmount(){this._abortLoading()}render(){let e=this.props,t=this.state.icon;if(null===t)return e.children?e.children:g.createElement("span",{});let n=e;return t.classes&&(n={...e,className:("string"==typeof e.className?e.className+" ":"")+t.classes.join(" ")}),eP({...T,...t.data},n,e._inline,e._ref)}}let eD=g.forwardRef(function(e,t){let n={...e,_ref:t,_inline:!1};return g.createElement(eS,n)});g.forwardRef(function(e,t){let n={...e,_ref:t,_inline:!0};return g.createElement(eS,n)});var ex=n(99410),eR=function(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"}},eN=function(e){return e instanceof MouseEvent?e.clientX:e.touches[0].clientX},eV=function(e){return e>9?e.toString():"0".concat(e)},eI=function(e,t,n){if(!isFinite(e))return null;var r=Math.floor(e/60),o=eV(r),i=eV(Math.floor(e%60)),a=eV(Math.floor(r%60)),u=Math.floor(r/60),s="".concat(o,":").concat(i),l="".concat(u,":").concat(a,":").concat(i);if("auto"===n)if(t>=3600)return l;else return s;return"mm:ss"===n?s:"hh:mm:ss"===n?l:void 0};function eU(e,t){var n=!1;return function(r){n||(e(r),n=!0,setTimeout(function(){return n=!1},t))}}var eF=function(e){f(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=m(r);return e=t?Reflect.construct(n,arguments,m(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;o(this,r);for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];return e=n.call.apply(n,[this].concat(i)),v((0,d.A)(e),"audio",void 0),v((0,d.A)(e),"timeOnMouseMove",0),v((0,d.A)(e),"hasAddedAudioEventListener",!1),v((0,d.A)(e),"downloadProgressAnimationTimer",void 0),v((0,d.A)(e),"state",{isDraggingProgress:!1,currentTimePos:"0%",hasDownloadProgressAnimation:!1,downloadProgressArr:[],waitingForSeekCallback:!1}),v((0,d.A)(e),"getCurrentProgress",function(t){var n=e.props,r=n.audio,o=n.progressBar;if(0!==r.src.indexOf("blob:")&&void 0===e.props.srcDuration&&(!r.
1src||!isFinite(r.currentTime)||!o.current))return{currentTime:0,currentTimePos:"0%"};var i=o.current.getBoundingClientRect(),a=i.width,u=eN(t)-i.left;return u<0?u=0:u>a&&(u=a),{currentTime:e.getDuration()*u/a,currentTimePos:"".concat((u/a*100).toFixed(2),"%")}}),v((0,d.A)(e),"handleContextMenu",function(e){e.preventDefault()}),v((0,d.A)(e),"handleMouseDownOrTouchStartProgressBar",function(t){t.stopPropagation();var n=e.getCurrentProgress(t.nativeEvent),r=n.currentTime,o=n.currentTimePos;isFinite(r)&&(e.timeOnMouseMove=r,e.setState({isDraggingProgress:!0,currentTimePos:o}),t.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.addEventListener("touchend",e.handleWindowMouseOrTouchUp)))}),v((0,d.A)(e),"handleWindowMouseOrTouchMove",function(t){t instanceof MouseEvent&&t.preventDefault(),t.stopPropagation();var n=window.getSelection();if(n&&"Range"===n.type&&n.empty(),e.state.isDraggingProgress){var r=e.getCurrentProgress(t),o=r.currentTime,i=r.currentTimePos;e.timeOnMouseMove=o,e.setState({currentTimePos:i})}}),v((0,d.A)(e),"handleWindowMouseOrTouchUp",function(t){t.stopPropagation();var n=e.timeOnMouseMove,r=e.props,o=r.audio,i=r.onChangeCurrentTimeError,a=r.onSeek;if(a)e.setState({isDraggingProgress:!1,waitingForSeekCallback:!0},function(){a(o,n).then(function(){return e.setState({waitingForSeekCallback:!1})},function(e){throw Error(e)})});else{var u={isDraggingProgress:!1};if(o.readyState===o.HAVE_NOTHING||o.readyState===o.HAVE_METADATA||!isFinite(n))try{o.load()}catch(e){return u.currentTimePos="0%",i&&i(e)}o.currentTime=n,e.setState(u)}t instanceof MouseEvent?(window.removeEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",e.handleWindowMouseOrTouchUp))}),v((0,d.A)(e),"handleAudioTimeUpdate",eU(function(t){var n=e.state.isDraggingProgress,r=t.target;if(!n&&!0!==e.state.waitingForSeekCallback){var o=r.currentTime,i=e.getDuration();e.setState({currentTimePos:"".concat((o/i*100||0).toFixed(2),"%")})}},e.props.progressUpdateInterval)),v((0,d.A)(e),"handleAudioDownloadProgressUpdate",function(t){for(var n=t.target,r=e.getDuration(),o=[],i=0;i<n.buffered.length;i++){var a=n.buffered.start(i),u=n.buffered.end(i);o.push({left:"".concat(Math.round(100/r*a)||0,"%"),width:"".concat(Math.round(100/r*(u-a))||0,"%")})}clearTimeout(e.downloadProgressAnimationTimer),e.setState({downloadProgressArr:o,hasDownloadProgressAnimation:!0}),e.downloadProgressAnimationTimer=setTimeout(function(){e.setState({hasDownloadProgressAnimation:!1})},200)}),e}return s(r,[{key:"getDuration",value:function(){var e=this.props,t=e.audio,n=e.srcDuration;return void 0===n?t.duration:n}},{key:"initialize",value:function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",this.handleAudioTimeUpdate),e.addEventListener("progress",this.handleAudioDownloadProgressUpdate))}},{key:"componentDidMount",value:function(){this.initialize()}},{key:"componentDidUpdate",value:function(){this.initialize()}},{key:"componentWillUnmount",value:function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioTimeUpdate),this.audio.removeEventListener("progress",this.handleAudioDownloadProgressUpdate)),clearTimeout(this.downloadProgressAnimationTimer)}},{key:"render",value:function(){var e=this.props,t=e.showDownloadProgress,n=e.showFilledProgress,r=e.progressBar,o=e.i18nProgressBar,i=this.state,a=i.currentTimePos,u=i.downloadProgressArr,s=i.hasDownloadProgressAnimation;return g.createElement("div",{className:"rhap_progress-container",ref:r,"aria-label":o,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number(a.split("%")[0]),tabIndex:0,onMouseDown:this.handleMouseDownOrTouchStartProgressBar,onTouchStart:this.handleMouseDownOrTouchStartProgressBar,onContextMenu:this.handleContextMenu},g.createElement("div",{className:"rhap_progress-bar ".concat(t?"rhap_progress-bar-show-download":"")},g.createElement("div",{className:"rhap_progress-indicator",style:{left:a}}),n&&g.createElement("div",{className:"rhap_progress-filled",style:{width:a}}),t&&u.map(function(e,t){var n=e.left,r=e.width;return g.createElement("div",{key:t,className:"rhap_download-progress",style:{left:n,width:r,transitionDuration:s?".2s":"0s"}})})))}}]),r}(g.Component);let ej=(0,g.forwardRef)(function(e,t){return g.createElement(eF,(0,ex.A)({},e,{progressBar:t}))});var eB=function(e){f(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=m(r);return e=t?Reflect.construct(n,arguments,m(this).constructor):n.apply(this,arguments),h(this,e)});function r(e){o(this,r),t=n.call(this,e),v((0,d.A)(t),"audio",void 0),v((0,d.A)(t),"hasAddedAudioEventListener",!1),v((0,d.A)(t),"state",{currentTime:t.props.defaultCurrentTime}),v((0,d.A)(t),"handleAudioCurrentTimeChange",function(e){var n=e.target,r=t.props,o=r.isLeftTime,i=r.timeFormat,a=r.defaultCurrentTime;t.setState({currentTime:eI(o?n.duration-n.currentTime:n.currentTime,n.duration,i)||a})}),v((0,d.A)(t),"addAudioEventListeners",function(){var e=t.props.audio;e&&!t.hasAddedAudioEventListener&&(t.audio=e,t.hasAddedAudioEventListener=!0,e.addEventListener("timeupdate",t.handleAudioCurrentTimeChange),e.addEventListener("loadedmetadata",t.handleAudioCurrentTimeChange))});var t,i=e.audio,a=e.defaultCurrentTime,u=e.isLeftTime,s=e.timeFormat,l=a;return i&&(l=eI(u?i.duration-i.currentTime:i.currentTime,i.duration,s)),t.state={currentTime:l},t}
1return s(r,[{key:"componentDidMount",value:function(){this.addAudioEventListeners()}},{key:"componentDidUpdate",value:function(){this.addAudioEventListeners()}},{key:"componentWillUnmount",value:function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("timeupdate",this.handleAudioCurrentTimeChange),this.audio.removeEventListener("loadedmetadata",this.handleAudioCurrentTimeChange))}},{key:"render",value:function(){return this.state.currentTime}}]),r}(g.PureComponent),eW=function(e){f(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=m(r);return e=t?Reflect.construct(n,arguments,m(this).constructor):n.apply(this,arguments),h(this,e)});function r(e){o(this,r),t=n.call(this,e),v((0,d.A)(t),"audio",void 0),v((0,d.A)(t),"hasAddedAudioEventListener",!1),v((0,d.A)(t),"state",{duration:t.props.audio?eI(t.props.audio.duration,t.props.audio.duration,t.props.timeFormat):t.props.defaultDuration}),v((0,d.A)(t),"handleAudioDurationChange",function(e){var n=e.target,r=t.props,o=r.timeFormat,i=r.defaultDuration;t.setState({duration:eI(n.duration,n.duration,o)||i})}),v((0,d.A)(t),"addAudioEventListeners",function(){var e=t.props.audio;e&&!t.hasAddedAudioEventListener&&(t.audio=e,t.hasAddedAudioEventListener=!0,e.addEventListener("durationchange",t.handleAudioDurationChange),e.addEventListener("abort",t.handleAudioDurationChange))});var t,i=e.audio,a=e.timeFormat,u=e.defaultDuration;return t.state={duration:i?eI(i.duration,i.duration,a):u},t}return s(r,[{key:"componentDidMount",value:function(){this.addAudioEventListeners()}},{key:"componentDidUpdate",value:function(){this.addAudioEventListeners()}},{key:"componentWillUnmount",value:function(){this.audio&&this.hasAddedAudioEventListener&&(this.audio.removeEventListener("durationchange",this.handleAudioDurationChange),this.audio.removeEventListener("abort",this.handleAudioDurationChange))}},{key:"render",value:function(){return this.state.duration}}]),r}(g.PureComponent),ez=function(e){f(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=m(r);return e=t?Reflect.construct(n,arguments,m(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;o(this,r);for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];return e=n.call.apply(n,[this].concat(i)),v((0,d.A)(e),"audio",void 0),v((0,d.A)(e),"hasAddedAudioEventListener",!1),v((0,d.A)(e),"volumeBar",(0,g.createRef)()),v((0,d.A)(e),"volumeAnimationTimer",0),v((0,d.A)(e),"lastVolume",e.props.volume),v((0,d.A)(e),"state",{currentVolumePos:"".concat((e.lastVolume/1*100||0).toFixed(2),"%"),hasVolumeAnimation:!1,isDraggingVolume:!1}),v((0,d.A)(e),"getCurrentVolume",function(t){var n,r,o=e.props.audio;if(!e.volumeBar.current)return{currentVolume:o.volume,currentVolumePos:e.state.currentVolumePos};var i=e.volumeBar.current.getBoundingClientRect(),a=i.width,u=eN(t)-i.left;return u<0?(n=0,r="0%"):u>i.width?(n=1,r="100%"):(n=u/a,r="".concat(u/a*100,"%")),{currentVolume:n,currentVolumePos:r}}),v((0,d.A)(e),"handleContextMenu",function(e){e.preventDefault()}),v((0,d.A)(e),"handleClickVolumeButton",function(){var t=e.props.audio;t.volume>0?(e.lastVolume=t.volume,t.volume=0):t.volume=e.lastVolume}),v((0,d.A)(e),"handleVolumnControlMouseOrTouchDown",function(t){t.stopPropagation();var n=e.props.audio,r=e.getCurrentVolume(t.nativeEvent),o=r.currentVolume,i=r.currentVolumePos;n.volume=o,e.setState({isDraggingVolume:!0,currentVolumePos:i}),t.nativeEvent instanceof MouseEvent?(window.addEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.addEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.addEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.addEventListener("touchend",e.handleWindowMouseOrTouchUp))}),v((0,d.A)(e),"handleWindowMouseOrTouchMove",function(t){t instanceof MouseEvent&&t.preventDefault(),t.stopPropagation();var n=e.props.audio,r=window.getSelection();if(r&&"Range"===r.type&&r.empty(),e.state.isDraggingVolume){var o=e.getCurrentVolume(t),i=o.currentVolume,a=o.currentVolumePos;n.volume=i,e.setState({currentVolumePos:a})}}),v((0,d.A)(e),"handleWindowMouseOrTouchUp",function(t){t.stopPropagation(),e.setState({isDraggingVolume:!1}),t instanceof MouseEvent?(window.removeEventListener("mousemove",e.handleWindowMouseOrTouchMove),window.removeEventListener("mouseup",e.handleWindowMouseOrTouchUp)):(window.removeEventListener("touchmove",e.handleWindowMouseOrTouchMove),window.removeEventListener("touchend",e.handleWindowMouseOrTouchUp))}),v((0,d.A)(e),"handleAudioVolumeChange",function(t){var n=e.state.isDraggingVolume,r=t.target.volume;(e.lastVolume>0&&0===r||0===e.lastVolume&&r>0)&&e.props.onMuteChange(),e.lastVolume=r,n||(e.setState({hasVolumeAnimation:!0,currentVolumePos:"".concat((r/1*100||0).toFixed(2),"%")}),clearTimeout(e.volumeAnimationTimer),e.volumeAnimationTimer=setTimeout(function(){e.setState({hasVolumeAnimation:!1})},100))}),e}
1return s(r,[{key:"componentDidUpdate",value:function(){var e=this.props.audio;e&&!this.hasAddedAudioEventListener&&(this.audio=e,this.hasAddedAudioEventListener=!0,e.addEventListener("volumechange",this.handleAudioVolumeChange))}},{key:"componentWillUnmount",value:function(){this.audio&&this.hasAddedAudioEventListener&&this.audio.removeEventListener("volumechange",this.handleAudioVolumeChange),clearTimeout(this.volumeAnimationTimer)}},{key:"render",value:function(){var e=this.props,t=e.audio,n=e.showFilledVolume,r=e.i18nVolumeControl,o=this.state,i=o.currentVolumePos,a=o.hasVolumeAnimation,u=(t||{}).volume;return g.createElement("div",{ref:this.volumeBar,onMouseDown:this.handleVolumnControlMouseOrTouchDown,onTouchStart:this.handleVolumnControlMouseOrTouchDown,onContextMenu:this.handleContextMenu,role:"progressbar","aria-label":r,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Number((100*u).toFixed(0)),tabIndex:0,className:"rhap_volume-bar-area"},g.createElement("div",{className:"rhap_volume-bar"},g.createElement("div",{className:"rhap_volume-indicator",style:{left:i,transitionDuration:a?".1s":"0s"}}),n&&g.createElement("div",{className:"rhap_volume-filled",style:{width:i}})))}}]),r}(g.Component);!function(e){e.CURRENT_TIME="CURRENT_TIME",e.CURRENT_LEFT_TIME="CURRENT_LEFT_TIME",e.PROGRESS_BAR="PROGRESS_BAR",e.DURATION="DURATION",e.ADDITIONAL_CONTROLS="ADDITIONAL_CONTROLS",e.MAIN_CONTROLS="MAIN_CONTROLS",e.VOLUME_CONTROLS="VOLUME_CONTROLS",e.LOOP="LOOP",e.VOLUME="VOLUME"}(c||(c={}));var eJ=function(e){f(r,e);var t,n=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=m(r);return e=t?Reflect.construct(n,arguments,m(this).constructor):n.apply(this,arguments),h(this,e)});function r(){var e;o(this,r);for(var t=arguments.length,i=Array(t),a=0;a<t;a++)i[a]=arguments[a];return e=n.call.apply(n,[this].concat(i)),v((0,d.A)(e),"audio",(0,g.createRef)()),v((0,d.A)(e),"progressBar",(0,g.createRef)()),v((0,d.A)(e),"container",(0,g.createRef)()),v((0,d.A)(e),"lastVolume",e.props.volume),v((0,d.A)(e),"listenTracker",void 0),v((0,d.A)(e),"volumeAnimationTimer",void 0),v((0,d.A)(e),"downloadProgressAnimationTimer",void 0),v((0,d.A)(e),"togglePlay",function(t){t.stopPropagation();var n=e.audio.current;(n.paused||n.ended)&&n.src?e.playAudioPromise():n.paused||n.pause()}),v((0,d.A)(e),"playAudioPromise",function(){e.audio.current.error&&e.audio.current.load();var t=e.audio.current.play();t?t.then(null).catch(function(t){var n=e.props.onPlayError;n&&n(Error(t))}):e.forceUpdate()}),v((0,d.A)(e),"isPlaying",function(){var t=e.audio.current;return!!t&&!t.paused&&!t.ended}),v((0,d.A)(e),"handlePlay",function(t){e.forceUpdate(),e.props.onPlay&&e.props.onPlay(t)}),v((0,d.A)(e),"handlePause",function(t){e.audio&&(e.forceUpdate(),e.props.onPause&&e.props.onPause(t))}),v((0,d.A)(e),"handleEnded",function(t){e.audio&&(e.forceUpdate(),e.props.onEnded&&e.props.onEnded(t))}),v((0,d.A)(e),"handleAbort",function(t){e.props.onAbort&&e.props.onAbort(t)}),v((0,d.A)(e),"handleClickVolumeButton",function(){var t=e.audio.current;t.volume>0?(e.lastVolume=t.volume,t.volume=0):t.volume=e.lastVolume}),v((0,d.A)(e),"handleMuteChange",function(){e.forceUpdate()}),v((0,d.A)(e),"handleClickLoopButton",function(){e.audio.current.loop=!e.audio.current.loop,e.forceUpdate()}),v((0,d.A)(e),"handleClickRewind",function(){var t=e.props,n=t.progressJumpSteps,r=t.progressJumpStep,o=n.backward||r;e.setJumpTime(-o)}),v((0,d.A)(e),"handleClickForward",function(){var t=e.props,n=t.progressJumpSteps,r=t.progressJumpStep,o=n.forward||r;e.setJumpTime(o)}),v((0,d.A)(e),"setJumpTime",function(t){var n=e.audio.current,r=n.duration,o=n.currentTime;if(n.readyState===n.HAVE_NOTHING||n.readyState===n.HAVE_METADATA||!isFinite(r)||!isFinite(o))try{n.load()}catch(t){return e.props.onChangeCurrentTimeError&&e.props.onChangeCurrentTimeError(t)}var i=o+t/1e3;i<0?(n.currentTime=0,i=0):i>r?(n.currentTime=r,i=r):n.currentTime=i}),v((0,d.A)(e),"setJumpVolume",function(t){var n=e.audio.current.volume+t;n<0?n=0:n>1&&(n=1),e.audio.current.volume=n}),v((0,d.A)(e),"handleKeyDown",function(t){if(e.props.hasDefaultKeyBindings)switch(t.key){case" ":(t.target===e.container.current||t.target===e.progressBar.current)&&(t.preventDefault(),e.togglePlay(t));break;case"ArrowLeft":e.handleClickRewind();break;
1case"ArrowRight":e.handleClickForward();break;case"ArrowUp":t.preventDefault(),e.setJumpVolume(e.props.volumeJumpStep);break;case"ArrowDown":t.preventDefault(),e.setJumpVolume(-e.props.volumeJumpStep);break;case"l":e.handleClickLoopButton();break;case"m":e.handleClickVolumeButton()}}),v((0,d.A)(e),"renderUIModules",function(t){return t.map(function(t,n){return e.renderUIModule(t,n)})}),v((0,d.A)(e),"renderUIModule",function(t,n){var r=e.props,o=r.defaultCurrentTime,i=r.progressUpdateInterval,a=r.showDownloadProgress,u=r.showFilledProgress,s=r.showFilledVolume,l=r.defaultDuration,d=r.customIcons,p=r.showSkipControls,f=r.onClickPrevious,h=r.onClickNext,m=r.onChangeCurrentTimeError,v=r.showJumpControls,y=r.customAdditionalControls,E=r.customVolumeControls,b=r.muted,w=r.timeFormat,A=r.volume,T=r.loop,C=r.mse,L=r.i18nAriaLabels;switch(t){case c.CURRENT_TIME:return g.createElement("div",{key:n,id:"rhap_current-time",className:"rhap_time rhap_current-time"},g.createElement(eB,{audio:e.audio.current,isLeftTime:!1,defaultCurrentTime:o,timeFormat:w}));case c.CURRENT_LEFT_TIME:return g.createElement("div",{key:n,id:"rhap_current-left-time",className:"rhap_time rhap_current-left-time"},g.createElement(eB,{audio:e.audio.current,isLeftTime:!0,defaultCurrentTime:o,timeFormat:w}));case c.PROGRESS_BAR:return g.createElement(ej,{key:n,ref:e.progressBar,audio:e.audio.current,progressUpdateInterval:i,showDownloadProgress:a,showFilledProgress:u,onSeek:C&&C.onSeek,onChangeCurrentTimeError:m,srcDuration:C&&C.srcDuration,i18nProgressBar:L.progressControl});case c.DURATION:return g.createElement("div",{key:n,className:"rhap_time rhap_total-time"},C&&C.srcDuration?eI(C.srcDuration,C.srcDuration,e.props.timeFormat):g.createElement(eW,{audio:e.audio.current,defaultDuration:l,timeFormat:w}));case c.ADDITIONAL_CONTROLS:return g.createElement("div",{key:n,className:"rhap_additional-controls"},e.renderUIModules(y));case c.MAIN_CONTROLS:var k,O=e.isPlaying();return k=O?d.pause?d.pause:g.createElement(eD,{icon:"mdi:pause-circle"}):d.play?d.play:g.createElement(eD,{icon:"mdi:play-circle"}),g.createElement("div",{key:n,className:"rhap_main-controls"},p&&g.createElement("button",{"aria-label":L.previous,className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",type:"button",onClick:f},d.previous?d.previous:g.createElement(eD,{icon:"mdi:skip-previous"})),v&&g.createElement("button",{"aria-label":L.rewind,className:"rhap_button-clear rhap_main-controls-button rhap_rewind-button",type:"button",onClick:e.handleClickRewind},d.rewind?d.rewind:g.createElement(eD,{icon:"mdi:rewind"})),g.createElement("button",{"aria-label":O?L.pause:L.play,className:"rhap_button-clear rhap_main-controls-button rhap_play-pause-button",type:"button",onClick:e.togglePlay},k),v&&g.createElement("button",{"aria-label":L.forward,className:"rhap_button-clear rhap_main-controls-button rhap_forward-button",type:"button",onClick:e.handleClickForward},d.forward?d.forward:g.createElement(eD,{icon:"mdi:fast-forward"})),p&&g.createElement("button",{"aria-label":L.next,className:"rhap_button-clear rhap_main-controls-button rhap_skip-button",type:"button",onClick:h},d.next?d.next:g.createElement(eD,{icon:"mdi:skip-next"})));case c.VOLUME_CONTROLS:return g.createElement("div",{key:n,className:"rhap_volume-controls"},e.renderUIModules(E));case c.LOOP:var M,_=e.audio.current?e.audio.current.loop:T;return M=_?d.loop?d.loop:g.createElement(eD,{icon:"mdi:repeat"}):d.loopOff?d.loopOff:g.createElement(eD,{icon:"mdi:repeat-off"}),g.createElement("button",{key:n,"aria-label":_?L.loop:L.loopOff,className:"rhap_button-clear rhap_repeat-button",type:"button",onClick:e.handleClickLoopButton},M);case c.VOLUME:var P,S=(e.audio.current||{}).volume,D=void 0===S?b?0:A:S;return P=D?d.volume?d.volume:g.createElement(eD,{icon:"mdi:volume-high"}):d.volume?d.volumeMute:g.createElement(eD,{icon:"mdi:volume-mute"}),g.createElement("div",{key:n,className:"rhap_volume-container"},g.createElement("button",{"aria-label":D?L.volume:L.volumeMute,onClick:e.handleClickVolumeButton,type:"button",className:"rhap_button-clear rhap_volume-button"},P),g.createElement(ez,{audio:e.audio.current,volume:D,onMuteChange:e.handleMuteChange,showFilledVolume:s,i18nVolumeControl:L.volumeControl}));default:if(!(0,g.isValidElement)(t))return null;return t.key?t:(0,g.cloneElement)(t,{key:n})}}),e}
1return s(r,[{key:"componentDidMount",value:function(){var e=this;this.forceUpdate();var t=this.audio.current;this.props.muted?t.volume=0:t.volume=this.lastVolume,t.addEventListener("error",function(t){var n=t.target;if(n.error&&n.currentTime===n.duration)return e.props.onEnded&&e.props.onEnded(t);e.props.onError&&e.props.onError(t)}),t.addEventListener("canplay",function(t){e.props.onCanPlay&&e.props.onCanPlay(t)}),t.addEventListener("canplaythrough",function(t){e.props.onCanPlayThrough&&e.props.onCanPlayThrough(t)}),t.addEventListener("play",this.handlePlay),t.addEventListener("abort",this.handleAbort),t.addEventListener("ended",this.handleEnded),t.addEventListener("playing",function(t){e.props.onPlaying&&e.props.onPlaying(t)}),t.addEventListener("seeking",function(t){e.props.onSeeking&&e.props.onSeeking(t)}),t.addEventListener("seeked",function(t){e.props.onSeeked&&e.props.onSeeked(t)}),t.addEventListener("waiting",function(t){e.props.onWaiting&&e.props.onWaiting(t)}),t.addEventListener("emptied",function(t){e.props.onEmptied&&e.props.onEmptied(t)}),t.addEventListener("stalled",function(t){e.props.onStalled&&e.props.onStalled(t)}),t.addEventListener("suspend",function(t){e.props.onSuspend&&e.props.onSuspend(t)}),t.addEventListener("loadstart",function(t){e.props.onLoadStart&&e.props.onLoadStart(t)}),t.addEventListener("loadedmetadata",function(t){e.props.onLoadedMetaData&&e.props.onLoadedMetaData(t)}),t.addEventListener("loadeddata",function(t){e.props.onLoadedData&&e.props.onLoadedData(t)}),t.addEventListener("pause",this.handlePause),t.addEventListener("timeupdate",eU(function(t){e.props.onListen&&e.props.onListen(t)},this.props.listenInterval)),t.addEventListener("volumechange",function(t){e.props.onVolumeChange&&e.props.onVolumeChange(t)}),t.addEventListener("encrypted",function(t){var n=e.props.mse;n&&n.onEcrypted&&n.onEcrypted(t)})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.src,r=t.autoPlayAfterSrcChange;e.src!==n&&(r?this.playAudioPromise():this.forceUpdate())}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.src,r=e.loop,o=e.preload,i=e.autoPlay,a=e.crossOrigin,u=e.mediaGroup,s=e.header,l=e.footer,c=e.layout,d=e.customProgressBarSection,p=e.customControlsSection,f=e.children,h=e.style,m=e.i18nAriaLabels,v=this.audio.current?this.audio.current.loop:r,y=v?"rhap_loop--on":"rhap_loop--off",E=this.isPlaying()?"rhap_play-status--playing":"rhap_play-status--paused";return g.createElement("div",{role:"group",tabIndex:0,"aria-label":m.player,className:"rhap_container ".concat(y," ").concat(E," ").concat(t),onKeyDown:this.handleKeyDown,ref:this.container,style:h},g.createElement("audio",{src:n,controls:!1,loop:v,autoPlay:i,preload:o,crossOrigin:a,mediaGroup:u,ref:this.audio},f),s&&g.createElement("div",{className:"rhap_header"},s),g.createElement("div",{className:"rhap_main ".concat(eR(c))},g.createElement("div",{className:"rhap_progress-section"},this.renderUIModules(d)),g.createElement("div",{className:"rhap_controls-section"},this.renderUIModules(p))),l&&g.createElement("div",{className:"rhap_footer"},l))}}]),r}(g.Component);v(eJ,"defaultProps",{autoPlay:!1,autoPlayAfterSrcChange:!0,listenInterval:1e3,progressJumpStep:5e3,progressJumpSteps:{},volumeJumpStep:.1,loop:!1,muted:!1,preload:"auto",progressUpdateInterval:20,defaultCurrentTime:"--:--",defaultDuration:"--:--",timeFormat:"auto",volume:1,className:"",showJumpControls:!0,showSkipControls:!1,showDownloadProgress:!0,showFilledProgress:!0,showFilledVolume:!1,customIcons:{},customProgressBarSection:[c.CURRENT_TIME,c.PROGRESS_BAR,c.DURATION],customControlsSection:[c.ADDITIONAL_CONTROLS,c.MAIN_CONTROLS,c.VOLUME_CONTROLS],customAdditionalControls:[c.LOOP],customVolumeControls:[c.VOLUME],layout:"stacked",hasDefaultKeyBindings:!0,i18nAriaLabels:{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"}});let eH=eJ}}]);

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.