1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&o(a)}).observe(document,{childList:!0,subtree:!0});function r(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(n){if(n.ep)return;n.ep=!0;const i=r(n);fetch(n.href,i)}})();var Hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function uo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var At={},ot={},ur={exports:{}},q=String,fo=function(){return{isColorSupported:!1,reset:q,bold:q,dim:q,italic:q,underline:q,inverse:q,hidden:q,strikethrough:q,black:q,red:q,green:q,yellow:q,blue:q,magenta:q,cyan:q,white:q,gray:q,bgBlack:q,bgRed:q,bgGreen:q,bgYellow:q,bgBlue:q,bgMagenta:q,bgCyan:q,bgWhite:q}};ur.exports=fo();ur.exports.createColors=fo;var Li=ur.exports;
1Object.defineProperty(ot,"__esModule",{value:!0});ot.dim=Ri;ot.default=void 0;var we=Ii(Li);function Ii(e){return e&&e.__esModule?e:{default:e}}let yr=new Set;function Nt(e,t,r){typeof process<"u"&&{}.JEST_WORKER_ID||r&&yr.has(r)||(r&&yr.add(r),console.warn(""),t.forEach(o=>console.warn(e,"-",o)))}function Ri(e){return we.default.dim(e)}var zi={info(e,t){Nt(we.default.bold(we.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){Nt(we.default.bold(we.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){Nt(we.default.bold(we.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}};ot.default=zi;Object.defineProperty(At,"__esModule",{value:!0});At.default=void 0;var Di=ji(ot);function ji(e){return e&&e.__esModule?e:{default:e}}function We({version:e,from:t,to:r}){Di.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${r}\`.`,"Update your configuration file to silence this warning."])}var Ui={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},get lightBlue(){return We({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return We({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return We({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return We({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return We({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}};At.default=Ui;let Mt=At;
1var Gi=(Mt.__esModule?Mt:{default:Mt}).default;const wr=uo(Gi),Nc=["red","green","blue","yellow","purple","teal","orange","cyan","lime","pink"],Fi=[{color:"red",primary:600,secondary:100},{color:"green",primary:600,secondary:100},{color:"blue",primary:600,secondary:100},{color:"yellow",primary:500,secondary:100},{color:"purple",primary:600,secondary:100},{color:"teal",primary:600,secondary:100},{color:"orange",primary:600,secondary:100},{color:"cyan",primary:600,secondary:100},{color:"lime",primary:500,secondary:100},{color:"pink",primary:600,secondary:100}],Mc=Fi.reduce((e,{color:t,primary:r,secondary:o})=>({...e,[t]:{primary:wr[t][r],secondary:wr[t][o]}}),{}),qi="modulepreload",Vi=function(e,t){return new URL(e,t).href},vr={},mt=function(t,r,o){if(!r||r.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=Vi(i,o),i in vr)return;vr[i]=!0;const a=i.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!o)for(let c=n.length-1;c>=0;c--){const f=n[c];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${l}`))return;const s=document.createElement("link");if(s.rel=a?"stylesheet":qi,a||(s.as="script",s.crossOrigin=""),s.href=i,document.head.appendChild(s),a)return new Promise((c,f)=>{s.addEventListener("load",c),s.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var Lt=new Intl.Collator(0,{numeric:1}).compare;function xr(e,t,r){return e=e.split("."),t=t.split("."),Lt(e[0],t[0])||Lt(e[1],t[1])||(t[2]=t.slice(2).join("."),r=/[.-]/.test(e[2]=e.slice(2).join(".")),r==/[.-]/.test(t[2])?Lt(e[2],t[2]):r?-1:1)}function Pe(e,t,r){return t.startsWith("http://")||t.startsWith("https://")?r?e:t:e+t}function It(e){if(e.startsWith("http")){const{protocol:t,host:r}=new URL(e);return r.endsWith("hf.space")?{ws_protocol:"wss",host:r,http_protocol:t}:{ws_protocol:t==="https:"?"wss":"ws",http_protocol:t,host:r}}return{ws_protocol:"wss",http_protocol:"https:",host:e}}const ho=/^[^\/]*\/[^\/]*$/,Xi=/.*hf\.space\/{0,1}$/;async function Wi(e,t){const r={};t&&(r.Authorization=`Bearer ${t}`);const o=e.trim();if(ho.test(o))try{const n=await fetch(`https://huggingface.co/api/spaces/${o}/host`,{headers:r});if(n.status!==200)throw new Error("Space metadata could not be loaded.");const i=(await n.json()).host;return{space_id:e,...It(i)}}catch(n){throw new Error("Space metadata could not be loaded."+n.message)}if(Xi.test(o)){const{ws_protocol:n,http_protocol:i,host:a}=It(o);return{space_id:a.replace(".hf.space",""),ws_protocol:n,http_protocol:i,host:a}}return{space_id:!1,...It(o)}}function Zi(e){let t={};return e.forEach(({api_name:r},o)=>{r&&(t[r]=o)}),t}const Ji=/^(?=[^]*\b[dD]iscussions{0,1}\b)(?=[^]*\b[dD]isabled\b)[^]*$/;async function Er(e){try{const r=(await fetch(`https://huggingface.co/api/spaces/${e}/discussions`,{method:"HEAD"})).headers.get("x-error-message");return!(r&&Ji.test(r))}catch{return!1}}const Yi="This application is too busy. Keep trying!",lt="Connection errored out.";let po;function Qi(e,t){return{post_data:r,upload_files:o,client:n,handle_blob:i};async function r(a,l,u){const s={"Content-Type":"application/json"};u&&(s.Authorization=`Bearer ${u}`);try{var c=await e(a,{method:"POST",body:JSON.stringify(l),headers:s})}catch{return[{error:lt},500]}return[await c.json(),c.status]}async function o(a,l,u){const s={};u&&(s.Authorization=`Bearer ${u}`);const c=1e3,f=[];for(let p=0;p<l.length;p+=c){const h=l.slice(p,p+c),_=new FormData;h.forEach(x=>{_.append("files",x)});try{var d=await e(`${a}/upload`,{method:"POST",body:_,headers:s})}catch{return{error:lt}}const w=await d.json();f.push(...w)}return{files:f}}async function n(a,l={normalise_files:!0}){return new Promise(async u=>{const{status_callback:s,hf_token:c,normalise_files:f}=l,d={predict:W,submit:fe,view_api:de,component_server:X},p=f??!0;if((typeof window>"u"||!("WebSocket"in window))&&!global.Websocket){const P=await mt(()=>import("./wrapper-6f348d45-38be7a64.js"),["./wrapper-6f348d45-38be7a64.js","./__vite-browser-external-b25bb000.js"],import.meta.url);po=(await mt(()=>import("./__vite-browser-external-b25bb000.js"),[],import.meta.url)).Blob,global.WebSocket=P.WebSocket}const{ws_protocol:h,http_protocol:_,host:w,space_id:x}=await Wi(a,c),E=Math.random().toString(36).substring(2),g={};let b,k={},N=!1;c&&x&&(N=await $i(x,c));async function A(P){if(b=P,k=Zi(P?.dependencies||[]),b.auth_required)return{config:b,...d};try{O=await de(b)}catch(U){console.error(`Could not get api details: ${U.message}`)}return{config:b,...d}}let O;async function j(P){if(s&&s(P),P.status==="running")try{b=await Pr(e,`${_}//${w}`,c);const U=await A(b);u(U)}catch(U){console.error(U),s&&s({status:"error",message:"Could not load this
1space.",load_status:"error",detail:"NOT_FOUND"})}}try{b=await Pr(e,`${_}//${w}`,c);const P=await A(b);u(P)}catch(P){console.error(P),x?Wt(x,ho.test(x)?"space_name":"subdomain",j):s&&s({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"})}function W(P,U,ie){let C=!1,K=!1,R;if(typeof P=="number")R=b.dependencies[P];else{const H=P.replace(/^\//,"");R=b.dependencies[k[H]]}if(R.types.continuous)throw new Error("Cannot call predict on this function as it may run forever. Use submit instead");return new Promise((H,ue)=>{const ae=fe(P,U,ie);let v;ae.on("data",se=>{K&&(ae.destroy(),H(se)),C=!0,v=se}).on("status",se=>{se.stage==="error"&&ue(se),se.stage==="complete"&&(K=!0,C&&(ae.destroy(),H(v)))})})}function fe(P,U,ie){let C,K;if(typeof P=="number")C=P,K=O.unnamed_endpoints[C];else{const Z=P.replace(/^\//,"");C=k[Z],K=O.named_endpoints[P.trim()]}if(typeof C!="number")throw new Error("There is no endpoint matching that name of fn_index matching that number.");let R;const H=typeof P=="number"?"/predict":P;let ue,ae=!1;const v={};let se="";typeof window<"u"&&(se=new URLSearchParams(window.location.search).toString()),i(`${_}//${Pe(w,b.path,!0)}`,U,K,c).then(Z=>{if(ue={data:Z||[],event_data:ie,fn_index:C},ta(C,b))le({type:"status",endpoint:H,stage:"pending",queue:!1,fn_index:C,time:new Date}),r(`${_}//${Pe(w,b.path,!0)}/run${H.startsWith("/")?H:`/${H}`}${se?"?"+se:""}`,{...ue,session_hash:E},c).then(([Y,m])=>{const G=p?Ar(Y.data,K,b.root,b.root_url):Y.data;m==200?(le({type:"data",endpoint:H,fn_index:C,data:G,time:new Date}),le({type:"status",endpoint:H,fn_index:C,stage:"complete",eta:Y.average_duration,queue:!1,time:new Date})):le({type:"status",stage:"error",endpoint:H,fn_index:C,message:Y.error,queue:!1,time:new Date})}).catch(Y=>{le({type:"status",stage:"error",message:Y.message,endpoint:H,fn_index:C,queue:!1,time:new Date})});else{le({type:"status",stage:"pending",queue:!0,endpoint:H,fn_index:C,time:new Date});let Y=new URL(`${h}://${Pe(w,b.path,!0)} 2 /queue/join${se?"?"+se:""}`);N&&Y.searchParams.set("__sign",N),R=t(Y),R.onclose=m=>{m.wasClean||le({type:"status",stage:"error",broken:!0,message:lt,queue:!0,endpoint:H,fn_index:C,time:new Date})},R.onmessage=function(m){const G=JSON.parse(m.data),{type:F,status:$,data:Xe}=ra(G,g[C]);if(F==="update"&&$&&!ae)le({type:"status",endpoint:H,fn_index:C,time:new Date,...$}),$.stage==="error"&&R.close();else if(F==="hash"){R.send(JSON.stringify({fn_index:C,session_hash:E}));return}else F==="data"?R.send(JSON.stringify({...ue,session_hash:E})):F==="complete"?ae=$:F==="log"?le({type:"log",log:Xe.log,level:Xe.level,endpoint:H,fn_index:C}):F==="generating"&&le({type:"status",time:new Date,...$,stage:$?.stage,queue:!0,endpoint:H,fn_index:C});Xe&&(le({type:"data",time:new Date,data:p?Ar(Xe.data,K,b.root,b.root_url):Xe.data,endpoint:H,fn_index:C}),ae&&(le({type:"status",time:new Date,...ae,stage:$?.stage,queue:!0,endpoint:H,fn_index:C}),R.close()))},xr(b.version||"2.0.0","3.6")<0&&addEventListener("open",()=>R.send(JSON.stringify({hash:E})))}});function le(Z){const m=v[Z.type]||[];m?.forEach(G=>G(Z))}function Fe(Z,Y){const m=v,G=m[Z]||[];return m[Z]=G,G?.push(Y),{on:Fe,off:Ae,cancel:qe,destroy:Ve}}function Ae(Z,Y){const m=v;let G=m[Z]||[];return G=G?.filter(F=>F!==Y),m[Z]=G,{on:Fe,off:Ae,cancel:qe,destroy:Ve}}async function qe(){const Z={stage:"complete",queue:!1,time:new Date};ae=Z,le({...Z,type:"status",endpoint:H,fn_index:C}),R&&R.readyState===0?R.addEventListener("open",()=>{R.close()}):R.close();try{await e(`${_}//${Pe(w,b.path,!0)}/reset`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({fn_index:C,session_hash:E})})}catch{console.warn("The `/reset` endpoint could not be called. Subsequent endpoint results may be unreliable.")}}function Ve(){for(const Z in v)v[Z].forEach(Y=>{Ae(Z,Y)})}return{on:Fe,off:Ae,cancel:qe,destroy:Ve}}async function X(P,U,ie){var C;const K={"Content-Type":"application/json"};c&&(K.Authorization=`Bearer ${c}`);let R,H=b.components.find(v=>v.id===P);(C=H?.props)!=null&&C.root_url?R=H.props.root_url:R=`${_}//${Pe(w,b.path,!0)}/`;
2const ue=await e(`${R}component_server/`,{method:"POST",body:JSON.stringify({data:ie,component_id:P,fn_name:U,session_hash:E}),headers:K});if(!ue.ok)throw new Error("Could not connect to component server: "+ue.statusText);return await ue.json()}async function de(P){if(O)return O;const U={"Content-Type":"application/json"};c&&(U.Authorization=`Bearer ${c}`);let ie;if(xr(P.version||"2.0.0","3.30")<0?ie=await e("https://gradio-space-api-fetcher-v2.hf.space/api",{method:"POST",body:JSON.stringify({serialize:!1,config:JSON.stringify(P)}),headers:U}):ie=await e(`${P.root}/info`,{headers:U}),!ie.ok)throw new Error(lt);let C=await ie.json();return"api"in C&&(C=C.api),C.named_endpoints["/predict"]&&!C.unnamed_endpoints[0]&&(C.unnamed_endpoints[0]=C.named_endpoints["/predict"]),Ki(C,P,k)}})}async function i(a,l,u,s){const c=await Xt(l,void 0,[],!0,u);return Promise.all(c.map(async({path:f,blob:d,data:p,type:h})=>{if(d){const _=(await o(a,[d],s)).files[0];return{path:f,file_url:_,type:h}}return{path:f,base64:p,type:h}})).then(f=>(f.forEach(({path:d,file_url:p,base64:h,type:_})=>{if(h)Rt(l,h,d);else if(_==="Gallery")Rt(l,p,d);else if(p){const w={is_file:!0,name:`${p}`,data:null};Rt(l,w,d)}}),l))}}const{post_data:Lc,upload_files:Sr,client:kr,handle_blob:Ic}=Qi(fetch,(...e)=>new WebSocket(...e));function Ar(e,t,r,o){return e.map((n,i)=>{var a,l,u,s;return((l=(a=t?.returns)==null?void 0:a[i])==null?void 0:l.component)==="File"?Ye(n,r,o):((s=(u=t?.returns)==null?void 0:u[i])==null?void 0:s.component)==="Gallery"?n.map(c=>Array.isArray(c)?[Ye(c[0],r,o),c[1]]:[Ye(c,r,o),null]):typeof n=="object"&&n?.is_file?Ye(n,r,o):n})}function Ye(e,t,r){if(e==null)return null;if(typeof e=="string")return{name:"file_data",data:e};if(Array.isArray(e)){const o=[];for(const n of e)n===null?o.push(null):o.push(Ye(n,t,r));return o}else e.is_file&&(r?e.data="/proxy="+r+"file="+e.name:e.data=t+"/file="+e.name);return e}function Tr(e,t,r,o){switch(e.type){case"string":return"string";case"boolean":return"boolean";case"number":return"number"}if(r==="JSONSerializable"||r==="StringSerializable")return"any";if(r==="ListStringSerializable")return"string[]";if(t==="Image")return o==="parameter"?"Blob | File | Buffer":"string";if(r==="FileSerializable")return e?.type==="array"?o==="parameter"?"(Blob | File | Buffer)[]":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}[]":o==="parameter"?"Blob | File | Buffer":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}";if(r==="GallerySerializable")return o==="parameter"?"[(Blob | File | Buffer), (string | null)][]":"[{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}, (string | null))][]"}function Br(e,t){return t==="GallerySerializable"?"array of [file, label] tuples":t==="ListStringSerializable"?"array of strings":t==="FileSerializable"?"array of files or single file":e.description}function Ki(e,t,r){const o={named_endpoints:{},unnamed_endpoints:{}};for(const n in e){const i=e[n];for(const a in i){const l=t.dependencies[a]?a:r[a.replace("/","")],u=i[a];o[n][a]={},o[n][a].parameters={},o[n][a].returns={},o[n][a].type=t.dependencies[l].types,o[n][a].parameters=u.parameters.map(({label:s,component:c,type:f,serializer:d})=>({label:s,component:c,type:Tr(f,c,d,"parameter"),description:Br(f,d)})),o[n][a].returns=u.returns.map(({label:s,component:c,type:f,serializer:d})=>({label:s,component:c,type:Tr(f,c,d,"return"),description:Br(f,d)}))}}return o}async function $i(e,t){try{return(await(await fetch(`https://huggingface.co/api/spaces/${e}/jwt`,{headers:{Authorization:`Bearer ${t}`}})).json()).token||!1}catch(r){return console.error(r),!1}}function Rt(e,t,r){for(;r.length>1;)e=e[r.shift()];e[r.shift()]=t}async function Xt(e,t=void 0,r=[],o=!1,n=void 0){if(Array.isArray(e)){let i=[];return await Promise.all(e.map(async(a,l)=>{var u;let s=r.slice();s.push(l);const c=await Xt(e[l],o?((u=n?.parameters[l])==null?void 0:u.component)||void 0:t,s,!1,n);i=i.concat(c)})),i}else if(globalThis.Buffer&&e instanceof globalThis.Buffer){const i=t==="Image";return[{path:r,blob:i?!1:new po([e]),data:i?`${e.toString("base64")}`:!1,type:t}]}else if(e instanceof Blob||typeof window<"u"&&e instanceof File){if(t==="Image"){let i;if(typeof window<"u")i=await ea(e);else{const a=await e.arrayBuffer();i=Buffer.from(a).toString("base64")}return[{path:r,data:i,type:t,blob:!1}]}return[{path:r,blob:e,type:t,data:!1}]}else if(typeof e=="object"){let i=[];for(let a in e)if(e.hasOwnProperty(a)){let l=r.slice();
2l.push(a),i=i.concat(await Xt(e[a],void 0,l,!1,n))}return i}return[]}function ea(e){return new Promise((t,r)=>{const o=new FileReader;o.onloadend=()=>t(o.result),o.readAsDataURL(e)})}function ta(e,t){var r,o,n,i;return!(((o=(r=t?.dependencies)==null?void 0:r[e])==null?void 0:o.queue)===null?t.enable_queue:(i=(n=t?.dependencies)==null?void 0:n[e])!=null&&i.queue)||!1}async function Pr(e,t,r){const o={};if(r&&(o.Authorization=`Bearer ${r}`),typeof window<"u"&&window.gradio_config&&location.origin!=="http://localhost:9876"&&!window.gradio_config.dev_mode){const n=window.gradio_config.root,i=window.gradio_config;return i.root=Pe(t,i.root,!1),{...i,path:n}}else if(t){let n=await e(`${t}/config`,{headers:o});if(n.status===200){const i=await n.json();return i.path=i.path??"",i.root=t,i}throw new Error("Could not get config.")}throw new Error("No config or app endpoint found")}async function Wt(e,t,r){let o=t==="subdomain"?`https://huggingface.co/api/spaces/by-subdomain/${e}`:`https://huggingface.co/api/spaces/${e}`,n,i;try{if(n=await fetch(o),i=n.status,i!==200)throw new Error;n=await n.json()}catch{r({status:"error",load_status:"error",message:"Could not get space status",detail:"NOT_FOUND"});return}if(!n||i!==200)return;const{runtime:{stage:a},id:l}=n;switch(a){case"STOPPED":case"SLEEPING":r({status:"sleeping",load_status:"pending",message:"Space is asleep. Waking it up...",detail:a}),setTimeout(()=>{Wt(e,t,r)},1e3);break;case"PAUSED":r({status:"paused",load_status:"error",message:"This space has been paused by the author. If you would like to try this demo, consider duplicating the space.",detail:a,discussions_enabled:await Er(l)});break;case"RUNNING":case"RUNNING_BUILDING":r({status:"running",load_status:"complete",message:"",detail:a});break;case"BUILDING":r({status:"building",load_status:"pending",message:"Space is building...",detail:a}),setTimeout(()=>{Wt(e,t,r)},1e3);break;default:r({status:"space_error",load_status:"error",message:"This space is experiencing an issue.",detail:a,discussions_enabled:await Er(l)});break}}function ra(e,t){switch(e.msg){case"send_data":return{type:"data"};case"send_hash":return{type:"hash"};case"queue_full":return{type:"update",status:{queue:!0,message:Yi,stage:"error",code:e.code,success:e.success}};case"estimation":return{type:"update",status:{queue:!0,stage:t||"pending",code:e.code,size:e.queue_size,position:e.rank,eta:e.rank_eta,success:e.success}};case"progress":return{type:"update",status:{queue:!0,stage:"pending",code:e.code,progress_data:e.progress_data,success:e.success}};case"log":return{type:"log",data:e};case"process_generating":return{type:"generating",status:{queue:!0,message:e.success?null:e.output.error,stage:e.success?"generating":"error",code:e.code,progress_data:e.progress_data,eta:e.average_duration},data:e.success?e.output:null};case"process_completed":return"error"in e.output?{type:"update",status:{queue:!0,message:e.output.error,stage:"error",code:e.code,success:e.success}}:{type:"complete",status:{queue:!0,message:e.success?void 0:e.output.error,stage:e.success?"complete":"error",code:e.code,progress_data:e.progress_data,eta:e.output.average_duration},data:e.success?e.output:null};case"process_starts":return{type:"update",status:{queue:!0,stage:"pending",code:e.code,size:e.rank,position:0,success:e.success}}}return{type:"none",status:{stage:"error",queue:!0}}}function Zt(e,t){if(document.querySelector(`link[href='${e}']`))return Promise.resolve();const o=document.createElement("link");return o.rel="stylesheet",o.href=e,new Promise((n,i)=>{o.addEventListener("load",()=>n()),o.addEventListener("error",()=>{console.error(`Unable to preload CSS for ${e}`),n()}),t.appendChild(o)})}function Q(){}const fr=e=>e;function _o(e,t){for(const r in t)e[r]=t[r];return e}function Rc(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}function go(e){return e()}function Cr(){return Object.create(null)}function _e(e){e.forEach(go)}function Ee(e){return typeof e=="function"}function nt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let ct;function oa(e,t){return ct||(ct=document.createElement("a")),ct.href=t,e===ct.href}function na(e){return Object.keys(e).length===0}function mo(e,...t){if(e==null){for(const o of t)o(void 0);return Q}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function xe(e,t,r){e.$$.on_destroy.push(mo(t,r))}function bo(e,t,r,o){if(e){const n=yo(e,t,r,o);return e[0](n)}}function yo(e,t,r,o){return e[1]&&o?_o(r.ctx.slice(),e[1](o(t))):r.ctx}function wo(e,t,r,o){if(e[2]&&o){const n=e[2](o(r));if(t.dirty===void 0)return n;if(typeof n=="object"){const i=[],a=Math.max(t.dirty.length,n.length);for(let l=0;l<a;l+=1)i[l]=t.dirty[l]|n[l];return i}return t.dirty|n}return t.dirty}function vo(e,t,r,o,n,i){if(n){const a=yo(t,r,o,i);e.p(a,n)}}function xo(e){if(e.ctx.length>32){const t=[],r=e.ctx.length/32;for(let o=0;o<r;o++)t[o]=-1;return t}return-1}function zc(e){const t={};for(const r in e)r[0]!=="$"&&(t[r]=e[r]);return t}function Dc(e,t){const r={};t=new Set(t);for(const o in e)!t.has(o)&&o[0]!=="$"&&(r[o]=e[o]);return r}function jc(e){return e??""}function Uc(e,t,r){return e.set(r),t}function Gc(e){return e&&Ee(e.destroy)?e.destroy:Q}function Fc(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}const Eo=typeof window<"u";let $e=Eo?()=>window.performance.now():()=>Date.now(),dr=Eo?e=>requestAnimationFrame(e):Q;const He=new Set;function So(e){He.forEach(t=>{t.c(e)||(He.delete(t),t.f())}),He.size!==0&&dr(So)}function Tt(e){let t;return He.size===0&&dr(So),{promise:new Promise(r=>{He.add(t={c:e,f:r})}),abort(){He.delete(t)}}}const ia=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;"WeakMap"in ia;function B(e,t){e.appendChild(t)}function ko(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function aa(e){const t=D("style");return t.textContent="/* empty */",sa(ko(e),t),t.sheet}function sa(e,t){return B(e.head||e,t),t.sheet}function T(e,t,r){e.insertBefore(t,r||null)}function S(e){e.parentNode&&e.parentNode.removeChild(e)}function Ao(e,t){for(let r=0;r<e.length;r+=1)e[r]&&e[r].d(t)}function D(e){return document.createElement(e)}function he(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function L(e){return document.createTextNode(e)}function te(){return L(" ")}function Se(){return L("")}function Or(e,t,r,o){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}function qc(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Vc(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function y(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}const la=["width","height"];function ca(e,t){const r=Object.getOwnPropertyDescriptors(e.__proto__);for(const o in t)t[o]==null?e.removeAttribute(o):o==="style"?e.style.cssText=t[o]:o==="__value"?e.value=e[o]=t[o]:r[o]&&r[o].set&&la.indexOf(o)===-1?e[o]=t[o]:y(e,o,t[o])}function ua(e,t){Object.keys(t).forEach(r=>{fa(e,r,t[r])})}function fa(e,t,r){t in e?e[t]=typeof e[t]=="boolean"&&r===""?!0:r:y(e,t,r)}function Xc(e){return/-/.test(e)?ua:ca}function Wc(e){let t;return{p(...r){t=r,t.forEach(o=>e.push(o))},r(){t.forEach(r=>e.splice(e.indexOf(r),1))}}}function Zc(e){return e===""?null:+e}function da(e){return Array.from(e.childNodes)}function re(e,t){t=""+t,e.data!==t&&(e.data=t)}
vendor: 9,408 bytes, lines 2-5
2function Jc(e,t){e.value=t??""}function oe(e,t,r,o){r==null?e.style.removeProperty(t):e.style.setProperty(t,r,o?"important":"")}let ut;function ha(){if(ut===void 0){ut=!1;try{typeof window<"u"&&window.parent&&window.parent.document}catch{ut=!0}}return ut}function Yc(e,t){getComputedStyle(e).position==="static"&&(e.style.position="relative");const o=D("iframe");o.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),o.setAttribute("aria-hidden","true"),o.tabIndex=-1;const n=ha();let i;return n?(o.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=Or(window,"message",a=>{a.source===o.contentWindow&&t()})):(o.src="about:blank",o.onload=()=>{i=Or(o.contentWindow,"resize",t),t()}),B(e,o),()=>{(n||i&&o.contentWindow)&&i(),S(o)}}function J(e,t,r){e.classList.toggle(t,!!r)}function To(e,t,{bubbles:r=!1,cancelable:o=!1}={}){return new CustomEvent(e,{detail:t,bubbles:r,cancelable:o})}class Qc{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(t=!1){this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,r,o=null){this.e||(this.is_svg?this.e=he(r.nodeName):this.e=D(r.nodeType===11?"TEMPLATE":r.nodeName),this.t=r.tagName!=="TEMPLATE"?r:r.content,this.c(t)),this.i(o)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let r=0;r<this.n.length;r+=1)T(this.t,this.n[r],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(S)}}function Kc(e,t){return new e(t)}const bt=new Map;let yt=0;function pa(e){let t=5381,r=e.length;for(;r--;)t=(t<<5)-t^e.charCodeAt(r);return t>>>0}function _a(e,t){const r={stylesheet:aa(t),rules:{}};return bt.set(e,r),r}function wt(e,t,r,o,n,i,a,l=0){const u=16.666/o;let s=`{ 3`;for(let w=0;w<=1;w+=u){const x=t+(r-t)*i(w);s+=w*100+`%{${a(x,1-x)}} 4`}const c=s+`100% {${a(r,1-r)}} 5}`,f=`__svelte_${pa(c)}_${l}`,d=ko(e),{stylesheet:p,rules:h}=bt.get(d)||_a(d,e);h[f]||(h[f]=!0,p.insertRule(`@keyframes ${f} ${c}`,p.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${f} ${o}ms linear ${n}ms 1 both`,yt+=1,f}function vt(e,t){const r=(e.style.animation||"").split(", "),o=r.filter(t?i=>i.indexOf(t)<0:i=>i.indexOf("__svelte")===-1),n=r.length-o.length;n&&(e.style.animation=o.join(", "),yt-=n,yt||ga())}function ga(){dr(()=>{yt||(bt.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&S(t)}),bt.clear())})}let et;function Ke(e){et=e}function ke(){if(!et)throw new Error("Function called outside component initialization");return et}function $c(e){ke().$$.before_update.push(e)}function Jt(e){ke().$$.on_mount.push(e)}function eu(e){ke().$$.after_update.push(e)}function ma(e){ke().$$.on_destroy.push(e)}function tu(){const e=ke();return(t,r,{cancelable:o=!1}={})=>{const n=e.$$.callbacks[t];if(n){const i=To(t,r,{cancelable:o});return n.slice().forEach(a=>{a.call(e,i)}),!i.defaultPrevented}return!0}}function Bo(e,t){return ke().$$.context.set(e,t),t}function ba(e){return ke().$$.context.get(e)}function ru(e,t){const r=e.$$.callbacks[t.type];r&&r.slice().forEach(o=>o.call(this,t))}const Ce=[],me=[];let Ne=[];const Yt=[],Po=Promise.resolve();let Qt=!1;function Co(){Qt||(Qt=!0,Po.then(Oo))}function ya(){return Co(),Po}function Me(e){Ne.push(e)}function Kt(e){Yt.push(e)}const zt=new Set;let Te=0;function Oo(){if(Te!==0)return;const e=et;do{try{for(;Te<Ce.length;){const t=Ce[Te];Te++,Ke(t),wa(t.$$)}}catch(t){throw Ce.length=0,Te=0,t}for(Ke(null),Ce.length=0,Te=0;me.length;)me.pop()();for(let t=0;t<Ne.length;t+=1){const r=Ne[t];zt.has(r)||(zt.add(r),r())}Ne.length=0}while(Ce.length);for(;Yt.length;)Yt.pop()();Qt=!1,zt.clear(),Ke(e)}function wa(e){if(e.fragment!==null){e.update(),_e(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Me)}}function va(e){const t=[],r=[];Ne.forEach(o=>e.indexOf(o)===-1?t.push(o):r.push(o)),r.forEach(o=>o()),Ne=t}let Ze;function hr(){return Ze||(Ze=Promise.resolve(),Ze.then(()=>{Ze=null})),Ze}function ve(e,t,r){e.dispatchEvent(To(`${t?"intro":"outro"}${r}`))}const ht=new Set;let pe;function xt(){pe={r:0,c:[],p:pe}}function Et(){pe.r||_e(pe.c),pe=pe.p}function ee(e,t){e&&e.i&&(ht.delete(e),e.i(t))}function ne(e,t,r,o){if(e&&e.o){if(ht.has(e))return;ht.add(e),pe.c.push(()=>{ht.delete(e),o&&(r&&e.d(1),o())}),e.o(t)}else o&&o()}const pr={duration:0};function ou(e,t,r){const o={direction:"in"};let n=t(e,r,o),i=!1,a,l,u=0;function s(){a&&vt(e,a)}function c(){const{delay:d=0,duration:p=300,easing:h=fr,tick:_=Q,css:w}=n||pr;w&&(a=wt(e,0,1,p,d,h,w,u++)),_(0,1);const x=$e()+d,E=x+p;l&&l.abort(),i=!0,Me(()=>ve(e,!0,"start")),l=Tt(g=>{if(i){if(g>=E)return _(1,0),ve(e,!0,"end"),s(),i=!1;if(g>=x){const b=h((g-x)/p);_(b,1-b)}}return i})}let f=!1;return{start(){f||(f=!0,vt(e),Ee(n)?(n=n(o),hr().then(c)):c())},invalidate(){f=!1},end(){i&&(s(),i=!1)}}}function nu(e,t,r){const o={direction:"out"};let n=t(e,r,o),i=!0,a;const l=pe;l.r+=1;let u;function s(){const{delay:c=0,duration:f=300,easing:d=fr,tick:p=Q,css:h}=n||pr;h&&(a=wt(e,1,0,f,c,d,h));const _=$e()+c,w=_+f;Me(()=>ve(e,!1,"start")),"inert"in e&&(u=e.inert,e.inert=!0),Tt(x=>{if(i){if(x>=w)return p(0,1),ve(e,!1,"end"),--l.r||_e(l.c),!1;if(x>=_){const E=d((x-_)/f);p(1-E,E)}}return i})}return Ee(n)?hr().then(()=>{n=n(o),s()}):s(),{end(c){c&&"inert"in e&&(e.inert=u),c&&n.tick&&n.tick(1,0),i&&(a&&vt(e,a),i=!1)}}}function iu(e,t,r,o){let i=t(e,r,{direction:"both"}),a=o?0:1,l=null,u=null,s=null,c;function f(){s&&vt(e,s)}function d(h,_){const w=h.b-a;return _*=Math.abs(w),{a,b:h.b,d:w,duration:_,start:h.start,end:h.start+_,group:h.group}}function p(h){const{delay:_=0,duration:w=300,easing:x=fr,tick:E=Q,css:g}=i||pr,b={start:$e()+_,b:h};h||(b.group=pe,pe.r+=1),"inert"in e&&(h?c!==void 0&&(e.inert=c):(c=e.inert,e.inert=!0)),l||u?u=b:(g&&(f(),s=wt(e,a,h,w,_,x,g)),h&&E(0,1),l=d(b,w),Me(()=>ve(e,h,"start")),Tt(k=>{if(u&&k>u.start&&(l=d(u,w),u=null,ve(e,l.b,"start"),g&&(f(),s=wt(e,a,l.b,l.duration,0,x,i.css))),l){if(k>=l.end)E(a=l.b,1-a),ve(e,l.b,"end"),u||(l.b?f():--l.group.r||_e(l.group.c)),l=null;else if(k>=l.start){const N=k-l.start;a=l.a+l.d*x(N/l.duration),E(a,1-a)}}return!!(l||u)}))}return{run(h){Ee(i)?hr().then(()=>{i=i({direction:h?"in":"out"}),p(h)}):p(h)},end(){f(),l=u=null}}}function St(e){return e?.length!==void 0?e:Array.from(e)}function au(e,t){e.d(1),t.delete(e.key)}function xa(e,t){ne(e,1,1,()=>{t.delete(e.key)})}function su(e,t){e.f(),xa(e,t)}function lu(e,t,r,o,n,i,a,l,u,s,c,f){let d=e.length,p=i.length,h=d;const _={};for(;h--;)_[e[h].key]=h;const w=[],x=new Map,E=new Map,g=[];for(h=p;h--;){const A=f(n,i,h),O=r(A);let j=a.get(O);j?o&&g.push(()=>j.p(A,t)):(j=s(O,A),j.c()),x.set(O,w[h]=j),O in _&&E.set(O,Math.abs(h-_[O]))}const b=new Set,k=new Set;function N(A){ee(A,1),A.m(l,c),a.set(A.key,A),c=A.first,p--}for(;d&&p;){const A=w[p-1],O=e[d-1],j=A.key,W=O.key;A===O?(c=A.first,d--,p--):x.has(W)?!a.has(j)||b.has(j)?N(A):k.has(W)?d--:E.get(j)>E.get(W)?(k.add(j),N(A)):(b.add(W),d--):(u(O,a),d--)}for(;d--;){const A=e[d];x.has(A.key)||u(A,a)}for(;p;)N(w[p-1]);return _e(g),w}function Ea(e,t){const r={},o={},n={$$scope:1};let i=e.length;for(;i--;){const a=e[i],l=t[i];if(l){for(const u in a)u in l||(o[u]=1);for(const u in l)n[u]||(r[u]=l[u],n[u]=1);e[i]=l}else for(const u in a)n[u]=1}for(const a in o)a in r||(r[a]=void 0);return r}function Sa(e){return typeof e=="object"&&e!==null?e:{}}const ka=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"];[...ka];function $t(e,t,r){const o=e.$$.props[t];o!==void 0&&(e.$$.bound[o]=r,r(e.$$.ctx[o]))}function it(e){e&&e.c()}function De(e,t,r){const{fragment:o,after_update:n}=e.$$;o&&o.m(t,r),Me(()=>{const i=e.$$.on_mount.map(go).filter(Ee);e.$$.on_destroy?e.$$.on_destroy.push(...i):_e(i),e.$$.on_mount=[]}),n.forEach(Me)}function je(e,t){const r=e.$$;r.fragment!==null&&(va(r.after_update),_e(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Aa(e,t){e.$$.dirty[0]===-1&&(Ce.push(e),Co(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Bt(e,t,r,o,n,i,a,l=[-1]){const u=et;Ke(e);const s=e.$$={fragment:null,ctx:[],props:i,update:Q,not_equal:n,bound:Cr(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(u?u.$$.context:[])),callbacks:Cr(),dirty:l,skip_bound:!1,root:t.target||u.$$.root};a&&a(s.root);let c=!1;if(s.ctx=r?r(e,t.props||{},(f,d,...p)=>{const h=p.length?p[0]:d;return s.ctx&&n(s.ctx[f],s.ctx[f]=h)&&(!s.skip_bound&&s.bound[f]&&s.bound[f](h),c&&Aa(e,f)),d}):[],s.update(),c=!0,_e(s.before_update),s.fragment=o?o(s.ctx):!1,t.target){if(t.hydrate){const f=da(t.target);s.fragment&&s.fragment.l(f),f.forEach(S)}else s.fragment&&s.fragment.c();t.intro&&ee(e.$$.fragment),De(e,t.target,t.anchor),Oo()}Ke(u)}class Pt{$$=void 0;$$set=void 0;$destroy(){je(this,1),this.$destroy=Q}$on(t,r){if(!Ee(r))return Q;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(r),()=>{const n=o.indexOf(r);n!==-1&&o.splice(n,1)}}$set(t){this.$$set&&!na(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ta="4";
5typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ta);const Be=[];function Ba(e,t){return{subscribe:be(e,t).subscribe}}function be(e,t=Q){let r;const o=new Set;function n(l){if(nt(e,l)&&(e=l,r)){const u=!Be.length;for(const s of o)s[1](),Be.push(s,e);if(u){for(let s=0;s<Be.length;s+=2)Be[s][0](Be[s+1]);Be.length=0}}}function i(l){n(l(e))}function a(l,u=Q){const s=[l,u];return o.add(s),o.size===1&&(r=t(n,i)||Q),l(e),()=>{o.delete(s),o.size===0&&r&&(r(),r=null)}}return{set:n,update:i,subscribe:a}}function Ue(e,t,r){const o=!Array.isArray(e),n=o?[e]:e;if(!n.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Ba(r,(a,l)=>{let u=!1;const s=[];let c=0,f=Q;const d=()=>{if(c)return;f();const h=t(o?s[0]:s,a,l);i?a(h):f=Ee(h)?h:Q},p=n.map((h,_)=>mo(h,w=>{s[_]=w,c&=~(1<<_),u&&d()},()=>{c|=1<<_}));return u=!0,d(),function(){_e(p),f(),u=!1}})}const Pa=""+new URL("spaces-a79177ad.svg",import.meta.url).href;var Ca=function(t){return Oa(t)&&!Ha(t)};function Oa(e){return!!e&&typeof e=="object"}function Ha(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||La(e)}
vendor: 7,758 bytes, line 5
5var Na=typeof Symbol=="function"&&Symbol.for,Ma=Na?Symbol.for("react.element"):60103;function La(e){return e.$$typeof===Ma}function Ia(e){return Array.isArray(e)?[]:{}}function tt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Le(Ia(e),e,t):e}function Ra(e,t,r){return e.concat(t).map(function(o){return tt(o,r)})}function za(e,t){if(!t.customMerge)return Le;var r=t.customMerge(e);return typeof r=="function"?r:Le}function Da(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Hr(e){return Object.keys(e).concat(Da(e))}function Ho(e,t){try{return t in e}catch{return!1}}function ja(e,t){return Ho(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Ua(e,t,r){var o={};return r.isMergeableObject(e)&&Hr(e).forEach(function(n){o[n]=tt(e[n],r)}),Hr(t).forEach(function(n){ja(e,n)||(Ho(e,n)&&r.isMergeableObject(t[n])?o[n]=za(n,r)(e[n],t[n],r):o[n]=tt(t[n],r))}),o}function Le(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ra,r.isMergeableObject=r.isMergeableObject||Ca,r.cloneUnlessOtherwiseSpecified=tt;var o=Array.isArray(t),n=Array.isArray(e),i=o===n;return i?o?r.arrayMerge(e,t,r):Ua(e,t,r):tt(t,r)}Le.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(o,n){return Le(o,n,r)},{})};var Ga=Le,Fa=Ga;const qa=uo(Fa);var er=function(e,t){return er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},er(e,t)};function Ct(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");er(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var z=function(){return z=Object.assign||function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},z.apply(this,arguments)};function Dt(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,i;o<n;o++)(i||!(o in t))&&(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))}var M;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(M||(M={}));var V;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(V||(V={}));var Ie;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Ie||(Ie={}));function Nr(e){return e.type===V.literal}function Va(e){return e.type===V.argument}function No(e){return e.type===V.number}function Mo(e){return e.type===V.date}function Lo(e){return e.type===V.time}function Io(e){return e.type===V.select}function Ro(e){return e.type===V.plural}function Xa(e){return e.type===V.pound}function zo(e){return e.type===V.tag}function Do(e){return!!(e&&typeof e=="object"&&e.type===Ie.number)}function tr(e){return!!(e&&typeof e=="object"&&e.type===Ie.dateTime)}var jo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wa=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Za(e){var t={};return e.replace(Wa,function(r){var o=r.length;switch(r[0]){case"G":t.era=o===4?"long":o===5?"narrow":"short";break;case"y":t.year=o===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][o-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][o-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=o===4?"short":o===5?"narrow":"short";break;case"e":if(o<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][o-4];break;case"c":if(o<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][o-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][o-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][o-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][o-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][o-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][o-1];break;case"s":t.second=["numeric","2-digit"][o-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=o<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var Ja=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Ya(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ja).filter(function(d){return d.length>0}),r=[],o=0,n=t;o<n.length;o++){var i=n[o],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var l=a[0],u=a.slice(1),s=0,c=u;s<c.length;s++){var f=c[s];if(f.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:u})}return r}function Qa(e){return e.replace(/^(.*?)-/,"")}var Mr=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Uo=/^(@+)?(\+|#+)?[rs]?$/g,Ka=/(\*)(0+)|(#+)(0+)|(0+)/g,Go=/^(0+)$/;function Lr(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Uo,function(r,o,n){return typeof n!="str
5ing"?(t.minimumSignificantDigits=o.length,t.maximumSignificantDigits=o.length):n==="+"?t.minimumSignificantDigits=o.length:o[0]==="#"?t.maximumSignificantDigits=o.length:(t.minimumSignificantDigits=o.length,t.maximumSignificantDigits=o.length+(typeof n=="string"?n.length:0)),""}),t}function Fo(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function $a(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Go.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Ir(e){var t={},r=Fo(e);return r||t}function es(e){for(var t={},r=0,o=e;r<o.length;r++){var n=o[r];switch(n.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=n.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Qa(n.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=z(z(z({},t),{notation:"scientific"}),n.options.reduce(function(u,s){return z(z({},u),Ir(s))},{}));continue;case"engineering":t=z(z(z({},t),{notation:"engineering"}),n.options.reduce(function(u,s){return z(z({},u),Ir(s))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(n.options[0]);continue;case"integer-width":if(n.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");n.options[0].replace(Ka,function(u,s,c,f,d,p){if(s)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Go.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(Mr.test(n.stem)){if(n.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(Mr,function(u,s,c,f,d,p){return c==="*"?t.minimumFractionDigits=s.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&p?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+p.length):(t.minimumFractionDigits=s.length,t.maximumFractionDigits=s.length),""});var i=n.options[0];i==="w"?t=z(z({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=z(z({},t),Lr(i)));continue}if(Uo.test(n.stem)){t=z(z({},t),Lr(n.stem));continue}var a=Fo(n.stem);a&&(t=z(z({},t),a));var l=$a(n.stem);l&&(t=z(z({},t),l))}return t}var ft={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function ts(e,t){for(var r="",o=0;o<e.length;o++){var n=e.charAt(o);if(n==="j"){for(var i=0;o+1<e.length&&e.charAt(o+1)===n;)i++,o++;var a=1+(i&1),l=i<2?1:3+(i>>1),u="a",s=rs(t);for((s=="H"||s=="k")&&(l=0);l-- >0;)r+=u;for(;a-- >0;)r=s+r}else n==="J"?r+="H":r+=n}return r}function rs(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,o;r!=="root"&&(o=e.maximize().region);var n=ft[o||""]||ft[r||""]||ft["".concat(r,"-001")]||ft["001"];return n[0]}var jt,os=new RegExp("^".concat(jo.source,"*")),ns=new RegExp("".concat(jo.source,"*$"));function I(e,t){return{start:e,end:t}}
vendor: 23,439 bytes, lines 5-7
5var is=!!String.prototype.startsWith,as=!!String.fromCodePoint,ss=!!Object.fromEntries,ls=!!String.prototype.codePointAt,cs=!!String.prototype.trimStart,us=!!String.prototype.trimEnd,fs=!!Number.isSafeInteger,ds=fs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},rr=!0;try{var hs=Vo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rr=((jt=hs.exec("a"))===null||jt===void 0?void 0:jt[0])==="a"}catch{rr=!1}var Rr=is?function(t,r,o){return t.startsWith(r,o)}:function(t,r,o){return t.slice(o,o+r.length)===r},or=as?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var o="",n=t.length,i=0,a;n>i;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");o+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return o},zr=ss?Object.fromEntries:function(t){for(var r={},o=0,n=t;o<n.length;o++){var i=n[o],a=i[0],l=i[1];r[a]=l}return r},qo=ls?function(t,r){return t.codePointAt(r)}:function(t,r){var o=t.length;if(!(r<0||r>=o)){var n=t.charCodeAt(r),i;return n<55296||n>56319||r+1===o||(i=t.charCodeAt(r+1))<56320||i>57343?n:(n-55296<<10)+(i-56320)+65536}},ps=cs?function(t){return t.trimStart()}:function(t){return t.replace(os,"")},_s=us?function(t){return t.trimEnd()}:function(t){return t.replace(ns,"")};function Vo(e,t){return new RegExp(e,t)}var nr;if(rr){var Dr=Vo("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");nr=function(t,r){var o;Dr.lastIndex=r;var n=Dr.exec(t);return(o=n[1])!==null&&o!==void 0?o:""}}else nr=function(t,r){for(var o=[];;){var n=qo(t,r);if(n===void 0||Xo(n)||ys(n))break;o.push(n),r+=n>=65536?2:1}return or.apply(void 0,o)};var gs=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,o){for(var n=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,o);if(a.err)return a;n.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),n.push({type:V.pound,location:I(l,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(o)break;return this.error(M.UNMATCHED_CLOSING_TAG,I(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&ir(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;n.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;n.push(a.val)}}}return{val:n,err:null}},e.prototype.parseTag=function(t,r){var o=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:V.literal,value:"<".concat(n,"/>"),location:I(o,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ir(this.char()))return this.error(M.INVALID_TAG,I(l,this.clonePosition()));var u=this.clonePosition(),s=this.parseTagName();return n!==s?this.error(M.UNMATCHED_CLOSING_TAG,I(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:V.tag,value:n,children:a,location:I(o,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,I(l,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,I(o,this.clonePosition()))}else return this.error(M.INVALID_TAG,I(o,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&bs(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var o=this.clonePosition(),n="";;){var i=this.tryParseQuote(r);if(i){n+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){n+=a;continue}var l=this.tryParseLeftAngleBracket();if(l){n+=l;continue}break}var u=I(o,this.clonePosition());return{val:{type:V.literal,value:n,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!ms(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var o=this.char();if(o===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(o);this.bump()}return or.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var o=this.char();return o===60||o===123||o===35&&(r==="plural"||r==="selectordinal")||o===125&&t>0?null:(this.bump(),or(o))},e.prototype.parseArgument=function(t,r){var o=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,I(o,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,I(o,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(M.MALFORMED_ARGUMENT,I(o,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,I(o,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:V.argument,value:n,location:I(o,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,I(o,this.clonePosition())):this.parseArgumentOptions(t,r,n,o);default:return this.error(M.MALFORMED_ARGUMENT,I(o,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),o=nr(this.message,r),n=r+o.length;this.bumpTo(n);var i=this.clonePosition(),a=I(t,i);return{value:o,location:a}},e.prototype.parseArgumentOptions=function(t,r,o,n){var i,a=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,I(a,u));case"number":case"date":case"time":{this.bumpSpace();var s=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=_s(f.val);if(d.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,I(this.clonePosition(),this.clonePosition()));var p=I(c,this.clonePosition());s={style:d,styleLocation:p}}var h=this.tryParseArgumentClose(n);if(h.err)return h;var _=I(n,this.clonePosition());if(s&&Rr(s?.style,"::",0)){var w=ps(s.style.slice(2));if(l==="number"){var f=this.parseNumberSkeletonFromString(w,s.styleLocation);return f.err?f:{val:{type:V.number,value:o,location:_,style:f.val},err:null}}else{if(w.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,_);var x=w;this.locale&&(x=ts(w,this.locale));var d={type:Ie.dateTime,pattern:x,location:s.styleLocation,parsedOptions:this.shouldParseSkeletons?Za(x):{}},E=l==="date"?V.date:V.time;return{val:{type:E,value:o,location:_,style:d},err:null}}}return{val:{type:l==="number"?V.number:l==="date"?V.date:V.time,value:o,location:_,style:(i=s?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var g=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,I(g,z({},g)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),k=0;if(l!=="select"&&b.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,I(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),b=this.parseIdentifierIfPossible(),k=f.val}var N=this.tryParsePluralOrSelectOptions(t,l,r,b);if(N.err)return N;var h=this.tryParseArgumentClose(n);if(h.err)return h;var A=I(n,this.clonePosition());return l==="select"?{val:{type:V.select,value:o,options:zr(N.val),location:A},err:null}:{val:{type:V.plural,value:o,options:zr(N.val),offset:k,pluralType:l==="plural"?"cardinal":"ordinal",location:A},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,I(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,I(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var o=this.char();switch(o){case 39:{this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,I(n,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var o=[];try{o=Ya(t)}catch{return this.error(M.INVALID_NUMBER_SKELETON,r)}return{val:{type:Ie.number,tokens:o,location:r,parsedOptions:this.shouldParseSkeletons?es(o):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,o,n){for(var i,a=!1,l=[],u=new Set,s=n.value,c=n.location;;){if(s.length===0){var f=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=I(f,this.clonePosition()),s=this.message.slice(f.offset,this.offset())}else break}if(u.has(s))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);s==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,I(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,r,o);if(h.err)return h;var _=this.tryParseArgumentClose(p);if(_.err)return _;l.push([s,{value:h.val,location:I(p,this.clonePosition())}]),u.add(s),this.bumpSpace(),i=this.parseIdentifierIfPossible(),s=i.value,c=i.location}return l.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,I(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(M.MISSING_OTHER_CLAUSE,I(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var o=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(o=-1);for(var i=!1,a=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)i=!0,a=a*10+(l-48),this.bump();else break}var u=I(n,this.clonePosition());return i?(a*=o,ds(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=qo(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Rr(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),o=this.message.indexOf(t,r);return o>=0?(this.bumpTo(o),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Xo(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),o=this.message.charCodeAt(r+(t>=65536?2:1));return o??null},e}();function ir(e){return e>=97&&e<=122||e>=65&&e<=90}function ms(e){return ir(e)||e===47}function bs(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Xo(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ys(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ar(e){e.forEach(function(t){if(delete t.location,Io(t)||Ro(t))for(var r in t.options)delete t.options[r].location,ar(t.options[r].value);else No(t)&&Do(t.style)||(Mo(t)||Lo(t))&&tr(t.style)?delete t.style.location:zo(t)&&ar(t.children)})}function ws(e,t){t===void 0&&(t={}),t=z({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new gs(e,t).parse();if(r.err){var o=SyntaxError(M[r.err.kind]);throw o.location=r.err.location,o.originalMessage=r.err.message,o}return t?.captureLocation||ar(r.val),r.val}function Ut(e,t){var r=t&&t.cache?t.cache:As,o=t&&t.serializer?t.serializer:ks,n=t&&t.strategy?t.strategy:xs;return n(e,{cache:r,serializer:o})}function vs(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Wo(e,t,r,o){var n=vs(o)?o:r(o),i=t.get(n);return typeof i>"u"&&(i=e.call(this,o),t.set(n,i)),i}function Zo(e,t,r){var o=Array.prototype.slice.call(arguments,3),n=r(o),i=t.get(n);return typeof i>"u"&&(i=e.apply(this,o),t.set(n,i)),i}function _r(e,t,r,o,n){return r.bind(t,e,o,n)}function xs(e,t){var r=e.length===1?Wo:Zo;return _r(e,this,r,t.cache.create(),t.serializer)}function Es(e,t){return _r(e,this,Zo,t.cache.create(),t.serializer)}function Ss(e,t){return _r(e,this,Wo,t.cache.create(),t.serializer)}var ks=function(){return JSON.stringify(arguments)};function gr(){this.cache=Object.create(null)}gr.prototype.get=function(e){return this.cache[e]};gr.prototype.set=function(e,t){this.cache[e]=t};var As={create:function(){return new gr}},Gt={variadic:Es,monadic:Ss},Re;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Re||(Re={}));var Ot=function(e){Ct(t,e);function t(r,o,n){var i=e.call(this,r)||this;return i.code=o,i.originalMessage=n,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),jr=function(e){Ct(t,e);function t(r,o,n,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(o,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Re.INVALID_VALUE,i)||this}return t}(Ot),Ts=function(e){Ct(t,e);function t(r,o,n){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(o),Re.INVALID_VALUE,n)||this}return t}(Ot),Bs=function(e){Ct(t,e);function t(r,o){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(o,'"'),Re.MISSING_VALUE,o)||this}return t}(Ot),ce;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ce||(ce={}));function Ps(e){return e.length<2?e:e.reduce(function(t,r){var o=t[t.length-1];return!o||o.type!==ce.literal||r.type!==ce.literal?t.push(r):o.value+=r.value,t},[])}function Cs(e){return typeof e=="function"}function pt(e,t,r,o,n,i,a){if(e.length===1&&Nr(e[0]))return[{type:ce.literal,value:e[0].value}];for(var l=[],u=0,s=e;u<s.length;u++){var c=s[u];if(Nr(c)){l.push({type:ce.literal,value:c.value});continue}if(Xa(c)){typeof i=="number"&&l.push({type:ce.literal,value:r.getNumberFormat(t).format(i)});continue}var f=c.value;if(!(n&&f in n))throw new Bs(f,a);var d=n[f];if(Va(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),l.push({type:typeof d=="string"?ce.literal:ce.object,value:d});continue}if(Mo(c)){var p=typeof c.style=="string"?o.date[c.style]:tr(c.style)?c.style.parsedOptions:void 0;l.push({type:ce.literal,value:r.getDateTimeFormat(t,p).format(d)});continue}if(Lo(c)){var p=typeof c.style=="string"?o.time[c.style]:tr(c.style)?c.style.parsedOptions:o.time.medium;l.push({type:ce.literal,value:r.getDateTimeFormat(t,p).format(d)});continue}if(No(c)){var p=typeof c.style=="string"?o.number[c.style]:Do(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(d=d*(p.scale||1)),l.push({type:ce.literal,value:r.getNumberFormat(t,p).format(d)});continue}if(zo(c)){var h=c.children,_=c.value,w=n[_];if(!Cs(w))throw new Ts(_,"function",a);var x=pt(h,t,r,o,n,i),E=w(x.map(function(k){return k.value}));Array.isArray(E)||(E=[E]),l.push.apply(l,E.map(function(k){return{type:typeof k=="string"?ce.literal:ce.object,value:k}}))}if(Io(c)){var g=c.options[d]||c.options.other;if(!g)throw new jr(c.value,d,Object.keys(c.options),a);l.push.apply(l,pt(g.value,t,r,o,n));continue}if(Ro(c)){var g=c.options["=".concat(d)];if(!g){if(!Intl.PluralRules)throw new Ot(`Intl.PluralRules is not available in this environment. 6Try polyfilling it using "@formatjs/intl-pluralrules" 7`,Re.MISSING_INTL_API,a);var b=r.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));g=c.options[b]||c.options.other}if(!g)throw new jr(c.value,d,Object.keys(c.options),a);l.push.apply(l,pt(g.value,t,r,o,n,d-(c.offset||0)));continue}}return Ps(l)}function Os(e,t){return t?z(z(z({},e||{}),t||{}),Object.keys(e).reduce(function(r,o){return r[o]=z(z({},e[o]),t[o]||{}),r},{})):e}function Hs(e,t){return t?Object.keys(e).reduce(function(r,o){return r[o]=Os(e[o],t[o]),r},z({},e)):e}function Ft(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Ns(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Ut(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.NumberFormat).bind.apply(t,Dt([void 0],r,!1)))},{cache:Ft(e.number),strategy:Gt.variadic}),getDateTimeFormat:Ut(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.DateTimeFormat).bind.apply(t,Dt([void 0],r,!1)))},{cache:Ft(e.dateTime),strategy:Gt.variadic}),getPluralRules:Ut(function(){for(var t,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return new((t=Intl.PluralRules).bind.apply(t,Dt([void 0],r,!1)))},{cache:Ft(e.pluralRules),strategy:Gt.variadic})}}var Ms=function(){function e(t,r,o,n){var i=this;if(r===void 0&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(a){var l=i.formatToParts(a);if(l.length===1)return l[0].value;var u=l.reduce(function(s,c){return!s.length||c.type!==ce.literal||typeof s[s.length-1]!="string"?s.push(c.value):s[s.length-1]+=c.value,s},[]);return u.length<=1?u[0]||"":u},this.formatToParts=function(a){return pt(i.ast,i.locales,i.formatters,i.formats,a,void 0,i.message)},this.resolvedOptions=function(){return{locale:i.resolvedLocale.toString()}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{ignoreTag:n?.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Hs(e.formats,o),this.formatters=n&&n.formatters||Ns(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale}
7,enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=ws,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const ge={},Ls=(e,t,r)=>r&&(t in ge||(ge[t]={}),e in ge[t]||(ge[t][e]=r),r),Jo=(e,t)=>{if(t==null)return;if(t in ge&&e in ge[t])return ge[t][e];const r=st(t);for(let o=0;o<r.length;o++){const n=Is(r[o],e);if(n)return Ls(e,t,n)}};let mr;const at=be({});function Yo(e){return e in mr}function Is(e,t){if(!Yo(e))return null;const r=function(o){return mr[o]||null}(e);return function(o,n){if(n==null)return;if(n in o)return o[n];const i=n.split(".");let a=o;for(let l=0;l<i.length;l++)if(typeof a=="object"){if(l>0){const u=i.slice(l,i.length).join(".");if(u in a){a=a[u];break}}a=a[i[l]]}else a=void 0;return a}(r,t)}function Qo(e,...t){delete ge[e],at.update(r=>(r[e]=qa.all([r[e]||{},...t]),r))}Ue([at],([e])=>Object.keys(e));at.subscribe(e=>mr=e);const _t={};function Ko(e){return _t[e]}function kt(e){return e!=null&&st(e).some(t=>{var r;return(r=Ko(t))===null||r===void 0?void 0:r.size})}function Rs(e,t){return Promise.all(t.map(o=>(function(n,i){_t[n].delete(i),_t[n].size===0&&delete _t[n]}(e,o),o().then(n=>n.default||n)))).then(o=>Qo(e,...o))}const Je={};function $o(e){if(!kt(e))return e in Je?Je[e]:Promise.resolve();const t=function(r){return st(r).map(o=>{const n=Ko(o);return[o,n?[...n]:[]]}).filter(([,o])=>o.length>0)}(e);return Je[e]=Promise.all(t.map(([r,o])=>Rs(r,o))).then(()=>{if(kt(e))return $o(e);delete Je[e]}),Je[e]}function zs({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${st(e).join('", "')}".${kt(ye())?` 8 9Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Qe={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function ze(){return Qe}function Ds(e){const{formats:t,...r}=e,o=e.initialLocale||e.fallbackLocale;return r.warnOnMissingMessages&&(delete r.warnOnMissingMessages,r.handleMissingMessage==null?r.handleMissingMessage=zs:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(Qe,r,{initialLocale:o}),t&&("number"in t&&Object.assign(Qe.formats.number,t.number),"date"in t&&Object.assign(Qe.formats.date,t.date),"time"in t&&Object.assign(Qe.formats.time,t.time)),Ge.set(o)}const qt=be(!1);let sr;const gt=be(null);function Ur(e){return e.split("-").map((t,r,o)=>o.slice(0,r+1).join("-")).reverse()}function st(e,t=ze().fallbackLocale){const r=Ur(e);return t?[...new Set([...r,...Ur(t)])]:r}function ye(){return sr??void 0}gt.subscribe(e=>{sr=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ge={...gt,set:e=>{if(e&&function(t){if(t==null)return;const r=st(t);for(let o=0;o<r.length;o++){const n=r[o];if(Yo(n))return n}}(e)&&kt(e)){const{loadingDelay:t}=ze();let r;return typeof window<"u"&&ye()!=null&&t?r=window.setTimeout(()=>qt.set(!0),t):qt.set(!0),$o(e).then(()=>{gt.set(e)}).finally(()=>{clearTimeout(r),qt.set(!1)})}return gt.set(e)}},js=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Ht=e=>{const t=Object.create(null);return r=>{const o=JSON.stringify(r);return o in t?t[o]:t[o]=e(r)}},rt=(e,t)=>{const{formats:r}=ze();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Us=Ht(({locale:e,format:t,...r})=>
9{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(r=rt("number",t)),new Intl.NumberFormat(e,r)}),Gs=Ht(({locale:e,format:t,...r})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?r=rt("date",t):Object.keys(r).length===0&&(r=rt("date","short")),new Intl.DateTimeFormat(e,r)}),Fs=Ht(({locale:e,format:t,...r})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?r=rt("time",t):Object.keys(r).length===0&&(r=rt("time","short")),new Intl.DateTimeFormat(e,r)}),qs=({locale:e=ye(),...t}={})=>Us({locale:e,...t}),Vs=({locale:e=ye(),...t}={})=>Gs({locale:e,...t}),Xs=({locale:e=ye(),...t}={})=>Fs({locale:e,...t}),Ws=Ht((e,t=ye())=>new Ms(e,t,ze().formats,{ignoreTag:ze().ignoreTag})),Zs=(e,t={})=>{var r,o,n,i;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:l,locale:u=ye(),default:s}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Jo(e,u);if(c){if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=(i=(n=(o=(r=ze()).handleMissingMessage)===null||o===void 0?void 0:o.call(r,{locale:u,id:e,defaultValue:s}))!==null&&n!==void 0?n:s)!==null&&i!==void 0?i:e;if(!l)return c;let f=c;try{f=Ws(c,u).format(l)}catch(d){d instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,d.message)}return f},Js=(e,t)=>Xs(t).format(e),Ys=(e,t)=>Vs(t).format(e),Qs=(e,t)=>qs(t).format(e),Ks=(e,t=ye())=>Jo(e,t),br=Ue([Ge,at],()=>Zs);Ue([Ge],()=>Js);Ue([Ge],()=>Ys);Ue([Ge],()=>Qs);Ue([Ge,at],()=>Ks);function Gr(e){let t,r,o,n,i,a,l,u=e[8]("common.built_with")+"",s,c,f,d,p,h,_=e[8]("common.hosted_on")+"",w,x,E,g,b,k,N;return{c(){t=D("div"),r=D("span"),o=D("a"),n=L(e[4]),a=te(),l=D("span"),s=L(u),c=te(),f=D("a"),f.textContent="Gradio",d=L("."),p=te(),h=D("span"),w=L(_),x=te(),E=D("a"),g=D("span"),b=D("img"),N=L(" Spaces"),y(o,"href",i="https://huggingface.co/spaces/"+e[4]),y(o,"class","title svelte-1kyws56"),y(r,"class","svelte-1kyws56"),y(f,"class","gradio svelte-1kyws56"),y(f,"href","https://gradio.app"),y(l,"class","svelte-1kyws56"),oa(b.src,k=Pa)||y(b,"src",k),y(b,"alt","Hugging Face Space"),y(b,"class","svelte-1kyws56"),y(g,"class","space-logo svelte-1kyws56"),y(E,"class","hf svelte-1kyws56"),y(E,"href","https://huggingface.co/spaces"),y(h,"class","svelte-1kyws56"),y(t,"class","info svelte-1kyws56")},m(A,O){T(A,t,O),B(t,r),B(r,o),B(o,n),B(t,a),B(t,l),B(l,s),B(l,c),B(l,f),B(l,d),B(t,p),B(t,h),B(h,w),B(h,x),B(h,E),B(E,g),B(g,b),B(E,N)},p(A,O){O&16&&re(n,A[4]),O&16&&i!==(i="https://huggingface.co/spaces/"+A[4])&&y(o,"href",i),O&256&&u!==(u=A[8]("common.built_with")+"")&&re(s,u),O&256&&_!==(_=A[8]("common.hosted_on")+"")&&re(w,_)},d(A){A&&S(t)}}}function $s(e){let t,r,o,n,i;const a=e[10].default,l=bo(a,e,e[9],null);let u=e[5]&&e[4]&&e[6]&&Gr(e);return{c(){t=D("div"),r=D("div"),l&&l.c(),o=te(),u&&u.c(),y(r,"class","main svelte-1kyws56"),y(t,"class",n="gradio-container gradio-container-"+e[1]+" svelte-1kyws56"),y(t,"data-iframe-height",""),J(t,"app",!e[5]&&!e[3]),J(t,"embed-container",e[5]),J(t,"with-info",e[6]),oe(t,"min-height",e[7]?"initial":e[2]),oe(t,"flex-grow",e[5]?"auto":"1")},m(s,c){T(s,t,c),B(t,r),l&&l.m(r,null),B(t,o),u&&u.m(t,null),e[11](t),i=!0},p(s,[c]){l&&l.p&&(!i||c&512)&&vo(l,a,s,s[9],i?wo(a,s[9],c,null):xo(s[9]),null),s[5]&&s[4]&&s[6]?u?u.p(s,c):(u=Gr(s),u.c(),u.m(t,null)):u&&(u.d(1),u=null),(!i||c&2&&n!==(n="gradio-container gradio-container-"+s[1]+" svelte-1kyws56"))&&y(t,"class",n),(!i||c&42)&&J(t,"app",!s[5]&&!s[3]),(!i||c&34)&&J(t,"embed-container",s[5]),(!i||c&66)&&J(t,"with-info",s[6]),c&132&&oe(t,"min-height",s[7]?"initial":s[2]),c&32&&oe(t,"flex-grow",s[5]?"auto":"1")},i(s){i||(ee(l,s),i=!0)},o(s){ne(l,s),i=!1},d(s){s&&S(t),l&&l.d(s),u&&u.d(),e[11](null)}}}function el(e,t,r){let o;xe(e,br,_=>r(8,o=_));let{$$slots:n={},$$scope:i}=t,{wrapper:a}=t,{version:l}=t,{initial_height:u}=t,{is_embed:s}=t,{space:c}=t,{display:f}=t,{info:d}=t,{loaded:p}=t;function h(_){me[_?"unshift":"push"](()=>{a=_,r(0,a)})}return e.$$set=_=>{"wrapper"in _&&r(0,a=_.wrapper),"version"in _&&r(1,l=_.version),"initial_height"in _&&r(2,u=_.initial_height),"is_embed"in _&&r(3,s=_.is_embed),"space"in _&&r(4,c=_.space),"display"in _&&r(5,f=_.dis
vendor: 13,686 bytes, line 9
9play),"info"in _&&r(6,d=_.info),"loaded"in _&&r(7,p=_.loaded),"$$scope"in _&&r(9,i=_.$$scope)},[a,l,u,s,c,f,d,p,o,i,n,h]}class tl extends Pt{constructor(t){super(),Bt(this,t,el,$s,nt,{wrapper:0,version:1,initial_height:2,is_embed:3,space:4,display:5,info:6,loaded:7})}}function Oe(e){let t=["","k","M","G","T","P","E","Z"],r=0;for(;e>1e3&&r<t.length-1;)e/=1e3,r++;let o=t[r];return(Number.isInteger(e)?e:e.toFixed(1))+o}function cu(){const e=be({}),t=[],r=[],o=new Map,n=new Map,i=new Map,a=[];function l({fn_index:s,status:c,queue:f=!0,size:d,position:p=null,eta:h=null,message:_=null,progress:w}){const x=r[s],E=t[s],g=a[s],b=x.map(k=>{let N;const A=o.get(k)||0;if(g==="pending"&&c!=="pending"){let O=A-1;o.set(k,O<0?0:O),N=O>0?"pending":c}else g==="pending"&&c==="pending"?N="pending":g!=="pending"&&c==="pending"?(N="pending",o.set(k,A+1)):N=c;return{id:k,queue_position:p,queue_size:d,eta:h,status:N,message:_,progress:w}});E.forEach(k=>{const N=n.get(k)||0;if(g==="pending"&&c!=="pending"){let A=N-1;n.set(k,A<0?0:A),i.set(k,c)}else g!=="pending"&&c==="pending"?(n.set(k,N+1),i.set(k,c)):i.delete(k)}),e.update(k=>(b.forEach(({id:N,queue_position:A,queue_size:O,eta:j,status:W,message:fe,progress:X})=>{k[N]={queue:f,queue_size:O,queue_position:A,eta:j,message:fe,progress:X,status:W,fn_index:s}}),k)),a[s]=c}function u(s,c,f){t[s]=c,r[s]=f}return{update:l,register:u,subscribe:e.subscribe,get_status_for_fn(s){return a[s]},get_inputs_to_update(){return i}}}const rl=be({autoscroll:!1});function Fr(e){return Object.prototype.toString.call(e)==="[object Date]"}function lr(e,t,r,o){if(typeof r=="number"||Fr(r)){const n=o-r,i=(r-t)/(e.dt||1/60),a=e.opts.stiffness*n,l=e.opts.damping*i,u=(a-l)*e.inv_mass,s=(i+u)*e.dt;return Math.abs(s)<e.opts.precision&&Math.abs(n)<e.opts.precision?o:(e.settled=!1,Fr(r)?new Date(r.getTime()+s):r+s)}else{if(Array.isArray(r))return r.map((n,i)=>lr(e,t[i],r[i],o[i]));if(typeof r=="object"){const n={};for(const i in r)n[i]=lr(e,t[i],r[i],o[i]);return n}else throw new Error(`Cannot spring ${typeof r} values`)}}function qr(e,t={}){const r=be(e),{stiffness:o=.15,damping:n=.8,precision:i=.01}=t;let a,l,u,s=e,c=e,f=1,d=0,p=!1;function h(w,x={}){c=w;const E=u={};return e==null||x.hard||_.stiffness>=1&&_.damping>=1?(p=!0,a=$e(),s=w,r.set(e=c),Promise.resolve()):(x.soft&&(d=1/((x.soft===!0?.5:+x.soft)*60),f=0),l||(a=$e(),p=!1,l=Tt(g=>{if(p)return p=!1,l=null,!1;f=Math.min(f+d,1);const b={inv_mass:f,opts:_,settled:!0,dt:(g-a)*60/1e3},k=lr(b,s,e,c);return a=g,s=e,r.set(e=k),b.settled&&(l=null),!b.settled})),new Promise(g=>{l.promise.then(()=>{E===u&&g()})}))}const _={set:h,update:(w,x)=>h(w(c,e),x),subscribe:r.subscribe,stiffness:o,damping:n,precision:i};return _}function ol(e){let t,r,o,n,i,a,l,u,s,c,f,d;return{c(){t=D("div"),r=he("svg"),o=he("g"),n=he("path"),i=he("path"),a=he("path"),l=he("path"),u=he("g"),s=he("path"),c=he("path"),f=he("path"),d=he("path"),y(n,"d","M255.926 0.754768L509.702 139.936V221.027L255.926 81.8465V0.754768Z"),y(n,"fill","#FF7C00"),y(n,"fill-opacity","0.4"),y(n,"class","svelte-zyxd38"),y(i,"d","M509.69 139.936L254.981 279.641V361.255L509.69 221.55V139.936Z"),y(i,"fill","#FF7C00"),y(i,"class","svelte-zyxd38"),y(a,"d","M0.250138 139.937L254.981 279.641V361.255L0.250138 221.55V139.937Z"),y(a,"fill","#FF7C00"),y(a,"fill-opacity","0.4"),y(a,"class","svelte-zyxd38"),y(l,"d","M255.923 0.232622L0.236328 139.936V221.55L255.923 81.8469V0.232622Z"),y(l,"fill","#FF7C00"),y(l,"class","svelte-zyxd38"),oe(o,"transform","translate("+e[1][0]+"px, "+e[1][1]+"px)"),y(s,"d","M255.926 141.5L509.702 280.681V361.773L255.926 222.592V141.5Z"),y(s,"fill","#FF7C00"),y(s,"fill-opacity","0.4"),y(s,"class","svelte-zyxd38"),y(c,"d","M509.69 280.679L254.981 420.384V501.998L509.69 362.293V280.679Z"),y(c,"fill","#FF7C00"),y(c,"class","svelte-zyxd38"),y(f,"d","M0.250138 280.681L254.981 420.386V502L0.250138 362.295V280.681Z"),y(f,"fill","#FF7C00"),y(f,"fill-opacity","0.4"),y(f,"class","svelte-zyxd38"),y(d,"d","M255.923 140.977L0.236328 280.68V362.294L255.923 222.591V140.977Z"),y(d,"fill","#FF7C00"),y(d,"class","svelte-zyxd38"),oe(u,"transform","translate("+e[2][0]+"px, "+e[2][1]+"px)"),y(r,"viewBox","-1200 -1200 3000 3000"),y(r,"fill","none"),y(r,"xmlns","http://www.w3.org/2000/svg"),y(r,"class","svelte-zyxd38"),y(t,"class","svelte-zyxd38"),J(t,"margin",e[0])},m(p,h){T(p,t,h),B(t,r),B(r,o),B(o,n),B(o,i),B(o,a),B(o,l),B(r,u),B(u,s),B(u,c),B(u,f),B(u,d)},p(p,[h]){h&2&&oe(o,"transform","translate("+p[1][0]+"px, "+p[1][1]+"px)"),h&4&&oe(u,"transform","translate("+p[2][0]+"px, "+p[2][1]+"px)"),h&1&&J(t,"margin",p[0])},i:Q,o:Q,d(p){p&&S(t)}}}function nl(e,t,r){let o,n,{margin:i=!0}=t;const a=qr([0,0]);xe(e,a,d=>r(1,o=d));const l=qr([0,0]);xe(e,l,d=>r(2,n=d));let u;async function s(){await Promise.all([a.set([125,140]),l.set([-125,-140])]),await Promise.all([a.set([-125,140]),l.set([125,-140])]),await Promise.all([a.set([-125,0]),l.set([125,-0])]),await Promise.all([a.set([125,0]),l.set([-125,0])])}async function c(){await s(),u||c()}async function f(){await Promise.all([a.set([125,0]),l.set([-125,0])]),c()}return Jt(()=>(f(),()=>u=!0)),e.$$set=d=>{"margin"in d&&r(0,i=d.margin)},[i,o,n,a,l]}class il extends Pt{constructor(t){super(),Bt(this,t,nl,ol,nt,{margin:0})}}const al=e=>({}),Vr=e=>({});function Xr(e,t,r){const o=e.slice();return o[38]=t[r],o[40]=r,o}function Wr(e,t,r){const o=e.slice();return o[38]=t[r],o}function sl(e){let t,r=e[20]("common.error")+"",o,n,i;const a=e[29].error,l=bo(a,e,e[28],Vr);return{c(){t=D("span"),o=L(r),n=te(),l&&l.c(),y(t,"class","error svelte-119qaqt")},m(u,s){T(u,t,s),B(t,o),T(u,n,s),l&&l.m(u,s),i=!0},p(u,s){(!i||s[0]&1048576)&&r!==(r=u[20]("common.error")+"")&&re(o,r),l&&l.p&&(!i||s[0]&268435456)&&vo(l,a,u,u[28],i?wo(a,u[28],s,al):xo(u[28]),Vr)},i(u){i||(ee(l,u),i=!0)},o(u){ne(l,u),i=!1},d(u){u&&(S(t),S(n)),l&&l.d(u)}}}function ll(e){let t,r,o,n,i,a,l,u,s,c=e[7]==="default"&&e[17]&&e[5]==="full"&&Zr(e);function f(g,b){if(g[6])return fl;if(g[1]!==null&&g[2]!==void 0&&g[1]>=0)return ul;if(g[1]===0)return cl}let d=f(e),p=d&&d(e),h=e[4]&&Qr(e);const _=[_l,pl],w=[];function x(g,b){return g[14]!=null?0:g[5]==="full"?1:-1}~(i=x(e))&&(a=w[i]=_[i](e));let E=!e[4]&&no(e);return{c(){c&&c.c(),t=te(),r=D("div"),p&&p.c(),o=te(),h&&h.c(),n=te(),a&&a.c(),l=te(),E&&E.c(),u=Se(),y(r,"class","progress-text svelte-119qaqt"),J(r,"meta-text-center",e[7]==="center"),J(r,"meta-text",e[7]==="default")},m(g,b){c&&c.m(g,b),T(g,t,b),T(g,r,b),p&&p.m(r,null),B(r,o),h&&h.m(r,null),T(g,n,b),~i&&w[i].m(g,b),T(g,l,b),E&&E.m(g,b),T(g,u,b),s=!0},p(g,b){g[7]==="default"&&g[17]&&g[5]==="full"?c?c.p(g,b):(c=Zr(g),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),d===(d=f(g))&&p?p.p(g,b):(p&&p.d(1),p=d&&d(g),p&&(p.c(),p.m(r,o))),g[4]?h?h.p(g,b):(h=Qr(g),h.c(),h.m(r,null)):h&&(h.d(1),h=null),(!s||b[0]&128)&&J(r,"meta-text-center",g[7]==="center"),(!s||b[0]&128)&&J(r,"meta-text",g[7]==="default");let k=i;i=x(g),i===k?~i&&w[i].p(g,b):(a&&(xt(),ne(w[k],1,1,()=>{w[k]=null}),Et()),~i?(a=w[i],a?a.p(g,b):(a=w[i]=_[i](g),a.c()),ee(a,1),a.m(l.parentNode,l)):a=null),g[4]?E&&(E.d(1),E=null):E?E.p(g,b):(E=no(g),E.c(),E.m(u.parentNode,u))},i(g){s||(ee(a),s=!0)},o(g){ne(a),s=!1},d(g){g&&(S(t),S(r),S(n),S(l),S(u)),c&&c.d(g),p&&p.d(),h&&h.d(),~i&&w[i].d(g),E&&E.d(g)}}}function Zr(e){let t,r=`translateX(${(e[16]||0)*100-100}%)`;return{c(){t=D("div"),y(t,"class","eta-bar svelte-119qaqt"),oe(t,"transform",r)},m(o,n){T(o,t,n)},p(o,n){n[0]&65536&&r!==(r=`translateX(${(o[16]||0)*100-100}%)`)&&oe(t,"transform",r)},d(o){o&&S(t)}}}function cl(e){let t;return{c(){t=L("processing |")},m(r,o){T(r,t,o)},p:Q,d(r){r&&S(t)}}}function ul(e){let t,r=e[1]+1+"",o,n,i,a;return{c(){t=L("queue: "),o=L(r),n=L("/"),i=L(e[2]),a=L(" |")},m(l,u){T(l,t,u),T(l,o,u),T(l,n,u),T(l,i,u),T(l,a,u)},p(l,u){u[0]&2&&r!==(r=l[1]+1+"")&&re(o,r),u[0]&4&&re(i,l[2])},d(l){l&&(S(t),S(o),S(n),S(i),S(a))}}}function fl(e){let t,r=St(e[6]),o=[];for(let n=0;n<r.length;n+=1)o[n]=Yr(Wr(e,r,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=Se()},m(n,i){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(n,i);T(n,t,i)},p(n,i){if(i[0]&64){r=St(n[6]);let a;for(a=0;a<r.length;a+=1){const l=Wr(n,r,a);o[a]?o[a].p(l,i):(o[a]=Yr(l),o[a].c(),o[a].m(t.parentNode,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=r.length}},d(n){n&&S(t),Ao(o,n)}}}function Jr(e){let t,r=e[38].unit+"",o,n,i=" ",a;function l(c,f){return c[38].length!=null?hl:dl}let u=l(e),s=u(e);return{c(){s.c(),t=te(),o=L(r),n=L(" | "),a=L(i)},m(c,f){s.m(c,f),T(c,t,f),T(c,o,f),T(c,n,f),T(c,a,f)},p(c,f){u===(u=l(c))&&s?s.p(c,f):(s.d(1),s=u(c),s&&(s.c(),s.m(t.parentNode,t))),f[0]&64&&r!==(r=c[38].unit+"")&&re(o,r)},d(c){c&&(S(t),S(o),S(n),S(a)),s.d(c)}}}function dl(e){let t=Oe(e[38].index||0)+"",r;return{c(){r=L(t)},m(o,n){T(o,r,n)},p(o,n){n[0]&64&&t!==(t=Oe(o[38].index||0)+"")&&re(r,t)},d(o){o&&S(r)}}}function hl(e){let t=Oe(e[38].index||0)+"",r,o,n=Oe(e[38].length)+"",i;return{c(){r=L(t),o=L("/"),i=L(n)},m(a,l){T(a,r,l),T(a,o,l),T(a,i,l)},p(a,l){l[0]&64&&t!==(t=Oe(a[38].index||0)+"")&&re(r,t),l[0]&64&&n!==(n=Oe(a[38].length)+"")&&re(i,n)},d(a){a&&(S(r),S(o),S(i))}}}function Yr(e){let t,r=e[38].index!=null&&Jr(e);return{c(){r&&r.c(),t=Se()},m(o,n){r&&r.m(o,n),T(o,t,n)},p(o,n){o[38].index!=null?r?r.p(o,n):(r=Jr(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(o){o&&S(t),r&&r.d(o)}}}function Qr(e){let t,r=e[0]?`/${e[18]}`:"",o,n;return{c(){t=L(e[19]),o=L(r),n=L("s")},m(i,a){T(i,t,a),T(i,o,a),T(i,n,a)},p(i,a){a[0]&524288&&re(t,i[19]),a[0]&262145&&r!==(r=i[0]?`/${i[18]}`:"")&&re(o,r)},d(i){i&&(S(t),S(o),S(n))}}}function pl(e){let t,r;return t=new il({props:{margin:e[7]==="default"}}),{c(){it(t.$$.fragment)},m(o,n){De(t,o,n),r=!0},p(o,n){const i={};n[0]&128&&(i.margin=o[7]==="default"),t.$set(i)},i(o){r||(ee(t.$$.fragment,o),r=!0)},o(o){ne(t.$$.fragment,o),r=!1},d(o){je(t,o)}}}function _l(e){let t,r,o,n,i,a=`${e[14]*100}%`,l=e[6]!=null&&Kr(e);return{c(){t=D("div"),r=D("div"),l&&l.c(),o=te(),n=D("div"),i=D("div"),y(r,"class","progress-level-inner svelte-119qaqt"),y(i,"class","progress-bar svelte-119qaqt"),oe(i,"width",a),y(n,"class","progress-bar-wrap svelte-119qaqt"),y(t,"class","progress-level svelte-119qaqt")},m(u,s){T(u,t,s),B(t,r),l&&l.m(r,null),B(t,o),B(t,n),B(n,i),e[30](i)},p(u,s){u[6]!=null?l?l.p(u,s):(l=Kr(u),l.c(),l.m(r,null)):l&&(l.d(1),l=null),s[0]&16384&&a!==(a=`${u[14]*100}%`)&&oe(i,"width",a)},i:Q,o:Q,d(u){u&&S(t),l&&l.d(),e[30](null)}}}function Kr(e){let t,r=St(e[6]),o=[];for(let n=0;n<r.length;n+=1)o[n]=oo(Xr(e,r,n));return{c(){for(let n=0;n<o.length;n+=1)o[n].c();t=Se()},m(n,i){for(let a=0;a<o.length;a+=1)o[a]&&o[a].m(n,i);T(n,t,i)},p(n,i){if(i[0]&8256){r=St(n[6]);let a;for(a=0;a<r.length;a+=1){const l=Xr(n,r,a);o[a]?o[a].p(l,i):(o[a]=oo(l),o[a].c(),o[a].m(t.parentNode,t))}for(;a<o.length;a+=1)o[a].d(1);o.length=r.length}},d(n){n&&S(t),Ao(o,n)}}}function $r(e){let t,r,o,n,i=e[40]!==0&&gl(),a=e[38].desc!=null&&eo(e),l=e[38].desc!=null&&e[13]&&e[13][e[40]]!=null&&to(),u=e[13]!=null&&ro(e);return{c(){i&&i.c(),t=te(),a&&a.c(),r=te(),l&&l.c(),o=te(),u&&u.c(),n=Se()},m(s,c){i&&i.m(s,c),T(s,t,c),a&&a.m(s,c),T(s,r,c),l&&l.m(s,c),T(s,o,c),u&&u.m(s,c),T(s,n,c)},p(s,c){s[38].desc!=null?a?a.p(s,c):(a=eo(s),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null),s[38].desc!=null&&s[13]&&s[13][s[40]]!=null?l||(l=to(),l.c(),l.m(o.parentNode,o)):l&&(l.d(1),l=null),s[13]!=null?u?u.p(s,c):(u=ro(s),u.c(),u.m(n.parentNode,n)):u&&(u.d(1),u=null)},d(s){s&&(S(t),S(r),S(o),S(n)),i&&i.d(s),a&&a.d(s),l&&l.d(s),u&&u.d(s)}}}function gl(e){let t;return{c(){t=L("Â /")},m(r,o){T(r,t,o)},d(r){r&&S(t)}}}function eo(e){let t=e[38].desc+"",r;return{c(){r=L(t)},m(o,n){T(o,r,n)},p(o,n){n[0]&64&&t!==(t=o[38].desc+"")&&re(r,t)},d(o){o&&S(r)}}}function to(e){let t;return{c(){t=L("-")},m(r,o){T(r,t,o)},d(r){r&&S(t)}}}function ro(e){let t=(100*(e[13][e[40]]||0)).toFixed(1)+"",r,o;return{c(){r=L(t),o=L("%")},m(n,i){T(n,r,i),T(n,o,i)},p(n,i){i[0]&8192&&t!==(t=(100*(n[13][n[40]]||0)).toFixed(1)+"")&&re(r,t)},d(n){n&&(S(r),S(o))}}}function oo(e){let t,r=(e[38].desc!=null||e[13]&&e[13][e[40]]!=null)&&$r(e);return{c(){r&&r.c(),t=Se()},m(o,n){r&&r.m(o,n),T(o,t,n)},p(o,n){o[38].desc!=null||o[13]&&o[13][o[40]]!=null?r?r.p(o,n):(r=$r(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(o){o&&S(t),r&&r.d(o)}}}function no(e){let t,r;return{c(){t=D("p"),r=L(e[8]),y(t,"class","loading svelte-119qaqt")},m(o,n){T(o,t,n),B(t,r)},p(o,n){n[0]&256&&re(r,o[8])},d(o){o&&S(t)}}}function ml(e){let t,r,o,n,i;const a=[ll,sl],l=[];function u(s,c){return s[3]==="pending"?0:s[3]==="error"?1:-1}return~(r=u(e))&&(o=l[r]=a[r](e)),{c(){t=D("div"),o&&o.c(),y(t,"class",n="wrap "+e[7]+" "+e[5]+" svelte-119qaqt"),J(t,"hide",!e[3]||e[3]==="complete"||e[5]==="hidden"),J(t,"translucent",e[7]==="center"&&(e[3]==="pending"||e[3]==="error")||e[10]||e[5]==="minimal"),J(t,"generating",e[3]==="generating"),J(t,"border",e[11]),oe(t,"position",e[9]?"absolute":"static"),oe(t,"padding",e[9]?"0":"var(--size-8) 0")},m(s,c){T(s,t,c),~r&&l[r].m(t,null),e[31](t),i=!0},p(s,c){let f=r;r=u(s),r===f?~r&&l[r].p(s,c):(o&&(xt(),ne(l[f],1,1,()=>{l[f]=null}),Et()),~r?(o=l[r],o?o.p(s,c):(o=l[r]=a[r](s),o.c()),ee(o,1),o.m(t,null)):o=null),(!i||c[0]&160&&n!==(n="wrap "+s[7]+" "+s[5]+" svelte-119qaqt"))&&y(t,"class",n),(!i||c[0]&168)&&J(t,"hide",!s[3]||s[3]==="complete"||s[5]==="hidden"),(!i||c[0]&1192)&&J(t,"translucent",s[7]==="center"&&(s[3]==="pending"||s[3]==="error")||s[10]||s[5]==="minimal"),(!i||c[0]&168)&&J(t,"generating",s[3]==="generating"),(!i||c[0]&2208)&&J(t,"border",s[11]),c[0]&512&&oe(t,"position",s[9]?"absolute":"static"),c[0]&512&&oe(t,"padding",s[9]?"0":"var(--size-8) 0")},i(s){i||(ee(o),i=!0)},o(s){ne(o),i=!1},d(s){s&&S(t),~r&&l[r].d(),e[31](null)}}}let dt=[],Vt=!1;
9async function bl(e,t=!0){if(!(window.__gradio_mode__==="website"||window.__gradio_mode__!=="app"&&t!==!0)){if(dt.push(e),!Vt)Vt=!0;else return;await ya(),requestAnimationFrame(()=>{let r=[0,0];for(let o=0;o<dt.length;o++){const i=dt[o].getBoundingClientRect();(o===0||i.top+window.scrollY<=r[0])&&(r[0]=i.top+window.scrollY,r[1]=o)}window.scrollTo({top:r[0]-20,behavior:"smooth"}),Vt=!1,dt=[]})}}function yl(e,t,r){let o,n,i;xe(e,rl,v=>r(27,n=v)),xe(e,br,v=>r(20,i=v));let{$$slots:a={},$$scope:l}=t,{eta:u=null}=t,{queue:s=!1}=t,{queue_position:c}=t,{queue_size:f}=t,{status:d}=t,{scroll_to_output:p=!1}=t,{timer:h=!0}=t,{show_progress:_="full"}=t,{message:w=null}=t,{progress:x=null}=t,{variant:E="default"}=t,{loading_text:g="Loading..."}=t,{absolute:b=!0}=t,{translucent:k=!1}=t,{border:N=!1}=t,A,O=!1,j=0,W=0,fe=null,X=0,de=null,P,U=null,ie=!0;const C=()=>{r(24,j=performance.now()),r(25,W=0),O=!0,K()};function K(){requestAnimationFrame(()=>{r(25,W=(performance.now()-j)/1e3),O&&K()})}function R(){r(25,W=0),O&&(O=!1)}ma(()=>{O&&R()});let H=null;function ue(v){me[v?"unshift":"push"](()=>{U=v,r(15,U),r(6,x),r(13,de),r(14,P)})}function ae(v){me[v?"unshift":"push"](()=>{A=v,r(12,A)})}return e.$$set=v=>{"eta"in v&&r(0,u=v.eta),"queue"in v&&r(21,s=v.queue),"queue_position"in v&&r(1,c=v.queue_position),"queue_size"in v&&r(2,f=v.queue_size),"status"in v&&r(3,d=v.status),"scroll_to_output"in v&&r(22,p=v.scroll_to_output),"timer"in v&&r(4,h=v.timer),"show_progress"in v&&r(5,_=v.show_progress),"message"in v&&r(23,w=v.message),"progress"in v&&r(6,x=v.progress),"variant"in v&&r(7,E=v.variant),"loading_text"in v&&r(8,g=v.loading_text),"absolute"in v&&r(9,b=v.absolute),"translucent"in v&&r(10,k=v.translucent),"border"in v&&r(11,N=v.border),"$$scope"in v&&r(28,l=v.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&85983233&&(u===null?r(0,u=fe):s&&r(0,u=(performance.now()-j)/1e3+u),u!=null&&(r(18,H=u.toFixed(1)),r(26,fe=u))),e.$$.dirty[0]&33554433&&r(16,X=u===null||u<=0||!W?null:Math.min(W/u,1)),e.$$.dirty[0]&64&&x!=null&&r(17,ie=!1),e.$$.dirty[0]&57408&&(x!=null?r(13,de=x.map(v=>{if(v.index!=null&&v.length!=null)return v.index/v.length;if(v.progress!=null)return v.progress})):r(13,de=null),de?(r(14,P=de[de.length-1]),U&&(P===0?r(15,U.style.transition="0",U):r(15,U.style.transition="150ms",U))):r(14,P=void 0)),e.$$.dirty[0]&8&&(d==="pending"?C():R()),e.$$.dirty[0]&138416136&&A&&p&&(d==="pending"||d==="complete")&&bl(A,n.autoscroll),e.$$.dirty[0]&8388616,e.$$.dirty[0]&33554432&&r(19,o=W.toFixed(1))},[u,c,f,d,h,_,x,E,g,b,k,N,A,de,P,U,X,ie,H,o,i,s,p,w,j,W,fe,n,l,a,ue,ae]}class wl extends Pt{constructor(t){super(),Bt(this,t,yl,ml,nt,{eta:0,queue:21,queue_position:1,queue_size:2,status:3,scroll_to_output:22,timer:4,show_progress:5,message:23,progress:6,variant:7,loading_text:8,absolute:9,translucent:10,border:11},null,[-1,-1])}}const en={built_with_gradio:"تÙ
Ø§ÙØ¥Ùشاء بإستخداÙ
Gradio",clear:"Ø£Ù
سØ",or:"Ø£Ù",submit:"أرسÙ"},tn={click_to_upload:"إضغط ÙÙØªØÙ
ÙÙ",drop_audio:"Ø£Ø³ÙØ· اÙÙ
ÙÙ Ø§ÙØµÙت٠ÙÙØ§",drop_csv:"Ø£Ø³ÙØ· Ù
ÙÙ Ø§ÙØ¨ÙØ§ÙØ§Øª ÙÙØ§",drop_file:"Ø£Ø³ÙØ· اÙÙ
ÙÙ ÙÙØ§",drop_image:"Ø£Ø³ÙØ· Ø§ÙØµÙرة ÙÙØ§",drop_video:"Ø£Ø³ÙØ· اÙÙÙØ¯ÙÙ ÙÙØ§"},vl={common:en,upload_text:tn},xl=Object.freeze(Object.defineProperty({__proto__:null,common:en,default:vl,upload_text:tn},Symbol.toStringTag,{value:"Module"})),rn={built_with_gradio:"Construït amb gradio",clear:"Neteja",empty:"Buit",error:"Error",loading:"S'està carregant",or:"o",submit:"Envia"},on={click_to_upload:"Feu clic per pujar",drop_audio:"Deixeu anar l'à udio aquÃ",drop_csv:"Deixeu anar el CSV aquÃ",drop_file:"Deixeu anar el fitxer aquÃ",drop_image:"Deixeu anar la imatge aquÃ",drop_video:"Deixeu anar el vÃdeo aquÃ"},El={common:rn,upload_text:on},Sl=Object.freeze(Object.defineProperty({__proto__:null,common:rn,default:El,upload_text:on},Symbol.toStringTag,{value:"Module"})),nn={annotated_image:"ÙÛÙÛÛ ÙÛØ´Ø§ÙÛ Ú©Ø±Ø§Ù"},an={allow_recording_access:"تکاÛÛ ÚÛÚ¯Û Ø¨Ø¯Û Ø¨Û Ø¨ÛکارÙÛÙØ§ÙÛ Ù
اÛکرÛÙÛÙÛÚ©Û Ø¨Û ØªÛÙ
ارکردÙ.",audio:"دÛÙÚ¯",record_from_microphone:"تÛÙ
ارکرد٠ÙÛ Ù
اÛÚ©ÛÙÛ",stop_recording:"تÛÙ
ارکرد٠بÙÛØ³ØªÛÙÛ"},sn={connection_can_break:"ÙÛ Ù
ÛØ¨Ø§ÛÙØ¯Ø§Ø Ù¾ÛÛÙÛÙØ¯ÛÛÛÚ©Û Ø¯ÛÚ©Ø±ÛØª بپÚÚÛØª ئÛÚ¯ÛØ± ئÛÙ
ØªØ§Ø¨Û ÚØ§Ùاک ÙÛØ¨Ûت ÛØ§Ù ئاÙ
ÛØ±ÛÚ©Û Ø¨ÚÛØªÛ Ø¯ÛØ®Û پشÙÙØ ئÛÙ
ÛØ´ Ø´ÙÛÙÛ Ø®ÛØª ÙÛ ÚÛØ²Ø¯Ø§ ÙÛØ¯Ûست Ø¯ÛØ¯Ø§Øª.",long_requests_queue:"ÚÛØ²ÛÚ©Û Ø¯Ø±ÛÚÛ Ø¯Ø§ÙØ§Ú©Ø§Ø±Û Ù
9ÛÛÛ. ئÛÙ
سپÛÛØ³Û دÙÙØ¨Ø§Ø¯ Ø¨Ú©Û Ø¨ÛÛ ÚØ§ÙÛÚÙØ§Ù ÙÛØ¨Ûت.",lost_connection:"Ù¾ÛÛÙÛÙØ¯Û Ù¾ÚÚØ§ بÛÙÛÛ Ø¬ÛÙÛØ´ØªÙÛ Ù¾ÛÛØ¬. "},ln={checkbox:"بÛÚ©Ø³Û ÙÛÚµØ¨ÚØ§Ø±Ø¯Ù",checkbox_group:"گرÙÙ¾Û Ø¨ÛÚ©Ø³Û ÙÛÚµØ¨ÚØ§Ø±Ø¯Ù"},cn={code:"Ú©ÛØ¯"},un={color_picker:"ÚÛÙÚ¯ ÙÛÚµØ¨ÚØ§Ø±Ø¯Û"},fn={built_with:"Ø¯Ø±ÙØ³ØªÚ©Ø±Ø§ÙÛ ÙÛÚ¯ÛÚµ...",built_with_gradio:"Gradio Ø¯Ø±ÙØ³ØªÚ©Ø±Ø§ÙÛ Ø¨Û",clear:"خاÙÛÙکردÙÛÙÛ",download:"Ø¯Ø§Ø¨ÛØ²Ø§ÙدÙ",edit:"Ø¨ÚØ§Ø±Ú©Ø±Ø¯Ù",empty:"Ø¨ÛØªØ§Úµ",error:"ÙÛÚµÛ",hosted_on:"Ù
ÛÙØ§ÙØ¯Ø§Ø±Û Ú©Ø±Ø§ÙÛ ÙÛ",loading:"بارکردÙ",logo:"ÙÛÚ¯Û",or:"ÛØ§Ù",remove:"ÙØ§Ø¨Ø±Ø¯Ù",share:"ÙØ§ÙØ¨ÛØ´Ú©Ø±Ø¯Ù",submit:"Ù¾ÛØ´Ú©ÛشکردÙ",undo:"Ù¾ÙÙÚکردÙÛÙÛ"},dn={incorrect_format:"ÙÛØ±Ù
اتÛÚ©Û ÙÛÚµÛØ تÛÙÙØ§ ÙØ§ÛÙÛکاÙÛ CSV Ù TSV Ù¾Ø´ØªÚ¯ÛØ±Û دÛکرÛÙ",new_column:"ستÙÙÙÛ ÙÙÛ",new_row:"ÚÛØ²ÛÚ©Û ÙÙÛ"},hn={dropdown:"ÙÚÛØ¯Ø§ÙÛ Ø®ÙØ§Ø±"},pn={build_error:"ÙÛÚµÛÛ Ø¯Ø±ÙØ³ØªÚ©Ø±Ø¯Ù ÙÛÛÛ",config_error:"ÙÛÚµÛÛ ÚÛکخست٠ÙÛÛÛ",contact_page_author:"تکاÛÛ Ù¾ÛÛÙÛÙØ¯Û Ø¨Û ÙÙÙØ³ÛØ±Û Ù¾ÛÛØ¬ÛÙÛ Ø¨Ú©ÛÙ Ø¨Û Ø¦ÛÙÛÛ Ø¦Ø§Ú¯Ø§Ø¯Ø§Ø±ÛØ§Ù بکÛÙÛÙÛ.",no_app_file:"ÙÛÚ ÙØ§ÛÙÛÚ©Û Ø¦ÛÙ¾ ÙÛÛÛ",runtime_error:"ÙÛÚµÛÛÛÚ©Û runtime ÙÛÛÛ",space_not_working:'"سپÛÛØ³ÛÚ©Û Ú©Ø§Ø±ÙØ§Ú©Ø§Øª ÚÙÙÚ©Û" {0}',space_paused:"ÙÛØ²Ø§Ú©Û ÙÛØ³ØªØ§ÙÛ",use_via_api:"ÙÛ ÚÛÚ¯ÛÛ API بÛÚ©Ø§Ø±Û Ø¨ÙÛÙÛ"},_n={uploading:"بارکردÙ..."},gn={highlighted_text:"دÛÙÛ ÚÛØ´Ù کراÙ"},mn={allow_webcam_access:"تکاÛÛ ÚÛÚ¯Û Ø¨Ø¯Û Ø¨Û Ø¨ÛکارÙÛÙØ§ÙÛ ÙÛØ¨Ú©Ø§Ù
ÛÚ©Û Ø¨Û ØªÛÙ
ارکردÙ.",brush_color:"ÚÛÙÚ¯Û ÙÚµÚÛ",brush_radius:"تÛÚÚÛÙÛ ÙÚµÚÛ",image:"ÙÛÙÛ",remove_image:"ÙØ§Ø¨Ø±Ø¯ÙÛ ÙÛÙÛ",select_brush_color:"ÚÛÙÚ¯Û ÙÚµÚÛ ÙÛڵبÚÛØ±Û",start_drawing:"Ø¯ÛØ³Øª Ø¨Ú©Û Ø¨Û ÙÛÙÛÚ©ÛØ´Ø§Ù",use_brush:"ÙÚµÚÛ Ø¨ÛکاربÙÛÙÛ"},bn={label:"ÙÛÛØ¨Úµ"},yn={enable_cookies:"ئÛÚ¯ÛØ± ØªÛ Ø³ÛØ±Ø¯Ø§ÙÛ HuggingFace Space دÛÚ©ÛÛØª ÙÛ Ø¯ÛØ®Û ÙØ§Ø¯ÛØ§Ø±Ø¯Ø§Ø Ù¾ÛÙÛØ³ØªÛ Ú©ÙÙÚ©Û ÙØ§ÛÛÙÛ Ø³ÛÛÛÙ
ÚØ§Ùاک بکÛÛØª.",incorrect_credentials:"بÚÙØ§ÙاÙ
ÛÛ ÙÛÚµÛ",login:"ÚÙÙÙâ ÚÙÙØ±ÙâÙÙâ"},wn={number:"ÚÙ
ارÛ"},vn={plot:"ÙÛڵکارÛ"},xn={radio:"ÚØ§Ø¯ÛÛ"},En={slider:"Ø®ÙÛØ³Ú©Û"},Sn={click_to_upload:"Ú©ÙÛÚ© Ø¨Ú©Û Ø¨Û Ø¨Ø§Ø±Ú©Ø±Ø¯Ù",drop_audio:"دÛÙÚ¯ ÙÛØ±Û دابÙÛ",drop_csv:"ÙÛØ±Ûدا CSV دابÙÛ",drop_file:"ÙØ§ÛÙ ÙÛØ±Û دابÙÛ",drop_image:"ÙÛÙÛ ÙÛØ±Ûدا دابÙÛ",drop_video:"Ú¤ÛØ¯ÛÛ ÙÛØ±Û دابÙÛ"},kl={"3D_model":{"3d_model":"Ù
ÛØ¯ÛÙÛ Ø³Û ÚÛÙÛÙØ¯Û"},annotated_image:nn,audio:an,blocks:sn,checkbox:ln,code:cn,color_picker:un,common:fn,dataframe:dn,dropdown:hn,errors:pn,file:_n,highlighted_text:gn,image:mn,label:bn,login:yn,number:wn,plot:vn,radio:xn,slider:En,upload_text:Sn},Al=Object.freeze(Object.defineProperty({__proto__:null,annotated_image:nn,audio:an,blocks:sn,checkbox:ln,code:cn,color_picker:un,common:fn,dataframe:dn,default:kl,dropdown:hn,errors:pn,file:_n,highlighted_text:gn,image:mn,label:bn,login:yn,number:wn,plot:vn,radio:xn,slider:En,upload_text:Sn},Symbol.toStringTag,{value:"Module"})),kn={built_with_gradio:"Mit Gradio erstellt",clear:"Löschen",or:"oder",submit:"Absenden"},An={click_to_upload:"Hochladen",drop_audio:"Audio hier ablegen",drop_csv:"CSV Datei hier ablegen",drop_file:"Datei hier ablegen",drop_image:"Bild hier ablegen",drop_video:"Video hier ablegen"},Tl={common:kn,upload_text:An},Bl=Object.freeze(Object.defineProperty({__proto__:null,common:kn,default:Tl,upload_text:An},Symbol.toStringTag,{value:"Module"})),Tn={annotated_image:"Annotated Image"},Bn={allow_recording_access:"Please allow access to the microphone for recording.",audio:"Audio",record_from_microphone:"Record from microphone",stop_recording:"Stop recording",no_device_support:"Media devices could not be accessed. Check that you are running on a secure origin (https) or localhost (
9or you have passed a valid SSL certificate to ssl_verify), and you have allowed browser access to your device."},Pn={connection_can_break:"On mobile, the connection can break if this tab is unfocused or the device sleeps, losing your position in queue.",long_requests_queue:"There is a long queue of requests pending. Duplicate this Space to skip.",lost_connection:"Lost connection due to leaving page. Rejoining queue..."},Cn={checkbox:"Checkbox",checkbox_group:"Checkbox Group"},On={code:"Code"},Hn={color_picker:"Color Picker"},Nn={built_with:"built with",built_with_gradio:"Built with Gradio",clear:"Clear",download:"Download",edit:"Edit",empty:"Empty",error:"Error",hosted_on:"Hosted on",loading:"Loading",logo:"logo",or:"or",remove:"Remove",share:"Share",submit:"Submit",undo:"Undo"},Mn={incorrect_format:"Incorrect format, only CSV and TSV files are supported",new_column:"New column",new_row:"New row"},Ln={dropdown:"Dropdown"},In={build_error:"there is a build error",config_error:"there is a config error",contact_page_author:"Please contact the author of the page to let them know.",no_app_file:"there is no app file",runtime_error:"there is a runtime error",space_not_working:`"Space isn't working because" {0}`,space_paused:"the space is paused",use_via_api:"Use via API"},Rn={uploading:"Uploading..."},zn={highlighted_text:"Highlighted Text"},Dn={allow_webcam_access:"Please allow access to the webcam for recording.",brush_color:"Brush color",brush_radius:"Brush radius",image:"Image",remove_image:"Remove Image",select_brush_color:"Select brush color",start_drawing:"Start drawing",use_brush:"Use brush"},jn={label:"Label"},Un={enable_cookies:"If you are visiting a HuggingFace Space in Incognito mode, you must enable third party cookies.",incorrect_credentials:"Incorrect Credentials",login:"Login"},Gn={number:"Number"},Fn={plot:"Plot"},qn={radio:"Radio"},Vn={slider:"Slider"},Xn={click_to_upload:"Click to Upload",drop_audio:"Drop Audio Here",drop_csv:"Drop CSV Here",drop_file:"Drop File Here",drop_image:"Drop Image Here",drop_video:"Drop Video Here"},Pl={"3D_model":{"3d_model":"3D Model"},annotated_image:Tn,audio:Bn,blocks:Pn,checkbox:Cn,code:On,color_picker:Hn,common:Nn,dataframe:Mn,dropdown:Ln,errors:In,file:Rn,highlighted_text:zn,image:Dn,label:jn,login:Un,number:Gn,plot:Fn,radio:qn,slider:Vn,upload_text:Xn},Cl=Object.freeze(Object.defineProperty({__proto__:null,annotated_image:Tn,audio:Bn,blocks:Pn,checkbox:Cn,code:On,color_picker:Hn,common:Nn,dataframe:Mn,default:Pl,dropdown:Ln,errors:In,file:Rn,highlighted_text:zn,image:Dn,label:jn,login:Un,number:Gn,plot:Fn,radio:qn,slider:Vn,upload_text:Xn},Symbol.toStringTag,{value:"Module"})),Wn={built_with_gradio:"Construido con Gradio",clear:"Limpiar",or:"o",submit:"Enviar"},Zn={click_to_upload:"Haga click para cargar",drop_audio:"Coloque el audio aquÃ",drop_csv:"Coloque el CSV aquÃ",drop_file:"Coloque el archivo aquÃ",drop_image:"Coloque la imagen aquÃ",drop_video:"Coloque el video aquÃ"},Ol={common:Wn,upload_text:Zn},Hl=Object.freeze(Object.defineProperty({__proto__:null,common:Wn,default:Ol,upload_text:Zn},Symbol.toStringTag,{value:"Module"})),Jn={built_with_gradio:"Gradiorekin eraikia",clear:"Garbitu",or:"edo",submit:"Bidali"},Yn={click_to_upload:"Klik egin kargatzeko",drop_audio:"Jarri hemen audioa",drop_csv:"Jarri hemen CSVa",drop_file:"Jarri hemen fitxategia",drop_image:"Jarri hemen irudia",drop_video:"Jarri hemen bideoa"},Nl={common:Jn,upload_text:Yn},Ml=Object.freeze(Object.defineProperty({__proto__:null,common:Jn,default:Nl,upload_text:Yn},Symbol.toStringTag,{value:"Module"})),Qn={built_with_gradio:"ساخت٠شد٠با gradio",clear:"ØØ°Ù",or:"ÛØ§",submit:"ارساÙ"},Kn={click_to_upload:"Ø¨Ø±Ø§Û Ø¢Ù¾ÙÙØ¯ Ú©ÙÛÚ© Ú©ÙÛØ¯",drop_audio:"ØµÙØª را اÛÙØ¬Ø§ Ø±ÙØ§ Ú©ÙÛØ¯",drop_csv:"ÙØ§ÛÙ csv را اÛÙØ¬Ø§ Ø±ÙØ§ Ú©ÙÛØ¯",drop_file:"ÙØ§Û٠را اÛÙØ¬Ø§ Ø±ÙØ§ Ú©ÙÛØ¯",drop_image:"تصÙÛØ± را اÛÙØ¬Ø§ Ø±ÙØ§ Ú©ÙÛØ¯",drop_video:"ÙÛØ¯Û٠را اÛÙØ¬Ø§ Ø±ÙØ§ Ú©ÙÛØ¯"},Ll={common:Qn,upload_text:Kn},Il=Object.freeze(Object.defineProperty({__proto__:null,common:Qn,default:Ll,upload_text:Kn},Symbol.toStringTag,{value:"Module"})),$n={allow_recording_access:"Veuillez autoriser l'accès à l'enregistrement",audio:"Audio",record_from_microphone:"Enregistrer avec le microphone",stop_recording:"Arrêter l'enregistrement"},ei={built_with:"Construit avec",built_with_gradio:"Construit avec Gradio",clear:"Effacer",download:"Télécharger",edit:"Ãditer",error:"Erreur",loading:"Chargement",logo:"logo",or:"ou",remove:"Supprimer",share:"Partager",submit:"Soumettre"},ti={click_to_upload:"Cliquer pour Télécharger",drop_audio:"Déposer l'Audio Ici",drop_csv:"Déposer le CSV Ici",drop_file:"Déposer le Fichier Ici",drop_image:"Déposer l'Image Ici",drop_video:"Déposer la Vidéo Ici"},Rl={audio:$n,common:ei,upload_text:ti},zl=Object.freeze(Object.defineProperty({__proto__:null,audio:$n,common:ei,default:Rl,upload_text:ti},Symbol.toStringTag,{value:"Module"})),ri={built_with_gradio:"×× ×× ×¢× ×ר×××",clear:"× ×§×",or:"××",submit:"ש××"},oi={click_to_upload:"×××¥ ××× ×××¢××ת",drop_audio:"×ר×ר ××××
9 ×§×××¥ ש××¢",drop_csv:"×ר×ר csv ×§×××¥ ××××",drop_file:"×ר×ר ×§×××¥ ××××",drop_image:"×ר×ר ×§×××¥ ת××× × ××××",drop_video:"×ר×ר ×§×××¥ סר××× ××××"},Dl={common:ri,upload_text:oi},jl=Object.freeze(Object.defineProperty({__proto__:null,common:ri,default:Dl,upload_text:oi},Symbol.toStringTag,{value:"Module"})),ni={built_with_gradio:"Gradio सॠबना",clear:"हà¤à¤¾à¤¯à¥",or:"या",submit:"सबमिठà¤à¤°à¥"},ii={click_to_upload:"à¤
पलà¥à¤¡ à¤à¥ लिठबà¤à¤¨ दबायà¥à¤",drop_audio:"यहाठà¤à¤¡à¤¿à¤¯à¥ डà¥à¤°à¥à¤ª à¤à¤°à¥à¤",drop_csv:"यहाठCSV डà¥à¤°à¥à¤ª à¤à¤°à¥à¤",drop_file:"यहाठFile डà¥à¤°à¥à¤ª à¤à¤°à¥à¤",drop_image:"यहाठà¤à¤®à¥à¤ डà¥à¤°à¥à¤ª à¤à¤°à¥à¤",drop_video:"यहाठवà¥à¤¡à¤¿à¤¯à¥ डà¥à¤°à¥à¤ª à¤à¤°à¥à¤"},Ul={common:ni,upload_text:ii},Gl=Object.freeze(Object.defineProperty({__proto__:null,common:ni,default:Ul,upload_text:ii},Symbol.toStringTag,{value:"Module"})),ai={built_with_gradio:"gradioã§ä½ãã",clear:"ã¯ãªã¢",or:"ã¾ãã¯",submit:"éä¿¡"},si={click_to_upload:"ã¯ãªãã¯ãã¦ã¢ãããã¼ã",drop_audio:"ããã«é³å£°ããããã",drop_csv:"ããã«CSVããããã",drop_file:"ããã«ãã¡ã¤ã«ããããã",drop_image:"ããã«ç»åããããã",drop_video:"ããã«åç»ããããã"},Fl={common:ai,upload_text:si},ql=Object.freeze(Object.defineProperty({__proto__:null,common:ai,default:Fl,upload_text:si},Symbol.toStringTag,{value:"Module"})),li={built_with_gradio:"gradioë¡ ì ìëììµëë¤",clear:"í´ë¦¬ì´",or:"ëë",submit:"ì ì¶í기"},ci={click_to_upload:"í´ë¦í´ì ì
ë¡ëí기",drop_audio:"ì¤ëì¤ë¥¼ ëì´ ëì¼ì¸ì",drop_csv:"CSVíì¼ì ëì´ ëì¼ì¸ì",drop_file:"íì¼ì ëì´ ëì¼ì¸ì",drop_image:"ì´ë¯¸ì§ë¥¼ ëì´ ëì¼ì¸ì",drop_video:"ë¹ëì¤ë¥¼ ëì´ ëì¼ì¸ì"},Vl={common:li,upload_text:ci},Xl=Object.freeze(Object.defineProperty({__proto__:null,common:li,default:Vl,upload_text:ci},Symbol.toStringTag,{value:"Module"})),ui={built_with_gradio:"sukurta su gradio",clear:"Trinti",or:"arba",submit:"Pateikti"},fi={click_to_upload:"SpustelÄkite norÄdami įkelti",drop_audio:"Ä®kelkite garso įraÅ¡Ä
Äia",drop_csv:"Ä®kelkite CSV Äia",drop_file:"Ä®kelkite bylÄ
Äia",drop_image:"Ä®kelkite paveikslÄlį Äia",drop_video:"Ä®kelkite vaizdo įraÅ¡Ä
Äia"},Wl={common:ui,upload_text:fi},Zl=Object.freeze(Object.defineProperty({__proto__:null,common:ui,default:Wl,upload_text:fi},Symbol.toStringTag,{value:"Module"})),di={built_with_gradio:"gemaakt met gradio",clear:"Wis",or:"of",submit:"Zend in"},hi={click_to_upload:"Klik om the Uploaden",drop_audio:"Sleep een Geluidsbestand hier",drop_csv:"Sleep een CSV hier",drop_file:"Sleep een Document hier",drop_image:"Sleep een Afbeelding hier",drop_video:"Sleep een Video hier"},Jl={common:di,upload_text:hi},Yl=Object.freeze(Object.defineProperty({__proto__:null,common:di,default:Jl,upload_text:hi},Symbol.toStringTag,{value:"Module"})),pi={built_with_gradio:"utworzone z gradio",clear:"WyczyÅÄ",or:"lub",submit:"Zatwierdź"},_i={click_to_upload:"Kliknij, aby przesÅaÄ",drop_audio:"PrzeciÄ
gnij tutaj audio",drop_csv:"PrzeciÄ
gnij tutaj CSV",drop_file:"PrzeciÄ
gnij tutaj plik",drop_image:"PrzeciÄ
gnij tutaj zdjÄcie",drop_video:"PrzeciÄ
gnij tutaj video"},Ql={common:pi,upload_text:_i},Kl=Object.freeze(Object.defineProperty({__proto__:null,common:pi,default:Ql,upload_text:_i},Symbol.toStringTag,{value:"Module"})),gi={built_with_gradio:"ConstruÃdo com gradio",clear:"Limpar",error:"Erro",flag:"Marcar",loading:"Carregando",or:"ou",submit:"Enviar"},mi={click_to_upload:"Clique para o Upload",drop_audio:"Solte o Ãudio Aqui",drop_csv:"Solte o CSV Aqui",drop_file:"Solte o Arquivo Aqui",drop_image:"Solte a Imagem Aqui",drop_video:"Solte o VÃdeo Aqui"},$l={common:gi,upload_text:mi},ec=Object.freeze(Object.defineProperty({__proto__:null,common:gi,default:$l,upload_text:mi},Symbol.toStringTag,{value:"Module"})),bi={built_with_gradio:"Ñделано Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ gradio",clear:"ÐÑиÑÑиÑÑ",or:"или",submit:"ÐÑполниÑÑ"},yi={click_to_upload:"ÐажмиÑе, ÑÑÐ¾Ð±Ñ Ð·Ð°Ð³ÑÑзиÑÑ",drop_audio:"ÐомеÑÑиÑе ÐÑдио ÐдеÑÑ",drop_csv:"ÐомеÑÑиÑе CSV ÐдеÑÑ",drop_file:"ÐомеÑÑиÑе ÐокÑÐ¼ÐµÐ½Ñ ÐдеÑÑ",drop_image:"ÐомеÑÑиÑе ÐзобÑажение ÐдеÑÑ",drop_video:"ÐомеÑÑиÑе Ðидео ÐдеÑÑ"},tc={common:bi,upload_text:yi},rc=Object.freeze(Object.defineProperty({__proto__:null,common:bi,default:tc,upload_text:yi},Symbol.toStringTag,{value:"Module"})),wi={built_with_gradio:"à®à®¿à®°à¯à®à®¿à®¯à¯ வà¯à®à®©à¯ à®à®°à¯à®µà®¾à®à¯à®à®ªà¯à®ª
9à®à¯à®à®¤à¯",clear:"à®
ழிà®à¯à®à®µà¯à®®à¯",or:"à®
லà¯à®²à®¤à¯",submit:"à®à®®à®°à¯à®ªà¯à®ªà®¿à®à¯à®à®µà¯à®®à¯"},vi={click_to_upload:"பதிவà¯à®±à¯à®± à®
à®´à¯à®¤à¯à®¤à®µà¯à®®à¯",drop_audio:"à®à®à®¿à®¯à¯à®µà¯ பதிவà¯à®±à¯à®±à®µà¯à®®à¯",drop_csv:"csv ஠பதிவà¯à®±à¯à®±à®µà¯à®®à¯",drop_file:"à®à¯à®ªà¯à®ªà¯ பதிவà¯à®±à¯à®±à®µà¯à®®à¯",drop_image:"பà®à®¤à¯à®¤à¯ பதிவà¯à®±à¯à®±à®µà¯à®®à¯",drop_video:"à®à®¾à®£à¯à®³à®¿à®¯à¯ பதிவà¯à®±à¯à®±à®µà¯à®®à¯"},oc={common:wi,upload_text:vi},nc=Object.freeze(Object.defineProperty({__proto__:null,common:wi,default:oc,upload_text:vi},Symbol.toStringTag,{value:"Module"})),xi={built_with_gradio:"Gradio ile oluÅturulmuÅtur",clear:"Temizle",or:"veya",submit:"Yükle"},Ei={click_to_upload:"Yüklemek için Tıkla",drop_audio:"Kaydı Buraya Sürükle",drop_csv:"CSV'yi Buraya Sürükle",drop_file:"Dosyayı Buraya Sürükle",drop_image:"Resmi Buraya Sürükle",drop_video:"Videoyu Buraya Sürükle"},ic={common:xi,upload_text:Ei},ac=Object.freeze(Object.defineProperty({__proto__:null,common:xi,default:ic,upload_text:Ei},Symbol.toStringTag,{value:"Module"})),Si={built_with_gradio:"ÐÑоблено на оÑÐ½Ð¾Ð²Ñ gradio",clear:"ÐÑиÑÑиÑи",or:"або",submit:"ÐадÑÑлаÑи"},ki={click_to_upload:"ÐаÑиÑнÑÑÑ Ñоб заванÑажиÑи",drop_audio:"ÐеÑеÑÑгнÑÑÑ Ð°ÑдÑо ÑÑди",drop_csv:"ÐеÑеÑÑгнÑÑÑ CSV-Ñайл ÑÑди",drop_file:"ÐеÑеÑÑгнÑÑÑ Ñайл ÑÑди",drop_image:"ÐеÑеÑÑгнÑÑÑ Ð·Ð¾Ð±ÑÐ°Ð¶ÐµÐ½Ð½Ñ ÑÑди",drop_video:"ÐеÑеÑÑгнÑÑÑ Ð²Ñдео ÑÑди"},sc={common:Si,upload_text:ki},lc=Object.freeze(Object.defineProperty({__proto__:null,common:Si,default:sc,upload_text:ki},Symbol.toStringTag,{value:"Module"})),Ai={built_with_gradio:"Ú©Û Ø³Ø§ØªÚ¾ Ø¨ÙØ§Ûا Ú¯ÛØ§ Gradio",clear:"Ûٹا دÛÚº",or:"ÛØ§",submit:"جÙ
ع کرÛÚº"},Ti={click_to_upload:"اپ ÙÙÚ Ú©Û ÙÛÛ Ú©ÙÚ© کرÛÚº",drop_audio:"ÛÛØ§Úº Ø¢ÚÛÙ ÚØ±Ø§Ù¾ کرÛÚº",drop_csv:"ÛÛØ§Úº ÙØ§Ø¦Ù ÚØ±Ø§Ù¾ کرÛÚº",drop_file:"ÛÛØ§Úº ÙØ§Ø¦Ù ÚØ±Ø§Ù¾ کرÛÚº",drop_image:"ÛÛØ§Úº تصÙÛØ± ÚØ±Ø§Ù¾ کرÛÚº",drop_video:"ÛÛØ§Úº ÙÛÚÛÙ ÚØ±Ø§Ù¾ کرÛÚº"},cc={common:Ai,upload_text:Ti},uc=Object.freeze(Object.defineProperty({__proto__:null,common:Ai,default:cc,upload_text:Ti},Symbol.toStringTag,{value:"Module"})),Bi={built_with_gradio:"gradio bilan qilingan",clear:"Tozalash",submit:"Yubor"},Pi={click_to_upload:"Yuklash uchun Bosing",drop_audio:"Audioni Shu Yerga Tashlang",drop_csv:"CSVni Shu Yerga Tashlang",drop_file:"Faylni Shu Yerga Tashlang",drop_image:"Rasmni Shu Yerga Tashlang",drop_video:"Videoni Shu Yerga Tashlang"},fc={common:Bi,upload_text:Pi},dc=Object.freeze(Object.defineProperty({__proto__:null,common:Bi,default:fc,upload_text:Pi},Symbol.toStringTag,{value:"Module"})),Ci={built_with_gradio:"使ç¨Gradioæå»º",clear:"æ¸
é¤",or:"æ",submit:"æäº¤"},Oi={click_to_upload:"ç¹å»ä¸ä¼ ",drop_audio:"ææ¾é³é¢è³æ¤å¤",drop_csv:"ææ¾CSVè³æ¤å¤",drop_file:"ææ¾æä»¶è³æ¤å¤",drop_image:"ææ¾å¾çè³æ¤å¤",drop_video:"ææ¾è§é¢è³æ¤å¤"},hc={common:Ci,upload_text:Oi},pc=Object.freeze(Object.defineProperty({__proto__:null,common:Ci,default:hc,upload_text:Oi},Symbol.toStringTag,{value:"Module"})),Hi={built_with_gradio:"使ç¨Gradioæ§å»º",clear:"æ¸
é¤",or:"æ",submit:"æäº¤"},Ni={click_to_upload:"黿ä¸å³",drop_audio:"ææ¾é³è¨è³æ¤è",drop_csv:"ææ¾CSVè³æ¤è",drop_file:"ææ¾æªæ¡è³æ¤è",drop_image:"ææ¾åçè³æ¤è",drop_video:"ææ¾å½±çè³æ¤è"},_c={common:Hi,upload_text:Ni},gc=Object.freeze(Object.defineProperty({__proto__:null,common:Hi,default:_c,upload_text:Ni},Symbol.toStringTag,{value:"Module"})),io=Object.assign({"./lang/ar.json":xl,"./lang/ca.json":Sl,"./lang/ckb.json":Al,"./lang/de.json":Bl,"./lang/en.json":Cl,"./lang/es.json":Hl,"./lang/eu.json":Ml,"./lang/fa.json":Il,"./lang/fr.json":zl,"./lang/he.json":jl,"./lang/hi.json":Gl,"./lang/ja.json":ql,"./lang/ko.json":Xl,"./lang/lt.json":Zl,"./lang/nl.json":Yl,"./lang/pl.json":Kl,"./lang/pt-BR.json":ec,"./lang/ru.json":rc,"./lang/ta.json":nc,"./lang/tr.json":ac,"./lang/uk.json":lc,"./lang/ur.json":uc,"./lang/uz.json":dc,"./lang/zh-CN.json":pc,"./lang/zh-TW.json":gc});function mc(){let e={};for(const t in io){const r=t.split("/").pop().split(".").shift();e[r]=io[t].default}return e}const ao=mc();for(const e in ao)Qo(e,ao[e]);function bc(){Ds({fallbackLocale:"en",initialLocale:js()})}const Mi="WORKER_PROXY_CONTEXT_KEY";function yc(e){Bo(Mi,e)}function uu(){return ba(Mi)}function so(e){let t,r;return t=new wl({props:{absolute:!e[4],status:e[14],timer:!1,queue_position:null,queue_size:null,translucent:!0,loading_text:e[21],$$slots:{error:[xc]},$$scope:{ctx:e}}}
vendor: 4,136 bytes, line 9
9),{c(){it(t.$$.fragment)},m(o,n){De(t,o,n),r=!0},p(o,n){const i={};n[0]&16&&(i.absolute=!o[4]),n[0]&16384&&(i.status=o[14]),n[0]&1057024|n[1]&32768&&(i.$$scope={dirty:n,ctx:o}),t.$set(i)},i(o){r||(ee(t.$$.fragment,o),r=!0)},o(o){ne(t.$$.fragment,o),r=!1},d(o){je(t,o)}}}function wc(e){let t,r=e[20]("errors.contact_page_author")+"",o;return{c(){t=D("p"),o=L(r),y(t,"class","svelte-y6l4b")},m(n,i){T(n,t,i),B(t,o)},p(n,i){i[0]&1048576&&r!==(r=n[20]("errors.contact_page_author")+"")&&re(o,r)},d(n){n&&S(t)}}}function vc(e){let t,r,o,n,i,a;return{c(){t=D("p"),r=L("Please "),o=D("a"),n=L("contact the author of the space"),a=L(" to let them know."),y(o,"href",i="https://huggingface.co/spaces/"+e[8]+"/discussions/new?title="+e[22].title(e[13]?.detail)+"&description="+e[22].description(e[13]?.detail,location.origin)),y(o,"class","svelte-y6l4b"),y(t,"class","svelte-y6l4b")},m(l,u){T(l,t,u),B(t,r),B(t,o),B(o,n),B(t,a)},p(l,u){u[0]&8448&&i!==(i="https://huggingface.co/spaces/"+l[8]+"/discussions/new?title="+l[22].title(l[13]?.detail)+"&description="+l[22].description(l[13]?.detail,location.origin))&&y(o,"href",i)},d(l){l&&S(t)}}}function xc(e){let t,r,o,n=(e[13]?.message||"")+"",i,a;function l(c,f){return(c[13].status==="space_error"||c[13].status==="paused")&&c[13].discussions_enabled?vc:wc}let u=l(e),s=u(e);return{c(){t=D("div"),r=D("p"),o=D("strong"),i=L(n),a=te(),s.c(),y(r,"class","svelte-y6l4b"),y(t,"class","error svelte-y6l4b"),y(t,"slot","error")},m(c,f){T(c,t,f),B(t,r),B(r,o),B(o,i),B(t,a),s.m(t,null)},p(c,f){f[0]&8192&&n!==(n=(c[13]?.message||"")+"")&&re(i,n),u===(u=l(c))&&s?s.p(c,f):(s.d(1),s=u(c),s&&(s.c(),s.m(t,null)))},d(c){c&&S(t),s.d()}}}function Ec(e){let t,r,o,n;const i=[{app:e[16]},e[12],{theme_mode:e[15]},{control_page_title:e[5]},{target:e[9]},{autoscroll:e[0]},{show_footer:!e[4]},{app_mode:e[3]},{version:e[1]}];function a(s){e[32](s)}function l(s){e[33](s)}let u={};for(let s=0;s<i.length;s+=1)u=_o(u,i[s]);return e[10]!==void 0&&(u.ready=e[10]),e[11]!==void 0&&(u.render_complete=e[11]),t=new e[18]({props:u}),me.push(()=>$t(t,"ready",a)),me.push(()=>$t(t,"render_complete",l)),{c(){it(t.$$.fragment)},m(s,c){De(t,s,c),n=!0},p(s,c){const f=c[0]&102971?Ea(i,[c[0]&65536&&{app:s[16]},c[0]&4096&&Sa(s[12]),c[0]&32768&&{theme_mode:s[15]},c[0]&32&&{control_page_title:s[5]},c[0]&512&&{target:s[9]},c[0]&1&&{autoscroll:s[0]},c[0]&16&&{show_footer:!s[4]},c[0]&8&&{app_mode:s[3]},c[0]&2&&{version:s[1]}]):{};!r&&c[0]&1024&&(r=!0,f.ready=s[10],Kt(()=>r=!1)),!o&&c[0]&2048&&(o=!0,f.render_complete=s[11],Kt(()=>o=!1)),t.$set(f)},i(s){n||(ee(t.$$.fragment,s),n=!0)},o(s){ne(t.$$.fragment,s),n=!1},d(s){je(t,s)}}}function Sc(e){let t,r;return t=new e[19]({props:{auth_message:e[12].auth_message,root:e[12].root,space_id:e[8],app_mode:e[3]}}),{c(){it(t.$$.fragment)},m(o,n){De(t,o,n),r=!0},p(o,n){const i={};n[0]&4096&&(i.auth_message=o[12].auth_message),n[0]&4096&&(i.root=o[12].root),n[0]&256&&(i.space_id=o[8]),n[0]&8&&(i.app_mode=o[3]),t.$set(i)},i(o){r||(ee(t.$$.fragment,o),r=!0)},o(o){ne(t.$$.fragment,o),r=!1},d(o){je(t,o)}}}function kc(e){let t,r,o,n,i,a=(e[14]==="pending"||e[14]==="error")&&!(e[12]&&e[12]?.auth_required)&&so(e);const l=[Sc,Ec],u=[];function s(c,f){return c[12]?.auth_required&&c[19]?0:c[12]&&c[18]&&c[17]?1:-1}return~(r=s(e))&&(o=u[r]=l[r](e)),{c(){a&&a.c(),t=te(),o&&o.c(),n=Se()},m(c,f){a&&a.m(c,f),T(c,t,f),~r&&u[r].m(c,f),T(c,n,f),i=!0},p(c,f){(c[14]==="pending"||c[14]==="error")&&!(c[12]&&c[12]?.auth_required)?a?(a.p(c,f),f[0]&20480&&ee(a,1)):(a=so(c),a.c(),ee(a,1),a.m(t.parentNode,t)):a&&(xt(),ne(a,1,1,()=>{a=null}),Et());let d=r;r=s(c),r===d?~r&&u[r].p(c,f):(o&&(xt(),ne(u[d],1,1,()=>{u[d]=null}),Et()),~r?(o=u[r],o?o.p(c,f):(o=u[r]=l[r](c),o.c()),ee(o,1),o.m(n.parentNode,n)):o=null)},i(c){i||(ee(a),ee(o),i=!0)},o(c){ne(a),ne(o),i=!1},d(c){c&&(S(t),S(n)),a&&a.d(c),~r&&u[r].d(c)}}}function Ac(e){let t,r,o;function n(a){e[34](a)}let i={display:e[6]&&e[4],is_embed:e[4],info:!!e[8]&&e[7],version:e[1],initial_height:e[2],space:e[8],loaded:e[14]==="complete",$$slots:{default:[kc]},$$scope:{ctx:e}};return e[9]!==void 0&&(i.wrapper=e[9]),t=new tl({props:i}),me.push(()=>
9$t(t,"wrapper",n)),{c(){it(t.$$.fragment)},m(a,l){De(t,a,l),o=!0},p(a,l){const u={};l[0]&80&&(u.display=a[6]&&a[4]),l[0]&16&&(u.is_embed=a[4]),l[0]&384&&(u.info=!!a[8]&&a[7]),l[0]&2&&(u.version=a[1]),l[0]&4&&(u.initial_height=a[2]),l[0]&256&&(u.space=a[8]),l[0]&16384&&(u.loaded=a[14]==="complete"),l[0]&2096955|l[1]&32768&&(u.$$scope={dirty:l,ctx:a}),!r&&l[0]&512&&(r=!0,u.wrapper=a[9],Kt(()=>r=!1)),t.$set(u)},i(a){o||(ee(t.$$.fragment,a),o=!0)},o(a){ne(t.$$.fragment,a),o=!1},d(a){je(t,a)}}}let Tc=-1;function Bc(){const e=be({}),t=new Map,r=new IntersectionObserver(n=>{n.forEach(i=>{if(i.isIntersecting){let a=t.get(i.target);a!==void 0&&e.update(l=>({...l,[a]:!0}))}})});function o(n,i){t.set(i,n),r.observe(i)}return{register:o,subscribe:e.subscribe}}const lo=Bc();function Pc(e,t,r){let o,n;xe(e,br,m=>r(20,o=m)),xe(e,lo,m=>r(31,n=m)),bc();let{autoscroll:i}=t,{version:a}=t,{initial_height:l}=t,{app_mode:u}=t,{is_embed:s}=t,{theme_mode:c="system"}=t,{control_page_title:f}=t,{container:d}=t,{info:p}=t,{eager:h}=t,_,{mount_css:w=Zt}=t,{client:x}=t,{upload_files:E}=t,{worker_proxy:g=void 0}=t;g&&yc(g);let{space:b}=t,{host:k}=t,{src:N}=t,A=Tc++,O="pending",j,W=!1,fe=!1,X,de=o("common.loading")+"...",P;async function U(m,G){if(G){let F=document.createElement("style");F.innerHTML=G,m.appendChild(F)}await w(X.root+"/theme.css",document.head),X.stylesheets&&await Promise.all(X.stylesheets.map(F=>{let $=F.startsWith("http:")||F.startsWith("https:");return w($?F:X.root+"/"+F,document.head)}))}function ie(m){let F=new URL(window.location.toString()).searchParams.get("__theme");return r(15,P=c||F||"system"),P==="dark"||P==="light"?K(m,P):r(15,P=C(m)),P}function C(m){const G=F();window?.matchMedia("(prefers-color-scheme: dark)")?.addEventListener("change",F);function F(){let $=window?.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";return K(m,$),$}return G}function K(m,G){const F=s?m.parentElement:document.body,$=s?m:m.parentElement;$.style.background="var(--body-background-fill)",G==="dark"?F.classList.add("dark"):F.classList.remove("dark")}let R={message:"",load_status:"pending",status:"sleeping",detail:"SLEEPING"},H,ue=!1;function ae(m){r(13,R=m)}Jt(async()=>{window.__gradio_mode__!=="website"&&r(15,P=ie(j));const m=k||b||N||location.origin;r(16,H=await x(m,{status_callback:ae,normalise_files:!1})),r(12,X=H.config),window.__gradio_space__=X.space_id,r(13,R={message:"",load_status:"complete",status:"running",detail:"RUNNING"}),await U(j,X.css),r(17,ue=!0),window.__is_colab__=X.is_colab,X.dev_mode&&setTimeout(()=>{const{host:G}=new URL(m);let F=new URL(`ws://${G}/dev/reload`);_=new WebSocket(F),_.onmessage=async function($){$.data==="CHANGE"&&(r(16,H=await x(m,{status_callback:ae,normalise_files:!1})),r(16,H.config.root=H.config.path,H),r(12,X=H.config),window.__gradio_space__=X.space_id)}},200)}),Bo("upload_files",E);let v,se;async function le(){r(18,v=(await mt(()=>import("./Blocks-adefc2b9.js").then(m=>m.B),["./Blocks-adefc2b9.js","./Button-a6f781fb.js","./Button-823533fd.css","./Blocks-0733f3b3.css"],import.meta.url)).default)}async function Fe(){r(19,se=(await mt(()=>import("./Login-b32a840d.js"),["./Login-b32a840d.js","./StaticForm-057e6100.js","./StaticForm-3812b7f1.css","./InteractiveTextbox-7efce542.js","./Textbox-30a959fa.js","./Button-a6f781fb.js","./Button-823533fd.css","./BlockTitle-9c69abbf.js","./Info-7174c3d1.js","./Copy-e0208b81.js","./Textbox-dde6f8cc.css","./StaticColumn-b49908ae.js","./StaticColumn-2853eb31.css","./Login-9c3cc0eb.css"],import.meta.url)).default)}function Ae(){X.auth_required?Fe():le()}const qe={readable_error:{NO_APP_FILE:o("errors.no_app_file"),CONFIG_ERROR:o("errors.config_error"),BUILD_ERROR:o("errors.build_error"),RUNTIME_ERROR:o("errors.runtime_error"),PAUSED:o("errors.space_paused")},title(m){return encodeURIComponent(o("errors.space_not_working"))},description(m,G){return encodeURIComponent(`Hello, 10 11Firstly, thanks for creating this space! 12 13I noticed that the space isn't working correctly because there is ${this.readable_error[m]||"an error"}. 14 15It would be great if you could take a look at this because this space is being embedded on ${G}. 16 17Thanks!`)}};Jt(async()=>{lo.register(A,j)});function Ve(m){W=m,r(10,W)}function Z(m){fe=m,r(11,fe)}
17function Y(m){j=m,r(9,j)}return e.$$set=m=>{"autoscroll"in m&&r(0,i=m.autoscroll),"version"in m&&r(1,a=m.version),"initial_height"in m&&r(2,l=m.initial_height),"app_mode"in m&&r(3,u=m.app_mode),"is_embed"in m&&r(4,s=m.is_embed),"theme_mode"in m&&r(23,c=m.theme_mode),"control_page_title"in m&&r(5,f=m.control_page_title),"container"in m&&r(6,d=m.container),"info"in m&&r(7,p=m.info),"eager"in m&&r(24,h=m.eager),"mount_css"in m&&r(25,w=m.mount_css),"client"in m&&r(26,x=m.client),"upload_files"in m&&r(27,E=m.upload_files),"worker_proxy"in m&&r(28,g=m.worker_proxy),"space"in m&&r(8,b=m.space),"host"in m&&r(29,k=m.host),"src"in m&&r(30,N=m.src)},e.$$.update=()=>{e.$$.dirty[0]&4096&&X?.app_id&&X.app_id,e.$$.dirty[0]&9216&&r(14,O=!W&&R.load_status!=="error"?"pending":!W&&R.load_status==="error"?"error":R.load_status),e.$$.dirty[0]&16781312|e.$$.dirty[1]&1&&X&&(h||n[A])&&Ae(),e.$$.dirty[0]&2560&&fe&&j.dispatchEvent(new CustomEvent("render",{bubbles:!0,cancelable:!1,composed:!0}))},[i,a,l,u,s,f,d,p,b,j,W,fe,X,R,O,P,H,ue,v,se,o,de,qe,c,h,w,x,E,g,k,N,n,Ve,Z,Y]}class co extends Pt{constructor(t){super(),Bt(this,t,Pc,Ac,nt,{autoscroll:0,version:1,initial_height:2,app_mode:3,is_embed:4,theme_mode:23,control_page_title:5,container:6,info:7,eager:24,mount_css:25,client:26,upload_files:27,worker_proxy:28,space:8,host:29,src:30},null,[-1,-1])}}const Cc="./assets/index-5308edc3.css";let cr;cr=[];function Oc(){class e extends HTMLElement{constructor(){super(),this.host=this.getAttribute("host"),this.space=this.getAttribute("space"),this.src=this.getAttribute("src"),this.control_page_title=this.getAttribute("control_page_title"),this.initial_height=this.getAttribute("initial_height")??"300px",this.is_embed=this.getAttribute("embed")??"true",this.container=this.getAttribute("container")??"true",this.info=this.getAttribute("info")??!0,this.autoscroll=this.getAttribute("autoscroll"),this.eager=this.getAttribute("eager"),this.theme_mode=this.getAttribute("theme_mode"),this.updating=!1,this.loading=!1}async connectedCallback(){this.loading=!0,this.app&&this.app.$destroy(),typeof cr!="string"&&cr.forEach(n=>Zt(n,document.head)),await Zt(Cc,document.head);const r=new CustomEvent("domchange",{bubbles:!0,cancelable:!1,composed:!0});new MutationObserver(n=>{this.dispatchEvent(r)}).observe(this,{childList:!0}),this.app=new co({target:this,props:{space:this.space?this.space.trim():this.space,src:this.src?this.src.trim():this.src,host:this.host?this.host.trim():this.host,info:this.info!=="false",container:this.container!=="false",is_embed:this.is_embed!=="false",initial_height:this.initial_height,eager:this.eager==="true",version:"3-48-0",theme_mode:this.theme_mode,autoscroll:this.autoscroll==="true",control_page_title:this.control_page_title==="true",client:kr,upload_files:Sr,app_mode:window.__gradio_mode__==="app"}}),this.updating&&this.setAttribute(this.updating.name,this.updating.value),this.loading=!1}static get observedAttributes(){return["src","space","host"]}attributeChangedCallback(r,o,n){if((r==="host"||r==="space"||r==="src")&&n!==o){if(this.updating={name:r,value:n},this.loading)return;this.app&&this.app.$destroy(),this.space=null,this.host=null,this.src=null,r==="host"?this.host=n:r==="space"?this.space=n:r==="src"&&(this.src=n),this.app=new co({target:this,props:{space:this.space?this.space.trim():this.space,src:this.src?this.src.trim():this.src,host:this.host?this.host.trim():this.host,info:this.info!=="false",container:this.container!=="false",is_embed:this.is_embed!=="false",initial_height:this.initial_height,eager:this.eager==="true",version:"3-48-0",theme_mode:this.theme_mode,autoscroll:this.autoscroll==="true",control_page_title:this.control_page_title==="true",client:kr,upload_files:Sr,app_mode:window.__gradio_mode__==="app"}}),this.updating=!1}}}customElements.get("gradio-app")||customElements.define("gradio-app",e)}Oc();export{xa as $,nu as A,_e as B,tu as C,Jt as D,ru as E,it as F,De as G,je as H,St as I,lu as J,oe as K,su as L,oa as M,J as N,Ao as O,il as P,Se as Q,me as R,Pt as S,Kc as T,$t as U,Ea as V,Sa as W,Kt as X,Bo as Y,_o as Z,mt as _,$e as a,xe as a0,br as a1,bc as a2,cu as a3,rl as a4,ia as a5,mo as a6,ya as a7,Fc as a8,bo as a9,Hc as aA,uo as aB,dr as aC,Mc as aD,Nc as aE,be as aF,Zc as aG,au as aH,Wc as aI,Uc as aJ,Xc as aa,vo as ab,xo as ac,wo as ad,wl as ae,Gc as af,Oo as ag,zc as ah,qc as ai,qr as aj,ma as ak,jc as al,$c as am,eu as an,iu as ao,Jc as ap,Qc as aq,Yc as ar,Dc as as,ca as at,ba as au,Sr as av,Rc as aw,ke as ax,Ke as ay,uu as az,Ee as b,wt as c,vt as d,Bt as e,he as f,y as g,T as h,fr as i,B as j,S as k,Tt as l,D as m,Q as n,te as o,Or as p,Vc as q,xt as r,nt as s,L as t,ne as u,Et as v,ee as w,re as x,Me as y,ou as z}; 18//# sourceMappingURL=index-8ace7e92.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.