PageSourceSearch

https://lsh322-anime-bg-remover.hf.space/assets/init-BXnIR-ED.js

js lsh322-anime-bg-remover.hf.space collected 2026-10-04 17:04:37 UTC 103,951 bytes, 10 lines download raw bytes

vendor: 11,407 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Index-Cs2Xr3ZK.js","./FullscreenButton-D7OpqaEU.js","./MarkdownCode-DhbjNcA6.js","./index-BvFm9VBJ.js","./index-BVoOcrq_.css","./prism-python-Dt5iPx6n.js","./MarkdownCode-CqW9htQV.css","./FullscreenButton-BYduS5IX.css","./StreamingBar-Bc_J-1Oe.js","./StreamingBar-Dq7cCzkm.css","./Index-BfRBQxVE.js","./Index-Bp6-wsMo.css","./Index-YcGCkygm.css","./Index-_7md-cbj.js","./Index-B3uxtn26.css","./StaticAudio-DeNigQEJ.js","./AudioPlayer-BYiM-y_F.js","./hls-C7-VjdhD.js","./AudioPlayer-Bioz4LGv.css","./Example-DW8ARmNI.js","./Example-2_XpXLIx.css","./index-B4h5bscD.js","./InteractiveAudio-D_8VTM59.js","./ModifyUpload-DeA0LoIt.js","./ModifyUpload-REHVxGq-.css","./InteractiveAudio-DkbXm_Wx.css","./Index-rVljG9iX.js","./Index-pdP2Ma66.js","./__vite-browser-external-D7Ct-6yo.js","./Index-B3LAmjeV.js","./Image-0bVIZe-w.js","./Image-Ds1uFAjO.css","./ImagePreview-AieVzSem.js","./ImagePreview-D5bl4ZzZ.css","./Index-VLJFaMM1.css","./Index-B8Pd4Lb3.js","./index-CnqicUFC.js","./Index-LbNTTE3T.css","./Example-D5YxIsQj.js","./Index-BOuwRgkY.js","./Index-a-pQRFMj.css","./Example-mHz6_3U2.js","./Index-CqOtMOH5.js","./Index-ByCYYE22.css","./Example-Do2HGpgf.js","./Example-D4vuQ8w9.css","./Index-Dum9Q1EU.js","./Index-D_8bvB3d.css","./Example-CXIB7Ya_.js","./Example-Cl1JGlzw.css","./Index-CD25Wgk-.js","./tinycolor-Begke6kS.js","./Index-Cz3L5lEP.css","./index-CCsXLF_U.js","./Example-BUnh5COx.js","./Example-qYVyHUA1.css","./Index-DcrZ8EMe.js","./index-tFQomdd2.js","./dsv-DB8NKgIY.js","./Index-CBM-_yxP.js","./Example-BU7VN3ij.js","./Example-D1sBsWPM.css","./Index-Dko6XNbv.css","./Index-B7RqhG-W.css","./Index-CyZu2Szj.js","./Index-BeXoEYFp.js","./Example-Bdcw8sPw.js","./Example-DRnq2kzJ.css","./Index-D812IjdW.css","./Index-mr0iIpbh.css","./Index-Cw6U5g-d.js","./Example-BBLMS951.js","./Index-BXw1GUZ1.css","./Example-Bx762nxc.js","./Index-DMT9MtmZ.js","./Index-BYNaK3k2.js","./Example-CXKuTmQ6.js","./Index-B8k0osbz.css","./Index-D01C4iWk.css","./Index-BsEd2bDn.js","./Index-DTopiiMh.css","./Index-BZh73816.js","./Index-ML6PhJec.css","./Example-cR3xzyOo.js","./Example-BjJvNKVN.css","./Index-BmTHY0Vc.js","./Index-C-vZ3ifd.css","./Example-CIE90Dgc.js","./Example-C1b-Ajeo.css","./Index-BPBQ1tyv.js","./Index-BvfIbfoO.css","./Index-cwl6r4yK.js","./Index-DMXFGchm.css","./Gallery-BL67n78w.js","./Video-NpeJCQXG.js","./Video-Dxr2ByHH.css","./Gallery-1Y3LlKu1.css","./Example-BFRraYb6.js","./Example-DmPzKeqe.css","./Index-DZMBhG0m.js","./Index-BdohJ9Zy.js","./Index-mSlsptTy.css","./Index-DkKQRf1C.js","./color-D6UHETZT.js","./Index-C9J3GN6_.css","./Index-Jj7n5uKh.js","./Index-Cup2yvT8.css","./Example-vUEPA0tM.js","./Example-BK3gyXL2.css","./Example-B34cY4k-.js","./Example-DNToQOMy.css","./Index-CNiIJ5vz.js","./Index-C0P5OBZ1.css","./Example-CYFTcOx-.js","./Example-DIQgnXqL.css","./Index-DIOa1hLn.js","./select-BigU4G0v.js","./dispatch-kxCwF96_.js","./Index-BGmaqQju.css","./Example-CnrpRzZS.js","./JSON-DKGQ805t.js","./JSON-oocacrvV.css","./Example-C0AteSIo.css","./Index-CVx-7-ds.js","./Index-Bj8kwnTg.js","./Index-Db-S_rhj.css","./Example-DCK-h4K5.js","./Index-Duw1Ex3_.js","./Index-CRfssLQd.css","./Example-Plzo0itC.js","./Index-B9ryiuI8.js","./Index-CBOTzXyy.css","./Example-BBjx1b42.js","./Example-C8iE-5-4.css","./Index-BkBxWuEY.js","./Index-Cj521F3D.css","./Index-BjzgPxyc.js","./Index-CRDZOrHF.css","./Index-CxH6peC8.js","./Example-DiimdKNC.js","./Index-CD-kR0cn.js","./Index-D-fiIdl6.css","./Example-D5podvjf.js","./Index-kC9DrMte.js","./Index-B22UxSuO.css","./Plot-BRD6neGc.js","./Index-B5WAvxJL.js","./Example-Ch2O2d18.js","./Index-BF_hzea6.js","./Index-CZxO08Kq.css","./Index-BCXlnuLP.js","./Index-Ci4eVLjY.css","./Index-B_mNy5_p.js","./Index-3q62CqrC.css","./Index-CJMF8twY.js","./Index-C4baFzFZ.css","./Example-C_JLPM_G.js","./Index-D0HA99MU.js","./Index-BdvHG3t0.css","./index-Cj0s8x3E.js","./Index-BzSB-Gw1.js","./Index-BDvNm1t_.js","./Index-DqCgYdoJ.css","./Index-C8GNV2pm.css","./Index-6VNooAx4.js","./Index-NxvmjJPq.css","./Index-4V1RXY5w.js","./Index-CaNpT1A3.css","./VideoPreview-BWnTjimv.js","./VideoPreview-CFjQSOD8.css","./Example-CWdYwkGs.js","./Example-DsiMUgiT.css","./index-CvGSttSg.js","./index-Bsg08AHY.css","./Example-CvSfqFaB.js","./Index-DFaa-GYj.js","./Index-BV1vZ3md.css"])))=>i.map(i=>d[i]);
2import{_ as u}from"./index-BvFm9VBJ.js";const qr="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='10'%20fill='none'%3e%3cpath%20fill='%23FF3270'%20d='M1.93%206.03v2.04h2.04V6.03H1.93Z'/%3e%3cpath%20fill='%23861FFF'%20d='M6.03%206.03v2.04h2.04V6.03H6.03Z'/%3e%3cpath%20fill='%23097EFF'%20d='M1.93%201.93v2.04h2.04V1.93H1.93Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M.5%201.4c0-.5.4-.9.9-.9h3.1a.9.9%200%200%201%20.87.67A2.44%202.44%200%200%201%209.5%202.95c0%20.65-.25%201.24-.67%201.68.39.1.67.46.67.88v3.08c0%20.5-.4.91-.9.91H1.4a.9.9%200%200%201-.9-.9V1.4Zm1.43.53v2.04h2.04V1.93H1.93Zm0%206.14V6.03h2.04v2.04H1.93Zm4.1%200V6.03h2.04v2.04H6.03Zm0-5.12a1.02%201.02%200%201%201%202.04%200%201.02%201.02%200%200%201-2.04%200Z'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23FFD702'%20d='M7.05%201.93a1.02%201.02%200%201%200%200%202.04%201.02%201.02%200%200%200%200-2.04Z'/%3e%3c/svg%3e";function ue(){}const Po=e=>e;function Oo(e,t){for(const r in t)e[r]=t[r];return e}function $r(e){return e()}function Qr(e){e.forEach($r)}function Jr(e){return typeof e=="function"}function Yr(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function Qt(e,...t){if(e==null){for(const n of t)n(void 0);return ue}const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function Jt(e){let t;return Qt(e,r=>t=r)(),t}function wo(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}const le=[];function Kr(e,t){return{subscribe:K(e,t).subscribe}}function K(e,t=ue){let r;const n=new Set;function i(a){if(Yr(e,a)&&(e=a,r)){const c=!le.length;for(const l of n)l[1](),le.push(l,e);if(c){for(let l=0;l<le.length;l+=2)le[l][0](le[l+1]);le.length=0}}}function o(a){i(a(e))}function s(a,c=ue){const l=[a,c];return n.add(l),n.size===1&&(r=t(i,o)||ue),a(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function oe(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Kr(r,(s,a)=>{let c=!1;const l=[];let f=0,_=ue;const h=()=>{if(f)return;_();const x=t(n?l[0]:l,s,a);o?s(x):_=Jr(x)?x:ue},m=i.map((x,L)=>Qt(x,S=>{l[L]=S,f&=~(1<<L),c&&h()},()=>{f|=1<<L}));return c=!0,h(),function(){Qr(m),_(),c=!1}})}var Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lo(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var tn=function(t){return rn(t)&&!nn(t)};function rn(e){return!!e&&typeof e=="object"}function nn(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sn(e)}var on=typeof Symbol=="function"&&Symbol.for,an=on?Symbol.for("react.element"):60103;function sn(e){return e.$$typeof===an}function ln(e){return Array.isArray(e)?[]:{}}function Te(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ce(ln(e),e,t):e}function un(e,t,r){return e.concat(t).map(function(n){return Te(n,r)})}function cn(e,t){if(!t.customMerge)return ce;var r=t.customMerge(e);return typeof r=="function"?r:ce}function fn(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function bt(e){return Object.keys(e).concat(fn(e))}function Yt(e,t){try{return t in e}catch{return!1}}function hn(e,t){return Yt(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function _n(e,t,r){var n={};return r.isMergeableObject(e)&&bt(e).forEach(function(i){n[i]=Te(e[i],r)}),bt(t).forEach(function(i){hn(e,i)||(Yt(e,i)&&r.isMergeableObject(t[i])?n[i]=cn(i,r)(e[i],t[i],r):n[i]=Te(t[i],r))}),n}function ce(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||un,r.isMergeableObject=r.isMergeableObject||tn,r.cloneUnlessOtherwiseSpecified=Te;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):_n(e,t,r):Te(t,r)}ce.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return ce(n,i,r)},{})};var pn=ce,mn=pn;const dn=en(mn);var Ye=function(e,t){return Ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ye(e,t)};function Ce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ye(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var w=function(){return w=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},w.apply(this,arguments)};function gn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function ze(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Xe(e,t){var r=t&&t.cache?t.cache:An,n=t&&t.serializer?t.serializer:xn,i=t&&t.strategy?t.strategy:En;return i(e,{cache:r,serializer:n})}function bn(e){return e==null||typeof e=="number"||typeof e=="boolean"}function vn(e,t,r,n){var i=bn(n)?n:r(n),o=t.get(i);return typeof o>"u"&&(o=e.call(this,n),t.set(i,o)),o}function Kt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,n),t.set(i,o)),o}function er(e,t,r,n,i){return r.bind(t,e,n,i)}function En(e,t){var r=e.length===1?vn:Kt;return er(e,this,r,t.cache.create(),t.serializer)}function yn(e,t){return er(e,this,Kt,t.cache.create(),t.serializer)}var xn=function(){return JSON.stringify(arguments)},Tn=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),An={create:function(){return new Tn}},We={variadic:yn},A;(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_
vendor: 5,130 bytes, line 2
2NUMBER_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"})(A||(A={}));var B;(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"})(B||(B={}));var fe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(fe||(fe={}));function vt(e){return e.type===B.literal}function Pn(e){return e.type===B.argument}function tr(e){return e.type===B.number}function rr(e){return e.type===B.date}function nr(e){return e.type===B.time}function ir(e){return e.type===B.select}function or(e){return e.type===B.plural}function On(e){return e.type===B.pound}function ar(e){return e.type===B.tag}function sr(e){return!!(e&&typeof e=="object"&&e.type===fe.number)}function Ke(e){return!!(e&&typeof e=="object"&&e.type===fe.dateTime)}var lr=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wn=/(?:[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 In(e){var t={};return e.replace(wn,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===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"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-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=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-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"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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 Ln=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Sn(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Ln).filter(function(h){return h.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],c=s.slice(1),l=0,f=c;l<f.length;l++){var _=f[l];if(_.length===0)throw new Error("Invalid number skeleton")}r.push({stem:a,options:c})}return r}function Rn(e){return e.replace(/^(.*?)-/,"")}var Et=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ur=/^(@+)?(\+|#+)?[rs]?$/g,Hn=/(\*)(0+)|(#+)(0+)|(0+)/g,cr=/^(0+)$/;function yt(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ur,function(r,n,i){return typeof i!="str
2ing"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function fr(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 Dn(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)),!cr.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function xt(e){var t={},r=fr(e);return r||t}function Bn(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=Rn(i.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=w(w(w({},t),{notation:"scientific"}),i.options.reduce(function(c,l){return w(w({},c),xt(l))},{}));continue;case"engineering":t=w(w(w({},t),{notation:"engineering"}),i.options.reduce(function(c,l){return w(w({},c),xt(l))},{}));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(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Hn,function(c,l,f,_,h,m){if(l)t.minimumIntegerDigits=f.length;else{if(_&&h)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(cr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Et.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Et,function(c,l,f,_,h,m){return f==="*"?t.minimumFractionDigits=l.length:_&&_[0]==="#"?t.maximumFractionDigits=_.length:h&&m?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+m.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var o=i.options[0];o==="w"?t=w(w({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=w(w({},t),yt(o)));continue}if(ur.test(i.stem)){t=w(w({},t),yt(i.stem));continue}var s=fr(i.stem);s&&(t=w(w({},t),s));var a=Dn(i.stem);a&&(t=w(w({},t),a))}return t}var we={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
vendor: 37,020 bytes, lines 2-6
2:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Nn(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),a=o<2?1:3+(o>>1),c="a",l=Cn(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)r+=c;for(;s-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function Cn(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,n;r!=="root"&&(n=e.maximize().region);var i=we[n||""]||we[r||""]||we["".concat(r,"-001")]||we["001"];return i[0]}var Ze,Mn=new RegExp("^".concat(lr.source,"*")),Vn=new RegExp("".concat(lr.source,"*$"));function O(e,t){return{start:e,end:t}}var kn=!!String.prototype.startsWith&&"_a".startsWith("a",1),Un=!!String.fromCodePoint,jn=!!Object.fromEntries,Gn=!!String.prototype.codePointAt,Fn=!!String.prototype.trimStart,zn=!!String.prototype.trimEnd,Xn=!!Number.isSafeInteger,Wn=Xn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},et=!0;try{var Zn=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");et=((Ze=Zn.exec("a"))===null||Ze===void 0?void 0:Ze[0])==="a"}catch{et=!1}var Tt=kn?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},tt=Un?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return n},At=jn?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],a=o[1];r[s]=a}return r},hr=Gn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},qn=Fn?function(t){return t.trimStart()}:function(t){return t.replace(Mn,"")},$n=zn?function(t){return t.trimEnd()}:function(t){return t.replace(Vn,"")};function _r(e,t){return new RegExp(e,t)}var rt;if(et){var Pt=_r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");rt=function(t,r){var n;Pt.lastIndex=r;var i=Pt.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else rt=function(t,r){for(var n=[];;){var i=hr(t,r);if(i===void 0||pr(i)||Kn(i))break;n.push(i),r+=i>=65536?2:1}return tt.apply(void 0,n)};var Qn=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,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:B.pound,location:O(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(A.UNMATCHED_CLOSING_TAG,O(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&nt(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:B.literal,value:"<".concat(i,"/>"),location:O(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!nt(this.char()))return this.error(A.INVALID_TAG,O(a,this.clonePosition()));var c=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(A.UNMATCHED_CLOSING_TAG,O(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:B.tag,value:i,children:s,location:O(n,this.clonePosition())},err:null}:this.error(A.INVALID_TAG,O(a,this.clonePosition())))}else return this.error(A.UNCLOSED_TAG,O(n,this.clonePosition()))}else return this.error(A.INVALID_TAG,O(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Yn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var c=O(n,this.clonePosition());return{val:{type:B.literal,value:i,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Jn(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 n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return tt.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),tt(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,O(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(A.EMPTY_ARGUMENT,O(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(A.MALFORMED_ARGUMENT,O(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,O(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:B.argument,value:i,location:O(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,O(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(A.MALFORMED_ARGUMENT,O(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=rt(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=O(t,o);return{value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(a){case"":return this.error(A.EXPECT_ARGUMENT_TYPE,O(s,c));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),_=this.parseSimpleArgStyleIfPossible();if(_.err)return _;var h=$n(_.val);if(h.length===0)return this.error(A.EXPECT_ARGUMENT_STYLE,O(this.clonePosition(),this.clonePosition()));var m=O(f,this.clonePosition());l={style:h,styleLocation:m}}var x=this.tryParseArgumentClose(i);if(x.err)return x;var L=O(i,this.clonePosition());if(l&&Tt(l?.style,"::",0)){var S=qn(l.style.slice(2));if(a==="number"){var _=this.parseNumberSkeletonFromString(S,l.styleLocation);return _.err?_:{val:{type:B.number,value:n,location:L,style:_.val},err:null}}else{if(S.length===0)return this.error(A.EXPECT_DATE_TIME_SKELETON,L);var k=S;this.locale&&(k=Nn(S,this.locale));var h={type:fe.dateTime,pattern:k,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?In(k):{}},N=a==="date"?B.date:B.time;return{val:{type:N,value:n,location:L,style:h},err:null}}}return{val:{type:a==="number"?B.number:a==="date"?B.date:B.time,value:n,location:L,style:(o=l?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var R=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS,O(R,w({},R)));this.bumpSpace();var V=this.parseIdentifierIfPossible(),C=0;if(a!=="select"&&V.value==="offset"){if(!this.bumpIf(":"))return this.error(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O(this.clonePosition(),this.clonePosition()));this.bumpSpace();var _=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,A.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(_.err)return _;this.bumpSpace(),V=this.parseIdentifierIfPossible(),C=_.val}var j=this.tryParsePluralOrSelectOptions(t,a,r,V);if(j.err)return j;var x=this.tryParseArgumentClose(i);if(x.err)return x;var y=O(i,this.clonePosition());return a==="select"?{val:{type:B.select,value:n,options:At(j.val),location:y},err:null}:{val:{type:B.plural,value:n,options:At(j.val),offset:C,pluralType:a==="plural"?"cardinal":"ordinal",location:y},err:null}}default:return this.error(A.INVALID_ARGUMENT_TYPE,O(s,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(A.EXPECT_ARGUMENT_CLOSING_BRACE,O(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(A.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,O(i,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 n=[];try{n=Sn(t)}catch{return this.error(A.INVALID_NUMBER_SKELETON,r)}return{val:{type:fe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?Bn(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,a=[],c=new Set,l=i.value,f=i.location;;){if(l.length===0){var _=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(A.EXPECT_PLURAL_ARGUMENT_SELECTOR,A.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;f=O(_,this.clonePosition()),l=this.message.slice(_.offset,this.offset())}else break}if(c.has(l))return this.error(r==="select"?A.DUPLICATE_SELECT_ARGUMENT_SELECTOR:A.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);l==="other"&&(s=!0),this.bumpSpace();var m=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:A.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,O(this.clonePosition(),this.clonePosition()));var x=this.parseMessage(t+1,r,n);if(x.err)return x;var L=this.tryParseArgumentClose(m);if(L.err)return L;a.push([l,{value:x.val,location:O(m,this.clonePosition())}]),c.add(l),this.bumpSpace(),o=this.parseIdentifierIfPossible(),l=o.value,f=o.location}return a.length===0?this.error(r==="select"?A.EXPECT_SELECT_ARGUMENT_SELECTOR:A.EXPECT_PLURAL_ARGUMENT_SELECTOR,O(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(A.MISSING_OTHER_CLAUSE,O(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var c=O(i,this.clonePosition());return o?(s*=n,Wn(s)?{val:s,err:null}:this.error(r,c)):this.error(t,c)},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=hr(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(Tt(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(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!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()&&pr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n??null},e}();function nt(e){return e>=97&&e<=122||e>=65&&e<=90}function Jn(e){return nt(e)||e===47}function Yn(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 pr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Kn(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 it(e){e.forEach(function(t){if(delete t.location,ir(t)||or(t))for(var r in t.options)delete t.options[r].location,it(t.options[r].value);else tr(t)&&sr(t.style)||(rr(t)||nr(t))&&Ke(t.style)?delete t.style.location:ar(t)&&it(t.children)})}function ei(e,t){t===void 0&&(t={}),t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Qn(e,t).parse();if(r.err){var n=SyntaxError(A[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t?.captureLocation||it(r.val),r.val}var he;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(he||(he={}));var Me=function(e){Ce(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ot=function(e){Ce(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),he.INVALID_VALUE,o)||this}return t}(Me),ti=function(e){Ce(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),he.INVALID_VALUE,i)||this}return t}(Me),ri=function(e){Ce(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),he.MISSING_VALUE,n)||this}return t}(Me),G;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(G||(G={}));function ni(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==G.literal||r.type!==G.literal?t.push(r):n.value+=r.value,t},[])}function ii(e){return typeof e=="function"}function Le(e,t,r,n,i,o,s){if(e.length===1&&vt(e[0]))return[{type:G.literal,value:e[0].value}];for(var a=[],c=0,l=e;c<l.length;c++){var f=l[c];if(vt(f)){a.push({type:G.literal,value:f.value});continue}if(On(f)){typeof o=="number"&&a.push({type:G.literal,value:r.getNumberFormat(t).format(o)});continue}var _=f.value;if(!(i&&_ in i))throw new ri(_,s);var h=i[_];if(Pn(f)){(!h||typeof h=="string"||typeof h=="number")&&(h=typeof h=="string"||typeof h=="number"?String(h):""),a.push({type:typeof h=="string"?G.literal:G.object,value:h});continue}if(rr(f)){var m=typeof f.style=="string"?n.date[f.style]:Ke(f.style)?f.style.parsedOptions:void 0;a.push({type:G.literal,value:r.getDateTimeFormat(t,m).format(h)});continue}if(nr(f)){var m=typeof f.style=="string"?n.time[f.style]:Ke(f.style)?f.style.parsedOptions:n.time.medium;a.push({type:G.literal,value:r.getDateTimeFormat(t,m).format(h)});continue}if(tr(f)){var m=typeof f.style=="string"?n.number[f.style]:sr(f.style)?f.style.parsedOptions:void 0;m&&m.scale&&(h=h*(m.scale||1)),a.push({type:G.literal,value:r.getNumberFormat(t,m).format(h)});continue}if(ar(f)){var x=f.children,L=f.value,S=i[L];if(!ii(S))throw new ti(L,"function",s);var k=Le(x,t,r,n,i,o),N=S(k.map(function(C){return C.value}));Array.isArray(N)||(N=[N]),a.push.apply(a,N.map(function(C){return{type:typeof C=="string"?G.literal:G.object,value:C}}))}if(ir(f)){var R=f.options[h]||f.options.other;if(!R)throw new Ot(f.value,h,Object.keys(f.options),s);a.push.apply(a,Le(R.value,t,r,n,i));continue}if(or(f)){var R=f.options["=".concat(h)];if(!R){if(!Intl.PluralRules)throw new Me(`Intl.PluralRules is not available in this environment.
3Try polyfilling it using "@formatjs/intl-pluralrules"
4`,he.MISSING_INTL_API,s);var V=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));R=f.options[V]||f.options.other}if(!R)throw new Ot(f.value,h,Object.keys(f.options),s);a.push.apply(a,Le(R.value,t,r,n,i,h-(f.offset||0)));continue}}return ni(a)}function oi(e,t){return t?w(w(w({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=w(w({},e[n]),t[n]||{}),r},{})):e}function ai(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=oi(e[n],t[n]),r},w({},e)):e}function qe(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function si(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,ze([void 0],r,!1)))},{cache:qe(e.number),strategy:We.variadic}),getDateTimeFormat:Xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,ze([void 0],r,!1)))},{cache:qe(e.dateTime),strategy:We.variadic}),getPluralRules:Xe(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,ze([void 0],r,!1)))},{cache:qe(e.pluralRules),strategy:We.variadic})}}var mr=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var l=o.formatToParts(c);if(l.length===1)return l[0].value;var f=l.reduce(function(_,h){return!_.length||h.type!==G.literal||typeof _[_.length-1]!="string"?_.push(h.value):_[_.length-1]+=h.value,_},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(c){return Le(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.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`");var s=i||{};s.formatters;var a=gn(s,["formatters"]);this.ast=e.__parse(t,w(w({},a),{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=ai(e.formats,n),this.formatters=i&&i.formatters||si(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){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=ei,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}();function li(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]]}else n=void 0;return n}const te={},ui=(e,t,r)=>r&&(t in te||(te[t]={}),e in te[t]||(te[t][e]=r),r),dr=(e,t)=>{if(t==null)return;if(t in te&&e in te[t])return te[t][e];const r=Pe(t);for(let n=0;n<r.length;n++){const i=r[n],o=fi(i,e);if(o)return ui(e,t,o)}};let ft;const pe=K({});function ci(e){return ft[e]||null}function ht(e){return e in ft}function fi(e,t){if(!ht(e))return null;const r=ci(e);return li(r,t)}function hi(e){if(e==null)return;const t=Pe(e);for(let r=0;r<t.length;r++){const n=t[r];if(ht(n))return n}}function Se(e,...t){delete te[e],pe.update(r=>(r[e]=dn.all([r[e]||{},...t]),r))}oe([pe],([e])=>Object.keys(e));pe.subscribe(e=>ft=e);const Ee={};function _i(e){Ee[e]=new Set}function pi(e,t){Ee[e].delete(t),Ee[e].size===0&&delete Ee[e]}function ye(e){return Ee[e]}function mi(e){return Pe(e).map(t=>{const r=ye(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function He(e){return e==null?!1:Pe(e).some(t=>{var r;return(r=ye(t))==null?void 0:r.size})}function di(e,t){return Promise.all(t.map(n=>(pi(e,n),n().then(i=>i.default||i)))).then(n=>Se(e,...n))}const ge={};function gr(e){if(!He(e))return e in ge?ge[e]:Promise.resolve();const t=mi(e);return ge[e]=Promise.all(t.map(([r,n])=>di(r,n))).then(()=>{if(He(e))return gr(e);delete ge[e]}),ge[e]}function gi(e,t){ye(e)||_i(e);const r=ye(e);ye(e).has(t)||(ht(e)||pe.update(n=>(n[e]={},n)),r.add(t))}var wt=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,Ei=(e,t)=>{var r={};for(var n in e)bi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&wt)for(var n of wt(e))t.indexOf(n)<0&&vi.call(e,n)&&(r[n]=e[n]);return r};const yi={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"}}};function xi({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${Pe(e).join('", "')}".${He(re())?`
5
6Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const Ti={fallbackLocale:null,loadingDelay:200,formats:yi,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},be=Ti;function _e(){return be}function Ai(e){const t=e,{formats:r}=t,n=Ei(t,["formats"]);let i=e.fallbackLocale;if(e.initialLocale)try{mr.resolveLocale(e.initialLocale)&&(i=e.initialLocale)}catch{console.warn(`[svelte-i18n] The initial locale "${e.initialLocale}" is not a valid locale.`)}return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=xi:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(be,n,{initialLocale:i}),r&&("number"in r&&Object.assign(be.formats.number,r.number),"date"in r&&Object.assign(be.formats.date,r.date),"time"in r&&Object.assign(be.formats.time,r.time)),ae.set(i)}const $e=K(!1);var Pi=Object.defineProperty,Oi=Object.defineProperties,wi=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,Li=Object.prototype.propertyIsEnumerable,Lt=(e,t,r)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Si=(e,t)=>{for(var r in t||(t={}))Ii.call(t,r)&&Lt(e,r,t[r]);if(It)for(var r of It(t))Li.call(t,r)&&Lt(e,r,t[r]);return e},Ri=(e,t)=>Oi(e,wi(t));let ot;const De=K(null);function St(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Pe(e,t=_e().fallbackLocale){const r=St(e);return t?[...new Set([...r,...St(t)])]:r}function re(){return ot??void 0}De.subscribe(e=>{ot=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Hi=e=>{if(e&&hi(e)&&He(e)){const{loadingDelay:t}=_e();let r;return typeof window<"u"&&re()!=null&&t?r=window.setTimeout(()=>$e.set(!0),t):$e.set(!0),gr(e).then(()=>{De.set(e)}).finally(()=>{clearTimeout(r),$e.set(!1)})}return De.set(e)},ae=Ri(Si({},De),{set:Hi}),Di=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],Ve=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Bi=Object.defineProperty,Be=Object.getOwnPropertySymbols,br=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,Rt=(e,t,r)=>t in e?Bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_t=(e,t)=>{for(var r in t||(t={}))br.call(t,r)&&Rt(e,r,t[r]);if(Be)for(var r of Be(t))vr.call(t,r)&&Rt(e,r,t[r]);return e},me=(e,t)=>{var r={};for(var n in e)br.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Be)for(var n of Be(e))t.indexOf(n)<0&&vr.call(e,n)&&(r[n]=e[n]);return r};const Ae=(e,t)=>{const{formats:r}=_e();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Ni=Ve(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=Ae("number",n)),new Intl.NumberFormat(r,i)}),Ci=Ve(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=Ae("date",n):Object.keys(i).length===0&&(i=Ae("date","short")),new Intl.DateTimeFormat(r,i)}),Mi=Ve(e=>{var t=e,{locale:r,format:n}=t,i=me(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=Ae("time",n):Object.keys(i).length===0&&(i=Ae("time","short")),new Intl.DateTimeFormat(r,i)}),Vi=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Ni(_t({locale:r},n))},ki=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Ci(_t({locale:r},n))},Ui=(e={})=>{var t=e,{locale:r=re()}=t,n=me(t,["locale"]);return Mi(_t({locale:r},n))},ji=Ve((e,t=re())=>new mr(e,t,_e().formats,{ignoreTag:_e().ignoreTag})),Gi=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:a,locale:c=re(),default:l}=s;if(c==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=dr(e,c);if(!f)f=(o=(i=(n=(r=_e()).handleMissingMessage)==null?void 0:n.call(r,{locale:c,id:e,defaultValue:l}))!=null?i:l)!=null?o:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!a)return f;let _=f;try{_=ji(f,c).format(a)}catch(h){h instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,h.message)}return _},Fi=(e,t)=>Ui(t).format(e),zi=(e,t)=>ki(t).format(e),Xi=(e,t)=>Vi(t).format(e),Wi=(e,t=re())=>dr(e,t),pt=oe([ae,pe],()=>Gi);oe([ae],()=>Fi);oe([ae],()=>zi);oe([ae],()=>Xi);oe([ae,pe],()=>Wi);const at=K(null),So=Object.freeze(Object.defineProperty({__proto__:null,navbar_config:at},Symbol.toStringTag,{value:"Module"})),{SvelteComponent:Zi,append:M,attr:D,binding_callbacks:qi,component_subscribe:Ht,create_slot:$i,destroy_each:Qi,detach:ke,element:q,ensure_array_like:Dt,flush:Z,get_all_dirty_from_scope:Ji,get_slot_changes:Yi,init:Ki,insert:Ue,safe_not_equal:eo,set_data:Re,set_style:Ie,space:ie,text:ve,toggle_class:z,transition_in:to,transition_out:ro,update_slot_base:no}=window.__gradio__svelte__internal,{getContext:Ro,onMount:Ho}=window.__gradio__svelte__internal;function Bt(e,t,r){const n=e.slice();return n[22]=t[r][0],n[23]=t[r][1],n[25]=r,n}function Nt(e){let t,r,n=Dt(e[11]),i=[];for(let o=0;o<n.length;o+=1)i[o]=Ct(Bt(e,n,o));return{c(){t=q("div"),r=q("nav");for(let o=0;o<i.length;o+=1)i[o].c();D(r,"class","fillable svelte-18evea3"),z(r,"fill_width",e[3]),D(t,"class","nav-holder svelte-18evea3")},m(o,s){Ue(o,t,s),M(t,r);for(let a=0;a<i.length;a+=1)i[a]&&i[a].m(r,null)},p(o,s){if(s&3584){n=Dt(o[11]);let a;for(a=0;a<n.length;a+=1){const c=Bt(o,n,a);i[a]?i[a].p(c,s):(i[a]=Ct(c),i[a].c(),i[a].m(r,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}s&8&&z(r,"fill_width",o[3])},d(o){o&&ke(t),Qi(i,o)}}}function Ct(e){let t,r=e[23]+"",n,i,o,s,a;return{c(){t=q("a"),n=ve(r),i=ie(),D(t,"href",o=e[22].startsWith("http://")||e[22].startsWith("https://")?e[22]:`${e[10]}/${e[22]}`),D(t,"data-sveltekit-reload",""),D(t,"target",s=e[22].startsWith("http://")||e[22].startsWith("https://")?"_blank":"_self"),D(t,"rel",a=e[22].startsWith("http://")||e[22].startsWith("https://")?"noopener noreferrer":""),D(t,"class","svelte-18evea3"),z(t,"active",e[22]===e[9])},m(c,l){Ue(c,t,l),M(t,n),M(t,i)},p(c,l){l&2048&&r!==(r=c[23]+"")&&Re(n,r),l&3072&&o!==(o=c[22].startsWith("http://")||c[22].startsWith("https://")?c[22]:`${c[10]}/${c[22]}`)&&D(t,"href",o),l&2048&&s!==(s=c[22].startsWith("http://")||c[22].startsWith("https://")?"_blank":"_self")&&D(t,"target",s),l&2048&&a!==(a=c[22].startsWith("http://")||c[22].startsWith("https://")?"noopener noreferrer":"")&&D(t,"rel",a),l&2560&&z(t,"active",c[22]===c[9])},d(c){c&&ke(t)}}}function Mt(e){let t,r,n,i,o,s,a,c=e[13]("common.built_with")+"",l,f,_,h,m,x,L=e[13]("common.hosted_on")+"",S,k,N;return{c(){t=q("div"),r=q("span"),n=q("a"),i=ve(e[5]),s=ie(),a=q("span"),l=ve(c),f=ie(),_=q("a"),_.textContent="Gradio",h=ve("."),m=ie(),x=q("span"),S=ve(L),k=ie(),N=q("a"),N.innerHTML=`<span class="space-logo svelte-18evea3"><img src="${qr}" alt="Hugging Face Space" class="svelte-18evea3"/></span>
6 Spaces`,D(n,"href",o="https://huggingface.co/spaces/"+e[5]),D(n,"class","title svelte-18evea3"),D(r,"class","svelte-18evea3"),D(_,"class","gradio svelte-18evea3"),D(_,"href","https://gradio.app"),D(a,"class","svelte-18evea3"),D(N,"class","hf svelte-18evea3"),D(N,"href","https://huggingface.co/spaces"),D(x,"class","svelte-18evea3"),D(t,"class","info svelte-18evea3")},m(R,V){Ue(R,t,V),M(t,r),M(r,n),M(n,i),M(t,s),M(t,a),M(a,l),M(a,f),M(a,_),M(a,h),M(t,m),M(t,x),M(x,S),M(x,k),M(x,N)},p(R,V){V&32&&Re(i,R[5]),V&32&&o!==(o="https://huggingface.co/spaces/"+R[5])&&D(n,"href",o),V&8192&&c!==(c=R[13]("common.built_with")+"")&&Re(l,c),V&8192&&L!==(L=R[13]("common.hosted_on")+"")&&Re(S,L)},d(R){R&&ke(t)}}}function io(e){let t,r,n,i,o,s,a,c=e[12]&&Nt(e);const l=e[19].default,f=$i(l,e,e[18],null);let _=e[6]&&e[5]&&e[7]&&Mt(e);return{c(){t=q("div"),c&&c.c(),r=ie(),n=q("main"),f&&f.c(),i=ie(),o=q("div"),_&&_.c(),D(n,"class","fillable svelte-18evea3"),z(n,"fill_width",e[3]),z(n,"app",!e[6]&&!e[4]),D(t,"class",s="gradio-container gradio-container-"+e[1]+" svelte-18evea3"),D(t,"data-iframe-height",""),z(t,"fill_width",e[3]),z(t,"embed-container",e[6]),z(t,"with-info",e[7]),Ie(t,"min-height",e[8]?"initial":e[2]),Ie(t,"flex-grow",e[6]?"auto":"1")},m(h,m){Ue(h,t,m),c&&c.m(t,null),M(t,r),M(t,n),f&&f.m(n,null),M(n,i),M(n,o),_&&_.m(o,null),e[20](t),a=!0},p(h,[m]){h[12]?c?c.p(h,m):(c=Nt(h),c.c(),c.m(t,r)):c&&(c.d(1),c=null),f&&f.p&&(!a||m&262144)&&no(f,l,h,h[18],a?Yi(l,h[18],m,null):Ji(h[18]),null),h[6]&&h[5]&&h[7]?_?_.p(h,m):(_=Mt(h),_.c(),_.m(o,null)):_&&(_.d(1),_=null),(!a||m&8)&&z(n,"fill_width",h[3]),(!a||m&80)&&z(n,"app",!h[6]&&!h[4]),(!a||m&2&&s!==(s="gradio-container gradio-container-"+h[1]+" svelte-18evea3"))&&D(t,"class",s),(!a||m&10)&&z(t,"fill_width",h[3]),(!a||m&66)&&z(t,"embed-container",h[6]),(!a||m&130)&&z(t,"with-info",h[7]),m&260&&Ie(t,"min-height",h[8]?"initial":h[2]),m&64&&Ie(t,"flex-grow",h[6]?"auto":"1")},i(h){a||(to(f,h),a=!0)},o(h){ro(f,h),a=!1},d(h){h&&ke(t),c&&c.d(),f&&f.d(h),_&&_.d(),e[20](null)}}}function oo(e,t,r){let n,i,o,s;Ht(e,at,g=>r(17,o=g)),Ht(e,pt,g=>r(13,s=g));let{$$slots:a={},$$scope:c}=t,{wrapper:l}=t,{version:f}=t,{initial_height:_}=t,{fill_width:h}=t,{is_embed:m}=t,{space:x}=t,{display:L}=t,{info:S}=t,{loaded:k}=t,{pages:N=[]}=t,{current_page:R=""}=t,{root:V}=t,{components:C=[]}=t,j=C.find(g=>g.type==="navbar"),y=j?{visible:j.props.visible,main_page_name:j.props.main_page_name,value:j.props.value}:null;y&&at.set(y);function F(g){qi[g?"unshift":"push"](()=>{l=g,r(0,l)})}return e.$$set=g=>{"wrapper"in g&&r(0,l=g.wrapper),"version"in g&&r(1,f=g.version),"initial_height"in g&&r(2,_=g.initial_height),"fill_width"in g&&r(3,h=g.fill_width),"is_embed"in g&&r(4,m=g.is_embed),"space"in g&&r(5,x=g.space),"display"in g&&r(6,L=g.display),"info"in g&&r(7,S=g.info),"loaded"in g&&r(8,k=g.loaded),"pages"in g&&r(14,N=g.pages),"current_page"in g&&r(9,R=g.current_page),"root"in g&&r(10,V=g.root),"components"in g&&r(15,C=g.components),"$$scope"in g&&r(18,c=g.$$scope)},e.$$.update=()=>{e.$$.dirty&131072&&o&&r(16,y={visible:o.visible??!0,main_page_name:o.main_page_name??"Home",value:o.value??null}),e.$$.dirty&81920&&r(12,n=N.length>1&&(y===null||y.visible!==!1)),e.$$.dirty&81920&&r(11,i=(()=>{let g=N.filter(([X,Q,W],Y)=>Y===0&&X===""?y?.main_page_name!==!1:W!==!1),$=y&&y.main_page_name!==!1&&y.main_page_name!=="Home"?g.map(([X,Q,W],Y)=>Y===0&&X===""&&Q==="Home"?[X,y.main_page_name]:[X,Q]):g.map(([X,Q])=>[X,Q]);if(y?.value&&y.value.length>0){const X=new Set($.map(([W])=>W)),Q=y.value.map(([W,Y])=>[Y,W]).filter(([W])=>!X.has(W));return[...$,...Q]}return $})())},[l,f,_,h,m,x,L,S,k,R,V,i,n,s,N,C,y,o,c,a,F]}class Do extends Zi{constructor(t){super(),Ki(this,t,oo,io,eo,{wrapper:0,version:1,initial_height:2,fill_width:3,is_embed:4,space:5,display:6,info:7,loaded:8,pages:14,current_page:9,root:10,components:15})}get wrapper(){return this.$$.ctx[0]}set wrapper(t){this.$$set({wrapper:t}),Z()}get version(){return this.$$.ctx[1]}set version(t){this.$$set({version:t}),Z()}get initial_height(){return this.$$.ctx[2]}set initial_height(t){this.$$set({initial_height:t}),Z()}get fill_width(){return this.$$.ctx[3]}set fill_width(t){this.$$set({fill_width:t}),Z()}get is_embed(){return this.$$.ctx[4]}set is_embed(t){this.$$set({is_embed:t}),Z()}get space(){return this.$$.ctx[5]}set space(t){this.$$set({space:t}),Z()}get display(){return this.$$.ctx[6]}set display(t){this.$$set({display:t}),Z()}get info(){return this.$$.ctx[7]}set info(t){this.$$set({info:t}),Z()}get loaded(){return this.$$.ctx[8]}set loaded(t){this.$$set({loaded:t}),Z()}get pages(){return this.$$.ctx[14]}set pages(t){this.$$set({pages:t}),Z()}get current_page(){return this.$$.ctx[9]}set current_page(t){this.$$set({current_page:t}),Z()}get root(){return this.$$.ctx[10]}set root(t){this.$$set({root:t}),Z()}get components(){return this.$$.ctx[15]}set components(t){this.$$set({components:t}),Z()}}let Er=!1;typeof window<"u"&&"attachShadow"in Element.prototype&&"adoptedStyleSheets"in Document.prototype&&(Er="adoptedStyleSheets"in document.createElement("div").attachShadow({mode:"open"}));
vendor: 25,641 bytes, lines 6-7
6function Bo(e,t){const r=new URL(import.meta.url).origin;var n=e;if(window.location.origin!==r&&(n=new URL(e,r).href),document.querySelector(`link[href='${n}']`))return Promise.resolve();const o=document.createElement("link");return o.rel="stylesheet",o.href=n,new Promise((s,a)=>{o.addEventListener("load",()=>s()),o.addEventListener("error",()=>{console.error(`Unable to preload CSS for ${n}`),s()}),t.appendChild(o)})}function No(e,t,r){if(!Er)return e;r||(r=document.createElement("style")),r.remove();const n=new CSSStyleSheet;n.replaceSync(e);let i="";e=e.replace(/@import\s+url\((.*?)\);\s*/g,(c,l)=>(i+=`@import url(${l});
7`,""));const o=n.cssRules;let s="",a=`.gradio-container.gradio-container-${t} .contain `;for(let c=0;c<o.length;c++){const l=o[c];let f=l.cssText.includes(".dark");if(l instanceof CSSStyleRule){const _=l.selectorText;if(_){const h=_.replace(".dark","").split(",").map(m=>`${f?".dark":""} ${a} ${m.trim()} `).join(",");s+=l.cssText,s+=l.cssText.replace(_,h)}}else if(l instanceof CSSMediaRule){let _=`@media ${l.media.mediaText} {`;for(let h=0;h<l.cssRules.length;h++){const m=l.cssRules[h];if(m instanceof CSSStyleRule){let x=m.cssText.includes(".dark ");const L=m.selectorText,S=L.replace(".dark","").split(",").map(k=>`${x?".dark":""} ${a} ${k.trim()} `).join(",");_+=m.cssText.replace(L,S)}}_+="}",s+=_}else if(l instanceof CSSKeyframesRule){s+=`@keyframes ${l.name} {`;for(let _=0;_<l.cssRules.length;_++){const h=l.cssRules[_];h instanceof CSSKeyframeRule&&(s+=`${h.keyText} { ${h.style.cssText} }`)}s+="}"}else l instanceof CSSFontFaceRule&&(s+=`@font-face { ${l.style.cssText} }`)}return i+s}var Vt=Object.prototype.hasOwnProperty;function kt(e,t,r){for(r of e.keys())if(xe(r,t))return r}function xe(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&xe(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(i=n,i&&typeof i=="object"&&(i=kt(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=kt(t,i),!i)||!xe(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Vt.call(e,r)&&++n&&!Vt.call(t,r)||!(r in t)||!xe(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const ao={accordion:{component:()=>u(()=>import("./Index-Cs2Xr3ZK.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url)},annotatedimage:{component:()=>u(()=>import("./Index-_7md-cbj.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,14]),import.meta.url)},audio:{base:()=>u(()=>import("./StaticAudio-DeNigQEJ.js"),__vite__mapDeps([15,1,2,3,4,5,6,7,16,17,18]),import.meta.url),example:()=>u(()=>import("./Example-DW8ARmNI.js"),__vite__mapDeps([19,20]),import.meta.url),component:()=>u(()=>import("./index-B4h5bscD.js"),__vite__mapDeps([21,15,1,2,3,4,5,6,7,16,17,18,22,23,24,8,9,25,19,20]),import.meta.url)},box:{component:()=>u(()=>import("./Index-rVljG9iX.js"),__vite__mapDeps([26,1,2,3,4,5,6,7]),import.meta.url)},browserstate:{component:()=>u(()=>import("./Index-pdP2Ma66.js"),__vite__mapDeps([27,28,3,4]),import.meta.url)},button:{component:()=>u(()=>import("./Index-B3LAmjeV.js"),__vite__mapDeps([29,3,4,30,31,32,1,2,5,6,7,33,34]),import.meta.url)},chatbot:{component:()=>u(()=>import("./Index-B8Pd4Lb3.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,30,31,32,33,8,9,36,37]),import.meta.url)},checkbox:{example:()=>u(()=>import("./Example-D5YxIsQj.js"),__vite__mapDeps([38,20]),import.meta.url),component:()=>u(()=>import("./Index-BOuwRgkY.js"),__vite__mapDeps([39,1,2,3,4,5,6,7,8,9,40]),import.meta.url)},checkboxgroup:{example:()=>u(()=>import("./Example-mHz6_3U2.js"),__vite__mapDeps([41,20]),import.meta.url),component:()=>u(()=>import("./Index-CqOtMOH5.js"),__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,43]),import.meta.url)},code:{example:()=>u(()=>import("./Example-Do2HGpgf.js"),__vite__mapDeps([44,45]),import.meta.url),component:()=>u(()=>import("./Index-Dum9Q1EU.js").then(e=>e.M),__vite__mapDeps([46,3,4,1,2,5,6,7,8,9,44,45,47]),import.meta.url)},colorpicker:{example:()=>u(()=>import("./Example-CXIB7Ya_.js"),__vite__mapDeps([48,49]),import.meta.url),component:()=>u(()=>import("./Index-CD25Wgk-.js"),__vite__mapDeps([50,51,1,2,3,4,5,6,7,8,9,48,49,52]),import.meta.url)},column:{component:()=>u(()=>import("./Index-BfRBQxVE.js"),__vite__mapDeps([10,8,1,2,3,4,5,6,7,9,11]),import.meta.url)},core:{component:()=>u(()=>import("./index-CCsXLF_U.js"),__vite__mapDeps([53,3,4]),import.meta.url)},dataframe:{example:()=>u(()=>import("./Example-BUnh5COx.js"),__vite__mapDeps([54,55]),import.meta.url),component:()=>u(()=>import("./Index-DcrZ8EMe.js"),__vite__mapDeps([56,1,2,3,4,5,6,7,57,58,36,23,24,39,8,9,40,59,32,30,31,33,60,61,62,54,55,63]),import.meta.url)},dataset:{component:()=>u(()=>import("./Index-CyZu2Szj.js"),__vite__mapDeps([64,1,2,3,4,5,6,7,65,8,9,66,67,68,69]),import.meta.url)},datetime:{example:()=>u(()=>import("./Example-BBLMS951.js"),[],import.meta.url),component:()=>u(()=>import("./Index-Cw6U5g-d.js"),__vite__mapDeps([70,1,2,3,4,5,6,7,71,72]),import.meta.url)},dialogue:{example:()=>u(()=>import("./Example-Bx762nxc.js"),__vite__mapDeps([73,20]),import.meta.url),component:()=>u(()=>import("./Index-DMT9MtmZ.js"),__vite__mapDeps([74,1,2,3,4,5,6,7,8,9,75,76,20,77,73,78]),import.meta.url)},downloadbutton:{component:()=>u(()=>import("./Index-BsEd2bDn.js"),__vite__mapDeps([79,3,4,29,30,31,32,1,2,5,6,7,33,34,80]),import.meta.url)},draggable:{component:()=>u(()=>import("./Index-BZh73816.js"),__vite__mapDeps([81,8,1,2,3,4,5,6,7,9,82]),import.meta.url)},dropdown:{example:()=>u(()=>import("./Example-CXKuTmQ6.js"),__vite__mapDeps([76,20]),import.meta.url),component:()=>u(()=>import("./Index-BYNaK3k2.js"),__vite__mapDeps([75,1,2,3,4,5,6,7,8,9,76,20,77]),import.meta.url)},file:{example:()=>u(()=>import("./Example-cR3xzyOo.js"),__vite__mapDeps([83,84]),import.meta.url),component:()=>u(()=>import("./Index-BmTHY0Vc.js"),__vite__mapDeps([85,1,2,3,4,5,6,7,23,24,8,9,83,84,86]),import.meta.url)},fileexplorer:{example:()=>u(()=>import("./Example-CIE90Dgc.js"),__vite__mapDeps([87,88]),import.meta.url),component:()=>u(()=>import("./Index-BPBQ1tyv.js"),__vite__mapDeps([89,1,2,3,4,5,6,7,8,9,90]),import.meta.url)},form:{component:()=>u(()=>import("./Index-cwl6r4yK.js"),__vite__mapDeps([91,92]),import.meta.url)},gallery:{base:()=>u(()=>import("./Gallery-BL67n78w.js"),__vite__mapDeps([93,1,2,3,4,5,6,7,23,24,30,31,32,33,94,17,95,57,96]),import.meta.url),example:()=>u(()=>import("./Example-BFRraYb6.js"),__vite__mapDeps([97,98]),import.meta.url),component:()=>u(()=>import("./Index-DZMBhG0m.js"),__vite__mapDeps([99,1,2,3,4,5,6,7,93,23,24,30,31,32,33,94,17,95,57,96,8,9,85,83,84,86,97,98]),import.meta.url)},group:{component:()=>u(()=>import("./Index-BdohJ9Zy.js"),__vite__mapDeps([100,101]),import.meta.url)},highlightedtext:{component:()=>u(()=>import("./Index-DkKQRf1C.js"),__vite__mapDeps([102,103,1,2,3,4,5,6,7,8,9,104]),import.meta.url)},html:{base:()=>u(()=>import("./Index-Jj7n5uKh.js"),__vite__mapDeps([105,8,1,2,3,4,5,6,7,9,106]),import.meta.url),example:()=>u(()=>import("./Example-vUEPA0tM.js"),__vite__mapDeps([107,108]),import.meta.url),component:()=>u(()=>import("./Index-Jj7n5uKh.js"),__vite__mapDeps([105,8,1,2,3,4,5,6,7,9,106]),import.meta.url)},image:{base:()=>u(()=>import("./ImagePreview-AieVzSem.js").then(e=>e.a),__vite__mapDeps([32,1,2,3,4,5,6,7,30,31,33]),import.meta.url),example:()=>u(()=>import("./Example-BU7VN3ij.js"),__vite__mapDeps([60,30,31,61]),import.meta.url),component:()=>u(()=>import("./Index-CBM-_yxP.js"),__vite__mapDeps([59,32,1,2,3,4,5,6,7,30,31,33,8,9,23,24,60,61,62]),import.meta.url)},imageeditor:{example:()=>u(()=>import("./Example-B34cY4k-.js"),__vite__mapDeps([109,59,32,1,2,3,4,5,6,7,30,31,33,8,9,23,24,60,61,62,110]),import.meta.url),component:()=>u(()=>import("./Index-CNiIJ5vz.js").then(e=>e.as),__vite__mapDeps([111,3,4,59,32,1,2,5,6,7,30,31,33,8,9,23,24,60,61,62,51,112]),import.meta.url)},imageslider:{example:()=>u(()=>import("./Example-CYFTcOx-.js"),__vite__mapDeps([113,114]),import.meta.url),component:()=>u(()=>import("./Index-DIOa1hLn.js"),__vite__mapDeps([115,116,117,1,2,3,4,5,6,7,8,9,23,24,118]),import.meta.url)},json:{example:()=>u(()=>import("./Example-CnrpRzZS.js"),__vite__mapDeps([119,120,1,2,3,4,5,6,7,121,122]),import.meta.url),component:()=>u(()=>import("./Index-CVx-7-ds.js"),__vite__mapDeps([123,120,1,2,3,4,5,6,7,121,8,9]),import.meta.url)},label:{component:()=>u(()=>import("./Index-Bj8kwnTg.js"),__vite__mapDeps([124,1,2,3,4,5,6,7,8,9,125]),import.meta.url)},markdown:{example:()=>u(()=>import("./Example-DCK-h4K5.js"),__vite__mapDeps([126,2,3,4,5,6,20]),import.meta.url),component:()=>u(()=>import("./Index-Duw1Ex3_.js"),__vite__mapDeps([127,1,2,3,4,5,6,7,8,9,126,20,128]),import.meta.url)},model3d:{example:()=>u(()=>import("./Example-Plzo0itC.js"),__vite__mapDeps([129,20]),import.meta.url),component:()=>u(()=>import("./Index-B9ryiuI8.js"),__vite__mapDeps([130,3,4,1,2,5,6,7,23,24,8,9,129,20,131]),import.meta.url)},multimodaltextbox:{example:()=>u(()=>import("./Example-BBjx1b42.js"),__vite__mapDeps([132,30,31,32,1,2,3,4,5,6,7,33,94,17,95,133]),import.meta.url),component:()=>u(()=>import("./Index-BkBxWuEY.js"),__vite__mapDeps([134,1,2,3,4,5,6,7,23,24,30,31,32,33,22,8,9,16,17,18,25,132,94,95,133,135]),import.meta.url)},nativeplot:{example:()=>u(()=>import("./Example-Creifpe8.js"),[],import.meta.url),component:()=>u(()=>import("./Index-BjzgPxyc.js"),__vite__mapDeps([136,3,4,1,2,5,6,7,8,9,137]),import.meta.url)},navbar:{base:()=>u(()=>import("./Index-CxH6peC8.js"),__vite__mapDeps([138,3,4]),import.meta.url),example:()=>u(()=>import("./Example-DzV-zr8S.js"),[],import.meta.url),component:()=>u(()=>import("./Index-CxH6peC8.js"),__vite__mapDeps([138,3,4]),import.meta.url)},number:{example:()=>u(()=>import("./Example-DiimdKNC.js"),__vite__mapDeps([139,20]),import.meta.url),component:()=>u(()=>import("./Index-CD-kR0cn.js"),__vite__mapDeps([140,1,2,3,4,5,6,7,8,9,141]),import.meta.url)},paramviewer:{example:()=>u(()=>import("./Example-D5podvjf.js"),__vite__mapDeps([142,20]),import.meta.url),component:()=>u(()=>import("./Index-kC9DrMte.js"),__vite__mapDeps([143,5,3,4,144]),import.meta.url)},plot:{base:()=>u(()=>import("./Plot-BRD6neGc.js"),__vite__mapDeps([145,3,4,1,2,5,6,7]),import.meta.url),component:()=>u(()=>import("./Index-B5WAvxJL.js"),__vite__mapDeps([146,145,3,4,1,2,5,6,7,8,9]),import.meta.url)},radio:{example:()=>u(()=>import("./Example-Ch2O2d18.js"),__vite__mapDeps([147,20]),import.meta.url),component:()=>u(()=>import("./Index-BF_hzea6.js"),__vite__mapDeps([148,1,2,3,4,5,6,7,8,9,147,20,149]),import.meta.url)},row:{component:()=>u(()=>import("./Index-BCXlnuLP.js"),__vite__mapDeps([150,8,1,2,3,4,5,6,7,9,151]),import.meta.url)},sidebar:{component:()=>u(()=>import("./Index-B_mNy5_p.js"),__vite__mapDeps([152,8,1,2,3,4,5,6,7,9,10,11,153]),import.meta.url)},sketchbox:{component:()=>u(()=>import("./Index-CJMF8twY.js"),__vite__mapDeps([154,155]),import.meta.url)},slider:{example:()=>u(()=>import("./Example-C_JLPM_G.js"),__vite__mapDeps([156,20]),import.meta.url),component:()=>u(()=>import("./Index-D0HA99MU.js"),__vite__mapDeps([157,1,2,3,4,5,6,7,8,9,158]),import.meta.url)},state:{component:()=>u(()=>import("./Index-uRgjJb4U.js"),[],import.meta.url)},statustracker:{component:()=>u(()=>import("./index-Cj0s8x3E.js"),__vite__mapDeps([159,8,1,2,3,4,5,6,7,9]),import.meta.url)},tabitem:{component:()=>u(()=>import("./Index-BzSB-Gw1.js"),__vite__mapDeps([160,161,3,4,162,10,8,1,2,5,6,7,9,11,163]),import.meta.url)},tabs:{component:()=>u(()=>import("./Index-BDvNm1t_.js"),__vite__mapDeps([161,3,4,162]),import.meta.url)},textbox:{example:()=>u(()=>import("./Example-Bdcw8sPw.js"),__vite__mapDeps([66,67]),import.meta.url),component:()=>u(()=>import("./Index-BeXoEYFp.js"),__vite__mapDeps([65,1,2,3,4,5,6,7,8,9,66,67,68]),import.meta.url)},timer:{component:()=>u(()=>import("./Index-BMLc4VxK.js"),[],import.meta.url)},uploadbutton:{component:()=>u(()=>import("./Index-6VNooAx4.js"),__vite__mapDeps([164,29,3,4,30,31,32,1,2,5,6,7,33,34,165]),import.meta.url)},vibeeditor:{component:()=>u(()=>import("./Index-4V1RXY5w.js"),__vite__mapDeps([166,3,4,46,1,2,5,6,7,8,9,44,45,47,127,126,20,128,167]),import.meta.url)},video:{base:()=>u(()=>import("./VideoPreview-BWnTjimv.js").then(e=>e.a),__vite__mapDeps([168,1,2,3,4,5,6,7,94,17,95,23,24,169]),import.meta.url),example:()=>u(()=>import("./Example-CWdYwkGs.js"),__vite__mapDeps([170,94,17,95,3,4,171]),import.meta.url),component:()=>u(()=>import("./index-CvGSttSg.js"),__vite__mapDeps([172,23,3,4,1,2,5,6,7,24,59,32,30,31,33,8,9,60,61,62,94,17,95,168,169,170,171,173]),import.meta.url)},walkthrough:{component:()=>u(()=>import("./Index-BDvNm1t_.js"),__vite__mapDeps([161,3,4,162]),import.meta.url)},walkthroughstep:{component:()=>u(()=>import("./Index-BzSB-Gw1.js"),__vite__mapDeps([160,161,3,4,162,10,8,1,2,5,6,7,9,11,163]),import.meta.url)}},ee={},mt=typeof window<"u";function Ut({api_url:e,name:t,id:r,variant:n}){const i=mt&&window.__GRADIO__CC__,o={...ao,...i||{}};let s=r||t;if(ee[`${s}-${n}`])return{component:ee[`${s}-${n}`],name:t};try{if(!o?.[s]?.[n]&&!o?.[t]?.[n])throw new Error;return ee[`${s}-${n}`]=(o?.[s]?.[n]||o?.[t]?.[n])(),{name:t,component:ee[`${s}-${n}`]}}catch{if(!s)throw new Error(`Component not found: ${t}`);try{return ee[`${s}-${n}`]=so(e,s,n),{name:t,component:ee[`${s}-${n}`]}}catch(c){if(n==="example")return ee[`${s}-${n}`]=u(()=>import("./Example-CvSfqFaB.js"),__vite__mapDeps([174,20]),import.meta.url),{name:t,component:ee[`${s}-${n}`]};throw console.error(`failed to load: ${t}`),console.error(c),c}}}function jt(e){return mt?new Promise((t,r)=>{const n=document.createElement("link");n.rel="stylesheet",n.href=e,document.head.appendChild(n),n.onload=()=>t(),n.onerror=()=>r()}):Promise.resolve()}function so(e,t,r){const n=mt?"client":"server";let i;return n==="server"?Promise.all([jt(`${e}/custom_component/${t}/${r}/style.css`),u(()=>import("./Index-DFaa-GYj.js"),__vite__mapDeps([175,1,2,3,4,5,6,7,8,9,176]),import.meta.url)]).then(([o,s])=>s):(i=`${e}/custom_component/${t}/${n}/${r}/index.js`,Promise.all([jt(`${e}/custom_component/${t}/${n}/${r}/style.css`),import(i)]).then(([o,s])=>s))}function lo(){const e=K({}),t={},r={},n=new Map,i=new Map,o=new Map,s={};function a({fn_index:f,status:_,queue:h=!0,size:m,position:x=null,eta:L=null,message:S=null,progress:k,time_limit:N=null}){const R=r[f],V=t[f],C=s[f],j=R.map(y=>{let F;const g=n.get(y)||0;if(C==="pending"&&_!=="pending"){let $=g-1;n.set(y,$<0?0:$),F=$>0?"pending":_}else C==="pending"&&_==="pending"?F="pending":C!=="pending"&&_==="pending"?(F="pending",n.set(y,g+1)):F=_;return{id:y,queue_position:x,queue_size:m,eta:L,status:F,message:S,progress:k}});V.forEach(y=>{const F=i.get(y)||0;if(C==="pending"&&_!=="pending"){let g=F-1;i.set(y,g<0?0:g),o.set(y,_)}else C!=="pending"&&_==="pending"?(i.set(y,F+1),o.set(y,_)):o.delete(y)}),e.update(y=>(j.forEach(({id:F,queue_position:g,queue_size:$,eta:X,status:Q,message:W,progress:Y})=>{y[F]={queue:h,queue_size:$,queue_position:g,eta:X,message:W,progress:Y,status:Q,fn_index:f}}),y)),s[f]=_}function c(f,_,h){t[f]=_,r[f]=h}function l(f,_){e.update(h=>(h[f]={...h[f],..._},h))}return{update:a,update_component_status:l,register:c,subscribe:e.subscribe,get_status_for_fn(f){return s[f]},get_inputs_to_update(){return o}}}const Co=["red","green","blue","yellow","purple","teal","orange","cyan","lime","pink"],uo=[{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}],Gt={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",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},Mo=uo.reduce((e,{color:t,primary:r,secondary:n})=>({...e,[t]:{primary:Gt[t][r],secondary:Gt[t][n]}}),{});function yr(e){if(e==null)return"";const t=String(e),r=Jt(pt);let n=r(t);if(n!==t)return n;const i=t.toLowerCase();for(const o of po){const s=o.substring(o.indexOf(".")+1);if(i===s){const a=r(o);if(a!==o)return a;break}}return t}const Vo=oe(pt,()=>yr),Ft={ar:"جاري التحميل",ca:"S'està carregant",ckb:"بارکردن",de:"Laden",en:"Loading",es:"Cargando",eu:"Kargatzen",fa:"در حال بارگذاری",fi:"Ladataan",fr:"Chargement",he:"טוען",hi:"लोड हो रहा है",ja:"読み込み中",ko:"로딩 중",lt:"Kraunama",nb:"Laster",nl:"Laden",pl:"Ładowanie","pt-BR":"Carregando",pt:"A carregar",ro:"Se încarcă",ru:"Загрузка",sv:"Laddar",ta:"ஏற்றுகிறது",th:"กำลังโหลด",tr:"Yükleniyor",uk:"Завантаження",ur:"لوڈ ہو رہا ہے",uz:"Yuklanmoqda","zh-CN":"加载中","zh-TW":"載入中"},xr="English",Tr={annotated_image:"Annotated Image"},Ar={allow_recording_access:"Please allow access to the microphone for recording.",audio:"Audio",drop_to_upload:"Drop an audio file here to upload",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 (or you have passed a valid SSL certificate to ssl_verify), and you have allowed browser access to your device.",stop:"Stop",resume:"Resume",record:"Record",no_microphone:"No microphone found",pause:"Pause",play:"Play",waiting:"Waiting"},Pr={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...",waiting_for_inputs:"Waiting for file(s) to finish uploading, please retry."},Or={edit:"Edit",retry:"Retry",undo:"Undo",submit:"Submit",cancel:"Cancel",like:"Like",dislike:"Dislike",clear:"Clear"},wr={checkbox:"Checkbox",checkbox_group:"Checkbox Group"},Ir={code:"Code"},Lr={color_picker:"Color Picker"},Sr={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",settings:"Settings",share:"Share",submit:"Submit",undo:"Undo",no_devices:"No devices found",language:"Language",display_theme:"Display Theme",pwa:"Progressive Web App",record:"Record",stop_recording:"Stop Recording",screen_studio:"Screen Studio",share_gradio_tab:"[Sharing] Gradio Tab",run:"Run"},Rr={incorrect_format:"Incorrect format, only CSV and TSV files are supported",new_column:"Add column",new_row:"New row",add_row_above:"Add row above",add_row_below:"Add row below",delete_row:"Delete row",delete_column:"Delete column",add_column_left:"Add column to the left",add_column_right:"Add column to the right",sort_column:"Sort column",sort_ascending:"Sort ascending",sort_descending:"Sort descending",drop_to_upload:"Drop CSV or TSV files here to import data into dataframe",clear_sort:"Clear sort",filter:"Filter",clear_filter:"Clear filters"},Hr={dropdown:"Dropdown"},Dr={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",use_via_api_or_mcp:"Use via API or MCP"},Br={uploading:"Uploading..."},Nr={highlighted_text:"Highlighted Text"},Cr={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",drop_to_upload:"Drop an image file here to upload"},Mr={label:"Label"},Vr={enable_cookies:"If you are visiting a HuggingFace Space in Incognito mode, you must enable third party cookies.",incorrect_credentials:"Incorrect Credentials",username:"username",password:"password",login:"Login"},kr={number:"Number"},Ur={plot:"Plot"},jr={radio:"Radio"},Gr={slider:"Slider"},Fr={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",drop_gallery:"Drop Media Here",paste_clipboard:"Paste from Clipboard"},zr={drop_to_upload:"Drop a video file here to upload"},dt={_name:xr,"3D_model":{"3d_model":"3D Model",drop_to_upload:"Drop a 3D model (.obj, .glb, .stl, .gltf, .splat, or .ply) file here to upload"},annotated_image:Tr,audio:Ar,blocks:Pr,chatbot:Or,checkbox:wr,code:Ir,color_picker:Lr,common:Sr,dataframe:Rr,dropdown:Hr,errors:Dr,file:Br,highlighted_text:Nr,image:Cr,label:Mr,login:Vr,number:kr,plot:Ur,radio:jr,slider:Gr,upload_text:Fr,video:zr},co=Object.freeze(Object.defineProperty({__proto__:null,_name:xr,annotated_image:Tr,audio:Ar,blocks:Pr,chatbot:Or,checkbox:wr,code:Ir,color_picker:Lr,common:Sr,dataframe:Rr,default:dt,dropdown:Hr,errors:Dr,file:Br,highlighted_text:Nr,image:Cr,label:Mr,login:Vr,number:kr,plot:Ur,radio:jr,slider:Gr,upload_text:Fr,video:zr},Symbol.toStringTag,{value:"Module"})),fo={ar:"العربية",ca:"Català",ckb:"کوردی",de:"Deutsch",en:"English",es:"Español",eu:"Euskara",fa:"فارسی",fi:"Suomi",fr:"Français",he:"עברית",hi:"हिंदी",ja:"日本語",ko:"한국어",lt:"Lietuvių",nb:"Norsk bokmål",nl:"Nederlands",pl:"Polski","pt-B
7R":"Português do Brasil",pt:"Português",ro:"Română",ru:"Русский",sv:"Svenska",ta:"தமிழ்",th:"ภาษาไทย",tr:"Türkçe",uk:"Українська",ur:"اردو",uz:"O'zbek","zh-CN":"简体中文","zh-TW":"繁體中文"},ho=Object.assign({
7"./lang/ar.json":()=>u(()=>import("./ar-CANZ1fin.js"),[],import.meta.url),
7"./lang/ca.json":()=>u(()=>import("./ca-BawhR5IW.js"),[],import.meta.url),
7"./lang/ckb.json":()=>u(()=>import("./ckb-DJglGH6y.js"),[],import.meta.url),
7"./lang/de.json":()=>u(()=>import("./de-1aCSmaRd.js"),[],import.meta.url),
7"./lang/en.json":()=>u(()=>Promise.resolve().then(()=>co),void 0,import.meta.url),
7"./lang/es.json":()=>u(()=>import("./es-DnL3K9UL.js"),[],import.meta.url),
7"./lang/eu.json":()=>u(()=>import("./eu-CVD4vzPg.js"),[],import.meta.url),
7"./lang/fa.json":()=>u(()=>import("./fa-EPplD9mS.js"),[],import.meta.url),
7"./lang/fi.json":()=>u(()=>import("./fi-B30SrT2N.js"),[],import.meta.url),
7"./lang/fr.json":()=>u(()=>import("./fr-BtMjEOuI.js"),[],import.meta.url),
7"./lang/he.json":()=>u(()=>import("./he-C03Xfbr8.js"),[],import.meta.url),
7"./lang/hi.json":()=>u(()=>import("./hi-DaWfWT5u.js"),[],import.meta.url),
7"./lang/id.json":()=>u(()=>import("./id-DT7UMZdQ.js"),[],import.meta.url),
7"./lang/ja.json":()=>u(()=>import("./ja-BTBiRAkN.js"),[],import.meta.url),
7"./lang/ko.json":()=>u(()=>import("./ko-C9Hiv2KW.js"),[],import.meta.url),
7"./lang/lt.json":()=>u(()=>import("./lt-Z_MxAT26.js"),[],import.meta.url),
7"./lang/nb.json":()=>u(()=>import("./nb-CGxYPyHM.js"),[],import.meta.url),
7"./lang/nl.json":()=>u(()=>import("./nl-Dw1IiFHs.js"),[],import.meta.url),
7"./lang/pl.json":()=>u(()=>import("./pl-CewrFAug.js"),[],import.meta.url),
7"./lang/pt-BR.json":()=>u(()=>import("./pt-BR-DZjK3tkX.js"),[],import.meta.url),
7"./lang/pt.json":()=>u(()=>import("./pt-DH1R3DI2.js"),[],import.meta.url),
7"./lang/ro.json":()=>u(()=>import("./ro-boSZHd3M.js"),[],import.meta.url),
7"./lang/ru.json":()=>u(()=>import("./ru-BgQGKwpu.js"),[],import.meta.url),
7"./lang/sv.json":()=>u(()=>import("./sv-D1nuPeJf.js"),[],import.meta.url),
7"./lang/ta.json":()=>u(()=>import("./ta-Ex4E4CrJ.js"),[],import.meta.url),
7"./lang/th.json":()=>u(()=>import("./th-DGNowuDO.js"),[],import.meta.url),
7"./lang/tr.json":()=>u(()=>import("./tr-Cez09yqM.js"),[],import.meta.url),
7"./lang/uk.json":()=>u(()=>import("./uk-C_6kyB1E.js"),[],import.meta.url),
7"./lang/ur.json":()=>u(()=>import("./ur-1gg1Zkwj.js"),[],import.meta.url),
7"./lang/uz.json":()=>u(()=>import("./uz-CVKNjEjc.js"),[],import.meta.url),
7"./lang/zh-CN.json":()=>u(()=>import("./zh-CN-C4t77Jdq.js"),[],import.meta.url),
7"./lang/zh-TW.json":()=>u(()=>import("./zh-TW-DnQkjK12.js"),[],import.meta.url)
vendor: 8,782 bytes, lines 7-9
7});function ko(e){return e&&typeof e=="object"&&e.__type__==="translation_metadata"&&typeof e.key=="string"}const st="__i18n__";function Uo(e){if(typeof e!="string")return e;const t=e.indexOf(st);if(t===-1)return e;try{const r=t>0?e.substring(0,t):"",n=t+st.length,i=e.indexOf("{",n);let o=-1,s=0;for(let l=i;l<e.length;l++)if(e[l]==="{"&&s++,e[l]==="}"&&s--,s===0){o=l+1;break}if(o===-1)return console.error("Could not find end of JSON in i18n string"),e;const a=e.substring(i,o),c=o<e.length?e.substring(o):"";try{const l=JSON.parse(a);if(l&&l.key){const f=yr(l.key);return r+f+c}}catch(l){console.error("Error parsing i18n JSON:",l)}return e}catch(r){return console.error("Error processing translation:",r),e}}function _o(){return{...Object.fromEntries(Object.entries(ho).map(([t,r])=>[t.split("/").pop().split(".")[0],{type:"lazy",data:r}])),en:{type:"static",data:dt}}}const gt=_o(),lt=Object.keys(gt),jo=Object.entries(gt).map(([e])=>[fo[e]||e,e]);let po=new Set,Qe=!1,zt;function mo(e){const t=e.split(",").map(r=>r.includes(";")?r.split(";").slice(0,2):[r,1]);t.sort((r,n)=>parseFloat(n[1])-parseFloat(r[1]));for(const[r,n]of t)if(lt.includes(r))return r;return null}async function Go(e,t){if(Qe&&!(Qe&&e!==zt))return;zt=e,go({processed_langs:gt,custom_translations:e??{}});let n=null;const i=Di();if(t?n=mo(t):n=i&&lt.includes(i)?i:null,!n){const o=i?.split("-")[0];n=o&&lt.includes(o)?o:"en"}await Ai({fallbackLocale:"en",initialLocale:n}),Qe=!0}function Fo(e){ae.set(e)}function zo(e,t,r="en"){return e&&t.includes(e)?e:r}function go(e){if(e){try{for(const t in e.custom_translations)Se(t,e.custom_translations[t]);for(const t in e.processed_langs)t==="en"&&e.processed_langs[t].type==="static"?Se(t,dt):e.processed_langs[t].type==="lazy"&&gi(t,e.processed_langs[t].data)}catch(t){console.error("Error loading translations:",t)}for(const t in Ft)Se(t,{common:{loading:Ft[t]}})}}let ne=[];const bo=typeof window<"u",Xt=bo?requestAnimationFrame:async e=>await e();function Xo({initial_layout:e=void 0}={initial_layout:void 0}){let t,r=K({}),n={},i,o,s,a,c=lo();const l=K(e);let f=[],_,h={},m,x=null;function L(v){x=v}let S,k;function N(v){v.forEach(b=>{b.targets.forEach(T=>{const I=a?.[T[0]];I&&b.event_specific_args?.length>0&&b.event_specific_args?.forEach(p=>{I.props[p]=b[p]})})})}async function R({app:v,components:b,layout:T,dependencies:I,root:p,options:H}){$(),_=v,a&&b.forEach(d=>{if(d.props.value==null&&d.key){const U=Object.values(a).find(P=>P.key===d.key);U&&(d.props.value=U.props.value)}}),f=b,i=new Set,o=new Set,ne=[],s=new Map,t=new Map,a={},S=T,k=p,m={id:T.id,type:"column",props:{interactive:!1,scale:H.fill_height?1:null,visible:!0},has_modes:!1,instance:null,component:null,component_class_id:"",key:null},b.push(m),I.forEach(d=>{c.register(d.id,d.inputs,d.show_progress_on||d.outputs),d.frontend_fn=Wt(d.js,!!d.backend_fn,d.inputs.length,d.outputs.length),Zt(d.targets,d.id,n),qt(d,i,o)}),r.set(n),s=$t(b,T,p),a=b.reduce((d,U)=>(d[U.id]=U,d),{}),await C(T,p,f),l.set(m),N(I)}function V({render_id:v,components:b,layout:T,root:I,dependencies:p}){b.forEach(E=>{for(const J in E.props)E.props[J]===null&&(E.props[J]=void 0)});let H=[],d=[];b.forEach(E=>{E.key==null||!h[v]?.includes(E.key)?d.push(E):H.push(E)}),$t(d,T,I).forEach((E,J)=>{s.set(J,E)}),n={},p.forEach(E=>{c.register(E.id,E.inputs,E.outputs),E.frontend_fn=Wt(E.js,!!E.backend_fn,E.inputs.length,E.outputs.length),Zt(E.targets,E.id,n),qt(E,i,o)}),r.set(n);let P=a?.[T.id];const se=E=>{E.children&&E.children.forEach(J=>{se(J)})};se(P),Object.entries(a).forEach(([E,J])=>{let je=Number(E);if(J.rendered_in===v){let Oe=H.find(Ge=>Ge.key===J.key);if(J.key!=null&&Oe!==void 0){const Ge=a?.[J.id];for(const Fe in Oe.props)Oe.props.preserved_by_key?.includes(Fe)||(Ge.props[Fe]=Oe.props[Fe])}else a&&delete a[je],t.has(je)&&t.delete(je)}}),d.concat(H.filter(E=>!a?.[E.id])).forEach(E=>{a[E.id]=E,t.set(E.id,E)}),P.parent&&(P.parent.children[P.parent.children.indexOf(P)]=a?.[T.id]),C(T,I,f.concat(b),P.parent).then(()=>{l.set(m),h[v]=b.map(E=>E.key).filter(E=>E!=null)}),N(p)}async function C(v,b,T,I){const p=a?.[v.id];if(!p.component){const H=p.component_class_id||p.type;let d=s.get(H);d&&(p.component=(await d)?.default)}if(p.parent=I,p.type==="dataset"&&(p.props.component_map=ut(p.type,p.component_class_id,b,T,p.props.components).example_components),n[p.id]&&(p.props.attached_events=Object.keys(n[p.id])),p.props.interactive=yo(p.id,p.props.interactive,p.props.value,i,o),p.props.server=xo(p.id,p.props.server_fns,_),t.set(p.id,p),v.children&&(p.children=await Promise.all(v.children.map(H=>C(H,b,T,p)))),p.type==="tabs"&&!p.props.initial_tabs||p.type==="walkthrough"&&!p.props.initial_tabs){const H=v.children?.map((P,se)=>{const de=a?.[P.id];return de.props.id??=P.id,{type:de.type,props:{...de.props,id:de.props.id,order:se}}})||[],d=p.type==="walkthrough"?"walkthroughstep":"tabitem",U=H.filter(P=>P.type===d);p.props.initial_tabs=U?.map(P=>({label:P.props.label.includes(st)?"":P.props.label,id:P.props.id,visible:typeof P.props.visible=="boolean"||P.props.visible==="hidden"?P.props.visible:!0,interactive:P.props.interactive,order:P.props.order}))}return(p.type==="tabs"||p.type==="walkthrough")&&v.children?.forEach((H,d)=>{const U=a?.[H.id];U.props.order=d}),p}let j=!1,y=K(!1);async function F(v,b){if(v.size===0)return;const T=b.filter(I=>v.has(I.id));for(const I of T){const p=I.component_class_id||I.type;if(s.has(p))I.component=(await s.get(p))?.default??I.component;else{const{component:H,example_components:d}=ut(I.type,I.component_class_id,k,b);if(s.set(p,H),d)for(const[U,P]of d)s.set(U,P);I.component||(I.component=(await H)?.default)}}}function g(v){return v.some(b=>b.some(T=>{const I=a?.[T.id];return I?T.prop==="visible"||T.prop==="selected"&&I.type==="tabs":!1}))}function $(){const v=g(ne);let b;const T=t?[...t.values()]:f;v&&S&&(b=Ne(S,T)),l.update(I=>{for(let p=0;p<ne.length;p++)for(let H=0;H<ne[p].length;H++){const d=ne[p][H];if(!d)continue;const U=a?.[d.id];if(!U)continue;let P;const se=U.props[d.prop];d.value instanceof Map?P=new Map(d.value):d.value instanceof Set?P=new Set(d.value):Array.isArray(d.value)?P=[...d.value]:d.value==null?P=null:typeof d.value=="object"?P={...d.value}:P=d.value,U.props[d.prop]=P,d.prop==="value"&&!ct(U)&&!xe(se,P)&&x?.(d.id,P)}return I}),v&&S&&b&&Xt(async()=>{const I=Ne(S,T),p=new Set;for(const H of I)b.has(H)||p.add(H);await F(p,T),p.size>0&&l.update(H=>H)}),ne=[],j=!1,y.set(!1)}function X(v){v&&(ne.push(v),j||(j=!0,y.set(!0),Xt($)))}function Q(v){let b=t.get(v);if(!b){const T=Jt(l);b=W(T,v)}return b?b.instance?.get_value?b.instance.get_value():b.props.value:null}function W(v,b){if(v.id===b)return v;if(v.children)for(const T of v.children){const I=W(T,b);if(I)return I}}function Y(v,b){const T=t.get(v);T&&T.instance?.modify_stream_state&&T.instance.modify_stream_state(b)}function Wr(v){const b=t.get(v);return b?.instance?.get_stream_state?b.instance.get_stream_state():"not_set"}function Zr(v,b){const T=t.get(v);T?.instance?.set_time_limit&&T.instance.set_time_limit(b)}return{layout:l,targets:r,update_value:X,get_data:Q,modify_stream:Y,get_stream_state:Wr,set_time_limit:Zr,loading_status:c,scheduled_updates:y,create_layout:R,rerender_layout:V,value_change:L}}const vo=Object.getPrototypeOf(async function(){}).constructor;function Wt(e,t,r,n){if(!e||e===!0)return null;const i=t?r===1:n===1;try{return new vo("__fn_args",`  let result = await (${e})(...__fn_args);
8  if (typeof result === "undefined") return [];
9  return (${i} && !Array.isArray(result)) ? [result] : result;`)}catch(o){return console.error("Could not parse custom js method."),console.error(o),null}}function Zt(e,t,r){return e.forEach(([n,i])=>{r[n]||(r[n]={}),r[n]?.[i]&&!r[n]?.[i].includes(t)?r[n][i].push(t):r[n][i]=[t]}),r}function qt(e,t,r){return e.inputs.forEach(n=>t.add(n)),e.outputs.forEach(n=>r.add(n)),[t,r]}function Eo(e){return Array.isArray(e)&&e.length===0||e===""||e===0||!e}function yo(e,t,r,n,i){return t===!1?!1:t===!0?!0:!!(n.has(e)||!i.has(e)&&Eo(r))}function xo(e,t,r){return t?t.reduce((n,i)=>(n[i]=async(...o)=>(o.length===1&&(o=o[0]),await r.component_server(e,i,o)),n),{}):{}}function ut(e,t,r,n,i){let o=new Map;e==="api"&&(e="state"),e==="dataset"&&i&&i.forEach(a=>{if(o.has(a))return;let c;const l=n.find(f=>f.type===a);l&&(c=Ut({api_url:r,name:a,id:l.component_class_id,variant:"example"}),o.set(a,c.component))});const s=Ut({api_url:r,name:e,id:t,variant:"component"});return{component:s.component,name:s.name,example_components:o.size>0?o:void 0}}function Xr(e,t,r){const n=r?.selected_tab_id===e.id||r?.selected_tab_id===e.props.id;return t&&n}function To(e,t,r){const n=e.props.selected;if(typeof n=="string"||typeof n=="number")return n;if(t.children)for(const i of t.children){const o=r.find(s=>
9s.id===i.id);if(o?.type==="tabitem"&&o.props.visible!==!1&&o.props.interactive!==!1)return o.id||o.props.id}}function Je(e,t,r){const n=new Set;if(e.children){const i=t.find(o=>o.id===e.id);for(const o of e.children)Ne(o,t,i?.type==="tabitem"?i.props.children_visible!==!1:!0,r).forEach(a=>n.add(a))}return n}function Ne(e,t,r=!0,n){const i=new Set,o=t.find(c=>c.id===e.id);if(!o)return i;const s=o.props.visible!==!1&&o.props.visible!=="hidden"&&r;if(!(o.props.visible==="hidden"||s))return i;if(o.type==="tabs"){const l={selected_tab_id:To(o,e,t)};i.add(e.id),Je(e,t,l).forEach(_=>i.add(_))}else if(o.type==="tabitem"){const c=Xr(o,s,n);(c||!c&&o.props.render_children)&&(i.add(e.id),Je(e,t,n).forEach(f=>i.add(f)))}else i.add(e.id),Je(e,t,n).forEach(l=>i.add(l));return i}function $t(e,t,r){let n=new Map;const i=Ne(t,e);return e.forEach(o=>{if(i.has(o.id)){const{component:s,example_components:a}=ut(o.type,o.component_class_id,r,e);if(n.set(o.component_class_id||o.type,s),a)for(const[c,l]of a)n.set(c,l)}}),n}function ct(e){return e.props.visible==="hidden"?!0:typeof e.props.visible=="boolean"&&e.props.visible===!1?!1:e.parent?e.parent.type==="tabitem"?Xr(e.parent,ct(e.parent)):ct(e.parent):!0}export{pt as $,vo as A,Po as B,wo as C,Oo as D,Do as E,Lo as F,So as G,st as a,_o as b,Xo as c,po as d,Fo as e,go as f,zo as g,Jt as h,ko as i,en as j,Io as k,jo as l,Bo as m,at as n,Co as o,No as p,xe as q,ae as r,Go as s,Uo as t,Mo as u,Vo as v,K as w,Ut as x,ue as y,Jr as z};
10//# sourceMappingURL=init-BXnIR-ED.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.