From 6e9e2fe1f10e78de33c9b4a2a7a56868c08e6f30 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 31 Jul 2023 22:48:04 +0000 Subject: [PATCH] deploy: 6a7b558678cda486d0b89a22a26d14213ba1825a --- assets/{Bot-2afa03cb.js => Bot-cad5cf45.js} | 2 +- assets/{index-57de28b5.js => index-ab27dae8.js} | 12 ++++++------ index.html | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) rename assets/{Bot-2afa03cb.js => Bot-cad5cf45.js} (99%) rename assets/{index-57de28b5.js => index-ab27dae8.js} (96%) diff --git a/assets/Bot-2afa03cb.js b/assets/Bot-cad5cf45.js similarity index 99% rename from assets/Bot-2afa03cb.js rename to assets/Bot-cad5cf45.js index 1a96989..872af70 100644 --- a/assets/Bot-2afa03cb.js +++ b/assets/Bot-cad5cf45.js @@ -1,4 +1,4 @@ -var Qt=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var J=(t,e,r)=>(Qt(t,e,"read from private field"),r?r.call(t):e.get(t)),te=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},re=(t,e,r,n)=>(Qt(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{g as Rr,X as ot,i as Dr,S as Ne,a as xe,s as Ce,e as E,b as C,t as ie,c as m,d as Te,f as qt,h as Xe,j as M,k as h,l as zt,m as K,n as fe,o as Vt,p as R,q as vr,r as Lr,u as gr,v as Br,w as ye,x as jr,y as de,z as De,A as Ze,B as Le,C as Be,D as Y,E as hr,F as br,G as ee,H as je,I as et,J as Ur,K as Gr,L as Wr,M as Jr,N as Hr,O as Qr,P as qr,Q as ct,R as ut,T as zr,U as Vr}from"./index-57de28b5.js";var Kr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0},Kt=typeof Symbol<"u"&&Symbol,Yr=Kr,Xr=function(){return typeof Kt!="function"||typeof Symbol!="function"||typeof Kt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Yr()},Zr="Function.prototype.bind called on incompatible ",pt=Array.prototype.slice,en=Object.prototype.toString,tn="[object Function]",rn=function(e){var r=this;if(typeof r!="function"||en.call(r)!==tn)throw new TypeError(Zr+r);for(var n=pt.call(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,n.concat(pt.call(arguments)));return Object(c)===c?c:this}else return r.apply(e,n.concat(pt.call(arguments)))},l=Math.max(0,r.length-n.length),a=[],s=0;s"u"?N:ae(Uint8Array),Se={"%AggregateError%":typeof AggregateError>"u"?N:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?N:ArrayBuffer,"%ArrayIteratorPrototype%":ge?ae([][Symbol.iterator]()):N,"%AsyncFromSyncIteratorPrototype%":N,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics>"u"?N:Atomics,"%BigInt%":typeof BigInt>"u"?N:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?N:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?N:Float32Array,"%Float64Array%":typeof Float64Array>"u"?N:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?N:FinalizationRegistry,"%Function%":Sr,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array>"u"?N:Int8Array,"%Int16Array%":typeof Int16Array>"u"?N:Int16Array,"%Int32Array%":typeof Int32Array>"u"?N:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge?ae(ae([][Symbol.iterator]())):N,"%JSON%":typeof JSON=="object"?JSON:N,"%Map%":typeof Map>"u"?N:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ge?N:ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?N:Promise,"%Proxy%":typeof Proxy>"u"?N:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?N:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?N:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ge?N:ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?N:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge?ae(""[Symbol.iterator]()):N,"%Symbol%":ge?Symbol:N,"%SyntaxError%":Ue,"%ThrowTypeError%":ln,"%TypedArray%":sn,"%TypeError%":be,"%Uint8Array%":typeof Uint8Array>"u"?N:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?N:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?N:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?N:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?N:WeakMap,"%WeakRef%":typeof WeakRef>"u"?N:WeakRef,"%WeakSet%":typeof WeakSet>"u"?N:WeakSet},fn=function t(e){var r;if(e==="%AsyncFunction%")r=yt("async function () {}");else if(e==="%GeneratorFunction%")r=yt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=yt("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&(r=ae(o.prototype))}return Se[e]=r,r},Yt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},at=Ct,tt=an,cn=at.call(Function.call,Array.prototype.concat),un=at.call(Function.apply,Array.prototype.splice),Xt=at.call(Function.call,String.prototype.replace),rt=at.call(Function.call,String.prototype.slice),pn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yn=/\\(\\)?/g,dn=function(e){var r=rt(e,0,1),n=rt(e,-1);if(r==="%"&&n!=="%")throw new Ue("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ue("invalid intrinsic syntax, expected opening `%`");var o=[];return Xt(e,pn,function(i,l,a,s){o[o.length]=a?Xt(s,yn,"$1"):l||i}),o},mn=function(e,r){var n=e,o;if(tt(Yt,n)&&(o=Yt[n],n="%"+o[0]+"%"),tt(Se,n)){var i=Se[n];if(i===he&&(i=fn(n)),typeof i>"u"&&!r)throw new be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Ue("intrinsic "+e+" does not exist!")},It=function(e,r){if(typeof e!="string"||e.length===0)throw new be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new be('"allowMissing" argument must be a boolean');var n=dn(e),o=n.length>0?n[0]:"",i=mn("%"+o+"%",r),l=i.name,a=i.value,s=!1,f=i.alias;f&&(o=f[0],un(n,cn([0,1],f)));for(var c=1,y=!0;c=n.length){var p=me(a,d);y=!!p,y&&"get"in p&&!("originalValue"in p.get)?a=p.get:a=a[d]}else y=tt(a,d),a=a[d];y&&!s&&(Se[l]=a)}}return a},wr={exports:{}};(function(t){var e=Ct,r=It,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),l=r("%Object.getOwnPropertyDescriptor%",!0),a=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}t.exports=function(y){var d=i(e,o,arguments);if(l&&a){var w=l(d,"length");w.configurable&&a(d,"length",{value:1+s(0,y.length-(arguments.length-1))})}return d};var f=function(){return i(e,n,arguments)};a?a(t.exports,"apply",{value:f}):t.exports.apply=f})(wr);var vn=wr.exports,_r=It,Er=vn,gn=Er(_r("String.prototype.indexOf")),hn=function(e,r){var n=_r(e,!!r);return typeof n=="function"&&gn(e,".prototype.")>-1?Er(n):n};const bn={},Sn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"})),wn=Rr(Sn);var $t=typeof Map=="function"&&Map.prototype,mt=Object.getOwnPropertyDescriptor&&$t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nt=$t&&mt&&typeof mt.get=="function"?mt.get:null,_n=$t&&Map.prototype.forEach,kt=typeof Set=="function"&&Set.prototype,vt=Object.getOwnPropertyDescriptor&&kt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,it=kt&&vt&&typeof vt.get=="function"?vt.get:null,En=kt&&Set.prototype.forEach,An=typeof WeakMap=="function"&&WeakMap.prototype,Fe=An?WeakMap.prototype.has:null,On=typeof WeakSet=="function"&&WeakSet.prototype,Me=On?WeakSet.prototype.has:null,Pn=typeof WeakRef=="function"&&WeakRef.prototype,Zt=Pn?WeakRef.prototype.deref:null,Nn=Boolean.prototype.valueOf,xn=Object.prototype.toString,Cn=Function.prototype.toString,In=String.prototype.match,Tt=String.prototype.slice,se=String.prototype.replace,$n=String.prototype.toUpperCase,er=String.prototype.toLowerCase,Ar=RegExp.prototype.test,tr=Array.prototype.concat,Z=Array.prototype.join,kn=Array.prototype.slice,rr=Math.floor,At=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gt=Object.getOwnPropertySymbols,Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oe||"symbol")?Symbol.toStringTag:null,Or=Object.prototype.propertyIsEnumerable,nr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ir(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Ar.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-rr(-t):rr(t);if(n!==t){var o=String(n),i=Tt.call(e,o.length+1);return se.call(o,r,"$&_")+"."+se.call(se.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return se.call(e,r,"$&_")}var ht=wn.custom,bt=ht&&Nr(ht)?ht:null,Tn=function t(e,r,n,o){var i=r||{};if(le(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(le(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=le(i,"customInspect")?i.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(le(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(le(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Cr(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return a?ir(e,s):s}if(typeof e=="bigint"){var f=String(e)+"n";return a?ir(e,f):f}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Pt(e)?"[Array]":"[Object]";var y=Xn(i,n);if(typeof o>"u")o=[];else if(xr(o,e)>=0)return"[Circular]";function d(x,_,G){if(_&&(o=kn.call(o),o.push(_)),G){var I={depth:i.depth};return le(i,"quoteStyle")&&(I.quoteStyle=i.quoteStyle),t(x,I,n+1,o)}return t(x,i,n+1,o)}if(typeof e=="function"){var w=Wn(e),g=qe(e,d);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(g.length>0?" { "+Z.call(g,", ")+" }":"")}if(Nr(e)){var p=Oe?se.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ot.call(e);return typeof e=="object"&&!Oe?ke(p):p}if(Vn(e)){for(var v="<"+er.call(String(e.nodeName)),u=e.attributes||[],O=0;O",v}if(Pt(e)){if(e.length===0)return"[]";var S=qe(e,d);return y&&!Yn(S)?"["+Nt(S,y)+"]":"[ "+Z.call(S,", ")+" ]"}if(Dn(e)){var A=qe(e,d);return"cause"in e&&!Or.call(e,"cause")?"{ ["+String(e)+"] "+Z.call(tr.call("[cause]: "+d(e.cause),A),", ")+" }":A.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Z.call(A,", ")+" }"}if(typeof e=="object"&&l){if(bt&&typeof e[bt]=="function")return e[bt]();if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Jn(e)){var L=[];return _n.call(e,function(x,_){L.push(d(_,e,!0)+" => "+d(x,e))}),or("Map",nt.call(e),L,y)}if(qn(e)){var k=[];return En.call(e,function(x){k.push(d(x,e))}),or("Set",it.call(e),k,y)}if(Hn(e))return St("WeakMap");if(zn(e))return St("WeakSet");if(Qn(e))return St("WeakRef");if(Bn(e))return ke(d(Number(e)));if(Un(e))return ke(d(At.call(e)));if(jn(e))return ke(Nn.call(e));if(Ln(e))return ke(d(String(e)));if(!Mn(e)&&!Rn(e)){var B=qe(e,d),D=nr?nr(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",q=!D&&U&&Object(e)===e&&U in e?Tt.call(ce(e),8,-1):H?"Object":"",T=D||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",b=T+(q||H?"["+Z.call(tr.call([],q||[],H||[]),": ")+"] ":"");return B.length===0?b+"{}":y?b+"{"+Nt(B,y)+"}":b+"{ "+Z.call(B,", ")+" }"}return String(e)};function Pr(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Fn(t){return se.call(String(t),/"/g,""")}function Pt(t){return ce(t)==="[object Array]"&&(!U||!(typeof t=="object"&&U in t))}function Mn(t){return ce(t)==="[object Date]"&&(!U||!(typeof t=="object"&&U in t))}function Rn(t){return ce(t)==="[object RegExp]"&&(!U||!(typeof t=="object"&&U in t))}function Dn(t){return ce(t)==="[object Error]"&&(!U||!(typeof t=="object"&&U in t))}function Ln(t){return ce(t)==="[object String]"&&(!U||!(typeof t=="object"&&U in t))}function Bn(t){return ce(t)==="[object Number]"&&(!U||!(typeof t=="object"&&U in t))}function jn(t){return ce(t)==="[object Boolean]"&&(!U||!(typeof t=="object"&&U in t))}function Nr(t){if(Oe)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ot)return!1;try{return Ot.call(t),!0}catch{}return!1}function Un(t){if(!t||typeof t!="object"||!At)return!1;try{return At.call(t),!0}catch{}return!1}var Gn=Object.prototype.hasOwnProperty||function(t){return t in this};function le(t,e){return Gn.call(t,e)}function ce(t){return xn.call(t)}function Wn(t){if(t.name)return t.name;var e=In.call(Cn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function xr(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Cr(Tt.call(t,0,e.maxStringLength),e)+n}var o=se.call(se.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Kn);return Pr(o,"single",e)}function Kn(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$n.call(e.toString(16))}function ke(t){return"Object("+t+")"}function St(t){return t+" { ? }"}function or(t,e,r,n){var o=n?Nt(r,n):Z.call(r,", ");return t+" ("+e+") {"+o+"}"}function Yn(t){for(var e=0;e{if(!e.has(t))throw TypeError("Cannot "+r)};var J=(t,e,r)=>(Qt(t,e,"read from private field"),r?r.call(t):e.get(t)),te=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},re=(t,e,r,n)=>(Qt(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{g as Rr,X as ot,i as Dr,S as Ne,a as xe,s as Ce,e as E,b as C,t as ie,c as m,d as Te,f as qt,h as Xe,j as M,k as h,l as zt,m as K,n as fe,o as Vt,p as R,q as vr,r as Lr,u as gr,v as Br,w as ye,x as jr,y as de,z as De,A as Ze,B as Le,C as Be,D as Y,E as hr,F as br,G as ee,H as je,I as et,J as Ur,K as Gr,L as Wr,M as Jr,N as Hr,O as Qr,P as qr,Q as ct,R as ut,T as zr,U as Vr}from"./index-ab27dae8.js";var Kr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,r);if(l.value!==o||l.enumerable!==!0)return!1}return!0},Kt=typeof Symbol<"u"&&Symbol,Yr=Kr,Xr=function(){return typeof Kt!="function"||typeof Symbol!="function"||typeof Kt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Yr()},Zr="Function.prototype.bind called on incompatible ",pt=Array.prototype.slice,en=Object.prototype.toString,tn="[object Function]",rn=function(e){var r=this;if(typeof r!="function"||en.call(r)!==tn)throw new TypeError(Zr+r);for(var n=pt.call(arguments,1),o,i=function(){if(this instanceof o){var c=r.apply(this,n.concat(pt.call(arguments)));return Object(c)===c?c:this}else return r.apply(e,n.concat(pt.call(arguments)))},l=Math.max(0,r.length-n.length),a=[],s=0;s"u"?N:ae(Uint8Array),Se={"%AggregateError%":typeof AggregateError>"u"?N:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?N:ArrayBuffer,"%ArrayIteratorPrototype%":ge?ae([][Symbol.iterator]()):N,"%AsyncFromSyncIteratorPrototype%":N,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics>"u"?N:Atomics,"%BigInt%":typeof BigInt>"u"?N:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?N:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?N:Float32Array,"%Float64Array%":typeof Float64Array>"u"?N:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?N:FinalizationRegistry,"%Function%":Sr,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array>"u"?N:Int8Array,"%Int16Array%":typeof Int16Array>"u"?N:Int16Array,"%Int32Array%":typeof Int32Array>"u"?N:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ge?ae(ae([][Symbol.iterator]())):N,"%JSON%":typeof JSON=="object"?JSON:N,"%Map%":typeof Map>"u"?N:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ge?N:ae(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?N:Promise,"%Proxy%":typeof Proxy>"u"?N:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?N:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?N:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ge?N:ae(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?N:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ge?ae(""[Symbol.iterator]()):N,"%Symbol%":ge?Symbol:N,"%SyntaxError%":Ue,"%ThrowTypeError%":ln,"%TypedArray%":sn,"%TypeError%":be,"%Uint8Array%":typeof Uint8Array>"u"?N:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?N:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?N:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?N:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?N:WeakMap,"%WeakRef%":typeof WeakRef>"u"?N:WeakRef,"%WeakSet%":typeof WeakSet>"u"?N:WeakSet},fn=function t(e){var r;if(e==="%AsyncFunction%")r=yt("async function () {}");else if(e==="%GeneratorFunction%")r=yt("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=yt("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&(r=ae(o.prototype))}return Se[e]=r,r},Yt={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},at=Ct,tt=an,cn=at.call(Function.call,Array.prototype.concat),un=at.call(Function.apply,Array.prototype.splice),Xt=at.call(Function.call,String.prototype.replace),rt=at.call(Function.call,String.prototype.slice),pn=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yn=/\\(\\)?/g,dn=function(e){var r=rt(e,0,1),n=rt(e,-1);if(r==="%"&&n!=="%")throw new Ue("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ue("invalid intrinsic syntax, expected opening `%`");var o=[];return Xt(e,pn,function(i,l,a,s){o[o.length]=a?Xt(s,yn,"$1"):l||i}),o},mn=function(e,r){var n=e,o;if(tt(Yt,n)&&(o=Yt[n],n="%"+o[0]+"%"),tt(Se,n)){var i=Se[n];if(i===he&&(i=fn(n)),typeof i>"u"&&!r)throw new be("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new Ue("intrinsic "+e+" does not exist!")},It=function(e,r){if(typeof e!="string"||e.length===0)throw new be("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new be('"allowMissing" argument must be a boolean');var n=dn(e),o=n.length>0?n[0]:"",i=mn("%"+o+"%",r),l=i.name,a=i.value,s=!1,f=i.alias;f&&(o=f[0],un(n,cn([0,1],f)));for(var c=1,y=!0;c=n.length){var p=me(a,d);y=!!p,y&&"get"in p&&!("originalValue"in p.get)?a=p.get:a=a[d]}else y=tt(a,d),a=a[d];y&&!s&&(Se[l]=a)}}return a},wr={exports:{}};(function(t){var e=Ct,r=It,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),l=r("%Object.getOwnPropertyDescriptor%",!0),a=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}t.exports=function(y){var d=i(e,o,arguments);if(l&&a){var w=l(d,"length");w.configurable&&a(d,"length",{value:1+s(0,y.length-(arguments.length-1))})}return d};var f=function(){return i(e,n,arguments)};a?a(t.exports,"apply",{value:f}):t.exports.apply=f})(wr);var vn=wr.exports,_r=It,Er=vn,gn=Er(_r("String.prototype.indexOf")),hn=function(e,r){var n=_r(e,!!r);return typeof n=="function"&&gn(e,".prototype.")>-1?Er(n):n};const bn={},Sn=Object.freeze(Object.defineProperty({__proto__:null,default:bn},Symbol.toStringTag,{value:"Module"})),wn=Rr(Sn);var $t=typeof Map=="function"&&Map.prototype,mt=Object.getOwnPropertyDescriptor&&$t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,nt=$t&&mt&&typeof mt.get=="function"?mt.get:null,_n=$t&&Map.prototype.forEach,kt=typeof Set=="function"&&Set.prototype,vt=Object.getOwnPropertyDescriptor&&kt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,it=kt&&vt&&typeof vt.get=="function"?vt.get:null,En=kt&&Set.prototype.forEach,An=typeof WeakMap=="function"&&WeakMap.prototype,Fe=An?WeakMap.prototype.has:null,On=typeof WeakSet=="function"&&WeakSet.prototype,Me=On?WeakSet.prototype.has:null,Pn=typeof WeakRef=="function"&&WeakRef.prototype,Zt=Pn?WeakRef.prototype.deref:null,Nn=Boolean.prototype.valueOf,xn=Object.prototype.toString,Cn=Function.prototype.toString,In=String.prototype.match,Tt=String.prototype.slice,se=String.prototype.replace,$n=String.prototype.toUpperCase,er=String.prototype.toLowerCase,Ar=RegExp.prototype.test,tr=Array.prototype.concat,Z=Array.prototype.join,kn=Array.prototype.slice,rr=Math.floor,At=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gt=Object.getOwnPropertySymbols,Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Oe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",U=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Oe||"symbol")?Symbol.toStringTag:null,Or=Object.prototype.propertyIsEnumerable,nr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ir(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||Ar.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-rr(-t):rr(t);if(n!==t){var o=String(n),i=Tt.call(e,o.length+1);return se.call(o,r,"$&_")+"."+se.call(se.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return se.call(e,r,"$&_")}var ht=wn.custom,bt=ht&&Nr(ht)?ht:null,Tn=function t(e,r,n,o){var i=r||{};if(le(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(le(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=le(i,"customInspect")?i.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(le(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(le(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Cr(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var s=String(e);return a?ir(e,s):s}if(typeof e=="bigint"){var f=String(e)+"n";return a?ir(e,f):f}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Pt(e)?"[Array]":"[Object]";var y=Xn(i,n);if(typeof o>"u")o=[];else if(xr(o,e)>=0)return"[Circular]";function d(x,_,G){if(_&&(o=kn.call(o),o.push(_)),G){var I={depth:i.depth};return le(i,"quoteStyle")&&(I.quoteStyle=i.quoteStyle),t(x,I,n+1,o)}return t(x,i,n+1,o)}if(typeof e=="function"){var w=Wn(e),g=qe(e,d);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(g.length>0?" { "+Z.call(g,", ")+" }":"")}if(Nr(e)){var p=Oe?se.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ot.call(e);return typeof e=="object"&&!Oe?ke(p):p}if(Vn(e)){for(var v="<"+er.call(String(e.nodeName)),u=e.attributes||[],O=0;O",v}if(Pt(e)){if(e.length===0)return"[]";var S=qe(e,d);return y&&!Yn(S)?"["+Nt(S,y)+"]":"[ "+Z.call(S,", ")+" ]"}if(Dn(e)){var A=qe(e,d);return"cause"in e&&!Or.call(e,"cause")?"{ ["+String(e)+"] "+Z.call(tr.call("[cause]: "+d(e.cause),A),", ")+" }":A.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Z.call(A,", ")+" }"}if(typeof e=="object"&&l){if(bt&&typeof e[bt]=="function")return e[bt]();if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Jn(e)){var L=[];return _n.call(e,function(x,_){L.push(d(_,e,!0)+" => "+d(x,e))}),or("Map",nt.call(e),L,y)}if(qn(e)){var k=[];return En.call(e,function(x){k.push(d(x,e))}),or("Set",it.call(e),k,y)}if(Hn(e))return St("WeakMap");if(zn(e))return St("WeakSet");if(Qn(e))return St("WeakRef");if(Bn(e))return ke(d(Number(e)));if(Un(e))return ke(d(At.call(e)));if(jn(e))return ke(Nn.call(e));if(Ln(e))return ke(d(String(e)));if(!Mn(e)&&!Rn(e)){var B=qe(e,d),D=nr?nr(e)===Object.prototype:e instanceof Object||e.constructor===Object,H=e instanceof Object?"":"null prototype",q=!D&&U&&Object(e)===e&&U in e?Tt.call(ce(e),8,-1):H?"Object":"",T=D||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",b=T+(q||H?"["+Z.call(tr.call([],q||[],H||[]),": ")+"] ":"");return B.length===0?b+"{}":y?b+"{"+Nt(B,y)+"}":b+"{ "+Z.call(B,", ")+" }"}return String(e)};function Pr(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function Fn(t){return se.call(String(t),/"/g,""")}function Pt(t){return ce(t)==="[object Array]"&&(!U||!(typeof t=="object"&&U in t))}function Mn(t){return ce(t)==="[object Date]"&&(!U||!(typeof t=="object"&&U in t))}function Rn(t){return ce(t)==="[object RegExp]"&&(!U||!(typeof t=="object"&&U in t))}function Dn(t){return ce(t)==="[object Error]"&&(!U||!(typeof t=="object"&&U in t))}function Ln(t){return ce(t)==="[object String]"&&(!U||!(typeof t=="object"&&U in t))}function Bn(t){return ce(t)==="[object Number]"&&(!U||!(typeof t=="object"&&U in t))}function jn(t){return ce(t)==="[object Boolean]"&&(!U||!(typeof t=="object"&&U in t))}function Nr(t){if(Oe)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ot)return!1;try{return Ot.call(t),!0}catch{}return!1}function Un(t){if(!t||typeof t!="object"||!At)return!1;try{return At.call(t),!0}catch{}return!1}var Gn=Object.prototype.hasOwnProperty||function(t){return t in this};function le(t,e){return Gn.call(t,e)}function ce(t){return xn.call(t)}function Wn(t){if(t.name)return t.name;var e=In.call(Cn.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function xr(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Cr(Tt.call(t,0,e.maxStringLength),e)+n}var o=se.call(se.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Kn);return Pr(o,"single",e)}function Kn(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+$n.call(e.toString(16))}function ke(t){return"Object("+t+")"}function St(t){return t+" { ? }"}function or(t,e,r,n){var o=n?Nt(r,n):Z.call(r,", ");return t+" ("+e+") {"+o+"}"}function Yn(t){for(var e=0;e=0)return!1;return!0}function Xn(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Z.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Z.call(Array(e+1),r)}}function Nt(t,e){if(t.length===0)return"";var r=` `+e.prev+e.base;return r+Z.call(t,","+r)+` `+e.prev}function qe(t,e){var r=Pt(t),n=[];if(r){n.length=t.length;for(var o=0;o1;){var r=e.pop(),n=r.obj[r.prop];if(ue(n)){for(var o=[],i=0;i=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===yi.RFC1738&&(f===40||f===41)){a+=l.charAt(s);continue}if(f<128){a=a+X[f];continue}if(f<2048){a=a+(X[192|f>>6]+X[128|f&63]);continue}if(f<55296||f>=57344){a=a+(X[224|f>>12]+X[128|f>>6&63]+X[128|f&63]);continue}s+=1,f=65536+((f&1023)<<10|l.charCodeAt(s)&1023),a+=X[240|f>>18]+X[128|f>>12&63]+X[128|f>>6&63]+X[128|f&63]}return a},bi=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o"u"&&(S=0)}if(typeof s=="function"?u=s(r,u):u instanceof Date?u=y(u):n==="comma"&&ne(u)&&(u=Ye.maybeMap(u,function(I){return I instanceof Date?y(I):I})),u===null){if(i)return a&&!g?a(r,j.encoder,p,"key",d):r;u=""}if(Ni(u)||Ye.isBuffer(u)){if(a){var k=g?r:a(r,j.encoder,p,"key",d);return[w(k)+"="+w(a(u,j.encoder,p,"value",d))]}return[w(r)+"="+w(String(u))]}var B=[];if(typeof u>"u")return B;var D;if(n==="comma"&&ne(u))g&&a&&(u=Ye.maybeMap(u,a)),D=[{value:u.length>0?u.join(",")||null:void 0}];else if(ne(s))D=s;else{var H=Object.keys(u);D=f?H.sort(f):H}for(var q=o&&ne(u)&&u.length===1?r+"[]":r,T=0;T"u"?j.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:j.charsetSentinel,delimiter:typeof e.delimiter>"u"?j.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:j.encode,encoder:typeof e.encoder=="function"?e.encoder:j.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:j.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:j.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:j.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:j.strictNullHandling}},Ii=function(t,e){var r=t,n=Ci(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):ne(n.filter)&&(i=n.filter,o=i);var l=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in ar?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var s=ar[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=s==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var c=kr(),y=0;y0?g+w:""},Pe=$r,xt=Object.prototype.hasOwnProperty,$i=Array.isArray,F={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Pe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ki=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Fr=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},Ti="utf8=%26%2310003%3B",Fi="utf8=%E2%9C%93",Mi=function(e,r){var n={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,i),a=-1,s,f=r.charset;if(r.charsetSentinel)for(s=0;s-1&&(g=$i(g)?[g]:g),xt.call(n,w)?n[w]=Pe.combine(n[w],g):n[w]=g}return n},Ri=function(t,e,r,n){for(var o=n?e:Fr(e,r),i=t.length-1;i>=0;--i){var l,a=t[i];if(a==="[]"&&r.parseArrays)l=[].concat(o);else{l=r.plainObjects?Object.create(null):{};var s=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(s,10);!r.parseArrays&&s===""?l={0:o}:!isNaN(f)&&a!==s&&String(f)===s&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(l=[],l[f]=o):s!=="__proto__"&&(l[s]=o)}o=l}return o},Di=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=n.depth>0&&l.exec(i),f=s?i.slice(0,s.index):i,c=[];if(f){if(!n.plainObjects&&xt.call(Object.prototype,f)&&!n.allowPrototypes)return;c.push(f)}for(var y=0;n.depth>0&&(s=a.exec(i))!==null&&y"u"?F.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?F.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:F.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:F.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:F.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:F.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:F.comma,decoder:typeof e.decoder=="function"?e.decoder:F.decoder,delimiter:typeof e.delimiter=="string"||Pe.isRegExp(e.delimiter)?e.delimiter:F.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:F.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:F.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:F.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:F.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:F.strictNullHandling}},Bi=function(t,e){var r=Li(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?Mi(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),l=0;lre(this,we,n))}get name(){return J(this,pe)}get pluginId(){return J(this,Ge)}exec(e){J(this,We).call(this,e.detail)}get description(){return J(this,we)?J(this,we).call(this,`plugins.${this.pluginId}.commands.${J(this,pe)}.usage`):""}}pe=new WeakMap,Ge=new WeakMap,We=new WeakMap,we=new WeakMap;function sr(t,{delay:e=0,duration:r=400,easing:n=Dr}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:i=>`opacity: ${i*o}`}}function fr(t,e,r){const n=t.slice();return n[27]=e[r],n[29]=r,n}function Hi(t){let e,r,n;return{c(){e=de("svg"),r=de("polygon"),n=de("polygon"),m(r,"points","7,3 7,21"),m(n,"points","17,3 17,21"),m(e,"class","w-5 h-5"),m(e,"viewBox","0 0 24 24"),m(e,"fill","none"),m(e,"stroke","currentColor"),m(e,"stroke-width","2"),m(e,"stroke-linecap","round"),m(e,"stroke-linejoin","round")},m(o,i){M(o,e,i),h(e,r),h(e,n)},d(o){o&&R(e)}}}function Qi(t){let e,r;return{c(){e=de("svg"),r=de("polygon"),m(r,"points","5 3 19 12 5 21 5 3"),m(e,"class","w-5 h-5"),m(e,"viewBox","0 0 24 24"),m(e,"fill","none"),m(e,"stroke","currentColor"),m(e,"stroke-width","2"),m(e,"stroke-linecap","round"),m(e,"stroke-linejoin","round")},m(n,o){M(n,e,o),h(e,r)},d(n){n&&R(e)}}}function cr(t){let e,r,n,o,i=t[27].title+"",l,a,s,f;function c(){return t[24](t[29])}return{c(){e=E("li"),r=E("button"),r.innerHTML='',n=C(),o=E("div"),l=ie(i),a=C(),m(r,"class","p-3 hover:bg-green-500 group focus:outline-none"),m(o,"class","flex-1"),m(e,"class","flex items-center space-x-3 hover:bg-gray-100")},m(y,d){M(y,e,d),h(e,r),h(e,n),h(e,o),h(o,l),h(e,a),s||(f=K(r,"click",c),s=!0)},p(y,d){t=y,d&64&&i!==(i=t[27].title+"")&&fe(l,i)},d(y){y&&R(e),s=!1,f()}}}function qi(t){var Gt;let e,r,n=!1,o,i,l,a,s,f,c,y,d,w,g,p=(((Gt=t[5])==null?void 0:Gt.title)||"N/A")+"",v,u,O,S,A,L,k,B,D=Ke(t[3],t[4])+"",H,q,T,b,x,_,G,I,Dt,lt,He=Ke(t[4])+"",st,Lt,$e,z,ft,Bt;function jt(){cancelAnimationFrame(o),e.paused||(o=Br(jt),n=!0),t[18].call(e)}function Ut(P,$){var Q;return(Q=P[2])!=null&&Q.paused?Qi:Hi}let Qe=Ut(t),oe=Qe(t),ve=t[6],W=[];for(let P=0;P',x=C(),_=E("button"),oe.c(),G=C(),I=E("button"),I.innerHTML='',Dt=C(),lt=E("div"),st=ie(He),Lt=C(),$e=E("ul");for(let Q=0;Qt[19].call(e)),Te(f.src,c=($=t[5])==null?void 0:$.thumbnailUrl)||m(f,"src",c),m(f,"alt","Video thumbnail"),m(f,"class","h-80 w-full object-cover"),m(f,"crossorigin","anonymous"),m(f,"referrerpolicy","no-referrer"),Xe(f,"invisible",!t[7]),m(s,"class","h-80"),m(g,"class","font-bold"),m(w,"class","absolute p-4 inset-0 flex flex-col justify-end bg-gradient-to-b from-transparent to-gray-900 backdrop backdrop-blur-5 text-white"),m(a,"class","relative"),m(A,"type","range"),m(A,"min","0"),m(A,"max",t[4]),m(A,"class","absolute h-full w-full"),m(S,"class","relative h-1 bg-gray-200"),m(b,"class","focus:outline-none"),m(_,"class","rounded-full w-8 h-8 flex items-center justify-center pl-0.5 ring-2 ring-gray-100 focus:outline-none"),m(I,"class","focus:outline-none"),m(T,"class","flex space-x-3 p-2"),m(k,"class","flex justify-between text-xs font-semibold text-gray-500 px-4 py-2"),m($e,"class","text-xs sm:text-base divide-y border-t cursor-default"),m(l,"class","max-w-xl bg-white rounded-lg shadow-lg overflow-hidden")},m(P,$){M(P,e,$),t[17](e),M(P,i,$),M(P,l,$),h(l,a),h(a,s),h(s,f),h(a,d),h(a,w),h(w,g),h(g,v),h(l,u),h(l,O),h(O,S),h(S,A),zt(A,t[3]),h(l,L),h(l,k),h(k,B),h(B,H),h(k,q),h(k,T),h(T,b),h(T,x),h(T,_),oe.m(_,null),h(T,G),h(T,I),h(k,Dt),h(k,lt),h(lt,st),h(l,Lt),h(l,$e);for(let Q=0;Q{z&&(y||(y=Vt(f,sr,{},!0)),y.run(1))}),z=!0)},o(P){y||(y=Vt(f,sr,{},!1)),y.run(0),z=!1},d(P){P&&R(e),t[17](null),P&&R(i),P&&R(l),P&&y&&y.end(),oe.d(),vr(W,P),ft=!1,Lr(Bt)}}}function Ke(t,e=t){if(!e)return"--:--";let r=Math.trunc(t/3600),n=Math.trunc(t%3600/60),o=Math.trunc(t%60);return r<10&&(r="0"+r),n<10&&(n="0"+n),o<10&&(o="0"+o),e>3600?`${r}:${n}:${o}`:e>60?`${n}:${o}`:o}function zi(t,e,r){let n,o,i,l,a,s=0,f=0;function c(){return Math.floor(l.gain.value*100)}function y(_){l.gain.value=[0,_/100,1].sort()[1]}function d(){if(!a)throw new Error("Audio element not ready yet!");const _=new AudioContext,G=_.createMediaElementSource(a);l=_.createGain();const I=_.createMediaStreamDestination();y(De.default.initialVolume),G.connect(l).connect(I),navigator.mediaDevices.getUserMedia=async function(){return await _.resume(),I.stream}}async function w(_){_?r(5,o=_):await(a==null?void 0:a.play())}async function g(_){r(6,n=n.concat(_))}function p(){return console.log(n),Object.freeze(n)}function v(_){w(n[_]),n.splice(_,1),r(6,n)}function u(){a&&(a.paused?a.play():a.pause())}function O(){return o}function S(_){a&&r(2,a.currentTime+=_,a)}function A(){n.length>0?(w(n.shift()),r(6,n)):(r(5,o=null),r(2,a.src="",a))}gr(d);const L=()=>w();function k(_){ye[_?"unshift":"push"](()=>{a=_,r(2,a)})}function B(){s=this.currentTime,r(3,s)}function D(){f=this.duration,r(4,f)}const H=()=>r(7,i=!0);function q(){s=jr(this.value),r(3,s)}const T=()=>S(-s),b=()=>S(f),x=_=>v(_);return r(6,n=[]),r(5,o=null),r(7,i=!1),[w,S,a,s,f,o,n,i,v,u,A,c,y,g,p,O,L,k,B,D,H,q,T,b,x]}class Vi extends Ne{constructor(e){super(),xe(this,e,zi,qi,Ce,{getGain:11,setGain:12,play:0,addToQueue:13,getQueue:14,getCurrentTrack:15,forward:1})}get getGain(){return this.$$.ctx[11]}get setGain(){return this.$$.ctx[12]}get play(){return this.$$.ctx[0]}get addToQueue(){return this.$$.ctx[13]}get getQueue(){return this.$$.ctx[14]}get getCurrentTrack(){return this.$$.ctx[15]}get forward(){return this.$$.ctx[1]}}function Ki(t){let e,r,n,o,i=t[0].getDisplayName()+"",l;return{c(){e=E("div"),r=E("div"),r.innerHTML='',n=C(),o=E("h2"),l=ie(i),m(r,"class","w-8 h-8 mr-3 inline-flex items-center justify-center rounded-full bg-indigo-500 text-white flex-shrink-0"),m(o,"class","text-gray-900 break-words text-lg title-font font-medium"),m(e,"class","flex items-center mb-3")},m(a,s){M(a,e,s),h(e,r),h(e,n),h(e,o),h(o,l)},p(a,[s]){s&1&&i!==(i=a[0].getDisplayName()+"")&&fe(l,i)},i:Ze,o:Ze,d(a){a&&R(e)}}}function Yi(t,e,r){let{participant:n}=e;return t.$$set=o=>{"participant"in o&&r(0,n=o.participant)},[n]}class Xi extends Ne{constructor(e){super(),xe(this,e,Yi,Ki,Ce,{participant:0})}}var _e,Ee,Ae,Je;class Zi{constructor(e,r,n,o){te(this,_e,void 0);te(this,Ee,void 0);te(this,Ae,void 0);te(this,Je,void 0);re(this,_e,e),re(this,Ee,r),re(this,Je,n),re(this,Ae,o)}get text(){return J(this,_e)}get params(){const[,...e]=J(this,_e).split(" ");return e}get participant(){return J(this,Ee)}respond(e){J(this,Je)?J(this,Ae).call(this,e,J(this,Ee).getId()):J(this,Ae).call(this,e)}}_e=new WeakMap,Ee=new WeakMap,Ae=new WeakMap,Je=new WeakMap;class eo{constructor(e,r){this.audio=e,this.conference=r,this.play.bind(this),this.mute.bind(this),this.unmute.bind(this)}async play(){await this.audio.play(),this.unmute()}mute(){}unmute(){}get queue(){return this.audio.getQueue()}addToQueue(e){this.audio.addToQueue(e)}get currentTrack(){return this.audio.getCurrentTrack()}set currentTrack(e){this.audio.play(e)}forward(e){this.audio.forward(e)}get volume(){return this.audio.getGain()}set volume(e){this.audio.setGain(e),e&&this.unmute()}}function ur(t,e,r){const n=t.slice();return n[25]=e[r],n}function pr(t){let e,r=t[3]("general.participants")+"",n;return{c(){e=E("h1"),n=ie(r),m(e,"class","text-gray-900 text-3xl title-font font-medium mb-4")},m(o,i){M(o,e,i),h(e,n)},p(o,i){i&8&&r!==(r=o[3]("general.participants")+"")&&fe(n,r)},d(o){o&&R(e)}}}function yr(t){let e,r;return e=new Xi({props:{participant:t[25]}}),{c(){Le(e.$$.fragment)},m(n,o){Be(e,n,o),r=!0},p(n,o){const i={};o&4&&(i.participant=n[25]),e.$set(i)},i(n){r||(Y(e.$$.fragment,n),r=!0)},o(n){ee(e.$$.fragment,n),r=!1},d(n){je(e,n)}}}function to(t){let e,r,n,o,i,l,a,s,f,c,y={};l=new Vi({props:y}),t[11](l);let d=t[2].length&&pr(t),w=t[2],g=[];for(let v=0;vee(g[v],1,1,()=>{g[v]=null});return{c(){e=E("div"),r=C(),n=E("div"),o=E("div"),i=E("div"),Le(l.$$.fragment),a=C(),s=E("div"),d&&d.c(),f=C();for(let v=0;vsetTimeout(e,t))}async function Mr(){const t=window.JitsiMeetJS;return typeof t<"u"?t:(await ro(100),Mr())}function no(t,e,r){let n,o;et(t,ot,b=>r(3,o=b));let{isJoined:i=!1}=e,{roomName:l}=e,{jimmiApi:a}=e,{conferencePassword:s=""}=e,f,c,y,d=[],w;const g=Ur();let p,v;function u(){r(2,n=y.getParticipants())}function O(){for(let b=0;bg("message",new Zi(_,y.getParticipantById(x),G,y.sendMessage.bind(y)));y.addEventListener(p.events.conference.PRIVATE_MESSAGE_RECEIVED,(x,_)=>b(x,_,!0)),y.addEventListener(p.events.conference.MESSAGE_RECEIVED,(x,_)=>b(x,_,!1))}async function L(){console.info("Successfully joined conference!"),w(null),r(4,i=!0),S();const b=()=>{};y.addEventListener(p.events.conference.MESSAGE_RECEIVED,b),await(_=>new Promise(G=>setTimeout(G,_)))(1e3),y.removeEventListener(p.events.conference.MESSAGE_RECEIVED,b),A()}function k(){console.info("Connection established successfully");const b={startAudioMuted:!1};y=c.initJitsiConference(l.toLowerCase(),b),y.setDisplayName(De.default.jitsiDisplayName),y.on(p.events.conference.CONFERENCE_JOINED,L),y.on(p.events.conference.USER_JOINED,u),y.on(p.events.conference.USER_LEFT,u),y.on(p.events.conference.DISPLAY_NAME_CHANGED,u),y.join(s)}function B(){console.info("disconnecting!"),c.removeEventListener(p.events.connection.CONNECTION_ESTABLISHED,k),c.removeEventListener(p.events.connection.CONNECTION_FAILED,dr),c.removeEventListener(p.events.connection.CONNECTION_DISCONNECTED,B)}async function D(b){let x=document.createElement("script");x.src=`https://${b.hosts.domain}/libs/lib-jitsi-meet.min.js`,v==null||v.append(x),p=await Mr(),p.setLogLevel(p.logLevels.WARN),window.addEventListener("beforeunload",O),window.addEventListener("unload",O);const _={disableAudioLevels:!0,disableThirdPartyRequests:!0,enableAnalyticsLogging:!1},G=new Promise(I=>{w=I});p.init(_),c=new p.JitsiConnection(void 0,null,b),c.addEventListener(p.events.connection.CONNECTION_ESTABLISHED,k),c.addEventListener(p.events.connection.CONNECTION_FAILED,dr),c.addEventListener(p.events.connection.CONNECTION_DISCONNECTED,B),c.connect(),p.createLocalTracks({devices:["audio"]}).then(S).catch(I=>{throw I}),await G,r(5,a=new eo(f,y))}function H(b,x){y.addEventListener(b,x)}Gr(()=>{O()});function q(b){ye[b?"unshift":"push"](()=>{v=b,r(1,v)})}function T(b){ye[b?"unshift":"push"](()=>{f=b,r(0,f)})}return t.$$set=b=>{"isJoined"in b&&r(4,i=b.isJoined),"roomName"in b&&r(6,l=b.roomName),"jimmiApi"in b&&r(5,a=b.jimmiApi),"conferencePassword"in b&&r(7,s=b.conferencePassword)},r(2,n=[]),[f,v,n,o,i,a,l,s,D,H,q,T]}class io extends Ne{constructor(e){super(),xe(this,e,no,to,Ce,{isJoined:4,roomName:6,jimmiApi:5,conferencePassword:7,joinConference:8,addConferenceEventListener:9})}get joinConference(){return this.$$.ctx[8]}get addConferenceEventListener(){return this.$$.ctx[9]}}function oo(t){let e,r,n,o,i,l,a,s,f,c,y,d=t[0]("general.leave")+"",w,g,p,v,u,O;return{c(){e=E("header"),r=E("div"),n=E("a"),o=E("img"),l=C(),a=E("span"),a.textContent="JIMMI",s=C(),f=E("nav"),c=C(),y=E("button"),w=ie(d),g=C(),p=de("svg"),v=de("path"),Te(o.src,i=De.logo)||m(o,"src",i),m(o,"alt","Logo"),m(o,"class","w-16 h-16"),m(a,"class","ml-3 text-white text-xl font-mono"),m(n,"href",De.url),m(n,"class","flex title-font font-medium items-center text-gray-900 mb-4 sm:mb-0"),m(f,"class","sm:ml-auto flex flex-wrap items-center text-base justify-center"),m(v,"d","M5 12h14M12 5l7 7-7 7"),m(p,"fill","none"),m(p,"stroke","currentColor"),m(p,"stroke-linecap","round"),m(p,"stroke-linejoin","round"),m(p,"stroke-width","2"),m(p,"class","w-4 h-4 ml-1"),m(p,"viewBox","0 0 24 24"),m(y,"class","inline-flex items-center bg-gray-100 border-0 py-1 px-3 focus:outline-none hover:bg-gray-200 rounded text-base mt-4 sm:mt-0"),m(r,"class","container p-2 mx-auto flex flex-wrap p-1 flex-col sm:flex-row items-center"),m(e,"class","bg-indigo-500 text-lightgray-600 body-font")},m(S,A){M(S,e,A),h(e,r),h(r,n),h(n,o),h(n,l),h(n,a),h(r,s),h(r,f),h(r,c),h(r,y),h(y,w),h(y,g),h(y,p),h(p,v),u||(O=K(y,"click",t[1]),u=!0)},p(S,[A]){A&1&&d!==(d=S[0]("general.leave")+"")&&fe(w,d)},i:Ze,o:Ze,d(S){S&&R(e),u=!1,O()}}}function ao(t,e,r){let n;et(t,ot,i=>r(0,n=i));function o(){Wr("/")}return[n,o]}class lo extends Ne{constructor(e){super(),xe(this,e,ao,oo,Ce,{})}}function so(t){let e,r,n,o;const i=t[1].default,l=Jr(i,t,t[0],null);return{c(){e=E("div"),r=E("div"),n=C(),l&&l.c(),m(r,"class","ml-5 w-20 h-20 border-4 border-indigo-600 rounded-full loader svelte-1rc6lrp"),m(e,"class","absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")},m(a,s){M(a,e,s),h(e,r),h(e,n),l&&l.m(e,null),o=!0},p(a,[s]){l&&l.p&&(!o||s&1)&&Hr(l,i,a,a[0],o?qr(i,a[0],s,null):Qr(a[0]),null)},i(a){o||(Y(l,a),o=!0)},o(a){ee(l,a),o=!1},d(a){a&&R(e),l&&l.d(a)}}}function fo(t,e,r){let{$$slots:n={},$$scope:o}=e;return t.$$set=i=>{"$$scope"in i&&r(0,o=i.$$scope)},[o,n]}class co extends Ne{constructor(e){super(),xe(this,e,fo,so,Ce,{})}}function mr(t){let e,r,n;return r=new co({props:{$$slots:{default:[uo]},$$scope:{ctx:t}}}),{c(){e=E("div"),Le(r.$$.fragment),m(e,"class","flex flex-col items-center justify-center")},m(o,i){M(o,e,i),Be(r,e,null),n=!0},p(o,i){const l={};i&16416&&(l.$$scope={dirty:i,ctx:o}),r.$set(l)},i(o){n||(Y(r.$$.fragment,o),n=!0)},o(o){ee(r.$$.fragment,o),n=!1},d(o){o&&R(e),je(r)}}}function uo(t){let e,r=t[5]("general.connecting")+"",n,o;return{c(){e=E("p"),n=ie(r),o=ie("..."),m(e,"class","p-5")},m(i,l){M(i,e,l),h(e,n),h(e,o)},p(i,l){l&32&&r!==(r=i[5]("general.connecting")+"")&&fe(n,r)},d(i){i&&R(e)}}}function po(t){let e,r,n,o,i,l,a,s,f;e=new lo({});let c=!t[2]&&mr(t);function y(p){t[9](p)}function d(p){t[10](p)}function w(p){t[11](p)}let g={roomName:t[0].room};return t[2]!==void 0&&(g.isJoined=t[2]),t[3]!==void 0&&(g.jimmiApi=t[3]),t[4].password!==void 0&&(g.conferencePassword=t[4].password),i=new io({props:g}),t[8](i),ye.push(()=>ct(i,"isJoined",y)),ye.push(()=>ct(i,"jimmiApi",d)),ye.push(()=>ct(i,"conferencePassword",w)),i.$on("message",t[6]),{c(){Le(e.$$.fragment),r=C(),c&&c.c(),n=C(),o=E("div"),Le(i.$$.fragment),Xe(o,"hidden",!t[2])},m(p,v){Be(e,p,v),M(p,r,v),c&&c.m(p,v),M(p,n,v),M(p,o,v),Be(i,o,null),f=!0},p(p,[v]){p[2]?c&&(hr(),ee(c,1,1,()=>{c=null}),br()):c?(c.p(p,v),v&4&&Y(c,1)):(c=mr(p),c.c(),Y(c,1),c.m(n.parentNode,n));const u={};v&1&&(u.roomName=p[0].room),!l&&v&4&&(l=!0,u.isJoined=p[2],ut(()=>l=!1)),!a&&v&8&&(a=!0,u.jimmiApi=p[3],ut(()=>a=!1)),!s&&v&16&&(s=!0,u.conferencePassword=p[4].password,ut(()=>s=!1)),i.$set(u),(!f||v&4)&&Xe(o,"hidden",!p[2])},i(p){f||(Y(e.$$.fragment,p),Y(c),Y(i.$$.fragment,p),f=!0)},o(p){ee(e.$$.fragment,p),ee(c),ee(i.$$.fragment,p),f=!1},d(p){je(e,p),p&&R(r),c&&c.d(p),p&&R(n),p&&R(o),t[8](null),je(i)}}}function yo(t,e,r){let n,o,i;et(t,ot,u=>r(5,o=u)),et(t,zr,u=>r(7,i=u));let{params:l}=e,a,s,f;const c={};function y(u){if(!f)return;let O=Object.keys(c).reduce((S,A)=>S+=` diff --git a/assets/index-57de28b5.js b/assets/index-ab27dae8.js similarity index 96% rename from assets/index-57de28b5.js rename to assets/index-ab27dae8.js index caf225b..9d29ff0 100644 --- a/assets/index-57de28b5.js +++ b/assets/index-ab27dae8.js @@ -1,20 +1,20 @@ -var vi=Object.defineProperty;var wi=(e,t,n)=>t in e?vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ee=(e,t,n)=>(wi(e,typeof t!="symbol"?t+"":t,n),n),Xn=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ft=(e,t,n)=>(Xn(e,t,"read from private field"),n?n.call(e):t.get(e)),dt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},pt=(e,t,n,r)=>(Xn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Ti="modulepreload",Si=function(e){return"/"+e},Zn={},Tr=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Si(s),s in Zn)return;Zn[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const h=i[c];if(h.href===s&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":Ti,o||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),o)return new Promise((c,h)=>{l.addEventListener("load",c),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};function M(){}const Ai=e=>e;function wn(e,t){for(const n in t)e[n]=t[n];return e}function Sr(e){return e()}function Wn(){return Object.create(null)}function le(e){e.forEach(Sr)}function nt(e){return typeof e=="function"}function ye(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let mt;function Za(e,t){return mt||(mt=document.createElement("a")),mt.href=t,e===mt.href}function Oi(e){return Object.keys(e).length===0}function Tn(e,...t){if(e==null)return M;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ni(e){let t;return Tn(e,n=>t=n)(),t}function _t(e,t,n){e.$$.on_destroy.push(Tn(t,n))}function Ii(e,t,n,r){if(e){const i=Ar(e,t,n,r);return e[0](i)}}function Ar(e,t,n,r){return e[1]&&r?wn(n.ctx.slice(),e[1](r(t))):n.ctx}function Ci(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const s=[],o=Math.max(t.dirty.length,i.length);for(let a=0;a32){const t=[],n=e.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),Sn=Or?e=>requestAnimationFrame(e):M;const He=new Set;function Nr(e){He.forEach(t=>{t.c(e)||(He.delete(t),t.f())}),He.size!==0&&Sn(Nr)}function Ri(e){let t;return He.size===0&&Sn(Nr),{promise:new Promise(n=>{He.add(t={c:e,f:n})}),abort(){He.delete(t)}}}function m(e,t){e.appendChild(t)}function Ir(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bi(e){const t=S("style");return Fi(Ir(e),t),t.sheet}function Fi(e,t){return m(e.head||e,t),t.sheet}function re(e,t,n){e.insertBefore(t,n||null)}function W(e){e.parentNode&&e.parentNode.removeChild(e)}function Wa(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function x(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Qa(e){return e===""?null:+e}function Li(e){return Array.from(e.childNodes)}function X(e,t){t=""+t,e.data!==t&&(e.data=t)}function Se(e,t){e.value=t??""}function Ka(e,t,n){e.classList[n?"add":"remove"](t)}function Cr(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,r,t),i}function St(e,t){return new e(t)}const At=new Map;let Ot=0;function ki(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Mi(e,t){const n={stylesheet:Bi(t),rules:{}};return At.set(e,n),n}function Qn(e,t,n,r,i,s,o,a=0){const u=16.666/r;let l=`{ +var vi=Object.defineProperty;var wi=(e,t,n)=>t in e?vi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ie=(e,t,n)=>(wi(e,typeof t!="symbol"?t+"":t,n),n),Xn=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var ft=(e,t,n)=>(Xn(e,t,"read from private field"),n?n.call(e):t.get(e)),dt=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},pt=(e,t,n,r)=>(Xn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Ti="modulepreload",Si=function(e){return"/"+e},Zn={},Tr=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Si(s),s in Zn)return;Zn[s]=!0;const o=s.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const h=i[c];if(h.href===s&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${a}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":Ti,o||(l.as="script",l.crossOrigin=""),l.href=s,document.head.appendChild(l),o)return new Promise((c,h)=>{l.addEventListener("load",c),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};function M(){}const Ai=e=>e;function wn(e,t){for(const n in t)e[n]=t[n];return e}function Sr(e){return e()}function Wn(){return Object.create(null)}function le(e){e.forEach(Sr)}function nt(e){return typeof e=="function"}function ye(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let mt;function Za(e,t){return mt||(mt=document.createElement("a")),mt.href=t,e===mt.href}function Oi(e){return Object.keys(e).length===0}function Tn(e,...t){if(e==null)return M;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ni(e){let t;return Tn(e,n=>t=n)(),t}function _t(e,t,n){e.$$.on_destroy.push(Tn(t,n))}function Ii(e,t,n,r){if(e){const i=Ar(e,t,n,r);return e[0](i)}}function Ar(e,t,n,r){return e[1]&&r?wn(n.ctx.slice(),e[1](r(t))):n.ctx}function Ci(e,t,n,r){if(e[2]&&r){const i=e[2](r(n));if(t.dirty===void 0)return i;if(typeof i=="object"){const s=[],o=Math.max(t.dirty.length,i.length);for(let a=0;a32){const t=[],n=e.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),Sn=Or?e=>requestAnimationFrame(e):M;const He=new Set;function Nr(e){He.forEach(t=>{t.c(e)||(He.delete(t),t.f())}),He.size!==0&&Sn(Nr)}function Ri(e){let t;return He.size===0&&Sn(Nr),{promise:new Promise(n=>{He.add(t={c:e,f:n})}),abort(){He.delete(t)}}}function m(e,t){e.appendChild(t)}function Ir(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Bi(e){const t=S("style");return Fi(Ir(e),t),t.sheet}function Fi(e,t){return m(e.head||e,t),t.sheet}function ne(e,t,n){e.insertBefore(t,n||null)}function W(e){e.parentNode&&e.parentNode.removeChild(e)}function Wa(e,t){for(let n=0;ne.removeEventListener(t,n,r)}function x(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Qa(e){return e===""?null:+e}function Li(e){return Array.from(e.childNodes)}function X(e,t){t=""+t,e.data!==t&&(e.data=t)}function Se(e,t){e.value=t??""}function Ka(e,t,n){e.classList[n?"add":"remove"](t)}function Cr(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(e,n,r,t),i}function St(e,t){return new e(t)}const At=new Map;let Ot=0;function ki(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function Mi(e,t){const n={stylesheet:Bi(t),rules:{}};return At.set(e,n),n}function Qn(e,t,n,r,i,s,o,a=0){const u=16.666/r;let l=`{ `;for(let y=0;y<=1;y+=u){const C=t+(n-t)*s(y);l+=y*100+`%{${o(C,1-C)}} `}const c=l+`100% {${o(n,1-n)}} }`,h=`__svelte_${ki(c)}_${a}`,f=Ir(e),{stylesheet:d,rules:g}=At.get(f)||Mi(f,e);g[h]||(g[h]=!0,d.insertRule(`@keyframes ${h} ${c}`,d.cssRules.length));const _=e.style.animation||"";return e.style.animation=`${_?`${_}, `:""}${h} ${r}ms linear ${i}ms 1 both`,Ot+=1,h}function $i(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?s=>s.indexOf(t)<0:s=>s.indexOf("__svelte")===-1),i=n.length-r.length;i&&(e.style.animation=r.join(", "),Ot-=i,Ot||Ui())}function Ui(){Sn(()=>{Ot||(At.forEach(e=>{const{ownerNode:t}=e.stylesheet;t&&W(t)}),At.clear())})}let Ye;function Xe(e){Ye=e}function Dt(){if(!Ye)throw new Error("Function called outside component initialization");return Ye}function Ja(e){Dt().$$.on_mount.push(e)}function Gi(e){Dt().$$.after_update.push(e)}function ji(e){Dt().$$.on_destroy.push(e)}function Vi(){const e=Dt();return(t,n,{cancelable:r=!1}={})=>{const i=e.$$.callbacks[t];if(i){const s=Cr(t,n,{cancelable:r});return i.slice().forEach(o=>{o.call(e,s)}),!s.defaultPrevented}return!0}}function Kn(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(r=>r.call(this,t))}const Ie=[],Nt=[];let Pe=[];const on=[],Hr=Promise.resolve();let an=!1;function Pr(){an||(an=!0,Hr.then(Rr))}function Dr(){return Pr(),Hr}function It(e){Pe.push(e)}function Jn(e){on.push(e)}const Yt=new Set;let Ae=0;function Rr(){if(Ae!==0)return;const e=Ye;do{try{for(;Aee.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),Pe=t}let Ve;function Xi(){return Ve||(Ve=Promise.resolve(),Ve.then(()=>{Ve=null})),Ve}function Qt(e,t,n){e.dispatchEvent(Cr(`${t?"intro":"outro"}${n}`))}const yt=new Set;let ue;function Rt(){ue={r:0,c:[],p:ue}}function Bt(){ue.r||le(ue.c),ue=ue.p}function z(e,t){e&&e.i&&(yt.delete(e),e.i(t))}function K(e,t,n,r){if(e&&e.o){if(yt.has(e))return;yt.add(e),ue.c.push(()=>{yt.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const Zi={duration:0};function eu(e,t,n,r){const i={direction:"both"};let s=t(e,n,i),o=r?0:1,a=null,u=null,l=null;function c(){l&&$i(e,l)}function h(d,g){const _=d.b-o;return g*=Math.abs(_),{a:o,b:d.b,d:_,duration:g,start:d.start,end:d.start+g,group:d.group}}function f(d){const{delay:g=0,duration:_=300,easing:y=Ai,tick:C=M,css:P}=s||Zi,H={start:Di()+g,b:d};d||(H.group=ue,ue.r+=1),a||u?u=H:(P&&(c(),l=Qn(e,o,d,_,g,y,P)),d&&C(0,1),a=h(H,_),It(()=>Qt(e,d,"start")),Ri(v=>{if(u&&v>u.start&&(a=h(u,_),u=null,Qt(e,a.b,"start"),P&&(c(),l=Qn(e,o,a.b,a.duration,0,y,s.css))),a){if(v>=a.end)C(o=a.b,1-o),Qt(e,a.b,"end"),u||(a.b?c():--a.group.r||le(a.group.c)),a=null;else if(v>=a.start){const p=v-a.start;o=a.a+a.d*y(p/a.duration),C(o,1-o)}}return!!(a||u)}))}return{run(d){nt(s)?Xi().then(()=>{s=s(i),f(d)}):f(d)},end(){c(),a=u=null}}}function Br(e,t){const n={},r={},i={$$scope:1};let s=e.length;for(;s--;){const o=e[s],a=t[s];if(a){for(const u in o)u in a||(r[u]=1);for(const u in a)i[u]||(n[u]=a[u],i[u]=1);e[s]=a}else for(const u in o)i[u]=1}for(const o in r)o in n||(n[o]=void 0);return n}function Fr(e){return typeof e=="object"&&e!==null?e:{}}function er(e,t,n){const r=e.$$.props[t];r!==void 0&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function _e(e){e&&e.c()}function he(e,t,n,r){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),r||It(()=>{const o=e.$$.on_mount.map(Sr).filter(nt);e.$$.on_destroy?e.$$.on_destroy.push(...o):le(o),e.$$.on_mount=[]}),s.forEach(It)}function fe(e,t){const n=e.$$;n.fragment!==null&&(zi(n.after_update),le(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Wi(e,t){e.$$.dirty[0]===-1&&(Ie.push(e),Pr(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const g=d.length?d[0]:f;return l.ctx&&i(l.ctx[h],l.ctx[h]=g)&&(!l.skip_bound&&l.bound[h]&&l.bound[h](g),c&&Wi(e,h)),f}):[],l.update(),c=!0,le(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const h=Li(t.target);l.fragment&&l.fragment.l(h),h.forEach(W)}else l.fragment&&l.fragment.c();t.intro&&z(e.$$.fragment),he(e,t.target,t.anchor,t.customElement),Rr()}Xe(u)}class Me{$destroy(){fe(this,1),this.$destroy=M}$on(t,n){if(!nt(n))return M;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(t){this.$$set&&!Oi(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Oe=[];function Lr(e,t){return{subscribe:se(e,t).subscribe}}function se(e,t=M){let n;const r=new Set;function i(a){if(ye(e,a)&&(e=a,n)){const u=!Oe.length;for(const l of r)l[1](),Oe.push(l,e);if(u){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:i,update:s,subscribe:o}}function Q(e,t,n){const r=!Array.isArray(e),i=r?[e]:e,s=t.length<2;return Lr(n,o=>{let a=!1;const u=[];let l=0,c=M;const h=()=>{if(l)return;c();const d=t(r?u[0]:u,o);s?o(d):c=nt(d)?d:M},f=i.map((d,g)=>Tn(d,_=>{u[g]=_,l&=~(1<{l|=1<0}),n=[],r=0,i=t;r1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(_s,function(u,l,c,h,f,d){if(l)t.minimumIntegerDigits=c.length;else{if(h&&f)throw new Error("We currently do not support maximum integer digits");if(d)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Wr.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(rr.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(rr,function(u,l,c,h,f,d){return c==="*"?t.minimumFractionDigits=l.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:f&&d?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+d.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=I(I({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=I(I({},t),ir(s)));continue}if(Zr.test(i.stem)){t=I(I({},t),ir(i.stem));continue}var o=Yr(i.stem);o&&(t=I(I({},t),o));var a=ys(i.stem);a&&(t=I(I({},t),a))}return t}var gt={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};function xs(e,t){for(var n="",r=0;r>1),u="a",l=vs(t);for((l=="H"||l=="k")&&(a=0);a-- >0;)n+=u;for(;o-- >0;)n=l+n}else i==="J"?n+="H":n+=i}return n}function vs(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 n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=gt[r||""]||gt[n||""]||gt["".concat(n,"-001")]||gt["001"];return i[0]}var Jt,ws=new RegExp("^".concat(Xr.source,"*")),Ts=new RegExp("".concat(Xr.source,"*$"));function N(e,t){return{start:e,end:t}}var Ss=!!String.prototype.startsWith,As=!!String.fromCodePoint,Os=!!Object.fromEntries,Ns=!!String.prototype.codePointAt,Is=!!String.prototype.trimStart,Cs=!!String.prototype.trimEnd,Hs=!!Number.isSafeInteger,Ps=Hs?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},cn=!0;try{var Ds=Kr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");cn=((Jt=Ds.exec("a"))===null||Jt===void 0?void 0:Jt[0])==="a"}catch{cn=!1}var or=Ss?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},hn=As?String.fromCodePoint:function(){for(var t=[],n=0;ns;){if(o=t[s++],o>1114111)throw RangeError(o+" is not a valid code point");r+=o<65536?String.fromCharCode(o):String.fromCharCode(((o-=65536)>>10)+55296,o%1024+56320)}return r},ar=Os?Object.fromEntries:function(t){for(var n={},r=0,i=t;r=r)){var i=t.charCodeAt(n),s;return i<55296||i>56319||n+1===r||(s=t.charCodeAt(n+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Rs=Is?function(t){return t.trimStart()}:function(t){return t.replace(ws,"")},Bs=Cs?function(t){return t.trimEnd()}:function(t){return t.replace(Ts,"")};function Kr(e,t){return new RegExp(e,t)}var fn;if(cn){var ur=Kr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fn=function(t,n){var r;ur.lastIndex=n;var i=ur.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else fn=function(t,n){for(var r=[];;){var i=Qr(t,n);if(i===void 0||Jr(i)||Ms(i))break;r.push(i),n+=i>=65536?2:1}return hn.apply(void 0,r)};var Fs=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.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,n,r){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var o=this.parseArgument(t,r);if(o.err)return o;i.push(o.val)}else{if(s===125&&t>0)break;if(s===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:R.pound,location:N(a,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(O.UNMATCHED_CLOSING_TAG,N(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&dn(this.peek()||0)){var o=this.parseTag(t,n);if(o.err)return o;i.push(o.val)}else{var o=this.parseLiteral(t,n);if(o.err)return o;i.push(o.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:R.literal,value:"<".concat(i,"/>"),location:N(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,n,!0);if(s.err)return s;var o=s.val,a=this.clonePosition();if(this.bumpIf("")?{val:{type:R.tag,value:i,children:o,location:N(r,this.clonePosition())},err:null}:this.error(O.INVALID_TAG,N(a,this.clonePosition())))}else return this.error(O.UNCLOSED_TAG,N(r,this.clonePosition()))}else return this.error(O.INVALID_TAG,N(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&ks(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var s=this.tryParseQuote(n);if(s){i+=s;continue}var o=this.tryParseUnquoted(t,n);if(o){i+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var u=N(r,this.clonePosition());return{val:{type:R.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ls(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 n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return hn.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),hn(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(O.EMPTY_ARGUMENT,N(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(O.MALFORMED_ARGUMENT,N(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:R.argument,value:i,location:N(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(O.MALFORMED_ARGUMENT,N(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fn(this.message,n),i=n+r.length;this.bumpTo(i);var s=this.clonePosition(),o=N(t,s);return{value:r,location:o}},e.prototype.parseArgumentOptions=function(t,n,r,i){var s,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(O.EXPECT_ARGUMENT_TYPE,N(o,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var f=Bs(h.val);if(f.length===0)return this.error(O.EXPECT_ARGUMENT_STYLE,N(this.clonePosition(),this.clonePosition()));var d=N(c,this.clonePosition());l={style:f,styleLocation:d}}var g=this.tryParseArgumentClose(i);if(g.err)return g;var _=N(i,this.clonePosition());if(l&&or(l==null?void 0:l.style,"::",0)){var y=Rs(l.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(y,l.styleLocation);return h.err?h:{val:{type:R.number,value:r,location:_,style:h.val},err:null}}else{if(y.length===0)return this.error(O.EXPECT_DATE_TIME_SKELETON,_);var C=y;this.locale&&(C=xs(y,this.locale));var f={type:Be.dateTime,pattern:C,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ps(C):{}},P=a==="date"?R.date:R.time;return{val:{type:P,value:r,location:_,style:f},err:null}}}return{val:{type:a==="number"?R.number:a==="date"?R.date:R.time,value:r,location:_,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS,N(H,I({},H)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),p=0;if(a!=="select"&&v.value==="offset"){if(!this.bumpIf(":"))return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,N(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),v=this.parseIdentifierIfPossible(),p=h.val}var w=this.tryParsePluralOrSelectOptions(t,a,n,v);if(w.err)return w;var g=this.tryParseArgumentClose(i);if(g.err)return g;var D=N(i,this.clonePosition());return a==="select"?{val:{type:R.select,value:r,options:ar(w.val),location:D},err:null}:{val:{type:R.plural,value:r,options:ar(w.val),offset:p,pluralType:a==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(O.INVALID_ARGUMENT_TYPE,N(o,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE,N(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,N(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(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=gs(t)}catch{return this.error(O.INVALID_NUMBER_SKELETON,n)}return{val:{type:Be.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Es(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var s,o=!1,a=[],u=new Set,l=i.value,c=i.location;;){if(l.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR,O.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=N(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(u.has(l))return this.error(n==="select"?O.DUPLICATE_SELECT_ARGUMENT_SELECTOR:O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);l==="other"&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,N(this.clonePosition(),this.clonePosition()));var g=this.parseMessage(t+1,n,r);if(g.err)return g;var _=this.tryParseArgumentClose(d);if(_.err)return _;a.push([l,{value:g.val,location:N(d,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,c=s.location}return a.length===0?this.error(n==="select"?O.EXPECT_SELECT_ARGUMENT_SELECTOR:O.EXPECT_PLURAL_ARGUMENT_SELECTOR,N(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(O.MISSING_OTHER_CLAUSE,N(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)s=!0,o=o*10+(a-48),this.bump();else break}var u=N(i,this.clonePosition());return s?(o*=r,Ps(o)?{val:o,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=Qr(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},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(or(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!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 n=this.offset();if(n===t)break;if(n>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()&&Jr(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function dn(e){return e>=97&&e<=122||e>=65&&e<=90}function Ls(e){return dn(e)||e===47}function ks(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 Jr(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Ms(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 pn(e){e.forEach(function(t){if(delete t.location,jr(t)||Vr(t))for(var n in t.options)delete t.options[n].location,pn(t.options[n].value);else $r(t)&&zr(t.style)||(Ur(t)||Gr(t))&&ln(t.style)?delete t.style.location:qr(t)&&pn(t.children)})}function $s(e,t){t===void 0&&(t={}),t=I({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Fs(e,t).parse();if(n.err){var r=SyntaxError(O[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||pn(n.val),n.val}function en(e,t){var n=t&&t.cache?t.cache:zs,r=t&&t.serializer?t.serializer:qs,i=t&&t.strategy?t.strategy:Gs;return i(e,{cache:n,serializer:r})}function Us(e){return e==null||typeof e=="number"||typeof e=="boolean"}function ei(e,t,n,r){var i=Us(r)?r:n(r),s=t.get(i);return typeof s>"u"&&(s=e.call(this,r),t.set(i,s)),s}function ti(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return typeof s>"u"&&(s=e.apply(this,r),t.set(i,s)),s}function On(e,t,n,r,i){return n.bind(t,e,r,i)}function Gs(e,t){var n=e.length===1?ei:ti;return On(e,this,n,t.cache.create(),t.serializer)}function js(e,t){return On(e,this,ti,t.cache.create(),t.serializer)}function Vs(e,t){return On(e,this,ei,t.cache.create(),t.serializer)}var qs=function(){return JSON.stringify(arguments)};function Nn(){this.cache=Object.create(null)}Nn.prototype.get=function(e){return this.cache[e]};Nn.prototype.set=function(e,t){this.cache[e]=t};var zs={create:function(){return new Nn}},tn={variadic:js,monadic:Vs},Fe;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Fe||(Fe={}));var Lt=function(e){Ft(t,e);function t(n,r,i){var s=e.call(this,n)||this;return s.code=r,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),lr=function(e){Ft(t,e);function t(n,r,i,s){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Fe.INVALID_VALUE,s)||this}return t}(Lt),Xs=function(e){Ft(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Fe.INVALID_VALUE,i)||this}return t}(Lt),Zs=function(e){Ft(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Fe.MISSING_VALUE,r)||this}return t}(Lt),G;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(G||(G={}));function Ws(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==G.literal||n.type!==G.literal?t.push(n):r.value+=n.value,t},[])}function Ys(e){return typeof e=="function"}function Et(e,t,n,r,i,s,o){if(e.length===1&&nr(e[0]))return[{type:G.literal,value:e[0].value}];for(var a=[],u=0,l=e;u0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])},e.__parse=$s,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const ce={},to=(e,t,n)=>n&&(t in ce||(ce[t]={}),e in ce[t]||(ce[t][e]=n),n),ni=(e,t)=>{if(t==null)return;if(t in ce&&e in ce[t])return ce[t][e];const n=rt(t);for(let r=0;r0){const u=s.slice(a,s.length).join(".");if(u in o){o=o[u];break}}o=o[s[a]]}else o=void 0;return o}(n,t)}function ri(e,...t){delete ce[e],$e.update(n=>(n[e]=cs.all([n[e]||{},...t]),n))}Q([$e],([e])=>Object.keys(e));$e.subscribe(e=>In=e);const Ze={};function We(e){return Ze[e]}function Ct(e){return e!=null&&rt(e).some(t=>{var n;return(n=We(t))===null||n===void 0?void 0:n.size})}function ro(e,t){return Promise.all(t.map(r=>(function(i,s){Ze[i].delete(s),Ze[i].size===0&&delete Ze[i]}(e,r),r().then(i=>i.default||i)))).then(r=>ri(e,...r))}const qe={};function ii(e){if(!Ct(e))return e in qe?qe[e]:Promise.resolve();const t=function(n){return rt(n).map(r=>{const i=We(r);return[r,i?[...i]:[]]}).filter(([,r])=>r.length>0)}(e);return qe[e]=Promise.all(t.map(([n,r])=>ro(n,r))).then(()=>{if(Ct(e))return ii(e);delete qe[e]}),qe[e]}function io(e,t){We(e)||function(r){Ze[r]=new Set}(e);const n=We(e);We(e).has(t)||(Cn(e)||$e.update(r=>(r[e]={},r)),n.add(t))}function so({locale:e,id:t}){console.warn(`[svelte-i18n] The message "${t}" was not found in "${rt(e).join('", "')}".${Ct(de())?` -Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ze={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Le(){return ze}function oo(e){const{formats:t,...n}=e,r=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=so:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ze,n,{initialLocale:r}),t&&("number"in t&&Object.assign(ze.formats.number,t.number),"date"in t&&Object.assign(ze.formats.date,t.date),"time"in t&&Object.assign(ze.formats.time,t.time)),Ue.set(r)}const xt=se(!1);let mn;const vt=se(null);function cr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function rt(e,t=Le().fallbackLocale){const n=cr(e);return t?[...new Set([...n,...cr(t)])]:n}function de(){return mn??void 0}vt.subscribe(e=>{mn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ue={...vt,set:e=>{if(e&&function(t){if(t==null)return;const n=rt(t);for(let r=0;rxt.set(!0),t):xt.set(!0),ii(e).then(()=>{vt.set(e)}).finally(()=>{clearTimeout(n),xt.set(!1)})}return vt.set(e)}},ao=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],kt=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},Ke=(e,t)=>{const{formats:n}=Le();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},uo=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Ke("number",t)),new Intl.NumberFormat(e,n)}),lo=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Ke("date",t):Object.keys(n).length===0&&(n=Ke("date","short")),new Intl.DateTimeFormat(e,n)}),co=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=Ke("time",t):Object.keys(n).length===0&&(n=Ke("time","short")),new Intl.DateTimeFormat(e,n)}),ho=({locale:e=de(),...t}={})=>uo({locale:e,...t}),fo=({locale:e=de(),...t}={})=>lo({locale:e,...t}),po=({locale:e=de(),...t}={})=>co({locale:e,...t}),mo=kt((e,t=de())=>new eo(e,t,Le().formats,{ignoreTag:Le().ignoreTag})),go=(e,t={})=>{var n,r,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=de(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=ni(e,u);if(c){if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=(s=(i=(r=(n=Le()).handleMissingMessage)===null||r===void 0?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))!==null&&i!==void 0?i:l)!==null&&s!==void 0?s:e;if(!a)return c;let h=c;try{h=mo(c,u).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return h},bo=(e,t)=>po(t).format(e),_o=(e,t)=>fo(t).format(e),yo=(e,t)=>ho(t).format(e),Eo=(e,t=de())=>ni(e,t),si=Q([Ue,$e],()=>go);Q([Ue],()=>bo);Q([Ue],()=>_o);Q([Ue],()=>yo);Q([Ue,$e],()=>Eo);function xo(e){if(!e)throw Error("Parameter args is required");if(!e.component==!e.asyncComponent)throw Error("One and only one of component and asyncComponent is required");if(e.component&&(e.asyncComponent=()=>Promise.resolve(e.component)),typeof e.asyncComponent!="function")throw Error("Parameter asyncComponent must be a function");if(e.conditions){Array.isArray(e.conditions)||(e.conditions=[e.conditions]);for(let n=0;n{fe(c,1)}),Bt()}s?(t=St(s,o()),t.$on("routeEvent",a[7]),_e(t.$$.fragment),z(t.$$.fragment,1),he(t,n.parentNode,n)):t=null}else s&&t.$set(l)},i(a){r||(t&&z(t.$$.fragment,a),r=!0)},o(a){t&&K(t.$$.fragment,a),r=!1},d(a){a&&W(n),t&&fe(t,a)}}}function To(e){let t,n,r;const i=[{params:e[1]},e[2]];var s=e[0];function o(a){let u={};for(let l=0;l{fe(c,1)}),Bt()}s?(t=St(s,o()),t.$on("routeEvent",a[6]),_e(t.$$.fragment),z(t.$$.fragment,1),he(t,n.parentNode,n)):t=null}else s&&t.$set(l)},i(a){r||(t&&z(t.$$.fragment,a),r=!0)},o(a){t&&K(t.$$.fragment,a),r=!1},d(a){a&&W(n),t&&fe(t,a)}}}function So(e){let t,n,r,i;const s=[To,wo],o=[];function a(u,l){return u[1]?0:1}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),r=An()},m(u,l){o[t].m(u,l),re(u,r,l),i=!0},p(u,[l]){let c=t;t=a(u),t===c?o[t].p(u,l):(Rt(),K(o[c],1,1,()=>{o[c]=null}),Bt(),n=o[t],n?n.p(u,l):(n=o[t]=s[t](u),n.c()),z(n,1),n.m(r.parentNode,r))},i(u){i||(z(n),i=!0)},o(u){K(n),i=!1},d(u){o[t].d(u),u&&W(r)}}}function hr(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let r="";return n>-1&&(r=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:r}}const Hn=Lr(null,function(t){t(hr());const n=()=>{t(hr())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}});Q(Hn,e=>e.location);const nu=Q(Hn,e=>e.querystring),fr=se(void 0);async function Ao(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await Dr(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(e.charAt(0)=="#"?"":"#")+e}function Oo(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function No(e,t,n){let{routes:r={}}=t,{prefix:i=""}=t,{restoreScrollState:s=!1}=t;class o{constructor(p,w){if(!w||typeof w!="function"&&(typeof w!="object"||w._sveltesparouter!==!0))throw Error("Invalid component object");if(!p||typeof p=="string"&&(p.length<1||p.charAt(0)!="/"&&p.charAt(0)!="*")||typeof p=="object"&&!(p instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:D,keys:b}=vo(p);this.path=p,typeof w=="object"&&w._sveltesparouter===!0?(this.component=w.component,this.conditions=w.conditions||[],this.userData=w.userData,this.props=w.props||{}):(this.component=()=>Promise.resolve(w),this.conditions=[],this.props={}),this._pattern=D,this._keys=b}match(p){if(i){if(typeof i=="string")if(p.startsWith(i))p=p.substr(i.length)||"/";else return null;else if(i instanceof RegExp){const T=p.match(i);if(T&&T[0])p=p.substr(T[0].length)||"/";else return null}}const w=this._pattern.exec(p);if(w===null)return null;if(this._keys===!1)return w;const D={};let b=0;for(;b{a.push(new o(p,v))}):Object.keys(r).forEach(v=>{a.push(new o(v,r[v]))});let u=null,l=null,c={};const h=Vi();async function f(v,p){await Dr(),h(v,p)}let d=null,g=null;s&&(g=v=>{v.state&&(v.state.__svelte_spa_router_scrollY||v.state.__svelte_spa_router_scrollX)?d=v.state:d=null},window.addEventListener("popstate",g),Gi(()=>{Oo(d)}));let _=null,y=null;const C=Hn.subscribe(async v=>{_=v;let p=0;for(;p{fr.set(l)});return}n(0,u=null),y=null,fr.set(void 0)});ji(()=>{C(),g&&window.removeEventListener("popstate",g)});function P(v){Kn.call(this,e,v)}function H(v){Kn.call(this,e,v)}return e.$$set=v=>{"routes"in v&&n(3,r=v.routes),"prefix"in v&&n(4,i=v.prefix),"restoreScrollState"in v&&n(5,s=v.restoreScrollState)},e.$$.update=()=>{e.$$.dirty&32&&(history.scrollRestoration=s?"manual":"auto")},[u,l,c,r,i,s,P,H]}class Io extends Me{constructor(t){super(),ke(this,t,No,So,ye,{routes:3,prefix:4,restoreScrollState:5})}}var oi=(e=>(e.AUDIO_INPUT_STATE_CHANGE="conference.audio_input_state_changed",e.AUTH_STATUS_CHANGED="conference.auth_status_changed",e.BEFORE_STATISTICS_DISPOSED="conference.beforeStatisticsDisposed",e.CONFERENCE_ERROR="conference.error",e.CONFERENCE_FAILED="conference.failed",e.CONFERENCE_JOINED="conference.joined",e.CONFERENCE_LEFT="conference.left",e.CONFERENCE_UNIQUE_ID_SET="conference.unique_id_set",e.CONNECTION_ESTABLISHED="conference.connectionEstablished",e.CONNECTION_INTERRUPTED="conference.connectionInterrupted",e.CONNECTION_RESTORED="conference.connectionRestored",e.DATA_CHANNEL_OPENED="conference.dataChannelOpened",e.DISPLAY_NAME_CHANGED="conference.displayNameChanged",e.DOMINANT_SPEAKER_CHANGED="conference.dominantSpeaker",e.CONFERENCE_CREATED_TIMESTAMP="conference.createdTimestamp",e.DTMF_SUPPORT_CHANGED="conference.dtmfSupportChanged",e.ENDPOINT_MESSAGE_RECEIVED="conference.endpoint_message_received",e.ENDPOINT_STATS_RECEIVED="conference.endpoint_stats_received",e.JVB121_STATUS="conference.jvb121Status",e.KICKED="conference.kicked",e.PARTICIPANT_KICKED="conference.participant_kicked",e.LAST_N_ENDPOINTS_CHANGED="conference.lastNEndpointsChanged",e.LOCK_STATE_CHANGED="conference.lock_state_changed",e.SERVER_REGION_CHANGED="conference.server_region_changed",e._MEDIA_SESSION_STARTED="conference.media_session.started",e._MEDIA_SESSION_ACTIVE_CHANGED="conference.media_session.active_changed",e.MEMBERS_ONLY_CHANGED="conference.membersOnlyChanged",e.MESSAGE_RECEIVED="conference.messageReceived",e.NO_AUDIO_INPUT="conference.no_audio_input",e.NOISY_MIC="conference.noisy_mic",e.NON_PARTICIPANT_MESSAGE_RECEIVED="conference.non_participant_message_received",e.PRIVATE_MESSAGE_RECEIVED="conference.privateMessageReceived",e.PARTICIPANT_CONN_STATUS_CHANGED="conference.participant_conn_status_changed",e.PARTCIPANT_FEATURES_CHANGED="conference.partcipant_features_changed",e.PARTICIPANT_PROPERTY_CHANGED="conference.participant_property_changed",e.P2P_STATUS="conference.p2pStatus",e.PHONE_NUMBER_CHANGED="conference.phoneNumberChanged",e.PROPERTIES_CHANGED="conference.propertiesChanged",e.RECORDER_STATE_CHANGED="conference.recorderStateChanged",e.VIDEO_SIP_GW_AVAILABILITY_CHANGED="conference.videoSIPGWAvailabilityChanged",e.VIDEO_SIP_GW_SESSION_STATE_CHANGED="conference.videoSIPGWSessionStateChanged",e.START_MUTED_POLICY_CHANGED="conference.start_muted_policy_changed",e.STARTED_MUTED="conference.started_muted",e.SUBJECT_CHANGED="conference.subjectChanged",e.SUSPEND_DETECTED="conference.suspendDetected",e.TALK_WHILE_MUTED="conference.talk_while_muted",e.TRACK_ADDED="conference.trackAdded",e.TRACK_AUDIO_LEVEL_CHANGED="conference.audioLevelsChanged",e.TRACK_MUTE_CHANGED="conference.trackMuteChanged",e.TRACK_REMOVED="conference.trackRemoved",e.TRANSCRIPTION_STATUS_CHANGED="conference.transcriptionStatusChanged",e.USER_JOINED="conference.userJoined",e.USER_LEFT="conference.userLeft",e.USER_ROLE_CHANGED="conference.roleChanged",e.USER_STATUS_CHANGED="conference.statusChanged",e.BOT_TYPE_CHANGED="conference.bot_type_changed",e.LOBBY_USER_JOINED="conference.lobby.userJoined",e.LOBBY_USER_UPDATED="conference.lobby.userUpdated",e.LOBBY_USER_LEFT="conference.lobby.userLeft",e))(oi||{});class ai{constructor(t){ee(this,"translator");this.api=t,si.subscribe(n=>this.translator=n)}$t(t,n){return this.translator?this.translator(`plugins.${this.meta.id}.${t}`,n):""}}class Co extends ai{constructor(){super(...arguments);ee(this,"meta",{id:"xyz.jimmi.moderator",name:"Moderator",version:"1.0.0"});ee(this,"commands");ee(this,"events",{[oi.USER_JOINED]:this.onUserJoined});ee(this,"translations")}onUserJoined(n){const{conference:r}=this.api;r.isModerator()&&r.grantOwner(n)}}var Je,et,tt;class Ho{constructor(t){dt(this,Je,void 0);dt(this,et,void 0);dt(this,tt,void 0);pt(this,Je,t.videoThumbnails[0].url),pt(this,et,t.title),pt(this,tt,t.adaptiveFormats.filter(n=>n.encoding==="opus")[0].url)}get thumbnailUrl(){return ft(this,Je)}get title(){return ft(this,et)}get source(){return ft(this,tt)}}Je=new WeakMap,et=new WeakMap,tt=new WeakMap;class Po extends ai{constructor(){super(...arguments);ee(this,"meta",{id:"xyz.jimmi.music",name:"Music",version:"0.2.0"});ee(this,"commands",{play:this.play,queue:this.queue,cue:this.queue,track:this.track});ee(this,"events");ee(this,"translations",{en:{description:"A music plugin that allows for audio playback of youtube videos",commands:{play:{usage:"!play - Play a youtube video by url or search term",playingTrack:"Playing {title}"},queue:{usage:`!queue - Show the current queue. +Note: there are at least one loader still registered to this locale that wasn't executed.`:""}`)}const ze={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Le(){return ze}function oo(e){const{formats:t,...n}=e,r=e.initialLocale||e.fallbackLocale;return n.warnOnMissingMessages&&(delete n.warnOnMissingMessages,n.handleMissingMessage==null?n.handleMissingMessage=so:console.warn('[svelte-i18n] The "warnOnMissingMessages" option is deprecated. Please use the "handleMissingMessage" option instead.')),Object.assign(ze,n,{initialLocale:r}),t&&("number"in t&&Object.assign(ze.formats.number,t.number),"date"in t&&Object.assign(ze.formats.date,t.date),"time"in t&&Object.assign(ze.formats.time,t.time)),Ue.set(r)}const xt=se(!1);let mn;const vt=se(null);function cr(e){return e.split("-").map((t,n,r)=>r.slice(0,n+1).join("-")).reverse()}function rt(e,t=Le().fallbackLocale){const n=cr(e);return t?[...new Set([...n,...cr(t)])]:n}function de(){return mn??void 0}vt.subscribe(e=>{mn=e??void 0,typeof window<"u"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Ue={...vt,set:e=>{if(e&&function(t){if(t==null)return;const n=rt(t);for(let r=0;rxt.set(!0),t):xt.set(!0),ii(e).then(()=>{vt.set(e)}).finally(()=>{clearTimeout(n),xt.set(!1)})}return vt.set(e)}},ao=()=>typeof window>"u"?null:window.navigator.language||window.navigator.languages[0],kt=e=>{const t=Object.create(null);return n=>{const r=JSON.stringify(n);return r in t?t[r]:t[r]=e(n)}},Ke=(e,t)=>{const{formats:n}=Le();if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},uo=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return t&&(n=Ke("number",t)),new Intl.NumberFormat(e,n)}),lo=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return t?n=Ke("date",t):Object.keys(n).length===0&&(n=Ke("date","short")),new Intl.DateTimeFormat(e,n)}),co=kt(({locale:e,format:t,...n})=>{if(e==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return t?n=Ke("time",t):Object.keys(n).length===0&&(n=Ke("time","short")),new Intl.DateTimeFormat(e,n)}),ho=({locale:e=de(),...t}={})=>uo({locale:e,...t}),fo=({locale:e=de(),...t}={})=>lo({locale:e,...t}),po=({locale:e=de(),...t}={})=>co({locale:e,...t}),mo=kt((e,t=de())=>new eo(e,t,Le().formats,{ignoreTag:Le().ignoreTag})),go=(e,t={})=>{var n,r,i,s;let o=t;typeof e=="object"&&(o=e,e=o.id);const{values:a,locale:u=de(),default:l}=o;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=ni(e,u);if(c){if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=(s=(i=(r=(n=Le()).handleMissingMessage)===null||r===void 0?void 0:r.call(n,{locale:u,id:e,defaultValue:l}))!==null&&i!==void 0?i:l)!==null&&s!==void 0?s:e;if(!a)return c;let h=c;try{h=mo(c,u).format(a)}catch(f){f instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,f.message)}return h},bo=(e,t)=>po(t).format(e),_o=(e,t)=>fo(t).format(e),yo=(e,t)=>ho(t).format(e),Eo=(e,t=de())=>ni(e,t),si=Q([Ue,$e],()=>go);Q([Ue],()=>bo);Q([Ue],()=>_o);Q([Ue],()=>yo);Q([Ue,$e],()=>Eo);function xo(e){if(!e)throw Error("Parameter args is required");if(!e.component==!e.asyncComponent)throw Error("One and only one of component and asyncComponent is required");if(e.component&&(e.asyncComponent=()=>Promise.resolve(e.component)),typeof e.asyncComponent!="function")throw Error("Parameter asyncComponent must be a function");if(e.conditions){Array.isArray(e.conditions)||(e.conditions=[e.conditions]);for(let n=0;n{fe(c,1)}),Bt()}s?(t=St(s,o()),t.$on("routeEvent",a[7]),_e(t.$$.fragment),z(t.$$.fragment,1),he(t,n.parentNode,n)):t=null}else s&&t.$set(l)},i(a){r||(t&&z(t.$$.fragment,a),r=!0)},o(a){t&&K(t.$$.fragment,a),r=!1},d(a){a&&W(n),t&&fe(t,a)}}}function To(e){let t,n,r;const i=[{params:e[1]},e[2]];var s=e[0];function o(a){let u={};for(let l=0;l{fe(c,1)}),Bt()}s?(t=St(s,o()),t.$on("routeEvent",a[6]),_e(t.$$.fragment),z(t.$$.fragment,1),he(t,n.parentNode,n)):t=null}else s&&t.$set(l)},i(a){r||(t&&z(t.$$.fragment,a),r=!0)},o(a){t&&K(t.$$.fragment,a),r=!1},d(a){a&&W(n),t&&fe(t,a)}}}function So(e){let t,n,r,i;const s=[To,wo],o=[];function a(u,l){return u[1]?0:1}return t=a(e),n=o[t]=s[t](e),{c(){n.c(),r=An()},m(u,l){o[t].m(u,l),ne(u,r,l),i=!0},p(u,[l]){let c=t;t=a(u),t===c?o[t].p(u,l):(Rt(),K(o[c],1,1,()=>{o[c]=null}),Bt(),n=o[t],n?n.p(u,l):(n=o[t]=s[t](u),n.c()),z(n,1),n.m(r.parentNode,r))},i(u){i||(z(n),i=!0)},o(u){K(n),i=!1},d(u){o[t].d(u),u&&W(r)}}}function hr(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let r="";return n>-1&&(r=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:r}}const Hn=Lr(null,function(t){t(hr());const n=()=>{t(hr())};return window.addEventListener("hashchange",n,!1),function(){window.removeEventListener("hashchange",n,!1)}});Q(Hn,e=>e.location);const nu=Q(Hn,e=>e.querystring),fr=se(void 0);async function Ao(e){if(!e||e.length<1||e.charAt(0)!="/"&&e.indexOf("#/")!==0)throw Error("Invalid parameter location");await Dr(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(e.charAt(0)=="#"?"":"#")+e}function Oo(e){e?window.scrollTo(e.__svelte_spa_router_scrollX,e.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function No(e,t,n){let{routes:r={}}=t,{prefix:i=""}=t,{restoreScrollState:s=!1}=t;class o{constructor(p,w){if(!w||typeof w!="function"&&(typeof w!="object"||w._sveltesparouter!==!0))throw Error("Invalid component object");if(!p||typeof p=="string"&&(p.length<1||p.charAt(0)!="/"&&p.charAt(0)!="*")||typeof p=="object"&&!(p instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:D,keys:b}=vo(p);this.path=p,typeof w=="object"&&w._sveltesparouter===!0?(this.component=w.component,this.conditions=w.conditions||[],this.userData=w.userData,this.props=w.props||{}):(this.component=()=>Promise.resolve(w),this.conditions=[],this.props={}),this._pattern=D,this._keys=b}match(p){if(i){if(typeof i=="string")if(p.startsWith(i))p=p.substr(i.length)||"/";else return null;else if(i instanceof RegExp){const T=p.match(i);if(T&&T[0])p=p.substr(T[0].length)||"/";else return null}}const w=this._pattern.exec(p);if(w===null)return null;if(this._keys===!1)return w;const D={};let b=0;for(;b{a.push(new o(p,v))}):Object.keys(r).forEach(v=>{a.push(new o(v,r[v]))});let u=null,l=null,c={};const h=Vi();async function f(v,p){await Dr(),h(v,p)}let d=null,g=null;s&&(g=v=>{v.state&&(v.state.__svelte_spa_router_scrollY||v.state.__svelte_spa_router_scrollX)?d=v.state:d=null},window.addEventListener("popstate",g),Gi(()=>{Oo(d)}));let _=null,y=null;const C=Hn.subscribe(async v=>{_=v;let p=0;for(;p{fr.set(l)});return}n(0,u=null),y=null,fr.set(void 0)});ji(()=>{C(),g&&window.removeEventListener("popstate",g)});function P(v){Kn.call(this,e,v)}function H(v){Kn.call(this,e,v)}return e.$$set=v=>{"routes"in v&&n(3,r=v.routes),"prefix"in v&&n(4,i=v.prefix),"restoreScrollState"in v&&n(5,s=v.restoreScrollState)},e.$$.update=()=>{e.$$.dirty&32&&(history.scrollRestoration=s?"manual":"auto")},[u,l,c,r,i,s,P,H]}class Io extends Me{constructor(t){super(),ke(this,t,No,So,ye,{routes:3,prefix:4,restoreScrollState:5})}}var oi=(e=>(e.AUDIO_INPUT_STATE_CHANGE="conference.audio_input_state_changed",e.AUTH_STATUS_CHANGED="conference.auth_status_changed",e.BEFORE_STATISTICS_DISPOSED="conference.beforeStatisticsDisposed",e.CONFERENCE_ERROR="conference.error",e.CONFERENCE_FAILED="conference.failed",e.CONFERENCE_JOINED="conference.joined",e.CONFERENCE_LEFT="conference.left",e.CONFERENCE_UNIQUE_ID_SET="conference.unique_id_set",e.CONNECTION_ESTABLISHED="conference.connectionEstablished",e.CONNECTION_INTERRUPTED="conference.connectionInterrupted",e.CONNECTION_RESTORED="conference.connectionRestored",e.DATA_CHANNEL_OPENED="conference.dataChannelOpened",e.DISPLAY_NAME_CHANGED="conference.displayNameChanged",e.DOMINANT_SPEAKER_CHANGED="conference.dominantSpeaker",e.CONFERENCE_CREATED_TIMESTAMP="conference.createdTimestamp",e.DTMF_SUPPORT_CHANGED="conference.dtmfSupportChanged",e.ENDPOINT_MESSAGE_RECEIVED="conference.endpoint_message_received",e.ENDPOINT_STATS_RECEIVED="conference.endpoint_stats_received",e.JVB121_STATUS="conference.jvb121Status",e.KICKED="conference.kicked",e.PARTICIPANT_KICKED="conference.participant_kicked",e.LAST_N_ENDPOINTS_CHANGED="conference.lastNEndpointsChanged",e.LOCK_STATE_CHANGED="conference.lock_state_changed",e.SERVER_REGION_CHANGED="conference.server_region_changed",e._MEDIA_SESSION_STARTED="conference.media_session.started",e._MEDIA_SESSION_ACTIVE_CHANGED="conference.media_session.active_changed",e.MEMBERS_ONLY_CHANGED="conference.membersOnlyChanged",e.MESSAGE_RECEIVED="conference.messageReceived",e.NO_AUDIO_INPUT="conference.no_audio_input",e.NOISY_MIC="conference.noisy_mic",e.NON_PARTICIPANT_MESSAGE_RECEIVED="conference.non_participant_message_received",e.PRIVATE_MESSAGE_RECEIVED="conference.privateMessageReceived",e.PARTICIPANT_CONN_STATUS_CHANGED="conference.participant_conn_status_changed",e.PARTCIPANT_FEATURES_CHANGED="conference.partcipant_features_changed",e.PARTICIPANT_PROPERTY_CHANGED="conference.participant_property_changed",e.P2P_STATUS="conference.p2pStatus",e.PHONE_NUMBER_CHANGED="conference.phoneNumberChanged",e.PROPERTIES_CHANGED="conference.propertiesChanged",e.RECORDER_STATE_CHANGED="conference.recorderStateChanged",e.VIDEO_SIP_GW_AVAILABILITY_CHANGED="conference.videoSIPGWAvailabilityChanged",e.VIDEO_SIP_GW_SESSION_STATE_CHANGED="conference.videoSIPGWSessionStateChanged",e.START_MUTED_POLICY_CHANGED="conference.start_muted_policy_changed",e.STARTED_MUTED="conference.started_muted",e.SUBJECT_CHANGED="conference.subjectChanged",e.SUSPEND_DETECTED="conference.suspendDetected",e.TALK_WHILE_MUTED="conference.talk_while_muted",e.TRACK_ADDED="conference.trackAdded",e.TRACK_AUDIO_LEVEL_CHANGED="conference.audioLevelsChanged",e.TRACK_MUTE_CHANGED="conference.trackMuteChanged",e.TRACK_REMOVED="conference.trackRemoved",e.TRANSCRIPTION_STATUS_CHANGED="conference.transcriptionStatusChanged",e.USER_JOINED="conference.userJoined",e.USER_LEFT="conference.userLeft",e.USER_ROLE_CHANGED="conference.roleChanged",e.USER_STATUS_CHANGED="conference.statusChanged",e.BOT_TYPE_CHANGED="conference.bot_type_changed",e.LOBBY_USER_JOINED="conference.lobby.userJoined",e.LOBBY_USER_UPDATED="conference.lobby.userUpdated",e.LOBBY_USER_LEFT="conference.lobby.userLeft",e))(oi||{});class ai{constructor(t){ie(this,"translator");this.api=t,si.subscribe(n=>this.translator=n)}$t(t,n){return this.translator?this.translator(`plugins.${this.meta.id}.${t}`,n):""}}class Co extends ai{constructor(){super(...arguments);ie(this,"meta",{id:"xyz.jimmi.moderator",name:"Moderator",version:"1.0.0"});ie(this,"commands");ie(this,"events",{[oi.USER_JOINED]:this.onUserJoined});ie(this,"translations")}onUserJoined(n){const{conference:r}=this.api;r.isModerator()&&r.grantOwner(n)}}var Je,et,tt;class Ho{constructor(t){dt(this,Je,void 0);dt(this,et,void 0);dt(this,tt,void 0);pt(this,Je,t.videoThumbnails[0].url),pt(this,et,t.title),pt(this,tt,t.adaptiveFormats.filter(n=>n.encoding==="opus")[0].url)}get thumbnailUrl(){return ft(this,Je)}get title(){return ft(this,et)}get source(){return ft(this,tt)}}Je=new WeakMap,et=new WeakMap,tt=new WeakMap;class Po extends ai{constructor(){super(...arguments);ie(this,"meta",{id:"xyz.jimmi.music",name:"Music",version:"0.2.0"});ie(this,"commands",{play:this.play,queue:this.queue,cue:this.queue,track:this.track});ie(this,"events");ie(this,"translations",{en:{description:"A music plugin that allows for audio playback of youtube videos",commands:{play:{usage:"!play - Play a youtube video by url or search term",playingTrack:"Playing {title}"},queue:{usage:`!queue - Show the current queue. !queue - Add a YouTube video to the queue.`,isEmpty:"The queue is currently empty",content:"Queue content",addedTrack:"Added {title} to queue"},cue:{usage:"!cue - Alias for !queue"},track:{usage:`!track - Display current track !track skip - Skip the current track !track ++ or !track -- - Fast forward or rewind. Add more + or - signs to increase duration -!track +10, !track +20, !track -15 - Fast forward or rewind with specific duration in seconds`,currentlyPlaying:"Currently playing {title}"}},general:{invalidArgs:"Invalid arguments. Usage:",noVideo:"Sorry, I cannot find any video at the moment"}}});ee(this,"baseUrl","https://invidious.snopyta.org")}async fetch(n){return await(await fetch(`${this.baseUrl}/api/v1/${n}`,{referrerPolicy:"no-referrer"})).json()}async searchYtVideo(n){if(new RegExp("https?://").test(n)){const r=new URLSearchParams(n.split("?")[1]).get("v");if(r)return r;const i=n.split("/");return i[i.length-1].split("?")[0]}else{const r=await this.fetch(`search/?q=${encodeURIComponent(n)}`);if(r.length>0)return r[0].videoId}return null}async getTrack(n){const r=await this.fetch(`videos/${n}`);return r.error?null:new Ho(r)}async query(n){const r=n.join(" "),i=await this.searchYtVideo(r);return i?this.getTrack(i):null}async play(n){if(n.params.length===0)n.respond(`:warning: ${this.$t("general.invalidArgs")} +!track +10, !track +20, !track -15 - Fast forward or rewind with specific duration in seconds`,currentlyPlaying:"Currently playing {title}"}},general:{invalidArgs:"Invalid arguments. Usage:",noVideo:"Sorry, I cannot find any video at the moment"}}})}chooseRandomBaseUrl(){const n=["https://vid.puffyan.us","https://invidious.tiekoetter.com","https://invidious.flokinet.to","https://inv.bp.projectsegfau.lt","https://yt.artemislena.eu","https://invidious.projectsegfau.lt","https://invidious.lunar.icu"];return n[Math.floor(n.length*Math.random())]}async fetch(n){return await(await fetch(`${this.chooseRandomBaseUrl()}/api/v1/${n}`,{referrerPolicy:"no-referrer"})).json()}async searchYtVideo(n){if(new RegExp("https?://").test(n)){const r=new URLSearchParams(n.split("?")[1]).get("v");if(r)return r;const i=n.split("/");return i[i.length-1].split("?")[0]}else{const r=await this.fetch(`search/?q=${encodeURIComponent(n)}`);if(r.length>0)return r[0].videoId}return null}async getTrack(n){const r=await this.fetch(`videos/${n}`);return r.error?null:new Ho(r)}async query(n){const r=n.join(" "),i=await this.searchYtVideo(r);return i?this.getTrack(i):null}async play(n){if(n.params.length===0)n.respond(`:warning: ${this.$t("general.invalidArgs")} ${this.$t("commands.play.usage")}`);else{const r=await this.query(n.params);if(!r){n.respond(`${this.$t("general.noVideo")} :worried:`);return}this.api.currentTrack=r,this.api.conference.sendMessage(`:notes: ${this.$t("commands.play.playingTrack",{values:{title:r.title}})}`)}}async queue(n){if(n.params.length===0)if(this.api.queue.length===0)n.respond(`:notes: ${this.$t("commands.queue.isEmpty")}`);else{let r=0;const i=new RegExp(/(\d)/ig);n.respond(this.api.queue.reduce((s,o)=>`${s} ${(++r).toString().replaceAll(i,":$1:")} ${o.title}`,`:notes: ${this.$t("commands.queue.content")}`))}else{const r=await this.query(n.params);if(!r){n.respond(`${this.$t("general.noVideo")} :worried:`);return}this.api.currentTrack?this.api.addToQueue(r):this.api.currentTrack=r,n.respond(`:notes: ${this.$t("commands.queue.addedTrack",{values:{title:r.title}})}`)}}async track(n){var r;switch(n.params.length){case 0:n.respond(`:notes: ${this.$t("commands.track.currentlyPlaying",{values:{title:((r=this.api.currentTrack)==null?void 0:r.title)??"nothing"}})}`);break;case 1:const i=n.params[0];if(i==="skip"){this.api.currentTrack=void 0;return}let s=0;const o=a=>2*Math.E^a-1;/^\+\++$/.test(i)?s=o(i.length):/^--+$/.test(i)?s=-o(i.length):s=parseInt(i,10),s?this.api.forward(s):n.respond(`:warning: ${this.$t("general.invalidArgs")} ${this.$t("commands.track.usage")}`);break;default:n.respond(`:warning: ${this.$t("general.invalidArgs")} -${this.$t("commands.track.usage")}`)}}}const gn={default:{jitsiDisplayName:"DJ Jim",initialVolume:20},repoUrl:"https://github.com/p-fruck/Jimmi",url:"https://jimmi.xyz",logo:"/jimmi.svg",plugins:[Po,Co]};function ui(e,t){if(e.length===0)return t;let n={};return n[e.pop()]=t,ui(e,n)}gn.plugins.forEach(e=>{const t=new e({});t.translations&&Object.keys(t.translations).forEach(n=>{const r=ui(t.meta.id.split("."),t.translations[n]);ri(n,{plugins:r})})});io("en",()=>Tr(()=>import("./en-1af22869.js"),[]));function Do(){oo({fallbackLocale:"en",initialLocale:ao()})}var dr=Object.prototype.hasOwnProperty;function bn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&bn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(dr.call(e,n)&&++r&&!dr.call(t,n)||!(n in t)||!bn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Ro(e){return new Promise(t=>{e.subscribe(t)()})}function Bo(e,t,n){e.update(r=>(hi(r,t,n),r))}function Fo(e){return JSON.parse(JSON.stringify(e))}function Pn(e){return e==null}function li(e){return Pn(e)||Object.keys(e).length<=0}function ci(e){let t=[];for(const[,n]of Object.entries(e)){const r=typeof n=="object"?ci(n):[n];t=[...t,...r]}return t}function _n(e,t,n={}){for(const r in t)switch(!0){case(t[r].type==="object"&&!li(t[r].fields)):{n[r]=_n(e[r],t[r].fields,{...n[r]});break}case t[r].type==="array":{const i=e&&e[r]?e[r]:[];n[r]=i.map(s=>{const o=_n(s,t[r].innerType.fields,{...n[r]});return Object.keys(o).length>0?o:""});break}default:n[r]=""}return n}const Lo=bn;function yn(e,t){if(Array.isArray(e))return e.map(r=>yn(r,t));const n={};for(const r in e)n[r]=typeof e[r]=="object"&&!Pn(e[r])?yn(e[r],t):t;return n}function hi(e,t,n){if(new Object(e)!==e)return e;Array.isArray(t)||(t=t.toString().match(/[^.[\]]+/g)||[]);const r=t.slice(0,-1).reduce((i,s,o)=>new Object(i[s])===i[s]?i[s]:i[s]=Math.trunc(Math.abs(t[o+1]))===+t[o+1]?[]:{},e);return r[t[t.length-1]]=n,e}const L={assignDeep:yn,cloneDeep:Fo,deepEqual:Lo,getErrorsFromSchema:_n,getValues:ci,isEmpty:li,isNullish:Pn,set:hi,subscribeOnce:Ro,update:Bo},pr="",ko=!0;function Mo(e){return e.getAttribute&&e.getAttribute("type")==="checkbox"}function $o(e){return e.getAttribute&&e.getAttribute("type")==="file"}function Uo(e){return $o(e)?e.files:Mo(e)?e.checked:e.value}const Go=e=>{let t=e.initialValues||{};const n=e.validationSchema,r=e.validate,i=e.onSubmit,s={values:()=>L.cloneDeep(t),errors:()=>n?L.getErrorsFromSchema(t,n.fields):L.assignDeep(t,pr),touched:()=>L.assignDeep(t,!ko)},o=se(s.values()),a=se(s.errors()),u=se(s.touched()),l=se(!1),c=se(!1),h=Q(a,b=>L.getValues(b).every(E=>E===pr)),f=Q(o,b=>{const T=L.assignDeep(b,!1);for(let E in b)T[E]=!L.deepEqual(b[E],t[E]);return T}),d=Q(f,b=>L.getValues(b).includes(!0));function g(b){return L.subscribeOnce(o).then(T=>_(b,T[b]))}function _(b,T){return w(b,!0),n?(c.set(!0),n.validateAt(b,Ni(o)).then(()=>L.update(a,b,"")).catch(E=>L.update(a,b,E.message)).finally(()=>{c.set(!1)})):r?(c.set(!0),Promise.resolve().then(()=>r({[b]:T})).then(E=>L.update(a,b,L.isNullish(E)?"":E[b])).finally(()=>{c.set(!1)})):Promise.resolve()}function y(b,T){return p(b,T),_(b,T)}function C(b){const T=b.target,E=T.name||T.id,$=Uo(T);return y(E,$)}function P(b){return b&&b.preventDefault&&b.preventDefault(),l.set(!0),L.subscribeOnce(o).then(T=>typeof r=="function"?(c.set(!0),Promise.resolve().then(()=>r(T)).then(E=>{if(L.isNullish(E)||L.getValues(E).length===0)return v(T);a.set(E),l.set(!1)}).finally(()=>c.set(!1))):n?(c.set(!0),n.validate(T,{abortEarly:!1}).then(()=>v(T)).catch(E=>{if(E&&E.inner){const $=s.errors();E.inner.map(ie=>L.set($,ie.path,ie.message)),a.set($)}l.set(!1)}).finally(()=>c.set(!1))):v(T))}function H(){o.set(s.values()),a.set(s.errors()),u.set(s.touched())}function v(b){return Promise.resolve().then(()=>a.set(s.errors())).then(()=>i(b,o,a)).finally(()=>l.set(!1))}function p(b,T){L.update(o,b,T)}function w(b,T){L.update(u,b,T)}function D(b){t=b,H()}return{form:o,errors:a,touched:u,modified:f,isValid:h,isSubmitting:l,isValidating:c,isModified:d,handleChange:C,handleSubmit:P,handleReset:H,updateField:p,updateValidateField:y,updateTouched:w,validateField:g,updateInitialValues:D,state:Q([o,a,u,f,h,c,l,d],([b,T,E,$,ie,j,pe,ve])=>({form:b,errors:T,touched:E,modified:$,isValid:ie,isSubmitting:pe,isValidating:j,isModified:ve}))}};function Ee(e){this._maxSize=e,this.clear()}Ee.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Ee.prototype.get=function(e){return this._values[e]};Ee.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var jo=/[^.^\]^[]+|(?=\[\]|\.\.)/g,fi=/^\d+$/,Vo=/^\d/,qo=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,zo=/^\s*(['"]?)(.*?)(\1)\s*$/,Dn=512,mr=new Ee(Dn),gr=new Ee(Dn),br=new Ee(Dn),be={Cache:Ee,split:En,normalizePath:rn,setter:function(e){var t=rn(e);return gr.get(e)||gr.set(e,function(r,i){for(var s=0,o=t.length,a=r;se.match(Qo)||[],$t=e=>e[0].toUpperCase()+e.slice(1),Bn=(e,t)=>Mt(e).join(t).toLowerCase(),di=e=>Mt(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Ko=e=>$t(di(e)),Jo=e=>Bn(e,"_"),ea=e=>Bn(e,"-"),ta=e=>$t(Bn(e," ")),na=e=>Mt(e).map($t).join(" ");var sn={words:Mt,upperFirst:$t,camelCase:di,pascalCase:Ko,snakeCase:Jo,kebabCase:ea,sentenceCase:ta,titleCase:na},Fn={exports:{}};Fn.exports=function(e){return pi(ra(e),e)};Fn.exports.array=pi;function pi(e,t){var n=e.length,r=new Array(n),i={},s=n,o=ia(t),a=sa(e);for(t.forEach(function(l){if(!a.has(l[0])||!a.has(l[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||u(e[s],s,new Set);return r;function u(l,c,h){if(h.has(l)){var f;try{f=", node was:"+JSON.stringify(l)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(l))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(l));if(!i[c]){i[c]=!0;var d=o.get(l)||new Set;if(d=Array.from(d),c=d.length){h.add(l);do{var g=d[--c];u(g,a.get(g),h)}while(c);h.delete(l)}r[--n]=l}}}function ra(e){for(var t=new Set,n=0,r=e.length;n"",fa=/^Symbol\((.*)\)(.*)$/;function da(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function _r(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return da(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return ha.call(e).replace(fa,"Symbol($1)");const r=ua.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+la.call(e)+"]":r==="RegExp"?ca.call(e):null}function De(e,t){let n=_r(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=_r(this[r],t);return s!==null?s:i},2)}function mi(e){return e==null?[]:[].concat(e)}let pa=/\$\{\s*(\w+)\s*\}/g;class Z extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(pa,(i,s)=>De(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],mi(t).forEach(s=>{Z.isError(s)?(this.errors.push(...s.errors),this.inner=this.inner.concat(s.inner.length?s.inner:s)):this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Z)}}let ae={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${De(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${De(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${De(n,!0)}\``+i}},te={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ma={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},xn={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ga={isValue:"${path} field must be ${value}"},vn={noUnknown:"${path} field has unspecified keys: ${unknown}"},ba={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:ae,string:te,number:ma,date:xn,object:vn,array:ba,boolean:ga});const Ln=e=>e&&e.__isYupSchema__;class Ht{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,o=typeof r=="function"?r:(...a)=>a.every(u=>u===r);return new Ht(t,(a,u)=>{var l;let c=o(...a)?i:s;return(l=c==null?void 0:c(u))!=null?l:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!Ln(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const bt={context:"$",value:"."};class xe{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===bt.context,this.isValue=this.key[0]===bt.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?bt.context:this.isValue?bt.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&be.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}xe.prototype.__isYupRef=!0;const ge=e=>e==null;function Ne(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},a,u){const{name:l,test:c,params:h,message:f,skipAbsent:d}=e;let{parent:g,context:_,abortEarly:y=o.spec.abortEarly}=i;function C(E){return xe.isRef(E)?E.getValue(n,g,_):E}function P(E={}){const $=Object.assign({value:n,originalValue:s,label:o.spec.label,path:E.path||r,spec:o.spec},h,E.params);for(const j of Object.keys($))$[j]=C($[j]);const ie=new Z(Z.formatError(E.message||f,$),n,$.path,E.type||l);return ie.params=$,ie}const H=y?a:u;let v={path:r,parent:g,type:l,from:i.from,createError:P,resolve:C,options:i,originalValue:s,schema:o};const p=E=>{Z.isError(E)?H(E):E?u(null):H(P())},w=E=>{Z.isError(E)?H(E):a(E)},D=d&&ge(n);if(!i.sync){try{Promise.resolve(D?!0:c.call(v,n,v)).then(p,w)}catch(E){w(E)}return}let b;try{var T;if(b=D?!0:c.call(v,n,v),typeof((T=b)==null?void 0:T.then)=="function")throw new Error(`Validation test of type: "${v.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(E){w(E);return}p(b)}return t.OPTIONS=e,t}function _a(e,t,n,r=n){let i,s,o;return t?(be.forEach(t,(a,u,l)=>{let c=u?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:i,value:n});let h=e.type==="tuple",f=l?parseInt(c,10):0;if(e.innerType||h){if(h&&!l)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[f],e=h?e.spec.types[f]:e.innerType}if(!l){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[c],e=e.fields[c]}s=c,o=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:s}):{parent:i,parentPath:t,schema:e}}class Pt extends Set{describe(){const t=[];for(const n of this.values())t.push(xe.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Pt(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Ce(e,t=new Map){if(Ln(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(ae.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ce(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(o=>{s.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(i&&ge(s))return s;let o=De(t),a=De(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". +${this.$t("commands.track.usage")}`)}}}const gn={default:{jitsiDisplayName:"DJ Jim",initialVolume:20},repoUrl:"https://github.com/p-fruck/Jimmi",url:"https://jimmi.xyz",logo:"/jimmi.svg",plugins:[Po,Co]};function ui(e,t){if(e.length===0)return t;let n={};return n[e.pop()]=t,ui(e,n)}gn.plugins.forEach(e=>{const t=new e({});t.translations&&Object.keys(t.translations).forEach(n=>{const r=ui(t.meta.id.split("."),t.translations[n]);ri(n,{plugins:r})})});io("en",()=>Tr(()=>import("./en-1af22869.js"),[]));function Do(){oo({fallbackLocale:"en",initialLocale:ao()})}var dr=Object.prototype.hasOwnProperty;function bn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&bn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(dr.call(e,n)&&++r&&!dr.call(t,n)||!(n in t)||!bn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Ro(e){return new Promise(t=>{e.subscribe(t)()})}function Bo(e,t,n){e.update(r=>(hi(r,t,n),r))}function Fo(e){return JSON.parse(JSON.stringify(e))}function Pn(e){return e==null}function li(e){return Pn(e)||Object.keys(e).length<=0}function ci(e){let t=[];for(const[,n]of Object.entries(e)){const r=typeof n=="object"?ci(n):[n];t=[...t,...r]}return t}function _n(e,t,n={}){for(const r in t)switch(!0){case(t[r].type==="object"&&!li(t[r].fields)):{n[r]=_n(e[r],t[r].fields,{...n[r]});break}case t[r].type==="array":{const i=e&&e[r]?e[r]:[];n[r]=i.map(s=>{const o=_n(s,t[r].innerType.fields,{...n[r]});return Object.keys(o).length>0?o:""});break}default:n[r]=""}return n}const Lo=bn;function yn(e,t){if(Array.isArray(e))return e.map(r=>yn(r,t));const n={};for(const r in e)n[r]=typeof e[r]=="object"&&!Pn(e[r])?yn(e[r],t):t;return n}function hi(e,t,n){if(new Object(e)!==e)return e;Array.isArray(t)||(t=t.toString().match(/[^.[\]]+/g)||[]);const r=t.slice(0,-1).reduce((i,s,o)=>new Object(i[s])===i[s]?i[s]:i[s]=Math.trunc(Math.abs(t[o+1]))===+t[o+1]?[]:{},e);return r[t[t.length-1]]=n,e}const L={assignDeep:yn,cloneDeep:Fo,deepEqual:Lo,getErrorsFromSchema:_n,getValues:ci,isEmpty:li,isNullish:Pn,set:hi,subscribeOnce:Ro,update:Bo},pr="",ko=!0;function Mo(e){return e.getAttribute&&e.getAttribute("type")==="checkbox"}function $o(e){return e.getAttribute&&e.getAttribute("type")==="file"}function Uo(e){return $o(e)?e.files:Mo(e)?e.checked:e.value}const Go=e=>{let t=e.initialValues||{};const n=e.validationSchema,r=e.validate,i=e.onSubmit,s={values:()=>L.cloneDeep(t),errors:()=>n?L.getErrorsFromSchema(t,n.fields):L.assignDeep(t,pr),touched:()=>L.assignDeep(t,!ko)},o=se(s.values()),a=se(s.errors()),u=se(s.touched()),l=se(!1),c=se(!1),h=Q(a,b=>L.getValues(b).every(E=>E===pr)),f=Q(o,b=>{const T=L.assignDeep(b,!1);for(let E in b)T[E]=!L.deepEqual(b[E],t[E]);return T}),d=Q(f,b=>L.getValues(b).includes(!0));function g(b){return L.subscribeOnce(o).then(T=>_(b,T[b]))}function _(b,T){return w(b,!0),n?(c.set(!0),n.validateAt(b,Ni(o)).then(()=>L.update(a,b,"")).catch(E=>L.update(a,b,E.message)).finally(()=>{c.set(!1)})):r?(c.set(!0),Promise.resolve().then(()=>r({[b]:T})).then(E=>L.update(a,b,L.isNullish(E)?"":E[b])).finally(()=>{c.set(!1)})):Promise.resolve()}function y(b,T){return p(b,T),_(b,T)}function C(b){const T=b.target,E=T.name||T.id,$=Uo(T);return y(E,$)}function P(b){return b&&b.preventDefault&&b.preventDefault(),l.set(!0),L.subscribeOnce(o).then(T=>typeof r=="function"?(c.set(!0),Promise.resolve().then(()=>r(T)).then(E=>{if(L.isNullish(E)||L.getValues(E).length===0)return v(T);a.set(E),l.set(!1)}).finally(()=>c.set(!1))):n?(c.set(!0),n.validate(T,{abortEarly:!1}).then(()=>v(T)).catch(E=>{if(E&&E.inner){const $=s.errors();E.inner.map(re=>L.set($,re.path,re.message)),a.set($)}l.set(!1)}).finally(()=>c.set(!1))):v(T))}function H(){o.set(s.values()),a.set(s.errors()),u.set(s.touched())}function v(b){return Promise.resolve().then(()=>a.set(s.errors())).then(()=>i(b,o,a)).finally(()=>l.set(!1))}function p(b,T){L.update(o,b,T)}function w(b,T){L.update(u,b,T)}function D(b){t=b,H()}return{form:o,errors:a,touched:u,modified:f,isValid:h,isSubmitting:l,isValidating:c,isModified:d,handleChange:C,handleSubmit:P,handleReset:H,updateField:p,updateValidateField:y,updateTouched:w,validateField:g,updateInitialValues:D,state:Q([o,a,u,f,h,c,l,d],([b,T,E,$,re,j,pe,ve])=>({form:b,errors:T,touched:E,modified:$,isValid:re,isSubmitting:pe,isValidating:j,isModified:ve}))}};function Ee(e){this._maxSize=e,this.clear()}Ee.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Ee.prototype.get=function(e){return this._values[e]};Ee.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var jo=/[^.^\]^[]+|(?=\[\]|\.\.)/g,fi=/^\d+$/,Vo=/^\d/,qo=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,zo=/^\s*(['"]?)(.*?)(\1)\s*$/,Dn=512,mr=new Ee(Dn),gr=new Ee(Dn),br=new Ee(Dn),be={Cache:Ee,split:En,normalizePath:rn,setter:function(e){var t=rn(e);return gr.get(e)||gr.set(e,function(r,i){for(var s=0,o=t.length,a=r;se.match(Qo)||[],$t=e=>e[0].toUpperCase()+e.slice(1),Bn=(e,t)=>Mt(e).join(t).toLowerCase(),di=e=>Mt(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Ko=e=>$t(di(e)),Jo=e=>Bn(e,"_"),ea=e=>Bn(e,"-"),ta=e=>$t(Bn(e," ")),na=e=>Mt(e).map($t).join(" ");var sn={words:Mt,upperFirst:$t,camelCase:di,pascalCase:Ko,snakeCase:Jo,kebabCase:ea,sentenceCase:ta,titleCase:na},Fn={exports:{}};Fn.exports=function(e){return pi(ra(e),e)};Fn.exports.array=pi;function pi(e,t){var n=e.length,r=new Array(n),i={},s=n,o=ia(t),a=sa(e);for(t.forEach(function(l){if(!a.has(l[0])||!a.has(l[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});s--;)i[s]||u(e[s],s,new Set);return r;function u(l,c,h){if(h.has(l)){var f;try{f=", node was:"+JSON.stringify(l)}catch{f=""}throw new Error("Cyclic dependency"+f)}if(!a.has(l))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(l));if(!i[c]){i[c]=!0;var d=o.get(l)||new Set;if(d=Array.from(d),c=d.length){h.add(l);do{var g=d[--c];u(g,a.get(g),h)}while(c);h.delete(l)}r[--n]=l}}}function ra(e){for(var t=new Set,n=0,r=e.length;n"",fa=/^Symbol\((.*)\)(.*)$/;function da(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function _r(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return da(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return ha.call(e).replace(fa,"Symbol($1)");const r=ua.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+la.call(e)+"]":r==="RegExp"?ca.call(e):null}function De(e,t){let n=_r(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let s=_r(this[r],t);return s!==null?s:i},2)}function mi(e){return e==null?[]:[].concat(e)}let pa=/\$\{\s*(\w+)\s*\}/g;class Z extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(pa,(i,s)=>De(n[s])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],mi(t).forEach(s=>{Z.isError(s)?(this.errors.push(...s.errors),this.inner=this.inner.concat(s.inner.length?s.inner:s)):this.errors.push(s)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Z)}}let ae={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${De(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${De(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${De(n,!0)}\``+i}},ee={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},ma={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},xn={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ga={isValue:"${path} field must be ${value}"},vn={noUnknown:"${path} field has unspecified keys: ${unknown}"},ba={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:ae,string:ee,number:ma,date:xn,object:vn,array:ba,boolean:ga});const Ln=e=>e&&e.__isYupSchema__;class Ht{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:s}=n,o=typeof r=="function"?r:(...a)=>a.every(u=>u===r);return new Ht(t,(a,u)=>{var l;let c=o(...a)?i:s;return(l=c==null?void 0:c(u))!=null?l:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(s=>s.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!Ln(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const bt={context:"$",value:"."};class xe{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===bt.context,this.isValue=this.key[0]===bt.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?bt.context:this.isValue?bt.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&be.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}xe.prototype.__isYupRef=!0;const ge=e=>e==null;function Ne(e){function t({value:n,path:r="",options:i,originalValue:s,schema:o},a,u){const{name:l,test:c,params:h,message:f,skipAbsent:d}=e;let{parent:g,context:_,abortEarly:y=o.spec.abortEarly}=i;function C(E){return xe.isRef(E)?E.getValue(n,g,_):E}function P(E={}){const $=Object.assign({value:n,originalValue:s,label:o.spec.label,path:E.path||r,spec:o.spec},h,E.params);for(const j of Object.keys($))$[j]=C($[j]);const re=new Z(Z.formatError(E.message||f,$),n,$.path,E.type||l);return re.params=$,re}const H=y?a:u;let v={path:r,parent:g,type:l,from:i.from,createError:P,resolve:C,options:i,originalValue:s,schema:o};const p=E=>{Z.isError(E)?H(E):E?u(null):H(P())},w=E=>{Z.isError(E)?H(E):a(E)},D=d&&ge(n);if(!i.sync){try{Promise.resolve(D?!0:c.call(v,n,v)).then(p,w)}catch(E){w(E)}return}let b;try{var T;if(b=D?!0:c.call(v,n,v),typeof((T=b)==null?void 0:T.then)=="function")throw new Error(`Validation test of type: "${v.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(E){w(E);return}p(b)}return t.OPTIONS=e,t}function _a(e,t,n,r=n){let i,s,o;return t?(be.forEach(t,(a,u,l)=>{let c=u?a.slice(1,a.length-1):a;e=e.resolve({context:r,parent:i,value:n});let h=e.type==="tuple",f=l?parseInt(c,10):0;if(e.innerType||h){if(h&&!l)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${o}" must contain an index to the tuple element, e.g. "${o}[0]"`);if(n&&f>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[f],e=h?e.spec.types[f]:e.innerType}if(!l){if(!e.fields||!e.fields[c])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${o} which is a type: "${e.type}")`);i=n,n=n&&n[c],e=e.fields[c]}s=c,o=u?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:s}):{parent:i,parentPath:t,schema:e}}class Pt extends Set{describe(){const t=[];for(const n of this.values())t.push(xe.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new Pt(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function Ce(e,t=new Map){if(Ln(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r{this.typeError(ae.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Ce(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(s=>{t.tests.forEach(o=>{s.test(o.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,s)=>s.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",s=r._cast(t,n);if(n.assert!==!1&&!r.isType(s)){if(i&&ge(s))return s;let o=De(t),a=De(s);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". attempted value: ${o} -`+(a!==o?`result of cast: ${a}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,s)=>s.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:s,originalValue:o=t,strict:a=this.spec.strict}=n,u=t;a||(u=this._cast(u,Object.assign({assert:!1},n)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:s,value:u,originalValue:o,options:n,tests:l},r,c=>{if(c.length)return i(c,u);this.runTests({path:s,value:u,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:s,value:o,originalValue:a,path:u,options:l}=t,c=_=>{i||(i=!0,n(_,o))},h=_=>{i||(i=!0,r(_,o))},f=s.length,d=[];if(!f)return h([]);let g={value:o,originalValue:a,path:u,options:l,schema:this};for(let _=0;_this.resolve(c)._validate(l,c,f,d)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,s)=>r._validate(t,n,(o,a)=>{Z.isError(o)&&(o.value=a),s(o)},(o,a)=>{o.length?s(new Z(o,a)):i(a)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(s,o)=>{throw Z.isError(s)&&(s.value=o),s},(s,o)=>{if(s.length)throw new Z(s,t);i=o}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Z.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Z.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this):Ce(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ne({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ne({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=ae.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ae.notNull){return this.nullability(!1,t)}required(t=ae.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=ae.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ne(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=mi(t).map(s=>new xe(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new Ht(i,n):Ht.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ne({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=ae.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ne({message:n,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),r}notOneOf(t,n=ae.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ne({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:s,nullable:o}=n.spec;return{meta:i,label:r,optional:s,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,l,c)=>c.findIndex(h=>h.name===u.name)===l)}}}oe.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])oe.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=_a(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])oe.prototype[e]=oe.prototype.oneOf;for(const e of["not","nope"])oe.prototype[e]=oe.prototype.notOneOf;let ya=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ea=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,xa=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,va=e=>ge(e)||e===e.trim(),wa={}.toString();function wt(){return new gi}class gi extends oe{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===wa?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||ae.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=te.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=te.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=te.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||te.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=te.email){return this.matches(ya,{name:"email",message:t,excludeEmptyString:!0})}url(t=te.url){return this.matches(Ea,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=te.uuid){return this.matches(xa,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=te.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:va})}lowercase(t=te.lowercase){return this.transform(n=>ge(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ge(n)||n===n.toLowerCase()})}uppercase(t=te.uppercase){return this.transform(n=>ge(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ge(n)||n===n.toUpperCase()})}}wt.prototype=gi.prototype;var Ta=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Sa(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=Ta.exec(e)){for(var s=0,o;o=t[s];++s)i[o]=+i[o]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let Aa=new Date(""),Oa=e=>Object.prototype.toString.call(e)==="[object Date]";class Ut extends oe{constructor(){super({type:"date",check(t){return Oa(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=Sa(t),isNaN(t)?Ut.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(xe.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=xn.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=xn.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}Ut.INVALID_DATE=Aa;Ut.prototype;function Na(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,a])=>`${o}-${a}`));function s(o,a){let u=be.split(o)[0];r.add(u),i.has(`${a}-${u}`)||n.push([a,u])}for(const o of Object.keys(e)){let a=e[o];r.add(o),xe.isRef(a)&&a.isSibling?s(a.path,o):Ln(a)&&"deps"in a&&a.deps.forEach(u=>s(u,o))}return aa.array(Array.from(r),n).reverse()}function yr(e,t){let n=1/0;return e.some((r,i)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=i,!0}),n}function bi(e){return(t,n)=>yr(e,t)-yr(e,n)}const Ia=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Tt(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Tt(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Tt(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Tt)}):"optional"in e?e.optional():e}const Ca=(e,t)=>{const n=[...be.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=be.getter(be.join(n),!0)(e);return!!(i&&r in i)};let Er=e=>Object.prototype.toString.call(e)==="[object Object]";function Ha(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Pa=bi([]);function _i(e){return new yi(e)}class yi extends oe{constructor(t){super({type:"object",check(n){return Er(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Pa,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let s=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(h=>!this._nodes.includes(h))),u={},l=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),c=!1;for(const h of a){let f=s[h],d=h in i;if(f){let g,_=i[h];l.path=(n.path?`${n.path}.`:"")+h,f=f.resolve({value:_,context:n.context,parent:u});let y=f instanceof oe?f.spec:void 0,C=y==null?void 0:y.strict;if(y!=null&&y.strip){c=c||h in i;continue}g=!n.__validating||!C?f.cast(i[h],l):i[h],g!==void 0&&(u[h]=g)}else d&&!o&&(u[h]=i[h]);(d!==h in u||u[h]!==i[h])&&(c=!0)}return c?u:i}_validate(t,n={},r,i){let{from:s=[],originalValue:o=t,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:o},...s],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(u,l)=>{if(!a||!Er(l)){i(u,l);return}o=o||l;let c=[];for(let h of this._nodes){let f=this.fields[h];!f||xe.isRef(f)||c.push(f.asNestedTest({options:n,key:h,parent:l,parentPath:n.path,originalParent:o}))}this.runTests({tests:c,value:l,originalValue:o,options:n},r,h=>{i(h.sort(this._sortErrors).concat(u),l)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?s:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const s=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Na(t,n),r._sortErrors=bi(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Tt(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let i=be.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return Ca(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(Ia)}noUnknown(t=!0,n=vn.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=Ha(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=vn.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(sn.camelCase)}snakeCase(){return this.transformKeys(sn.snakeCase)}constantCase(){return this.transformKeys(t=>sn.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[i,s]of Object.entries(this.fields)){var r;let o=t;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[i]})),n.fields[i]=s.describe(o)}return n}}_i.prototype=yi.prototype;function Da(e){let t,n,r,i,s,o,a,u,l,c,h,f;const d=e[3].default,g=Ii(d,e,e[2],null);return{c(){t=S("label"),n=S("div"),r=S("input"),i=F(),s=S("div"),o=F(),a=S("div"),u=F(),l=S("div"),g&&g.c(),x(r,"id","toogleButton"),x(r,"type","checkbox"),x(r,"class","hidden svelte-4l3tce"),x(s,"class","toggle-path bg-gray-200 w-9 h-5 rounded-full shadow-inner svelte-4l3tce"),x(a,"class","toggle-circle absolute w-3.5 h-3.5 bg-white rounded-full shadow inset-y-0 left-0 svelte-4l3tce"),x(n,"class","relative"),x(l,"class","ml-3 text-gray-700 font-medium"),x(t,"class","flex items-center cursor-pointer")},m(_,y){re(_,t,y),m(t,n),m(n,r),r.checked=e[0],m(n,i),m(n,s),m(n,o),m(n,a),m(t,u),m(t,l),g&&g.m(l,null),c=!0,h||(f=[ne(r,"click",function(){nt(e[1])&&e[1].apply(this,arguments)}),ne(r,"change",e[4])],h=!0)},p(_,[y]){e=_,y&1&&(r.checked=e[0]),g&&g.p&&(!c||y&4)&&Hi(g,d,e,e[2],c?Ci(d,e[2],y,null):Pi(e[2]),null)},i(_){c||(z(g,_),c=!0)},o(_){K(g,_),c=!1},d(_){_&&W(t),g&&g.d(_),h=!1,le(f)}}}function Ra(e,t,n){let{$$slots:r={},$$scope:i}=t,{checked:s=!1}=t,{onClick:o=()=>{}}=t;function a(){s=this.checked,n(0,s)}return e.$$set=u=>{"checked"in u&&n(0,s=u.checked),"onClick"in u&&n(1,o=u.onClick),"$$scope"in u&&n(2,i=u.$$scope)},[s,o,i,r,a]}class Ba extends Me{constructor(t){super(),ke(this,t,Ra,Da,ye,{checked:0,onClick:1})}}function Fa(e){let t=e[4]("routes.home.toggleBetaMode")+"",n;return{c(){n=k(t)},m(r,i){re(r,n,i)},p(r,i){i&16&&t!==(t=r[4]("routes.home.toggleBetaMode")+"")&&X(n,t)},d(r){r&&W(n)}}}function xr(e){let t,n=e[4]("routes.home.domainError")+"",r;return{c(){t=S("p"),r=k(n),x(t,"class","text-xs text-red-500 mt-3")},m(i,s){re(i,t,s),m(t,r)},p(i,s){s&16&&n!==(n=i[4]("routes.home.domainError")+"")&&X(r,n)},d(i){i&&W(t)}}}function vr(e){let t,n=e[4]("routes.home.roomError")+"",r;return{c(){t=S("p"),r=k(n),x(t,"class","text-xs text-red-500 mt-3")},m(i,s){re(i,t,s),m(t,r)},p(i,s){s&16&&n!==(n=i[4]("routes.home.roomError")+"")&&X(r,n)},d(i){i&&W(t)}}}function La(e){let t,n,r,i,s=e[4]("routes.home.mainContent.heading")+"",o,a,u,l=e[4]("routes.home.mainContent.description")+"",c,h,f,d,g,_,y,C,P=e[4]("routes.home.joinRoomHeading")+"",H,v,p,w,D=e[4]("routes.home.domainLabel")+"",b,T,E,$,ie,j,pe,ve=e[4]("routes.home.roomLabel")+"",Gt,kn,Y,Mn,$n,it,me,st,ot=e[4]("general.advancedConfiguration")+"",jt,Un,Ge,at=e[4]("general.password")+"",Vt,Gn,J,jn,je,ut=e[4]("routes.home.joinButtonText")+"",qt,Vn,we,lt=e[4]("routes.home.joinRoomFootnote")+"",zt,qn,Te,Xt,ct,U,Zt,zn;function Ei(A){e[11](A)}function xi(A){e[12](A)}let Wt={$$slots:{default:[Fa]},$$scope:{ctx:e}};e[1]!==void 0&&(Wt.onClick=e[1]),e[3]!==void 0&&(Wt.checked=e[3]),f=new Ba({props:Wt}),Nt.push(()=>er(f,"onClick",Ei)),Nt.push(()=>er(f,"checked",xi));let V=e[5].domain&&xr(e),q=e[5].room&&vr(e);return{c(){t=S("section"),n=S("div"),r=S("div"),i=S("h1"),o=k(s),a=F(),u=S("p"),c=k(l),h=F(),_e(f.$$.fragment),_=F(),y=S("form"),C=S("h2"),H=k(P),v=F(),p=S("div"),w=S("label"),b=k(D),T=F(),E=S("input"),$=F(),V&&V.c(),ie=F(),j=S("div"),pe=S("label"),Gt=k(ve),kn=F(),Y=S("input"),Mn=F(),q&&q.c(),$n=F(),it=S("div"),me=S("details"),st=S("summary"),jt=k(ot),Un=F(),Ge=S("label"),Vt=k(at),Gn=F(),J=S("input"),jn=F(),je=S("button"),qt=k(ut),Vn=F(),we=S("p"),zt=k(lt),qn=F(),Te=S("a"),Xt=k(e[2]),x(i,"class","title-font font-medium text-3xl text-gray-900"),x(u,"class","leading-relaxed mt-4 mb-4"),x(r,"class","lg:w-3/5 md:w-1/2 md:pr-16 lg:pr-0 pr-0"),x(C,"class","text-gray-900 text-lg font-medium title-font mb-5"),x(w,"for","domain"),x(w,"class","leading-7 text-sm text-gray-600"),x(E,"type","text"),x(E,"id","domain"),x(E,"name","domain"),x(E,"placeholder","meet.jit.si"),x(E,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(p,"class","relative mb-4"),x(pe,"for","room"),x(pe,"class","leading-7 text-sm text-gray-600"),x(Y,"type","text"),x(Y,"id","room"),x(Y,"name","room"),x(Y,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(j,"class","relative mb-4"),x(st,"class","cursor-pointer"),x(Ge,"for","domain"),x(Ge,"class","leading-7 text-sm text-gray-600"),x(J,"type","password"),x(J,"id","password"),x(J,"name","password"),x(J,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(it,"class","relative mb-4"),x(je,"class","disabled:opacity-50 text-white bg-indigo-500 border-0 py-2 px-8 focus:outline-none hover:bg-indigo-600 rounded text-lg"),x(je,"type","submit"),x(Te,"class","text-indigo-500 break-words"),x(Te,"href",ct=`https://${e[2]}`),x(we,"class","text-xs text-gray-500 mt-3"),x(y,"class","lg:w-2/6 md:w-1/2 bg-gray-100 rounded-lg p-8 flex flex-col md:ml-auto w-full mt-10 md:mt-0"),x(n,"class","container px-5 py-24 mx-auto flex flex-wrap items-center"),x(t,"class","text-gray-600 body-font")},m(A,B){re(A,t,B),m(t,n),m(n,r),m(r,i),m(i,o),m(r,a),m(r,u),m(u,c),m(r,h),he(f,r,null),m(n,_),m(n,y),m(y,C),m(C,H),m(y,v),m(y,p),m(p,w),m(w,b),m(p,T),m(p,E),Se(E,e[0].domain),m(p,$),V&&V.m(p,null),m(y,ie),m(y,j),m(j,pe),m(pe,Gt),m(j,kn),m(j,Y),Se(Y,e[0].room),m(j,Mn),q&&q.m(j,null),m(y,$n),m(y,it),m(it,me),m(me,st),m(st,jt),m(me,Un),m(me,Ge),m(Ge,Vt),m(me,Gn),m(me,J),Se(J,e[0].password),m(y,jn),m(y,je),m(je,qt),m(y,Vn),m(y,we),m(we,zt),m(we,qn),m(we,Te),m(Te,Xt),U=!0,Zt||(zn=[ne(E,"beforeinput",e[10]),ne(E,"change",e[8]),ne(E,"input",e[13]),ne(Y,"beforeinput",e[10]),ne(Y,"change",e[8]),ne(Y,"input",e[14]),ne(J,"change",e[8]),ne(J,"input",e[15]),ne(y,"submit",e[9])],Zt=!0)},p(A,[B]){(!U||B&16)&&s!==(s=A[4]("routes.home.mainContent.heading")+"")&&X(o,s),(!U||B&16)&&l!==(l=A[4]("routes.home.mainContent.description")+"")&&X(c,l);const ht={};B&262160&&(ht.$$scope={dirty:B,ctx:A}),!d&&B&2&&(d=!0,ht.onClick=A[1],Jn(()=>d=!1)),!g&&B&8&&(g=!0,ht.checked=A[3],Jn(()=>g=!1)),f.$set(ht),(!U||B&16)&&P!==(P=A[4]("routes.home.joinRoomHeading")+"")&&X(H,P),(!U||B&16)&&D!==(D=A[4]("routes.home.domainLabel")+"")&&X(b,D),B&1&&E.value!==A[0].domain&&Se(E,A[0].domain),A[5].domain?V?V.p(A,B):(V=xr(A),V.c(),V.m(p,null)):V&&(V.d(1),V=null),(!U||B&16)&&ve!==(ve=A[4]("routes.home.roomLabel")+"")&&X(Gt,ve),B&1&&Y.value!==A[0].room&&Se(Y,A[0].room),A[5].room?q?q.p(A,B):(q=vr(A),q.c(),q.m(j,null)):q&&(q.d(1),q=null),(!U||B&16)&&ot!==(ot=A[4]("general.advancedConfiguration")+"")&&X(jt,ot),(!U||B&16)&&at!==(at=A[4]("general.password")+"")&&X(Vt,at),B&1&&J.value!==A[0].password&&Se(J,A[0].password),(!U||B&16)&&ut!==(ut=A[4]("routes.home.joinButtonText")+"")&&X(qt,ut),(!U||B&16)&<!==(lt=A[4]("routes.home.joinRoomFootnote")+"")&&X(zt,lt),(!U||B&4)&&X(Xt,A[2]),(!U||B&4&&ct!==(ct=`https://${A[2]}`))&&x(Te,"href",ct)},i(A){U||(z(f.$$.fragment,A),U=!0)},o(A){K(f.$$.fragment,A),U=!1},d(A){A&&W(t),fe(f),V&&V.d(),q&&q.d(),Zt=!1,le(zn)}}}function ka(e,t,n){let r,i,s,o,a;_t(e,si,p=>n(4,o=p));let u=()=>{window.location.href=r?"/":"/beta"};const l=new RegExp(/^$|^((?:(?:(?:\w[\.\-\+]?)*)\w)+)((?:(?:(?:\w[\.\-\+]?){0,62})\w)+)\.(\w{2,6})$/),c=new RegExp(/^[^?&:"'%#]+$/),{form:h,errors:f,handleChange:d,handleSubmit:g}=Go({initialValues:{domain:"",room:"",password:""},validationSchema:_i().shape({domain:wt().trim().matches(l),room:wt().trim().min(1).matches(c).required(),password:wt().optional()}),onSubmit:p=>{const w=p.password?`?password=${p.password}`:"";Ao(`/bot/${i}${w}`)}});_t(e,h,p=>n(0,s=p)),_t(e,f,p=>n(5,a=p));function _(p){if(p instanceof InputEvent&&p.data&&p.inputType==="insertFromPaste"){const{data:w}=p,D=new RegExp("^http(s?)://(.*)/(.*)$");if(!D.test(w))return;const b=D.exec(w);if(!(b&&b.length>=4))return;const T=b[2],E=b[3];l.test(T)&&c.test(E)&&(p.preventDefault(),Yn(h,s.domain=T,s),Yn(h,s.room=E,s))}}function y(p){u=p,n(1,u)}function C(p){r=p,n(3,r)}function P(){s.domain=this.value,h.set(s)}function H(){s.room=this.value,h.set(s)}function v(){s.password=this.value,h.set(s)}return e.$$.update=()=>{e.$$.dirty&1&&n(2,i=`${s.domain||"meet.jit.si"}/${s.room}`)},n(3,r=window.location.href.split("/")[3].startsWith("beta")),[s,u,i,r,o,a,h,f,d,g,_,y,C,P,H,v]}class Ma extends Me{constructor(t){super(),ke(this,t,ka,La,ye,{})}}function $a(e){let t;return{c(){t=S("p"),t.textContent="404 - Not found"},m(n,r){re(n,t,r)},p:M,i:M,o:M,d(n){n&&W(t)}}}class Ua extends Me{constructor(t){super(),ke(this,t,null,$a,ye,{})}}function Ga(e){let t,n,r,i,s,o,a,u,l,c,h,f,d,g;return{c(){t=S("footer"),n=S("div"),r=S("div"),i=S("div"),s=S("a"),o=k("JIMMI"),a=F(),u=S("p"),u.textContent="Still under heavy development",l=F(),c=S("div"),h=S("p"),f=k(`Fork me on - `),d=S("a"),g=k("GitHub"),x(s,"href",gn.url),x(s,"class","ml-3 text-xl"),x(u,"class","text-sm text-gray-500 ml-4 pl-4 border-l-2 border-gray-200 sm:py-2 sm:mt-0"),x(i,"class","flex items-center md:justify-start justify-center text-gray-900"),x(d,"href",gn.repoUrl),x(d,"class","text-indigo-500 ml-1"),x(d,"target","_blank"),x(d,"rel","noopener noreferrer"),x(h,"class","text-sm text-gray-500"),x(c,"class","sm:ml-auto sm:py-2 sm:mt-0 mt-4 sm:text-left text-center text-gray-500 text-sm"),x(r,"class","container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row"),x(n,"class","bg-gray-100 "),x(t,"class","text-gray-600 body-font absolute bottom-0 w-screen")},m(_,y){re(_,t,y),m(t,n),m(n,r),m(r,i),m(i,s),m(s,o),m(i,a),m(i,u),m(r,l),m(r,c),m(c,h),m(h,f),m(h,d),m(d,g)},p:M,i:M,o:M,d(_){_&&W(t)}}}class ja extends Me{constructor(t){super(),ke(this,t,null,Ga,ye,{})}}function wr(e){let t,n;return t=new Io({props:{routes:e[1]}}),{c(){_e(t.$$.fragment)},m(r,i){he(t,r,i),n=!0},p:M,i(r){n||(z(t.$$.fragment,r),n=!0)},o(r){K(t.$$.fragment,r),n=!1},d(r){fe(t,r)}}}function Va(e){let t,n,r,i,s=!e[0]&&wr(e);return r=new ja({}),{c(){t=S("main"),s&&s.c(),n=F(),_e(r.$$.fragment),x(t,"class","h-screen")},m(o,a){re(o,t,a),s&&s.m(t,null),m(t,n),he(r,t,null),i=!0},p(o,[a]){o[0]?s&&(Rt(),K(s,1,1,()=>{s=null}),Bt()):s?(s.p(o,a),a&1&&z(s,1)):(s=wr(o),s.c(),z(s,1),s.m(t,n))},i(o){i||(z(s),z(r.$$.fragment,o),i=!0)},o(o){K(s),K(r.$$.fragment,o),i=!1},d(o){o&&W(t),s&&s.d(),fe(r)}}}function qa(e,t,n){let r;_t(e,xt,s=>n(0,r=s)),Do();const i={"/":Ma,"/bot/:instance/:room":xo({asyncComponent:()=>Tr(()=>import("./Bot-2afa03cb.js"),["assets/Bot-2afa03cb.js","assets/Bot-b35bdf2e.css"])}),"*":Ua};return[r,i]}class za extends Me{constructor(t){super(),ke(this,t,qa,Va,ye,{})}}new za({target:document.getElementById("app")});export{M as A,_e as B,he as C,z as D,Rt as E,Bt as F,K as G,fe as H,_t as I,Vi as J,ji as K,Ao as L,Ii as M,Hi as N,Pi as O,Ci as P,er as Q,Jn as R,Me as S,nu as T,oi as U,si as X,ke as a,F as b,x as c,Za as d,S as e,It as f,tu as g,Ka as h,Ai as i,re as j,m as k,Se as l,ne as m,X as n,eu as o,W as p,Wa as q,le as r,ye as s,k as t,Ja as u,Sn as v,Nt as w,Qa as x,Ya as y,gn as z}; +`+(a!==o?`result of cast: ${a}`:""))}return s}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,s)=>s.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,i){let{path:s,originalValue:o=t,strict:a=this.spec.strict}=n,u=t;a||(u=this._cast(u,Object.assign({assert:!1},n)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:s,value:u,originalValue:o,options:n,tests:l},r,c=>{if(c.length)return i(c,u);this.runTests({path:s,value:u,originalValue:o,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:s,value:o,originalValue:a,path:u,options:l}=t,c=_=>{i||(i=!0,n(_,o))},h=_=>{i||(i=!0,r(_,o))},f=s.length,d=[];if(!f)return h([]);let g={value:o,originalValue:a,path:u,options:l,schema:this};for(let _=0;_this.resolve(c)._validate(l,c,f,d)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,s)=>r._validate(t,n,(o,a)=>{Z.isError(o)&&(o.value=a),s(o)},(o,a)=>{o.length?s(new Z(o,a)):i(a)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(s,o)=>{throw Z.isError(s)&&(s.value=o),s},(s,o)=>{if(s.length)throw new Z(s,t);i=o}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(Z.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(Z.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this):Ce(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ne({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ne({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=ae.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ae.notNull){return this.nullability(!1,t)}required(t=ae.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=ae.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ne(n),s=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(o=>!(o.OPTIONS.name===n.name&&(s||o.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=mi(t).map(s=>new xe(s));return i.forEach(s=>{s.isSibling&&r.deps.push(s.key)}),r.conditions.push(typeof n=="function"?new Ht(i,n):Ht.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ne({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=ae.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ne({message:n,name:"oneOf",skipAbsent:!0,test(i){let s=this.schema._whitelist,o=s.resolveAll(this.resolve);return o.includes(i)?!0:this.createError({params:{values:Array.from(s).join(", "),resolved:o}})}}),r}notOneOf(t,n=ae.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ne({message:n,name:"notOneOf",test(i){let s=this.schema._blacklist,o=s.resolveAll(this.resolve);return o.includes(i)?this.createError({params:{values:Array.from(s).join(", "),resolved:o}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:s,nullable:o}=n.spec;return{meta:i,label:r,optional:s,nullable:o,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,l,c)=>c.findIndex(h=>h.name===u.name)===l)}}}oe.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])oe.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:s,schema:o}=_a(this,t,n,r.context);return o[e](i&&i[s],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])oe.prototype[e]=oe.prototype.oneOf;for(const e of["not","nope"])oe.prototype[e]=oe.prototype.notOneOf;let ya=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ea=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,xa=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,va=e=>ge(e)||e===e.trim(),wa={}.toString();function wt(){return new gi}class gi extends oe{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===wa?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||ae.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ee.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ee.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ee.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,s;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:s}=n:i=n),this.test({name:s||"matches",message:i||ee.matches,params:{regex:t},skipAbsent:!0,test:o=>o===""&&r||o.search(t)!==-1})}email(t=ee.email){return this.matches(ya,{name:"email",message:t,excludeEmptyString:!0})}url(t=ee.url){return this.matches(Ea,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ee.uuid){return this.matches(xa,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ee.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:va})}lowercase(t=ee.lowercase){return this.transform(n=>ge(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ge(n)||n===n.toLowerCase()})}uppercase(t=ee.uppercase){return this.transform(n=>ge(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>ge(n)||n===n.toUpperCase()})}}wt.prototype=gi.prototype;var Ta=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Sa(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=Ta.exec(e)){for(var s=0,o;o=t[s];++s)i[o]=+i[o]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let Aa=new Date(""),Oa=e=>Object.prototype.toString.call(e)==="[object Date]";class Ut extends oe{constructor(){super({type:"date",check(t){return Oa(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=Sa(t),isNaN(t)?Ut.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(xe.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=xn.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=xn.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}Ut.INVALID_DATE=Aa;Ut.prototype;function Na(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([o,a])=>`${o}-${a}`));function s(o,a){let u=be.split(o)[0];r.add(u),i.has(`${a}-${u}`)||n.push([a,u])}for(const o of Object.keys(e)){let a=e[o];r.add(o),xe.isRef(a)&&a.isSibling?s(a.path,o):Ln(a)&&"deps"in a&&a.deps.forEach(u=>s(u,o))}return aa.array(Array.from(r),n).reverse()}function yr(e,t){let n=1/0;return e.some((r,i)=>{var s;if((s=t.path)!=null&&s.includes(r))return n=i,!0}),n}function bi(e){return(t,n)=>yr(e,t)-yr(e,n)}const Ia=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Tt(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Tt(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Tt(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Tt)}):"optional"in e?e.optional():e}const Ca=(e,t)=>{const n=[...be.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=be.getter(be.join(n),!0)(e);return!!(i&&r in i)};let Er=e=>Object.prototype.toString.call(e)==="[object Object]";function Ha(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Pa=bi([]);function _i(e){return new yi(e)}class yi extends oe{constructor(t){super({type:"object",check(n){return Er(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Pa,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault(n);if(!this._typeCheck(i))return i;let s=this.fields,o=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(h=>!this._nodes.includes(h))),u={},l=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),c=!1;for(const h of a){let f=s[h],d=h in i;if(f){let g,_=i[h];l.path=(n.path?`${n.path}.`:"")+h,f=f.resolve({value:_,context:n.context,parent:u});let y=f instanceof oe?f.spec:void 0,C=y==null?void 0:y.strict;if(y!=null&&y.strip){c=c||h in i;continue}g=!n.__validating||!C?f.cast(i[h],l):i[h],g!==void 0&&(u[h]=g)}else d&&!o&&(u[h]=i[h]);(d!==h in u||u[h]!==i[h])&&(c=!0)}return c?u:i}_validate(t,n={},r,i){let{from:s=[],originalValue:o=t,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:o},...s],n.__validating=!0,n.originalValue=o,super._validate(t,n,r,(u,l)=>{if(!a||!Er(l)){i(u,l);return}o=o||l;let c=[];for(let h of this._nodes){let f=this.fields[h];!f||xe.isRef(f)||c.push(f.asNestedTest({options:n,key:h,parent:l,parentPath:n.path,originalParent:o}))}this.runTests({tests:c,value:l,originalValue:o,options:n},r,h=>{i(h.sort(this._sortErrors).concat(u),l)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,s]of Object.entries(this.fields)){const o=r[i];r[i]=o===void 0?s:o}return n.withMutation(i=>i.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var i;const s=this.fields[r];let o=t;(i=o)!=null&&i.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[r]})),n[r]=s&&"getDefault"in s?s.getDefault(o):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Na(t,n),r._sortErrors=bi(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Tt(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let i=be.getter(t,!0);return this.transform(s=>{if(!s)return s;let o=s;return Ca(s,t)&&(o=Object.assign({},s),r||delete o[t],o[n]=i(s)),o})}json(){return this.transform(Ia)}noUnknown(t=!0,n=vn.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const s=Ha(this.schema,i);return!t||s.length===0||this.createError({params:{unknown:s.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=vn.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(sn.camelCase)}snakeCase(){return this.transformKeys(sn.snakeCase)}constantCase(){return this.transformKeys(t=>sn.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[i,s]of Object.entries(this.fields)){var r;let o=t;(r=o)!=null&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[i]})),n.fields[i]=s.describe(o)}return n}}_i.prototype=yi.prototype;function Da(e){let t,n,r,i,s,o,a,u,l,c,h,f;const d=e[3].default,g=Ii(d,e,e[2],null);return{c(){t=S("label"),n=S("div"),r=S("input"),i=F(),s=S("div"),o=F(),a=S("div"),u=F(),l=S("div"),g&&g.c(),x(r,"id","toogleButton"),x(r,"type","checkbox"),x(r,"class","hidden svelte-4l3tce"),x(s,"class","toggle-path bg-gray-200 w-9 h-5 rounded-full shadow-inner svelte-4l3tce"),x(a,"class","toggle-circle absolute w-3.5 h-3.5 bg-white rounded-full shadow inset-y-0 left-0 svelte-4l3tce"),x(n,"class","relative"),x(l,"class","ml-3 text-gray-700 font-medium"),x(t,"class","flex items-center cursor-pointer")},m(_,y){ne(_,t,y),m(t,n),m(n,r),r.checked=e[0],m(n,i),m(n,s),m(n,o),m(n,a),m(t,u),m(t,l),g&&g.m(l,null),c=!0,h||(f=[te(r,"click",function(){nt(e[1])&&e[1].apply(this,arguments)}),te(r,"change",e[4])],h=!0)},p(_,[y]){e=_,y&1&&(r.checked=e[0]),g&&g.p&&(!c||y&4)&&Hi(g,d,e,e[2],c?Ci(d,e[2],y,null):Pi(e[2]),null)},i(_){c||(z(g,_),c=!0)},o(_){K(g,_),c=!1},d(_){_&&W(t),g&&g.d(_),h=!1,le(f)}}}function Ra(e,t,n){let{$$slots:r={},$$scope:i}=t,{checked:s=!1}=t,{onClick:o=()=>{}}=t;function a(){s=this.checked,n(0,s)}return e.$$set=u=>{"checked"in u&&n(0,s=u.checked),"onClick"in u&&n(1,o=u.onClick),"$$scope"in u&&n(2,i=u.$$scope)},[s,o,i,r,a]}class Ba extends Me{constructor(t){super(),ke(this,t,Ra,Da,ye,{checked:0,onClick:1})}}function Fa(e){let t=e[4]("routes.home.toggleBetaMode")+"",n;return{c(){n=k(t)},m(r,i){ne(r,n,i)},p(r,i){i&16&&t!==(t=r[4]("routes.home.toggleBetaMode")+"")&&X(n,t)},d(r){r&&W(n)}}}function xr(e){let t,n=e[4]("routes.home.domainError")+"",r;return{c(){t=S("p"),r=k(n),x(t,"class","text-xs text-red-500 mt-3")},m(i,s){ne(i,t,s),m(t,r)},p(i,s){s&16&&n!==(n=i[4]("routes.home.domainError")+"")&&X(r,n)},d(i){i&&W(t)}}}function vr(e){let t,n=e[4]("routes.home.roomError")+"",r;return{c(){t=S("p"),r=k(n),x(t,"class","text-xs text-red-500 mt-3")},m(i,s){ne(i,t,s),m(t,r)},p(i,s){s&16&&n!==(n=i[4]("routes.home.roomError")+"")&&X(r,n)},d(i){i&&W(t)}}}function La(e){let t,n,r,i,s=e[4]("routes.home.mainContent.heading")+"",o,a,u,l=e[4]("routes.home.mainContent.description")+"",c,h,f,d,g,_,y,C,P=e[4]("routes.home.joinRoomHeading")+"",H,v,p,w,D=e[4]("routes.home.domainLabel")+"",b,T,E,$,re,j,pe,ve=e[4]("routes.home.roomLabel")+"",Gt,kn,Y,Mn,$n,it,me,st,ot=e[4]("general.advancedConfiguration")+"",jt,Un,Ge,at=e[4]("general.password")+"",Vt,Gn,J,jn,je,ut=e[4]("routes.home.joinButtonText")+"",qt,Vn,we,lt=e[4]("routes.home.joinRoomFootnote")+"",zt,qn,Te,Xt,ct,U,Zt,zn;function Ei(A){e[11](A)}function xi(A){e[12](A)}let Wt={$$slots:{default:[Fa]},$$scope:{ctx:e}};e[1]!==void 0&&(Wt.onClick=e[1]),e[3]!==void 0&&(Wt.checked=e[3]),f=new Ba({props:Wt}),Nt.push(()=>er(f,"onClick",Ei)),Nt.push(()=>er(f,"checked",xi));let V=e[5].domain&&xr(e),q=e[5].room&&vr(e);return{c(){t=S("section"),n=S("div"),r=S("div"),i=S("h1"),o=k(s),a=F(),u=S("p"),c=k(l),h=F(),_e(f.$$.fragment),_=F(),y=S("form"),C=S("h2"),H=k(P),v=F(),p=S("div"),w=S("label"),b=k(D),T=F(),E=S("input"),$=F(),V&&V.c(),re=F(),j=S("div"),pe=S("label"),Gt=k(ve),kn=F(),Y=S("input"),Mn=F(),q&&q.c(),$n=F(),it=S("div"),me=S("details"),st=S("summary"),jt=k(ot),Un=F(),Ge=S("label"),Vt=k(at),Gn=F(),J=S("input"),jn=F(),je=S("button"),qt=k(ut),Vn=F(),we=S("p"),zt=k(lt),qn=F(),Te=S("a"),Xt=k(e[2]),x(i,"class","title-font font-medium text-3xl text-gray-900"),x(u,"class","leading-relaxed mt-4 mb-4"),x(r,"class","lg:w-3/5 md:w-1/2 md:pr-16 lg:pr-0 pr-0"),x(C,"class","text-gray-900 text-lg font-medium title-font mb-5"),x(w,"for","domain"),x(w,"class","leading-7 text-sm text-gray-600"),x(E,"type","text"),x(E,"id","domain"),x(E,"name","domain"),x(E,"placeholder","meet.jit.si"),x(E,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(p,"class","relative mb-4"),x(pe,"for","room"),x(pe,"class","leading-7 text-sm text-gray-600"),x(Y,"type","text"),x(Y,"id","room"),x(Y,"name","room"),x(Y,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(j,"class","relative mb-4"),x(st,"class","cursor-pointer"),x(Ge,"for","domain"),x(Ge,"class","leading-7 text-sm text-gray-600"),x(J,"type","password"),x(J,"id","password"),x(J,"name","password"),x(J,"class","w-full bg-white rounded border border-gray-300 focus:border-indigo-500 focus:ring-2 focus:ring-indigo-200 text-base outline-none text-gray-700 py-1 px-3 leading-8 transition-colors duration-200 ease-in-out"),x(it,"class","relative mb-4"),x(je,"class","disabled:opacity-50 text-white bg-indigo-500 border-0 py-2 px-8 focus:outline-none hover:bg-indigo-600 rounded text-lg"),x(je,"type","submit"),x(Te,"class","text-indigo-500 break-words"),x(Te,"href",ct=`https://${e[2]}`),x(we,"class","text-xs text-gray-500 mt-3"),x(y,"class","lg:w-2/6 md:w-1/2 bg-gray-100 rounded-lg p-8 flex flex-col md:ml-auto w-full mt-10 md:mt-0"),x(n,"class","container px-5 py-24 mx-auto flex flex-wrap items-center"),x(t,"class","text-gray-600 body-font")},m(A,B){ne(A,t,B),m(t,n),m(n,r),m(r,i),m(i,o),m(r,a),m(r,u),m(u,c),m(r,h),he(f,r,null),m(n,_),m(n,y),m(y,C),m(C,H),m(y,v),m(y,p),m(p,w),m(w,b),m(p,T),m(p,E),Se(E,e[0].domain),m(p,$),V&&V.m(p,null),m(y,re),m(y,j),m(j,pe),m(pe,Gt),m(j,kn),m(j,Y),Se(Y,e[0].room),m(j,Mn),q&&q.m(j,null),m(y,$n),m(y,it),m(it,me),m(me,st),m(st,jt),m(me,Un),m(me,Ge),m(Ge,Vt),m(me,Gn),m(me,J),Se(J,e[0].password),m(y,jn),m(y,je),m(je,qt),m(y,Vn),m(y,we),m(we,zt),m(we,qn),m(we,Te),m(Te,Xt),U=!0,Zt||(zn=[te(E,"beforeinput",e[10]),te(E,"change",e[8]),te(E,"input",e[13]),te(Y,"beforeinput",e[10]),te(Y,"change",e[8]),te(Y,"input",e[14]),te(J,"change",e[8]),te(J,"input",e[15]),te(y,"submit",e[9])],Zt=!0)},p(A,[B]){(!U||B&16)&&s!==(s=A[4]("routes.home.mainContent.heading")+"")&&X(o,s),(!U||B&16)&&l!==(l=A[4]("routes.home.mainContent.description")+"")&&X(c,l);const ht={};B&262160&&(ht.$$scope={dirty:B,ctx:A}),!d&&B&2&&(d=!0,ht.onClick=A[1],Jn(()=>d=!1)),!g&&B&8&&(g=!0,ht.checked=A[3],Jn(()=>g=!1)),f.$set(ht),(!U||B&16)&&P!==(P=A[4]("routes.home.joinRoomHeading")+"")&&X(H,P),(!U||B&16)&&D!==(D=A[4]("routes.home.domainLabel")+"")&&X(b,D),B&1&&E.value!==A[0].domain&&Se(E,A[0].domain),A[5].domain?V?V.p(A,B):(V=xr(A),V.c(),V.m(p,null)):V&&(V.d(1),V=null),(!U||B&16)&&ve!==(ve=A[4]("routes.home.roomLabel")+"")&&X(Gt,ve),B&1&&Y.value!==A[0].room&&Se(Y,A[0].room),A[5].room?q?q.p(A,B):(q=vr(A),q.c(),q.m(j,null)):q&&(q.d(1),q=null),(!U||B&16)&&ot!==(ot=A[4]("general.advancedConfiguration")+"")&&X(jt,ot),(!U||B&16)&&at!==(at=A[4]("general.password")+"")&&X(Vt,at),B&1&&J.value!==A[0].password&&Se(J,A[0].password),(!U||B&16)&&ut!==(ut=A[4]("routes.home.joinButtonText")+"")&&X(qt,ut),(!U||B&16)&<!==(lt=A[4]("routes.home.joinRoomFootnote")+"")&&X(zt,lt),(!U||B&4)&&X(Xt,A[2]),(!U||B&4&&ct!==(ct=`https://${A[2]}`))&&x(Te,"href",ct)},i(A){U||(z(f.$$.fragment,A),U=!0)},o(A){K(f.$$.fragment,A),U=!1},d(A){A&&W(t),fe(f),V&&V.d(),q&&q.d(),Zt=!1,le(zn)}}}function ka(e,t,n){let r,i,s,o,a;_t(e,si,p=>n(4,o=p));let u=()=>{window.location.href=r?"/":"/beta"};const l=new RegExp(/^$|^((?:(?:(?:\w[\.\-\+]?)*)\w)+)((?:(?:(?:\w[\.\-\+]?){0,62})\w)+)\.(\w{2,6})$/),c=new RegExp(/^[^?&:"'%#]+$/),{form:h,errors:f,handleChange:d,handleSubmit:g}=Go({initialValues:{domain:"",room:"",password:""},validationSchema:_i().shape({domain:wt().trim().matches(l),room:wt().trim().min(1).matches(c).required(),password:wt().optional()}),onSubmit:p=>{const w=p.password?`?password=${p.password}`:"";Ao(`/bot/${i}${w}`)}});_t(e,h,p=>n(0,s=p)),_t(e,f,p=>n(5,a=p));function _(p){if(p instanceof InputEvent&&p.data&&p.inputType==="insertFromPaste"){const{data:w}=p,D=new RegExp("^http(s?)://(.*)/(.*)$");if(!D.test(w))return;const b=D.exec(w);if(!(b&&b.length>=4))return;const T=b[2],E=b[3];l.test(T)&&c.test(E)&&(p.preventDefault(),Yn(h,s.domain=T,s),Yn(h,s.room=E,s))}}function y(p){u=p,n(1,u)}function C(p){r=p,n(3,r)}function P(){s.domain=this.value,h.set(s)}function H(){s.room=this.value,h.set(s)}function v(){s.password=this.value,h.set(s)}return e.$$.update=()=>{e.$$.dirty&1&&n(2,i=`${s.domain||"meet.jit.si"}/${s.room}`)},n(3,r=window.location.href.split("/")[3].startsWith("beta")),[s,u,i,r,o,a,h,f,d,g,_,y,C,P,H,v]}class Ma extends Me{constructor(t){super(),ke(this,t,ka,La,ye,{})}}function $a(e){let t;return{c(){t=S("p"),t.textContent="404 - Not found"},m(n,r){ne(n,t,r)},p:M,i:M,o:M,d(n){n&&W(t)}}}class Ua extends Me{constructor(t){super(),ke(this,t,null,$a,ye,{})}}function Ga(e){let t,n,r,i,s,o,a,u,l,c,h,f,d,g;return{c(){t=S("footer"),n=S("div"),r=S("div"),i=S("div"),s=S("a"),o=k("JIMMI"),a=F(),u=S("p"),u.textContent="Still under heavy development",l=F(),c=S("div"),h=S("p"),f=k(`Fork me on + `),d=S("a"),g=k("GitHub"),x(s,"href",gn.url),x(s,"class","ml-3 text-xl"),x(u,"class","text-sm text-gray-500 ml-4 pl-4 border-l-2 border-gray-200 sm:py-2 sm:mt-0"),x(i,"class","flex items-center md:justify-start justify-center text-gray-900"),x(d,"href",gn.repoUrl),x(d,"class","text-indigo-500 ml-1"),x(d,"target","_blank"),x(d,"rel","noopener noreferrer"),x(h,"class","text-sm text-gray-500"),x(c,"class","sm:ml-auto sm:py-2 sm:mt-0 mt-4 sm:text-left text-center text-gray-500 text-sm"),x(r,"class","container mx-auto py-4 px-5 flex flex-wrap flex-col sm:flex-row"),x(n,"class","bg-gray-100 "),x(t,"class","text-gray-600 body-font absolute bottom-0 w-screen")},m(_,y){ne(_,t,y),m(t,n),m(n,r),m(r,i),m(i,s),m(s,o),m(i,a),m(i,u),m(r,l),m(r,c),m(c,h),m(h,f),m(h,d),m(d,g)},p:M,i:M,o:M,d(_){_&&W(t)}}}class ja extends Me{constructor(t){super(),ke(this,t,null,Ga,ye,{})}}function wr(e){let t,n;return t=new Io({props:{routes:e[1]}}),{c(){_e(t.$$.fragment)},m(r,i){he(t,r,i),n=!0},p:M,i(r){n||(z(t.$$.fragment,r),n=!0)},o(r){K(t.$$.fragment,r),n=!1},d(r){fe(t,r)}}}function Va(e){let t,n,r,i,s=!e[0]&&wr(e);return r=new ja({}),{c(){t=S("main"),s&&s.c(),n=F(),_e(r.$$.fragment),x(t,"class","h-screen")},m(o,a){ne(o,t,a),s&&s.m(t,null),m(t,n),he(r,t,null),i=!0},p(o,[a]){o[0]?s&&(Rt(),K(s,1,1,()=>{s=null}),Bt()):s?(s.p(o,a),a&1&&z(s,1)):(s=wr(o),s.c(),z(s,1),s.m(t,n))},i(o){i||(z(s),z(r.$$.fragment,o),i=!0)},o(o){K(s),K(r.$$.fragment,o),i=!1},d(o){o&&W(t),s&&s.d(),fe(r)}}}function qa(e,t,n){let r;_t(e,xt,s=>n(0,r=s)),Do();const i={"/":Ma,"/bot/:instance/:room":xo({asyncComponent:()=>Tr(()=>import("./Bot-cad5cf45.js"),["assets/Bot-cad5cf45.js","assets/Bot-b35bdf2e.css"])}),"*":Ua};return[r,i]}class za extends Me{constructor(t){super(),ke(this,t,qa,Va,ye,{})}}new za({target:document.getElementById("app")});export{M as A,_e as B,he as C,z as D,Rt as E,Bt as F,K as G,fe as H,_t as I,Vi as J,ji as K,Ao as L,Ii as M,Hi as N,Pi as O,Ci as P,er as Q,Jn as R,Me as S,nu as T,oi as U,si as X,ke as a,F as b,x as c,Za as d,S as e,It as f,tu as g,Ka as h,Ai as i,ne as j,m as k,Se as l,te as m,X as n,eu as o,W as p,Wa as q,le as r,ye as s,k as t,Ja as u,Sn as v,Nt as w,Qa as x,Ya as y,gn as z}; diff --git a/index.html b/index.html index b06a5d7..9cf1630 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ JIMMI - +