1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3616],{19832:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(91356);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},84834:(e,t,n)=>{let r;n.d(t,{CQ:()=>E,In:()=>ei});var i,o=n(91356);let l=Object.freeze({left:0,top:0,width:16,height:16}),a=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...l,...a}),s=Object.freeze({...c,body:"",hidden:!1});function f(e,t){let n,r,i=(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 s)n in a?n in e&&!(n in i)&&(i[n]=a[n]):n in t?i[n]=t[n]:n in e&&(i[n]=e[n]);return i}function u(e,t){let n,r,i,o=[];if("object"!=typeof e||"object"!=typeof e.icons)return o;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),o.push(e)});let l=(n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null),Object.keys(n).concat(Object.keys(r)).forEach(function e(t){if(n[t])return i[t]=[];if(!(t in i)){i[t]=null;let n=r[t]&&r[t].parent,o=n&&e(n);o&&(i[t]=[n].concat(o))}return i[t]}),i);for(let n in l){let r=l[n];r&&(t(n,function(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),o={};function l(e){o=f(r[e]||i[e],o)}return l(t),n.forEach(l),f(e,o)}(e,n,r)),o.push(n))}return o}let d={provider:"",aliases:{},not_found:{},...l};function p(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function h(e){if("object"!=typeof e||null===e||"string"!=typeof e.prefix||!e.icons||"object"!=typeof e.icons||!p(e,d))return null;let t=e.icons;for(let e in t){let n=t[e];if(!e||"string"!=typeof n.body||!p(n,s))return null}let n=e.aliases||Object.create(null);for(let e in n){let r=n[e],i=r.parent;if(!e||"string"!=typeof i||!t[i]&&!n[i]||!p(r,s))return null}return e}let g=Object.create(null);function m(e,t){let n=g[e]||(g[e]=Object.create(null));return n[t]||(n[t]={provider:e,prefix:t,icons:Object.create(null),missing:new Set})}function b(e,t){return h(t)?u(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}let y=/^[a-z0-9]+(-[a-z0-9]+)*$/,v=(e,t,n,r="")=>{let i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),o={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!x(o)?null:o}let o=i[0],l=o.split("-");if(l.length>1){let e={provider:r,prefix:l.shift(),name:l.join("-")};return t&&!x(e)?null:e}if(n&&""===r){let e={provider:r,prefix:"",name:o};return t&&!x(e,n)?null:e}return null},x=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name),k=!1;function w(e){return"boolean"==typeof e&&(k=e),k}function j(e){let t="string"==typeof e?v(e,!0,k):e;if(t){let e=m(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function E(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),k&&!t&&!e.prefix){let t=!1;return h(e)&&(e.prefix="",u(e,(e,n)=>{(function(e,t){let n=v(e,!0,k);if(!n)return!1;let r=m(n.provider,n.prefix);if(!t)return r.missing.add(n.name),!0;var i=n.name;try{if("string"==typeof t.body)return r.icons[i]={...t},!0}catch(e){}return!1})(e,n)&&(t=!0)})),t}let n=e.prefix;return!!x({prefix:n,name:"a"})&&!!b(m(t,n),e)}let O=Object.freeze({width:null,height:null}),S=Object.freeze({...O,...a}),T=/(-?[0-9.]*[0-9]+[0-9.]*)/g,F=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function I(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(T);if(null===r||!r.length)return e;let i=[],o=r.shift(),l=F.test(o);for(;;){if(l){let e=parseFloat(o);isNaN(e)?i.push(o):i.push(Math.ceil(e*t*n)/n)}else i.push(o);if(void 0===(o=r.shift()))return i.join("");l=!l}}let C=/\sid="(\S+)"/g,L="IconifyId"+Date.now().toString(16)+(0x1000000*Math.random()|0).toString(16),M=0,N=Object.create(null);function _(e){return N[e]||N[""]}function z(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),P=["https://api.simplesvg.com","https://api.unisvg.com"],A=[];for(;P.length>0;)1===P.length||Math.random()>.5?A.push(P.shift()):A.push(P.pop());R[""]=z({resources:["https://api.iconify.design"].concat(A)});let $=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(e){}})();function U(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}let D=0,H={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Q(e){let t={...H,...e},n=[];function r(){n=n.filter(e=>"pending"===e().status)}return{query:function(e,i,o){let l=function(e,t,n,r){let i,o,l=e.resources.length,a=e.random?Math.floor(Math.random()*l):e.index;if(e.random){let t=e.resources.slice(0);for(i=[];t.length>1;){let e=Math.floor(Math.random()*t.length);i.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}i=i.concat(t)}else i=e.resources.slice(a).concat(e.resources.slice(0,a));let c=Date.now(),s="pending",f=0,u=null,d=[],p=[];function h(){u&&(clearTimeout(u),u=null)}function g(){"pending"===s&&(s="aborted"),h(),d.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),d=[]}function m(e,t){t&&(p=[]),"function"==typeof e&&p.push(e)}function b(){s="failed",p.forEach(e=>{e(void 0,o)})}function y(){d.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),d=[]}return"function"==typeof r&&p.push(r),setTimeout(function r(){if("pending"!==s)return;h();let l=i.shift();if(void 0===l){if(d.length){u=setTimeout(()=>{h(),"pending"===s&&(y(),b())},e.timeout);return}b();return}let a={status:"pending",resource:l,callback:(t,n)=>{!function(t,n,l){let a="success"!==n;switch(d=d.filter(e=>e!==t),s){case"pending":break;case"failed":if(a||!e.dataAfterTimeout)return;break;default:return}if("abort"===n){o=l,b();return}if(a){o=l,d.length||(i.length?r():b());return}if(h(),y(),!e.random){let n=e.resources.indexOf(t.resource);-1!==n&&n!==e.index&&(e.index=n)}s="completed",p.forEach(e=>{e(l)})}(a,t,n)}};d.push(a),f++,u=setTimeout(r,e.rotate),n(l,t,a.callback)}),function(){return{startTime:c,payload:t,status:s,queriesSent:f,queriesPending:d.length,subscribe:m,abort:g}}}(t,e,i,(e,t)=>{r(),o&&o(e,t)});return n.push(l),l},find:function(e){return n.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}let q=Object.create(null);function J(){}function B(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(!b(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,i=e.prefix;t.forEach(t=>{let o=t.icons,l=o.pending.length;o.pending=o.pending.filter(t=>{if(t.prefix!==i)return!0;let l=t.name;if(e.icons[l])o.loaded.push({provider:r,prefix:i,name:l});else{if(!e.missing.has(l))return n=!0,!0;o.missing.push({provider:r,prefix:i,name:l})}return!1}),o.pending.length!==l&&(n||U([e],t.id),t.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),t.abort))})}))}))}function W(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}let X=/[\s,]+/,G={...S,inline:!1},K={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},V={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={...G,inline:!0};function er(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}if(w(!0),i={prepare:(e,t,n)=>{let r=[],i=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),o="icons",l={type:o,provider:e,prefix:t,icons:[]},a=0;return n.forEach((n,c)=>{(a+=n.length+1)>=i&&c>0&&(r.push(l),l={type:o,provider:e,prefix:t,icons:[]},a=n.length),l.icons.push(n)}),r.push(l),r},send:(e,t,n)=>{if(!$)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 i=503;$(e+r).then(e=>{let t=e.status;return 200!==t?void setTimeout(()=>{n(404===t?"abort":"next",t)}):(i=501,e.json())}).then(e=>{"object"!=typeof e||null===e?setTimeout(()=>{404===e?n("abort",e):n("next",i)}):setTimeout(()=>{n("success",e)})}).catch(()=>{n("next",i)})}},N[""]=i,"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||!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=z(t);return null!==n&&(R[e]=n,!0)}(e,r)&&console.error(n)}catch(e){console.error(n)}}}}let ei=(0,o.forwardRef)((e,t)=>(function(e){let[t,n]=(0,o.useState)(!!e.ssr),[i,l]=(0,o.useState)({}),[a,s]=(0,o.useState)(function(t){if(t){let t=e.icon;if("object"==typeof t)return{name:"",data:t};let n=j(t);if(n)return{name:t,data:n}}return{name:""}}(!!e.ssr));function f(){let e=i.callback;e&&(e(),l({}))}function u(e){if(JSON.stringify(a)!==JSON.stringify(e))return f(),s(e),!0}(0,o.useEffect)(()=>(n(!0),f),[]),(0,o.useEffect)(()=>{t&&function t(){var n;let r=e.icon;if("object"==typeof r)return void u({name:"",data:r});let i=j(r);u({name:r,data:i})&&(void 0===i?l({callback:((e,t)=>{var n;let r,i,o,l,a,c=(n=function(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i="string"==typeof e?v(e,t,n):e;i&&r.push(i)}),r}(e,!0,w()),o={loaded:[],missing:[],pending:[]},l=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)),a={provider:"",prefix:"",name:""},n.forEach(e=>{if(a.name===e.name&&a.prefix===e.prefix&&a.provider===e.provider)return;a=e;let t=e.provider,n=e.prefix,r=e.name,i=l[t]||(l[t]=Object.create(null)),c=i[n]||(i[n]=m(t,n));(r in c.icons?o.loaded:""===n||c.missing.has(r)?o.missing:o.pending).push({provider:t,prefix:n,name:r})}),o);if(!c.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(c.loaded,c.missing,c.pending,J)}),()=>{e=!1}}let s=Object.create(null),f=[];return c.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===i&&t===r)return;r=t,i=n,f.push(m(t,n));let o=s[t]||(s[t]=Object.create(null));o[n]||(o[n]=[])}),c.pending.forEach(e=>{let{provider:t,prefix:n,name:r}=e,i=m(t,n),o=i.pendingIcons||(i.pendingIcons=new Set);o.has(r)||(o.add(r),s[t][n].push(r))}),f.forEach(e=>{let t=s[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:i}=e,o=e.iconsToLoad;if(delete e.iconsToLoad,!o||!o.length)return;let l=e.loadIcon;if(e.loadIcons&&(o.length>1||!l))return void W(e.loadIcons(o,i,r),t=>{B(e,o,t)});if(l)return void o.forEach(t=>{W(l(t,i,r),n=>{let r=n?{prefix:i,icons:{[t]:n}}:null;B(e,[t],r)})});let{valid:a,invalid:c}=(t=[],n=[],o.forEach(e=>{(e.match(y)?t:n).push(e)}),{valid:t,invalid:n});if(c.length&&B(e,c,null),!a.length)return;let s=i.match(y)?_(r):null;s?s.prepare(r,i,a).forEach(t=>{!function(e,t,n){let r,i;if("string"==typeof e){let t=_(e);if(!t)return n(void 0,424);i=t.send;let o=function(e){if(!q[e]){let t=R[e];if(!t)return;let n=Q(t);q[e]={config:t,redundancy:n}}return q[e]}(e);o&&(r=o.redundancy)}else{let t=z(e);if(t){r=Q(t);let n=_(e.resources?e.resources[0]:"");n&&(i=n.send)}}r&&i?r.query(t,i,n)().abort:n(void 0,424)}(r,t,n=>{B(e,t.icons,n)})}):B(e,a,null)})))}),t?function(e,t,n){let r=D++,i=U.bind(null,n,r);if(!t.pending.length)return i;let o={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(o)}),i}(t,c,f):J})([r],t)}):i&&(null==(n=e.onLoad)||n.call(e,r)))}()},[e.icon,t]);let{name:d,data:p}=a;return p?((e,t,n)=>{var i;let l,a,s,f,u,d,p,h,g,m,b,y,x,k=t.inline?en:G,w=function(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in O?(null===r||r&&("string"===i||"number"===i))&&(n[e]=r):i===typeof n[e]&&(n[e]="rotate"===e?r%4:r)}return n}(k,t),j=t.mode||"svg",E={},T=t.style||{},F={..."svg"===j?K:{}};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]);F.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":case"fallback":break;case"_ref":F.ref=n;break;case"className":F[e]=(F[e]?F[e]+" ":"")+n;break;case"inline":case"hFlip":case"vFlip":w[e]=!0===n||"true"===n||1===n;break;case"flip":"string"==typeof n&&function(e,t){t.split(X).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}(w,n);break;case"color":E.color=n;break;case"rotate":"string"==typeof n?w[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 i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t)%1==0?r(i):0}}return t}(n):"number"==typeof n&&(w[e]=n);break;case"ariaHidden":case"aria-hidden":!0!==n&&"true"!==n&&delete F["aria-hidden"];break;default:void 0===k[e]&&(F[e]=n)}}let N=(s={...c,...e},f={...S,...w},u={left:s.left,top:s.top,width:s.width,height:s.height},d=s.body,[s,f].forEach(e=>{var t,n,r,i;let o,l,a=[],c=e.hFlip,s=e.vFlip,f=e.rotate;switch(c?s?f+=2:(a.push("translate("+(u.width+u.left).toString()+" "+(0-u.top).toString()+")"),a.push("scale(-1 1)"),u.top=u.left=0):s&&(a.push("translate("+(0-u.left).toString()+" "+(u.height+u.top).toString()+")"),a.push("scale(1 -1)"),u.top=u.left=0),f<0&&(f-=4*Math.floor(f/4)),f%=4){case 1:a.unshift("rotate(90 "+(o=u.height/2+u.top).toString()+" "+o.toString()+")");break;case 2:a.unshift("rotate(180 "+(u.width/2+u.left).toString()+" "+(u.height/2+u.top).toString()+")");break;case 3:a.unshift("rotate(-90 "+(o=u.width/2+u.left).toString()+" "+o.toString()+")")}f%2==1&&(u.left!==u.top&&(o=u.left,u.left=u.top,u.top=o),u.width!==u.height&&(o=u.width,u.width=u.height,u.height=o)),a.length&&(t=d,n='<g transform="'+a.join(" ")+'">',r=(l=function(e,t="defs"){let n="",r=e.indexOf("<"+t);for(;r>=0;){let i=e.indexOf(">",r),o=e.indexOf("</"+t);if(-1===i||-1===o)break;let l=e.indexOf(">",o);if(-1===l)break;n+=e.slice(i+1,o).trim(),e=e.slice(0,r).trim()+e.slice(l+1)}return{defs:n,content:e}}(t)).defs,i=n+l.content+"</g>",d=r?"<defs>"+r+"</defs>"+i:i)}),p=f.width,h=f.height,g=u.width,m=u.height,null===p?l=I(a=null===h?"1em":"auto"===h?m:h,g/m):(l="auto"===p?g:p,a=null===h?I(l,m/g):"auto"===h?m:h),b={},(y=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&(b[e]=t.toString())})("width",l),y("height",a),b.viewBox=(x=[u.left,u.top,g,m]).join(" "),{attributes:b,viewBox:x,body:d}),_=N.attributes;if(w.inline&&(E.verticalAlign="-0.125em"),"svg"===j){F.style={...E,...T},Object.assign(F,_);let e=0,n=t.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),F.dangerouslySetInnerHTML={__html:(i=function(e,t=L){let n,r=[];for(;n=C.exec(e);)r.push(n[1]);if(!r.length)return e;let i="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(n=>{let r="function"==typeof t?t(n):t+(M++).toString(),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),e=e.replace(RegExp(i,"g"),"")}(N.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(i):i)},(0,o.createElement)("svg",F)}let{body:z,width:R,height:P}=e,A="mask"===j||"bg"!==j&&-1!==z.indexOf("currentColor"),$=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>"}(z,{..._,width:R+"",height:P+""});return F.style={...E,"--svg":'url("data:image/svg+xml,'+$.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")+'")',width:er(_.width),height:er(_.height),...V,...A?Y:Z,...T},(0,o.createElement)("span",F)})({...c,...p},e,d):e.children?e.children:e.fallback?e.fallback:(0,o.createElement)("span",{})})({...e,_ref:t}))},84844:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(91356),i=globalThis?.document?r.useLayoutEffect:()=>{}}}]); |